Skip to main content
Version: 8.1

Indirect Easy Chart

Configuring an Indirect Easy Chart

This section assumes that Tags and Tag History have been configured

To learn more, go to the Tag and Configuring Tag History pages. The examples below use OPC PC Tags from the Programmable Device Simulator driver, but Memory Tags can be used instead.

It is possible for the Easy Chart component to be indirect and point to a set of Historical Tags based on any parameter using the Cell Update Binding type. In this example, suppose you have a small tank farm consisting of Tank 100 through Tank 105. Every tank is identical and uses the same Tags. Each tank has a Level and Temperature Tag which are set to log to the Historian.

Using an Indirect Easy Chart is a good way to see the history of these Tags for each tank in the tank farm. A convenient way to set this up is using a Dropdown List component where an operator can select various tanks to see a Tank's Tag history. This example will show you how to configure a cell update binding on an Easy Chart to be indirect and point to a set of Historical Tags.

  1. In the Designer, drag a Tag Browser Tree and an Easy Chart component into your workspace.

  2. Put the Designer in Preview Mode .

  3. Navigate to the Tank Tags in the Tag Browser Tree. Under Tank 101, drag the 'Level' and 'Temperature' Tags from the Tag Browse tree onto the Easy Chart.

  4. Put the Designer back in Design Mode .

  5. Drag a Dropdown component to your workspace. Using a Dropdown list will make it convenient for the operator to select a Tank and see the history of the Level and Temperature Tags for that tank.

  6. With the Dropdown component selected, click on the Dataset Viewer icon to the right of the Data property in the Property Editor.

  7. Click the Add Row icon for as many Tanks that you have in your Tank Farm. Then enter the Value and Label for each of the Tanks.

  8. Click OK.

  9. Put the Designer in Preview Mode .

  10. Click the Dropdown list to see the complete list of Tanks in your Tank Farm that you just entered.

  11. Put the Designer back in Design Mode .

  12. Right click on your Easy Chart and choose to Customizers > Easy Chart Customizer.
    You'll notice that the Tag Paths are pointing directly to Tank 101. The only difference between Tank 101 and all the Tanks in the Tank Farm is the Tank number (i.e., 101, 102, 103, etc.). You can manually point to a different Tag Path by replacing ‘101’ in the Tag Path with a different Tank number such as ‘102,’ but we'd rather have the Tag Paths change dynamically when the user selects a Tank. Press OK.

  13. The Easy Chart component has a property called Tag Pens which stores all the configuration information that you have configured in the Easy Chart about your pens. With the Easy Chart selected, click on the Dataset icon in the Property Editor to view all the information for your Tag Pens.

  14. The dataset is displayed. It contains one row for each Tag. The second column is the Tag Path that you will want to change dynamically. Press OK to close the Dataset Viewer.

  15. Next we'll use a Cell Update Binding in order to change an individual cell of a dataset. With a Cell Update Binding, you can select one or more cells and dynamically bind them to a property or to a Tag that you have in your system. Click on the Binding icon next to Tag Pens property to open the Property Binding window.

  16. Select the Cell Update binding type.

  17. Select Tag Path cell for Level, and click the Add icon under the Cell Bindings table.

  18. Select the first row you just added in the Cell Bindings Table, and click the Insert Property Value icon.

  19. From the Property Window under the Dropdown folder, click the Selected String Value. This will grab the Tank number the operator selected from the dropdown list.

  20. Click OK. Ignition fills in the Cell Binding value.

  21. Repeat steps 17 through 20 for the Temperature Tag Path.

  22. Next, expand the Value fields to make the Tag Path dynamic. Update the fields as follows.

    Cell Binding to make Tag Path Dynamic
    [~]Tank/{Root Container.Dropdown.selectedStringValue}/Temperature
    [~]Tank/{Root Container.Dropdown.selectedStringValue}/Level
  23. Click OK to save the bindings.

  24. Now you have an Indirect Easy Chart. To test it, put the Designer in Preview Mode .

  25. Select a Tank from the Dropdown List. The Level and Temperature values will change in the chart. Next select a different Tank from your Dropdown List to see how the history changes on the Easy Chart.