Beckhoff Automation GmbH & Co. KG TX1200 — 6.5 Sampling Trace

Resources 'Extras' 'Set Debug Task' With this command a debugging task can be set in Online mode in the task configuration. The text [DEBUG] will appear after the set task. The debugging capabilities apply, then, only to this task. In other words, the program only stops at a breakpoint if the program is gone through by the set task. The setting of the Debug Task is stored in the project and will be set again automatically at log in / download.

Cancel the Debug Mode To cancel the "Debug-Mode" choose "Task configuration" open the Context menu choose „Set Debug Task“ 'Extras' 'Display Callstack' If the program is stopped at a breakpoint during debugging, then this command can be used to show the callstack of the corresponding POU. For this purpose the debug task must be selected in the task configuration tree. The window 'Callstack of task ' will open. There you get the name of the POU and the breakpoint position (e.g. "prog_x (2)" for line 2 of POU prog_x) . Below the complete call stack is shown in backward order.

If you press button 'Go To', the focus will jump to that position in the POU which is currently marked in the callstack. 6.5 Sampling Trace Sample tracing means that the progression of values for variables is traced over a certain time frame. These values are written in a ring buffer (trace buffer). If the memory is full, then the "oldest" values from the start of the memory will be overwritten. As a maximum, 20 variables can be traced at the same time. Since the size of the trace buffer in the PLC has a fixed value, in the event of very many or very wide variables (DWORD), fewer values can be traced.

In order to be able to perform a trace, open the object for a Sampling Trace in the Ressources register card in the Object Organizer . After this, you must enter the trace variables to be traced. (See "Extras" "Trace Configuration" .) After you have sent the configuration with "Define Trace" to the PLC and have started the trace in the PLC ( "Start Trace" ), then the values of the variables will be traced. With "Read Trace" , the final traced values will be read out and displayed graphically as curves. 'Extras' 'Trace Configuration' With this command you will be given the dialog box for entering the variables to be traced, as well as diverse trace parameters for the Sampling Trace.

TX1200 175 Version: 1.3