External E-Stop

More
6 years 4 months ago #173001 by Project_Hopeless

LinfieldGarage wrote: I know this is an old thread but it helped me get my estop working.

Here is a working config from my system running Master branch 2.8 and a Mesa 7i96 board. My estop button is N/C and is a 24 volt input to GPIO 010 on the Mesa board. Just change the last line for your particular board and GPIO pin.

# ---estop signals---
# create a signal for the estop loopback
#config from BigJohn#
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_[HOSTMOT2](BOARD).0.gpio.010.in_not


Is there a simple way to have an on screen popup indicating the external E-Stop was pressed. Something like you get with the axis limits?

If I accidentally bump an external button it would be nice to know it was an external button and perhaps which one.

Please Log in to join the conversation.

More
6 years 4 months ago #173002 by tommylight

Please Log in to join the conversation.

More
6 years 4 months ago #173003 by Aciera
Replied by Aciera on topic External E-Stop
What GUI are you using. I do have a solution but only for gmoccapy.

Please Log in to join the conversation.

More
6 years 2 months ago #178278 by Project_Hopeless
Replied by Project_Hopeless on topic External E-Stop

tommylight wrote: linuxcnc.org/docs/html/man/man9/message.9.html

I did my best to to try and get a message to post, however I'm stuck. I'm nut understanding the syntax.

Here is my HAL for handling the external estop, this is working correctly.
Code:
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_[HOSTMOT2](BOARD).0.gpio.010.in_not
I'm trying to post the mesage like so.
Code:
# my message setup External E-Stop loadrt message names=xestop messages="External E-Stop" setp xestop estop-latch.0.fault-in <= hm2_[HOSTMOT2](BOARD).0.gpio.010.in_not # active low, N/C=open


I'm getting this error. With a Mesa 7i76e card how do I make the HAL connection?
Code:
Debug file information: Note: Using POSIX realtime ./borg.hal:190: setp requires 2 arguments, 4 given 2988

Please Log in to join the conversation.

More
6 years 2 months ago #178289 by tommylight
Replied by tommylight on topic External E-Stop

Project_Hopeless wrote: I'm trying to post the mesage like so.

Code:
# my message setup External E-Stop loadrt message names=xestop messages="External E-Stop" setp xestop estop-latch.0.fault-in <= hm2_[HOSTMOT2](BOARD).0.gpio.010.in_not # active low, N/C=open

should be
Code:
# my message setup External E-Stop loadrt message names=xestop messages="External E-Stop" net xestop estop-latch.0.fault-in <= hm2_[HOSTMOT2](BOARD).0.gpio.010.in_not # active low, N/C=open

Please Log in to join the conversation.

More
6 years 2 months ago #178296 by MaHa
Replied by MaHa on topic External E-Stop
Once i had a similar problem, modified and tested this in the sim. Even you got a reply already. This worked for me, and as i have spent time for this, i post it anyway.
Replace this line

Code:
net remote-estop estop-latch.0.fault-in <= hm2_[HOSTMOT2](BOARD).0.gpio.010.in_not
by

Code:
setp xestop.edge 0 net remote-estop estop-latch.0.fault-in <= hm2_[HOSTMOT2](BOARD).0.gpio.010.in_not xestop.trigger

Please Log in to join the conversation.

More
6 years 1 month ago #182044 by dennis.lewis5
Replied by dennis.lewis5 on topic External E-Stop
I cannot speak to the messaging you asked about but I am working on a system to tell me if the e-stop is the pc (as in startup) a local e-stop (one mounted on the machine) or a remote e-stop. The system simply operates a beacon and the flashing rate of the beacon indicates the trouble spot. It will force the pc into e-stop if local or remote.

If you have any interest please let me know.

Please Log in to join the conversation.

More
5 years 10 months ago #193518 by ikkuh
Replied by ikkuh on topic External E-Stop

dennis.lewis5 wrote: I cannot speak to the messaging you asked about but I am working on a system to tell me if the e-stop is the pc (as in startup) a local e-stop (one mounted on the machine) or a remote e-stop. The system simply operates a beacon and the flashing rate of the beacon indicates the trouble spot. It will force the pc into e-stop if local or remote.

If you have any interest please let me know.


Yes, please. Most people here learn better by examples then reading abstract manuals. So I am certainly interested in your system.

Please Log in to join the conversation.

More
5 years 9 months ago #193685 by dennis.lewis5
Replied by dennis.lewis5 on topic External E-Stop
Thanks for your interest. I have (hopefully) attached a pdf with a description and photo of the e-stop module. A copy of the schematic is included as well.

If you would like to build one I have boards available as well as the pic micro.

Regards, Dennis

And Happy New Year.

Attachment not found

Attachment not found

Please Log in to join the conversation.

More
5 years 9 months ago #193704 by rodw
Replied by rodw on topic External E-Stop
I had to say it. I don't think its necessary to use hardware to achieve what your board does. You could use the sigggen component to flash the lights. Here is an example which i now have running stack lights. The green light flashes and you could apply the same approach to the red light for estop.

Please Log in to join the conversation.

Time to create page: 0.149 seconds
Powered by Kunena Forum