- Configuring LinuxCNC
- Advanced Configuration
- Tuning stepper motors with encoder or glass scale feedback
Tuning stepper motors with encoder or glass scale feedback
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18778
- Thank you received: 5187
19 Jun 2025 22:36 #330535
by PCW
Replied by PCW on topic Tuning stepper motors with encoder or glass scale feedback
None of these are needed and the first will likely mean
that you never get an index.
setp [HMOT](CARD0).encoder.00.index-mask 1
setp [HMOT](CARD0).encoder.00.index-invert 0
setp [HMOT](CARD0).encoder.00.index-mask-invert 0
The index mask logic is intended for configurations
that have a index mask input pin which is typically used
for spindles where the encoder is on the motor and the
spindle is geared down from the motor.
that you never get an index.
setp [HMOT](CARD0).encoder.00.index-mask 1
setp [HMOT](CARD0).encoder.00.index-invert 0
setp [HMOT](CARD0).encoder.00.index-mask-invert 0
The index mask logic is intended for configurations
that have a index mask input pin which is typically used
for spindles where the encoder is on the motor and the
spindle is geared down from the motor.
The following user(s) said Thank You: JackRay
Please Log in or Create an account to join the conversation.
- JackRay
- Offline
- Elite Member
-
Less
More
- Posts: 203
- Thank you received: 14
21 Jun 2025 16:13 #330639
by JackRay
Replied by JackRay on topic Tuning stepper motors with encoder or glass scale feedback
I deleted the 3 lines without success Z undetectable.
My axis turns at slow speed during the homing phase but never stops.
Should it stop when it finds the puls index?
My axis turns at slow speed during the homing phase but never stops.
Should it stop when it finds the puls index?
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18778
- Thank you received: 5187
21 Jun 2025 16:39 #330645
by PCW
Replied by PCW on topic Tuning stepper motors with encoder or glass scale feedback
Did you check index enable?
To test whether the index hardware is working (assuming you can move the axis past
an index mark), you would:
With LinuxCNC running, use halshow to watch the signal b-index-enable
and then with either halshow or halcmd, set b-index-enable true"
halcmd sets b-index-enable true
halshow should now show b-index-enable true
now, if you move the axis past an index mark, b-index-enable should go false.
This is how you test for correct index operation.
To test whether the index hardware is working (assuming you can move the axis past
an index mark), you would:
With LinuxCNC running, use halshow to watch the signal b-index-enable
and then with either halshow or halcmd, set b-index-enable true"
halcmd sets b-index-enable true
halshow should now show b-index-enable true
now, if you move the axis past an index mark, b-index-enable should go false.
This is how you test for correct index operation.
Please Log in or Create an account to join the conversation.
- JackRay
- Offline
- Elite Member
-
Less
More
- Posts: 203
- Thank you received: 14
22 Jun 2025 20:22 #330725
by JackRay
Replied by JackRay on topic Tuning stepper motors with encoder or glass scale feedback
i do that, but never nothing
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18778
- Thank you received: 5187
22 Jun 2025 20:49 #330726
by PCW
Replied by PCW on topic Tuning stepper motors with encoder or glass scale feedback
That points to hardware issues, are you sure:
The index wiring is correct.
The encoders actually have an index output.
The index wiring is correct.
The encoders actually have an index output.
Please Log in or Create an account to join the conversation.
- JackRay
- Offline
- Elite Member
-
Less
More
- Posts: 203
- Thank you received: 14
23 Jun 2025 17:08 #330762
by JackRay
Replied by JackRay on topic Tuning stepper motors with encoder or glass scale feedback
My wiring is good. I followed the MESA7i96s documentation. I think everything is correct.
I've tested 5 RS-422 encoders with phase A+,A-,B+,B-,Z+,Z-. Or maybe my MESA board isn't working properly. I don't know how to get out of it
I've tested 5 RS-422 encoders with phase A+,A-,B+,B-,Z+,Z-. Or maybe my MESA board isn't working properly. I don't know how to get out of it
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18778
- Thank you received: 5187
23 Jun 2025 18:38 #330763
by PCW
Replied by PCW on topic Tuning stepper motors with encoder or glass scale feedback
if you:
1. Disconnect the encoder
2. Change the index input to TTL mode
(W1 left)
3. With LinuxCNC running and halshows "Watch" tab showing
hm2_7i96s.0.encoder.00.input-index, does the state of
hm2_7i96s.0.encoder.00.input-index change when you ground
the IDX+ input (TB2 pin 13)?
1. Disconnect the encoder
2. Change the index input to TTL mode
(W1 left)
3. With LinuxCNC running and halshows "Watch" tab showing
hm2_7i96s.0.encoder.00.input-index, does the state of
hm2_7i96s.0.encoder.00.input-index change when you ground
the IDX+ input (TB2 pin 13)?
Please Log in or Create an account to join the conversation.
- JackRay
- Offline
- Elite Member
-
Less
More
- Posts: 203
- Thank you received: 14
23 Jun 2025 20:23 #330774
by JackRay
Replied by JackRay on topic Tuning stepper motors with encoder or glass scale feedback
i will try that tomorow
thanks
thanks
Please Log in or Create an account to join the conversation.
- JackRay
- Offline
- Elite Member
-
Less
More
- Posts: 203
- Thank you received: 14
24 Jun 2025 17:16 #330808
by JackRay
Replied by JackRay on topic Tuning stepper motors with encoder or glass scale feedback
So, my signal goes to true, but doesn't return to false once the wire is removed from GND. moreover, it doesn't happen every time. sometimes it works, sometimes it doesn't?
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18778
- Thank you received: 5187
24 Jun 2025 17:48 #330810
by PCW
Replied by PCW on topic Tuning stepper motors with encoder or glass scale feedback
Is the index input jumpered for TTL MODE? (W1 left)
Unless this is done, the results will be unpredictable.
Unless this is done, the results will be unpredictable.
Please Log in or Create an account to join the conversation.
- Configuring LinuxCNC
- Advanced Configuration
- Tuning stepper motors with encoder or glass scale feedback
Time to create page: 0.113 seconds