Search This Blog

Sunday, November 16, 2014

"What is M-CODES M03, M04 & M05 (Spindle motion codes) used in CNC PROGAMMING "

M-COde M03 and M04 Spindle Motion M-codes:

M03 (Spindle ON Clockwise Direction):

M03 Is the M-code used in the CNC Program to activate the Spindle along the clockwise Direction with given Spindle speed Specified with the alphabet S.
Example: After the Tool change the spindle (Clockwise direction) is activated using the M03 code with the spindle speed of S1000 means spindle rotation at 1000 RPM.
N170 T6 M06
N171 G54 G90 G00 X10 Y10 Z50 M03 S1000

M04 (Spindle ON Counter Clockwise Direction):

M04 Is the M-code used in the CNC Program to activate the Spindle along the counter clockwise Direction with given Spindle speed Specified with the alphabet S.
Example: After the Tool change the spindle (Counter Clockwise direction) is activated using the M04 code with the spindle speed of S1000 means spindle rotation at 1000 RPM.
N170 T6 M06
N171 G54 G90 G00 X10 Y10 Z50 M04 S1000

Note: M04 is commonly used in the reverse helix tools. For example: Slot cutters with reverse direction of teeth

M05 (Spindle OFF):

M05 is the M-code Used in the CNC Program to stop the Spindle any point of time required on the Program. Remember that once M05 is called in your program see that the tool does not move in the material to take cut until M03 or M04 is called again, it may lead into tool breakage.
Example:
N170 G0Z50                (Retract to Safety)
N171 M05 M09           (Spindle OFF & Coolant OFF)
N172 G91 G28 Z0       (Retract to Z Home Position)

N173 M30                    (End of the Program)

7 comments:

  1. Why does lathe alarm out,with a "imposible to move y axis" after making 2 parts?

    ReplyDelete
  2. NC was developed in the late 1940s and early 1950s by John T. Parsons in collaboration with the MIT Servomechanisms Laboratory.

    bp quality

    ReplyDelete
  3. Hi there would you mind letting me know which hosting company you're working with? I've loaded your blog in 3 different internet browsers and I must say this blog loads a lot quicker then most. Can you suggest a good web hosting provider at a reasonable price? Thanks a lot, I appreciate it! waterjet cutting services

    ReplyDelete
  4. I precisely wished to say thanks once more. I am not sure what I would've handled without the ways shown by you on such subject matter. This has been the horrifying crisis for me personally, however , witnessing the expert manner you managed the issue forced me to jump over gladness. I am happier for your service and thus have high hopes you recognize what an amazing job you are always providing training men and women using your web page. Probably you've never encountered all of us.
    automated welding edmonton

    ReplyDelete
  5. You are writing is always fabulous. This is third time I’ve read your blog and I find the information very useful. Aluminum Nitride CNC Machining Services.

    ReplyDelete
  6. This Los angeles Weight Loss diet happens to be an low and flexible going on a diet application meant for generally trying to drop the weight as well within the have a much healthier lifetime. lose weight cnc

    ReplyDelete
  7. Remini PC is amazing app to enhance picture without any expertise in photo editing. check

    ReplyDelete