Mitsubishi MELSEC-Q/L Programming Manual page 185

Table of Contents

Advertisement

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.
Error
code
The points specified in n exceeds those of each device specified in
, or
.
S2
D
The ranges of devices starting from the one specified in
4101
overlap by n points.
The ranges of devices starting from the one specified in
overlap by n points.
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
b0
D100
1000
(BIN)
D101
2000
(BIN)
D102
3000
(BIN)
D103
4000
(BIN)
D0
4
(2) The following program compares, when X1C is turned ON, the constant K1000 with the data stored at D10 to D13, and
stores the operation result at b4 to b7 in D0.
[Ladder Mode]
[Operation]
b15
b0
1000
(BIN)
D0 before
operation
D0 after
operation
Error details
S1
S2
[List Mode]
Step
b15
b0
R0
1000
(BIN)
R1 2000
(BIN)
R2
5000
(BIN)
R3
4000
(BIN)
[List Mode]
Step
b15
b0
D10
2000 (BIN)
D11
1000 (BIN)
D12
1000 (BIN)
D13
2222 (BIN)
b15
b7
b4
b0
0 1 0 0 0 0 1 0 0 0 1 0 0 0 0 0
b15
b7
b4
b0
0 1 0 0 0 0 1 0 1 0 0 1 0 0 0 0
BKCMP , BKCMP P
Q00J/
Q00/
QnH
Q01
,
S1
and
D
––
––
and
D
Instruction
Device
M10
ON
M11
ON
M12
OFF
M13
ON
Device
Instruction
QnPH QnPRH
QnU
LCPU
––
––
183
1
2
3
4
6
7
8

Advertisement

Table of Contents
loading

Table of Contents