Bcd_To_Dint(_E) - Mitsubishi Electric MELSEC FX Series Structured Programming Manual

Hide thumbs Also See for MELSEC FX Series:
Table of Contents

Advertisement

FXCPU Structured Programming Manual
(Application Functions)

5.1.42 BCD_TO_DINT(_E)

Outline
This function converts BCD data into double word [signed] data, and outputs the data obtained by conversion.
1. Format
Function name
BCD_TO_DINT
BCD_TO_DINT_E
*1.
Output variable
2. Set data
Variable
EN
Input
variable
_BCD (
ENO
Output
variable
*1
In explanation of functions, I/O variables inside ( ) are described.
Explanation of function and operation
This function converts BCD data stored in a device specified in
outputs the data obtained by conversion to a device specified in
ANY_BIT data
99999999H
1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1
Ten-
millions
place
99999999
0 0 0 0 0 1 0 1 1 1 1 1 0 1 0 1 1 1 1 0 0 0 0 0 1 1 1 1 1 1 1 1
Always becomes "0".
Cautions
Use the function having "_E" in its name to connect a bus.
Error
When the source data is not BCD (decimal number), M8067 (operation error) turns ON.
120
FX
3U(C)
Expression in each language
Structured ladder
BCD_TO_DINT
Label 1
_BCD
X000
BCD_TO_DINT_E
EN
Label 1
_BCD
Execution condition
Conversion source BCD data
)
s
Execution status
Double word [signed] data after conversion
(
)
d
99999999H
Millions
Hundred-
place
thousands
thousands
place
FX
FX
FX
3G
2N(C)
BCD_TO_DINT(_BCD);
Example:
Label 2:=
*1
Label 2
BCD_TO_DINT(Label 1);
BCD_TO_DINT_E(EN,_BCD,
Output label);
Example:
ENO
BCD_TO_DINT_E(X000, Label 1,
*1
Label 2
Label 2);
Description
99999999
Double word [signed] data
Ten-
Thousands
Hundreds
place
place
place
Conversion into DINT data
5 Applied Functions
5.1 Type Conversion Functions
FX
FX
/FX
1N(C)
1S
U
2C
ST
Bit
ANY_BIT
Bit
Double Word [signed]
into double word [signed] data, and
s
.
d
Tens
Ones
place
place
FX
FX
0N
0(S)
Data type

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents