![background image](http://html1.mh-extra.com/html/omron/sysmac-c1000h/sysmac-c1000h_operation-manual_743079198.webp)
192
IF<02> NOT to ELSE to IEND
C
IF<02> NOT B
ELSE<03>
D
IEND<04>
When B is OFF, C is executed.
When B is ON, D is executed.
IF<02> to ELSE to IEND
A
ELSE<03>
C
IEND<04>
When 00000, 00001 are ON, A is executed.
When either is OFF, C is executed.
LD 00000
AND 00001
IF<02>
IF<02> to IEND
C
IEND<04>
When 00001 is ON, C is executed.
LD 00001
IF<02>
IF<02> blocks can be nested up to a maximum of 253 levels. Each IF<02> or
IF<02> NOT will be effective through the next ELSE<03> and/or IEND<04>.
IF<02>
IF<02>
IF<02>
IEND
IEND
IEND
Flags
No flags are affected by this instruction.
Example
The following example shows two different block programs controlled by
00000 and 00002. The first block executes one of two additions depending
on the status of 00001. The second block shows nesting to two levels.
IF<02> NOT with an
Operand
IF<02> without an Operand
IF<02> without ELSE
Nesting
Block Programming Instructions
Section 5-21