M-Code M00-M01 (Optional stop):
The M00
code is used to stop a program. When the controller reads M00 in the program,
it stops all the axes, spindle, turns off the coolant (including Through
Spindle Coolant). In The next block after the M00 will be highlighted when viewed
in the program editor so you can insert a comment for operator what to do when
M00 Called. For example, comment to clean the chips or check the tool etc.
Pressing Cycle Start button will continue program operation from the
highlighted block after the operator has confirmed the note inserted.
M01 works the same as M00, except the Optional Stop button the machine control board must be on.
M01 works the same as M00, except the Optional Stop button the machine control board must be on.
If no Optional Stop button is OFF on the
controller board, then the machine will not stop when it reads M01.
NOTE: If anything very Important to stop the machine while program
execution it is better to use M00 instead ofM01. Since if operator forgets to
put ON the Optional stop Button then also the machine will stop at M00.
Example Program M00:
N170 G0 Z10.0
N171 M05 (Spindle Off)
N172 M00
(Clean the Chips)
N173 M03 S3000 (Turn ON the spindle)
Example Program M01:
N170 T6 M06
N171 G43 H6 (Call Tool Length offset)
N172 M01
(Check the tool for damage) (If operator has put new tool he may not switch ON
Optional stop Button)
N173 M03 S3000 (Turn ON the spindle)
APT Command to insert in Your Program =
STOP