Mitsubishi Electric M800VW Series Programming Manual page 343

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
DDABIN
 Converts decimal ASCII data stored in the area starting from the device number designated by (S) to BIN 32-bit data, and
stores the result at the device number designated by (D).
b15
ASCII code for billions
S
place
ASCII code for ten-millions
S+1
place
ASCII code for
S+2
hundred-thousands place
ASCII code for thousands
S+3
place
ASCII code for tens place
S+4
(Ignored)
S+5
For example, if the ASCII code "-1234543210" is designated in the area starting from (S), the following will be stored at
(D+1) and (D).
b15
S
31H (1)
S+1
33H (3)
S+2
35H (5)
S+3
33H (3)
S+4
31H (1)
S+5
 ASCII data between -2147483648 to 2147483647 can be designated by (S) to (S+5). Also, data stored at the upper bytes
of (S+5) will be ignored.
 The sign "20H" (space) will be stored if the data to be converted is positive, and the sign "2DH" (-) will be stored if the data
to be converted is negative. (If a value other than "20H" (space) and "2DH" (-) is set, it will be processed as positive data.)
 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
b8b7
b0
Sign data
ASCII code for
hundred-millions place
ASCII code for millions
place
ASCII code for ten-thou-
sands place
ASCII code for hundreds
place
ASCII code for units place
b8b7
b0
2DH (-)
32H (2)
34H (4)
34H (4)
32H (2)
30H (0)
D+1
b31
b16
b15
Upper 16 bits
Lower 16 bits
BIN 32-bit data
D+1
D
-1234543210
322
D
b0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents