Command: Cursor
Symbol:
Function:
The command works as follows:
It inserts a trace cursor into the trace diagram when no trace cursor is available.
It inserts a second trace cursor into the trace diagram when 1 trace cursor is available.
It removes the trace cursors when 2 trace cursors are available.
Call: menu; context menu
A trace cursor is a small black triangle with a vertical black line which runs parallel to the Y-axis.
Trace diagram without trace cursors
In this mode, you can use the mouse pointer to run through the trace diagram. When you do this, the X-value which the cursor focuses on is displayed in the status bar in the normal style. Example: Time: 1m23s456ms; Value: 1
Trace diagram with one trace cursor
In the status bar and Y-value, CODESYS outputs the time which was marked by the trace cursor. Example: Time: 1m23s456ms
Trace diagram with two trace cursors
In the status bar, CODESYS outputs the two times and the time interval which are marked by the two trace cursors. Example: Time: 1m23s456ms - Time: 1m24s456ms (∆ 1s) .
User input in the trace diagram
If one or two trace cursors are available, then you can move them along the X-axis.
User Input with Mouse | Symbol | Effect |
---|---|---|
Drag the triangle of a trace cursor to another position. | ![]() | While the mouse button is pressed, the cursor can be moved without any restrictions. The current Y-value is always displayed in the status bar. When the mouse button is released, the cursor jumps to the nearest measuring point. |
User input with keyboard shortcuts | Effect |
---|---|
Arrow Left Arrow Right | CODESYS moves the black trace cursor to the next measuring point. |
Shift+Arrow Left Shift+Arrow Right | CODESYS moves the gray trace cursor to the next measuring point. |
For more information, see: Navigating into Trace Data