![background image](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532083.webp)
78
Again, this diagram can be redrawn as follows to simplify program structure and
coding and to save memory space.
0000
06
0002
00
0000
07
0000
03
0000
04
0000
00
0000
05
0000
01
0000
02
Address
Instruction Operands
00000
LD
000006
00001
AND
000007
00002
OR
000005
00003
AND
000003
00004
AND
000004
00005
LD
000001
00006
AND
000002
00007
OR LD
--
00008
AND
000000
00009
OUT
000200
The next and final example may at first appear very complicated but can be
coded using only two logic block instructions. The diagram appears as follows:
Block c
Block b
Block a
0000
00
0005
00
0000
01
0000
02
0000
04
0000
03
0010
00
0010
01
0005
00
0000
06
0000
05
The first logic block instruction is used to combine the execution conditions re-
sulting from blocks a and b, and the second one is to combine the execution
condition of block c with the execution condition resulting from the normally
closed condition assigned CIO 000003. The rest of the diagram can be coded
with OR, AND, and AND NOT instructions. The logical flow for this and the re-
sulting code are shown below.
000000
000001
000500
000002
000003
001000
001001
000004
000005
000500
000006
Block c
Block b
Block a
OR LD
LD
000000
AND
000001
OR
000500
AND
000002
AND NOT 000003
LD
001000
AND
001001
OR
000006
LD
000004
AND
000005
AND LD
00000
LD
000000
00001
AND
000001
00002
LD
001000
00003
AND
001001
00004
OR LD
--
00005
OR
000500
00006
AND
000002
00007
AND NOT
000003
00008
LD
000004
00009
AND
000005
00010
OR
000006
00011
AND LD
-–
00012
OUT
000500
Address
Instruction Operands
Mnemonic Code
Section 4-4
Summary of Contents for CVM1D
Page 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Page 463: ...iv...
Page 465: ...vi...