Hey andy and stuart Andy thanks for that logic. you are right I can include it in classic ladder or use the hal component. last night I actually found this maths on the centroid websight just doing google searchs for shortest path toolchanger stuff. https://www.centroidcnc.com/downloads/centroid_cnc10_PLCMAN.pdf It looks pretty much identical to what you code in the hal component does I think. Anyway I got classic ladder going the shortest path in every circumstance so far as I can see perfectly now. I am a happy man I need to go try it on my machine now ! yeha
Stuart here is my machine I think this video shows the toolchanger pretty well. It is basically what is on every side mount toolchanger on the HAAS mills. it is a side mounted random pot tool changer and an has a arm to exchange the tools between a pot and the spindle. just like your type. they are pretty common I think. my mill on youtube <https://youtu.be/2h5DRg7TA_k> I would definitely be interested in seeing how you solved your problem as your toolchanger sounds similar to mine. regards Andrew On Wed, Apr 15, 2020 at 11:35 PM andy pugh <[email protected]> wrote: > On Wed, 15 Apr 2020 at 09:04, andrew beck <[email protected]> > wrote: > > > it works pretty good if the numbers are 4 and 5 but not if > > they are 23 and 0 the magazine goes the long way round and takes ages. > > > > How would I use your Hal component with this as you say all I want it to > > do it chose the correct direction for the shortest path.. I could > probably > > do it within classic ladder if I could work out the equations. > > The logic is here: > > https://github.com/LinuxCNC/linuxcnc/blob/master/src/hal/components/carousel.comp#L267 > > You could copy that in CL or let the carousel comp do its thing. > > -- > atp > "A motorcycle is a bicycle with a pandemonium attachment and is > designed for the especial use of mechanical geniuses, daredevils and > lunatics." > — George Fitch, Atlanta Constitution Newspaper, 1912 > > > _______________________________________________ > Emc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-users > _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
