Preparation for the self-construction of a carousel changer

More
29 Nov 2022 13:17 #257970 by andypugh
Do you have an "addf carousel.0 servo-thread" somwhere?

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

More
29 Nov 2022 13:27 - 30 Nov 2022 05:34 #257971 by mgm
perfect !!! now it becomes activ

I had it in the main hal but for whatever reason off

another problem:
how do i link the enable pin which is connected to motion.digital-out-10 to my pin to start the motor?
so with hm2_7i76e.0.7i84.0.1.output-13?
Last edit: 30 Nov 2022 05:34 by mgm.

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

More
29 Nov 2022 13:38 #257973 by tommylight
net start-motor motion.digital-out-10 hm2_7i76e.0.7i84.0.1.output-13

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

More
29 Nov 2022 13:45 #257976 by mgm
but how can i set the enable pin of the carousel to true at the same time?

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

More
29 Nov 2022 14:09 - 29 Nov 2022 14:09 #257981 by mgm
Ok I have figured it out:
You can call signal takings multiple times!
so it goes the following:

net car-enable        motion.digital-out-10          hm2_7i76e.0.7i84.0.1.output-13
net car-enable       carousel.0.enable
Last edit: 29 Nov 2022 14:09 by mgm.

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

More
02 Dec 2022 16:30 #258330 by mgm
small update:

The changer works very well with the carousel.comp.

With the test program I could test everything.
Since I had thought up a somewhat strange coding, I had to trick the carousel.comp a bit, because with my coding there are no places 4 and 6, but 14 and 15. But I have a total of only 12 places and so I could not use the 14 and 15. But if you increase the number of seats from 12 to 15 you can also use 14 and 15. Which numbers the seats have at the end is with no matter.  

What I haven't figured out yet is that when my test program is finished the carousel.0.ready will be high. If I want to start the test program again with another pocket number, the carousel does not move, because ready is still high. Only after the second start of the test program it starts again.

When or from what does ready go low?

Attached the current hal and the test program.

File Attachment:

File Name: carousel_01.hal.txt
File Size:2 KB
 

File Attachment:

File Name: test_carousel.ngc.txt
File Size:0 KB


 
Attachments:

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

More
02 Dec 2022 16:45 #258334 by andypugh
Ready should go low when enable goes from low to high.

The comp sits in state 9, doing nothing at all, until enable goes false:
github.com/LinuxCNC/linuxcnc/blob/master...s/carousel.comp#L428

So your change routine really should set enable to false before returning control to the system.

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

More
02 Dec 2022 17:19 #258338 by andypugh

So your change routine really should set enable to false before returning control to the system.

OK, it does do that. 
M65 P10 ; stop carousel

How are you using carousel.0.ready in your test programme?

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

More
02 Dec 2022 19:40 #258352 by mgm
At the moment it says so in the hal, but I think that's nonsense when I think about it.
I would not know now but with what I should connect enable .....

net car-ready carousel.0.ready motion.digital-in-04

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

More
05 Dec 2022 00:03 #258539 by andypugh

At the moment it says so in the hal, but I think that's nonsense when I think about it.
I would not know now but with what I should connect enable .....

net car-ready carousel.0.ready motion.digital-in-04

I don't think that makes sense, you are connecting two "output" (writer) HAL pins. 

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

Time to create page: 0.096 seconds
Powered by Kunena Forum