![background image](http://html1.mh-extra.com/html/omron/sysmac-c200hs/sysmac-c200hs_operation-manual_742436187.webp)
177
Precautions
Placing other instructions between ZCP(88) and the operation which accesses
the EQ, LE, and GR flags may change the status of these flags. Be sure to ac-
cess them before the desired status is changed.
Flags
ER:
Indirectly addressed DM word is non-existent. (Content of
∗
DM word is
not BCD, or the DM area boundary has been exceeded.)
LL is greater than UL.
EQ:
ON if LL
≤
CD
≤
UL
LE:
ON if CD < LL.
GR:
ON if CD > UL.
The following example shows how to save the comparison result immediately. If
IR 100 > AB1F, IR 00200 is turned ON; if #0010
≤
IR 100
≤
AB1F, IR 00201 is
turned ON; if IR 100 < 0010, IR 00202 is turned ON.
ZCP(88)
#0010
IR 100
00000
25505
00200
25507
00202
TR
0
25506
00201
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(88)
IR
100
#
0010
00003
LD
#
AB1F
00004
AND
25505
00005
OUT
00200
00006
LD
TR
0
00007
AND
25506
00008
OUT
00201
00009
LD
TR
0
00010
AND
25507
00011
OUT
00202
#AB1F
5-17-7
DOUBLE AREA RANGE COMPARE – ZCPL(––)
CD: Compare data
IR, SR, AR, DM, HR, LR
LL: Lower limit of range
IR, SR, AR, DM, HR, LR
Ladder Symbols
Operand Data Areas
UL: Upper limit of range
IR, SR, AR, DM, HR, LR
ZCPL(––)
CD
LL
UL
Limitations
The 8-digit value in LL+1,LL must be less than or equal to UL+1,UL.
CD and CD+1 must be in the same data area, as must LL and LL+1, and UL and
UL+1.
Example:
Saving ZCP(88) Results
Data Comparison
Section 5-17
Содержание SYSMAC C200HS
Страница 1: ...Cat No W235 E1 05 C200HS SYSMAC Programmable Controllers...
Страница 2: ...C200HS Programmable Controllers Operation Manual Revised February 2002...
Страница 3: ...iv...
Страница 5: ...vi...
Страница 379: ...371 SR word Corresponding key s Bit 279 03 04 05 3 06 07 VER 08 09 Monitoring Operation and Modifying Data Section 7 1...
Страница 470: ...468 Programmer Program Date Page Word Contents Notes Word Contents Notes Data Storage...
Страница 471: ...469 Programmer Program Date Page TC address T or C Set value Notes TC address T or C Set value Notes Timers and Counters...