Free calculator

5-Axis CNC Simulator β€” See How A and C Axes Move the Part and What TCP Does

Move the A and C axes of a trunnion table and see what happens to a point on the part. The tool also converts a tool vector into machine angles and shows the pattern for 3+2 machining and for tool centre point control.

Point on the part, measured from the point where the A and C axes cross:

Tool vector β†’ A and C

Tool axis in part coordinates–, –, –I, J, K
Machine X–mm
Machine Y–mm
Machine Z–mm
Point moved by–mm, what G43.4 follows
G-code pattern

How it works

Part point in machine coordinates: rotate by C around Z, then by A around X. Tool vector (I, J, K) to angles: A = arccos K, C = atan2(I, J). At A = 0 every C angle gives the same tool direction: this is the singularity.

What you can learn here

  • 3+2 machining: set A and C once, lock the axes and machine the tilted face like a normal 3-axis job. This is what most shops use most of the time.
  • Why TCP exists: the stat "Point moved by" shows how far the part travels when the axes turn. Without G43.4 (Fanuc), G234 (Haas) or TRAORI (Siemens) the CAM program would have to contain that movement for one exact setup position.
  • Singularity: move A close to 0Β° and change the tool vector a little. C jumps. Real machines slow down there or leave a mark, so programmers tilt the part by a few degrees.

The direction of positive A and C differs between machines. Check the sign on your own machine before you use numbers from any calculator.

Embed this calculator on your site

Free for workshops, schools and forums β€” copy this snippet:

HTML
<iframe src="https://cnccode.com/embed/5-axis-simulator/" width="100%" height="720" style="border:0" loading="lazy" title="5-Axis Simulator (A/C Trunnion)"></iframe>

More free CNC tools

Frequently asked questions

What is the difference between 3+2 and simultaneous 5-axis?
In 3+2 the two rotary axes position the part and stay still while X, Y and Z cut. In simultaneous 5-axis all five axes move during the cut, which is needed for blades, ports and undercut freeform surfaces.
What does G43.4 do?
It turns on tool centre point control on Fanuc-style controls. The program describes the tool tip on the part, and the control moves X, Y and Z to follow the part while the rotary axes turn.
What is a 5-axis singularity?
It is the position where the tool is parallel to the C axis. Very small changes of tool direction then need large C movements, so the machine becomes slow and may leave marks.
Was this page helpful?