Manually configuring the trace
- The IEC project is open in the IEC Editor.
- Open the context menu of the "Application" object in the device tree.
- On the "Add object" submenu, choose "Trace".
Configuring the trace
- Open the "Trace" tab by double-clicking the trace object you have added.
- On the "Trace" tab, click the "Configuration" link.
- In the "Recording settings" section, choose "TaskHighPrio" in the "Task" choice box.
- In the "Recording settings" section, choose "ms" in the "Resolution" choice box.
- Click the [Advanced] button.
- In the "Trace editor buffer size per variable (samples)" box in the "Advanced trace settings" dialog box, enter the value "100010".
- Click [OK] to apply your entry in the "Advanced trace settings" dialog box.
- Click [OK] in the "Trace configuration" dialog box.
Adding variables
- Open the global variable list or the declaration area of the required function block that contains the variables to be recorded.
- Drag and drop the required variables into the variable area (white area on the right under "Add variable") of the "Trace" tab.
- Open the context menu of the trace recording (press the right mouse button in the yellow recording section).
- Select the "Convert to multi-channel" entry in the context menu to move each variable to a separate diagram. This function is recommended for a maximum of 7 variables. A previous sorting can then only be restored in a very complex manner.
Starting a trace
- Open the context menu of the trace recording (press the right mouse button in the yellow recording section).
- On the context menu, choose "Download trace".
Stopping a trace
- Open the context menu of the trace recording (press the right mouse button in the yellow recording section).
- On the context menu, choose "Stop trace".