M19 for Indexing a Spindle using Stepper Motors
- richcolvin
-
Topic Author
- Away
- Junior Member
-
Less
More
- Posts: 26
- Thank you received: 0
14 Oct 2025 20:13 #336445
by richcolvin
M19 for Indexing a Spindle using Stepper Motors was created 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).
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 or Create an account to join the conversation.
- PCW
-
- Online
- Moderator
-
Less
More
- Posts: 17302
- Thank you received: 5035
14 Oct 2025 21:06 #336447
by PCW
Replied by PCW on topic M19 for Indexing a Spindle using Stepper Motors
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.
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 or Create an account to join the conversation.
- richcolvin
-
Topic Author
- Away
- Junior Member
-
Less
More
- Posts: 26
- Thank you received: 0
15 Oct 2025 03:52 #336471
by richcolvin
Replied by richcolvin on topic M19 for Indexing a Spindle using Stepper Motors
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 or Create an account to join the conversation.
Time to create page: 0.207 seconds