G91 G28 Z0. M5 - CNC Machining - Practical Machinist

How to install the app on iOS

Follow along with the video below to see how to install our site as a web app on your home screen.

Note: This feature may not be available in some browsers.

Menu Practical Machinist - Largest Manufacturing Technology Forum on the Web Log in Register What's new

Search

Everywhere Threads This forum This thread Search titles only By: Search Advanced search…
  • Forums New posts Search forums
  • What's new Featured content New posts New media New media comments New resources New profile posts Latest activity
  • Media New media New comments Search media
Everywhere Threads This forum This thread Search titles only By: Search Advanced search…
  • New posts
  • Search forums
  • Forums
  • Manufacturing Today
  • CNC Machining
You are using an out of date browser. It may not display this or other websites correctly.You should upgrade or use an alternative browser. G91 g28 z0. M5
  • Thread starter Thread starter 1320feet
  • Start date Start date Jan 18, 2016
  • Replies Replies 60
  • Views Views 13,503
  • 1
  • 2
  • 3
  • 4
Next 1 of 4

Go to page

Go Next Last 1

1320feet

Aluminum
Joined Apr 23, 2008 Location Calgary I have an fanuc 0i-mb control that stops the spindle while traveling to Z0 for a tool change. I also have a fanuc 18i control that does not stop the spindle until Z0 is reached. Is there a parameter for this? Thanks Howard S

snowshooze

Stainless
Joined Sep 15, 2010 Location Anchorage, Alaska, USA I am at home. I can't remember what g28 is.. 2

233mmx

Plastic
Joined Jan 12, 2016 G28 Z0 - z-axis goes to the home position. @snowshooze 1320feet, I don't know the parameter, but in the past I had similar problems. I wrote a separate program for this and in the main program I just called the sub-program to do this. In some cases, older machines don't have a parameter for this. Anyway, here is a example of a sub-program call. %00001 (Z-axis home) G91 G28 G0 Z0 M5 M99 %00002 (Part for a client) T1 M6 Sxxx M3 (do your work) M98 P00001 (z-axis home, spindle stop) T2 M6 Sxxx M3 (do more work) M98 P00001 (z-axis home, spindle stop) M30 S

snowshooze

Stainless
Joined Sep 15, 2010 Location Anchorage, Alaska, USA Throw in your M99 and do the stop in the main program. The sub-program I personally reserve just for geometry with a previously called start position and tool. Hope that helps. Mark B

Booze Daily

Titanium
Joined Sep 18, 2015 Location Ohio
1320feet said: I have an fanuc 0i-mb control that stops the spindle while traveling to Z0 for a tool change. I also have a fanuc 18i control that does not stop the spindle until Z0 is reached. Is there a parameter for this? Thanks Howard Click to expand...
Do you prefer one over the other or are you just trying to make them both behave the same? I do similar to 2333mmx: N1 M98 P0001 T1M6 (make some chips) G0 Z.5 M5 N2 M98 P0001 T2 M6 etc... Mike1974

Mike1974

Diamond
Joined Nov 5, 2014 Location Tampa area I could be wrong, but I think the M code is read (executed) at the end of the block, regardless of its position in the line. Per the Haas manual - "All M-codes take effect at the end of the block." ... Although your machine could behave differently (as you are seeing) L

Larry Dickman

Titanium
Joined Jan 30, 2014 Location Temecula, Ca
Mike1974 said: I could be wrong, but I think the M code is read (executed) at the end of the block, regardless of its position in the line. Per the Haas manual - "All M-codes take effect at the end of the block." ... Although your machine could behave differently (as you are seeing) Click to expand...
From what I recall, Fanucs had a parameter to set whether it's active at the beginning or the end 1

1320feet

Aluminum
Joined Apr 23, 2008 Location Calgary
Booze Daily said: Do you prefer one over the other or are you just trying to make them both behave the same? Click to expand...
I like the one that is slowing down as z moves. It saves a few seconds on the tool change time. 1

1320feet

Aluminum
Joined Apr 23, 2008 Location Calgary
Mike1974 said: I could be wrong, but I think the M code is read (executed) at the end of the block, regardless of its position in the line. Click to expand...
Both of these controls will start the spindle and move x and y at the same time. G0 G90 G54 X6.665 Y-.529 S5800 M3 6

60 Hertz Jig

Aluminum
Joined Jun 14, 2011 Location PNW It would be interesting to know if there is a parameter or if it's more manufacturer specific. A few years ago I remember a Mori Seiki tech telling me about M1003/4/5 codes that would tell the spindle to start or stop then immediately continue processing code, helpful for eking those extra seconds out of a cycle. Never had a chance to try though, and again, manufacture specific, but worth looking through any spare M codes you might have. Then again, if we all had Brothers, spindle start stop would be instantaneous.. R

Rstewart

Stainless
Joined Jun 14, 2006 Location Alabama G91 G28 Z0.0 M05 on my Haas will retract to home and Then stop the spindle. G91 G28 Z0.0 M05 on my Mori will execute the spindle stop as the spindle retracts simultaneously. Saves a Little bit of time on the mori, and just looks funny on the haas. wayneind

wayneind

Aluminum
Joined Sep 6, 2015 I believe this function would be set by the MTB. So however they have the ladder written would decide if the M code is executed with the move or at completion of the move. Philabuster

Philabuster

Diamond
Joined Jul 12, 2006 Location Tempe, AZ
snowshooze said: I am at home. I can't remember what g28 is.. Click to expand...
I thought this reply was hilarious. :D Y

yardbird

Titanium
Joined Jul 3, 2013 Location Indiana
snowshooze said: I am at home. I can't remember what g28 is.. Click to expand...
Philabuster said: I thought this reply was hilarious. :D Click to expand...
Sometimes when im at home :drink: I can't remember either.:D Just kidding... Brent 1

1320feet

Aluminum
Joined Apr 23, 2008 Location Calgary
Rstewart said: G91 G28 Z0.0 M05 on my Haas will retract to home and Then stop the spindle. G91 G28 Z0.0 M05 on my Mori will execute the spindle stop as the spindle retracts simultaneously. Saves a Little bit of time on the mori, and just looks funny on the haas. Click to expand...
The 18i control that doesn't stop until Z0 is reached is on a 1998 Mori SV500 N

Needshave

Aluminum
Joined Oct 20, 2009 Location MA You could try G0 G53 Z0 M19 Go through the M codes in your book. The machines I run use M29 to orientate the spindle and drop the ready pocket while going to the home position. D

Dave K

Diamond
Joined Mar 21, 2004 Location Waukesha, WI
Philabuster said: I thought this reply was hilarious. :D Click to expand...
I didn't pick up on that, but knew right away when you said it. That is hilarious. S

snowshooze

Stainless
Joined Sep 15, 2010 Location Anchorage, Alaska, USA Phil, I swear to god, when I am at home it is because my brain is off-the-clock again. I was sorta embarassed.. but got over it in a second. You helped me a bunch when I first stepped into CNC, and I am still g-coding every day. But, lots of times... all the numbers just lose their meaning after you have been whacking away at it all day... I'll tell you what though, a lotta " CNC Machinist's" have applied here, and they wouldn't know a g-code from a hole in the ground. I will soon be moving into CAD-CAM as I no longer feel the need to prove I can calc geometry all day... but I do hate learning the computer stuff. That is hard for me. Thanks again! Mark
Philabuster said: I thought this reply was hilarious. :D Click to expand...
1

1320feet

Aluminum
Joined Apr 23, 2008 Location Calgary
Needshave said: You could try G0 G53 Z0 M19 Go through the M codes in your book. The machines I run use M29 to orientate the spindle and drop the ready pocket while going to the home position. Click to expand...
I tried G0 G53 Z0 M19 and it went all the way home before the spindle stopped. M29 on this machine is for rigid tapping. I would also love it, if I could get the pot down before z gets home. Thanks for the ideas. D

Dave K

Diamond
Joined Mar 21, 2004 Location Waukesha, WI If you state it like this, what does it do? M5 G91 G28 Z0. Will it wait until the spindle comes to a complete stop before sending the z home, or will it send z home while the spindle is decelerating?
  • 1
  • 2
  • 3
  • 4
Next 1 of 4

Go to page

Go Next Last You must log in or register to reply here.

Similar threads

H Any Mills with UVW incremental programming?
  • HSK63a
  • Mar 9, 2025
  • CNC Machining
Replies 3 Views 520 Mar 10, 2025 sinha S S Fanuc OMc Knee Mill cutter compensation
  • Simple Machinist
  • Mar 12, 2025
  • CNC Machining
Replies 5 Views 664 Mar 15, 2025 Simple Machinist S W DIY Rack-Style ATC on a Haas TM-2 (Fusion 360 Post Hack + Code Included)
  • Wolverinearms
  • Sep 4, 2025
  • CNC Machining
2 Replies 27 Views 2K Oct 16, 2025 ??? ??? G Fanuc 11m inclination or straightness compensation
  • GivmarMachining
  • Apr 7, 2025
  • CNC Machining
Replies 4 Views 834 Apr 8, 2025 memoryman M rklopp G84 tapping cycle Fanuc Oi-MF+ vs Pre-NGC Haas
  • rklopp
  • Sep 7, 2025
  • CNC Machining
Replies 12 Views 1K Sep 8, 2025 Vancbiker V Share: Facebook X Bluesky LinkedIn Reddit Pinterest Tumblr WhatsApp Email Share Link
  • Forums
  • Manufacturing Today
  • CNC Machining
Menu Log in Register Back Top X

Notice

This website or its third-party tools process personal data (e.g. browsing data or IP addresses) and use cookies or other identifiers, which are necessary for its functioning and required to achieve the purposes illustrated in the cookie policy. To learn more, please refer to the cookie policy. In case of sale of your personal information, you may opt out by sending us an email via our Contact Us page. To find out more about the categories of personal information collected and the purposes for which such information will be used, please refer to our privacy policy. You accept the use of cookies or other identifiers by closing or dismissing this notice, by scrolling this page, by clicking a link or button or by continuing to browse otherwise.

Practical Machinist - Largest Manufacturing Technology Forum on the Web

Join Our Community of 258k+ Metalworking Professionals — FREE!

Get expert advice and feedback on your specific machining challenges from industry leaders.

Build your network by sharing your expertise and connecting with peers solving similar problems.

Stay in the conversation with instant notifications when members respond to your threads or comments.

Registration takes only 30 seconds!

Continue with Email or Already have an account? Log in.

Từ khóa » G28 G91 Z0 M05