CNC mill · G-code

G187: smoothness and corner rounding

G187 sets how smooth (P1 rough to P3 finish) and how far off a sharp corner (E) the machine may run. Haas lists it as one-shot (group 00). Format below from Haas, its maker. LinuxCNC has no such code.

Worked example

Rough fast, then finish true to the corners. Written for this page in the Haas format.

G187 P1 E0.01 (rough: up to .010" corner rounding)(… roughing …)G187 P3 E0.0005 (finish)(… finishing …)G187 (back to Setting 191)

How each control writes it

Haas G187 P- E-

One source: Haas Automation, the control's maker

P
Smoothness: P1 rough, P2 medium, P3 finish (overrides Setting 191) (optional)
E
Maximum corner rounding (overrides Setting 85) (optional)
  • G187 alone cancels E and goes back to Setting 191’s smoothness.
  • RESET, M30, M02, the program end and E-stop cancel it.
  • FINISH takes longer; use it only where the finish needs it.

Source: Haas Automation, mill G187

Controls without it

  • LinuxCNC: LinuxCNC has no G187. G64 P- sets path blending instead: the path stays within P of each programmed point. Source (archived Oct 29, 2026)

No Fanuc row yet: that chapter of the 0i manual has not been read.

Haas follows Fanuc's numbering, but options and parameters differ between controls: check your control's manual.