-

Implicit Data Type Conversion

According to the IEC 61131-3 standard, some functions and function blocks provide implicit type conversion of the data types connected to their input and output formal parameters. Implicit data type conversion means that the data type is automatically converted into the required data type, i.e., no explicit data type conversion function is required in the code.
Functions/function blocks that support implicit data type conversion can process, for example, different data types at their formal parameters and automatically convert them. This make the blocks more flexible.

The IEC 61131-3 standard defines exactly which data types may be converted implicitly and for which conversions an explicit type conversion function must be used.

The following rules apply for implicit data type conversion:

In the following table the possible implicit data type conversions are colored green. All other conversions are either impossible or can be performed by using an explicit type conversion function (if available).