Example program · Mill

Spindle Warm-Up Program — G-Code Example

Runs the spindle through increasing speeds while moving all axes to bring the machine to a stable temperature before precision work.

By cnccode · Updated

Runs the spindle through increasing speeds while moving all axes to bring the machine to a stable temperature before precision work.

ItemValue
MachineCNC mill / machining centre (Fanuc-style)
UnitsMetric (G21)
Lines24

Program

G-code
O1015 (WARM UP - ABOUT 12 MIN)
G21 G90 G17 G40 G80
G91 G28 Z0
G90
S1000 M03
M98 P1115 L2
S3000
M98 P1115 L2
S6000
M98 P1115 L2
S8000
M98 P1115 L2
M05
G91 G28 Z0
G90
M30

O1115 (AXIS MOVES)
G00 G53 X-500. Y-400.
G00 G53 Z-100.
G00 G53 X-50. Y-50.
G00 G53 Z0
G04 P60000
M99

▶ Simulate in the G-code viewer

How it works

  • Adjust the G53 machine coordinates to stay inside your travel limits (G53 moves at rapid on Fanuc).
  • G04 P60000 = 60 s dwell on Fanuc (milliseconds).
  • Re-check tool lengths after warm-up for tight tolerances.

Codes used in this program

Always check feeds, speeds, offsets and clearances for your own machine and tooling, and prove new programs with single block and reduced rapid.

More milling programs