Main program
CJ
Main program
FEND
Main program
FEND
END
Main program
CALL
Main program
FEND
Main program
END
Interruption
program
X10=OFF
X10=ON
Jump
X11=OFF
X11=ON
0
0
P20 P21
X10
X11
P20
P21
I100
If program the tag of CALL instruction behind FEND instruction, there must be SRET
instruction. If the interrupt pointer program behind FEND instruction, there must be IRET
instruction.
After executing CALL instruction and before executing SRET instruction, if execute FEND
instruction; or execute FEND instruction after executing FOR instruction and before
executing NEXT, an error will occur.
In the condition of using many FEND instructions, please make program or subprogram
between the last FEND instruction and END instruction.
4-4. Data compare function
LD activates when (S1)= (S2)
LD activates when (S1)> (S2)
LD activates when (S1)< (S2)
LD activates when (S1) ≠ (S2)
LD activates when (S1) ≤ (S2)
LD activates when (S1) ≥ (S2)
AND activates when (S1)= (S2)
AND activates when (S1)> (S2)
AND activates when (S1)< (S2)
AND activates when (S1)≠ (S2)
AND activates when (S1)≤ (S2)
AND activates when (S1)≥ (S2)
OR activates when (S1)= (S2)
OR activates when (S1)> (S2)
OR activates when (S1)< (S2)
OR activates when (S1)≠ (S2)