I know it’s just an INI file variable change, but I’m struggling to think of a case where G52 persistence is a preferred default behavior.
I know this is a limitation of LinuxCNC-based controllers, but G52 doesn’t behave like it does on practically every other controller. Since LinuxCNC shares parameters/registers with G92 (WHY???), it can cause unintended behavior much more easily than in other G-Code flavours.
The point of G52 is to do Local WCS offsets on just one work offset, and was introduced as a safer alternative to G92, but it’s global on LinuxCNC variants, and in practical terms, is treated by the controller as a G92 offset that gets set relative to the WCS origin instead of the tool position. With persistence on, a G52 offset survives changing work offsets, M2, M30, M99 (if the G52 is set in a subprogram) and M72, and even reboots. If you abort a cycle, the G52 offset gets treated as a G92 on the next toolpath you run without any indication that it’s active. No other controller/gcode flavor that I’ve used has this behavior.
Yes, obviously you should always Add a G52 X0 Y0 Z0 at EOF and after setting modals in your files if you use G52. This doesn’t solve the abort problem.
Unfortunately my post isn’t the best, and uses fanuc style subprograms and expects fanuc style G52 behavior. For files with a lot of subs, I can’t just recall modals after an M99, I have to disable the offset after every sub call manually.
I’ve also run into unintended behavior when calling probing macros after repeats of the same cycle if a G52 is present. The probing macro (and only the probing macro) seems to retain an offset, again, without indicating that visually or in the console, unless you wrap your code (top AND bottom) with G92.1 (Zeroing out G52 doesn’t seem to work. No idea why. If I had to guess it’s because that’s the only way to zero out the registers in absolute or G53, but I haven’t exported the baked in probing subroutines to see what they’re actually doing.) - for some reason resetting the offset with this method makes the toolpath display show an offset that is not there in reality, but is there in the display. (the red lines indicating progress are displaced by the same distance that would be present in real life if you did not add this mitigation)
Not the end of the world, but it is annoying.
You can change one config line in the INI file in the pathpilot firmware and stop it from misbehaving by default. I really don’t see a case for why you wouldn’t, and I really wish Tormach would ship pathpilot firmware and updates with that setting configured correctly.