Basic Programming
0002
0003
0001
0004
0005
0106
0107
0000
0001
0002
Block b
Block a
Block c
0003
0004
0106
0107
0003
0005
0001
0000
The following diagram requires five blocks, which here are coded in order
before using OR LOAD and AND LOAD to combine them starting from the
last two blocks and working backward. The OR LOAD at program address
008 combines blocks d and e, the following AND LOAD combines the result-
ing execution condition with that of block c, etc.
Block d
0005
0106
0107
Block e
Again, this diagram can be redrawn as follows to simplify program structure
and coding and to save memory space.
0004
0000
0002
Address
LR 0000
000
001
002
003
004
005
006
007
008
009
010
Address Instruction
LR 0000
000
001
002
003
004
005
006
007
008
Blocks d and e
009
Block c with result of above
010
Block b with result of above
011
Block a with result of above
012
Address Instruction
LR 0000
000
001
002
003
004
005
006
007
008
009
Section 3-4
Instruction
Operands
LD
0002
AND NOT
0003
OR
0001
AND
0000
LD NOT
0004
AND
0005
OR LD
LD NOT
0106
AND
0107
OR LD
OUT
LR
0000
Operands
LD
0000
LD
0001
AND
0002
LD
0003
AND
0004
LD
0005
LD
0106
AND
0107
OR LD
AND LD
OR LD
AND LD
OUT
LR
0000
Operands
LD
0106
AND
0107
OR
0005
AND
0003
AND
0004
LD
0001
AND
0002
OR LD
AND
0000
OUT
LR
0000
--
--
--
--
--
--
--
49
Need help?
Do you have a question about the SYSMAC mini SP10 and is the answer not in the manual?