Create variables

Create a variable that mimics raw data received from a controller and an analog variable that presents the controller data as a temperature unit.

  1. Create a variable that mimics raw data received from a controller:
    1. In Project view, right-click Model and select New > Variable.
    2. Hover-over the variable, select Edit, and enter FromPLC.
    3. In Properties, set the FromPLC (Int32) property value to 60.
  2. Create an analog variable that presents the controller data as a temperature unit:
    1. In Project view, right-click Model and select New > Analog variable.
    2. Crete a dynamic link between AnalogValue and ProjectName > Model > FromPLC.

      For more information about dynamic links, see Create dynamic links.

    3. Next to the dynamic link, select <None> and select Temperature: degree Celsius.