CALIBRATION & SETUPCalibration, collision, workholding and tools

On a 5-axis machine, if the NC does not know correctly where the centers of the rotary axes are, the shape goes off when the rotary axes move. This page covers how to think about rotary axis errors, how to measure and calibrate, how to check accuracy, checks to avoid collisions, and workholding and tool selection specific to 5-axis machining.

Rotary axis location errors — center offset and tilt

The accuracy of a 5-axis machine depends largely on whether the centers of the rotary axes are where the NC thinks they are. A center offset of only a few µm can shift the workpiece by nearly twice that when a rotary axis is turned. This section covers how errors are classified, how to read the symbols, and how much they show up in the shape.

Axis average line of the A axisCδC axis as the NC remembers itActual axis average line(average position and orientation over one turn)TiltDashed line: rotary axis as the NC remembers it; red line: actual axis average line (offset and tilt are drawn exaggerated)δ: center position offset (E_X0C, E_Y0C); tilt: E_A0C, E_B0C → 4 location errors for the C axisThe tilt axis (A axis) also has 4 location errors (E_Y0A, E_Z0A, E_B0A, E_C0A) → 8 in totalSymbols containing 0 are location errors (constant regardless of angle). The part that fluctuates as the axis turns is treated separately as error motion

How to read the symbols (ISO 230-1 notation)

Table-side configurationLocation errors of the tilting axis (lower axis)Location errors of the C axis
C axis on top of the B axis (B and C on the table side)[37][39]E_X0B (X position), E_Z0B (Z position), E_A0B (tilt about the X axis), E_C0B (tilt about the Z axis)E_X0C (X position), E_Y0C (Y position), E_A0C (tilt about the X axis), E_B0C (tilt about the Y axis)
C axis on top of the A axis (A and C on the table side)[37][38]E_Y0A (Y position), E_Z0A (Z position), E_B0A (tilt about the Y axis), E_C0A (tilt about the Z axis)E_X0C, E_Y0C, E_A0C, E_B0C (same as above)

How much it shows up in the shape

Rotary table seen from above (offset drawn exaggerated)δNC centerActual center0° (aligned here)90°: about 1.41δ180°: 2δWhite circle: where the NC thinks it is (dashed circle); red circle: actual position (red circle)Arrow length = 2δ·sin(θ/2)Offset magnitude ÷ δ = 2·sin(θ/2)0120°90°180°Angle turned θ0.521.412.00

To calculate the workpiece shift from the center offset, tilt, height and rotation angle, see 5-axis calculations (center-of-rotation offset).

Kinematics calibration (measuring the center of rotation)

Example procedure

  1. Calibrate the touch probe (a prerequisite for kinematics measurement)[1]
  2. Fix a rigid reference sphere of accurately known radius on the table (any position, as long as nothing collides when the rotary axes turn)[1][2]
  3. Before measuring, save the current kinematics (so you can restore it if the result is bad or after a power failure)[1]
  4. Measure the sphere at 3 or more angles for each rotary axis. Siemens CYCLE996 measures 3 times per axis, at angles about 120° apart (ideally forming an equilateral triangle)[2]
  5. After measuring all rotary axes, calculate and write the correction values (you can choose measure only or measure and rewrite)[2][1]
  6. Changing the kinematics also changes the presets (workpiece origins). Reset the presets after correcting[1]

Each maker's calibration functions

MakerFunction
SiemensCYCLE996 (kinematics measuring cycle)[2]
HeidenhainKinematicsOpt (option 48): Cycle 450 save and restore, 451 measure and optimize kinematics, 452 preset compensation, 453 kinematics grid[1]
FANUCRotary axis center position measuring cycle for 5-axis machines[4]
Okuma5-axis auto-tuning system: measures geometric errors with a touch probe and a reference sphere and corrects up to 11 types automatically. The compensation works in automatic, manual and MDI operation alike, whether tool center point control is on or off[3]
Yamazaki MazakMAZACHECK (5-axis high-accuracy tuning function)[5]
DMG MORI3D quickSET[7]
RenishawAxiSet Check-Up: measures around a single-sphere calibration artifact and, where possible, automatically corrects the pivot (center of rotation) parameters of the rotary axes. Pass/fail judgment of the result and history management[6]

When to measure (heat)

What to do after measuring

R-test, ballbar and touch probe: how to measure a rotary axis

The main tools for measuring location errors of rotary axes are the ballbar, the R-test and the touch probe. All of them make the machine perform a motion in which the relative position of tool and workpiece should not change even though the rotary axis moves, and read the deviation.

Reference sphere(mounted on the spindle)1231–3: displacement sensors(placed on the table side)ΔXΔYΔZReads the sphere's displacementin 3 directions at onceSynchronize the linear axes (X, Y, Z) and the rotary axis so that the spindle and table should not move relative to each other→ How far the sphere moves is read directly as errors in 3 directions (a ballbar reads 1 direction)The drawing is a schematic. How sensors are mounted and sphere sizes differ by device

