Comparing 32-Bit Binary Block Data - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

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

Advertisement

Comparing 32-bit binary block data

DBKCMP(P)(_U)
RnPCPU
RnCPU RnENCPU
(Process)
These instructions compare the two sets of 32-bit binary block data specified.
Ladder
(s1)
( is replaced by any of the following: DBKCMP=(P)(_U),
DBKCMP<>(P)(_U), DBKCMP>(P)(_U), DBKCMP<=(P)(_U),
DBKCMP<(P)(_U), DBKCMP>=(P)(_U).)
FBD/LD
EN
ENO
s1
d
s2
n
( is to be replaced by combination of any of the following: DBKCMP_ and EQ(P)(_U), NE(P)(_U), GT(P)(_U), LE(P)(_U), LT(P)(_U), GE(P)(_U).)
*1 The engineering tool with version "1.035M" or later supports the ST.
*2 EQ indicates =, NE indicates <>, GT indicates >, LE indicates <=, LT indicates <, and GE indicates >=.
■Execution condition
Instruction
DBKCMP(_U)
DBKCMPP(_U)
Setting data
■Description, range, data type
Operand
(s1)
DBKCMP(P)
DBKCMP(P)_
U
(s2)
DBKCMP(P)
DBKCMP(P)_
U
(d)
(n)
EN
ENO
*1 When specifying setting data by using a label, define an array to secure enough operation area and specify an element of the array
label.
6 BASIC INSTRUCTIONS
232
6.1 Comparison Operation Instructions
RnPCPU
RnSFCPU RnSFCPU
(Redundant)
(Standard)
(Safety)
(s2)
(d)
(n)
Execution condition
Description
Comparison data or the start device where the
comparison data is stored
Start device where the comparison data is
stored
Start device for storing the comparison
operation result
Number of data points to be compared
Execution condition
Execution result
*1
ST
ENO:=DBKCMP_(EN,s1,s2,n,d);
ENO:=DBKCMP_P(EN,s1,s2,n,d);
( is replaced by any of the following: EQ, NE, GT, LE, LT, GE.)
Range
Data type
-2147483648 to 2147483647
32-bit signed binary
0 to 4294967295
32-bit unsigned binary
32-bit signed binary
32-bit unsigned binary
Bit
0 to 65535
16-bit unsigned binary
Bit
Bit
ENO:=DBKCMP__U(EN,s1,s2,n,d)
;
ENO:=DBKCMP_P_U(EN,s1,s2,n,
d);
*2
*2
Data type (label)
*1
ANY32_S
*1
ANY32_U
*1
ANY32_S
*1
ANY32_U
*1
ANY_BOOL
ANY16
BOOL
BOOL

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents