5 SEQUENCE INSTRUCTIONS FOR MOTION CPU
[Error]
(2) Conversion from BCD to BIN (32 bits) (DBIN)
• Converts BCD data (0 to 99999999) at the device designated by (S) to BIN data,
and stores it at the device designated by (D).
(S) BCD 99999999
2
(D) BIN 99999999
The values other than 0 to 9 are specified to any digits of (S), sequence program error
occurs.
Safety observation warnings (SM24) are turned ON and error code (SD32): 10, detail
code (SD33): 8002H are stored.
(S)+1
7
6
5
10
10
10
8 4 2 1 8 4 2 1 8 4 2 1 8 4 2 1 8 4 2 1 8 4 2 1 8 4 2 1 8 4 2 1
1
0
0
1
1
0
0
1
1
0
0
1
Ten
Millions
Hundred
millions
digits
thousands
digits
digits
(D)+1
31
30
29
28
27
26
25
24
23
22
21
2
2
2
2
2
2
2
2
2
2
0
0
0
0
0
1
0
1
1
1
1
1
Always filled with 0s
5 - 43
(S)
4
3
2
10
10
10
1
0
0
1
1
0
0
1
1
0
0
1
Ten
thousands
Hundreds
thousands
digits
digits
digits
BIN conversion
(D)
20
19
18
17
16
15
14
13
12
11
2
2
2
2
2
2
2
2
2
2
2
0
1
0
1
1
1
1
0
0
0
0
0
1
0
10
10
1
0
0
1
1
0
0
1
Tens
Ones
digits
digits
10
9
8
7
6
5
4
3
2
1
0
2
2
2
2
2
2
2
2
2
2
1
1
1
1
1
1
1
1