Skip to main content

Connecting with Trend Recording to Remote PLCs

With an HMI project, you can display the trend recording of a remote PLC in the "trend" visualization element. Requirement: Trend recording is defined in the remote PLC and a symbol configuration is added.

Connecting an HMI application to a controller

  1. Open the initially created HMI project.

  2. Select the Data Sources Manager object.

  3. Click Add Object → Data Source.

    The Add Data Source dialog opens and helps you to configure the data source. The CODESYS Symbolic CODESYS data source type is set by default. You use this type if your control application has a symbol configuration.

  4. Specify a name for the data source. Example: Data_Source_Trend and click Add.

    The Initialize Data Source Wizard – Provider settings dialog opens.

    The CODESYS V3 connection type is set by default.

  5. In Name or address of device, specify the network name of the active controller whose data should be displayed in a visualization. Example: Device_A

    The connection from the development system to the controller is established and the available variables are read. The Initialize Data Source Wizard – Browse data items dialog opens. The variables of the Device_A controller that can be accessed are listed in a table.

  6. For the visualization of data from a remote trend recording, you have to activate non-explicit variables. The required data is exchanged between the HMI and the remote device via internal communications services.

    Click Finish.

    The data source is created initially and inserted below the data source manager.

Creating a trend recording visualization

  1. Now create your visualization as usual. Open the editor for the visualization and add the Trend element.

    The Trend Configuration dialog opens.

  2. Select a task for trend visualization.

  3. Select the element.

  4. Configure the following settings in the Properties view:

    Data source: Data_Source_Trend

    Application: Application

  5. Select the trend display and click Visualization → Insert Elements for Trend Controlling.

  6. Activate all actions and close the dialog.

    Additional buttons are added to the trend recording.

Running the HMI application

  1. Click the _cds_icon_build.png symbol.

    The application is compiled.

  2. Click the _cds_icon_login.png symbol.

    The application is downloaded to HMI device.

  3. Click the start _cds_icon_start.png symbol.

    The HMI application is executed. The visualization starts.

    The trend element shows the trend recording of the remote PLC.