Indirect Easy Chart

This section assumes that Tags and Tag History have been configured

To learn more, go to the Tag and Set up Tags to Log pages.
The examples below use OPC tags, but Memory, Expression, and Query Tags can be used instead.

Configuring an Indirect Easy Chart

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_PV and temp_PV Tag which are set to log to the Historian.

images/download/attachments/7078490/Tag_Browser2.png

Using an Indirect Easy Chart is a good way to see the history of these Tags for each tank in the tank farm. An easy way to do this is, is by using a dropdown list where an operator can select various tanks to see the Tag history and have the data change dynamically as you select different tanks. Let's give it a try!

  1. In the Designer, drag an Easy Chart component into your workspace. In Preview Mode, drag the 'level_PV' and 'temp_PV' Tags from to the Easy Chart to see the history of these two Tags for Tank 100.

    images/download/attachments/7078490/Tank_100_and_Tags.png

  2. In Design Mode, 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_PV and temp_PV Tags for that tank. Double click on the Dropdown component and enter the Values and Labels for all the tanks in your tank farm. Click OK.

    images/download/attachments/7078490/Dropdown_List_Values_and_Labels.png

  3. In Preview Mode, click the dropdown list to see the complete list of tanks in your Tank Farm that you just entered.

  4. Go back to Design Mode, right click on your Easy Chart, and scroll down to Customizers > Easy Chart Customizer. You'll notice that the Tag Paths are pointing directly to Tank 100. The only difference between Tank 100 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 ‘100’ in the Tag Path with a different tank number such as ‘101,’ but this defeats the purpose. You want the Tag Paths to change dynamically when you select various tanks. Press OK.

    images/download/attachments/7078490/Tank_100_Tag_Paths_2.png

  5. The Easy Chart component has a property called Tag Pens which stores all the configuration information that you have in the Easy Chart about your pens. In the Property Editor, click on the dataset icon to view the information for your Tag Pens. The dataset contains two rows, one for each Tag. The second column is the Tag Path that you want to change dynamically. Press OK.

    images/download/attachments/7078490/Dataset.png

  6. In order to change an individual cell of a dataset, you can bind a dataset to a Cell Update Binding type. In 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.

    To change both Tag Paths in Tank 100, level_PV and temp_PV, use the following instructions to make the Tag Paths dynamic.

    1. Select the Easy Chart, and in the Property Editor click on the Binding icon next to Tag Pens property. The Property Binding window will open.

      images/download/attachments/7078490/Property_Editor_Tag_Pens.png

    2. Click the Cell Update binding type.

    3. Select Tag Path cell for the level_PV, and click on the green plus icon under the Cell Bindings Table.

      images/download/attachments/7078490/Cell_Binding_Update_Tank_100_Level_PV.png

    4. Select the first row you just added in the Cell Bindings Table, and click the Link icon.

    5. 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. Click OK.

      images/download/attachments/7078490/Cell_Binding_Update_Tank_100_Level_PV_SVS.png

    6. Next, build out your Tag Path for the level_PV and temp_PV as shown below.

      Cell Binding to make Tag Path Dynamic
      [~]Tanks/{Root Container.Dropdown.selectedStringValue}/level_PV
      [~]Tanks/{Root Container.Dropdown.selectedStringValue}/temp_PV
    7. Now, let's repeat the Steps a-f for temp_PV. Select the temp_PV row under the Dataset Table, and click the green plus icon in the Cell Bindings Table to add a second row.

    8. You can cheat a little and copy the Tag_Path from the level_PV in the Cell Bindings Table and paste it in the second row for temp_PV. Delete level_PV and enter temp_PV.

    9. The Tag Paths for the level_PV and temp_PV are shown below. Click OK.

      images/download/attachments/7078490/Property_Bindings_for_Indirect_EC.png


  7. Now you have an Indirect Easy Chart. In Preview Mode, when an operator selects a different tank, the level_PV and temp_PV Tags will change. Select different tanks from your dropdown list and see how the history changes for the selected tank on the Easy Chart.

images/download/attachments/7078490/Tank_100.png images/download/attachments/7078490/Tank_103.png