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.
| Property | Value |
|---|---|
| Code | G187 |
| Function | Smoothness / Accuracy Control (Haas) |
| Modal group | — |
| Type | Modal — stays active until replaced by another code of the same group |
| Used on | Milling machines |
| Syntax | G187 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
G187 P_ E_| Address | Meaning |
|---|---|
P | 1 rough, 2 medium, 3 finish |
E | Corner rounding tolerance |
G187 example program
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.