EasyManua.ls Logo

Omron CQM1H - PROGRAM

Omron CQM1H - PROGRAM
602 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...
290
Comparison Instructions Section 5-19
Example In the following example, the content of IR 002 (#6FA4) is compared to the
range #0010 to #AB1F. Since #0010
#6FA4 #AB1F, the EQ flag and IR
10001 are turned ON.
5-19-9 DOUBLE AREA RANGE COMPARE – ZCPL(––)
Limitations The 8-digit value in LL+1,LL must be less than or equal to UL+1,UL.
ZCP(−−)
#0010
002
00000
25505
10000
25507
10002
TR
0
25506
10001
Greater Than
(above range)
Equal
(within range)
Less Than
(below range)
Address Instruction Operands Address Instruction Operands
00000 LD 00000
00001 OUT TR 0
00002 ZCP(−−)
002
#0010
# AB1F
00003 AND 25505
00004 OUT 10000
00005 LD TR 0
00006 AND 25506
00007 OUT 10001
00008 LD TR 0
00009 AND 25507
00010 OUT 10002
#AB1F
UL: #AB1F
AB1 F
<
CD: 002
6FA4
<
LL: #0010
001 0
10000: OFF
10001: ON
10002: OFF
CD: Compare data
IR, SR, AR, DM, EM, HR, LR
LL: Lower limit of range
IR, SR, AR, DM, EM, HR, LR
Ladder Symbol
Operand Data Areas
UL: Upper limit of range
IR, SR, AR, DM, EM, HR, LR
ZCPL(−− )
CD
LL
UL

Table of Contents

Related product manuals