Free simulator
Virtual CNC Machine — Practise Reference Return, Touch-Off and AUTO Mode
A complete set-up without a machine. The block lies somewhere in the vise, and nobody tells the control where. Find it with the edge finder, measure the tools, then run the program. A wrong offset ends the way it does in the shop.
| WORK G54 | MACHINE | |
|---|---|---|
| X | ||
| Y | ||
| Z |
Type a block, then press CYCLE START. Examples: T1 M06, S4000 M03, G00 X0. Y0.
| G54 | X | Y | Z 0.000 |
|---|
How it works
Machine position = work offset + tool length offset + program position. G54 X = machine X − distance of the spindle centre from the zero point. H = machine Z when the tool tip stands on Z0. Load = removal rate × kc ÷ 60,000, as a share of a 7.5 kW spindle in aluminum.
The set-up, step by step
- Reference return. Stay in JOG and press REF. The control now knows its machine position. Without it AUTO is blocked.
- Edge finder. Change to MDI, type
T10 M06and press CYCLE START. - X zero. Jog with big steps next to the left side of the block, go down until Z is between the top face and the vise (about 3 mm below the top), then approach with smaller steps. The yellow CONTACT lamp shows the touch. The finder has Ø10, so its centre is now at X-5. Enter -5 on the OFFSET page and press MEASURE X.
- Y zero. The same on the front side.
- Tool length. Call T1 with MDI, stand over the block and go down in small steps until the lamp is on. Press MEASURE H. Repeat this for every tool of the program.
- First run. AUTO, SINGLE BLOCK on, rapid 25 %. Read the next block and the distance before every press of CYCLE START.
What the machine checks
- End of travel of all axes (OVERTRAVEL)
- Rapid moves into material, cutting without a turning spindle, too deep or too fast cuts
- Contact with the vise jaws
- A broken edge finder
- AUTO without a reference return
It is a training model, not a copy of one control. Key names and page layouts differ between Fanuc, Haas and other makers, the order of the work does not. After the set-up, test your own code in the 3D milling simulator or take it to the CNC Arena.
Embed this calculator on your site
Free for workshops, schools and forums — copy this snippet:
<iframe src="https://cnccode.com/embed/virtual-cnc-machine/" width="100%" height="720" style="border:0" loading="lazy" title="Virtual CNC Machine"></iframe>More free CNC tools
- G-Code Viewer & Simulator
- 3D CNC Simulator & Challenges
- CNC Lathe Simulator
- 5-Axis Simulator (A/C Trunnion)
- Live Milling Simulation
- STL Viewer & Part Weight
- Canned Cycle Simulator
- G41/G42 Cutter Compensation Simulator
- Chatter & Stability Lobe Simulator
- Fanuc Macro B Simulator
- Trochoidal Milling Simulator
- Feeds & Speeds Calculator
- Drilling Speed & Feed Calculator
- Surface Finish Calculator
- All tools