Machsupport Forum
G-Code, CAD, and CAM => G-Code, CAD, and CAM discussions => Topic started by: corydoras 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
-
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
-
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
-
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
-
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???
-
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
-
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
-
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.