Session 112-Setting Up and Using Basic Debugging Tools
Session 112-Setting Up and Using Basic Debugging Tools
In this session we will discuss how the Variable window, Call Stack Window and
VERICUT Logger Window can be used in debugging your simulation.
• Play
Note: The VERICUT Logger displays all errors, warnings, and informational
messages to assist you during a simulation session. Error and warning messages are
preceded with the label Error or Warning and information messages have no
preceding label.
From the start we realize that we have a problem with our work offset.
• Reset
• Play
Notice that the work offset error is resolved, now the simulation stops at the tool
change
• Reset
Note: The G-code log file is used to track what macro(s) each NC code is calling
and its associated value. When debugging a control configuration, this log file is the
first thing you want to set. Setting up a G-code Log file
Note: The features on the Debug section of the G-Code Outputs tab enable you to
select what debug messages to send to output. Debug messages can provide
additional information that may be helpful debugging development of files used to
simulate G-Code NC programs and simulate machine tool motions.
• Reset Model
• Play
Note: the Features on the Variables panel, are used to monitor, initialize, and
maintain G-Code variables. Most Variables windows are “read only” in that they
display information.
• Scroll through the variables and notice that variable CURRENT_TOOL is not
defined, but tool variable 4120 is defined.
To verify that the tool ID for call out tool is 17 we need to see what the main
program is calling
Note: The Call Stack panel enables you to track information like subroutine calls
and which subsystem is currently active. The picture below shows the current
status of three subsystems.
Notice that the NC Program window jumps back to Main program. Also notice that
the tool being called has an ID=17
Note: If you highlite a variable (example #4120), VERICUT will display it value
(example 17).
Conclusion
In this session you saw how to use Variable window, Call Stack Window, VERICUT
Logger Window and G-code log file in debugging a simulation. From the information
gathered from all these tools we were able to correct the problem and run the simulation
to its completion.