Mitsubishi Electric M800VW Series Programming Manual page 338

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
BCDDA
 Converts each of the individual digit values of the BCD 4-digit data designated by (S) into ASCII codes, and stores the
result in the area starting from the device number designated by (D).
b15 b12b11 b8b7
S
Thou-
Hundreds
sands
place
place
For example, if "9105" is designated in the area starting from (S), the following will be stored in the area starting from (D).
b15 b12b11
b8b7
9
1
S
 BCD values between 0 to 9999 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 5 0
Number of significant
digits
20H is set
 The storage of data at devices designated by (D+2) 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.)
b4b3
b0
Tens
Units
place
place
b4b3
b0
0
5
b15
b8b7
ASCII code for hundreds
ASCII code for thousands
D
place
ASCII code for units place
ASCII code for tens place
D+1
D+2
0
Only when SM701 is OFF
b15
b8b7
D
31H(1)
D+1
35H(5)
D+2
00H
317
b0
place
b0
39H(9)
30H(0)
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents