Using halui to jog tool carousel

More
3 years 7 months ago #267504 by mloser
My 10 tool carousel is on the a axis.  It has a manual button to advance (rotate) it to the next tool
I couldn't get halui.axis.a to work (I did home the axis first), so I tried halui.joint.3 and that works
sometimes. I attached a screen print of what I set up.  Am I missing something else?  halui.joint.3.increment-plus
turns yellow when I push the button.  When it does work, it works perfect. 

Attachment not found

 

Attachment not found



Thank you,
Mike

Please Log in to join the conversation.

More
3 years 7 months ago #267514 by spumco
If you could post your INI and hal file(s) it'd help with troubleshooting.

Please Log in to join the conversation.

More
3 years 7 months ago #267527 by mloser
 

Attachment not found

 

Attachment not found

Please Log in to join the conversation.

More
3 years 7 months ago #267538 by spumco
[maybe you've already tried this and I misunderstood your original post.  If so, sorry... and we'll keep working on it]

Ok, I think the issue is that you have connected your manual input button (hm2_5i25.0.7i76.0.3.input-21) to the joint jogging function in halui, but you haven't connected the button/input to halui axis jogging.

Specifically, this section of the HAL file:
Code:
#MVL Carousel Manual Button setp halui.joint.3.increment 36.0 sets jog-speed 1440 net jog-carousel => halui.joint.3.select halui.joint.3.increment-plus <= hm2_5i25.0.7i76.0.3.input-21

Try connecting the input to the a-axis as well:
Code:
#MVL Carousel Manual Button setp halui.joint.3.increment 36.0 [color=#c0392b]setp halui.axis.a.increment 36.0[/color] sets jog-speed 1440 net jog-carousel => halui.joint.3.select halui.joint.3.increment-plus <= hm2_5i25.0.7i76.0.3.input-21 [color=#c0392b]net jog-carousel => halui.axis.a.select halui.axis.a.increment-plus[/color]

If that doesn't work reliably, then I suspect the problem may be that you are selecting the axis/joint with the same signal as you are commanding a jog. You may need a slight delay between axis/joint selection and the jog command - you did mention that 'joint jogging works sometimes'

If this is the case, then a time-delay component might be the ticket.  Something like this:
Code:
loadrt timedelay.0 addf timedelay.0  servo-thread ... setp timedelay.0.on-delay 0.1 setp timedelay.0.off-delay 0 net jog-carousel => timedelay.0.in net jog-carousel => halui.joint.3.select  => halui.axis.a.select[color=#c0392b]  [/color]<= hm2_5i25.0.7i76.0.3.input-21 net jog-move <= timedelay.0.out net jog-move => halui.joint.3.increment-plus  halui.axis.a.increment-plus

What this will hopefully do is add a slight delay between selecting the axis/joint and commanding the move.  If it works, play around with the on-delay value to the point where there isn't an annoying wait between mashing the button and seeing the carousel move.

Please Log in to join the conversation.

More
3 years 6 months ago #268106 by mloser
I linked the axis select to the joint select like you said and now it's working.
Thanks much!
Mike

Please Log in to join the conversation.

More
3 years 6 months ago #268109 by spumco
Thanks for reporting success - helps others in the future.

Did you need to use the time-delay function?

Please Log in to join the conversation.

Time to create page: 0.086 seconds
Powered by Kunena Forum