-

TO_LINT

Type Function
Description The overloaded function TO_LINT converts an input value of various data types into an output value of the data type LINT (see description of the input for the supported data types).
Parameters Input

IN

Output

OUT
Conversion rules ANY_BIT conversion

ANY_INT conversion

ANY_REAL conversion

TIME conversion

ANY_STRING conversion

 

Note: If the range and precision of the input data type can be mapped to the range and precision of the output type, an implicit type conversion can be performed instead of using this function.
For the TO_LINT function, this applies to DINT, INT, SINT, UDINT, UINT and USINT input data types.
Error behavior Error behavior
Examples Examples in ST
Additional information EN/ENO behavior