Mitsubishi MELSEC Q Series Programming Manual page 572

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

DABCD(P),DDABCD(P)
DDABCD
(1) Converts decimal ASCII data stored in the area starting from the device designated by
8-digit BCD data, and stores it into the area starting from the device designated by
S
S
+1
S
+2
S
+3
For example, if the ASCII code of 87654321
operation results would be stored at
S
+1
S
S
+2
S
+3
(2) The ASCII data designated at
(3) The ASCII code set at each digit can be in the range of from "30
(4) If ASCII code for individual digits is from "20
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.
• There are characters within the data at
• The device specified by
(For the Universal model QCPU, LCPU.)
7-198
b15
b8
b7
ASCII code for millions place
ASCII code for ten-millions place
ASCII code for ten-thousands place
ASCII code for hundred-thousands place
ASCII code for hundreds place
ASCII code for thousands place
ASCII code for units place
ASCII code for tens place
b15
b8 b7
37
(7)
38
H
H
35
(5)
36
H
H
33
(3)
34
H
H
31
(1)
32
H
H
exceeds the range of the corresponding device.
S
b0
D
+1
b31 b28
b27
b24
b23 b20
Hundred
Ten
Milli-
milli-
ons
thou-
sands
ons
place
place
place
is designated for the area starting from
H
+1 and
in the following manner:
D
D
b0
(8)
(6)
b31 b28
b27
b24
b23 b20
(4)
8
7
(2)
D
+1
to
+3 can be in the range of from 0 to 99999999.
S
S
" to "00
", it is processed as "30
H
H
that are outside the 0 to 9 range.
S
D
b19
b16
b15 b12
b11
b8
b7 b4
b3
b0
Ten
Thou-
Hund-
Tens
Units
thou-
sands
reds
place
place
sands
place
place
place
b19
b16
b15 b12
b11
b8
b7 b4
b3
b0
6
5
4
3
2
1
D
" to "39
".
H
H
".
H
(Error code: 4100)
(Error code: 4101)
to
S
.
D
, the
S

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents