Outputting A Band Comparison Result Of 16-Bit Binary Data - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

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

Advertisement

Outputting a band comparison result of 16-bit binary data

ZCP(P)(_U)
RnPCPU
RnCPU RnENCPU
(Process)
• The RnCPU and RnENCPU with firmware version "17" or later support this instruction. (Use an engineering tool with version "1.020W" or later.)
These instructions compare the band between the 16-bit binary data specified by lower limit value (s1) and the 16-bit binary
data specified by upper limit value (s2) with the 16-bit binary data in the device specified by comparison data (s3). According
to the comparison result (below, within zone, or above), (d), (d)+1, or (d)+2 is turned on.
Ladder
(s1)
FBD/LD
EN
ENO
s1
d
s2
s3
■Execution condition
Instruction
ZCP
ZCP_U
ZCPP
ZCPP_U
Setting data
■Description, range, data type
Operand
(s1)
ZCP(P)
ZCP(P)_U
(s2)
ZCP(P)
ZCP(P)_U
(s3)
ZCP(P)
ZCP(P)_U
(d)
EN
ENO
6 BASIC INSTRUCTIONS
226
6.1 Comparison Operation Instructions
RnPCPU
RnSFCPU RnSFCPU
(Redundant)
(Standard)
(Safety)
(s2)
(s3)
(d)
Execution condition
Description
Lower limit value or the start device for storing
the lower limit value
Upper limit value or the start device for storing
the upper limit value
Comparison data or the start device for storing
the comparison data
The start device where the comparison result is
stored
Execution condition
Execution result
ST
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
Bit
Bit
ENO:=ZCP_U(EN,s1,s2,s3,d);
ENO:=ZCPP_U(EN,s1,s2,s3,d);
Data type (label)
ANY16_S
ANY16_U
ANY16_S
ANY16_U
ANY16_S
ANY16_U
ANYBIT_ARRAY
(Number of elements: 3)
BOOL
BOOL

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents