The input value is converted to the UDINT data type. Since there are 32 bits in the UDINT data type and UINT has only 16 bits, no overflow can occur in this conversion.
[h=2]Call syntax[/h] [B]Structured Text:[/B]
udintVar := [COLOR=#0000ff]UINT_TO_UDINT[/COLOR](uintVar); Alternative for [B]B&R Automation Basic[/B]:
Only the target data type is specified in B&R Automation Basic
udintVar = [COLOR=#0000ff]UDINT[/COLOR](uintVar) Alternative for [B]ANSI C[/B]:
Upward conversions are easy to assign in C.
udintVar = uintVar;
[\CODE]