A 4th axis CNC simulator lets you practise rotary A-axis work before you risk a real machine. MacroMill’s FANUC VMC simulator now shows simultaneous X and A motion on a horizontal cylinder: chuck on the left, tailstock on the right, and a vertical endmill wrapping helical grooves around the stock. This post walks through what you see on screen, a Macro B program that cuts a diamond helix, and who this feature is for.
Why a 4th axis matters
Three-axis milling moves in X, Y and Z. Add a rotary A-axis and the workpiece can turn under the spindle. That opens jobs you cannot finish in one setup on a plain VMC:
- Wrapping: features that follow the cylinder around its circumference.
- Helical grooves: continuous paths where X travels while A rotates.
- Indexing: stop at an angle, mill a flat or hole, then rotate to the next face.
- Cylindrical parts: shafts, rollers, knurls and patterns that need the stock to spin.
On a real machine those moves cost time and scrap if the program is wrong. A simulator is where you prove the logic first.
What the MacroMill 4th axis CNC simulator shows
The VMC graphics now include a rotary table setup. The workpiece sits horizontal. A 3-jaw chuck on the A-axis holds the left end. A tailstock supports the right end. The spindle feeds a vertical endmill on Z, just like a real vertical machining centre with a 4th-axis unit bolted to the table.

The position readout shows X, Y, Z and A together, so you can watch the rotary angle change with the linear travel. Softkeys under the GRAPH window include GRAPH, SCALE, 3D, 2D, FIT and page arrows. Toggle between views while the program runs:
- 3D mode: solid stock removal. Machined surfaces show in green as the endmill cuts.
- 2D mode: unwrapped toolpath graph. Green is G01 feed. Red is G00 rapid.

The left toolbar keeps the familiar simulation tools: 3D CONTOUR, 2D CONTOUR, WORKPIECE, DYNAMICS, X SECTIONS, 3D BOARD, TOOLS, 3D SOUNDS and RELOAD. Spindle and cutting sounds are realistic, which helps when you are learning to “hear” a bad feed or a stall.
The control side matches a FANUC 0i-MF Plus style layout: absolute coordinates, feed F, spindle S, active G-codes, and an operator panel with E-stop, cycle start/stop, feed and spindle override dials, and a mode dial for EDIT, MEM and MDI.

Simultaneous 4-axis: the diamond helix
The demo cut is simultaneous 4-axis work. X moves linearly while A rotates, wrapping a helical path around the cylinder. One pass runs in the +X direction. A second pass reverses X. Together they form a criss-cross / diamond helical groove pattern on the stock.

Macro B walkthrough: O0010 (HELEX)
Here is the program shown in the simulator. It uses Custom Macro B WHILE loops. Variable #1 is the A-axis angle. Variable #2 is the X position. Each loop step adds 10 degrees on A and 10 mm on X.
O0010 (HELEX)N10 G0 G90 G54 G43 H1 Z100. X0. Y0. A0. M3 S3000N20 #1=0N30 #2=0N40 Z10.N50 G1 Z-2. F100N60 WHILE[#1 LE 360] DO 1N70 #1=#1+10N80 #2=#2+10N90 G1 X#2 A#1N100 END 1N110 G0 Z10.N120 X0. Y0. A0.N130 #1=0N140 #2=0N150 G1 Z-2. F100N160 WHILE[#1 LE 360] DO 2N170 #1=#1+10N180 #2=#2-10N190 G1 X#2 A#1N200 END 2
Line by line
- N10: rapid to a safe Z, home X/Y/A, start the spindle at S3000, apply length offset H1.
- N20–N30: clear #1 (A angle) and #2 (X position).
- N40–N50: approach Z10, then feed to Z-2 at F100 (cutting depth).
- N60–N100: first helix. While #1 is less than or equal to 360, add 10° to A and +10 mm to X, then G1 to that X/A. One full turn wraps X forward.
- N110–N120: retract to Z10 and return to X0 Y0 A0.
- N130–N150: reset variables and plunge again.
- N160–N200: second helix. Same A steps, but #2 steps minus 10 mm each time, so X travels the other way. That is what creates the crossed diamond pattern.
Note: a production program would normally end with a retract, spindle stop and M30. The listing above matches the demo as shown; treat it as a teaching example and prove it out in the simulator before you cut metal.
Tips when you adapt this helix
- Change the step to change pitch. #1+=10 and #2+=10 means 10 mm of X per 10° of A. Smaller steps make a tighter helix and a smoother path. Larger steps are coarser and faster to prove.
- Watch rotary feed. On many controls, F on a simultaneous X+A move is interpreted in a way that depends on how the builder set rotary feed. Always verify feed units and dry-run with single block.
- Finish cleanly. After END 2, retract Z, cancel offsets if needed, M5 and M30 so the next operator inherits a safe state.
- Use 2D GRAPH first. Confirm green feed lines look right and red rapids are clear of the stock before you trust 3D stock removal.
If you are new to variables and loops, start with our post G-Code Is Not a Programming Language. Macros Make It One. For built-in cycles on the same simulators, see FANUC CNC Simulators With Built-In Cycles.
Who this 4th axis CNC simulator is for
- Students learning rotary work without booking a 4th-axis machine.
- Setters and operators who want to see X and A move together before the first cut.
- Programmers proving Macro B loops, helical wrapping and indexing logic offline.
You get the FANUC-style screen, the GRAPH softkeys, the chuck-and-tailstock setup, and live A-axis readout — without scrap, without a crash, and without waiting for machine time.
Try it yourself
- A-Axis VMC Simulator – FANUC 4-Axis Training — $69.99
- MacroMill FANUC 0i-MF Plus VMC Simulator — $99.99
- All-In-One Bundle — $149.99
- Free trial if you want to try before you buy
- More software on the MacroMill software page
- Join the MacroMill WhatsApp group for tips and updates: chat.whatsapp.com/Htae97asBiD14QiwMXjGJA
Load a helix, toggle 3D and 2D GRAPH, watch A turn with X, and prove the pattern before the job hits the shop floor.
MacroMill

Leave a Reply