Mitsubishi Electronics C6 Home Safety Product User Manual


 
8. Function Commands
DBCD, DBCDP
- 200 -
{ DBCD, DBCDP ... BIN BCD conversion (32-bit)
Usable device
Bit device Word device
Con-
stant
Pointer
X Y M L F BSB T SM VTCDRWSWZSDKH P
Digit
desig-
nation
Index
No. of
steps
S
{
{ { { {
{
{ { { { { { { { {
D
{ { { { { { {
{ {
4/5
Setting data
D
BIN data or head No. of
device where BIN data is
stored.
S
Head No. of device to
store BCD data.
BCD conversion command
DBCD
DBCDP
DBCD S
D
DBCDP
S
D
Function
The BIN data (0 to 99999999) of the device designated with S is BCD converted and transmitted to
the device designated with D.
S side BIN 99999999
D side BCD 99999999
000 0000 111111110000 111 0 011 11 111
1
1,000th place
100th place
10th place
1st place
BCD conversion
Always set to 0High-order 5-bit)
101 0110 1001010000 11 11 0 0 11100 1001
1,000,000th place
10,000,000th place
D (Low-order 4-digit)
D+1 (
High-order 4-digit)
S+1 (High-order 16-bit) S (Low-order 16-bit)
100,000th place
10,000th place
2
31
2
30
2
29
2
28
2
27
2
26
2
25
2
24
2
23
2
22
2
21
2
20
2
19
2
18
2
17
2
16
2
15
2
14
2
13
2
12
2
11
2
10
2
9
2
8
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
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
×10
7
×10
6
×10
5
×10
4
×10
3
×10
2
×10
1
×10
0
(Note 1) If the BIN data designated by S is not within 0 to 99999999, it will not be converted
correctly.