Printed from Kezuriba (kezuriba.net/en/nc/g07.1/)
G07.1
Machining center, LatheModalCylindrical interpolation
Format and notes
G07.1 C_ (ON with the cylinder radius) … G07.1 C0 (OFF) Milling side: G07.1 A_ (B_ or C_) (rotary axis name and radius)
- Lets you write the program on a plane obtained by unrolling the outer surface of a cylinder (Z horizontally, the circumferential direction vertically). Used to cut cam grooves, helical grooves and engraving on the outer surface of a shaft
- C is written as an angle, and the NC converts it to a length along the circumference as “radius × angle” to calculate the feed. Whether the radius given in G07.1 matches the groove bottom or the outer surface changes the groove shape (width and slant). Check which diameter the drawing dimensions are based on
- Write ON and OFF each on a line of its own, with no other commands
- A program cannot be restarted from a line in the middle of cylindrical interpolation (Siemens ISO dialect)
- Turn on tool radius compensation after ON, and cancel it before OFF
- How the plane is specified differs by model. The Mitsubishi Electric example commands G19 (Y-Z cylindrical plane) before ON. Always check the operator's manual
- A common mistake: dropping “.1” and writing G7. G7 in LinuxCNC is lathe diameter mode, a completely different function
Example
G00 C0 ; G07.1 C30. ; (ON as a cylinder of radius 30 mm) G01 G42 Z-10. C90. F100 ; … (C is an angle. The NC converts it to a circumferential length as radius × angle) G40 … ; G07.1 C0 ; (OFF)
This is only a skeleton example written by Kezuriba. How the plane is specified and how tool radius compensation is applied differ by model, so compare it with the examples in your operator's manual.
Diagram: cylindrical interpolation: programming on the unrolled outer surface
Calculator: cylinder angle and length along the circumference
s = π × d × C ÷ 360 = r × θ (rad)
When converting a groove width or pitch from the drawing into an angle, the answer depends on which diameter the dimension refers to. At an outer diameter of 60 mm and a groove-bottom diameter of 52 mm, the same 90° is 47.12 mm and 40.84 mm.
Check: d 60 mm, C 90° → 47.12 mm. s 10 mm → 19.099°.
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 |
|---|---|---|---|
| Siemens (ISO dialect) | Lathe | Group | 18. A program cannot be restarted from a line during cylindrical interpolation |
| Siemens (ISO dialect) | Machining center | Format | G07.1 A (B, C) _ r (rotary axis name and radius), group 16. Equivalent to TRACYL among Siemens functions |
| Mitsubishi Electric | Lathe | Code | G07.1 or G107 in G-code lists 6 and 7 (group 19) |
| Haas | Machining center | Code | G107 (cylindrical mapping, group 00). ON with G107 A_ Y_ R_ (radius) or Q_ (diameter), OFF with a line containing only G107. If R and Q are omitted, the diameter in Settings 34 and 79 is used |
| Siemens (native) | — | Format | ON with TRACYL (diameter), OFF with TRAFOOF |
| LinuxCNC | — | Meaning | G7 is lathe diameter mode (a different function). There is no code equivalent to cylindrical interpolation |
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
- 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
- Mitsubishi Electric — MITSUBISHI CNC 700/70 Series Programming Manual (Lathe System) (IB-1500057) mitsubishielectric.com
- Haas Automation, Inc. — G107 Cylindrical Mapping (Group 00) (machining center, per-code explanation page) haascnc.com
- Haas Automation, Inc. — Mill Operator's Manual – 17 Mill G-Codes (online version) haascnc.com
- Siemens AG — SINUMERIK 840D sl/840D/840Di sl/810D Fundamentals, Programming Manual, Edition 08/2005 (6FC5398-1BP10-0BA0) cache.industry.siemens.com
- LinuxCNC project — G-Codes (LinuxCNC Documentation) linuxcnc.org
- Hitachi Seiki (inventor: Toru Ogawa) — Interpolation method for linear and rotary axes of a numerical control device (Japanese Unexamined Patent Publication H4-322301, Japanese Patent No. 2566180) patents.google.com