M19 for Indexing a Spindle using Stepper Motors

More
1 year 2 weeks ago #336445 by richcolvin
I am trying to use the M19 command:

m19 r90 q10 p1 $0

The m3 & m4 commands work as expected, but m19 does not.  Any guidance would be greatly appreciated.

My HAL and INI files are attached (Spindle0.inc renamed to be Spindle.inc.ini so that it could be attached).

Please Log in to join the conversation.

More
1 year 2 weeks ago #336447 by PCW
www.linuxcnc.org/docs/html/gcode/m-code.html#mcode:m19

Says:

Spindle orientation requires a quadrature encoder with an index to sense the spindle shaft position and direction of rotation.

The need for an encoder can be worked around by using a StepGen with the index feature but that would still require
a once per turn signal for initial alignment.

Please Log in to join the conversation.

More
1 year 2 weeks ago #336471 by richcolvin
Thank you Peter.  I reviewed the link you provided, but is there a document or manual which describes how to set this up?

Please Log in to join the conversation.

More
1 year 1 week ago #336709 by jpg
Hello, here is a functional version for port // that may help.

Please Log in to join the conversation.

More
1 year 3 days ago #337319 by richcolvin
Jean Philippe,

Thank you for sharing these. I greatly appreciate your generosity.

Am I correct I. My thinking that the magic for this is in the spindle.hal file?

Rich

Please Log in to join the conversation.

Time to create page: 0.090 seconds
Powered by Kunena Forum