EasyManua.ls Logo

Omron SYSMAC CV Series - Page 132

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...
120
The following diagram and corresponding mnemonic code illustrates the points
described above.
Instruction
00000 LD 000000
00001 AND 000001
00002 OR 000002
00003 DIFU(013) 022500
00004 LD 000100
00005 AND NOT 000200
00006 LD 001001
00007 AND NOT 001002
00008 AND NOT A50006
00009 OR LD ––
00010 AND 022500
00011 BCNT(114) ––
#0001
0004
A001
00012 LD 000005
00013 T0000
#0150
00014 LD T0000
00015 MOV(030) ––
1200
A001
00016 LD 120015
00017 OUT NOT 000500
Address Operands
0000
00
0000
01
0000
02
0001
00
0225
00
(114)
BCNT #0001 0004 A001
(013)
DIFU 022500
(TIM 0000 #0150
(030)
MOV 1200 A0001
0010
01
0000
05
T0000
1200
15
0002
00
0010
02
A500
06
0005
00
If a right-hand instruction requires multiple instruction lines, all of the lines for the
instruction are entered before the right-hand instruction when inputting in mne-
monic form (although this is not always true when inputting using ladder dia-
grams). Each line of the instruction is coded first to form ‘logic blocks’ combined
by the right-hand instruction. An example of this for SFT(050) is shown below.
00000 LD 000000
00001 AND 000001
00002 LD 000002
00003 LD 000100
00004 AND NOT 000200
00005 LD 001001
00006 AND NOT 001002
00007 AND NOT A50006
00008 OR LD ––
00009 AND 022500
00010 SFT(050) ––
1200
1200
00011 LD 120015
00012 OUT NOT 000500
Address Instruction Operands
(050)
SFT 1200 1200
0000
00
0000
01
0000
02
0001
00
0002
00
0010
01
0010
02
A500
06
0225
00
1200
15
0005
00
I
P
R
When you have finished coding the program, make sure you have placed
END(001) at the last address.
Multiple Instruction Lines
END(001)
Coding Right-hand Instructions Section 5-5

Table of Contents

Related product manuals