I would like to know how to connect GPIO to LinuxCNC’s E-Stop chain.

More
11 months 1 week ago - 11 months 1 week ago #338732 by EdWorks
This is very helpful but I don't understand. It appears you are using two pins. I have my Emergency Stop switch attached to GPIO25. It is designated as INPUT. I get errors when I try to add the second line [net estop-ext => [HMOT](CARD0).7i84.1.1.output-08} with references to -output.  I don't see a need for output in an eStop unless it is to communicate with software. With what I understand, I did this:

I created an input on GPIO25 -
loadrt hal_gpio inputs=GPIO7,GPIO8,GPIO25,GPIO12,GPIO13
I created an input:
net estop-ext <= hal_gpio.GPIO25-in

Then I used one of your suggestions:
net estop-ext => iocontrol.0.emc-enable-in
And so now, when I press my eStop (which at present is non-latching) the program momentarily stops. If I release it, it restarts (bad).
I think I am missing the second part- not allowing the machine to come on after the button was pressed.
Last edit: 11 months 1 week ago by EdWorks. Reason: Another day.....

Please Log in or Create an account to join the conversation.

Time to create page: 0.048 seconds
Powered by Kunena Forum