289
Comparison Instructions
Section 5-19
5-19-8 AREA RANGE COMPARE – ZCP(– –)
Limitations
LL must be less than or equal to UL.
Description
When the execution condition is OFF, ZCP(––) is not executed. When the exe-
cution condition is ON, ZCP(––) compares CD to the range defined by lower
limit LL and upper limit UL and outputs the result to the GR, EQ, and LE flags
in the SR area. The resulting flag status is shown in the following table.
Precautions
Placing other instructions between ZCP(––) and the operation which
accesses the EQ, LE, and GR flags may change the status of these flags. Be
sure to access them before the desired status is changed.
Flags
ER:
Indirectly addressed EM/DM word is non-existent.
(Content of
*
EM/
*
DM word is not BCD, or the EM/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.
CD
:
Compare data
IR, SR, AR, DM, EM, HR, TIM/CNT, LR, #
LL
:
Lower limit of range
IR, SR, AR, DM, EM, HR, TIM/CNT, LR, #
Ladder Symbol
Operand Data Areas
UL
:
Upper limit of range
IR, SR, AR, DM, EM, HR, TIM/CNT, LR, #
ZCP(
−−
)
CD
LL
UL
Comparison result
Flag status
GR (SR 25505)
EQ (SR 25506)
LE (SR 25507)
CD < LL
0
0
1
LL
≤
CD
≤
UL
0
1
0
UL < CD
1
0
0
Содержание SYSMAC CQM1H Series
Страница 3: ...iv...
Страница 5: ...vi...
Страница 9: ......
Страница 11: ......
Страница 15: ...xvi...
Страница 87: ...62 Calculating with Signed Binary Data Section 1 7...
Страница 169: ...144 Serial Communications Board Section 2 6...
Страница 537: ......
Страница 565: ......
Страница 569: ......
Страница 573: ......
Страница 577: ......