1.9 M function group
Group 1: |
|||||
M function |
Type |
Explanation |
Parameter |
Information |
|
M00 |
N |
Programmed stop |
|
separate block |
|
M01 |
N |
Optional stop |
|
separate block |
|
M02 |
N |
Main program end, reset to the start |
|
separate block |
|
M30 |
N |
End of program, reset to the start |
|
separate block |
|
M90 |
N |
Workpiece number add 1. It can not be with M02, M30 in the same program, otherwise errors would occur. |
|
separate block |
|
Group 2 |
|||||
M function |
Type |
Explanation |
|
|
|
M03 |
MI |
CW rotation of spindle |
|
|
|
M04 |
MI |
CCW rotation of spindle |
|
|
|
M05 |
MRF |
Spindle stop |
|
|
|
M19 |
N |
Spindle positioning |
With SP |
separate block |
Note
For all: M-modal, R-effective defaut, N-Non-modal, I-execution before block, F-execution after block
Explanation:
1. You can not specify two or more M code which are in the same group in a block;
2. There are at most 5 M code in the same block;
3. I- exection before the block:When themotion commandandMfunctionsappearin the same block, M instructionsexecutebeforethe movement instructions;
4. F- exection after the block: When themotion commandandMfunctionsappearin the same block, M instructionsexecuteafterthe movement instructions;
5. MinstructionandTinstructionappear inthe same block, T instructions performfirst;
6. User-defined M command must require separate block.