G91 G28 Z0. M5 - CNC Machining - Practical Machinist
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.
MenuSearch
Everywhere Threads This forum This thread Search titles only 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
- New posts
- Search forums
- Forums
- Manufacturing Today
- CNC Machining
- Thread starter Thread starter 1320feet
- Start date Start date Jan 18, 2016
- Replies Replies 60
- Views Views 13,503
- 1
- 2
- 3
- 4
Go to page
Go Next Last 11320feet
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 Ssnowshooze
Stainless
Joined Sep 15, 2010 Location Anchorage, Alaska, USA I am at home. I can't remember what g28 is.. 2233mmx
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 Ssnowshooze
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 BBooze Daily
Titanium
Joined Sep 18, 2015 Location Ohio1320feet 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
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) LLarry Dickman
Titanium
Joined Jan 30, 2014 Location Temecula, CaMike1974 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 CalgaryBooze 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 CalgaryMike1974 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.. RRstewart
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
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
Diamond
Joined Jul 12, 2006 Location Tempe, AZsnowshooze said: I am at home. I can't remember what g28 is.. Click to expand...I thought this reply was hilarious.
Y yardbird
Titanium
Joined Jul 3, 2013 Location Indianasnowshooze said: I am at home. I can't remember what g28 is.. Click to expand...
Philabuster said: I thought this reply was hilarious.Sometimes when im at homeClick to expand...
I can't remember either.
Just kidding... Brent 1 1320feet
Aluminum
Joined Apr 23, 2008 Location CalgaryRstewart 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. DDave K
Diamond
Joined Mar 21, 2004 Location Waukesha, WIPhilabuster said: I thought this reply was hilarious.I didn't pick up on that, but knew right away when you said it. That is hilarious. SClick to expand...
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! MarkPhilabuster said: I thought this reply was hilarious.1Click to expand...
1320feet
Aluminum
Joined Apr 23, 2008 Location CalgaryNeedshave 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
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
- Simple Machinist
- Mar 12, 2025
- CNC Machining
- Wolverinearms
- Sep 4, 2025
- CNC Machining
- GivmarMachining
- Apr 7, 2025
- CNC Machining
- rklopp
- Sep 7, 2025
- CNC Machining
- Forums
- Manufacturing Today
- CNC Machining
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.
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
-
G28 G-Code
-
Learn G28 X0. Y0. Z0. G-code - With Examples - Cnc Philosophy
-
G28 G91 Z0.
-
G28 G-Code: CNC Return To Reference [ Easy Tutorial & Guide ]
-
How The Heck Does G28 Work? - CNC Concepts, Inc.
-
G28 Return To Machine Zero Point (Group 00) - Haas Automation Inc.
-
G91 G28 Z0. M5 - Machining, Tools, Cutting & Probing - EMastercam ...
-
G28 Question - CNC Zone
-
[PDF] Cnc G-code Example Program
-
Unit 4: CNC Language And Structure – Manufacturing Processes 4-5
-
G28 Versus G53 | Modern Machine Shop
-
[PDF] G & M Code REFERENCE MANUAL - MachMotion
-
Examples Of G-Code For Common CNC Functions - Thomasnet