- Configuring LinuxCNC
- Advanced Configuration
- Preparation for the self-construction of a carousel changer
Preparation for the self-construction of a carousel changer
29 Nov 2022 13:17 #257970
by andypugh
Replied by andypugh on topic Preparation for the self-construction of a carousel changer
Do you have an "addf carousel.0 servo-thread" somwhere?
Please Log in or Create an account to join the conversation.
29 Nov 2022 13:27 - 30 Nov 2022 05:34 #257971
by mgm
Replied by mgm on topic Preparation for the self-construction of a carousel changer
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?
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.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19196
- Thank you received: 6434
29 Nov 2022 13:38 #257973
by tommylight
Replied by tommylight on topic Preparation for the self-construction of a carousel changer
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.
29 Nov 2022 13:45 #257976
by mgm
Replied by mgm on topic Preparation for the self-construction of a carousel changer
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.
29 Nov 2022 14:09 - 29 Nov 2022 14:09 #257981
by mgm
Replied by mgm on topic Preparation for the self-construction of a carousel changer
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
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.
02 Dec 2022 16:30 #258330
by mgm
Replied by mgm on topic Preparation for the self-construction of a carousel changer
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.
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.
Attachments:
Please Log in or Create an account to join the conversation.
02 Dec 2022 16:45 #258334
by andypugh
Replied by andypugh on topic Preparation for the self-construction of a carousel changer
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.
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.
02 Dec 2022 17:19 #258338
by andypugh
How are you using carousel.0.ready in your test programme?
Replied by andypugh on topic Preparation for the self-construction of a carousel changer
OK, it does do that.So your change routine really should set enable to false before returning control to the system.
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.
02 Dec 2022 19:40 #258352
by mgm
Replied by mgm on topic Preparation for the self-construction of a carousel changer
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 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.
05 Dec 2022 00:03 #258539
by andypugh
Replied by andypugh on topic Preparation for the self-construction of a carousel changer
I don't think that makes sense, you are connecting two "output" (writer) HAL pins.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.
- Configuring LinuxCNC
- Advanced Configuration
- Preparation for the self-construction of a carousel changer
Time to create page: 0.083 seconds