-

TO_UDINT

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

IN

Output

OUT
Conversion rules ANY_BIT conversion

ANY_INT to UDINT

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 ‣ Implicit Data Type Conversion
×‣ Implicit Data Type Conversion
×
can be performed instead of using this function.
For the TO_UDINT function, this applies to UINT and USINT input data types.
Error behavior Error behavior
Examples Examples in ST
Additional information EN/ENO behavior