![background image](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532082.webp)
77
The following diagram requires an OR LOAD followed by an AND LOAD to code
the top of the three blocks, and then two more OR LOADs to complete the mne-
monic code.
Address
Instruction
00000
LD
000000
00001
LD
000001
00002
LD
000002
00003
AND NOT
000003
00004
OR LD
--
00005
AND LD
--
00006
LD NOT
000004
00007
AND
000005
00008
OR LD
--
00009
LD NOT
000006
00010
AND
000007
00011
OR LD
--
00012
OUT
000200
0000
00
0000
01
0000
02
0000
03
0000
05
0000
04
0000
06
0000
07
0002
00
Operands
Although the program will execute as written, this diagram could be drawn as
shown below to eliminate the need for the first OR LOAD and the AND LOAD,
simplifying the program and saving memory space.
0000
03
0000
02
0000
00
0000
01
0000
05
0000
06
0000
07
0000
04
0002
00
Address
Instruction Operands
00000
LD
000002
00001
AND NOT
000003
00002
OR
000001
00003
AND
000000
00004
LD NOT
000004
00005
AND
000005
00006
OR LD
--
00007
LD NOT
000006
00008
AND
000007
00009
OR LD
--
00010
OUT
000200
The following diagram requires five blocks, which here are coded in order before
using OR LOAD and AND LOAD to combine them starting from the last two
blocks and working backward. The OR LOAD at program address 00008 com-
bines blocks blocks d and e, the following AND LOAD combines the resulting
execution condition with that of block c, etc.
Address
Instruction
Blocks d and e
Block c with result of above
Block b with result of above
Block a with result of above
00000
LD
000000
00001
LD
000001
00002
AND
000002
00003
LD
000003
00004
AND
000004
00005
LD
000005
00006
LD
000006
00007
AND
000007
00008
OR LD
--
00009
AND LD
--
00010
OR LD
--
00011
AND LD
--
00012
OUT
000200
0000
00
0000
01
0000
03
0002
00
0000
02
0000
04
0000
05
0000
06
0000
07
Block
e
Block
d
Block
c
Block
b
Block a
Operands
Address
Instruction Operands
00000
LD
000000
00001
LD
000001
00002
AND
000002
00003
LD
000003
00004
AND
000004
00005
LD
000005
00006
LD
000006
00007
AND
000007
00008
OR LD
--
00009
AND LD
--
00010
OR LD
--
00011
AND LD
--
00012
OUT
000200
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...