Omron CPM1 - PROGRAMING MANUAL 02-2001 Programming Manual page 362

Hide thumbs Also See for CPM1 - PROGRAMING MANUAL 02-2001:
Table of Contents

Advertisement

Basic Ladder Diagrams
Address
00000
00001
00002
00003
00004
00005
00006
00007
00008
Combining AND LOAD and
OR LOAD
344
The first of each pair of conditions is converted to LOAD with the assigned bit
operand and then ANDed with the other condition. The first two blocks can be
coded first, followed by OR LOAD, the last block, and another OR LOAD, or the
three blocks can be coded first followed by two OR LOADs. The mnemonic code
for both methods is shown below.
Instruction
Operands
LD
00000
AND NOT
00001
LD NOT
00002
AND NOT
00003
OR LD
LD
00004
AND
00005
OR LD
OUT
20001
Again, with the method on the right, a maximum of eight blocks can be com-
bined. There is no limit to the number of blocks that can be combined with the
first method.
Both of the coding methods described above can also be used when using AND
LOAD and OR LOAD, as long as the number of blocks being combined does not
exceed eight.
The following diagram contains only two logic blocks as shown. It is not neces-
sary to further separate block b components, because it can coded directly using
only AND and OR.
00000 00001
Block
a
Address
00000
00001
00002
00003
00004
00005
00006
00007
Although the following diagram is similar to the one above, block b in the diagram
below cannot be coded without separating it into two blocks combined with OR
LOAD. In this example, the three blocks have been coded first and then OR
LOAD has been used to combine the last two blocks followed by AND LOAD to
combine the execution condition produced by the OR LOAD with the execution
condition of block a.
Address
Instruction
00000
LD
00001
AND NOT
00002
LD NOT
00003
AND NOT
00004
LD
00005
AND
00006
OR LD
00007
OR LD
00008
OUT
00002 00003
00201
00004
Block
b
Instruction
Operands
LD
00000
AND NOT
00001
LD
00002
AND
00003
OR
00201
OR
00004
AND LD
OUT
20001
Section
Operands
00000
00001
00002
00003
00004
00005
20001
20001
6-3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents