Debugging SFC programs
When debugging Sequential Function Chart (SFC) programs, visually follow the execution of the individual steps. Steps are colored red while active. Also place SFC breakpoints on SFC steps or transitions. The controller switches to the BREAK state upon encountering a breakpoint. This mode is equivalent to the cycle-to-cycle mode. Execute one cycle or switch to real-time mode to pass the breakpoint. When a controller is in the BREAK state and step-by-step execution is activated for other POUs within the controller, also step to the first line of the first POU of the controller for which debug information is generated.
TIP:
Breakpoints and execute one cycle execution are only
available while simulating an application.
For steps, these types of breakpoints are available:
- Breakpoint on step activation
- Breakpoint on step deactivation
Breakpoints appear as red circles with a white checkmark on the left part of the step or transition. For steps, breakpoints on activation appear at the top corner while breakpoints on deactivation appear at the bottom corner.
Task | Procedure |
---|---|
Set a breakpoint on a step or transition |
|
Remove a breakpoint from a step or transition |
|
Provide Feedback