Omron SYSMAC C20P Operation Manual page 116

Sysmac programmable controllers
Hide thumbs Also See for SYSMAC C20P:
Table of Contents

Advertisement

Converting to Mnemonic Code
Address
0000
0001
0002
0003
0004
0005
0006
0007
0008
Combining AND LD and
OR LD
0000
0001
0002
0003
0004
0005
The first of each pair of conditions is converted to LD with the assigned bit
operand and then ANDed with the other condition. The first two blocks can
be coded first, followed by OR LD, the last block, and another OR LD, or the
three blocks can be coded first followed by two OR LDs. The mnemonic code
for either method is shown below.
Instruction
Data
LD
AND NOT
LD NOT
AND NOT
OR LD
LD
AND
OR LD
OUT
Again, with last method (on the right), a maximum of eight blocks can be
combined. 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
both AND LD and OR LD, 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 nec-
essary to break block b down further, because it can coded directly using
only AND and OR.
0000
0001
0002
0003
0201
0004
Block
Block
a
b
Address
Instruction
0000
LD
0000
0001
0001
AND NOT
0002
0002
LD NOT
0003
0003
AND NOT
0004
LD
0004
0005
AND
0005
0006
OR LD
0007
OR LD
0501
0008
OUT
Section 7–2
0501
Data
0000
0001
0002
0003
0004
0005
0501
0501
109

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac c28pSysmac c40pSysmac c60p

Table of Contents