Below are the standard functions for converting a data into another data type:
ANY_TO_BOOL ANY_TO_SINT ANY_TO_INT ANY_TO_DINT ANY_TO_LINT ANY_TO_REAL ANY_TO_LREAL ANY_TO_TIME ANY_TO_STRING |
converts to boolean |
Below are the standard functions performing conversions in BCD format (*):
BIN_TO_BCD BCD_TO_BIN |
converts a binary value to
a DCB value |
(*) BCD conversion functions may not be supported by all targets.