On 2 November 2015 at 13:16,  <[email protected]> wrote:

> What does the carousel.0.state number define, what does it mean?

It shows where the system is in the alignment sequence. It will only
really make sense looking at the code:
http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=blob;f=src/hal/components/carousel.comp;h=c38343c24b9b21e743e1e7dd7a4d57e7cfec74be;hb=HEAD#l150
Starting at line 150.

The comment on each state says what it is doing in that state, and
then it moves from one state to another on the basis of comparison in
that state.

Hint, in C read "!" as "not"

case 0: // waiting at start
case 1: // choose direction
case 2: // moving
case 3: //waiting for enable to go false
case 10: // start of homing
case 11: // waiting for index & pulse

> Also, after the homing sequence does the carousel.0.pocket-number need
> to be reset to 0, and reset after every completed toolchange?

No, you can leave it as it is, and if you set enable with it already
in the right position the compoinent will fall through the states
without setting any outputs other than "ready"

>  it is sitting on pocket 1, with the following conditions
> of all pins,

It is waiting for the "enable" pin to go false. The pin needs to go
from 0 to 1 to start a new move. If you connect it to
iocontrol.0.tool-change then that should happen automatically.


-- 
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

------------------------------------------------------------------------------
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to