beckhoff TwinCAT 3 — 10.1 Details of Conditional Breakpoints

Debugging | Details of Conditional Breakpoints The TwinCAT Live Watch window is divided into two areas. In the upper area all member variables can be explored. By double-clicking on it they are added to the lower area, where the current value is then displayed. You can edit these values by clicking on the value in the Value field. The new value is highlighted in red. To write the value, press the symbol in the upper left corner (1). Using the import and export symbols under (2), the selected member variables can be saved and later restored. 10.1 Details of Conditional Breakpoints | Details of Conditional Breakpoints TwinCAT C++ provides conditional breakpoints.

Details of the formulation of these conditions can be found here. Unlike the Visual Studio C++ conditional breakpoints, the TwinCAT conditions are compiled and subsequently transferred to the target system so that they can be used during short cycle times. 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.

The option buttons offer two options that are described separately. Option: Is true Conditions are defined with the help of logical terms, comparable to the conjunctive normal forms. They are formed from a combination of Maxterms connected with "&&": (Maxterm1 && Maxterm2 && ... && MaxtermN) wherein each Maxterm represents a combination of || associated conditions: (condition1 ||condition2 || ... || conditionN ) Possible comparison operators: ==,!=, =, Observe the Live Watch window for the determination of the available variables. All listed variables can be used for the formulation of conditions. This includes TMC-defined symbols as well as local member variables. Samples:

m_counter == 123 && hr != 0 TwinCAT 3 78 Version: 1.19.1