Using halui to jog tool carousel
- mloser
- Offline
- Junior Member
Less
More
- Posts: 39
- Thank you received: 0
25 Mar 2023 21:52 #267504
by mloser
Using halui to jog tool carousel was created 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.
Thank you,
Mike
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.
Thank you,
Mike
Attachments:
Please Log in or Create an account to join the conversation.
- spumco
- Away
- Platinum Member
Less
More
- Posts: 1829
- Thank you received: 739
26 Mar 2023 00:51 #267514
by spumco
Replied by spumco on topic Using halui to jog tool carousel
If you could post your INI and hal file(s) it'd help with troubleshooting.
Please Log in or Create an account to join the conversation.
- mloser
- Offline
- Junior Member
Less
More
- Posts: 39
- Thank you received: 0
26 Mar 2023 13:58 #267527
by mloser
Replied by mloser on topic Using halui to jog tool carousel
Attachments:
Please Log in or Create an account to join the conversation.
- spumco
- Away
- Platinum Member
Less
More
- Posts: 1829
- Thank you received: 739
26 Mar 2023 16:02 #267538
by spumco
Replied by spumco on topic Using halui to jog tool carousel
[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:
Try connecting the input to the a-axis as well:
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:
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.
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:
#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:
#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:
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 or Create an account to join the conversation.
- mloser
- Offline
- Junior Member
Less
More
- Posts: 39
- Thank you received: 0
02 Apr 2023 20:01 #268106
by mloser
Replied by mloser on topic Using halui to jog tool carousel
I linked the axis select to the joint select like you said and now it's working.
Thanks much!
Mike
Thanks much!
Mike
Please Log in or Create an account to join the conversation.
- spumco
- Away
- Platinum Member
Less
More
- Posts: 1829
- Thank you received: 739
02 Apr 2023 20:21 #268109
by spumco
Replied by spumco on topic Using halui to jog tool carousel
Thanks for reporting success - helps others in the future.
Did you need to use the time-delay function?
Did you need to use the time-delay function?
Please Log in or Create an account to join the conversation.
Time to create page: 0.079 seconds