EasyManua.ls Logo

Omron SYSMAC CV Series - 4-10 Programming Precautions

Omron SYSMAC CV Series
636 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
86
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 00008 com-
bines blocks blocks d and e, the following AND LOAD combines the resulting
execution condition with that of block c, etc.
Address Instruction
Blocks d and e
Block c with result of above
Block b with result of above
Block a with result of above
00000 LD 000000
00001 LD 000001
00002 AND 000002
00003 LD 000003
00004 AND 000004
00005 LD 000005
00006 LD 000006
00007 AND 000007
00008 OR LD ––
00009 AND LD ––
00010 OR LD ––
00011 AND LD ––
00012 OUT 000200
0000
00
0000
01
0000
03
0002
00
0000
02
0000
04
0000
05
0000
06
0000
07
Block
e
Block
d
Block
c
Block
b
Block a
OperandsAddress Instruction Operands
00000 LD 000000
00001 LD 000001
00002 AND 000002
00003 LD 000003
00004 AND 000004
00005 LD 000005
00006 LD 000006
00007 AND 000007
00008 OR LD ––
00009 AND LD ––
00010 OR LD ––
00011 AND LD ––
00012 OUT 000200
Again, this diagram can be redrawn as follows to simplify program structure and
coding and to save memory space.
0000
06
0002
00
0000
07
0000
03
0000
04
0000
00
0000
05
0000
01
0000
02
Address Instruction Operands
00000 LD 000006
00001 AND 000007
00002 OR 000005
00003 AND 000003
00004 AND 000004
00005 LD 000001
00006 AND 000002
00007 OR LD ––
00008 AND 000000
00009 OUT 000200
The next and final example may at first appear very complicated but can be
coded using only two logic block instructions. The diagram appears as follows:
Block cBlock b
Block a
0000
00
0005
00
0000
01
0000
02
0000
04
0000
03
0010
00
0010
01
0005
00
0000
06
0000
05
Mnemonic Code Section 4-4

Table of Contents

Related product manuals