- Posts: 19306
- Thank you received: 0
Preparation for the self-construction of a carousel changer
3 years 11 months ago #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 to join the conversation.
3 years 11 months ago #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?
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22012
- Thank you received: 4
3 years 11 months ago #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 to join the conversation.
3 years 11 months ago #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 to join the conversation.
3 years 11 months ago #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
Please Log in to join the conversation.
3 years 10 months ago #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.
Attachment not found
Attachment not found
Please Log in to join the conversation.
3 years 10 months ago #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 to join the conversation.
3 years 10 months ago #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.
Code:
M65 P10 ; stop carousel
How are you using carousel.0.ready in your test programme?
Please Log in to join the conversation.
3 years 10 months ago #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 to join the conversation.
3 years 10 months ago #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 to join the conversation.
Time to create page: 1.336 seconds
