Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: rufustoad on July 29, 2024, 01:24:33 PM

Title: Mach4 Post Processor Fusion
Post by: rufustoad on July 29, 2024, 01:24:33 PM
Hi all, I am wanting to change the end of path HOME after the tool path is done running. Unfortunately, Fusion doesn't allow this change in the CAM page and wanted to see if anyone on here know where to change this at or the code to change it? I think this is the place line723 in my attachment??
Title: Re: Mach4 Post Processor Fusion
Post by: Graham Waterworth on July 29, 2024, 05:54:23 PM
What are you wanting to do at the end of the cutting path?
Title: Re: Mach4 Post Processor Fusion
Post by: rufustoad on July 29, 2024, 06:14:57 PM
Hi Graham,

I would like to have the head go to a set machine # for a manual tool change if it is possible. Like y-90 & x-24.
I did omit the line #732 in that pic with // and now the gantry raises then stops. I could live with that if I had to but the tool path actually still shows that it is going back to its home position on the screen and do not feel real comfy with that.
Not sure why Fusion has removed this option in the Post window nor why MACH wouldn't give you this option. This is much easier in Aspire.
Title: Re: Mach4 Post Processor Fusion
Post by: Graham Waterworth on July 29, 2024, 06:57:57 PM
I don't think that is the correct bit in the code, that looks like the program end point.

Look/Search for writeBlock(mFormat.format(6) or something similar, this is the tool change code so your move is needed before this line.

The line to add will be something like:-

writeBlock("G50 X-24. Y-90.");

Title: Re: Mach4 Post Processor Fusion
Post by: rufustoad on July 29, 2024, 07:57:05 PM
Darn Brother you are so close, but I do not see 6. Define home positions I would think would have this but its not formatted in a way that I understand. This is the code I was looking at and attached. You might not be able to open it but if you can line 1213 defines home? Does this look like I am heading the right direction?
Thank you for your assistance!!
Title: Re: Mach4 Post Processor Fusion
Post by: Cbyrdtopper on July 30, 2024, 10:38:06 AM
Rufustoad,
Try this post that I made. 
It allows you to use G30 at the end instead of G28 for Safe Retracts.  It's a drop down in the post. 
You will have to set the positions you want inside the #vars.  Change #Var 5181 for X, #5182 for Y, and #5183 for Z.
These are the machine positions that you want the machine to go to when it is finished.  So be sure you populate these variables appropriately. 
For example, I don't want my Z to go all the way back to it's Home Zero Position, so I have variable #5183 set to -5.00 on a machine so it goes 5 inches below the home position.
Same for X and Y.
This post also allows you to use a G30 P2 for the tool change position; it uses this position before each tool change (even the first one).
#5351 X, #5352 Y, #5353 Z.
It is set up the same way; populate the appropriate #Vars with the machine position you want the machine to go to.

https://www.machsupport.com/forum/index.php?topic=46947.0
This is a helpful post as well.
Title: Re: Mach4 Post Processor Fusion
Post by: rufustoad on July 30, 2024, 11:59:54 AM
Thank you so much Chad I appreciate it. I am not sure I understand what #Var 5181 for X, #5182 for Y, and #5183 for Z. is?? This does not exist when I open it in Fusion to edit the post?
Title: Re: Mach4 Post Processor Fusion
Post by: Cbyrdtopper on July 30, 2024, 12:04:56 PM
It is inside Mach4.  Inside the "diagnostics" drop down then "regfile" then variables.  Set the range to include the all #5180 variables you need.
This is a setting for your machine.  Move the machine to the position you want the tool change and home positions to be.
Fill in the appropriate #Vars for the home positions to end the program at.  Then move the machine to the tool change position and fill in the appropriate #vars for the tool change. 

NOTE THESE ARE MACHINE POSITOINS.  These are not work positions... they are machine positions.   
Title: Re: Mach4 Post Processor Fusion
Post by: rufustoad on July 30, 2024, 02:33:44 PM
Hey Boss, I want to make 100% sure I am in the right place before I change anything as I have never been here before. Does this look correct?
Title: Re: Mach4 Post Processor Fusion
Post by: Cbyrdtopper on July 30, 2024, 03:11:13 PM
Yep. That’s it.
Title: Re: Mach4 Post Processor Fusion
Post by: rufustoad on July 30, 2024, 04:25:01 PM
OK Chad I think I have it, but I did run a post to test and the code it created still has the G28 so will Mach override that or am I missing something?
Title: Re: Mach4 Post Processor Fusion
Post by: Cbyrdtopper on July 30, 2024, 04:25:50 PM
You need to select Use G30 instead of G28 in the fusion post.
Also, you need to select the Use G30P2 for tool change if you want to use that as well.
Title: Re: Mach4 Post Processor Fusion
Post by: rufustoad on July 31, 2024, 03:59:51 PM
I finally got a chance to try this, and it worked perfectly! Thank you for all your help on this. Would have never come close to a fix like that without help!! Hope I can repay someday.
Title: Re: Mach4 Post Processor Fusion
Post by: Cbyrdtopper on July 31, 2024, 04:18:14 PM
No problem at all.  This is stuff that I have wanted added into the fusion post for a while so I just went ahead and added a lot of it on my own.  The stock fusion post has the ability to change from G28 to G30.  I asked them to add that functionality into the post a couple of years ago and they were kind enough to take that into consideration and actually implement it.  Autodesk usually pretty good to work with. 
Title: Re: Mach4 Post Processor Fusion
Post by: rufustoad on July 31, 2024, 08:22:04 PM
Yeah, Fusion has been really good to work with. I had a little issue with them and they responded quickly and the guy was really nice. Not common now days. I have a Langmuir CNC that I have had all kinds of issues with and getting service is like pulling teeth.
I wish I had the knowledge some of you guys have on these programming things. I am trying to learn Arduino right now as I have built a complete dust collection system in my shop. Just push a button and a valve at that particular work station (saw, planer,etc) just opens and turns on the vac. Super nice but learning it is like shoving 10lbs of crap into a 1/2lbs brain:)
Thanks again for all your help.
Title: Re: Mach4 Post Processor Fusion
Post by: Cbyrdtopper on July 31, 2024, 08:24:18 PM
All on the job learning for me.
We have a machine shop and we run our lathes, mills, custom knife grinders, and OD grinders with mach4. Had a big learning curve but learned a lot and we like to share what we learned.

Check out the Shelix, that’s our big product we manufacture. It’s a cutterhead for planers and Jointers.
Title: Re: Mach4 Post Processor Fusion
Post by: rufustoad on July 31, 2024, 10:07:35 PM
YOU WORK FOR SHELIX?? Super nice!! I am looking at a head for my new 20" Powermatic planer. I have not purchased one yet but my understanding your product is good and I think its the only one Powermatic offers from the factory. That cool stuff.

I am starting a small job shop and everything I learn is on my own and can be VERY frustrating. Spend more time looking through videos than getting actual work done.
Not a ton of folks out there that are willing to help out either. I try to help the best I can.
Title: Re: Mach4 Post Processor Fusion
Post by: Cbyrdtopper on August 01, 2024, 09:44:44 AM
Powermatic doesn't have the shelix cutterhead OEM.  They offer a spiral Taiwanese cutterhead with their machines.  I do like powermatic's machines though, very good.
Title: Re: Mach4 Post Processor Fusion
Post by: rufustoad on August 01, 2024, 10:17:15 AM
WHOA that's good to know. I actually called them on it and could save about $300 by purchasing directly from Shelix and installing it myself. The only inserts you can even purchase on Powermatic web is Shelix. Good to know