Hello Guest it is April 19, 2024, 04:19:53 AM

Author Topic: Move after program end  (Read 4802 times)

0 Members and 1 Guest are viewing this topic.

Move after program end
« on: September 01, 2015, 04:01:59 PM »
After spending some time searching the forum, I cannot seem to find an answer to my problem.

When I machine at an offset, lets say G55, and the program ends, the machine moves to "0", but this position puts the gantry and spindle somehow in the way of my inspections or removal of the machined piece.

Is there a way to make the machine go the the machine coordinate position, or any specified position automatically after program end?

best reg
Roy

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Move after program end
« Reply #1 on: September 01, 2015, 08:43:48 PM »
You Sure can create a M1030 macro and put whatever code you want it to follow.  M30 will trigger that macro to run. 

BUT beware you can easily crash the machine and tear up tools by having such an auto function.  Just remember where you are sending it to.

(;-) TP
Re: Move after program end
« Reply #2 on: September 02, 2015, 12:30:57 PM »
Hi again


I did some experimenting today, and adding a G28 or a G30 after M30 in the g code editor made the machine do what I want.
But THEN, I discovered that checking the Perform G92.1 at program en in general config does exactly what I was looking for.

Sorry that I was impatient and did not explore the options in the software first.

Thanks BR549 for your answer

Best reg Roy
Re: Move after program end
« Reply #3 on: September 02, 2015, 02:32:10 PM »
Hmmm, I thought I figured it out, only to discover that I used a g code for testing that I had manually put a G30 at program end, and thought I had solved the problem

Well, anyone with a good idea?

Br
Roy

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Move after program end
« Reply #4 on: September 02, 2015, 04:32:44 PM »
You cannot Put anything after the M30 as Mach3 will ignore it. Except sub code. But it will still ignore it unless called.

You can use G28 to send it to the preassigned home position or G30 to send it to the machine home position. Then there is teh M1030 macro option.

OR just tell it where you want it to go to. 

G0 Z?? (raise Z)
G0 X???  Y???

Re: Move after program end
« Reply #5 on: September 02, 2015, 04:58:05 PM »
I edited the post processor for Mach 3 in my cad/cam program, and had it automatically add this line before M30

So I think I will try this for now.

thanks for replying

Br
Roy
« Last Edit: September 02, 2015, 05:15:07 PM by corydoras »

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Move after program end
« Reply #6 on: September 02, 2015, 05:14:26 PM »
Create a M1030 macro with this it it. Save the M1030 to teh current profile macro directory. Then when the M30 runs it calls teh M1030 macro

' M1030 macro Return Home
Code" G30"
End

Now when the M30 runs it calls the M1030 macro automatically and then runs the G30.

(;-) TP

Re: Move after program end
« Reply #7 on: October 22, 2015, 11:59:13 AM »
Thank you. 

This is exactly the sort of thing I was looking for.  I'll do some experiments with it today.  I already have hard coded macros written for tool changes that save current location, go to tool change location, wait for input, and return to saved location.  I've been looking for a something similar for program end.  Move to park position for easy unloading at program end.  G30 would not cut it for me, but the principal works. 

TODAY THE SEARCH FUNCTION WORKED FOR ME.  LOL.