25 TYPE CONVERSION FUNCTIONS
25.38 Converting BCD to DINT
1841
25
Processing details
■
Operation processing
• These functions convert the value input to (s) from BCD (WORD or DWORD) data type to DINT data type, and output the
converted value from (d).
• Input a WORD data type value within the range of 0H to 9999H (range of each digit: 0 to 9) or a DWORD date type value
within the range of 0H to 99999999H (range of each digit: 0 to 9) to (s).
• WORD or DWORD data type can be specified for (s). BOOL data type cannot be specified.
■
Operation result
1.
Function without EN/ENO
The operation processing is performed. The operation result is output from (d).
2.
Function with EN/ENO
The execution conditions and operation results will be as follows.
*1 If the value FALSE is output from ENO, the output data from (d) will be undefined. Create a program so that the undefined value will not
be used in operations.
• When (s) is of WORD data type
(1) Filled with 0s.
• When (s) is of DWORD data type
(1) Filled with 0s.
Execution condition
Operation result
EN
ENO
(d)
TRUE (executed)
TRUE
Operation result output value
FALSE (not executed)
FALSE
Undefined value
(s)
(d)
×10
0
1
2
4
8
×10
1
1
2
4
8
×10
2
1
2
4
8
×10
3
1
2
4
8
9999H
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
2
0
2
1
2
2
2
3
2
4
2
5
2
6
2
7
2
8
2
9
2
10
2
11
2
12
2
13
2
14
2
15
2
16
2
17
2
18
2
19
2
20
2
21
2
22
2
23
2
24
2
25
2
26
2
27
2
28
2
29
2
30
2
31
1
1
1
1
0
0
0
0
1
1
1
0
0
1
0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
9999
9999
9999H
(1)
DINT
BCD(WORD)
(s)
(d)
×10
0
1
2
4
8
×10
1
1
2
4
8
×10
2
1
2
4
8
×10
3
1
2
4
8
×10
4
1
2
4
8
×10
5
1
2
4
8
×10
6
×10
7
99999999H
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
2
4
8
1
2
4
8
1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1
2
0
2
1
2
2
2
3
2
4
2
5
2
6
2
7
2
8
2
9
2
10
2
11
2
12
2
13
2
14
2
15
2
16
2
17
2
18
2
19
2
20
2
21
2
22
2
23
2
24
2
25
2
26
2
27
2
28
2
29
2
30
2
31
1
1
1
1
1
1
1
1
0
0
0
0
0
1
1
0 0 0 0 0 1 0 1 1 1 1 1 0 1 0 1 1
99999999
99999999
99999999H
(1)
DINT
BCD(DWORD)
Summary of Contents for MELSEC iQ-R Series
Page 1: ...MELSEC iQ R Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 24: ...22 INDEX 2092 INSTRUCTION INDEX 2093 REVISIONS 2104 WARRANTY 2105 TRADEMARKS 2106 ...
Page 34: ...32 MEMO ...
Page 35: ...33 PART 1 PART 1 OVERVIEW This part consists of the following chapter 1 OVERVIEW ...
Page 68: ...66 1 OVERVIEW 1 5 Precautions on Programming MEMO ...
Page 1448: ...1446 14 REDUNDANT SYSTEM INSTRUCTIONS 14 2 Disabling Enabling System Switching MEMO ...
Page 1972: ...1970 33 TIME DATA TYPE FUNCTIONS 33 4 Division MEMO ...
Page 2067: ...APPX Appendix 5 PID Control Program Examples 2065 A 252 Set PID control data for loop 2 ...
Page 2109: ......