EasyManua.ls Logo

Omron SYSMAC CV Series - Page 97

Omron SYSMAC CV Series
636 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
85
The following type of diagram can be coded easily if each block is coded in order:
first top to bottom and then left to right. In the following diagram, blocks a and b
would be combined using AND LOAD as shown above, and then block c would
be coded and a second AND LOAD would be used to combined it with the execu-
tion condition from the first AND LOAD. Then block d would be coded, a third
AND LOAD would be used to combine the execution condition from block d with
the execution condition from the second AND LOAD, and so on through to
block n.
0005
00
Block
a
Block
b
Block
n
Block
c
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
Mnemonic Code Section 4-4

Table of Contents

Related product manuals