EasyManua.ls Logo

Mitsubishi MELSEC iQ-F FX5 series

Mitsubishi MELSEC iQ-F FX5 series
888 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...
15 TYPE CONVERSION FUNCTIONS
15.34 Converting BCD to DINT
731
15
15.34 Converting BCD to DINT
BCD_TO_DINT(_E)
These functions convert BCD type data to DINT type data.
Setting data
Descriptions, types, and data types
Processing details
Operation processing
These functions convert the BCD type data input to (s) to DINT type data and output from (d).
Ladder diagram Structured text
[Without EN/ENO] [With EN/ENO] [Without EN/ENO]
d:=BCD_TO_DINT(s);
[With EN/ENO]
d:=BCD_TO_DINT_E(EN,ENO,s);
Argument Description Type Data type
EN Execution condition (TRUE: Execution, FALSE: Stop) Input variable BOOL
s Input Input variable ANY_BIT
ENO Output status (TRUE: Normal, FALSE: Abnormal) Output variable BOOL
d Output Output variable DINT
When WORD is specified to (s)
When DWORD is specified to (s)
sd
EN ENO
ds
WORD
9999H
DINT
9999
9999 00000000000000000 010011100001111
Conversion into DINT data
Always becomes "0".
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
1001100110011001
9999H
8
4
2
1
×10
3
8
4
2
1
×10
2
8
4
2
1
×10
1
8
4
2
1
×10
0
(s) (d)
Thousands
place
Hundreds
place
Tens
place
Ones
place
DWORD
99999999H
DINT
99999999
99999999 11010111110100000 110000011111111
Conversion into DINT data
Always becomes "0".
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
11001100110011001
8
4
2
1
8
4
2
1
001100110011001
99999999H
×10
7
×10
6
8
4
2
1
×10
5
8
4
2
1
×10
4
8
4
2
1
×10
3
8
4
2
1
×10
2
8
4
2
1
×10
1
8
4
2
1
×10
0
(s) (d)
Tens place Ones placeTen-millions
place
Hundred-
thousands
place
Ten-
thousands
place
Thousands
place
Hundreds
place
Millions
place

Table of Contents

Related product manuals