页面

2011年4月15日星期五

CNC M Code

M Code 

Code  Description Milling
( M )
Turning
( T )
Corollary info
M00 Compulsory stop
强制停止
M T Non-optional—machine will always stop upon reaching M00 in the program execution.
每当读到M00机器就会强制停止操作。
M01 Optional stop
选择性停止
M T Machine will only stop at M01 if operator has pushed the optional stop button.
当OP1按钮启动后,程序就会在M01出现时停止机器。
M02 End of program M T No return to program top; may or may not reset register values.
M03 Spindle on (clockwise rotation)
顺时正转。
M T

M04 Spindle on (counterclockwise rotation)
逆时反转
M T  
M05 Spindle stop M T  
M06 Automatic tool change (ATC)
转换刀具
M T (some-times)  
M07 Coolant on (mist)
冷却剂开启
M T  
M08 Coolant on (flood)
冷却剂开启
M T  
M09 Coolant off
冷却剂关闭
M T  
M10 Pallet clamp on M T For machining centers with pallet changers
M11 Pallet clamp off M   For machining centers with pallet changers
M13 Spindle on (clockwise rotation) and coolant on (flood) M   This one M-code does the work of both M03 and M08. It is not unusual for specific machine models to have such combined commands, which make for shorter, more quickly written programs.
M19 Spindle orientation
主轴定位并且锁定
M T Spindle orientation is more often called within cycles (automatically) or during setup (manually), but it is also available under program control via M19. The abbreviation OSS (oriented spindle stop) may be seen in reference to an oriented stop within cycles.
M21 Mirror, X-axis M    
M21 Tailstock forward   T  
M22 Mirror, Y-axis M    
M22 Tailstock backward   T  
M23 Mirror OFF M    
M23 Thread gradual pullout ON   T  
M24 Thread gradual pullout OFF   T  
M30 End of program with return to program top
结束程序并且回到程序开头处
M T  
M41 Gear select - gear 1   T  
M42 Gear select - gear 2   T  
M43 Gear select - gear 3   T  
M44 Gear select - gear 4   T  
M48 Feedrate override allowed M T  
M49 Feedrate override NOT allowed M T This rule is also called (automatically) within tapping cycles or single-point threading cycles, where feed is precisely correlated to speed. Same with spindle speed override and feed hold button.
M60 Automatic pallet change (APC) M   For machining centers with pallet changers
M98 Subprogram call
呼叫子程序
M T Takes an address P to specify which subprogram to call, for example, "M98 P8979" calls subprogram O8979.
M99 Subprogram end
结束子程序并回到主程序
M T Usually placed at end of subprogram, where it returns execution control to the main program. The default is that control returns to the block following the M98 call in the main program. Return to a different block number can be specified by a P address. M99 can also be used in main program with block skip for endless loop of main program on bar work on lathes (until operator toggles block skip).

M25 托盘上升
M85工件计数器加一个