I have an xtool with a zaxis depth probe to detect material height. It works great.
Is it possible, after the project is finished and before returning to home or origin to automatically raise the z axis probe so it doesn’t hit anything on the way to either of those positions. That would also make it ready to move to the next project without worry of hitting something on the way to that new location.
I can do that manually by having it simply stop when done with a burn then, raise it, then send out of the way for the next project. It would be nice to have it do that automatically so my ancient brain wouldn’t have to remember to do it.
I didn’t realize any of the xTool devices had something like a z-axis depth probe. Is this an official xTool add-on or something you modified?
I don’t believe there’s a formal way to do what you’re asking but one thing you could try as a workaround is to create a “dummy” layer that runs last with a Z offset that moves the probe out of the way.
It’s a addon, I’ll try that.
I created a macro that does what I want.
G1 Z11 F300
G53 X6.1 Y344 F2400
It works.
Z goes up 11mm at speed 300mm/min which is enough to clear any magnet I might use. Then it goes to coordinates X6.1 Y344 at speed 2400mm/min. Those are the coordinates I have set as origin.
I found that there is a place to enter code to be run before and after a job. I entered the above code in the after space. It works EXCEPT Z goes up but, a different distance. I tried different distances, even 0.2 is higher than I want.
Doesn’t a macro just run some grbl code? If so why are they different?
Is it possible to call a macro in the after job space?
I’m going to mark this as solved. My last post does do what my original post asked. I’ll ask about the discrepancies in a new post
I’m glad you got something that works for you but I don’t see how this would work in the way that you described. I assume you put this code in Edit->Device Settings->G-code->End Gcode field. But that code should come only after the “Return to position” instructions.
So in other words, I wouldn’t expect this to clear Z before moving to the designated position.
I don’t have “Return to position” checked so as soon as project is finished it stops. Then the End Gcode takes over. At least that is my understanding of it and it does worl.
Okay. That makes sense but I thought the entire point was to raise the probe before returning automatically.
It does, I had to change it just a bit
This part tells it to go up 13mm from where it is now
G91
G1 Z13 F300
This part tells it where to go by coordinates. That is the coordinates I use for origin.
G90
G53 X6.1 Y344 F2400
Remember that the G53
command tells the movement to use absolute machine coordinates, which may differ from the coordinates in the “normal” G54
coordinate system for the other commands.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.