Basic Instructions - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

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

Advertisement

2.2

Basic Instructions

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents