-

Data Type Conversion

Type conversion functions convert the input value of the data type A into the output value of the data type B. Conversion functions for which only an output data type is specified in the function name (e.g., TO_BOOL) can process various input data types. In such cases, the respective help topic lists the possible data types.

According to the IEC 61131 standard, explicit and implicit data type conversions have to be distinguished:

The following table lists all type conversions that are supported by the system.

Legend

No type conversion necessary.
Type conversion that can only be done explicitly, i.e., using a conversion function in the code.
Implicit type conversion. (Of course, each implicit conversion can also be done explicitly.)
Conversion not possible, neither explicitly nor implicitly.