Pitfalls when measuring 5-axis with a ballbar

Comparing the measurement methods

MethodWhat is measuredSetupAutomationWhat it tells youNote
Ballbar[39][8][14]Distance between spheres (1 direction)High (re-mounted in different orientations and positions)Hard to automateSquareness of the C axis to X and Y, center position offset, most of the ISO 10791-6 interpolation pathsTo separate the errors, you have to repeat the measurement many times. It is hard to measure how the error motions of the rotary table change with the tilt-axis angle.
R-test (contact)[15][39][8]Sphere X, Y, Z (3 directions)Low (many orientations in one setup)Easy to automateThe 8 location errors, and error motions in tilted orientationsFor numerical compensation, use the static measurement (index, stop, then measure)
R-test (non-contact)[44]Sphere X, Y, Z (laser displacement sensors)LowEasy to automateErrors in fast motionContinuous-motion measurement is noisy
Touch probe + reference sphere[8][9][1]Sphere center position at each indexed angleLow (stays on the machine)Easy to automate (NC measuring cycle)Position and orientation of the center of rotation (kinematics)Assumes the probe itself is calibrated. Measures in stopped orientations
Cutting test[15][17][10]Position and parallelism of the machined faces (measured on a measuring machine)Effort of cutting and then measuring—The 8 location errors (studies using step cutting and square-pyramid cutting), thermal effectsChoose a shape that lets you separate the causes (the old NAS 979 cone frustum made this hard)

Accuracy test standards and the ballbar

Related standards

