Author Topic: ChartByArray (version 3.98p or later)  (Read 2993 times)

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
ChartByArray (version 3.98p or later)
« on: June 14, 2015, 10:07:43 PM »
The new ChartByArray is designed for charting a batch type process. Data is to be sampled in the PLC and stored in an array or data table. Another integer variable in the PLC is used to indicate the next element to be used for the next data sample. If the value of this ArrayIndex goes back to 0, the chart will clear to start again.

The two properties that have to set are PLCAddressArrayIndex and PLCAddressItems. The latter is a collection to allow you to specify more than one array. For example, you may want to plot 2 temperatures.

If using a ControlLogix, you will need to create an array tag for series you want to plot. For instance, if your can create Temp1[1000] for the data and then create another tag for the array index, such as DataIndexTag. In this case you would put DataIndexTag in the PLCAddressArrayIndex property, then add a PLCAddressItem and set PLCAddress to Temp1.