Mazatrol Programming Examples — Real Unit-by-Unit Programs on a Lathe
Published May 22, 2026
If you search "Mazatrol programming examples" you get one of two things: vendor PDFs that show finished screens with no narrative, or generic G-code tutorials that ignore that Mazatrol is conversational. Neither helps a programmer learn what to actually do when they sit at the control.
These are three examples I've used to train operators — a simple stepped shaft, an ID part, and a sub-spindle transfer. Walked through unit by unit. No fabricated parts; this is the shape of the work I do.
Example 1 — Stepped shaft on a Quick Turn
The part: a 2-inch round bar, 6 inches long, with a 1.5-inch diameter section, a 0.75-inch diameter section, a 0.040-inch chamfer at the right end, and a 1-12 thread on the small end.
Machine: a Quick Turn-250 with Matrix Nexus (or SmoothG — the unit logic is the same).
Unit 1 — BAR OUTER (rough)
This is your roughing pass. The unit asks for:
- Material — 1018 or whatever the bar is. Drives the feed-rate library.
- Start point — typically the face of the bar before the cut, with some clearance.
- End point — where the rough should end. For this part, just past the chamfer location.
- Depth of cut per pass — 0.080–0.100 inch is a reasonable starting roughing depth on a Quick Turn-class machine. Leaves 0.020 for finish.
- Tool — pick the OD rough tool from the tool library. Confirm tool data (TOOL NO., POT NO., nose radius, direction) before you press cycle start.
Unit 2 — BAR OUTER (finish)
Same screen, finish mode. The unit asks for:
- Finish allowance — 0.020 inch is typical for a steel shaft.
- Surface speed — Mazatrol's library suggests one based on the material; bump or trim to taste.
- Tool — finish OD tool, separate from the rougher. Different insert geometry, sharper, smaller nose radius.
This is where 80° vs 55° insert choice matters. For this kind of straight turning, 80°. Save the 55° for shoulders the 80° can't reach.
Unit 3 — CHAMFER
A dedicated CHAMFER unit, or the finish unit's chamfer parameters. Either works. Mazatrol asks for the chamfer length and the angle (typically 45°). Don't program a chamfer with a finish pass tool path — it's slower and the geometry isn't as clean.
Unit 4 — THREAD (multi-pass)
THREAD unit, asks for:
- Thread type — UN, M, NPT, etc. For a 1-12 UN: pick the standard.
- Major diameter — your finished OD on the small section.
- Pitch — 12 TPI.
- Length — how far the thread runs from the chamfer.
- Number of passes — Mazatrol will calculate the spring passes if you don't override.
The G76 multi-pass thread cycle this maps to is one of the workhorse canned cycles. The conversational unit hides the math.
Verify
Run VIRTUAL MACHINING / MAZACHECK in simulation. Confirm the rough leaves enough for finish; confirm the chamfer geometry is right; confirm the thread starts and ends where you expect. Then single-block, air cut, rapid override 25%. Then full speed.
For more on this verify-then-cut pattern, see the Mazatrol tips and tricks article.
Example 2 — ID work on a stepped bore
The part: a flange with a 1.5-inch OD, faced flat, with a 0.875-inch diameter through-hole that gets bored out to 1.000 inch on the first 1.5 inches of depth.
Unit 1 — FACE
Face the part flat. Pick the face tool, set start and end Z, feed rate.
Unit 2 — DRILL
A center drill spot, then the through-drill. Mazatrol has DRILL units for through-drilling, peck-drilling, and tapping. For 0.875 hole, a 7/8 drill takes a single peck on a Quick Turn — don't over-peck.
If you're using the conversational DRILL unit, set the depth (slightly past the part for through-drill so you actually pierce the back), feed, and surface speed. Mazatrol's library suggests speeds for the drill material on the workpiece material.
Unit 3 — BAR IN (rough)
BAR IN is the ID equivalent of BAR OUTER. Same logic, different geometry. The unit asks for:
- Start Z, end Z
- Final ID
- Depth of cut per pass
- Tool — a boring bar. Critical: pick the SHORTEST boring bar that reaches. A 6-inch bar with 4 inches sticking out will chatter and produce a tapered hole. A 4-inch bar with 1.5 inches sticking out cuts clean.
Unit 4 — BAR IN (finish)
Finish the bore. Same as Unit 3 but in finish mode, with the finish bar, leaving the final 1.000-inch ID.
The single biggest mistake on this kind of part is fighting boring-bar deflection with cut depth. Lighter cuts, more passes, and a rigid bar. The cycle time stays the same.
Example 3 — Sub-spindle transfer on an MSY machine
The part: a 1.25-inch round, 2 inches long, with features on both ends. Programmed on a QT-250MSY with SmoothG.
This is where Mazatrol multi-tasking earns its keep. Done right, the part completes in one cycle — no second operation, no setup transfer.
Main spindle units
- FACE — face main side.
- BAR OUTER rough — turn down OD to size, leaving the back-side features long.
- BAR OUTER finish — finish OD on main side, leaving the small back-side stub for the sub.
- GROOVE / CHAMFER as needed for main-side features.
Transfer
The TRANSFER unit moves the part from main spindle to sub-spindle. The unit asks for:
- Synchronization speed — main and sub at matched RPM during transfer. Get this wrong and the part torque-twists during grip.
- Sub-spindle chuck pressure — match to the diameter. Too high crushes thin walls; too low drops the part.
- Cut-off feed, depth, and where the cut-off tool comes in.
The most common failure on transfers isn't the program — it's the three setup things that have to be right before the transfer unit runs: sub-spindle WPC set independently from main, sync speed matched, chuck pressure correct.
Sub-spindle units
-
FACE — face the back of the part now that it's in the sub.
-
BAR OUTER finish — finish the back-side OD features.
-
Whatever else the back side needs.
-
PART-OFF is not needed because the cut-off happened during transfer.
Why this is the multi-tasking win
A QT-250MSY runs this part start-to-finish without operator intervention. The same part on a non-MSY Quick Turn takes a second operation — pull the part off, flip it, re-chuck, re-zero, run the back side. That's setup time and a second touch every part.
The cycle-time numbers I've documented on multi-tasking parts come from this pattern: not from any one program optimization, but from removing the second operation entirely.
What these examples don't cover
These three examples are baseline turning work. They don't cover:
- C-axis milling (cross-hole drilling, keyways, hex flats) — a separate unit type
- Y-axis interpolation (off-center milling) — only on Y-machines, different unit
- B-axis multi-tasking (Integrex i-series and up) — far more complex
- Older EIA / G-code programming — covered separately in the Mazak G-code & M-code reference
- Alarms when something goes wrong — covered in the alarm code library
How to learn this faster
Pick a real part from your shop's recent backlog — something you'd actually quote. Program it in conversational, run it in MAZACHECK, then run it in single block. Repeat with progressively harder parts. The screens become muscle memory in two weeks of consistent practice. That's the path I described in the Mazatrol training article.
If your shop is sitting on a Mazak lathe that nobody is fully fluent on yet, send me the machine, the control, and a typical part. I'll quote on-site training that gets your operator from screens to programs in the time most classroom courses spend on theory.
Thank you, Tom Herzog