Object ‘Trace’

Symbol: 278915aa1ac80902c0a8640e00008c23_9b80c9721ab5012cc0a8640e00c906b8

This object is used for configuring a trace. At application runtime, it provides commands for controlling data recording and displaying the recorded data as a trace diagram. It is also for data navigation.

Editor ‘Trace’

../_images/fac9ebc05dc88204c0a8640e001b348b
  • (1): View of the trace configuration
    • Configuration: Configuration
    • Add variable: Add variable
  • (2): Trace diagram in multi-channel display at runtime

View of the trace configuration

This view provides an overview of the current trace configuration where you can edit the configuration. Double-clicking a variable opens the Trace Configuration dialog box and shows the respective configuration in Variable Settings.

The following commands and context menu commands are also provided:

Configuration The Trace Configuration dialog box opens with the selected top node. The configuration for data recording is displayed on the right below Record Settings for quick configuration.
Add variable The Trace Configuration dialog box opens with a new and blank entry in the trace configuration. The new entry is displayed on the right below Variable Settings for quick configuration.
278915aa1ac80902c0a8640e00008c23_bb538c981fd94d95c0a8640e01f3846b Drop-down list opens with the Hide instance paths command.
Hide instance paths

Toggles the display of the variable list

  • 278915aa1ac80902c0a8640e00008c23_57ba96449fe559c7c0a8640e006d3d11 : Display with complete instance path (for example, PLC_PRG.iCounter)
Context menu
Add variable The Trace Configuration dialog box opens with a new and blank entry in the trace configuration. The new entry is displayed on the right below Variable Settings for quick configuration.
Delete variable The variable that is selected in the view is removed from the configuration.
Visible

Toggles the visibility of the selected variable in the trace diagram

  • 278915aa1ac80902c0a8640e00008c23_57ba96449fe559c7c0a8640e006d3d11 : Graph of variables is visible in the trace diagram.
Display The Y-axis Display Settings dialog box opens.
Configuration The Trace Configuration dialog box opens with the Record Settings.

See also

Trace diagram at runtime

At application runtime, CODESYS populates and updates the trace buffer with the recorded samples, and then it displays the recorded data in the trace diagram as a graph over time. If you close the trace editor, the buffer will be freed.

Use menu commands for controlling data recording. You can navigate the data by means of menu commands, keyboard shortcuts, and mouse input.

See also

Navigating the trace diagram with the mouse

In the trace diagram, you can navigate data by using the mouse to scroll and zoom.

Requirement Mouse Input Mouse Symbol Effect
  Drag the graph along the x-axis. 278915aa1ac80902c0a8640e00008c23_5eb8ed035d15e5d8c0a8640e013b4016 Horizontal scrolling of the trace graph along the time axis.
  Hold down the Ctrl key and drag the graph along the y-axis. ../_images/72211af55d25046fc0a8640e003a4cc2 Vertical scrolling of the trace graph along the y-axis.
  • Multi Channel disabled
  • Mouse Zooming 278915aa1ac80902c0a8640e00008c23_97568ac290cbfbb9c0a8640e005cf5d7
Stretch a box. 278915aa1ac80902c0a8640e00008c23_06747d9cf2639025c0a8640e006ba40d CODESYS zooms to the box.
  Move the mouse wheel backwards.   CODESYS compresses the x-axis like the Compress command ( 278915aa1ac80902c0a8640e00008c23_479bf06f7d76e653c0a8640e016b66b4 ).
  Move the mouse wheel forwards.   CODESYS stretches the x-axis like the Stretch command ( 278915aa1ac80902c0a8640e00008c23_4054ac957d764e35c0a8640e014df3d2 ).
  Hold down the Ctrl key and move the mouse wheel backwards.   CODESYS compresses the y-axis.
  Hold down the Ctrl key and move the mouse wheel forwards.   CODESYS stretches the y-axis
Multi Channel enabled Click into a trace diagram.   The trace diagram is selected.
One or two trace cursors are provided. Drag the triangle of a trace cursor to another position. ../_images/682e7b425d33e889c0a8640e00ce6e54 Horizontal moving of the trace graph along the time axis.
Two trace cursors are provided. Click the gray trace cursor.   The gray trace cursor is black and therefore selected.

See also

Navigating the trace diagram with the keyboard

Requirement Keyboard shortcuts Effect
 

Left Arrow

Right Arrow

CODESYS scrolls the trace graph along the x-axis.
 

Ctrl+Left Arrow

Ctrl+Right Arrow

CODESYS scrolls the trace graph along the x-axis in large intervals
 

Up Arrow

Down Arrow

CODESYS scrolls the trace graph along the y-axis.
 

Ctrl+Up Arrow

Ctrl+Down Arrow

CODESYS scrolls the trace graph along the y-axis in large intervals
Multi Channel enabled

Up Arrow

Down Arrow

CODESYS scrolls the trace graph along the x-axis in the selected trace diagram.
Multi Channel enabled

Ctrl+Up Arrow

Ctrl+Down Arrow

CODESYS scrolls the trace graph along the x-axis in the selected trace diagram in large intervals.
One or two trace cursors are provided.

Alt+Left Arrow

Alt+Right Arrow

CODESYS scrolls the trace graph along the x-axis in the selected trace diagram.
One or two trace cursors are provided.

Ctrl+Alt+Left Arrow

Ctrl+Alt+Right Arrow

CODESYS scrolls the trace graph along the x-axis in the selected trace diagram in large intervals.
  - CODESYS compresses the x-axis like the Compress command ( 278915aa1ac80902c0a8640e00008c23_479bf06f7d76e653c0a8640e016b66b4 ).
  + CODESYS stretches the x-axis like the Stretch command ( 278915aa1ac80902c0a8640e00008c23_4054ac957d764e35c0a8640e014df3d2 ).
Multi Channel disabled Ctrl+- CODESYS stretches the x-axis
Multi Channel disabled Ctrl++ CODESYS stretches the y-axis
Multi Channel enabled Ctrl+- CODESYS compresses the y-axis of the selected trace diagram
Multi Channel enabled Ctrl++ CODESYS stretches the y-axis of the selected trace diagram
Multi Channel enabled Tab Selection of the next lower trace diagram
One or two trace cursors are provided.

Left Arrow

Right Arrow

CODESYS moves the black trace cursor.
One or two trace cursors are provided.

Ctrl+Left Arrow

Ctrl+Right Arrow

CODESYS moves the black trace cursor in large intervals.
One or two trace cursors are provided.

Shift+Left Arrow

Shift+Right Arrow

CODESYS moves the gray trace cursor.
One or two trace cursors are provided.

Ctrl+Shift+Left Arrow

Ctrl+Shift+Right Arrow

CODESYS moves the gray trace cursor in large intervals.

See also