LinuxCNC EMC2 HAL Files: 3 axis mill, 2 axis lathe with encoders, jog wheel, axis compensation, camera view

Due to frequent requests – here are the configuration files for my LinuxCNC (EMC2) controlled mill and lathe.

The mill is a 3-axis machine, with stepper motors and jog wheel (see earlier post).

emc2 linuxcnc fkm 3 axis mill hal with jog 150101

The lathe has 2 axis, stepper motors, and digital readouts. No feedback on the readouts, but they are great for highest precision work. Configuration files also include the setup for spindel-synchronized movement and spindle speed readout. I have run spindle-synchronized toolpaths for cutting regular and tapered threads with no issues at all, up to a few 100 RPM. The GUI (axis) is also configured for use with a little camera that is very handy to set the coordinates of the tools.

emc2 linuxcnc jet lathe with optical scale and spindel index 150101

Any questions, please ask. These files are meant as a source code collection for you to code your own HAL files, etc.; if you need help with a particular configuration, feel free to contact me.

Please consider that some fragments of the code might be copyrighted by others – however, I have modified it so many times that it is virtually impossible to trace back.
My contribution to these HAL files: You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission. The work may not be free of known copyright restrictions in all jurisdictions. Persons may have other rights in or related to the work, such as patent or trademark rights, and others may have rights in how the work is used. I make no warranties about the work, and disclaim liability for all uses of the work, to the fullest extent permitted by applicable law.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.