Latest Program :

List of M-codes , Fanuc Control M codes List

List of M-codes commonly found on Fanuc and similarly designed controls




































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.
M01
Optional stop
M
T
Machine will only stop at M01 if operator has pushed the optional stop button.
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)
Many lathes do not use M06 because the T address itself indexes the turret.

To understand how the T address works and how it interacts (or not) with M06, one must study the various methods, such as lathe turret programming, ATC fixed tool selection, ATC random memory tool selection, the concept of "next tool waiting", and empty tools. Programming on any particular machine tool requires knowing which method that machine uses.
M07
Coolant on (mist)
M
T
M08
Coolant on (flood)
M
T
M09
Coolant off
M
T
M10
Pallet clamp on
M
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).


Share this article :

+ comments + 27 comments

December 12, 2016 at 12:03 PM

What would M382 be for?

Anonymous
February 21, 2017 at 2:09 PM

what is m code to turn chip conveyor on for fanuc i series control

Anonymous
March 1, 2017 at 10:59 PM

m24 and m25 is chip conveyor

May 3, 2017 at 6:19 AM

How bout the m code to do thru spindle air blast? ..

Anonymous
June 21, 2017 at 3:08 PM

M12

Anonymous
August 31, 2017 at 12:55 AM

how do i turn on the machine

April 13, 2018 at 4:31 AM

What m codes is it to 0 B axis ?

April 13, 2018 at 4:31 AM

What m codes is it to 0 B axis ?

August 3, 2018 at 7:10 AM

poket up ke liye m code

January 23, 2019 at 10:38 PM

CanI get the ubiversial M codes

February 24, 2019 at 10:52 AM

fanuc hmc m942

March 4, 2019 at 3:33 AM

Thanks

March 5, 2019 at 5:10 PM

Thnx

April 11, 2019 at 6:01 PM

What it is M20?

June 10, 2019 at 1:19 AM

m cσdє fσr chuck lσck ín jσввєr єlítє

August 25, 2019 at 3:42 AM

hi..in lath machine..chuck jaws insider open clos M code?..and outsider jaws open close M code command..

August 26, 2019 at 6:01 AM

Spindle orientation off

October 29, 2019 at 8:48 AM

I believe it is B0

February 9, 2020 at 12:38 AM

How to use m255 code

February 28, 2020 at 9:24 AM

M45code?

June 3, 2020 at 1:27 AM

Dooshan Nhm 8000 all m codes

June 13, 2020 at 7:57 PM

M26/M27

June 13, 2020 at 7:59 PM

G0G90G53X0Y0Z0B0.0

June 18, 2020 at 3:05 PM

M16 m18 code please

September 28, 2020 at 9:14 PM

What is the M code for in program Chuck clamp/de clamp in fanuc series oi-t

December 29, 2020 at 9:00 AM

What is use of m16 m18

January 11, 2021 at 8:32 AM

what is the M code to take the pod in the magazine back up

Post a Comment

 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. Online Education - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger