EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Outputting a Comparison Result of 32-Bit Binary Data

Mitsubishi Electric MELSEC iQ-R Series
2110 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
224
6 BASIC INSTRUCTIONS
6.1 Comparison Operation Instructions
Outputting a comparison result of 32-bit binary data
DCMP(P)(_U)
These instructions compare the 32-bit binary data specified by (s1) with the 32-bit binary data specified by (s2), and according
to the result (small, equal, or large), (d), (d)+1, or (d)+2 is turned on.
Execution condition
Setting data
Description, range, data type
Applicable devices
*1 FX and FY cannot be used.
*2 T, ST, and C cannot be used.
The RnCPU and RnENCPU with firmware version "17" or later support this instruction. (Use an engineering tool with version "1.020W" or later.)
Ladder ST
ENO:=DCMP(EN,s1,s2,d);
ENO:=DCMPP(EN,s1,s2,d);
ENO:=DCMP_U(EN,s1,s2,d);
ENO:=DCMPP_U(EN,s1,s2,d);
FBD/LD
Instruction Execution condition
DCMP
DCMP_U
DCMPP
DCMPP_U
Operand Description Range Data type Data type (label)
(s1) DCMP(P) Comparison data or the device where the
comparison data is stored
-2147483648 to 2147483647 32-bit signed binary ANY32_S
DCMP(P)_U 0 to 4294967295 32-bit unsigned binary ANY32_U
(s2) DCMP(P) Comparison data or the device where the
comparison data is stored
-2147483648 to 2147483647 32-bit signed binary ANY32_S
DCMP(P)_U 0 to 4294967295 32-bit unsigned binary ANY32_U
(d) The start device where the comparison result is
stored
Bit ANYBIT_ARRAY
(Number of elements: 3)
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
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

(d) 
*2
 
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)
(s1) (s2) (d)
EN ENO
ds1
s2

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals