Estop, external and internal with physical relay

More
1 year 11 months ago - 1 year 11 months ago #314024 by Mattias
Hi guys,

I have been trying for a couple of days to get the e stop to work on my diy cnc router.
I have an safety circuit which connects 24v supply to a relay(which switches on motor powers).  Output 00 of mesa card 7i95t and 4 physical estop NC are wired in series to this safety circuit.
In parallel i have wired this circuit to mesa input 01.

Here is my hal io code.
Code:
# E-Stop Chain loadrt estop_latch count=2 addf estop-latch.0 servo-thread addf estop-latch.1 servo-thread net estop-reset iocontrol.0.user-request-enable => estop-latch.0.reset => estop-latch.1.reset net estop-loopin iocontrol.0.user-enable-out => estop-latch.0.ok-in net latch0-faultout estop-latch.0.fault-out net latch1-okin estop-latch.1.ok-in <= estop-latch.0.ok-out => hm2_7i95.0.ssr.00.out-00 net latch1-faultin estop-latch.1.fault-in <= hm2_7i95.0.inmux.00.input-01-not net latch1-out estop-latch.1.ok-out => iocontrol.0.emc-enable-in

I have many more attempts but this one came the closest. It triggers the relay for a second but does not 'stick'.
I want to reset with gui request enable en trip the circuit with either estop external button or software internal button on gui.
Can anybody please point me in the right direction, i have tried so many things and i get maybe more confused by the day
 
Last edit: 1 year 11 months ago by Mattias.

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

More
1 year 11 months ago - 1 year 11 months ago #314030 by PCW
if estop-latch.N.ok-out goes false, one of these must have changed:

estop-latch.N.ok-in  goes false
estop-latch.N.fault-in goes true

So I would watch these in halshow or halscope to see whats happening.

I also don't understand why you have two estop latches. It seems that one
should be sufficient (adding some logic if you need to add fault inputs or OK inputs)



 
Last edit: 1 year 11 months ago by PCW.
The following user(s) said Thank You: Mattias

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

More
1 year 11 months ago #314031 by Unlogic
I documented my e-stop setup using an external safety relay in the post linked below:

forum.linuxcnc.org/12-milling/50559-opti...rsion?start=0#284533

Maybe it will help you get your setup up and running.
The following user(s) said Thank You: Mattias

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

More
1 year 11 months ago #314052 by Mattias

I documented my e-stop setup using an external safety relay in the post linked below:

forum.linuxcnc.org/12-milling/50559-opti...rsion?start=0#284533

Maybe it will help you get your setup up and running.

 
Hi, thank you for your reply. I have read your documents on your build, very impressive, thanks for the detailed sharing and documenting.
I saw you used the oneshot function, i have tried implementing it like you did but no succes. I will try again once i got the time.

Thanks, cheers

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

More
1 year 11 months ago #314053 by Mattias

if estop-latch.N.ok-out goes false, one of these must have changed:

estop-latch.N.ok-in  goes false
estop-latch.N.fault-in goes true

So I would watch these in halshow or halscope to see whats happening.

I also don't understand why you have two estop latches. It seems that one
should be sufficient (adding some logic if you need to add fault inputs or OK inputs)

 
Hi, thank you for your quick reply. I have been looking at these halshow/scope bits but could not get it to click.

I have tried with two latches, with the idea that one will be for external estop (input 00) and the other for software internal estop (user enable out).
I also tried with one, linking the ok-in for user-enable out and fault-in to input00 external estop. No succes.

I will keep trying, thanks.

If you have any more sugestions i would be happy to hear them.

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

More
1 year 11 months ago #314056 by Mattias

Should we delete the two duplicate replies above without the quoted text?
Yes please, i tried it myself but i guess that is not possible. Thanks!

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

Time to create page: 0.307 seconds
Powered by Kunena Forum