- Posts: 117
- Thank you received: 0
Disabling servo amps.
From conversations with PCW, I believe I have to use a relay to invert the enable logic but I'm not entirely sure how to do that. I have this 24V reed relay:
Attachment not found
If I'm understanding the other posts I've read, I need to send 24V to the ena0+, ena0- to trigger the relay, and connect the inhibit+ to the ground through the NC contacts of the relay?
I have these two lines in hal:
net x-enable axis.0.amp-enable-out
net x-enable hm2_5i25.0.7i77.0.1.analogena
Am I in the right ballpark? I suck at electronics so thanks in advance for using small words and/or colorful pictures. :blush:
Please Log in to join the conversation.
contact, you will need a normally closed contact
relay for this purpose
Please Log in to join the conversation.
I've replaced it with NC relay which I've wired up. Powering the coil enables the amps as expected.
Now I've got 24V from field power to ENA0+. Connecting the coil to ENA0- / GND does nothing.
Connecting to ENA0- and GND on the field power flips the relay but toggling hm2_5125.0.7i77.0.1.analogena doesn't change the state.
Where am I messed up in my wiring and config?
Please Log in to join the conversation.
The relay needs to draw 50 mA or less and the relay coil must have a flyback diode
Wiring should be:
+24V --> Relay coil 1 and flyback diode cathode --> relay coil 2 and flyback diode anode --> ENA+ --> ENA-
24V GND
Please Log in to join the conversation.
PCW wrote: You need to be a bit careful here or you can damage the ENA outputs
The relay needs to draw 50 mA or less and the relay coil must have a flyback diode
Wiring should be:
+24V --> Relay coil 1 and flyback diode cathode --> relay coil 2 and flyback diode anode --> ENA+ --> ENA-
24V GND
O.k. The diode makes sense to me but I don't understand the connection from ENA+ to ENA-.
Please Log in to join the conversation.
As a side note, the reason I would wire it this way instead of connecting ENA+ to +24V and ENA- to the relay
is that if ENA+ is connected to +24V, an accidental short of ENA- to ground will destroy the optocoupler
Please Log in to join the conversation.
- kornphlake79
- Offline
- Senior Member
-
- Posts: 51
- Thank you received: 0
Attachment not found
I know they cost a few dollars more than mechanical relays, but if it were me I'd use a solid state relay in this application because they draw a fraction of the current a mechanical relay will and at TTL levels you're pretty limited by the amount of current available already, plus you won't need a flyback diode.
Please Log in to join the conversation.
- kornphlake79
- Offline
- Senior Member
-
- Posts: 51
- Thank you received: 0
Attachment not found
Please Log in to join the conversation.
kornphlake79 wrote: nevertheless I would still prefer a solid state relay.
Normally-closed Solid-state relays exist, but are uncommon.
Please Log in to join the conversation.
What would be the symptoms of the former and what else can I do to verify hal config?
Please Log in to join the conversation.
