2012-08-04 20:31:10 (CET)

Order of Execution

The order of execution of items on a line is critical to safe and effective machine operation. Items are executed in the order shown in Table 3-7 if they occur on the same line.


Table 3-7 Order of execution


  1. comment (includes message).

  1. set feed rate mode (G93, G94 -inverse time or per minute).

  1. set feed rate (F).

  1. set spindle speed (S).

  1. select tool (T).

  1. change tool (M6).

  1. spindle on or off (M3, M4, M5).

  1. coolant on or off (M7, M8, M9).

  1. enable or disable overrides (M48, M49).

  1. dwell (G4).

  1. set active plane (G17, G18, G19).

  1. set length units (G20, G21).

  1. cutter radius compensation on or off (G40, G41, G42)

  1. cutter length compensation on or off (G43, G49)

  1. coordinate system selection (G54, G55, G56, G57, G58, G59, G59.1, G59.2, G59.3).

  1. set path control mode (G61, G61.1, G64)

  1. set distance mode (G90, G91).

  1. set retract mode (G98, G99).

  1. home (G28, G30) or change coordinate system data (G10) or set axis offsets (G92, G92.1, G92.2, G94).

  1. perform motion (G0 to G3, G80 to G89), as modified (possibly) by G53.

  1. stop(M0,M1, M2,M30,M60).