Omron CJ - INSTRUCTIONS Reference Manual page 1103

Table of Contents

Advertisement

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.
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.
0.00
0.01
0.02
CS/CJ/NSJ Series Instructions Reference Manual (W474)
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
3. Instructions
Operand bit
Operand bit
OFF
ON
(ON for EXIT
(OFF for EXIT
NOT)
NOT)
"A" executed. "A" executed.
"B" executed.
Block ended.
Address Instruction
Operands
000200
LD
0.00
000201 BPRG(096)
0
A
000210 EXIT(806)
0.01
B
---
000220 BEND(811)
0.02
000221
LD
000222
BPRG(096)
2
000223
0.03
LD
AND
000224
0.04
000225 EXIT(806)
---
C
---
000230 BEND(801)
3
1065

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents