Block Programming Instructions
IF<02> NOT with an
Operand
IF<02> without an Operand
IF<02> without ELSE
Nesting
Flags
Example
192
IF<02> NOT to ELSE to IEND
IF<02> NOT B
C
When B is OFF, C is executed.
ELSE<03>
D
When B is ON, D is executed.
IEND<04>
IF<02> to ELSE to IEND
LD 00000
AND 00001
IF<02>
A
When 00000, 00001 are ON, A is executed.
ELSE<03>
C
When either is OFF, C is executed.
IEND<04>
IF<02> to IEND
LD 00001
IF<02>
When 00001 is ON, C is executed.
C
IEND<04>
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
No flags are affected by this instruction.
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.
Section 5-21
Need help?
Do you have a question about the SYSMAC C2000H and is the answer not in the manual?