Carousel with counts move x amount of pockets

More
1 year 1 month ago #335514 by andypugh
"align-pin" isn't a physical pin (or, rather, it _can_ be a physical pin, but which one it maps to is dependent on mode)

In the step counts case:

github.com/LinuxCNC/linuxcnc/blob/master...s/carousel.comp#L292

And I am somewhat concerned that I have made an error there, as I don't think that the % operator will return a negative value.
I can see what my code was trying to do, but I suspect it doesn't do it.

Do you know what your counts (and scale) were at the point that the system got stuck?

Please Log in to join the conversation.

More
1 year 1 month ago #335554 by GDTH
setp carousel1.0.scale 2000
setp carousel1.0.width 200
setp carousel1.0.home-offset 800
setp carousel1.0.debounce 3

Please Log in to join the conversation.

More
1 year 4 weeks ago #335711 by andypugh
Sorry, but to test I would need to know the actual encoder/step counts that were being fed into the component at the point of failure.

But, I am sure that the code linked above is very wrong, and is likely to be the problem.

Can you:
1) Make sure that you have the linuxcnc-uspace-dev package installed.
2) Download the attached carousel.comp file
3) From the folder where you saved the file
Code:
sudo halcompile --install carousel.comp

And see if the problem is fixed?

Please Log in to join the conversation.

Time to create page: 0.037 seconds
Powered by Kunena Forum