![background image](http://html1.mh-extra.com/html/omron/sysmac-c1000h/sysmac-c1000h_operation-manual_743079203.webp)
197
5-21-8
CONDITIONAL BLOCK EXIT – EXIT<06> and EXIT<06> NOT
EXIT<06>
EXIT<06>
B
EXIT<06> NOT
B
Instruction Formats
B
: Bit
IR, SR, AR, HR, TC, LR
Operand Data Areas
EXIT<06> and EXIT<06> NOT conditionally end execution of the block pro-
gram in which they occur, based on either the execution condition or the op-
erand bit.
If the EXIT condition is YES when EXIT<06> or EXIT<05> NOT is reached,
execution moves directly to BEND<01> without executing any more instruc-
tions in the block. If the EXIT condition is NO, the block program is executed
normally.
A YES EXIT condition is produced by an ON execution condition for
EXIT<06> without an operand, by an ON bit for EXIT<06> with an operand
bit, or by an OFF bit for EXIT<06> NOT with an operand bit.
LD, possibly in combination with AND or OR, must be used to create an ex-
ecution condition for EXIT<06> when used without an operand bit.
Example
In the following example, B will be executed only when 00001 is OFF.
BPRG(96) 00
EXIT<06>
A
B
BEND<01>
00000
00001
Address
Instruction
Operands
00000
LD
00000
00001
BPRG(96)
00
A
00200
EXIT<06>
00001
B
00300
BEND<01>
5-21-9
Block Loop Control–LOOP<09>, LEND<10>, and LEND<10> NOT
LOOP<09>
LEND<10>
LEND<10>
B
LEND<10> NOT
B
Instruction Formats
B
: Bit
IR, SR, AR, HR, TC, LR
Operand Data Areas
LOOP<09> and LEND<10> are used to create a loop that is repeatedly ex-
ecuted until the LOOP END condition becomes YES. LOOP<09> designates
the beginning of the loop program, and a LEND<10> or LEND<10> NOT in-
struction specifies the end of the loop. When LEND<10> or LEND<10> NOT
Description
Description
Block Programming Instructions
Section 5-21