CHECKLISTCommon 5-axis mistakes
A 5-axis machine can move in ways a 3-axis machine cannot. Check the points listed here before running a program for the first time. Checking only marks items; nothing is saved anywhere.
- Passing near a singularityIn an orientation where the tool axis is parallel to a rotary axis centerline (B = 0° with the tool pointing straight down, on a machine with B and C in the head), the angle of that axis is undefined, and passing near it makes the C axis try to swing about 180° at once. Avoid it by not running simultaneous 5-axis with the tool pointing straight down on a flat finishing pass (use 3+2 or tilt the tool slightly), or by defining a small cone around the singularity in CAM or the post so that C stops, and so on.[30][31][19]
- Picking the wrong rotary axis solutionThere are normally two sets of rotary axis angles for the same orientation. If the NC chooses the nearer one automatically, the axis can swing widely to the opposite side from what you expected. Specify how to choose, as with SEQ+/− (Heidenhain), or check the range limits.One source / reference[22]
- Direction of rotary axis motionOn a rotary axis that counts beyond 360°, 350° → 10° may turn −340° (the long way around). To turn the near way (+20°) you need a function such as M126 (Heidenhain). If you command 180° while the displayed value is 538°, it turns −358° (use M94 to reduce the display to under 360° before moving).One source / reference[22]
- Feed rate unitsIf you move a rotary axis in G94, different NCs interpret the feed differently: it may become deg/min (the farther from the center of rotation, the higher the actual speed), or a speed for the XYZ path only. CAM 4- and 5-axis programs often use G93 (inverse time feed), in which case every cutting block needs an F.[22][32][33]
- Tilting the tool under RTCP and cutting without re-measuring the tool lengthIf the registered tool length is off by ΔL, tilting the tool by θ creates a mismatch of 2ΔL·sin(θ/2) with the surface cut with the tool pointing straight down (about 10 µm for ΔL = 20 µm and θ = 30°). When you change tools, re-enter the tool length measured from the gauge line.[14][10][35]
- With TRAORI (Siemens), the work offset is reset depending on the configuration. Command the work offset again after TRAORI.One source / reference[2]
- Rapid-traversing a rotary axis during tool center point controlWith Haas TCPC, the tool tip position is not maintained during rotary moves in rapid traverse.One source / reference[34]
- Calibrating cold, then finishing after the machine has warmed upThe center of a rotary axis moves with heat. In a research example, the position of opposing faces changed by more than 20 µm during about 80 minutes of machining. Warm up first, then measure, and finish right after measuring.[10]
- Changing the angle of a tilt axis indexed by a Hirth coupling while the tool is still in contact (the form is damaged when the coupling disengages). Retract the tool before turning.One source / reference[22]
Printed from Kezuriba (kezuriba.net/en/5axis/mistakes/)
Singularities in detail — which orientation, and why the C axis swings
- A singularity is an orientation in which the tool direction is parallel (or nearly parallel) to the axis line of a rotary axis. No matter how much you turn that axis, the tool direction hardly changes, so the angle is undetermined. And when the tool passes near it, that axis swings widely.[30][31][19]
- B (tilt) and C (swivel) on the head sideThe orientation with the tool straight down (along Z), B=0°, is the singularity, and C is undetermined. Depending on the machine configuration, B=90° or 180° becomes the singularity.[30]
- A (or B) and C on the table sideThe idea is the same: when the tool direction becomes parallel to the axis line of the C axis (rotary table), usually A=0° with the table level, C is undetermined. Which orientation is the singularity depends on the machine configuration, so check the operator's manual.One source / reference[30][31]
Real example: axis motion when passing a singularity
| A axis | C axis |
|---|---|
| 0.827° | −0.075° |
| −0.001° | −90° |
| 1.043° | −179.72° |
- This is an example of a gantry machine with C and A on the head side. Because the CAM tool direction wobbled slightly while passing straight down, C turned about 180° while A moved by less than 2°. This kind of motion easily damages the workpiece. It stops if the post-processor defines a cone with a half angle of 0.5° or 1° around the singularity and does not move C inside it.[31]
How fast does it turn?
- If d is the angle away from the singularity, moving the tool orientation sideways by 1° requires the C axis to turn about 1/sin d degrees: about 11° at d = 5°, about 57° at 1°, and about 573° at 0.1°. Passing directly over it, C would have to flip 180° instantly; if the axis speed and acceleration limits cannot keep up, the path distorts or the feed drops.[48][49]
For the angle from the singularity and the C axis speed, see 5-axis calculations (singularities).
How to avoid it
- Mount the workpiece slightly tilted so the singular orientation does not fall inside the toolpathOne source / reference[49]
- Use the NC's singularity handling (there is also a patent that detects blocks passing through a singularity and moves the tool direction within the commanded plane)One source / reference[51]
Shop tip: when finishing a flat face, don't use simultaneous 5-axis with the tool pointing straight down. Use 3+2 indexing, or tilt the tool slightly to keep away from the singularity.
Details
- Tool center point control, tilted-plane machining, G93:5-axis NC functions
- Measuring and correcting the center of rotation: Kinematics calibration, and for the concept of errors, see Rotary axis location errors
- Tool length error and RTCP accuracy: RTCP accuracy
- Rotation of a rotary axis in the shortest direction, reducing the displayed value:5-axis calculations
Frequently Asked Questions
- What is a singularity in 5-axis machining?
- It is an orientation in which the tool axis is parallel (or nearly parallel) to a rotary axis. That axis's angle becomes undefined, and passing nearby makes the C axis try to swing about 180° at once. On a machine with B and C in the head, B=0° with the tool pointing straight down is a singularity.
- How can I stop the C axis from spinning suddenly near a singularity?
- Do not finish flat faces in simultaneous 5-axis with the tool pointing straight down; use 3+2 or tilt the tool slightly. Another method is to define a cone with a half-angle of 0.5° or 1° around the singularity in the CAM or post, inside which C is not moved.
- Why do 5-axis programs use G93 (inverse time feed)?
- Moving rotary axes in G94 is interpreted differently by different CNCs—the feed may become degrees per minute or apply only to the XYZ path. So 4- and 5-axis programs from CAM often use G93, and then every cutting block needs an F word.
- How much mismatch does a wrong tool length cause in 5-axis machining?
- If the registered tool length is off by ΔL, tilting the tool by θ creates a mismatch of 2ΔL·sin(θ/2) with the surface cut with the tool pointing straight down (about 10 µm for ΔL = 20 µm and θ = 30°). When you change tools, re-enter the tool length measured from the gauge line.
Other 5-axis machining pages

