Creating Trace Configuration¶
For a complete trace configuration, specify at least one task and one variable. In order to trigger the data recording, activate the trigger option and select a trigger variable or specify a recording condition.
See also
- Dialog ‘Advanced trace settings’
- Dialog ‘Trace Configuration’
- Dialog Box ‘Advanced Trend Settings’
- Configuring Trend Recording
Assigning a task
In this task, the data recording is executed in runtime mode. Usually the same task is selected where the variables are written.
Double-click the trace object.
- ⇒
The trace editor opens with the commands available in the
menu.
Click
.- ⇒
The Trace configuration dialog opens. In the tree view Trace record, the top item is selected and the subdialog Record settings is shown on the right.
Click the “arrow down” symbol (
) in the Task drop-down list.
- ⇒
The drop-down list opens with all tasks that are available throughout the application.
Select a task for the trace.
See also
Configuring a trace variable
Double-click the trace object.
- ⇒
The trace editor opens. The commands of the
menu are available.
Click Add variable.
- ⇒
The Trace configuration dialog opens. The subdialog Variable settings is displayed on the right.
Click
in the input field of the Variable setting and select a trace variable in the Input assistant dialog.
- ⇒
The variable is configured for data recording. The trace record tree and the display tree were extended by the variable.
Click the Add variable link.
- ⇒
The trace record tree and the display tree receive a new variable. The settings of the variables are available on the right.
Select a trace variable.
Click OK to close the dialog.
- ⇒
The variables are trace variables and are displayed in the trace variable list.
Deleting a trace variable
Double-click the trace object.
Click a variable in the trace record tree.
Click the Delete variable command or press
Del
.Click OK to close the dialog.
- ⇒
The variable is removed from the trace variable list.
Tracing a parameter
Double-click the trace object.
Click Add variable.
- ⇒
The Trace configuration dialog opens. The subdialog Variable settings is displayed on the right.
Click
(right of the Variable setting, left of the input field).
Select the Parameter option in the drop-down list.
Click
and select a parameter from the Input Assistant dialog.
Configure how the parameter is displayed.
Click OK to close the dialog.
- ⇒
The parameter will be traced and displayed in the trace variable list.
Configuring a trigger
Double-click the trace object.
- ⇒
The trace editor opens with the commands available in the
menu.
Click
.- ⇒
The Trace configuration dialog opens. The subdialog Record settings is displayed on the right.
Select the Enable trigger check box.
Select the task in which the trend record is to be executed.
Select a variable from the Trigger Variable field.
Click OK to close the dialog.
- ⇒
The data recording will be triggered.
The trigger time is displayed as a black line in the diagram in runtime mode.
Download the application and start it.
Click
.- ⇒
The trace configuration is loaded. After triggering, the runtime system saves the value graph of the trace variables. The data is displayed in the trace editor. The trigger time is displayed as a black line in the diagram.
Configuring the display of the time axis
Double-click a trace object.
Click the Configuration link above the configuration tree.
- ⇒
The Trace configuration dialog opens.
Select Time axis in the display tree (below Presentation (Diagrams)).
- ⇒
The display settings of the time axis are shown on the right.
Edit the presets and click the Preview link.
- ⇒
The changes are seen in the coordinate system preview.
Click Y-axis in the display tree. The Y-axis item is below every configured diagram. Therefore, the display of the value axis is set for each diagram.
- ⇒
The subdialog Display settings of the selected axis is displayed on the right.
Change the preset value.
- ⇒
The changes are applied in the coordinate system preview.
Click OK to close the Trace configuration dialog.
- ⇒
The display changes are visible in the affected diagrams.
Configuring the display of the trace variable
Double-click a trace object.
Click the Configuration link.
- ⇒
The Trace configuration dialog opens.
Select a variable below Trace record.
- ⇒
The subdialog Variable settings of the selected variable is displayed on the right.
Change a setting, for example the Line type.
Click OK to close the dialog.
- ⇒
The display changes are visible in the affected diagrams.
Configuring the buffer for data on the runtime system
Double-click a trace object.
Click
.- ⇒
The Trace configuration dialog opens. The subdialog Record settings is displayed on the right.
Click Advanced.
- ⇒
The Advanced trace settings dialog opens.
Change the setting Measure in every n-th cycle or Recommended runtime buffer size (samples).
Click OK to close the dialog.
- ⇒
The buffer settings are reconfigured. It is applied after the trace configuration is loaded to the RTS the next time.
Editing the trace configuration in runtime mode
Requirement: The application is running on the controller and a trace configuration is loaded.
Double-click a variable in the trace record tree.
- ⇒
The Trace configuration dialog opens.
Change the color, for example.
- ⇒
The variable is displayed in the new color in the affected diagrams without interrupting the execution of the application.
Note
If you change essential settings, for example a trace variable, then you must download the trace configuration to the controller again.