7i76e use outputs to toggle motor enable

More
4 years 9 months ago #231888 by pCNC
As easy as promised :D

I've set up output 008 on I/O Connector 1 as "Machine Is Enabled" in pncConf, and connected pin 4 of TB3 (DIR4-) to all the motor enables, so they are toggled all together.

The alarm signals are now linked to joint.N.amp-fault-in, using the attached custom_postgui.hal.

Now when one of the motors goes into error, Linuxcnc shows an joint amplifier error and takes away the enable for all joints. When I toggle the enable, everything can be jogged/homed again, without power cycling the drives.

The error is reset almost immediately (at least way before I can go look for a red light) instead of when I toggle the enable again, so either something is slow (my very old laptop for instance) or the driver responds a little differently than I was expecting.
It was confusing for a moment, but it is workable and I can continue working from here :)

Thanks for the tips!

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

More
4 years 9 months ago #231889 by pCNC
Oops, forgot to insert the attachment...

File Attachment:

File Name: custom_pos...1-15.hal
File Size:560 B
The following user(s) said Thank You: tommylight

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

More
4 years 9 months ago - 4 years 9 months ago #232633 by strahlensauger
I own JMC ihvs57 servos, in the documentation I find:
"Enabling signal: This input signal is used to enable or prohibit; In addition, it can be used to clear the drive alarm. When ENA + is connected to +5 V, ENA-is connected to low power, the drive will cut off the current of each phase of the motor so that the motor is in a free state, where the pulse is not responded and the alarm can be cleared; When this function is not required, the energy signal end is suspended."
So the ENA+ only needs a short pulse to clear the drive, I can't connect the output signal from the 7i76e directly to the ENA+, because it is always on, apart from that the servo accepts only 5 Volts.
In the discussion above the signal is always high on the enable-amp  output as far as I understood, any ideas how to connect the ENA+ input in my case?
I could just put a physical push-button inbetween a 5 Volt line, but I would prefer clearing the servos directly from Linuxcnc, something like a button in pyvcp. (Does a push button exist)?
Last edit: 4 years 9 months ago by strahlensauger.

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

More
4 years 9 months ago #232642 by chris@cnc
I recommend to use the ENA signal as high bit to enable the drive after E-stop or alarm. if you have any alarm on this easy drive it’s have a reason and could not done by reset. usually restarts machine necessary. 
The following user(s) said Thank You: strahlensauger

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

More
4 years 9 months ago #232674 by rodw

I own JMC ihvs57 servos, in the documentation I find:
"Enabling signal: This input signal is used to enable or prohibit; In addition, it can be used to clear the drive alarm. When ENA + is connected to +5 V, ENA-is connected to low power, the drive will cut off the current of each phase of the motor so that the motor is in a free state, where the pulse is not responded and the alarm can be cleared; When this function is not required, the energy signal end is suspended."
So the ENA+ only needs a short pulse to clear the drive, I can't connect the output signal from the 7i76e directly to the ENA+, because it is always on, apart from that the servo accepts only 5 Volts.
In the discussion above the signal is always high on the enable-amp  output as far as I understood, any ideas how to connect the ENA+ input in my case?
I could just put a physical push-button inbetween a 5 Volt line, but I would prefer clearing the servos directly from Linuxcnc, something like a button in pyvcp. (Does a push button exist)?
iocontrol.0.user-request-enable sends a pulse when the estop is cleared. You would need an optocoupler or fast signalling relay to switch 5v to the drive. Maybe it could be made to work. 
The following user(s) said Thank You: strahlensauger

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

More
4 years 9 months ago #232717 by strahlensauger
That sounds promising, I'll check that out.
Thank you.
The following user(s) said Thank You: rodw

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

Time to create page: 0.226 seconds
Powered by Kunena Forum