-
In the editor, open a POU programmed in structured text (ST).
-
Place the cursor at the position for an execution point.
-
Click “Debug New Breakpoint”.
The “New Breakpoint” dialog opens.
-
Click the “Execution Point Settings” tab.
-
Select the “Execution point” option.
In the “Execute the following code” field, specify the following statement:
iCounter := iCounter + 1;
In the “Print a message in the device log” field, specify the following text:
Execution point reached {iCounter}
-
Close the dialog.
When the program reaches the execution point, it does not halt, but executes the code defined above. In addition. a message is issued to the device log.
-
See also: ⮫ New Breakpoint