Yes and no. I already have my mill up and running under linuxcnc, so I know what I’m doing with stepconfig. My lathe is just X Z steppers on the table + toolchanger. No home/limit yet. It is easier to test on PC without any inputs(homing manually in linuxcnc). All I need to know is how to implement this tool change component.

Update:

I copied file toolchanger.comp to my linuxcnc/configs/Lathe folder

Then copied Header:

################################################## #######
# .ini file for axis - ATC set up as axis A angular
################################################## #######
[AXIS_3]
...

to the end of my Lathe.ini file

Then I copied:

################################################## ########
# example Hal linkages required:-
################################################## ########

setp stepgen.3.position-scale [AXIS_3]SCALE
...

AND

################################################## #########
# loading the toolchange component in .hal file
################################################## #########

loadrt toolchanger
addf toolchanger servo-thread
...

In to my Lathe.hal file

Then I run terinal in my configs directory to compile:


sudo halcompile --install toolchanger.comp

(sudo comp --install toolchanger.comp) don’t work!

Still stuck Here when try to run linuxcnc

/Lathe_Orac.hal:87: parameter or pin ‘stepgen.3.positio-scale’ not found