Tuning stepper motors with encoder or glass scale feedback

More
19 Jun 2025 22:36 #330535 by PCW
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.
 
The following user(s) said Thank You: JackRay

Please Log in or Create an account to join the conversation.

More
21 Jun 2025 16:13 #330639 by JackRay
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?

Please Log in or Create an account to join the conversation.

More
21 Jun 2025 16:39 #330645 by PCW
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.
 

Please Log in or Create an account to join the conversation.

More
22 Jun 2025 20:22 #330725 by JackRay
i do that, but never nothing

Please Log in or Create an account to join the conversation.

More
22 Jun 2025 20:49 #330726 by PCW
That points to hardware issues, are you sure:

The index wiring is correct.

The encoders actually have an index output.
 

Please Log in or Create an account to join the conversation.

More
23 Jun 2025 17:08 #330762 by JackRay
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

Please Log in or Create an account to join the conversation.

More
23 Jun 2025 18:38 #330763 by PCW
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)?

Please Log in or Create an account to join the conversation.

More
23 Jun 2025 20:23 #330774 by JackRay
i will try that tomorow
thanks

Please Log in or Create an account to join the conversation.

More
24 Jun 2025 17:16 #330808 by JackRay
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.

More
24 Jun 2025 17:48 #330810 by PCW
Is the index input jumpered for TTL MODE? (W1 left)

Unless this is done, the results will be unpredictable.
 

Please Log in or Create an account to join the conversation.

Time to create page: 0.113 seconds
Powered by Kunena Forum