EasyManuals Logo

Mitsubishi MELSEC Q Series Structured Programming Manual

Mitsubishi MELSEC Q Series
268 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
Page #74 background imageLoading...
Page #74 background image
5-40
5.1 Type Conversion Functions
5.1.13 Word (signed), double word (signed) type
BCD type conversion
INT_TO_BCD(_E), DINT_TO_BCD(_E)
(2) DINT_TO_BCD, DINT_TO_BCD_E
(a) Converts double word (signed) type data input to into BCD type data, and outputs
the operation result from .
(b) The value to be input to is double word (signed) type data within the range from 0 to
99999999.
Operation result
(1) Function without EN/ENO
The following table shows the operation results.
(2) Function with EN/ENO
The following table shows the executing conditions and operation results.
*1 When FALSE is output from ENO, the data output from is undefined.
In this case, create a program so that the data output from is not used.
Operation result
No operation error Operation output value
Operation error Undefined value
EN ENO
TRUE (Operation execution)
TRUE (No operation error) Operation output value
FALSE (Operation error)
*1
Undefined value
FALSE (Operation stop)
FALSE
*1
Undefined value
s
d
Double word (signed) type
Ten
million's
place
Million's
place
Hundred
thousand's
place
Ten
thousand's
place
Thousand's
place
Hundred's
place
Ten's
place
Unit's
place
99999999
Double word (unsigned)/32-bit string type
99999999H
99999999 11010111110100000 110000011111111
11001100110011001
8
4
2
1
8
4
2
1
001100110011001
99999999
H
BCD conversionMust always be 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
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
s
d
d
d
d

Table of Contents

Other manuals for Mitsubishi MELSEC Q Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC Q Series and is the answer not in the manual?

Mitsubishi MELSEC Q Series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC Q Series
CategoryController
LanguageEnglish

Related product manuals