Spindle encoder configuration (with G76 threading command and Mesa 7i96s)
- slowpoke
- Offline
- Elite Member
-
Less
More
- Posts: 223
- Thank you received: 28
06 Apr 2026 21:38 - 06 Apr 2026 21:40 #345244
by slowpoke
Replied by slowpoke on topic Spindle encoder configuration (with G76 threading command and Mesa 7i96s)
I made a new configuration using pncconf and compared the spindle & encoder 0 section.
I don't see anything that's different, other than naming conventions (see attached)
I have a quadrature spindle encoder connected encoder (0) input. A & B
I now also have a 1PPR signal, connected to the encoder.0. index pin.
In Halshow
- spindle.0.revs counts up as expected when the spindle is rotated forward
- spindle.0.speed-in appears correct
- spindle.0.index-enable shows disabled
In my SM-10.hal file I have:
net spindle-index-enable <=> spindle.0.index-enable
IF I comment out this line, I can then enable spindle.0.index-enable manually in Halshow, that makes no difference when trying to open the file below (same error)
Regardless when I try to open the following 2 line G76 program I get the following error: "Chosen spindle(0) not turning in G76"
Program:
G0 X0.45
G76 P0.0625 Z-0.5 I -0.005 J 0.008 K 0.0503
What does the error message actually mean and/or what is Linux missing that it needs?
It has the quadrature encoder signals and it has the index pulse, that I can see toggle as the magnet passes the sensor once per rev,
The revs counter is counting up 1 per rev.
I don't see anything that's different, other than naming conventions (see attached)
I have a quadrature spindle encoder connected encoder (0) input. A & B
I now also have a 1PPR signal, connected to the encoder.0. index pin.
In Halshow
- spindle.0.revs counts up as expected when the spindle is rotated forward
- spindle.0.speed-in appears correct
- spindle.0.index-enable shows disabled
In my SM-10.hal file I have:
net spindle-index-enable <=> spindle.0.index-enable
IF I comment out this line, I can then enable spindle.0.index-enable manually in Halshow, that makes no difference when trying to open the file below (same error)
Regardless when I try to open the following 2 line G76 program I get the following error: "Chosen spindle(0) not turning in G76"
Program:
G0 X0.45
G76 P0.0625 Z-0.5 I -0.005 J 0.008 K 0.0503
What does the error message actually mean and/or what is Linux missing that it needs?
It has the quadrature encoder signals and it has the index pulse, that I can see toggle as the magnet passes the sensor once per rev,
The revs counter is counting up 1 per rev.
Last edit: 06 Apr 2026 21:40 by slowpoke.
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 17828
- Thank you received: 5218
06 Apr 2026 21:55 - 06 Apr 2026 22:05 #345245
by PCW
Replied by PCW on topic Spindle encoder configuration (with G76 threading command and Mesa 7i96s)
is spindle.0.at-speed true?
Also does the index work?
Test by (either in halshow or with halcmd -kf)
sets spindle-index-enable true
watch spindle-index-enable in halshow
it should go high with the sets command and then low when you rotate
the spindle past the index position.
Also does the index work?
Test by (either in halshow or with halcmd -kf)
sets spindle-index-enable true
watch spindle-index-enable in halshow
it should go high with the sets command and then low when you rotate
the spindle past the index position.
Last edit: 06 Apr 2026 22:05 by PCW.
Please Log in or Create an account to join the conversation.
Time to create page: 0.082 seconds