Mitsubishi MELSEC-Q/L Programming Manual page 355

Table of Contents

Advertisement

Operation Error
(1) In the following case, 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 exceed those of the corresponding device
4101
specified in
.
D
Program Example
(1) The following program turns OFF devices from M0 to M7 when X0 is turned ON.
[Ladder Mode]
[Operation]
M9
M8
M7
M4
M3
M0
1 1
1 0 0 1
1 1 0 0
(2) The following program sets data from 2nd bit (b2) of D10 to 1st bit (b1) of D11 to 0 when X20 is turned ON.
[Ladder Mode]
[Operation]
b15
b8
b7
D10
1 1 1 0 0 0 0 1 1 1 1 1 1 1 1 0
b15
b8
b7
D11
0 0 0 1 0 1 0 0 1 1 1 1 1 1 1 1
Error details
[List Mode]
Step
M9
M8
M7
M4
M3
M0
1 1
0 0 0 0
0 0 0 0
Not changed
[List Mode]
Step
b2
b1
b0
b15
D10
0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
b1
b0
b15
D11
0 0 0 1 0 1 0 0 1 1 1 1 1 1 0 0
Q00J/
Q00/
QnH
QnPH QnPRH
Q01
Instruction
Device
Instruction
Device
b8
b7
b2
b1
b0
b0
b8
b7
b1
BKRST, BKRSTP
QnU
LCPU
353
1
2
3
4
4
6
7
8

Advertisement

Table of Contents
loading

Table of Contents