Mitsubishi MELSEC QCPU Programming Manual page 164

Programmable logic controller
Table of Contents

Advertisement

6 BASIC INSTRUCTIONS
(2) The comparison operation is conducted in 16-bit units.
(3) The constant designated by
32000
S1
(4) The results of the comparison operations for the individual instructions are as follows:
Instruction
Symbols
BKCMP
BKCMP
BKCMP
BKCMP
BKCMP
BKCMP
(5) If all comparison results stored n-points from
goes ON.
[Operation Errors]
(1) In the following cases an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored at SD0.
• The range of the device n points from a device designated by
relevant device. (Error code: 4101)
• The device range for n points starting from the device designated by
device range for n points starting from the device designated by
• The device range for n points starting from the device designated by
device range for n points starting from the device designated by
• The device range for n points starting from the device designated by
device range for n points starting from the device designated by
(2) See Section 3.6 for information regarding errors during index modification.
6 - 13
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
can be between -32768 and 32767 (BIN 16-bit data).
S1
32000
S2
+1
S2
+2
32000
S2
=
(BIN)
+(n-2)
S2
+(n-1)
S2
Comparison
Condition
Operation Result
S1
S2
S1
S2
S1
S2
ON (1)
S1
S2
S1
S2
S1
S2
(BIN)
D
4321
(BIN)
+1
D
+2
(BIN)
D
n
1234
(BIN)
+(n-2)
D
5678
(BIN)
+(n-1)
D
Instruction
Symbols
BKCMP
BKCMP
BKCMP
BKCMP
BKCMP
BKCMP
are ON (1), SM704 (block comparison signal)
D
MELSEC-Q/QnA
Operation Results
ON
(1)
OFF
(0)
ON
(1)
n
OFF
(0)
OFF
(0)
Comparison
Condition
Operation Result
S1
S2
S1
S2
S1
S2
OFF (0)
S1
S2
S1
S2
S1
S2
,
or
exceeds the
D
S1
S2
overlaps with the
S1
. (Error code: 4101)
D
overlaps with the
S2
. (Error code: 4101)
D
overlaps with the
S1
. (Error code: 4101)
S2
6 - 13

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents