180
7 BASIC INSTRUCTIONS
7.1 Comparison Operation Instructions
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.
• Comparison operation is performed in units of 32 bits.
• A constant can be directly specified in (s1).
• (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.
• 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.).
Instruction symbol
Condition
Result
DBKCMP=(P)(_U)
(s1) = (s2)
On(1)
DBKCMP<>(P)(_U)
(s1)
(s2)
DBKCMP>(P)(_U)
(s1) > (s2)
DBKCMP<=(P)(_U)
(s1)
(s2)
DBKCMP<(P)(_U)
(s1) < (s2)
DBKCMP>=(P)(_U)
(s1)
(s2)
DBKCMP=(P)(_U)
(s1)
(s2)
Off(0)
DBKCMP<>(P)(_U)
(s1) = (s2)
DBKCMP>(P)(_U)
(s1)
(s2)
DBKCMP<=(P)(_U)
(s1) > (s2)
DBKCMP<(P)(_U)
(s1)
(s2)
DBKCMP>=(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)+(2n-2)
(s1)+(2n-1),
(s1)+4
(s1)+3,
(s1)+5,
(s2)
(s2)+1,
(s2)+2
(s2)+(2n-2)
(s2)+(2n-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)+(2n-2)
(s2)+(2n-1),
(s2)+4
(s2)+3,
(s2)+5,
(d)
(d)+1
(d)+2
(d)+(n-1)
∙∙∙
32800
(BIN)
b31
∙∙∙
b0
(s1)+1, (s1)
>=
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......