Mitsubishi Electric M800VW Series Programming Manual page 342

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
DABIN
 Converts decimal ASCII data stored in the area starting from the device number designated by (S) to BIN 16-bit data, and
stores the result at the device number designated by (D).
b15
ASCII code for ten-thou-
S
sands place
ASCII code for hundreds
S+1
place
ASCII code for units place
S+2
For example, if the ASCII code "-25108" is designated in the area starting from (S), the following will be stored in the area
starting from (D).
b15
S
32H (2)
S+1
31H (1)
S+2
38H (8)
 ASCII data between -32768 to 32767 can be designated by (S) to (S+2).
 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".
b8b7
b0
Sign data
ASCII code for thousands
place
ASCII code for tens place
b8b7
b0
2DH (-)
35H (5)
30H (0)
b15
D
BIN 16-bit data
b15
D
-25108
321
b0
b0
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents