EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Outputting a Band Comparison Result of 16-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...
226
6 BASIC INSTRUCTIONS
6.1 Comparison Operation Instructions
Outputting a band comparison result of 16-bit binary data
ZCP(P)(_U)
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.
Execution condition
Setting data
Description, range, data type
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:=ZCP(EN,s1,s2,s3,d);
ENO:=ZCPP(EN,s1,s2,s3,d);
ENO:=ZCP_U(EN,s1,s2,s3,d);
ENO:=ZCPP_U(EN,s1,s2,s3,d);
FBD/LD
Instruction Execution condition
ZCP
ZCP_U
ZCPP
ZCPP_U
Operand Description Range Data type Data type (label)
(s1) ZCP(P) Lower limit value or the start device for storing
the lower limit value
-32768 to 32767 16-bit signed binary ANY16_S
ZCP(P)_U 0 to 65535 16-bit unsigned binary ANY16_U
(s2) ZCP(P) Upper limit value or the start device for storing
the upper limit value
-32768 to 32767 16-bit signed binary ANY16_S
ZCP(P)_U 0 to 65535 16-bit unsigned binary ANY16_U
(s3) ZCP(P) Comparison data or the start device for storing
the comparison data
-32768 to 32767 16-bit signed binary ANY16_S
ZCP(P)_U 0 to 65535 16-bit unsigned binary ANY16_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
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)
(s1) (s2) (s3) (d)
EN ENO
ds1
s2
s3

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals