6 BASIC INSTRUCTIONS
6.1 Comparison Operation Instructions
229
6
■Applicable devices
*1 FX and FY cannot be used.
*2 T, ST, and C cannot be used.
• These instructions compare the band between the 32-bit binary data specified by lower limit value (s1) and the 32-bit binary
data specified by upper limit value (s2) with the 32-bit binary data in the device specified by comparison data (s3).
According to the comparison result (below, within zone, or above), (d), (d)+1, or (d)+2 is turned on.
• Set (s1) to a value less than (s2). If (s1) is set to a value greater than (s2), (s2) is treated as the same value as (s1).
There is no operation error.
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB,
FX, FY
J\ T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
U\G, J\,
U3E\(H)G
Z LT, LST,
LC
LZ K, H E $
(s1)
*1
(s2)
*1
(s3)
*1
(d)
*2
DZCP
(d)+1
(d)+2
(d)
X0
(d)(s1) (s2) (s3)
Turns on when [(s1), (s1)+1] > [(s3), (s3)+1]
Turns on when [(s3), (s3)+1] > [(s2), (s2)+1]
Turns on when [(s1), (s1)+1] ≤ [(s3), (s3)+1] ≤ [(s2), (s2)+1]