ANY_TO_LREAL
Operator - Converts the input into double precision real value.
Inputs
Input |
Data type |
Description |
IN |
ANY |
Input value. |
Outputs
Output |
Data type |
Description |
Q |
LREAL |
Value converted to double precision real. |
Remarks
For BOOL input data types, the output is 0.0 or 1.0. For DINT input data type, the output is the same number. For TIME input data types, the result is the number of milliseconds. For STRING inputs, the output is the number represented by the string, or 0.0 if the string does not represent a valid number. In LD language, the conversion is executed only if the input rung (EN) is TRUE. The output rung (ENO) keeps the same value as the input rung.
ST Language
Q := ANY_TO_LREAL (IN);
FBD Language
LD Language
The conversion is executed only if EN is TRUE.
ENO keeps the same value as EN.
|
ANY_TO_BOOL ANY_TO_SINT ANY_TO_INT ANY_TO_DINT ANY_TO_LINT ANY_TO_REAL ANY_TO_TIME ANY_TO_STRING |
ANY_TO_LREAL |
IEC 61131-3 Automation platform > Programming - Reference guide > Type conversion functions > ANY_TO_LREAL |
Created with the Personal Edition of HelpNDoc: Streamline Your Documentation Process with HelpNDoc's Project Analyzer