Home › G-codes › LinuxCNC Tormach › G5.2
G5.2 NURBS block start
LinuxCNC Tormach G-code · Mill
Starts a NURBS curve block in the XY plane. Each following line gives a control point with an optional weight. G5.3 ends the block.
Format
G5.2 X Y [P] [L]
Addresses
| Address | What it does |
|---|---|
X Y | Control point |
P | Weight of the control point, default 1 |
L | Order of the curve, default 3 |
How it works
Modal until G5.3 closes the block.
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
…
T1 M6 G43 (.250 ENGRAVER)
S8000 M3
G0 X0 Y0 Z0.1
…
The full 10-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- The LinuxCNC manual calls NURBS experimental. Test in a simulator first.
- XY plane only.
Related codes
G5.2 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Hurco WinMax (NC) | Data smoothing |
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.2 in the app All LinuxCNC Tormach G-codes