Converting Lreal To Real - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Motion module instructions, standard functions/ function blocks
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

12.35

Converting LREAL to REAL

LREAL_TO_REAL
This function converts a value from LREAL data type to REAL data type.
Structured text
d:=LREAL_TO_REAL(s);
Setting data
■Description, type, data type
Argument
s (IN)
d
Processing details
■Operation processing
• This function converts the value input to (s) from LREAL data type to REAL data type, and output the converted value from
(d).
(s)
1234.0
LREAL
• Input an LREAL data type value to (s).
■Operation result
The operation processing is performed. The operation result is output from (d).
Operation error
Error code
Description
3402H
The data input to (s) is -0 or out of the following range.
1024
-2
(E-1.7976931348623157+308 to E-2.2250738585072014-308, 0, E2.2250738585072014-308 to E1.7976931348623157+308)
3403H
The data output from (d) exceeds the following range. (An overflow has occurred.)
|(d)|<2
12 TYPE CONVERSION FUNCTIONS
160
12.35 Converting LREAL to REAL
Description
Input
Output
-1022
-1022
<(s), (d)≤-2
, 0, 2
≤(s), (d)<2
128
(d)
1234.0
REAL
1024
Type
Data type
Input variable
LREAL
Output variable
REAL

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents