Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 182

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

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.
(s1)+1,
(s1)
(s1)+3,
(s1)+2
(s1)+5,
(s1)+4
(s1)+(2n-1),
(s1)+(2n-2)
• Comparison operation is performed in units of 32 bits.
• A constant can be directly specified in (s1).
b31
∙∙∙
(s1)+1, (s1)
32800
(BIN)
• (d) is specified outside the device range of (n) point(s) of data starting from the one specified by (s1) and outside the device
range of (n) point(s) of data starting from the one specified by (s2).
• The following table lists the comparison operation result of each instruction.
Instruction symbol
DBKCMP=(P)(_U)
DBKCMP<>(P)(_U)
DBKCMP>(P)(_U)
DBKCMP<=(P)(_U)
DBKCMP<(P)(_U)
DBKCMP>=(P)(_U)
DBKCMP=(P)(_U)
DBKCMP<>(P)(_U)
DBKCMP>(P)(_U)
DBKCMP<=(P)(_U)
DBKCMP<(P)(_U)
DBKCMP>=(P)(_U)
• When the comparison operation result is all ON (1) in all (n) point(s) starting from (d), SM704 and SM8090 (block
comparison signal) turns ON.
Precautions
If a 32-bit counter (high-speed counter included) is used, make sure to compare using the 32-bit operation (DBKCMP=,
DBKCMP>, DBKCMP<, etc.).
7 BASIC INSTRUCTIONS
180
7.1 Comparison Operation Instructions
b31
∙∙∙
b0
1090
(BIN)
2080
(BIN)
5060
(BIN)
(n)
=
1106
(BIN)
(s2)+1,
(s2)+3,
b0
(s2)+5,
>=
(s2)+(2n-1),
Condition
(s1) = (s2)
(s1)  (s2)
(s1) > (s2)
(s1)  (s2)
(s1) < (s2)
(s1)  (s2)
(s1)  (s2)
(s1) = (s2)
(s1)  (s2)
(s1) > (s2)
(s1)  (s2)
(s1) < (s2)
b31
(s2)+1,
(s2)
1000
(s2)+3,
(s2)+2
2000
(s2)+5,
(s2)+4
5060
(s2)+(2n-1),
(s2)+(2n-2)
1106
b31
∙∙∙
b0
(s2)
32700
(BIN)
(s2)+2
40000
(BIN)
(s2)+4
32800
(BIN)
(n)
(s2)+(2n-2)
2147400 (BIN)
∙∙∙
b0
(BIN)
(d)
(BIN)
(d)+1
(n)
(BIN)
(d)+2
(BIN)
(d)+(n-1)
(d)
ON
(d)+1
OFF
(d)+2
ON
(d)+(n-1)
OFF
Result
On(1)
Off(0)
OFF
(0)
OFF
(0)
ON
(1)
(n)
(1)
ON
(1)
(0)
(1)
(n)
(0)

Hide quick links:

Advertisement

loading