23
The maximum spindle speed clamp: Specifies the maximum spindle speed of 0826 through the parameter
setting S (rpm)
10 The Function M Code
When you specify a value after the address M, the code signal and strobe signal is sent to the machine. The
machine uses these signals to turn on or off its various functions. In general, in one block can only assign one M
code. In some cases, for some of the machine you can also specify up to three M codes. Which code corresponds
to which machine function is determined by the machine tool manufacturer.
Commonly used M Code:
Table 10-1
M Code
Functional Description
M00
PROGRAM HALTED
M01
Conditions of the program is halted
M02
End of program
M03
Spindle Story
M04
Spindle reversal
M05
Spindle stop
M06
Tool change
M08
Cooling open
M09
Cooling Off
M18
Spindle orientation lift
M19
Spindle orientation
M30
End the program and return to the
M98
Subroutine call
M99
End of subroutine return / repeat
In the machine tool, M code is divided into two categories: NC directly executed by a class to control
execution of the program; Another by the PMC to execute, control the spindle, automatic tool changer, cooling
system.
10.1 The Program Control M Codes
M codes for program control are M00, M01, M02, M30, M98, M99, whose functions are explained as
follows:
M00 --- program is halted. CNC system executes the M00, the interrupt program execution, press cycle start
button to continue the program.
M01 --- condition program is halted. CNC system execution to M01, if optional stop switch is turned on, the
M01 and M00 command has the same effect, if you choose to stop switch is off, the M01 instruction can not
afford any effect.
M02 --- End program. M02 instruction is encountered, the CNC that the program has ended, stop the
program and send a reset signal.
M30 --- End program, and return to the program head. In the program, M30 except play the same role with
the M02, but also make the program return to the program head.
M98 --- subroutine.