Carousel with counts move x amount of pockets

More
1 year 1 month ago #335148 by GDTH
mmh, i dont understand. how would you do this? I thought you had to do it through a subroutine or m code. 

Btw, this is how the m120 looks like.

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

More
1 year 1 month ago #335368 by andypugh
At its simplest
Code:
net requested-pocket iocontrol.0.tool-prep-pocket => carousel.0.pocket-number

Then whenever the carousel.0.enable goes true, it will drive to that pocket.

All the subroutines etc are about the other things that have to happen before carousel motion, such as tool unload, spindle lift etc.

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

More
1 year 1 month ago #335488 by GDTH
okay, i will sure to be using in that in the end. however when i am using M120 or just put the pocket number manualy it just gets stuck in state 8 where it is waiting for align_pin to be something else then 0. As nothing moves , this will never happen. also i constantly getting the error "the toolchanger has hailed its alignment check". I have used the carousel comp many times. howeve this is the first time with only a stepgen. with that in mind and that i barely find anyone use it the same i am question if this actualy works with stepgen (Counts).

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

More
1 year 1 month ago #335499 by GDTH
i have copied the carousel component and removed the align_pin if statement from state 8. I think this is ment for dc motors. So far it seems to work fine.

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

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 or Create an account 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 or Create an account to join the conversation.

Time to create page: 0.333 seconds
Powered by Kunena Forum