> Hi Andy, Steve and Dave
>
> Thanks for the replies, I see from the initials that you (Andy) are the
> person who posted this solution in the first place.
>
> I didn't realise that the last line had wrapped, the spindle-index-enable
> line isn't wrapped normally, must have happened when pasting into the
> email.
>
> It will be a couple of days before I can try this out properly so I will
> come back to you then.
>
> The timing magnets will not be perfecting in phase.  Mach only requires 1
> long pulse and 3 shorter ones, which I achieved with different sizes.  The
> time between is not critical and whilst they will be pretty much 90degrees
> apart, it will not be exact

You can simulate index using a timer on the A channel.  A goes to input,
output is Z (and goes to the encoder component).  There are HAL components
called "timedelay" and "debounce" which might be useful for this.  Set the
timeout to something longer than the short pulses but shorter than the
long pulse.  Just note that either option will delay the index mark by the
delay/debounce time.

- Steve


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

Reply via email to