![Omron CVM1D Operation Manual Download Page 408](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532408.webp)
403
IF<002> NOT to ELSE to IEND
C
IF<002> NOT B
ELSE<003>
D
IEND<004>
When B is OFF, C is executed.
When B is ON, D is executed.
IF<002> to ELSE to IEND
A
ELSE<003>
C
IEND<004>
When 00000, 00001 are ON, A is executed.
When either is OFF, C is executed.
LD 00000
AND 00001
IF<002>
IF<002> to IEND
C
IEND<004>
When 00001 is ON, C is executed.
LD 00001
IF<002>
IF<002> blocks can be nested up to a maximum of 253 levels. Each IF<002>
or IF<002> NOT will be effective through the next ELSE<003> and/or
IEND<004>.
IF<002>
IF<002>
IF<002>
IEND
IEND
IEND
Flags
No flags are affected by these instructions.
Example
The following example shows two different block programs controlled by
CIO 000000 and CIO 000002.
The first block executes one of two additions depending on the status of
CIO 000001.This block is executed when CIO 000000 is ON. If CIO 000001 is
ON, 0001 is added to the contents of CIO 0001. If CIO 000001 is OFF, 0002 is
added to the contents of CIO 0001. In either case the result is placed in D00000.
IF<002> NOT with an
Operand
IF<002> without an
Operand
IF<002> without ELSE
Nesting
Block Programming Instructions
Section 5-35
Summary of Contents for CVM1D
Page 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Page 463: ...iv...
Page 465: ...vi...