Comparing 16-Bit Binary Data Band - Mitsubishi MELSEC iQ-F FX5 series Programming Manual

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

Advertisement

Comparing 16-bit binary data band

ZCP(P)(_U)
These instructions perform a comparison operation on the 16-bit binary data in the device specified by (s1) and the 16-bit
binary data in the device specified by (s2) with the 16-bit binary data in the device specified by comparison source (s3), and
output the comparison result (below, within zone, above) to the device specified by (d) onwards.
Ladder diagram
(s1)
(s2)
(s3)
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s1)
ZCP(P)
Lower limit comparison data or the device
where the comparison data is stored
ZCP(P)_U
(s2)
ZCP(P)
Upper limit comparison data or the device
where the comparison data is stored
ZCP(P)_U
(s3)
ZCP(P)
Comparison source data or the device where
the comparison source data is stored
ZCP(P)_U
(d)
The starting bit device to which the comparison
result is output
■Applicable devices
Operand
Bit
X, Y, M, L,
U\G T, ST,
SM, F, B, SB
(s1)
(s2)
(s3)
(d)
*1 T, ST, C cannot be used.
(d)
Word
T, ST, C, D,
U\G
C, LC
W, SD, SW, R
*1
Structured text
ENO:=ZCP(EN,s1,s2,s3,d);
ENO:=ZCPP(EN,s1,s2,s3,d);
Range
Data type
-32768 to +32767
16-bit signed binary
0 to 65535
16-bit unsigned binary
-32768 to +32767
16-bit signed binary
0 to 65535
16-bit unsigned binary
-32768 to +32767
16-bit signed binary
0 to 65535
16-bit unsigned binary
Bit
Double word Indirect
specification
Z
LC
LZ
6.1 Comparison Operation Instructions
ENO:=ZCP_U(EN,s1,s2,s3,d);
ENO:=ZCPP_U(EN,s1,s2,s3,d);
Data type (label)
ANY16
ANY16_U
ANY16
ANY16_U
ANY16
ANY16_U
ANY_BOOL
Constant
Others
K, H
E
$
6 BASIC INSTRUCTIONS
153
6

Advertisement

Table of Contents
loading

Table of Contents