G-code reference

G89: Boring cycle with dwell (feed out)

G89 is boring cycle with dwell (feed out). Like G85, with a dwell at the bottom. It is modal, so it stays active on the following lines until another code from the same group replaces it.

What G89 does

G89 feeds in, dwells for P at the bottom and feeds out. It is used where a bore has a flat shoulder that needs a clean finish.

TypeG-code
MachineMill
GroupCanned cycle
ModalYes: stays active until replaced by another code from the same group

G89 example

G89 X0. Y0. Z-15. R2. P500 F80.

Bore, dwell 0.5 s, feed out.

WordWhat it means here
G89Boring cycle with dwell (feed out)
X0.X axis target (on a lathe, the diameter)
Y0.Y axis target
Z-15.Z axis target or depth
R2.arc radius, or the R plane (retract height) in a drilling cycle, or a cycle setting
P500a parameter: dwell time, program number, sequence number or cycle setting, depending on the code
F80.feed rate (on threading codes, the lead)

Codes people confuse with G89

CodeWhat it does instead
G85 Boring cycle (feed out). Feeds in and feeds back out, for reaming and boring.
G82 Drilling cycle with dwell. Like G81, but dwells at the bottom for P time.

Other codes in the canned cycle group

Only one code from a modal group is active at a time. Programming any of these replaces G89.

  • G73 High-speed peck drilling
  • G74 Left-hand tapping cycle
  • G76 Fine boring cycle
  • G80 Canned cycle cancel
  • G81 Drilling cycle (spot drill)
  • G82 Drilling cycle with dwell
  • G83 Deep hole peck drilling
  • G84 Tapping cycle (right hand)
  • G85 Boring cycle (feed out)
  • G86 Boring cycle (spindle stop, rapid out)

Meanings follow the common Fanuc-style standard that Haas, Okuma (EIA mode), Mitsubishi, LinuxCNC and most other controls share for this code. Options and parameters change details from machine to machine, so check the manual for your control.

Quick check: G89

  1. What does G89 do? (Mill)

  2. Which code: Like G85, with a dwell at the bottom.(Mill)

  3. What does G85 do? (Mill)

Show the answers
  1. Like G85, with a dwell at the bottom.
  2. G89
  3. Feeds in and feeds back out, for reaming and boring.

Drill this code with the rest of the core set

More practice hubs

Frequently asked questions

What does G89 mean in CNC programming?
Boring cycle with dwell (feed out). Like G85, with a dwell at the bottom.
Is G89 modal?
Yes. G89 belongs to the canned cycle group and stays active until another code from that group is programmed.
What is the difference between G89 and G85?
G89 (boring cycle with dwell (feed out)): like G85, with a dwell at the bottom. G85 (boring cycle (feed out)): feeds in and feeds back out, for reaming and boring.
What is the difference between G89 and G82?
G89 (boring cycle with dwell (feed out)): like G85, with a dwell at the bottom. G82 (drilling cycle with dwell): like G81, but dwells at the bottom for P time.

G-Code Sprint is an educational practice tool only. It is not a CNC simulator, machine controller, safety manual, or replacement for instruction. Always follow your instructor, employer, machine manual, and shop procedures.

Free preview · no card Try G-Code Sprint