On Thu, 11 Feb 2021 at 04:39, Gene Heskett <ghesk...@shentel.net> wrote:
> I've yet to come up > with a scheme to detect that it is plugged in, and if not, disable > linuxcnc's ability to see an error because its not there I have a GPIO pin looped up to the connector socket and back. A jumper in the plug completes the circuit. However, I only actually use this to not enable the servo drive. I don't even know if it is possible to load a 3-axis config if the rotary is unplugged. There is scope for HAL logic the HAL Tcl, but I don't know of any way to use logic in the INI. I suppose a launcher script could do it, but it would have to load the drivers, a realtime thread, poll the GPIO, store the result, shut down realtime and then launch the required config. -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1912 _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users