EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 235

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...
6 BASIC INSTRUCTIONS
6.1 Comparison Operation Instructions
233
6
Applicable devices
Processing details
These instructions compare the (n) points of 32-bit binary data from the device specified by (s1) with the (n) points of 32-bit
binary data from the device specified by (s2), and stores the operation result in the device specified by (d) and later.
If the comparison condition is satisfied, the relevant device specified by (d) turns on; otherwise, the device turns off.
Comparison operation is performed in units of 32 bits.
A constant can be specified for (s1).
Specify (d) outside the device ranges for (n) points from the device specified by (s1) and those from the device specified by
(s2).
The following table lists the comparison operation results of each instruction.
When the comparison operation results stored in (n) points from the device specified by (d) are all on (1), SM704 turns on.
If (n) is 0, no processing is performed.
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB,
FX, FY
J\ T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
U\G, J\,
U3E\(H)G
Z LT, LST,
LC
LZ K,
H
E $
(s1)  
(s2)  
(d)  
(n) 
Instruction symbol (ladder, FBD/LD) Condition Result
DBKCMP=(P)(_U), DBKCMP_EQ(P)(_U) (s1)=(s2) On (1)
DBKCMP<>(P)(_U), DBKCMP_NE(P)(_U) (s1)(s2)
DBKCMP>(P)(_U), DBKCMP_GT(P)(_U) (s1)>(s2)
DBKCMP<=(P)(_U), DBKCMP_LE(P)(_U) (s1)(s2)
DBKCMP<(P)(_U), DBKCMP_LT(P)(_U) (s1)<(s2)
DBKCMP>=(P)(_U), DBKCMP_GE(P)(_U) (s1)(s2)
DBKCMP=(P)(_U), DBKCMP_EQ(P)(_U) (s1)(s2) Off (0)
DBKCMP<>(P)(_U), DBKCMP_NE(P)(_U) (s1)=(s2)
DBKCMP>(P)(_U), DBKCMP_GT(P)(_U) (s1)(s2)
DBKCMP<=(P)(_U), DBKCMP_LE(P)(_U) (s1)>(s2)
DBKCMP<(P)(_U), DBKCMP_LT(P)(_U) (s1)(s2)
DBKCMP>=(P)(_U), DBKCMP_GE(P)(_U) (s1)<(s2)






=
OFF
OFF
ON
ON
(n)
1090 (BIN)
2080 (BIN)
5060 (BIN)
1106 (BIN)
(n)
b31 b0
1000 (BIN)
2000 (BIN)
5060 (BIN)
1106 (BIN)
(0)
(0)
(1)
(1)
(n)
b31 b0
(s1)
(s1)+1,
(s1)+2
(s1)+2(n)-2
(s1)+2(n)-1,
(s1)+4
(s1)+3,
(s1)+5,
(s2)
(s2)+1,
(s2)+2
(s2)+2(n)-2
(s2)+2(n)-1,
(s2)+4
(s2)+3,
(s2)+5,
(d)
(d)+1
(d)+2
(d)+(n)-1




ON
OFF
ON
OFF
(n)
32700 (BIN)
40000 (BIN)
32800 (BIN)
2147400 (BIN)
(1)
(0)
(1)
(0)
(n)
b31
b0
(s2)
(s2)+1,
(s2)+2
(s2)+2(n)-2
(s2)+2(n)-1,
(s2)+4
(s2)+3,
(s2)+5,
(d)
(d)+1
(d)+2
(d)+(n)-1

32800 (BIN)
b31 
b0
(s1)+1, (s1)
>=

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals