Basic Programming
0000
0001
0002
0201
0004
Block
Block
a
b
Block
b1
0000
0001
0002
0004
Block
b2
Block
Block
a
b
Complicated Diagrams
0003
Although the following diagram is similar to the one above, block b in the dia-
gram below cannot be coded without separating it into two blocks combined
with OR LOAD. Here the three logic blocks are coded first followed by the
two logic block instructions required to combine them. When coding the logic
block instructions together at the end of the logic blocks they are combining,
they must, as shown below, be coded in reverse order, i.e., the logic block
instruction for the last two blocks is coded first, followed by the one to com-
bine the execution condition resulting from the first logic block instruction and
the execution condition of the logic block third from the end, and on back to
the first logic block that is being combined.
0003
0104
When determining what logic block instructions will be required to code a dia-
gram, it is sometimes necessary to break the diagram into large blocks and
then continue breaking the large blocks down until logic blocks that can be
coded without logic block instructions have been formed. These blocks are
then coded, combining the small blocks first, and then combining the larger
blocks. Either AND LOAD or OR LOAD is used to combine the blocks, i.e.,
AND LOAD or OR LOAD always combines the last two execution conditions
that existed, regardless of whether the execution conditions resulted from a
single condition, from logic blocks, or from previous logic block instructions.
When working with complicated diagrams, blocks will ultimately be coded
starting at the top left and moving down before moving across. This will gen-
erally mean that, when there might be a choice, OR LOAD will be coded be-
fore AND LOAD.
The following diagram must be broken down into two blocks and each of
these then broken into two blocks before it can be coded. As shown below,
blocks a and b require an AND LOAD. Before AND LOAD can be used, how-
Address Instruction
0101
000
LD
001
AND NOT
002
LD
003
AND
004
OR
005
OR
006
AND LD
007
OUT
Address Instruction
000
LD NOT
001
AND
0102
002
LD
003
AND NOT
004
LD NOT
005
AND
006
OR LD
007
AND LD
008
OUT
Section 3-4
Operands
0000
0001
0002
0003
0201
0004
—
0101
Operands
0000
0001
0002
0003
0004
0104
—
—
0102
47
Need help?
Do you have a question about the SYSMAC mini SP10 and is the answer not in the manual?