About the trend control runtime interface

During project runtime, a trend control has its own built-in interface that the operator can use to change how trends are displayed. This section describes the major parts of the interface and how they are used.

Figure 1. Trend control runtime interface
Web Studio Help illus trendcontrol runtimeinterface About the trend control runtime interface

Toolbar

Command/Tool Icon Description Activation Tag
Run Web Studio Help button trendcontrol toolbar run About the trend control runtime interface Sets the trend control to Run Mode (a.k.a. Online Mode). In this mode, the X-axis continues to scroll with the passage of time and the trends are updated with current tag values.

0 = stop trend

1 = run trend

Changing the value of this tag also changes the value of the activation tag for Stop.

Stop Web Studio Help button trendcontrol toolbar stop About the trend control runtime interface Sets the trend control to Stop Mode (a.k.a. Historical Mode). In this mode, the X-axis is stopped and the trends display only historical data.

If decimation is enabled for one or more trends, the calculation and redrawing is done only in this mode.

0 = run trend

1 = stop trend

Changing the value of this tag also changes the value of the activation tag for Run.

Period Web Studio Help button trendcontrol toolbar period About the trend control runtime interface Opens a dialog which can be used to modify the X-axis scale main settings. 1 = open dialog

Resets to 0 after open.

Window Zoom Web Studio Help button trendcontrol toolbar windowzoom About the trend control runtime interface Allows the user to click on the trend graph and drag the cursor to select the area that must be visible when the cursor is released.

This option is disabled when the Multiple Section option (for the Y scale) is active.

0 = disable zoom

1 = enable zoom

Resets to 0 after user input.

Horizontal Zoom Web Studio Help button trendcontrol toolbar horizontalzoom About the trend control runtime interface Allows the user to click on two points in the trend graph, defining the horizontal scale that must be available.
Vertical Zoom Web Studio Help button trendcontrol toolbar verticalzoom About the trend control runtime interface Allows the user to click on two points in the trend graph, defining the vertical scale that must be available.

This option is disabled when the Multiple Section option (for the Y scale) is active.

Zoom In Web Studio Help button trendcontrol toolbar zoomin About the trend control runtime interface Zooms in (i.e., halves the current X and Y scales) each time the user clicks the tool. 1 = execute command

Resets to 0 after execution.

Zoom Out Web Studio Help button trendcontrol toolbar zoomout About the trend control runtime interface Zooms in (i.e., doubles the current X and Y scales) each time the user clicks the tool.
Cancel Zoom Web Studio Help button trendcontrol toolbar cancelzoom About the trend control runtime interface Cancels the current zoom and returns the trend graph to its original scale.
Legend Properties Web Studio Help button trendcontrol toolbar legendproperties About the trend control runtime interface Opens a dialog which can be used to modify the Legend main settings.
Pen Style Web Studio Help button trendcontrol toolbar penstyle About the trend control runtime interface Opens a dialog which can be used to modify the pen style of the selected trend.
Add Pen Web Studio Help button trendcontrol toolbar addpen About the trend control runtime interface Opens a dialog which can be used to add a new trend to the trend control.
Remove Pen Web Studio Help button trendcontrol toolbar removepen About the trend control runtime interface Removes the selected trend from the trend control.
Multiple Sections Web Studio Help button trendcontrol toolbar multiplesections About the trend control runtime interface Switches the Y scale between Multiple Sections (a section for each trend) and Single Section (all trend share the same Y scale section).

0 = Single Section

1 = Multiple Sections

Cursor Web Studio Help button trendcontrol toolbar cursor About the trend control runtime interface Switches the cursor (ruler) between visible and hidden.

0 = Cursor hidden

1 = Cursor visible

Auto Scale Web Studio Help button trendcontrol toolbar autoscale About the trend control runtime interface Changes the Y axis scale to fit all values from the trends that are currently being monitored. 1 = execute command

Resets to 0 after execution.

Print Web Studio Help button trendcontrol toolbar print About the trend control runtime interface Prints the current state of the trend control. (Historical data are not printed.)
SPC Web Studio Help button trendcontrol toolbar spc About the trend control runtime interface Opens a dialog which can be used to show the statistical process control (SPC) information for the selected trend:
Web Studio Help dialog trendcontrol spcsettings About the trend control runtime interface

  • Draw Mode…
    • Shade: Draws the average value as a dashed line, and draws the min/max values and standard deviation as shaded areas.
    • Line: Draws the average value and standard deviation as dashed lines, and draws the min/max values as solid lines.
  • Show average: Show the calculated average of all of the trend’s historical values.
    Note: When a value is not a number (NaN) — for example, when a tag is flagged as BAD quality — it is counted as 0 for the purpose of calculating the average.
  • Show min/max: Show the minimum and maximum historical values of the trend.
  • Show standard deviation: Show the standard deviation of the trend. A low standard deviation indicates that the actual value tends to stay close to the average; a high standard deviation indicates that the actual value tends to vary greatly from the average.
The tag’s Bit properties (B0B4) can be used to open the dialog and pre-select options:
  • tagname->B0
    • 1 = open dialog

      Resets to 0 after open.

  • tagname->B1
    • 0 = Draw Mode: Line selected
    • 1 = Draw Mode: Shade selected
  • tagname->B2
    • 0 = Show average cleared
    • 1 = Show average selected
  • tagname->B3
    • 0 = Show standard deviation cleared
    • 1 = Show standard deviation selected
  • tagname->B4
    • 0 = Show min/max cleared
    • 1 = Show min/max selected
Note: Activation tags are configred in the trend control’s object properties.

For more information, see Toolbar dialog.

Time bar

The time bar displays the start date/time and end date/time of the graph, or in other words, the period of the X axis. For more information, see Axes dialog.

If you have configured the trend control to display historical data from a batch file, you can change these dates and times during project run time and therefore increase or decrease the period of the graph. The longer the period, the more data the graph will display but at lower resolution. The shorter the period, the less data the graph will display but at higher resolution. This is similar to using the Horizontal Zoom tool.

Note: If you enter a date (start or end) before 01/01/2000, it will be automatically adjusted to 01/01/2000. And if you enter a date (start or end) after the current date, it will be automatically adjusted to the current date.

Legend

Command Icon Description
Selection Web Studio Help widget trendcontrol legend selection About the trend control runtime interface Launches a dialog, where the user can replace the data point associated with the selected trend on the legend
Remove Web Studio Help widget trendcontrol legend remove About the trend control runtime interface Removes the selected trend from the trend control
Hide Web Studio Help widget trendcontrol legend hide About the trend control runtime interface When checked, the selected trend is visible; otherwise, it is hidden.
Pen Style Web Studio Help widget trendcontrol legend penstyle About the trend control runtime interface Launches an embedded dialog, where the user can modify the pen style of the selected trend.
Scale Web Studio Help widget trendcontrol legend scale About the trend control runtime interface When this box is checked, the Y axis scale is visible; otherwise, it is hidden. The scale can be hidden only when the Multiple Sections option is off.

For more information, see Legend dialog.

About the trend control runtime interface