How to build ATC Carousel in linuxcnc ?

More
6 years 4 months ago #172942 by andypugh

rogerxue wrote: For example, I see the signal car-enable gets created, but nowhere does it get used,


Where are you looking?
Code:
net car-enable motion.digital-out-00 carousel.0.enable

That is linking the signal to the carousel enable, and to a G-code digital output.

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

More
6 years 4 months ago #172945 by rogerxue
my bad, I was looking at a older verison.

So if I decide to use stepgen to drive stepper, then
carousel.N.fwd-dc should be net to stepgen.<chan>.velocity-cmd?

again thanks for the help

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

More
6 years 4 months ago #172967 by andypugh

rogerxue wrote: my bad, I was looking at a older verison.


Yes, even if you are using LinuxCNC 2.7 you probably want to install the 2.8 version of "carousel".

So if I decide to use stepgen to drive stepper, then
carousel.N.fwd-dc should be net to stepgen.<chan>.velocity-cmd?


Close, except that fwd-dc is an input that tells the component how fast to move in fwd. the actual output to the stepgen is the pin carousel.0.motor-vel

You would need to setp the dc pins to suitable fixed speeds.
Code:
net motor-speed carousel.0.motor-vel stepgen.11.velocity-cmd setp carousel.0.fwd-dc 100 setp carousel.0.rev-dc 100 setp carousel.0.hold-dc 0

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

Time to create page: 0.169 seconds
Powered by Kunena Forum