System information
SECTION FIVE - MISCELLANEOUS FUNCTIONS (M CODES)
Caution: The control will accept more than one M code on a line; however, it is
recommended that only one M code per line be programmed. When more than one M code
per line exists, the order of execution is somewhat undefined and the program may not run
as expected. In general the M codes will execute in numerical order "M00 first M99 last"
unless they have been defined to execute after the move statements. (See Post M codes
Table on page 55, Section 4.)
After coolants are turned on, they go off and on with the spindle and need not be programmed on
when the spindle is running.
Program stop (M00)
Execution of the program is halted on the block containing M00 and prompts the operator to
press the Cycle Start button. Program execution will be resumed when the Cycle Start button is
pushed. If M00 is on a line with a move command, the move will be executed before the stop. If
there is a comment on the M00 block, it will be displayed as a prompt.
Optional stop (M01)
M01 is the same as M00 except it is only executed if the optional stop switch is enabled. If there
is a comment on the M01 block, it will be displayed as a prompt to the operator.
Block skip ( / )
A line of program can be skipped or ignored by the control. Inserting a / (slash) at the beginning
of a line and enabling the F5 (BSkip) will cause the control to skip that line. In the example
below with F5 (BSkip) disabled, the machine will move to the first, second, and third points.
When F5 (BSkip) is enabled, the machine will move to the first then third points. Block two is
skipped.
N1 X0 Y0
/N2 X2 Y2
N3 X4 Y0
End of program (M02, M30, M99)
Any of these codes can be used to indicate the end of a program. However, M02 and M99 will
leave the spindle and coolants on; the M30 will turn them off. All three codes will return to the
beginning of the program and start over when the Cycle Start button is pressed. The end of a
program is the same as an M2 or M99.
Spindle on/off (M03, M04, M05)
These codes turn the spindle on: CW (M03), CCW (M04) and OFF (M05). The spindle-on
commands will be executed before an axis command. M05 will execute after an axis command.
Tool change (M06)
An M06 moves Z to the tool change position.
This command strobes the M function bus and sends out a 150 millisecond (msec) pulse on the
M06 I/O output. It then halts program execution and prompts the operator to change the tool. If a
305










