Skip to content

G5/G5.1/G5.2: Splines and NURBS

In LinuxCNC, G5 is a cubic spline, G5.1 a quadratic spline and G5.2 NURBS. This is not a common meaning: on Fanuc G05/G05.1 are high-speed functions and NURBS use G06.2.

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.

The brands and control names mentioned belong to their owners and are used only to identify the equipment. GetGCode is not affiliated with or endorsed by any manufacturer, ISO or ASME: this is our own content, not official documentation. Legal notice.

Family
Advanced interpolation
Machine
Milling, Mill-turn
Risk
Medium
Example
G5 X... Y... I... J... P... Q...

How to write it on each control

Example
G5 X... Y... I... J... P... Q...
ISO común · Fanuc · Siemens—

ISO común: Not in ISO 6983: it is LinuxCNC numbering.

Fanuc: On Fanuc these numbers mean something else: G05 is high-speed machining and G05.1 Q1 is AI contour control (see G05/G05.1). Fanuc NURBS are programmed with G06.2.

Siemens: Siemens usually handles it through path/CAM functions, not necessarily with these direct G codes.

Machine: Milling, Mill-turn

Sources

  • Secondary source: LinuxCNC G-Code Reference · G5, G5.1, G5.2

Frequently Asked Questions (FAQ)

What does G5/G5.1/G5.2 mean in a CNC program?

In LinuxCNC, G5 is a cubic spline, G5.1 a quadratic spline and G5.2 NURBS. This is not a common meaning: on Fanuc G05/G05.1 are high-speed functions and NURBS use G06.2. 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... — In LinuxCNC, G5 is a cubic spline, G5.1 a quadratic spline and G5.2 NURBS. This is not a common meaning: on Fanuc G05/G05.1 are high-speed functions and NURBS use G06.2.

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 apps