Mitsubishi MELSEC Q Series Programming Manual page 218

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

BKCMP
,BKCMP
P
(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
signal) goes ON.
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
• The range of the device n points from a device designated by
relevant device.
• 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
Program Example
(1) The following program compares, when X20 is turned ON, the data stored at D100 to D103
with the data stored at R0 to R3 and stores the operation result into the area starting from
M10.
[Ladder Mode]
[Operation]
b15
D100
D101
D102
D103
6-16
Comparison
Condition
Operation Result
=
S2
S1
S2
S1
>
S1
S2
ON (1)
S2
S1
<
S2
S1
S1
S2
b0
1000
(BIN)
2000
(BIN)
3000
(BIN)
4000
(BIN)
D0
4
Instruction
Symbols
BKCMP=
BKCMP<>
BKCMP>
BKCMP<=
BKCMP<
BKCMP>=
are ON (1), SM704 (block comparison
D
[List Mode]
Instruction
Step
b15
b0
R0
1000
(BIN)
R1 2000
(BIN)
R2
5000
(BIN)
R3
4000
(BIN)
Comparison
Condition
Operation Result
S2
S1
=
S2
S1
S1
S2
OFF (0)
>
S2
S1
S2
S1
<
S1
S2
,
or
exceeds the
S1
S2
D
(Error code: 4101)
overlaps with the
S1
.
D
(Error code: 4101)
overlaps with the
S2
.
D
(Error code: 4101)
Device
M10
ON
M11
ON
M12
OFF
M13
ON

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents