EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 1843

Mitsubishi Electric MELSEC iQ-R Series
2110 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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
*1
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
1001100110011001
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
111100001110010000000000000000009999
99999999H
(1)
DINTBCD(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
100110011001100
1
2
4
8
1
2
4
8
10011001100110011
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
1111111100000110000010111110101199999999
9999999999999999H
(1)
DINTBCD(DWORD)

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals