Programming a Trend¶
If you edit the properties of the trend you can modify the display of the trend recording. The trend wizard, which also edits the properties of the trend, additionally accesses the properties of the control elements.
Editing the assigned application
The visualization task and the trend recording task generally run under the same application. If this is not the case, then the application containing the visualization task requires a data sources manager.
Select a trend in the active visualization editor.
- ⇒
The properties of the trend element are displayed on the right side.
Double-click the value field
.Use the input assistant (
) to select the application. You can also specify the name of the application directly.
See also
- Trend recording: Object ‘Trend Recording’
- Data sources manager: _cds_obj_data_sources_manager
Editing control elements
Select a trend in the active visualization editor.
Click
.- ⇒
The Trend wizard dialog box opens.
Double-click in the configuration table on the Element type of the element
- ⇒
A drop-down list appears.
Select an element type.
Click in the configuration table on the Instance name of an element
Enter the new name.
- ⇒
The name is accepted by clicking OK to closed the dialog box.
Double-click in the configuration table on the Position of the element.
- ⇒
A drop-down list appears.
Select a position. You must select the position so that there is no overlap with other elements. Overlapping is indicated by an error message.
After closing the dialog box by clicking OK, the control element is moved to the new position.
See also
Editing the trend recording
Select a trend in the active visualization editor.
- ⇒
The properties of the trend element are displayed on the right side.
Click the value field of
- ⇒
Select trend recording appears. The trend recordings available application-wide are listed under Available trend recordings.
Select a trend recording under Available trend recordings.
Click
.
- ⇒
The trend recording is located under Selected trend recording.
Click OK to confirm the entry.
- ⇒
The selected trend recording appears in Values in .
See also
- Trend recording: Object ‘Trend Recording Task’
Deleting a control element
Note
A control element that was added with the help of the Trend wizard cannot be deleted via the Trend wizard dialog.
Select the control element of a trend in the active visualization editor.
Delete the element with
Del
or Delete.Select the trend in the active visualization editor.
Delete the assigned value in
.Attention
It is absolutely necessary to delete this reference manually. The property is not deleted automatically by deleting the control element.
Add a further control element
Select a trend in the active visualization editor.
Click
.- ⇒
The Trend wizard dialog box opens.
By default, all three control elements are activated in the dialog.
Determine the position of the control element.
Select an element type.
Edit the instance of the control element.
Click OK to close the dialog box.
- ⇒
The configured control element is added.
See also
Configuring the coordinate system of the trend diagram
Select a trend in the active visualization editor.
Use the command
.- ⇒
The Edit appearance dialog box opens.
Change the settings.
See also
Reads a trend value at runtime
Open
.Select a trend element in your visualization.
- ⇒
The properties of the trend element are displayed on the right side.
Activate the option
and .- ⇒
A cursor is drawn in the coordinate system.
Activate the option
.Load the application to the controller and start it.
Note
If the diagram “runs”, then the date range has been placed in such a way that its end time is the current time.
Select the date range such that the diagram does not run. If necessary, drag the scrollbar to an earlier date range.
- ⇒
A cursor is available. The tool tip of the cursor informs you of the trend values. For each trend variable, the legend displays the value at the point in time at which the cursor is positioned.