
160
6 BASIC INSTRUCTIONS
6.1 Comparison Operation Instructions
• 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.).
Operation error
When bit is specified for word device, devices other than the bit-specified word devices where operation result
is stored will not change.
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)
Error code
(SD0/SD8067)
Description
2820
The (n)
2 points of data starting from the device specified by (s1) and (s2) or the (n) point(s) of data starting from the device specified by
(d) exceeds said device.
2821
When (d) specifies "D
.b", the (n) point(s) of data starting from the device specified by (d) and the device range of the (n)
2 points of
data starting from the device specified by (s1) overlap.
When (d) specifies "D
.b", the (n) point(s) of data starting from the device specified by (d) and the device range of the (n)
2 points of
data starting from the device specified by (s2) overlap.
···
···
···
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)
>=
Operation result
D10.F
D10.0
0
0
1
0
1
1
1
1
1
0
0
1
1
0
0
0
D10.F
D10.0
0
0
1
0
1
1
0
0
0
0
1
1
1
0
0
0
Summary of Contents for MELSEC iQ-F FX5 series
Page 1: ...MELSEC iQ F FX5 Series Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 21: ...19 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW ...
Page 98: ...96 4 STANDARD FUNCTIONS FUNCTION BLOCKS 4 2 Standard Function Blocks MEMO ...
Page 840: ...838 23 TIME DATA FUNCTIONS 23 4 Division MEMO ...
Page 887: ......