Clearpath HLFB amp.joint.delay

More
10 months 2 weeks ago #340067 by Fastfred
The following user(s) said Thank You: spumco

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

More
10 months 2 weeks ago #340072 by tommylight

There is no perceptible rotor cogging when you spin them by hand. 
Nice to know, thank you for taking the time to explain that.

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

More
10 months 2 weeks ago - 10 months 2 weeks ago #340074 by spumco
Good, thanks for verifying the servos are programmed appropriately.

Right now, your HLFB pins are HIGH (conducting) when the servos are enabled and OK.  Since you have the inputs connected to your amp-fault-in pins like:
Code:
# HLFB is true when enabled *and* following net joint.z.amp-fault-in hm2_7i96s.0.inm.00.input-07 net joint.y2.amp-fault-in hm2_7i96s.0.inm.00.input-08 net joint.y.amp-fault-in hm2_7i96s.0.inm.00.input-09 net joint.x.amp-fault-in hm2_7i96s.0.inm.00.input-10

LCNC thinks there is a fault when the servos are saying everything is OK.  Here's the LCNC manual section (motion):

joint.N.amp-fault-in IN BIT should be driven TRUE if an external fault is detected with the amplifier for this joint.

Try changing the HLFB input pins to 'not' like so:
Code:
net joint.z.amp-fault-in  hm2_7i96s.0.inm.00.input-07-not net joint.y2.amp-fault-in  hm2_7i96s.0.inm.00.input-08-not net joint.y.amp-fault-in  hm2_7i96s.0.inm.00.input-09-not net joint.x.amp-fault-in  hm2_7i96s.0.inm.00.input-10-not

At that point, the joint.N.amp-fault-in pins should be HIGH when the servos are not enabled, and go LOW when they are enabled and OK.

Once you're at that point, you can test by pulling the encoder cable off the motors and see if it causes the amp-fault-in to go high (hopefully).

If you still need a delay we can work on that next.
Last edit: 10 months 2 weeks ago by spumco.

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

More
10 months 2 weeks ago #340077 by Fastfred
OK I corrected the .hal file and pins are reversed like you said but unfortunately still same issue no pop up in GUI no indication something wrong. I can move the axis linuxcnc thinks everything is OK.

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

More
10 months 2 weeks ago #340081 by spumco
I think the problem is that the joints are supposed to have numbers, not letters.

Like 

joint.0.amp-fault-in

I just realized you haven't created a signal name, just linked two pins.  Because your joint.(lettter).amp-fault-in pin doesn't actually exist, LCNC is creating a SIGNAL named joint.(letter).amp-fault-in.

That's why you aren't getting an error at startup.

Try this

net x-fault joint.0.amp-fault-in hm2_7i96s.0.inm.00.input-1-not

and so on for the others.
 

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

More
10 months 2 weeks ago #340098 by Fastfred
I tried changing the naming, but had to use different name because was already assigned to pin.I get joint fault as soon as i try to enable I did try changing delay thinking that was it but no luck.  Unless I still having a naming issue with the pins unfortunately I still don't understand this part yet.

File Attachment:

File Name: custom_2025-12-14.hal
File Size:1.2 KB

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

Time to create page: 0.403 seconds
Powered by Kunena Forum