-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
G98 G73 Z retract during XY movement #347
Comments
The G73 LinuxCNC specification states that the final Z is at the R position. BTW G73 is not classified as a canned cycle and the retract mode thus does not apply? |
My video of the possible issue |
Not according to the G73 specification. Or is the specification incorrect? |
Ah, now I see, the g73 is not included based on this spec. read too quick. In fusion360 simulation it goes to old Z, so I don't know whats correct. And thanks for quick replays |
To complicate this the Fanuc dialect is different and returns to the previous Z if G98 is active. Others I have checked after a quick search either do not specify the return position or are ambiguous about it. It would be nice to know how LinuxCNC actually behaves... |
Let's see if I find someone that could test |
even then isnt grblhal missbehaving with the raise to z5 during the xy movement instead of staying in the r plane? i'll see if i can get a linuxcnc user to test that behaviour |
This is the gcode in question and specially the line starting with G98... (6.5mm_drill_corners) (Drill6) |
I don't have access to my machine right now, but my understanding from the LinuxCNC source code is that it respects G98 plane when interpreting G73. Source code is here: https://github.com/LinuxCNC/linuxcnc/blob/master/src/emc/rs274ngc/interp_cycles.cc#L979 |
Just got it confirmed by a LinuxCNC user. g98 is followed. So it retracts to previous Z on LinuxCNC |
I have now committed refactored canned cycle code, I hope this is closer to how LinuxCNC works. Please report back if there are still issues. |
thanks! and to the web builder it will arrive with next major grbl update? cannot get my head around building for grblhal2kest printnc board locally. |
The Web Builder has been updated already. I usually do that fairly immediately after a commit. |
g98 is a command that tells the cycle to go to the previous z-plane (if it is higher than then R retract plane) ... the counterpart would be g99 which only retracts to the R - plane. now since we can clearly see (from the gcode and video provided) that the drill cycle finishes at z-2 and not at z5 where it should, but it moves up to z5 during the XY reposition, so it clearly knows it's supposed to be up there.
G0 X-119 Y-182.5
Z15
Z5
G98 G73 X-119 Y-182.5 Z-16 R-2 Q0.5 F400
X-19
Y-32.5
X-119
Could not add video here.
The text was updated successfully, but these errors were encountered: