+Z+X
0:00 / 2:26
%
O1000 (M24X2 THREADED SHAFT - CNC LATHE SIMULATOR)
(BAR D50 L90 - C45 STEEL)
(T0101 ROUGHING CNMG120408)
(T0202 FINISHING VNMG160404)
(T0404 GROOVING AND PARTING 3 MM)
(T0606 THREADING 60 DEG PITCH 2)
N10 G21 G18 G40 G99
N20 G28 U0. W0.
N30 T0101
N40 G50 S2500
N50 G96 S220 M03
N60 G00 X52. Z2. M08
(FACING)
N70 G01 Z0. F0.2
N80 X-1.6 F0.15
N90 G00 X52. Z2.
(PROFILE ROUGHING WITH G71)
N100 G71 U2. R0.5
N110 G71 P120 Q210 U0.4 W0.1 F0.25
N120 G00 X19.8
N130 G01 Z0. F0.12
N140 X23.8 Z-2.
N150 Z-28.
N160 X30.
N170 Z-40.
N180 G02 X40. Z-45. R5.
N190 G01 Z-60.
N200 X46. Z-63.
N210 X52.
N220 G00 X80. Z20.
(PROFILE FINISHING WITH G70)
N230 T0202
N240 G50 S3000
N250 G96 S260 M03
N260 G00 X52. Z2.
N270 G70 P120 Q210
N280 G00 X80. Z20.
(THREAD RELIEF GROOVE WITH G75)
N290 T0404
N300 G96 S120 M03
N310 G00 X32. Z-28.
N320 G75 R0.5
N330 G75 X20. Z-28. P1500 F0.06
N340 G00 X80. Z20.
(M24X2 THREAD WITH G76)
N350 T0606
N360 G97 S700 M03
N370 G00 X28. Z5.
N380 G76 P010060 Q100 R50
N390 G76 X21.35 Z-26. P1227 Q350 F2.
ControlMachine
Machine with this tool
6/6

1Header

2Tooling

4Machining

5Retract and end

·Utilities

Pick a template from the list

Fill it in here, see its path in the viewer and insert it below the editor cursor.

Guide

Guided CNC programming: write G-code step by step with lathe and mill examples

Program in G-code without memorising every cycle. Pick where you are in the program (header, tool, work offsets, machining, retract and end), open an example block, fill in its values with the actual code in front of you and see in the 2D or 3D viewer where the tool will go before inserting it. There are more than 200 lathe and mill templates across Fanuc, Haas, Siemens, Heidenhain, Fagor, Mitsubishi, Mazak and Okuma, and it all runs free in the browser.

1

The program in the order you write it

Templates are grouped the way a real program is built: 1 header, 2 tool, 3 work offsets, 4 machining and 5 retract and end. At the top you see what your program already has (header, tool, spindle, coolant, machining and end) and clicking any of them opens its template. Depending on where the cursor is, the next step is suggested: start with the header, call the tool, machine, close a cycle with G80 or end the program.

2

Clearly named examples, every value explained

Each template says what it does and which code it uses, such as “Deep peck drilling (G83)” or “Rectangular pocket (POCKET3)”. It looks like the G-code block you are about to write, with boxes where each value goes; hover a G or M code to see its reference card and each box tells you what it is. In Siemens and Heidenhain cycles, which only carry numbers or Q parameters, every value has its name: RTP retract plane, Q201 depth...

3

Canned cycles and hand programming

You get each control's canned cycles (G81, G83, G84, G71, G70, G76, CYCLE81, POCKET3, CYCL DEF 200, Fagor G87...) and also blocks without a cycle to learn the basics: rapid move, feed line, arcs by radius or by centre, contour, facing, turning and grooving by hand. A filter separates canned cycles from hand programming and can show a single family: drilling, turning, milling, work offsets...

4

Warnings before inserting, S and F calculated

While you fill in the block, the usual mistakes are flagged: empty boxes, an R plane below the bottom, a Q peck larger than the hole, a G00 rapid into the material, a tool without M06, cutting without feed F or a stopped spindle. The Calculate S and F button suggests speed and feed from the material, operation and diameter, using the site's cutting data.

5

The toolpath before touching the program

The block's path is drawn dashed over the part in the 2D or 3D viewer, exactly where it will be inserted: below the editor cursor or before the end of the program. Behind it is the site's full simulator: real-time simulation, cycle time with your machine profile, safety and syntax warnings and program export.

6

AI copilot for questions and review

With a Pro account, a copilot reviews the program up to the cursor (what is right, what to watch and how to continue), proposes a machining plan from a description of the part, answers questions about your program and explains each checker warning with a fix you can apply in one click.

Frequently asked questions

Frequently asked questions about guided CNC programming

Can I learn CNC programming from scratch with it?

Yes. It follows the order of a real program, explains every G and M code on hover and every value in the boxes, flags typical mistakes before inserting and shows in the viewer what each block does. Useful for machining students and for anyone programming at the machine who does not remember a cycle's parameters.

Does it have CNC programming examples for lathe and mill?

Yes. For the mill there is drilling, tapping, boring, pockets, contours with cutter compensation, face milling and thread milling; for the lathe, facing, turning, profile roughing and finishing, grooving, threading and parting off. Each one is available as the control's canned cycle and, for the basic ones, also written by hand with G00, G01, G02 and G03.

Which controls does it include?

Fanuc and ISO, Haas, Siemens Sinumerik, Heidenhain (Klartext), Fagor 8055, Mitsubishi, Mazak and Okuma. Templates are filtered by the selected control and machine, so you only see syntax that works on your machine.

How is it different from the G-code simulator?

It is the same app, opened for writing a program instead of reviewing one you already have. The simulator starts on the analysis view; guided programming starts on the templates, the list of what the program is missing and the next step.

Where is the block inserted?

Below the editor cursor (or in its place if the line is empty) or before the end of the program (M30 or M02), as you choose. The exact line is shown and it can be undone with Ctrl+Z.

Is it free?

Yes: the templates, the warnings, the S and F calculation, the simulator and the cycle time are free. Only the AI copilot is a Pro feature.

Keep going

Related tools