This is an educational overview of the concepts behind testing a program. It is not operating or safety instructions for your machine. The real procedure is the one your instructor, employer, and machine manual give you, and a new program should be tested under supervision.
A new G-code program is never trusted at full speed on the first run. Instead, beginners learn to layer cheap checks that each catch a different kind of mistake before a real cut happens.
The layers, from screen to spindle
- Read it. Walk the program line by line. Do the offsets, units (
G20/G21), and absolute/incremental mode (G90/G91) match what you expect? Most catches happen here, for free. - Preview it. Many controls and CAM tools show a backplot or graphics simulation of the toolpath. This catches a wrong shape or an obvious collision before any motion.
- Single block. On the machine, single block runs one line at a time so you can see each move coming.
- Dry run. Run the motion without cutting, often with the tool clear, at a controlled speed, to confirm the path.
- Rapid and feed overrides. Turning rapids and feeds down gives you time to react during the first real pass.
At a glance
| Check | Catches | Where |
|---|---|---|
| Read the program | Wrong offset, units, or mode | On screen |
| Graphics / backplot | Wrong shape, obvious collision | On screen / CAM |
| Single block | A bad move, line by line | On the machine |
| Dry run | Path problems, without cutting | On the machine |
| Rapid / feed override | No time to react at full speed | On the machine |
Why understanding the codes comes first
Every check above assumes you can read the program. If you hesitate on what G00, G90, or G54 mean, the on-screen read step (the cheapest catch) does not work. That is why recall of the common G-codes and the modal behavior matters before you ever stand at the control, and why a wrong rapid is such a common beginner crash, as covered in why CNCs crash on G00. A drill tool like G-Code Sprint builds that reading fluency; it does not test or run programs.
Bottom line
Safe testing is layered: read it, preview it, then single block and dry run on the machine with overrides down, under supervision. The foundation is being able to read the program confidently, which is pure recall you can build in advance.
Sources
Frequently asked questions
What is single block mode?
Single block runs the program one line at a time, pausing after each, so you can see what the next move will do before it happens. It is a common way beginners learn to step through a new program under supervision.
What does a dry run do?
A dry run executes the motion without cutting (often without the part, or with the tool clear), usually at a controlled speed, so you can confirm the path before committing to a real cut. Exact behavior varies by control, so check your machine manual.
What is the safest way for a beginner to test a G-code program?
Follow your shop’s procedure and your instructor first. Conceptually, beginners layer checks: read it, preview it, then use single block and dry run on the machine. Recall tools like G-Code Sprint help you understand the codes you are checking, but they do not test or run programs and are not a safety system.
G-Code Sprint is a study and practice tool only. It is not a CNC simulator, machine controller, or safety authority. Always follow your instructor, employer, machine manual, and shop safety procedures.