On estop, we turn on a red warning light and disable the stepper drives. (All stepper controller (dis)enable lines are tied to the one output.)
loadrt estop_latch count=3 addf estop-latch.0 servo-thread addf estop-latch.1 servo-thread addf estop-latch.2 servo-thread # --- ESTOP CHAIN STARTS --- net latch-reset iocontrol.0.user-request-enable net latch-ok-in iocontrol.0.user-enable-out net latch-ok-in => estop-latch.0.ok-in net latch0-out <= estop-latch.0.ok-out net latch0-out => estop-latch.1.ok-in net latch1-out <= estop-latch.1.ok-out net latch1-out => estop-latch.2.ok-in net latch-reset => estop-latch.0.reset net latch-reset => estop-latch.1.reset net latch-reset => estop-latch.2.reset net latch-out iocontrol.0.emc-enable-in <= estop-latch.2.ok-out net estop-out estop-latch.2.fault-out # --- EXTERNAL ESTOP SWITCH --- net external-estop <= hm2_7i76e.0.7i76.0.0.input-00 net external-estop => estop-latch.0.fault-in # --- PENDANT ESTOP SWITCH --- net pendant-estop <= hm2_7i76e.0.7i76.0.0.input-26-not net pendant-estop => estop-latch.1.fault-in # --- TORCH BREAKAWAY E-STOP --- net torch-breakaway <= hm2_7i76e.0.7i76.0.0.input-06 net torch-breakaway => estop-latch.2.fault-in # --- E-STOP STEPPER DRIVE DISABLE --- net estop-out hm2_7i76e.0.7i76.0.0.output-05 # --- E-STOP RED WARNING LIGHT --- net estop-out hm2_7i76e.0.7i76.0.0.output-00 # --- ESTOP CHAIN ENDS ---
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#
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.