G5/G5.1/G5.2: Splines and NURBS
Interpolations by cubic spline, quadratic spline or NURBS in controls that support it.
For reference only: syntax changes with the control, the post-processor and the machine parameters. Check the official manual and run a simulation before cutting. Legal notice.
- Family
- Advanced interpolation
- Machine
- Milling, Mill-turn
- Risk
- Medium
- Example
- G5 X... Y... I... J... P... Q...
G5 X... Y... I... J... P... Q...Machine: Milling, Mill-turnRisk: Medium
ISO común · Fanuc · Siemens
- ISO común: It is not universal; highly dependent on the control and the post-processor.
- Fanuc: May require advanced interpolation or high speed options.
- Siemens: Siemens usually handles it through path/CAM functions, not necessarily with these direct G codes.
Frequently Asked Questions (FAQ)
What does G5/G5.1/G5.2 mean in a CNC program?
Interpolations by cubic spline, quadratic spline or NURBS in controls that support it. In the catalogue it appears as "Splines and NURBS", within the Advanced interpolation family.
Can you give me an example of G5/G5.1/G5.2?
G5 X... Y... I... J... P... Q... — Interpolations by cubic spline, quadratic spline or NURBS in controls that support it.
Which machines use G5/G5.1/G5.2?
G5/G5.1/G5.2 is used in: Milling, Mill-turn.
What should you watch out for with G5/G5.1/G5.2?
Medium risk: it rarely breaks anything on its own, but a wrong value shows up on the part. Check the block before running the batch.
Related tools
CNC G-code Simulator
CNC IDE: editing with G/M tooltips, line inspector, conversion between controls and 2D/3D toolpath.
CNC Alarms Guide
CNC Alarms and Solutions Guide. Enter the error code or symptom to find the cause and how to repair it at the machine.
Calculate cycle time
Estimate CNC turning and milling cycle time from G-code. Calculate parts per hour with a breakdown of cutting, rapids, canned cycles and tool changes.