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
- Open the initially created HMI project. 
- Select the Data Sources Manager object. 
- Click . - 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. 
- Specify a name for the data source. Example: - Data_Source_Trendand click Add.- The Initialize Data Source Wizard – Provider settings dialog opens. - The - CODESYS V3connection type is set by default.
- 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_Acontroller that can be accessed are listed in a table.
- 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
- Now create your visualization as usual. Open the editor for the visualization and add the Trend element. - The Trend Configuration dialog opens. 
- Select a task for trend visualization. 
- Select the element. 
- Configure the following settings in the Properties view: - : - Data_Source_Trend- : - Application
- Select the trend display and click . 
- Activate all actions and close the dialog. - Additional buttons are added to the trend recording. 
Running the HMI application
- Click the  symbol. symbol.- The application is compiled. 
- Click the  symbol. symbol.- The application is downloaded to HMI device. 
- Click the start  symbol. symbol.- The HMI application is executed. The visualization starts. - The trend element shows the trend recording of the remote PLC.