-

TO_UINT

Type Function
Description The overloaded function TO_UINT converts an input value of various data types into an output value of the data type UINT (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

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_UINT function, this applies to the USINT input data type.
Error behavior Error behavior
Examples Examples in ST
Additional information EN/ENO behavior