Basic Programming
0000
0001
0002
0003
Logic Block Instructions in
Series
0000
0002
0004
0001
0003
0005
0000
0001
0002
0003
00040
0005
Combining AND LOAD and
OR LOAD
46
Naturally, some diagrams will require both AND LOAD and OR LOAD instruc-
tions.
To code diagrams with logic block instructions in series, the diagram must be
divided into logic blocks. Each block is coded as normal using a LOAD in-
struction to code the first condition, and then AND LOAD or OR LOAD is
used to logically combine the blocks. First input the first two logic blocks and
then the logic block instruction to combine the results. Then input each addi-
tional logic block along with the logic block instruction required to combine it
with the previous result. Examples are given next.
The following diagram requires AND LOAD to be converted to mnemonic
code because three pairs of parallel conditions lie in series.
The following diagram requires OR LOAD instructions to be converted to
mnemonic code because three pairs of conditions in series lie in parallel to
each other. 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 are coded first, followed by OR LOAD, the last block, and another OR
LOAD.
AND LOAD and OR LOAD can naturally be used in the same section of pro-
gram. The following diagram contains only two logic blocks as shown. It is
not necessary to further separate block b components, because it can coded
directly using only AND and OR.
Address
Instruction
Instruction
000
LD
001
AND NOT
002
LD
003
AND
004
OR LD
Address Instruction
0100
000
LD
001
OR NOT
002
LD NOT
003
OR
004
AND LD
005
LD
006
OR
007
AND LD
008
OUT
Address Instruction
0101
000
LD
001
AND NOT
002
LD NOT
003
AND NOT
004
OR LD
005
LD
006
AND
007
OR LD
008
OUT
Section 3-4
Operands
0000
0001
0002
0003
---
Operands
0000
0001
0002
0003
—
0004
0005
—
0100
Operands
0000
0001
0002
0003
—
0004
0005
—
0101
Need help?
Do you have a question about the SYSMAC mini SP10 and is the answer not in the manual?