Printed from Kezuriba (kezuriba.net/en/nc/g04/)
G04
Machining center, LatheOne-shot, group 00Dwell (pause)
⌨Format and notes
G04 X_ (seconds, decimal point allowed) or G04 P_ (no decimal point)
- Effective only in that block (one-shot)
- On lathes, used at the groove bottom or in cut-off to dwell for one or more revolutions so no uncut stock is left
- The unit changes with the address and whether a decimal point is used. Mitsubishi training material: P is 1/1000 s (no decimal point), X is seconds (with decimal point)
- Siemens ISO: during feed per minute (G94) the dwell is given in seconds; during feed per revolution (G95) it is given in spindle revolutions
≠Differences between controls and machines
The same code can be written or assigned differently depending on the CNC control and the machine builder. Always check your machine’s manual.
| Source | Machine | Item | Detail |
|---|---|---|---|
| Haas | Machining center | Format | G04 P_Haas uses P only. P10. is 10 seconds and P10 is 10 milliseconds (the unit changes with the decimal point). The P value is modal and is carried over into canned cycles |
| NIST | Machining center | Format | G4 P_ (seconds)In RS274/NGC, P is in seconds |
| Siemens (ISO dialect) | Machining center | Group | 18 (non-modal)Siemens labels non-modal as group 18 |
📚Sources
The meaning shown agrees in at least two sources (agreement confirmed). Explanations are written in our own words.
- Mitsubishi Electric — The Basics of CNC Machining Programming (for Machining center) e-Learning material (PDF) mitsubishielectric.com
- Mitsubishi Electric — The Basics of CNC Machining Programming (for Lathe) e-Learning material (PDF, BNP-C8027-688) mitsubishielectric.com
- Siemens AG — SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D Programming Manual ISO Milling, 04.2007 Edition (6FC5398-7BP10-0BA0) cache.industry.siemens.com
- Haas Automation, Inc. — G-code, M-code, and Setting (per-code explanation pages) haascnc.com
- Haas Automation, Inc. — Mill Operator's Manual – 17 Mill G-Codes (online version) haascnc.com
- Haas Automation, Inc. — Lathe Operator's Manual – 16 Lathe G-Codes (online version) haascnc.com
- National Institute of Standards and Technology (NIST), USA — The NIST RS274NGC Interpreter – Version 3 (NISTIR 6556, 2000) nvlpubs.nist.gov