The UINT typecast operator is used to convert an expression to an UINT type. If the typecast operator is used on a "larger" type, truncation will occur.
Example:
INCLUDE rtcu.inc VAR a :UINT; b :DINT; END_VAR; PROGRAM test; // Convert 'b' which is a DINT type to a UINT (truncation will occur) a :=UINT(b); END_PROGRAM;