ISO etc.JISDetails
ISO 230-1:2012JIS B 6190-1:2016 (identical)General rules for geometric accuracy tests (no-load, quasi-static). The 2012 revision added terms for volumetric accuracy and how to express errors in an annex. The terms axis average line and location error are also found here[40][8]
ISO 230-7:2015JIS B 6190-7:2019Geometric accuracy tests of rotary axes. Error motions of rotary axes, and axis shift due to speed. Angular positioning accuracy is in Parts 1 and 2, and axis shift due to heat is in Part 3[46]
ISO 10791-6:2014JIS B 6336-6:2018Accuracy of feeds, speeds and interpolation. Motion tests for 5-axis machines (AK, BK, CK)[13][15]
ISO 10791-7:2014JIS B 6336-7:2018Accuracy of a finished test piece (evaluated by cutting a test piece)[16]
—Part structure of JIS B 6336Part 1 (geometric accuracy, horizontal spindle) to Part 10 (thermal distortion tests). Part 4 covers positioning accuracy of linear and rotary axes[13][16]
ISO/TR 16907:2015—Guide to numerical compensation of geometric errors (terms, how to express measurement data, classification of each NC maker's compensation methods). It leaves how to measure to the ISO 230 series and is limited to no-load, quasi-static conditions[47]
GB/T 39953-2021 (China)—Five-axis simultaneous machining centers — RTCP accuracy inspection. Defines RTCP and RTCP accuracy; covers three configurations: two axes in the head, two axes in the table, and one axis each in head and table. Cites ISO 10791-6[41]

The body of the ISO standard (test paths and tolerances) is not public, so only what could be confirmed from the standard's preview, papers and maker materials is given here.

Collision checking and simulation

For CAM-side checks, see the CAD/CAM page.

Holding the workpiece (5-axis vises)

Choosing tools

θRapTool center (surface speed almost 0)When θ is larger than arccos(1 − ap/R),the tool center is above the material surface and does not cut

For the tilt angle calculation, use5-axis calculations. For ball end mill speed and feed, use the Ball end mill calculator.

Frequently Asked Questions

How far does the part shift if a rotary-axis center is off?
If the actual center is δ away from the center the CNC has stored, rotating the axis by θ shifts the part by 2δ·sin(θ/2): about 0.52δ at 30°, about 1.41δ at 90°, and exactly 2δ at 180°.
How is kinematic calibration of a 5-axis machine done?
Mount a rigid reference sphere on the table and, with a calibrated touch probe, measure the sphere center with the rotary axes at several angles. From the results, calculate the position and direction of the rotation centers, rewrite the CNC's machine configuration parameters, and then reset the preset (work origin).
When should kinematic calibration be measured?
Rotary-axis location errors move with spindle heat and room-temperature changes. Three things help: measure after warm-up, finish right after measuring, and do not finish at midday with values taken on a cold morning.
What is the difference between the R-test and a ballbar?
A ballbar measures the ball-to-ball distance in one direction, so separating errors needs many repeated measurements. The R-test measures the sphere's X, Y and Z at once with three displacement sensors, so many orientations can be measured in one setup and it is easy to automate.

Other 5-axis machining pages

Sources

The function names and descriptions of each maker are key points from public documents. Availability depends on the model and options.

  1. 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)”
  2. Siemens AG, “Milling with SINUMERIK — 5-axis machining Manual, Edition 05/2009 (DocOrderNo. 6FC5095-0AB10-0BP1)”
  3. Okuma America Corporation (Okuma), “MU-V Series 5-Axis Vertical Machining Centers catalog”
  4. FANUC Corporation, “FANUC Series 30i/31i/32i-MODEL B Plus catalog (English edition FS30i-BPlus(E)-01)”
  5. Yamazaki Mazak Corporation, “5-axis machine VORTEX i-V product information”
  6. Renishaw plc, "Brochure: AxiSet Check-Up — Fully automated tests for accurate and consistent results"
  7. DMG MORI (US site), “DMU 65 (FD) monoBLOCK 2nd Generation product page (description of 3D quickSET)”
  8. 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)
  9. 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)”
  10. 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)”
  11. 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)”
  12. Google Patents (applicant FANUC), “US8283884B2 Numerical controller controlling five-axis machining tool”
  13. 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”
  14. Renishaw plc, "Application note: ISO 10791-6 using QC20 ballbar"
  15. 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)
  16. 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”
  17. Hiroshima University, Ibaraki Laboratory, “Research introduction: Machining tests for diagnosing the causes of errors in five-axis machine tools”
  18. 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)”
  19. 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)”
  20. FANUC America Corporation, “5-Axis Machining — CNC systems for high-performance machine tools (MBA-025-EN_03_1308, 2013)”
  21. Mitsubishi Electric Corporation, Naoki Nakamura, “Improved usability of indexed machining on the ‘MITSUBISHI CNC M700V Series’,” Mitsubishi Denki Giho Vol.85 No.4 (2011)
  22. DR. JOHANNES HEIDENHAIN GmbH, “TNC 640 User's Manual Conversational Programming, NC Software 340590-01 / 340591-01 / 340594-01, 4/2012 (892903-20)”
  23. Haas Automation, Inc., “G254 Dynamic Work Offset (DWO) (G-code reference page)”
  24. Kitagawa, “V75V 5-axis centering vise (product list page)”
  25. LANG Technik GmbH, “41111: Makro•Grip Stamping Jaws (product page)”
  26. Yamazaki Mazak Corporation, “5-axis machine VARIAXIS C product information”
  27. Hokkaido University, Makoto Yamada, “A Study on Spindle-Tilting Machining with a 5-Axis NC Machine Tool,” abstract of doctoral dissertation (Engineering) (2006)
  28. Kanagawa Institute of Industrial Science and Technology (KISTEC), Tomohiro Yokota, “A Study of Machined Surface Quality in Ball End Milling,” KISTEC Research Report 2020
  29. Union Tool Co., “UT End Mill Newsletter, April 2022 vol.12 ‘My Focus: Barrel Tools (1)’”
  30. Google Patents (applicant FANUC), “US11003157B2 Numerical controller for machine tool with installation error compensation unit”
  31. ICAM Technologies, “How to eliminate unnecessary rotary moves due to singularity (2014)”
  32. Haas Automation, Inc., “G93 Inverse Time Feed Mode (G-code reference page)”
  33. National Institute of Standards and Technology (NIST), “The NIST RS274NGC Interpreter – Version 3 (NISTIR 6556, 2000)”
  34. Haas Automation, Inc., “G234 Tool Center Point Control (TCPC) (G-code reference page)”
  35. FIDIA S.p.A., “Functions for 5-axis machine tools (RTCP)”
  36. Haas Automation, Inc., “G268 / G269 Feature Coordinate System (G-code reference page)”
  37. University of Birmingham (Z. Jiang), “Characterising Geometric Errors in Rotary Axes of 5-axis Machine Tools (PhD thesis, 2015)”
  38. MDPI, “Trajectory-Based Identification of Rotary-Axis Position-Independent Geometric Errors Considering Excitation Projection Effects, Micromachines 17(2) 256 (2026)”
  39. 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)
  40. 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”
  41. Chinese Standard (standards sales site), “GB/T 39953-2021 Five-axis simultaneous machining centers — RTCP accuracy inspection (overview and table of contents)”
  42. 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)
  43. Hiroshima University, Ibaraki Laboratory, “Research introduction: R-test”
  44. 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)”
  45. Hiroshima University, Ibaraki Laboratory, “Research introduction: Ballbar measurement (DBB5)”
  46. 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”
  47. Singapore Standards eShop, “ISO/TR 16907:2015 Machine tools — Numerical compensation of geometric errors (abstract)”
  48. HAL (archives ouvertes), “Kinematical smoothing of rotary axis near singularity point”
  49. 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)”
  50. 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)”
  51. Google Patents, “JP2011003176A Numerical control device for 5-axis machine tool”