Converting Lreal To Dint - 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.34

Converting LREAL to DINT

LREAL_TO_DINT
This function converts a value from LREAL data type to DINT data type.
Structured text
d:=LREAL_TO_DINT(s);
Setting data
■Description, type, data type
Argument
Description
s (IN)
Input
d
Output
Processing details
■Operation processing
• This function converts the value input to (s) from LREAL data type to DINT data type, and output the converted value from
(d).
(s)
16543521.0
LREAL
• Input an LREAL data type value to (s).
• After conversion, the first digit after the decimal point of the input value (LREAL data type) is rounded off.
■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
<(s), (d)≤-2
(E-1.7976931348623157+308 to E-2.2250738585072014-308, 0, E2.2250738585072014-308 to E1.7976931348623157+308)
The data input to (s) is other than -2147483648 to 2147483647.
(d)
16543521
DINT
-1022
-1022
1024
, 0, 2
≤(s), (d)<2
Type
Data type
Input variable
LREAL
Output variable
DINT
12 TYPE CONVERSION FUNCTIONS
12.34 Converting LREAL to DINT
12
159

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents