Mitsubishi MELSEC iQ-F FX5 series Programming Manual page 160

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

Advertisement

• A constant can be directly specified in (s1).
(s1)
32000
(BIN)
• The following table lists the comparison operation result of each instruction.
Instruction symbol
BKCMP=(P)(_U)
BKCMP<>(P)(_U)
BKCMP>(P)(_U)
BKCMP<=(P)(_U)
BKCMP<(P)(_U)
BKCMP>=(P)(_U)
BKCMP=(P)(_U)
BKCMP<>(P)(_U)
BKCMP>(P)(_U)
BKCMP<=(P)(_U)
BKCMP<(P)(_U)
BKCMP>=(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.
Operation error
Error code
Description
(SD0/SD8067)
2820
The (n) point(s) starting from the device specified by (s1), (s2), and (d) exceeds said device.
2821
When (d) specifies "D.b", the data register of (d) and the (n) point(s) of data starting from the device specified by (s1) overlap.
When (d) specifies "D.b", the data register of (d) and the (n) point(s) of data starting from the device specified by (s2) overlap.
6 BASIC INSTRUCTIONS
158
6.1 Comparison Operation Instructions
∙∙∙
b15
(s2)
32000
(BIN)
(s2)+1
4321
(BIN)
(s2)+2
32000
(BIN)
=
(s2)+(n-2)
1234
(BIN)
(s2)+(n-1)
5678
(BIN)
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)
Operation result
b0
(d)
ON
(d)+1
OFF
(d)+2
ON
(n)
(d)+(n-2)
OFF
(d)+(n-1)
OFF
(1)
(0)
(1)
(n)
(0)
(0)
Result
On(1)
Off(0)

Advertisement

Table of Contents
loading

Table of Contents