Type conversion functions
ANY_TO_BOOL | converts to Boolean |
ANY_TO_SINT / ANY_TO_USINT | converts to small (8 bit) integer |
ANY_TO_INT / ANY_TO_UINT | converts to 16 bit integer |
ANY_TO_DINT / ANY_TO_UDINT | converts to integer (32 bit - default) |
ANY_TO_LINT / ANY_TO_ULINT | converts to long (64 bit) integer |
ANY_TO_REAL | converts to real |
ANY_TO_LREAL | converts to double precision real |
ANY_TO_TIME | converts to time |
ANY_TO_STRING | converts to character string |
Below are the standard functions performing conversions in BCD format (*):
BIN_TO_BCD | converts a binary value to a BCD value |
BCD_TO_BIN | converts a BCD value to a binary value |
(*) BCD conversion functions may not be supported by all targets.