Outputting A Band Comparison Result Of 32-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 32-bit binary data

DZCP(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 32-bit binary data specified by lower limit value (s1) and the 32-bit binary
data specified by upper limit value (s2) with the 32-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
DZCP
DZCP_U
DZCPP
DZCPP_U
Setting data
■Description, range, data type
Operand
(s1)
DZCP(P)
DZCP(P)_U
(s2)
DZCP(P)
DZCP(P)_U
(s3)
DZCP(P)
DZCP(P)_U
(d)
EN
ENO
6 BASIC INSTRUCTIONS
228
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:=DZCP(EN,s1,s2,s3,d);
ENO:=DZCPP(EN,s1,s2,s3,d);
Range
Data type
-2147483648 to 2147483647
32-bit signed binary
0 to 4294967295
32-bit unsigned binary
-2147483648 to 2147483647
32-bit signed binary
0 to 4294967295
32-bit unsigned binary
-2147483648 to 2147483647
32-bit signed binary
0 to 4294967295
32-bit unsigned binary
Bit
Bit
Bit
ENO:=DZCP_U(EN,s1,s2,s3,d);
ENO:=DZCPP_U(EN,s1,s2,s3,d);
Data type (label)
ANY32_S
ANY32_U
ANY32_S
ANY32_U
ANY32_S
ANY32_U
ANYBIT_ARRAY
(Number of elements: 3)
BOOL
BOOL

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents