On Thursday 11 February 2021 07:28:51 andy pugh wrote: > On Thu, 11 Feb 2021 at 04:39, Gene Heskett <[email protected]> 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.
I can't since homeing A is first in the homing sequence on the 6040. And last on the GO704. I don't know if I could remove it from the auto home and unplug it. I do have that loop wired to detect its missing on the c6040 but have not figured out how to disable its driver if its missing. Yet. Thats probably solvable given the spare IO I have on both machines. > There is scope for HAL logic the HAL Tcl, but I don't know of any way > to use logic in the INI. 'Twould be easy with the addition of an IF/then/else/endif to the INI file > 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. Thats been my general idea, but that means maintaining 2 separate ini and hal files, and thats a long term maintenace nightmare I'd druther not have to deal with. Humm, how about growing a case sensitive launcher? With 2 "last" remember buffers. So linuxcnc -l launches one version, and linuxcnc -L launches the other? That could be done in a bash script called LinuxCNC, I'll put it on my todo list. Unless somebody else beats me to it. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/gene> _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
