3. Instructions
Operation with an Operand
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.
Sample program
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.
0.00
0.01
0.02
1018
CIO 0.01 ON
CIO 0.01 OFF
0
Block ended
CIO 0.03 and
CIO 0.03 or
CIO 0.04 ON
CIO 0.04 OFF
2
0.03
0.04
Block ended
Operand bit
OFF
(ON for EXIT
NOT)
"A" executed. "A" executed.
"B" executed.
Address Instruction
000200
LD
000201 BPRG(096)
A
000210 EXIT(806)
B
000220 BEND(811)
000221
LD
000222
BPRG(096)
000223
LD
AND
000224
000225 EXIT(806)
C
000230 BEND(801)
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Operand bit
ON
(OFF for EXIT
NOT)
Block ended.
Operands
0.00
0
0.01
---
0.02
2
0.03
0.04
---
---
Need help?
Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?
Questions and answers