Mitsubishi Electric M800VW Series Programming Manual page 339

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
DBCDDA
 Converts each of the individual digit values of the BCD 8-digit data designated by (S) into ASCII codes, and stores the
result in the area starting from the device number designated by (D).
S+1
b31 b28b27 b24b23 b20b19 b16
Ten
Millions
Hundred
millions
place
thou-
thousands
place
sands
place
place
For example, if "01234056" is designated at (S), the following will be stored in the area starting from (D).
b31 b28b27 b24b23 b20b19
0
1
2
S+1
 BCD values between 0 to 99999999 can be designated by (S).
 Zero suppression will be performed for leading zeros of significant digits in the operation results stored at (D).
0 0 0 1 2 0 9 8
Number of significant
digits
20H is set
 The storage of data at devices designated by (D+4) 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: No data is stored. (The value of the device does not change.)
IB-1501667-B
S
b15 b12b11 b8b7
b4b3
Ten
Thou-
Hundreds
Tens
Units
sands
place
place
place
place
b16
b15 b12b11 b8b7
b4b3
3
4
0
5
S
b15
b8b7
ASCII code for millions
b0
D
place
ASCII code for
D+1
ten-thousands place
ASCII code for hundreds
D+2
place
ASCII code for units
D+3
place
D+4
b15
b0
D
31H(1)
6
D+1
33H(3)
D+2
30H(0)
D+3
36H(6)
D+4
318
b0
ASCII code for ten-millions
place
ASCII code for
hundred-thousands place
ASCII code for thousands
place
ASCII code for tens place
0
Only when
SM701 is OFF
b8b7
b0
(space)
20H
32H(2)
34H(4)
35H(5)
00H

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents