*Run Trend Window in OPC Trends and Alarms

Step

Task

1

Start OPC Trends and Alarms application if it is not already running.

2

Select the Trends button in the lower left of the Navigator bar and select the OPC Systems Demo Trend Window and select the Add Trend To Window button.

3

The Trend Window should appear as below with real time update from the OPC Systems Service.

 

If data does not appear within a few seconds make sure to open up the Firewall for port 58724 for the OPCSystemsHMI.exe and the OPCSystemsService.exe.  Then restart the OPC Systems Service and try again.  Contact Open Automation Software for OPC setup for XP document and help setting up OPC Systems.NET.  www.opcsystems.com.

4

Select the Rotate View icon on the toolbar and move the mouse to change the view perspective to see the 3D trending.

 

5

Right Click on the Trend Window and select Modify Pens.

6

Select the Local OPC Systems Service and expand the Random Tag and select the Value Parameter and right click to Add Trend Point.

7

Select Random.Value in the lower left Pen list and set the ShowValue attribute to True.

8

Select OK in the lower left of the Trend Point Tags dialog.

 

9

Notice that the values for the Random Pen have been buffered by the OPC Systems Service even though it had not previously been added to a Trend Window.

In order to retain the Trend Real-time buffers between computer shutdowns use the Configure OPC Systems application under Configure-Options to set Retain Trend Real-time buffers.

You can remove Pens by simply selecting Modify Pens and delete the Pen from Pen list and select OK.

 

10

Right Click on the Trend Window and select Modify Chart-Update Rates.

11

Set the TimeFrame to 600.

 

12

This will cause a new Time Frame in the OPC Systems Service for all Trend Points with a 1 second Sample Rate.  The Trend Window Update Rate is set to 6 seconds as more samples will take more CPU load with fast update rates in 3D mode.

13

Select File Save if you wish to save the on-line Window name and arrangement retentive.  All modifications to the Trend Window properties will be retentive after this even if you do not select Save again.  Only when a Window is added or removed do you need to select Save.

 

14

If you setup Data Logging in this example right click on the Trend Window and select History to retrieve historical data if you have setup Data Logging previously.

15

Right click on the trend window and choose Modify Chart-Y Axis and change the Scale Mode from PercentOfPenRanges to StackedPercentOfPenRanges

 

16

Right click on the trend window and choose Modify Pens and set the StackedChartNumber property in each Pen to a unique number for each Pen.  Select OK to confirm the changes to the Pens.

17

Explore the Trend Window Toolbar buttons and other features of the Trend Window including the Data Grid, Data Cursors, Data Zoom,

This same trend control can also be added to your Visual Studio application.

Continue: Alarming