1065
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Block Programming Instructions
3
EXIT/EXIT NOT
z Operation with an Operand
Example Programming
When CIO 0.00 is OFF, the block program is executed. If CIO 0.01 is ON, A is executed and then B is
skipped and program control jumps to BEND(801). Section B of the program will continue to be skipped
until CIO 0.01 turns OFF again.
Although EXIT (NOT)(806) is similar to IF-IEND programming, execution time is normally shorter for
EXIT (NOT)(806) because the instructions from EXIT (NOT)(806) to the end of the block program are
not executed at all.
If the operand bit, B, is OFF for EXIT(806) the
rest of the block program will be executed
normally. If the operand bit is ON for
EXIT(806), the rest of the instructions in the
block program through BEND(801) will not be
executed. For EXIT NOT(806), the rest of the
block program will be executed for if the
operand bit is ON and skipped if the operand
bit is OFF.
Operand bit
OFF
(ON for EXIT
NOT)
Operand bit
ON
(OFF for EXIT
NOT)
"A" executed. "A" executed.
"B" executed.
Block ended.
CIO 0.01 ON
CIO 0.04 ON
CIO 0.01 OFF
CIO 0.04 OFF
0
2
0.00
0.02
0.03
0.01
0.04
0.03
0.02
---
---
---
000200 LD 0.00
000201 BPRG(096) 0
A
000210 EXIT(806) 0.01
B
C
000220 BEND(811)
000221 LD
LD
AND
000222
000223
BPRG(096) 2
000224 0.04
000225 EXIT(806)
000230 BEND(801)
Address
Instruction
Operands
…
…
…
…
…
…
Block ended
Block ended
CIO 0.03 and CIO 0.03 or