232
BCD, BCDP, DBCD, DBCDP
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.
Program Example
(1) The following program outputs the present value of C4 from Y20 to Y2F to the BCD display device.
[Ladder Mode]
[List Mode]
(2) The following program outputs 32-bit data from D0 to D1 to Y40 to Y67.
[Ladder Mode]
[List Mode]
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
4100
The data of is other than 0 to 9999 when the BCD instruction is
executed.
4100
The data of or +1 is other than 0 to 99999999 when the DBCD
instruction is executed.
S
S
S
Programmab
l
e
Contro
ll
er
Output
Modu
l
e
0 1 0 1
0 1 1 0
0 1 1 1
1 0 0 0
Output
power
supp
ly
7
-
segment
d
i
sp
l
a
y
un
i
t
8000
4
000
2000
1000
800
4
00
200
100
80
4
0
20
10
8
4
2
1
Y
27
Y
26
Y
25
Y
2
4
Y
23
Y
22
Y
21
Y
20
Y
2B
Y
2A
Y
29
Y
28
Y
2
F
Y
2
E
Y
2D
Y
2C
COM
Step
Instruction
Device
Programmab
l
e
Contro
ll
er
Output
Modu
l
e
Output
power
supp
ly
7
-
segment
d
i
sp
l
a
y
un
i
t
Y
67
to
Y
6
4
Y
63
to
Y
60
Y
5
F
to
Y
5C
Y
5B
to
Y
58
Y
57
to
Y
5
4
Y
53
to
Y
50
Y4F
to
Y4
C
Y4
B
to
Y4
8
Y4
7
to
Y44
Y4
3
to
Y4
0
Step
Instruction
Device