Mitsubishi Electric M800VW Series Programming Manual page 332

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
DBINDA
 Converts each of the individual digit values of the BIN 32-bit data designated by (S) expressed as decimal into ASCII
codes, and stores the result in the area starting from the device number designated by (D).
S+1
Upper 16 bits
Lower 16 bits
BIN 32-bit data
For example, if "-12345678" is designated at (S), the following will be stored in the area starting from (D).
S+1
-12345678
 BIN values between -2147483648 to 2147483647 can be designated by (S).
 The operation results stored at (D) are as follows:
- The sign "20H" (space) will be stored if the BIN data is positive, and the sign "2DH" (-) will be stored if the BIN data is
negative.
- The sign "20H" (space) will be stored for the leading zeros of significant digits.
0 0 1 2 0 3 4 5 6 0
Number of significant digits
20H is set
 The data stored at the upper 8 bits of the device designated by (D+5) differs depending on the ON/OFF status of SM701
(output number of characters conversion signal).
- When SM701 is OFF: Stores "00H".
- When SM701 is ON: Stores "20H".
b15
ASCII code for billions
S
D
ASCII code for ten-millions
D+1
D+2
hundred-thousands place
ASCII code for thousands
D+3
ASCII code for tens place
D+4
D+5
When SM701 is OFF
When SM701 is ON
b15
S
D
D+1
D+2
D+3
D+4
D+5
b8b7
Sign
place
ASCII code for hundred-mil-
lions place
place
ASCII code for millions
ASCII code for
place
ASCII code for ten-thou-
sands place
place
ASCII code for hundreds
place
0 or 20H
ASCII code for units place
......
0
......
20H
b8b7
space
20H(
)
2DH(-)
31H(1)
20H(
space
33H(3)
32H(2)
35H(5)
34H(4)
37H(7)
36H(6)
38H(8)
0 or
311
b0
b0
)
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents