G30 and deployprobe.g
-
Hey everyone! I am working out some macros to deploy and retract an optical z-probe.
To deploy you move the X axis all the way to the left side and to retract you move all the way to the right side. Not too exotic.
In the deployprobe.g i have the following:
G60 S0 ;Store current location into first memory slot (to be used for return) G1 X0 Y10 ;Move to the location to deploy the probe G1 X0 Y0 Z0 R0 ;Return to probing point
...and retractprobe.g:
G1 X150 Y10 ;Move nozzle to retract probe G1 X0 Y0 Z0 R0 ;Move to origin location
This works well, if I move to an arbitrary point and issue a G30. It moves to extend the probe, probes the spot, returns the probe, and moves back to the original location.
What does NOT work is if I issue a command G30 Xnnn Ynnn. I cannot seem to figure out how to use deployprobe AND a G30 command which contains coordinates.
Any ideas?
-
@th0mpy said in G30 and deployprobe.g:
I cannot seem to figure out how to use deployprobe AND a G30 command which contains coordinates.
You could have a M401 command to deploy before the G30 X Y command.
Not sure why it wouldn't deploy automatically though. What firmware version?
-
Sorry, I should clarify just a little more.
It works, in that, the probe deploys but it will return to the origin that I defined via G60 and probe, NOT the G30 coordinates that I specified.
I just updated so I'm running 3.4
-
Thanks for the clarification. That's something @dc42 would have to answer on the expected behavior. I've never seen that done before.
-
@th0mpy said in G30 and deployprobe.g:
What does NOT work is if I issue a command G30 Xnnn Ynnn. I cannot seem to figure out how to use deployprobe AND a G30 command which contains coordinates.
Unless that has changed very recently using G30 like that ignores the X and Y parameters.
I have made a request in the past to implement that capability.
Frederick