LinuxCNC G5.2

G5.2 opens a NURBS data block in LinuxCNC. The lines between G5.2 and G5.3 define control points with optional weights, and the current position before the first G5.2 is taken as the first control point. Optional P and L words set control-point weights and the curve order, with defaults of 1 and 3.

Source checked11/11 values · 2026-10-26

Specification

1 source
Languagegcode
CodeG5.2
GroupNURBS block
SyntaxG5.2 <P-> <X- Y-> <L->
DialectLinuxCNC

Parameters

NameDescription
PControl point weight; default 1 if unspecified.
XX coordinate for a NURBS control point.
YY coordinate for a NURBS control point.
LParameter that determines the order of the curve; default 3 if unspecified.

Study notes

  • G5.2 opens the NURBS data block; G5.3 closes it.
  • The current coordinate before the first G5.2 is always taken as the first NURBS control point.
  • To set the weight for the first control point, program G5.2 P- without giving any X Y.
  • Inside the block, control-point lines use X and Y with optional P weights.

Safety

  • The document marks G5.2 and G5.3 as experimental and not fully tested.
↑↓ navigate↵ openesc close