CNC Machinist Calculator Ultra

Home › G-codes › LinuxCNC Tormach › G5

G5 Cubic spline

LinuxCNC Tormach G-code · Mill

Cuts a smooth cubic B-spline in the XY plane from the current point to X Y, shaped by two control points.

Format

G5 X Y [I J] P Q F

Addresses

AddressWhat it does
X YEnd point of the spline
I JOffset from the start point to the first control point
P QOffset from the end point to the second control point
FFeed rate

How it works

Modal, motion group.

Example program

G20 G17 G40 G49 G54 G80 G90 G94 (INCH, SAFE START)
T1 M6 G43 (.250 ENGRAVER)
S8000 M3
G0 X0 Y0 Z0.1
…

The full 7-line example is in the app. Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G5.1 · G5.2 · G17

G5 on other controls

The same number can mean something different on another control.

ControlMeaning
Mazak (EIA)High speed machining mode
Mitsubishi M70 M80High speed high accuracy control II and III
Heidenhain TNC (ISO)Arc without direction, Cartesian
Fagor 8055 8065Round corner
FadalNon modal rapid travel

Every G-code for LinuxCNC Tormach in your pocket. The app has the full example programs, search by number or shop word, a line decoder and calculators for tapping, threading and drilling.

Open G5 in the app All LinuxCNC Tormach G-codes

App Store Google Play