G-code reference

G187 G-Code: Smoothness / Accuracy Control (Haas)

Smoothness / Accuracy Control (Haas) — Haas setting for the trade-off between speed and contour accuracy: P1 rough, P2 medium, P3 finish, E for the allowed corner tolerance.

By cnccode · Updated
PropertyValue
CodeG187
FunctionSmoothness / Accuracy Control (Haas)
Modal group—
TypeModal — stays active until replaced by another code of the same group
Used onMilling machines
SyntaxG187 P_ E_

What does G187 do?

Haas setting for the trade-off between speed and contour accuracy: P1 rough, P2 medium, P3 finish, E for the allowed corner tolerance.

G187 is modal: once programmed it remains in effect for the following blocks until another code from modal group — replaces it or the control is reset.

Syntax and parameters

Format
G187 P_ E_
AddressMeaning
P1 rough, 2 medium, 3 finish
ECorner rounding tolerance

G187 example program

Example
G187 P1 E0.05 (roughing)
G187 P3 E0.005 (finishing)

▶ Open this example in the G-code viewer

Tips and common mistakes

  • Fanuc equivalent: G05.1 Q1 with tolerance parameters.

Controller compatibility

G187 follows the ISO/Fanuc dialect used by Fanuc, Haas, Brother, Doosan, Hurco (ISO mode), Mazak (EIA/ISO mode), Okuma (G-code mode) and Siemens in ISO dialect mode. Parameters, option packages and builder-specific behaviour can differ, so confirm the details in your machine's programming manual before running a new program.

Frequently asked questions

Is G187 modal?
Yes. G187 belongs to modal group — and stays active until another code of that group is programmed.
What does G187 mean in CNC?
G187 means Smoothness / Accuracy Control (Haas). Haas setting for the trade-off between speed and contour accuracy: P1 rough, P2 medium, P3 finish, E for the allowed corner tolerance.
What is the difference between G187 and G05.1?
G187 is Smoothness / Accuracy Control (Haas), while G05.1 is AI Contour Control / High-Speed Look-Ahead. See the G05.1 page for its syntax and examples.
Can I use G187 on a lathe?
Usually not with the same meaning: G187 is documented here for milling machines. Check your control manual for the equivalent.