garymcrobertpdx wrote:OK I have picked through the remapping doc and had a go at making it work
but no luck on the first try. I think there is some missing components.
I think that the problem is that the LinuxCNC startup script insists on copying the files to your home folder, but doesn't bring them all.
If you open a terminal and type
linuxcnc /usr/share/doc/linuxcnc/examples/sample-configs/sim/remap/rack-toolchange/racktoolchange.ini
then you should get it to launch properly. You can then go to the MDI window and type M6T3 and watch it do a tool change.
So, it works. However you need to find all the files, they seem to be in a combination of usr/share/doc/linuxcnc/examples/sample-configs/sim/remap (support files) and /usr/share/linuxcnc/ncfiles/remap-subroutines for the ngc files.
Looking in racktoolchange.hal, it calls three HAL files, only one of which you need to duplicate / include in your HAL.
The [PYTHON] PATH_PREPEND and PATH_APPEND in the INI file will need to be modified to point to your actual routines.
I think it is mainly a case of moving all these files into your own config directory, and making all the references to them in the INI file point to the right places.
Sorry, I thought it was a lot tidier than this.