Advanced Search

Search Results (Searched for: estop_latch)

  • rodw
  • rodw's Avatar
03 Oct 2025 10:43
Replied by rodw on topic External E-Stop

External E-Stop

Category: HAL Examples

my recommendation is to get it working in axis and then convert to gmocappy cos it does some funny things. If your config breaks on conversion, raise it with  gmocappy.

This is how I did it with a safety relay and an external latch button attached to the relay that
sends a signal to pin lcec.0.3.in-01 when the relay is enabled
this is inverted and sent to  the drives estop input on all drives.
The estop button is attached to the safety relay

github.com/rodw-au/vmnmillqt/blob/main/VMNmillQT.hal#L146

In this case no estop-latch is used,
  • MacKaye
  • MacKaye
29 Sep 2025 19:58
Replied by MacKaye on topic External E-Stop

External E-Stop

Category: HAL Examples

Thank you but i have seemingly stumbled upon an issue with estop i cannot resolve in any way. Even without any further hal functionality, just ini, configuring a basic gmoccapy and a base hal doing nothing but estop logic i can´t reset estop.
# base.hal – Minimalstart für Weiler XZ (V10)

# --- components ---
loadrt [KINS]KINEMATICS
loadrt [EMCMOT]EMCMOT
loadrt hostmot2
loadrt hm2_pci config="num_encoders=6 num_pwmgens=0 num_stepgens=0 sserial_port_0=000XXXXX"
loadrt estop_latch count=1

# --- Motion in den Servo-Thread einhängen ---
addf motion-command-handler servo-thread
addf motion-controller      servo-thread
addf hm2_5i25.0.read        servo-thread
addf estop-latch.0          servo-thread

# --- Loopback pro Joint, damit Motion ohne Feedback auskommt ---
net joint-0-pos-loop joint.0.motor-pos-cmd => joint.0.motor-pos-fb
net joint-1-pos-loop joint.1.motor-pos-cmd => joint.1.motor-pos-fb

# Enable-Leitungen/Faults – aktuell ohne Verdrahtung (werden später ergänzt)

addf hm2_5i25.0.write servo-thread

# --- ESTOP CHAIN (single latch) ---
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 latch-reset   => estop-latch.0.reset
net latch-out iocontrol.0.emc-enable-in <= estop-latch.0.ok-out
net estop-out     estop-latch.0.fault-out

# External E-Stop input (single source)
# For testing: fix the external signal to TRUE (fault active)
net external-estop => estop-latch.0.fault-in
sets external-estop TRUE

# --- ESTOP CHAIN ENDS ---


# doormagnet and relay for 24V supply
setp hm2_5i25.0.7i84.0.2.output-02 TRUE
setp hm2_5i25.0.7i84.0.2.output-03 TRUE

Current version i am trying. I can set external estop via halcmd to either states and try to reset estop with F1 GUI estop
I have built pretty elaborate estop logics with debouncing of external estop time delays and everything, but can´t get emc-task 3 (OFF but no estop) to show.

 
  • tommylight
  • tommylight's Avatar
14 Aug 2025 13:11
Replied by tommylight on topic multiple estops on separate pins

multiple estops on separate pins

Category: General LinuxCNC Questions

Rod, i did not read your post past "estop-latch is the right way to go", and you know the reason why.
Sorry, this time i should have continued.
Thank you.
  • rodw
  • rodw's Avatar
14 Aug 2025 11:50
Replied by rodw on topic multiple estops on separate pins

multiple estops on separate pins

Category: General LinuxCNC Questions

estop-latch is the right way to go  with these but a better way is to use joint.N.amp-fault-in IN BIT   Should be driven TRUE if an external fault is detected with the amplifier for this joint.
ref: linuxcnc.org/docs/stable/html/man/man9/motion.9.html
This will halt motion.
Your drives may also have a estop input which disables the drive on an estop.
  • JT
  • JT's Avatar
14 Aug 2025 11:40
Replied by JT on topic multiple estops on separate pins

multiple estops on separate pins

Category: General LinuxCNC Questions

There's a couple of ways, you could use the Mesa Configuration Tool or you can add the estop_latch component yourself.

JT
  • deedee
  • deedee
18 Jun 2025 06:41
Replied by deedee on topic LinuxCNC and Beckhoff AX5000 servo drives

LinuxCNC and Beckhoff AX5000 servo drives

Category: EtherCAT

Hi,

i've got the AX5106 and A5203 up and running. db1981 helped al lot regarding the homing and pos_mode issues.
The project itself is still work in progress, but the main features are working. See attached files. These are the relevant snippets from *.hal:
#*******************
# NOT AUS
#*******************
 
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-estp estop-latch.0.fault-in <= lcec.0.1_EL1018.din-2-not
#*******************
# AXIS Z
#*******************
 
# Skalierung 10mm Weg entspricht 1 Motorumdrehung; Minus da Z-!
setp lcec.0.16_AX5106.srv-scale -0.1
net Zaxis_enable joint.2.amp-enable-out => lcec.0.16_AX5106.srv-enable
net Zaxis_fb lcec.0.16_AX5106.enc-pos-abs => joint.2.motor-pos-fb
net Zaxis_cmd joint.2.motor-pos-cmd => lcec.0.16_AX5106.srv-pos-cmd
net Zaxis_torque <= lcec.0.16_AX5106.srv-torque-fb-pct
net Zaxis_home_sw lcec.0.16_AX5106.srv-dig-in-2-not => joint.2.home-sw-in
net Zaxis_index_enable lcec.0.16_AX5106.enc-index-ena => joint.2.index-enable



 
  • deedee
  • deedee
18 Jun 2025 06:05 - 18 Jun 2025 06:15
Replied by deedee on topic Einbindung AX5000 und EL3104

Einbindung AX5000 und EL3104

Category: Deutsch

Hier die relevaten Teile aus dem *.hal file.  An der Z-Achse ist ein Homeswitch, über den die Achse referenziert wird. An der Achse ist keine direkte Wegmessung, das läuft dann über den Motorencoder
#*******************
# NOT AUS
#*******************
 
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-estp estop-latch.0.fault-in <= lcec.0.1_EL1018.din-2-not
#*******************
# AXIS Z
#*******************
 
# Skalierung 10mm Weg entspricht 1 Motorumdrehung; Minus da Z-!
setp lcec.0.16_AX5106.srv-scale -0.1
net Zaxis_enable joint.2.amp-enable-out => lcec.0.16_AX5106.srv-enable
net Zaxis_fb lcec.0.16_AX5106.enc-pos-abs => joint.2.motor-pos-fb
net Zaxis_cmd joint.2.motor-pos-cmd => lcec.0.16_AX5106.srv-pos-cmd
net Zaxis_torque <= lcec.0.16_AX5106.srv-torque-fb-pct
net Zaxis_home_sw lcec.0.16_AX5106.srv-dig-in-2-not => joint.2.home-sw-in
net Zaxis_index_enable lcec.0.16_AX5106.enc-index-ena => joint.2.index-enable
Displaying 16 - 22 out of 22 results.
Time to create page: 6.297 seconds
Powered by Kunena Forum