Comparing 32-Bit Binary Block Data - 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 32-bit binary block data

DBKCMP(P)(_U)
These instructions perform a comparison operation between the (n) point(s) of 32-bit binary data starting from the device
specified by (s1) and the (n) point(s) of 32-bit binary data starting from the device specified by (s2), and store the operation
result in the device specified by (d).
Ladder diagram
(s1)
(s2)
(d)
( is to be replaced by any of the following: DBKCMP=(P)(_U),
DBKCMP<>(P)(_U), DBKCMP>(P)(_U), DBKCMP<=(P)(_U),
DBKCMP<(P)(_U), DBKCMP>=(P)(_U).)
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s1)
DBKCMP(P)
Comparison data or the head device where the
comparison data is stored
DBKCMP(P)_
U
(s2)
DBKCMP(P)
Head device where the comparison source
data is stored
DBKCMP(P)_
U
(d)
Head device storing comparison result
(n)
Number of data to be compared
■Applicable devices
Operand
Bit
X, Y, M, L,
U\G T, ST,
SM, F, B, SB
(s1)
(s2)
(d)
(n)
*1 T, ST, C cannot be used.
Processing details
• These instructions perform a comparison operation between (n) point(s) of 32-bit binary data starting from the device
specified by (s1) and (n) point(s) of 32-bit binary data starting from the device specified by (s2), and store the comparison
result in (n) point(s) of data starting from the device specified by (d).
• The relevant (n) point(s) of data starting from the device specified by (d) are turned ON when the comparison conditions are
met and turned OFF when the comparison conditions are not met.
b31
···
(s1)
(s1)+1,
1090
(s1)+3,
(s1)+2
2080
(s1)+5,
(s1)+4
5060
(s1)+(2n-1),
(s1)+(2n-2)
1106
• Comparison operation is performed in units of 32 bits.
(n)
Word
T, ST, C, D,
C, LC
W, SD, SW, R
*1
b0
(s2)+1,
(BIN)
(s2)+3,
(BIN)
(s2)+5,
(BIN)
(n)
=
(s2)+(2n-1),
(BIN)
Structured text
Not supported
Range
-2147483648 to +2147483647
0 to 4294967295
0 to 65535
Double word Indirect
U\G
Z
LC
LZ
b31
···
b0
(s2)
1000
(BIN)
(s2)+2
2000
(BIN)
(s2)+4
(n)
5060
(BIN)
(s2)+(2n-2)
1106
(BIN)
6.1 Comparison Operation Instructions
Data type
Data type (label)
32-bit signed binary
ANY32
32-bit unsigned binary
ANY32_U
32-bit signed binary
ANY32
32-bit unsigned binary
ANY32_U
Bit
ANY_BOOL
16-bit unsigned binary
ANY16_U
Constant
specification
K, H
E
$
Operation result
(d)
OFF
(0)
OFF
(0)
(d)+1
ON
(1)
(d)+2
(d)+(n-1)
ON
(1)
6 BASIC INSTRUCTIONS
6
Others
(n)
159

Advertisement

Table of Contents
loading

Table of Contents