Int_To_Real(_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.11 INT_TO_REAL(_E)

Outline
This function converts word [signed] data into float (single precision) data, and outputs the data obtained by
conversion.
1. Format
Function name
INT_TO_REAL
INT_TO_REAL_E
*1.
Output variable
2. Set data
Variable
EN
Input
variable
a_Int (
ENO
Output
variable
*1
In explanation of functions, I/O variables inside ( ) are described.
Explanation of function and operation
This function converts word [signed] data stored in a device specified in
and outputs the data obtained by conversion to a device specified in
1234
Word [signed] data
Cautions
1) Use the function having "_E" in its name to connect a bus.
2) When handling 32-bit data in structured programs, you cannot specify 16-bit devices directly, different
from simple projects. Use labels when handling 32-bit data.
You can specify 32-bit counters directly, however, because they are 32-bit devices.
Use global labels when specifying labels.
3) The function is provided in the FX
56
FX
3U(C)
Expression in each language
Structured ladder
INT_TO_REAL
D0
a_Int
X000
INT_TO_REAL_E
EN
D0
a_Int
Execution condition
Conversion source word [signed] data
)
s
Execution status
Float (single precision) data after conversion
(
)
d
1234.0
Float (single precision) data
Series Ver.1.10 or later.
3G
FX
FX
FX
3G
2N(C)
1N(C)
INT_TO_REAL(a_Int);
Example:
Label:=
*1
Label
INT_TO_REAL(D0);
INT_TO_REAL_E(EN,a_Int,
Output label);
ENO
Example:
*1
Label
INT_TO_REAL_E(X000,D0,Label);
Description
5 Applied Functions
5.1 Type Conversion Functions
FX
FX
/FX
FX
1S
U
2C
0N
ST
Data type
Bit
Word [signed]
Bit
FLOAT (Single Precision)
into float (single precision) data,
s
.
d
FX
0(S)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents