Hello Chriss,
History:
Gmoccapy had an integrated functionality. If a tool was changed, the tool correction was automatically turned on.
github.com/LinuxCNC/linuxcnc/blob/e586c3...ccapy.py#L3537-L3541
I named this functionality AUTOMATIC_G43.
The idea of this functionality is great. Unfortunately, this functionality was implemented in the Gmoccapy GUI. This caused race conditions in certain LCNC configurations and on certain hardware. Norbert had a problem simulating these bugs at all.
After long discussions, Norbert agreed to remove AUTOMATIC_G43 from his Gmoccapy GUI. However, he had a condition that this functionality be preserved at least using REMAP.
github.com/LinuxCNC/linuxcnc/pull/3113/f...d37cd778756e98de8fff
And in the configuration files for Gmoccapy, this Remap should be added.
My wish:
I added this remap to the configurations, but a lot of configurations are done using PNCconf. I wish the configurations from PNCconf included for Gmoccapy:
added in INI file:
# Task controller section -----------------------------------------------------
[RS274NGC]
...............
SUBROUTINE_PATH = ./macros
REMAP=M6 modalgroup=6 prolog=change_prolog ngc=change_g43 epilog=change_epilog
REMAP=M61 modalgroup=6 prolog=settool_prolog ngc=settool_g43 epilog=settool_epilog
# the Python plugins serves interpreter and task
[PYTHON]
PATH_PREPEND = ./python
TOPLEVEL = ./python/toplevel.py
LOG_LEVEL = 0
+ Python and Macro file:
I think it will be very dangerous when Gmoccapy users switch from version 2.9 to 2.10. If they change the tool and the tool correction does not change as they were used to, it can cause physical crashes of the machines. That is why I would like PNCconf to retain this functionality in version 2.10 using REMAP.
As an advantage of this PNCconf modification, I see that users will have a template for creating Remaps. It is difficult for a beginner to understand what toplevel.py, stdglue.py, remap.py are for. This way they would only modify change_g43.ngc and/or settool_g43.ngc.
I don't know how to approach this:
1) make the above changes only for Gmoccapy
or
2) make the AUTOMATIC_G43 functionality in PNCconf for all GUIs. Gmoccapy should have this functionality enabled by default.
Fortunately, we have enough time, because this will be needed only for LCNC 2.10
Zdeněk