Download Print this page

Comparison Output 32-Bit Binary Data - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Comparison output 32-bit binary data

DCMP(P)(_U)
These instructions perform a comparison operation between the 32-bit binary data in the devices specified by (s1) and (s2).
Ladder diagram
(s1)
FBD/LD
EN
ENO
s1
d
s2
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s1)
DCMP(P)
Comparison value data or the head device
where the comparison value data is stored
DCMP(P)_U
(s2)
DCMP(P)
Comparison source data or the head device
where the comparison source data is stored
DCMP(P)_U
(d)
The starting bit device to which the comparison
result is output
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(s1)
(s2)
(d)
*1 T, ST, C cannot be used.
(s2)
(d)
Word
T, ST, C, D, W,
U\G
SD, SW, R
*1
Structured text
ENO:=DCMP(EN,s1,s2,d);
ENO:=DCMPP(EN,s1,s2,d);
Range
Data type
-2147483647 to +2147483647
32-bit signed binary
0 to 4294967295
32-bit unsigned binary
-2147483647 to +2147483647
32-bit signed binary
0 to 4294967295
32-bit unsigned binary
Bit
Bit
Bit
Double word Indirect
specification
Z
LC
LZ
7.1 Comparison Operation Instructions
ENO:=DCMP_U(EN,s1,s2,d);
ENO:=DCMPP_U(EN,s1,s2,d);
Data type (label)
ANY32_S
ANY32_U
ANY32_S
ANY32_U
ANYBIT_ARRAY
(Number of elements:
3)
BOOL
BOOL
Constant
Others
K, H
E
$
7 BASIC INSTRUCTIONS
171
7

Hide quick links:

Advertisement

loading