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.

    JOGNOT REFERENCED0:00
    WORK G54MACHINE
    X
    Y
    Z
    T0S0F0LOAD 0%CONTACT
    Step
    Spindle

    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

    1. Reference return. Stay in JOG and press REF. The control now knows its machine position. Without it AUTO is blocked.
    2. Edge finder. Change to MDI, type T10 M06 and press CYCLE START.
    3. 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.
    4. Y zero. The same on the front side.
    5. 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.
    6. 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:

    HTML
    <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

    Frequently asked questions

    Can I run my own program?
    Yes. Switch to AUTO and paste it into the editor. The block is 80 × 60 × 20 mm, the tools are T1 end mill 10, T2 end mill 6, T3 drill 6 and T4 face mill 40. G00 to G03, G28, G54, G73, G80 to G83 and G90/G91 are supported.
    Why do I get an overtravel alarm?
    In most cases a tool length is missing. With H = 0 the control wants to move the spindle far above its travel. Measure the tool or press "Set all offsets for me".
    Is the block always in the same place?
    No. Every time the page is loaded the block lies in a slightly different place, as after a real set-up.
    Was this page helpful?