72
2 CPU MODULE INSTRUCTIONS
2.2 Basic Instructions
2.2 Basic Instructions
Comparison operation instructions
■Comparing 16-bit binary data
■Comparing 32-bit binary data
■Outputting a comparison result of 16-bit binary data
Instruction symbol Processing details Reference
LD=, AND=, OR= Compares the two sets of 16-bit binary data specified. (Devices are used as normally open
contacts.)
Page 218 LD(_U),
AND(_U), OR(_U)
LD=_U, AND=_U, OR=_U
LD<>, AND<>, OR<>
LD<>_U, AND<>_U, OR<>_U
LD>, AND>, OR>
LD>_U, AND>_U, OR>_U
LD<=, AND<=, OR<=
LD<=_U, AND<=_U, OR<=_U
LD<, AND<, OR<
LD<_U, AND<_U, OR<_U
LD>=, AND>=, OR>=
LD>=_U, AND>=_U, OR>=_U
Instruction symbol Processing details Reference
LDD=, ANDD=, ORD= Compares the two sets of 32-bit binary data specified. (Devices are used as normally open
contacts.)
Page 220 LDD(_U),
ANDD(_U),
ORD(_U)
LDD=_U, ANDD=_U,
ORD=_U
LDD<>, ANDD<>, ORD<>
LDD<>_U, ANDD<>_U,
ORD<>_U
LDD>, ANDD>, ORD>
LDD>_U, ANDD>_U,
ORD>_U
LDD<=, ANDD<=, ORD<=
LDD<=_U, ANDD<=_U,
ORD<=_U
LDD<, ANDD<, ORD<
LDD<_U, ANDD<_U,
ORD<_U
LDD>=, ANDD>=, ORD>=
LDD>=_U, ANDD>=_U,
ORD>=_U
Instruction symbol Processing details Reference
CMP Compares 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.
Page 222 CMP(P)(_U)
CMPP
CMP_U
CMPP_U