beckhoff TwinCAT 3 — 10 Debugging

Debugging WARNING Damage to plants and personal injuries due to unexpected behavior of the machine / plant Breakpoints change the behavior of the machine or plant. Depending on the machine being controlled, the machine or workpieces may be damaged or the health and life of people may be endangered. Make sure that the changed behavior of the controlled system does not cause any damage and be sure to note the plant documentation. On reaching the breakpoint (indicated by an arrow), the execution of the code is stopped. The code is executed step by step by pressing Step Over (Debug menu, toolbar or hotkey F10).

The familiar Visual Studio functions Step in (F11) and Step out (Shift + F11) are also available. Conditional breakpoints A more advanced technology allows the setting of conditional breakpoints – the execution of code is only stopped at a breakpoint if a condition is fulfilled. TwinCAT offers the implementation of a conditional breakpoint as part of the Visual Studio Integration. To set a condition, first set a normal breakpoint and then right-click on the red dot in the breakpoint column. WARNING Damage to plants and personal injuries due to unexpected behavior of the machine / plant Breakpoints change the behavior of the machine or plant.

Depending on the machine being controlled, the machine or workpieces may be damaged or the health and life of people may be endangered. Make sure that the changed behavior of the controlled system does not cause any damage and be sure to note the plant documentation. TwinCAT 3 76 Version: 1.19.1