Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: NormB on January 01, 2015, 01:34:03 PM

Title: Moving the tool after cutting to a location automatically
Post by: NormB on January 01, 2015, 01:34:03 PM
What I am trying to do is move the tool after cutting to a position on the table say to the rear out of the way for easier loading and unloading the table.  The code generated in Vcarve moves the tool back to the original  home position.  I am not sure if I change that in Mach or in Vcarve and then HOW? The best would be if I can pick a position on the table say at 0,48 to the far right rear of the table then once reloaded move back to 0,0 and I am ready to go again.   
Title: Re: Moving the tool after cutting to a location automatically
Post by: ger21 on January 01, 2015, 02:37:05 PM
If you want it to always go to the same place after cutting, then Imo, the best way to do it is to add the move top your post processor.

You could also set your home position to there as well, but then the machine will always move there before it starts cutting. But you can also edit that out of the post processor as well.

With my 2010 Screenset, I have a Park Position macro, which sends the machine to the Park Position specified in the screenset. I add the macro to the vectric post processor, so the machine always goes to the park position after cutting. The nice thing about this method is that BY changinge the park position in the screenset, I can have the same g-code program finish in different positions without altering the g-code.

Like many things with Mach3 and CNC, there are many different ways to achieve what you want.
Title: Re: Moving the tool after cutting to a location automatically
Post by: BR549 on January 01, 2015, 03:18:58 PM
The best way to do this is to be able to RefHome your machine at startup. This allows the machine to KNOW exactly where it is at any time.

Set Setup a  Park Position as Gerry suggested. Then use the G28 to reference your Park position. At the end of your Postcode add in a G28 before the M30 call. Then the machine at the end of the cut will automatically GOTO the Park position. That way IF you want to change your park position you only have to change the G28 location and NOT have to redo the post code each time.

Just a thought, (;-) TP

Title: Re: Moving the tool after cutting to a location automatically
Post by: NormB on January 01, 2015, 03:48:00 PM
Thank you, I understand and I like the approach.  One G code different park position with one easy change.