Chapter 7
95
UM10350_PCNC770_Manual_0916A
Programming
If the second group (the parameter sengs) is reordered, there is no change in the meaning of
the line unless the same parameter is set more than once. In this case, only the last seng of the
parameter takes eect. For example, aer the line:
#3=15 #3=6
has been interpreted, the value of parameter 3 is 6. If the order is reversed to
#3=6 #3=15
and the line is interpreted, the value of parameter 3 is 15.
If the third group (the comments) contains more than one comment and is reordered, only the last
comment is used. If each group is kept in order or reordered without changing the meaning of the
line, then the three groups may be interleaved in any way without changing the meaning of the line.
For example, the line:
G40 G01 #3=15 (foo) #4=-7.0
has ve items and means exactly the same thing in any of the 120 possible orders, such as #4=-
7.0 G01 #3=15 G40 (foo), for the ve items. The order of execuon of items on a line is
crical to safe and eecve mill operaon. If items occur on the same line, they are executed in a
parcular order. For more informaon, see Order of Execuon table later in this chapter.
To impose a dierent order (e.g. to turn coolant o before the spindle is stopped), code the
commands on separate blocks.
Order of Execution
Order Item
1 Comment (including message)
2 Set feed rate mode (G93, G94, G95)
3 Set feed rate (F)
4 Set spindle speed (S)
5 Special I/O (M62 to M68) – currently not supported
6 Change tool (T)
7 Spindle on/off (M03, M04, M05)
8 Save State (M70, M73, restore state (M72), invalidate state (M71)
9 Coolant on/off (M07, M08, M09)
10 Enable/disable overrides (M48, M49, M50, M51, M52, M53)
11 Operator dened commands (M100 to M199)
12 Dwell (G04)
13 Set active plane (G17, G18, G19)
14 Set length units (G20, G21)
(connued on next page...)