Mitsubishi MELSEC-Q/L Programming Manual page 455

Table of Contents

Advertisement

DBCDDA
(1) Converts the individual digit numbers of hexadecimal notation of the BCD 8-digit data designated by
and stores the results into the area starting from the device designated by
S
+1
b31 b28
b27
b24
b23 b20
b19
b16
b15 b12
Ten
Millions
Hundred
Ten
Thou-
millions
place
thou-
thou-
sands
place
sands
sands
place
place
place
For example, if the value 01234056 is designated by
manner:
b31 b28
b27
b24
b23 b20
b19
b16
b15 b12
0
1
2
3
4
S
+1
(2) The BCD data designated by
(3) The results of calculation stored in the device
suppressed.
0 0 0 1
2 0 9 8
Number of significant digits
20
H
(4) The data to be stored at the device designated by
characters to output select signal).
When SM701 is OFF.....Stores "0"
When SM701 is ON......Does not change
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
During the operation of the BCDDA instruction, the data of
than 0 to 9999.
4100
During the operation of the DBCDDA instruction, the data of
than 0 to 99999999.
The range of the device specified in
4101
corresponding device.
b15
S
D
ASCII code for millions place
D
+1
ASCII code for ten-thousands place
b11
b8
b7 b4
b3
b0
D
+2
ASCII code for hundreds place
D
+3
ASCII code for unit place
Hundreds
Tens
Units
place
place
place
b15
D
D
+1
b11
b8
b7 b4
b3
b0
D
+2
0
5
6
D
+3
S
D
+4
can be in the range of 0 to 99999999.
S
. All zeros on the left side of the "Number of significant digits" are zero-
D
+4 differs depending on the ON/OFF status of SM701 (number of
D
Error details
exceeds the range of the
D
BCDDA, BCDDAP, DBCDDA, DBCDDAP
.
D
b8b7
ASCII code for ten-millions place
ASCII code for hundred-thousands place
ASCII code for thousands place
ASCII code for tens place
0
, the operation result would be stored following
S
b8b7
31
(1)
20
H
H
33
(3)
32
(2)
H
H
30
(0)
34
(4)
H
H
36
(6)
35
(5)
H
H
00
H
Q00J/
Q00/
QnH
Q01
is other
S
––
is other
S
––
––
into ASCII codes,
S
b0
(Only when
SM701 is OFF)
in the following
D
b0
QnPH QnPRH
QnU
––
––
1
2
3
4
4
6
7
8
LCPU
453

Advertisement

Table of Contents
loading

Table of Contents