Mitsubishi MELSEC-Q/L Programming Manual page 453

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 range of the device specified in
4101
corresponding device.
Program Example
(1) The following program uses the PR instruction to output the hexadecimal value of the 16-bit BIN data at W0 in ASCII
code to Y40 to Y48.
[Ladder Mode]
[Operation]
Conducts ASCII output of Y40 to Y48 by using the PR instruction when X0 goes ON.
Because SM701 is OFF, The PR instruction will output ASCII code until 00
b15
W0
D0
9C06
D1
H
D2
BIN value
(2) The following program uses the PR instruction to output the hexadecimal value of the 32-bit BIN data at W10 and W11 to
Y40 to Y48.
[Ladder Mode]
[Operation]
Conducts ASCII output of Y40 to Y48 by using the PR instruction when X0 goes ON.
Because SM701 is OFF, The PR instruction will output ASCII code until 00
W10
W11
7 B 3 C 5 8 1 F
H
Error details
exceeds the range of the
D
[List Mode]
Step
b8b7
43
(C)
39
(9)
H
H
36
(6)
30
(0)
H
H
00
H
[List Mode]
Step
b15
b8b7
D0
42
(B)
37
H
D1
43
(C)
33
H
D2
38
(8)
35
H
D3
46
(F)
31
H
00
D4
H
BINHA, BINHAP, DBINHA, DBINHAP
Q00J/
Q00/
QnH
Q01
––
––
Instruction
Device
is encountered.
H
b0
PR
Y40 to Y48
Outputs "9C06"
Instruction
Device
is encountered.
H
b0
(7)
H
(3)
PR
H
Y40 to Y48
(5)
H
(1)
Outputs "7B3C581F"
H
QnPH QnPRH
QnU
LCPU
––
––
451
1
2
3
4
4
6
7
8

Advertisement

Table of Contents
loading

Table of Contents