You are here: Core Reference > Coding > Logic > Add a Conversion to a Function Block Diagram

Add a Conversion to a Function Block Diagram

Conversions are built-in features that convert the data type of one value into a different data type. For example, the BYTE_TO_BOOL conversion turns a byte value into a boolean value. Typically, the conversions are needed when an input value of one data type needs to be converted into another data type for the Logic program to work.

To add a conversion to a Function Block Diagram:

  1. Right-click on the background of the Function Block Diagram.
    A context sensitive menu is displayed.
  2. Select the Conversions option to display another menu.
  3. Select the option for the data type that you want to convert on the Function Block Diagram.
    A further menu is displayed
    .

  4. Select the option that describes the type of conversion. For example, to convert a boolean value into a string value, select the BOOL_TO_STRING option.
    The conversion is added to the Function Block Diagram.

For more information on the data types, see Built-In Data Types.


ClearSCADA 2015 R2