VA Motion Controller Programming Manual
96
8 .6 breakpoint debugging
1 ) Like other high-level language development tools, MULTIPROG supports setting
breakpoints for PLC programs for debugging programs. After setting a breakpoint, there are two
ways to debug the program: single step and trace.
Single step: The PLC executes the next instruction of the current instruction. If it is a
function or a function block call, it will execute the complete call process to get the result.
Tracking: The PLC executes the next instruction. If it encounters a user-defined function or
a function block call, it will open the corresponding code body. The tracking process executes
only one instruction at a time.
1 Turn on the debug mode;
2
Double-click the“
SB1
”variable in the code worksheet and click the“Settings”button in
the “Debug
:
Resources” dialog box ; in the online worksheet, “
SB1
” is highlighted in orange
as shown in the figure. The status of the project control dialog box will also change to
"Pause [ Debug ] ", the background is orange, and the button will be programmeDAnd
debuggeDAccordingly, as shown in the figure;