Mitsubishi Electric M800VW Series Programming Manual page 349

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.10 Character String Processing Instructions
 Functions
DABCD
 Converts decimal ASCII data stored in the area starting from the device number designated by (S) to BCD 4-digit data, and
stores the result at the device number designated by (D).
b15
b8b7
ASCII code for hundreds
S
place
ASCII code for units place
S+1
For example, if the ASCII code "8765" is designated in the area starting from (S), the following will be stored at (D).
b15
b8b7
S
37H (7)
S+1
35H (5)
 ASCII data between "0" to "9999" can be designated by (S) to (S+1).
 ASCII code between "30H" to "39H" can be set to each position.
 When the ASCII code set to a position is "20H" or "00H", it will be processed as "30H".
DDABCD
 Converts decimal ASCII data stored in the area starting from the device number designated by (S) to BCD 8-digit data, and
stores the result at the device number designated by (D).
b15
b8b7
ASCII code for millions
S
place
ASCII code for
S+1
ten-thousands place
ASCII code for
S+2
hundreds place
ASCII code for units
S+3
place
For example, if the ASCII code "87654321" is designated in the area starting from (S), the following will be stored at (D+1)
and (D).
b15
b8b7
S
37H (7)
S+1
35H (5)
S+2
33H (3)
S+3
31H (1)
 ASCII data between "0" to "99999999" can be designated by (S) to (S+3).
 ASCII code between "30H" to "39H" can be set to each position.
 When the ASCII code set to a position is "20H" or "00H", it will be processed as "30H".
IB-1501667-B
b0
ASCII code for thousands
place
ASCII code for tens place
b0
38H (8)
36H (6)
b0
ASCII code for
b31
ten-millions place
ASCII code for
hundred-thousands
ASCII code for
millions
thousands place
place
ASCII code for tens
place
b0
38H (8)
b31 b28b27 b24b23 b20b19 b16
36H (6)
34H (4)
32H (2)
b15
b12b11 b8b7
b4b3
D
Thou-
Hundreds
Tens
sands
place
place
place
b15 b12b11 b8b7
b4b3
8
7
6
D
D+1
b28b27
b24b23
b20b19
b16
Ten
Millions
Hundred
Ten
place
thou-
thou-
sands
sands
place
place
8
7
6
5
D+1
328
b0
Units
place
b0
5
D
b15
b12b11
b8b7
b4b3
Thou-
Hun-
Tens
Ones
sands
dreds
place
place
place
place
b15 b12b11 b8b7
b4b3
b0
4
3
2
1
D
b0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents