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

Reply via email to