EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 546

Mitsubishi Electric MELSEC-Q/L
1084 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
544
7 APPLICATION INSTRUCTIONS
7.11 Character String Processing Instructions
DDABCD
Converts decimal ASCII data stored in the area starting from the device designated by (S) to 8-digit BCD data, and stores it
into the area starting from the device designated by (D).
For example, if the ASCII code of 87654321H is designated for the area starting from (S), the operation results would be
stored at (D)+1 and (D) in the following manner:
The ASCII data designated by (S) to (S)+3 can be in the range of from 0 to 99999999.
The ASCII code set at each digit can be in the range of from "30H" to "39H".
If ASCII code for individual digits is from "20H" to "00H", it is processed as "30H".
Operation error
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
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4100 A character other than 0 to 9 is put in the data of (S). 
4101 The range of the device specified in (S) exceeds the range of the
corresponding device.

Ten
milli-
ons
place
ASCII code for ten-millions place
ASCII code for millions place
ASCII code for ten-thousands place
b8 b0
ASCII code for thousands place
ASCII code for hundreds place
ASCII code for tens place
ASCII code for units place
Milli-
ons
place
Hundred
thou-
sands
place
Ten
thou-
sands
place
Thou-
sands
place
Hund-
reds
place
Units
place
Tens
place
b31 b28 b24b27 b16b19b23 b20 b15 b12 b0b3
b7
b4b8b11
+1
D
+1
+2
+3
S
S
S
S
b15 b7
D
ASCII code for hundred-thousands place
b31 b28 b24b27 b16b19b23 b20 b15 b12
38
H
(8)37
H
(7)
36
H
(6)35
H
(5)
b15 b8 b7 b0
34
H
(4)33
H
(3)
32
H
(2)31
H
(1)
b0b3b7 b4b8b11
+1
8
7
65
4
3
21
D
+1
+2
+3
S
S
S
S
D

Table of Contents

Related product manuals