Applies To: |
|
Summary: |
You have a large number of variables that under normal circumstances you do not want to trend, but you want a way of trending variables when you need to debug your project / plant. |
Solution: |
There are a at least two of ways of
viewing a graph of data.
1. DspTrend(AN, Trend, Value1, Value2 ... Value8) This will allow you to display the trend graph on a AN point. But you will loose the data when you change pages. To get around this limitation, you could use a WinNewAt to bring up a debug page. Then define a function as below, to be run as a page entry command using tasknew. The page that you define needs only an Animation point that is place so that the defined trend symbol is visible. This method has an irregular CPU usage, and so solution 2 is better. For example: FUNCTION 2. Define Temporary Variables and use TagRead(sTag, nOffset) in a loop Define some temporary variables in a Disk PLC, define trend tags to watch these variables. Define Some events that use TagRead(sTag, nOffset) to copy the values to these temporary variables (with the period you need). For example:
This method has a very steady CPU usage, and so is the preferred solution |
Keywords: |
Related Links
Attachments