5-axis machining basics
The difference between 3+2 and simultaneous 5-axis machining, the advantages of 5 axes, and terminology.

5-axis machine configurations
The three types (head-head, table-table, head-table) with their advantages and drawbacks, the names and directions of rotary axes A, B, C, vertical vs. horizontal machines, and multitasking machines.

5-axis NC functions
Tool center point control, tilted-plane commands and 3D tool radius compensation. A comparison of commands by NC maker, G93 inverse time feed, tool length and center of rotation, and RTCP accuracy.

Calibration, collision, workholding and tools
Location errors of the rotary axes (center offset and tilt), R-test, ballbar and touch probe, kinematics calibration and heat, accuracy test standards, collision checking, 5-axis vises, and how to tilt a ball end mill.

5-axis CNC simulator
Run G43.4, G43.5 and G68.2 programs in the browser and cut in 3D — side holes and undercuts included — with warnings for TCP-off drift, singularities and holder collisions. Four exercises.

5-axis calculations
The F value for G93 inverse time feed, the tilt angle of a ball end mill, angles from a direction vector, the shortest way to turn a rotary axis, the effect of a center-of-rotation offset, and C axis speed near a singularity.

CAD/CAM
CAM workflow, toolpaths, a list of software, and data formats.
Sources
- DR. JOHANNES HEIDENHAIN GmbH, “TNC 640 User's Manual Programming of Measuring Cycles for Workpieces and Tools, NC Software 34059x-18, 10/2023 (1303409-23)”
- Siemens AG, “Milling with SINUMERIK — 5-axis machining Manual, Edition 05/2009 (DocOrderNo. 6FC5095-0AB10-0BP1)”
- Okuma America Corporation (Okuma), “MU-V Series 5-Axis Vertical Machining Centers catalog”
- FANUC Corporation, “FANUC Series 30i/31i/32i-MODEL B Plus catalog (English edition FS30i-BPlus(E)-01)”
- Yamazaki Mazak Corporation, “5-axis machine VORTEX i-V product information”
- Renishaw plc, "Brochure: AxiSet Check-Up — Fully automated tests for accurate and consistent results"
- DMG MORI (US site), “DMU 65 (FD) monoBLOCK 2nd Generation product page (description of 3D quickSET)”
- Japan Society for Precision Engineering (S. Ibaraki), “Measurement and Compensation of Motion Errors of Five-Axis Machine Tools (review)”, Journal of the Japan Society for Precision Engineering 78(9) (2012) (in Japanese)
- Fuji Technology Press (S. Ibaraki, Y. Ota), “Error Calibration for Five-Axis Machine Tools by On-the-Machine Measurement Using a Touch-Trigger Probe, Int. J. of Automation Technology 8(1) (2014)”
- Elsevier (S. Ibaraki et al., Hiroshima University repository), “A machining test to evaluate thermal influence on the kinematics of a five-axis machine tool, Int. J. Machine Tools and Manufacture 163, 103702 (2021)”
- Fuji Technology Press (S. Ibaraki, W. Knapp), “Indirect Measurement of Volumetric Accuracy for Three-Axis and Five-Axis Machine Tools: A Review, Int. J. of Automation Technology 6(2) (2012) (abstract)”
- Google Patents (applicant FANUC), “US8283884B2 Numerical controller controlling five-axis machining tool”
- Japanese Standards Association (JSA), “JIS B 6336-6:2018 Test conditions for machining centres — Part 6: Accuracy of feeds, speeds and interpolations (ISO 10791-6:2014), preview”
- Renishaw plc, "Application note: ISO 10791-6 using QC20 ballbar"
- Japan Society for Precision Engineering (Y. Ihara, M. Tsutsumi, T. Eguchi, S. Ibaraki), “A Study of Measurement and Compensation Techniques for Volumetric Accuracy of 5-Axis Machine Tools”, Journal of the Japan Society for Precision Engineering 85(10) pp.809-812 (2019) (in Japanese)
- Japanese Standards Association (JSA), “JIS B 6336-7:2018 Test conditions for machining centres — Part 7: Accuracy of a finished test piece (ISO 10791-7:2014), preview”
- Hiroshima University, Ibaraki Laboratory, “Research introduction: Machining tests for diagnosing the causes of errors in five-axis machine tools”
- Osaka Institute of Technology, Faculty of Engineering, Department of Mechanical Engineering, Precision Engineering Laboratory (Yukitoshi Ihara Laboratory), “A Study of Machining Accuracy Test Methods for 5-Axis Machining Centers (research introduction poster)”
- Fuji Technology Press (author: Masako Sudo, FANUC Corporation), “Development Report: Advanced Control Technologies for 5-Axis Machining, Int. J. of Automation Technology Vol.1 No.2, pp.108-112, 2007 (DOI 10.20965/ijat.2007.p0108, CC BY-ND 4.0)”
- FANUC America Corporation, “5-Axis Machining — CNC systems for high-performance machine tools (MBA-025-EN_03_1308, 2013)”
- Mitsubishi Electric Corporation, Naoki Nakamura, “Improved usability of indexed machining on the ‘MITSUBISHI CNC M700V Series’,” Mitsubishi Denki Giho Vol.85 No.4 (2011)
- DR. JOHANNES HEIDENHAIN GmbH, “TNC 640 User's Manual Conversational Programming, NC Software 340590-01 / 340591-01 / 340594-01, 4/2012 (892903-20)”
- Haas Automation, Inc., “G254 Dynamic Work Offset (DWO) (G-code reference page)”
- Kitagawa, “V75V 5-axis centering vise (product list page)”
- LANG Technik GmbH, “41111: Makro•Grip Stamping Jaws (product page)”
- Yamazaki Mazak Corporation, “5-axis machine VARIAXIS C product information”
- Hokkaido University, Makoto Yamada, “A Study on Spindle-Tilting Machining with a 5-Axis NC Machine Tool,” abstract of doctoral dissertation (Engineering) (2006)
- Kanagawa Institute of Industrial Science and Technology (KISTEC), Tomohiro Yokota, “A Study of Machined Surface Quality in Ball End Milling,” KISTEC Research Report 2020
- Union Tool Co., “UT End Mill Newsletter, April 2022 vol.12 ‘My Focus: Barrel Tools (1)’”
- Google Patents (applicant FANUC), “US11003157B2 Numerical controller for machine tool with installation error compensation unit”
- ICAM Technologies, “How to eliminate unnecessary rotary moves due to singularity (2014)”
- Haas Automation, Inc., “G93 Inverse Time Feed Mode (G-code reference page)”
- National Institute of Standards and Technology (NIST), “The NIST RS274NGC Interpreter – Version 3 (NISTIR 6556, 2000)”
- Haas Automation, Inc., “G234 Tool Center Point Control (TCPC) (G-code reference page)”
- FIDIA S.p.A., “Functions for 5-axis machine tools (RTCP)”
- Haas Automation, Inc., “G268 / G269 Feature Coordinate System (G-code reference page)”
- University of Birmingham (Z. Jiang), “Characterising Geometric Errors in Rotary Axes of 5-axis Machine Tools (PhD thesis, 2015)”
- MDPI, “Trajectory-Based Identification of Rotary-Axis Position-Independent Geometric Errors Considering Excitation Projection Effects, Micromachines 17(2) 256 (2026)”
- Japan Society for Precision Engineering (S. Ibaraki et al.), “Measurement and Compensation of Motion Errors of Five-Axis Machine Tools Using an R-test (Report 1)”, Proceedings of the 2009 JSPE Autumn Meeting (in Japanese)
- Japanese Standards Association (JSA), “JIS B 6190-1:2016 Test code for machine tools — Part 1: Geometric accuracy of machines operating under no-load or quasi-static conditions (ISO 230-1:2012), preview”
- Chinese Standard (standards sales site), “GB/T 39953-2021 Five-axis simultaneous machining centers — RTCP accuracy inspection (overview and table of contents)”
- Japan Society for Precision Engineering (S. Ibaraki et al.), “Measurement and Compensation of Motion Errors of Five-Axis Machine Tools Using an R-test (Report 2)”, Proceedings of the 2009 JSPE Autumn Meeting (in Japanese)
- Hiroshima University, Ibaraki Laboratory, “Research introduction: R-test”
- Elsevier (S. Ibaraki, C. Hong et al., Kyoto University repository), “Non-contact R-test with laser displacement sensors for error calibration of five-axis machine tools, Precision Engineering (2013)”
- Hiroshima University, Ibaraki Laboratory, “Research introduction: Ballbar measurement (DBB5)”
- Japanese Standards Association (JSA), “JIS B 6190-7:2019 Test code for machine tools — Part 7: Geometric accuracy of axes of rotation (ISO 230-7:2015), preview”
- Singapore Standards eShop, “ISO/TR 16907:2015 Machine tools — Numerical compensation of geometric errors (abstract)”
- HAL (archives ouvertes), “Kinematical smoothing of rotary axis near singularity point”
- University of Bath (R.J. Cripps et al.), “Singularities in five-axis machining: cause, effect and avoidance, Int. J. Machine Tools and Manufacture 116 (2017) (abstract)”
- BazTech (bibliographic record of the cited paper), “Bibliographic record of A. Affouard et al., ‘Avoiding 5-axis singularities using tool path deformation’, Int. J. Machine Tools and Manufacture 44(4) (2004)”
- Google Patents, “JP2011003176A Numerical control device for 5-axis machine tool”