Need to Invert Pin for Latching Estop
- MakingStuff
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 121
- Thank you received: 14
19 Oct 2019 21:10 #148366
by MakingStuff
Need to Invert Pin for Latching Estop was created by MakingStuff
I got this from another post on the forum, added the estop pin from my 7i96 board and it works if I use a normally open switch.
loadrt estop_latch
addf estop-latch.0 servo-thread
net estop-loopout iocontrol.0.emc-enable-in <= estop-latch.0.ok-out
net estop-loopin iocontrol.0.user-enable-out => estop-latch.0.ok-in
net estop-reset iocontrol.0.user-request-enable => estop-latch.0.reset
net remote-estop estop-latch.0.fault-in <= hm2_7i96.0.gpio.006.in
However, my estop switch is normally closed. I tried adding the -not parameter to the end of the pin like this:
hm2_7i96.0.gpio.006.in-not
But when I try to start LinuxCNC I get an error that says the pin does not exist.
What is the correct way to invert the pin so I can use a normally closed switch?
loadrt estop_latch
addf estop-latch.0 servo-thread
net estop-loopout iocontrol.0.emc-enable-in <= estop-latch.0.ok-out
net estop-loopin iocontrol.0.user-enable-out => estop-latch.0.ok-in
net estop-reset iocontrol.0.user-request-enable => estop-latch.0.reset
net remote-estop estop-latch.0.fault-in <= hm2_7i96.0.gpio.006.in
However, my estop switch is normally closed. I tried adding the -not parameter to the end of the pin like this:
hm2_7i96.0.gpio.006.in-not
But when I try to start LinuxCNC I get an error that says the pin does not exist.
What is the correct way to invert the pin so I can use a normally closed switch?
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19214
- Thank you received: 6438
19 Oct 2019 23:01 #148374
by tommylight
Replied by tommylight on topic Need to Invert Pin for Latching Estop
Try this
hm2_7i96.0.gpio.006.in_not
hm2_7i96.0.gpio.006.in_not
The following user(s) said Thank You: MakingStuff
Please Log in or Create an account to join the conversation.
- MakingStuff
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 121
- Thank you received: 14
19 Oct 2019 23:53 #148377
by MakingStuff
That worked. Thanks!
Replied by MakingStuff on topic Need to Invert Pin for Latching Estop
Try this
hm2_7i96.0.gpio.006.in_not
That worked. Thanks!
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
Time to create page: 0.061 seconds