Carousel with counts move x amount of pockets

More
1 year 1 month ago #334559 by GDTH
Hi all,Before I head to bed, I wanted to ask if anyone can quickly help me with my current frustration: getting this machine’s carousel working.I’ve got homing working, but there’s something odd—if the carousel is already homed and I try to home it again, nothing happens. I’ve managed to get M13 working, but I still need to sort out M11 and M12. I’ll attach my HAL and INI files here.I’m wondering if there are better ways to handle this, or if there are any good examples I could look at. My machine doesn’t have sensors for the pockets (which I would have preferred), so I’m working around that.Right now my biggest struggle is that I’m getting “unary” errors from my subroutine. When I try to trace the problem, the error messages aren’t very clear about what’s actually wrong. Is there a way to debug subroutines more effectively? At the moment the basic error messages don’t give me enough detail to figure it out.Any tips would be greatly appreciated

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

More
1 year 1 month ago #334691 by andypugh
Are you sure that EVAL[.....] is valid? Is that documented somewhere?

I don't recognise it as one of the documented unary functions, but can see examples of its use on the forums. I know that py and pyrun exist (I can see them in the source code, they may not be documented) but eval has me stumped.

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

More
1 year 1 month ago #335081 by GDTH
I’ve made some good progress with the carousel. It turned out that some parameters need to be set to 0 when using counts mode, and with that change I’ve got it almost working perfectly. Homing and jogging both run flawlessly through the shell M-codes.The only issue I’m stuck on now is when I try
Code:
M120
to rotate to a specific pocket. At that point it just hangs in state 8, because the
Code:
align-pin
variable stays at 0 and won’t let the sequence continue.What’s odd is that when jogging it also goes through state 8, but in that case it’s able to pass through just fine. So it feels like I’m missing something.Any tips or ideas on what might be causing this?

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

More
1 year 1 month ago #335134 by andypugh
What does M120 do?

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

More
1 year 1 month ago #335135 by GDTH
Basically what the original m10 from probe basic does. It tells the carousel comp the pocket number

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

More
1 year 1 month ago #335137 by andypugh
What happens if you just wire selected-pocket directly in HAL?

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

Time to create page: 0.397 seconds
Powered by Kunena Forum