Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 383

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Processing details
• These instructions convert the 32-bit binary data (0 to 99999999) in the device specified by (s) to BCD 8-digit data, and
store the converted data in the device specified by (d).
31
30
29
2
2
2
(s)
BIN 99999999
0
0
0
(1)
×10
7
8
4
2
1
0
0
(d)
BCD 99999999
(1) Set 0s to the upper 5 bits.
Operation error
Error code
Description
(SD0)
3401H
Data in the device specified by (s) is out of the range, 0 to 99999999.
(s)+1 (Upper 16 bits)
28
27
26
25
24
23
22
21
20
2
2
2
2
2
2
2
2
2
0
0
1
0
1
1
1
1
1
×10
×10
6
5
1
8
4
2
1
8
4
2
1
1
1
0
0
1
1
0
0
1
(d)+1 (Upper 4 digits)
19
18
17
16
15
14
13
12
11
2
2
2
2
2
2
2
2
2
0
1
0
1
1
1
1
0
0
BCD
×10
×10
4
3
8
4
2
1
8
4
2
1
8
1
0
0
1
1
0
0
1
1
(s) (Lower 16 bits)
10
9
8
7
6
5
4
3
2
2
2
2
2
2
2
2
2
2
0
0
0
1
1
1
1
1
1
×10
×10
×10
2
1
4
2
1
8
4
2
1
8
4
0
0
1
1
0
0
1
1
0
(d) (Lower 4 digits)
6 BASIC INSTRUCTIONS
6.6 Data Conversion Instructions
1
0
2
2
1
1
0
2
1
0
1
6
381

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents