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

Reply via email to