Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 225

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

■Applicable devices
Operand
Bit
X, Y, M, L,
J\
SM, F, B, SB,
FX, FY
*1
(s1)
*1
(s2)
(d)
*1 FX and FY cannot be used.
*2 T, ST, and C cannot be used.
Processing details
• These instructions compare the 16-bit binary data specified by (s1) with the 16-bit binary data specified by (s2), and
according to the result (small, equal, or large), (d), (d)+1, or (d)+2 is turned on.
X0
(s1)
CMP
(d)
Turns on when (s1) > (s2)
(d)+1
Turns on when (s1) = (s2)
(d)+2
Turns on when (s1) < (s2)
Operation error
There is no operation error.
Word
T, ST, C, D, W,
U\G, J\,
SD, SW, FD, R,
U3E\(H)G
ZR, RD
*2
X0
(s2)
(d)
(s2)
(d)
(d)+1
(d)+2
Double word Indirect
specification
Z
LT, LST,
LZ
LC
51
50
49
48
(s1)
Held
Held
Held
6.1 Comparison Operation Instructions
Constant
Others
K, H E
$
6 BASIC INSTRUCTIONS
223
6

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents