Andy,

Yes I will either make my own sequencer/state machine as a custom comp or
maybe instead could this
not just be done in hal with the right logic? Also this could be done in
ladder logic I think. Up to now
I just put all of my logic in hal and avoided ladder. But maybe doing this
all in hal would be considered
too tedious vs a custom comp?

So this prompts another question. What is the difference between a custom
comp vs one that is built in?

John Figie


On Thu, Nov 10, 2022 at 6:48 PM andy pugh <bodge...@gmail.com> wrote:

> On Thu, 10 Nov 2022 at 23:08, John Figie <zephyr9...@gmail.com> wrote:
>
> So I think I can make a sequencer ( in hal?) to move the turret one
> > position. I suppose I could have 8 tools defined and use some tools in
> the
> > 45 deg position but I don't know how useful that is.
>
>
> I think it would be a lot of effort to make this work with the carousel
> component, but writing a custom component for the job would probably be
> fairly reasonable.
>
> One thing about HAL components is that they can't wait, they need to
> execute and then exit every time they are called.
> If you look at the carousel component (and many others) you will see that
> this is done with a state machine, ie an internal variable (often led out
> to a HAL pin for debugging purposes) that identifies what the compnent is
> currently doing.
> For example, one state would he "up with motor on waiting for T3" and when
> T3 is detected in that state it would turn off the motor and move to a
> state of "waiting for turret to lower"
>
> You would track tool position internally, with a flag for "homed" which is
> set once the home position is seen with turret down. (if homed is false
> then tool-number would be clamped to zero, probably)
>
> I think that a component makes more sense here than CL as I can see this
> getting increasingly complicated.
>
>
> --
> 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
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>

_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to