Printed from Kezuriba (kezuriba.net/en/nc/g70/)
G70
LatheOne-shot, group 00Finishing cycle (finishes the profile rough-cut with G71–G73)
Format and notes
G70 P_ (first sequence number of the profile) Q_ (last sequence number)
- Follows the finishing profile written in the P–Q range exactly
- In roughing (G71, etc.), F, S, and T inside P–Q are ignored; in the G70 finishing pass they are active (Siemens ISO T, Haas)
- After finishing, returns to the start point at rapid (Haas)
- Flow: rough with G71 (OD/ID), G72 (face) or G73 (along the profile), then write G70 with the same P and Q. The finished profile is written only once, in P–Q, and is used for both roughing and finishing
- After G71–G73 finish, execution continues with the block after the Q block. After G70 finishes, execution continues with the block after G70 (Mitsubishi Electric, Haas). So G70 is written after the profile blocks
- G70 remembers the tool position at the time it is commanded as the start point, follows the profile, then returns there by rapid traverse (Haas). If you change tools between roughing and finishing, after the tool change move to a position outside the stock before commanding G70
- Do not reuse the sequence numbers used for P and Q within the program (Mitsubishi Electric)
- Ending the last move of the profile with a chamfer or corner R command causes an alarm (Siemens ISO dialect). Do not write reference point return (G28, etc.), threading or canned cycles inside P–Q (Mitsubishi Electric)
- Subprogram calls inside P–Q are handled differently by each control. The Siemens ISO dialect cannot have them. Mitsubishi Electric executes them. Haas allows them under conditions (and states explicitly that it is not compatible with FANUC)
- Whether it can be tried in MDI also differs by control. The Siemens ISO dialect gives an alarm if G70–G73 is commanded in MDA (MDI). Mitsubishi Electric can also execute it in MDI if the profile program is in memory
- If you move the tool manually partway through the cycle, return it to the original position before resuming. If you do not, all later motion is shifted by that amount (Mitsubishi Electric)
Example
T0101 ; (ROUGHING TOOL) G50 S2500 ; (SPINDLE SPEED LIMIT) G96 S180 M03 ; G00 X52. Z2. M08 ; (START POINT) G71 U1.5 R0.5 ; G71 P10 Q20 U0.4 W0.1 F0.25 ; N10 G00 X20. ; G01 Z-15. F0.1 S220 ; (F AND S FOR FINISHING) X30. Z-25. ; Z-40. ; N20 X52. ; G00 X150. Z150. ; (TOOL CHANGE POSITION) T0303 ; (FINISHING TOOL) G00 X52. Z2. ; (BACK TO THE START POINT) G70 P10 Q20 ; (FINISH N10 TO N20) G00 X150. Z150. M09 ;
An example that rough-turns the OD with G71, changes to a finishing tool, and finishes with G70 (G-code system A, diameter programming). Roughing uses F0.25 in the G71 block and the constant surface speed S180 before it; F0.1 and S220 inside the profile are used for the G70 finishing pass. G70 follows the profile from X52. Z2. and returns there when done. The values are for illustration and are not recommended values.
Diagram: How G70 (lathe) cuts
Full guide with examples: How to write lathe multiple repetitive cycles (G71, G70, G72, G73, G76)
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 | Lathe | Notes | Subprograms can be included inside P–Q (Haas-specific; explicitly stated as not FANUC-compatible) |
| Siemens (ISO dialect) | Lathe | Code | In G-code system C, the finishing cycle is G72. G70 in system C is inch input (G20 in systems A and B) |
| Mitsubishi Electric | Lathe | Format | G70 A_ P_ Q_. With A, the profile can be called from a separate program number |
Frequently asked questions about G70
- What is G70 (Finishing cycle (finishes the profile rough-cut with G71–G73)) used for and how is it formatted in a CNC program?
- G70 commands "Finishing cycle (finishes the profile rough-cut with G71–G73)" on Lathe. The standard program format is "G70 P_ (first sequence number of the profile) Q_ (last sequence number)". Follows the finishing profile written in the P–Q range exactly
- Is G70 a modal code or a one-shot (non-modal) code?
- G70 is a one-shot (non-modal, Group 00) code. It acts only in the single block where it is written and does not carry over to the next block, so you must write G70 on every line where that action is required.
- Does G70 work differently on machining centers (mills) versus CNC lathes?
- G70 is primarily used on Lathe. Depending on the machine type and the lathe G-code system (System A, B, or C), this code may be unavailable or assigned to a different function, so verify against your machine tool manual.
- Are there differences in G70 across FANUC, Mitsubishi, Okuma, Haas, and Siemens controls?
- Yes. Control builders such as FANUC, Mitsubishi Electric (M80/M800), Okuma (OSP), Haas, Mazak, Siemens (SINUMERIK ISO dialect), and Heidenhain can differ in argument letters, decimal-point rules, and optional parameters for G70. Review the control comparison table above and verify the exact syntax in your machine’s programming manual before proving out the program.
Sources
The meaning of this code agrees in two or more sources from different publishers. Explanations are written in our own words.
- Siemens AG — SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D Programming Manual ISO Turning, 04.2007 Edition cache.industry.siemens.com
- Haas Automation, Inc. — G-code, M-code, and Setting (per-code explanation pages) haascnc.com
- Haas Automation, Inc. — Lathe Operator's Manual – 16 Lathe G-Codes (online version) haascnc.com
- Mitsubishi Electric — MITSUBISHI CNC 700/70 Series Programming Manual (Lathe System) (IB-1500057) mitsubishielectric.com