Altaros make a relatively inexpensive 8-station tool changer for CNC lathes.
www.altaros.cz/accessories/157-automatic...ead-for-8-tools.html
I don't have one to test with, but I have written a driver for it (as a user space Python HAL component).
I needed to add .py to the end of the filename to upload it. This should be removed to install the file
Code:
loadusr -W ./altaros_ath
# pre-selecting a tool isn't applicable on a lathe
net tool-prep-loop iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
# tool change loop is handled in the altaros_ath component
net tool-change iocontrol.0.tool-change => altaros_ath.tool-change
net tool-changed altaros_ath.tool-changed => iocontrol.0.tool-changed
net pocket iocontrol.0.tool-prep-pocket => altaros_ath.pocket-num
net oddeven sim_toolchanger.strobe => altaros_ath.strobe
net tool-step altaros_ath.actuate => sim_toolchanger.actuate
To install the component, place the "altaros_ath" file in the same directory as the INI file of the LinuxCNC config being run, and make it executable. (chmod +x altaros_ath)