Re:
forum.linuxcnc.org/30-cnc-machines/42689...0-ap?start=80#346618
1. These two errors are connected. The parameter #<_tool_in_spindle> is not defined because 'change_prolog' cannot be found.
2. Looking at your ini file it seems that your paths are messed up. TOPLEVEL should point to the file 'toplevel.py' not just some folder:
Code:
[PYTHON]
PATH_PREPEND = python
TOPLEVEL = /home/cnc/linuxcnc/nc_files/remap_lib/python-stdglue/python/
PATH_APPEND = /home/cnc/linuxcnc/nc_files/remap_lib/python-stdglue/
[RS274NGC]
PARAMETER_FILE = linuxcnc.var
#SUBROUTINE_PATH = /home/cnc/linuxcnc/nc_files/remap_lib/python-stdglue/python/
#USER_M_PATH = /home/cnc/linuxcnc/nc_files/hurcoMCODE
#REMAP= M6 modalgroup=6 ngc=sub_progs/Werkzeugwechsel_Main
SUBROUTINE_PATH = ./
#REMAP=M6 modalgroup=6 ngc=toolchange
REMAP=M6 modalgroup=6 prolog=change_prolog ngc=toolchange epilog=change_epilog
# parameters exposed by setspeed_prolog/evaluated by setspeed_epilog:
#<speed>
#REMAP= S prolog=setspeed_prolog ngc=setspeed epilog=setspeed_epilog
Since we don't have your complete config folder there is no telling where you have the relevant files but if you compare your setting with the built in 'sim/axis/remap/extend-builtins/' you might get some ideas.
(You will find the [PYTHON] section at the very bottom of the ini file below):
github.com/LinuxCNC/linuxcnc/blob/2.9/co.../extend-builtins.ini