HAL for open-loop encoder homing
- Muzzer
- Away
- Elite Member
-
Less
More
- Posts: 275
- Thank you received: 48
19 Oct 2026 11:13 #350336
by Muzzer
Replied by Muzzer on topic HAL for open-loop encoder homing
For reference, here are some results showing a comparison between the original proximity switch homing and the "index gated" implementation.
The "optimisation" process produced the biggest improvements which were the result of finessing the PID values and slightly reducing the homing speed to minimise the delay between reading the index pulse and processing the data. Both methods were significantly improved this way but the end results were almost identical.
For the test setup, I repeatedly homed the machine (typically 20 times, as shown), with the absolute position automatically logged and plotted.
The "optimisation" process produced the biggest improvements which were the result of finessing the PID values and slightly reducing the homing speed to minimise the delay between reading the index pulse and processing the data. Both methods were significantly improved this way but the end results were almost identical.
For the test setup, I repeatedly homed the machine (typically 20 times, as shown), with the absolute position automatically logged and plotted.
Attachments:
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- PCW
-
- Online
- Moderator
-
Less
More
- Posts: 18108
- Thank you received: 5328
19 Oct 2026 13:28 #350343
by PCW
Replied by PCW on topic HAL for open-loop encoder homing
It sounds like you are not using the index hardware at all.
There should be no effect of LinuxCNC timing or PID tuning
on the index position homing precision, if the index hardware is
actually used.
That is, the precision of position capture at the index position is
independent of the motion accuracy, though of course motion accuracy
after the index position is captured _is_ dependent on PID etc.
There should be no effect of LinuxCNC timing or PID tuning
on the index position homing precision, if the index hardware is
actually used.
That is, the precision of position capture at the index position is
independent of the motion accuracy, though of course motion accuracy
after the index position is captured _is_ dependent on PID etc.
Please Log in or Create an account to join the conversation.
- Muzzer
- Away
- Elite Member
-
Less
More
- Posts: 275
- Thank you received: 48
19 Oct 2026 16:32 #350347
by Muzzer
Replied by Muzzer on topic HAL for open-loop encoder homing
I'm certainly open to being educated here but I was reasonably convinced by what I was seeing. Have a look at my notes and perhaps you can see where / if I may have misunderstood what was happening:
www.murraye.com/2026/08/improving-homing...acy-on-linuxcnc.html
In my case, with 5um resolution scales and closed loop controls, my final resting position after homing can't be any more accurate than the resolution of the scales allow, so perhaps I've been chasing up a dead end anyway? A positional accuracy of 5 or 10um from true is probably the best I could hope for on a good day.
The PID element was initially due to my controllers being unstable but the homing velocity did seem to impact accuracy too.
www.murraye.com/2026/08/improving-homing...acy-on-linuxcnc.html
In my case, with 5um resolution scales and closed loop controls, my final resting position after homing can't be any more accurate than the resolution of the scales allow, so perhaps I've been chasing up a dead end anyway? A positional accuracy of 5 or 10um from true is probably the best I could hope for on a good day.
The PID element was initially due to my controllers being unstable but the homing velocity did seem to impact accuracy too.
Please Log in or Create an account to join the conversation.
- PCW
-
- Online
- Moderator
-
Less
More
- Posts: 18108
- Thank you received: 5328
19 Oct 2026 16:55 #350348
by PCW
Replied by PCW on topic HAL for open-loop encoder homing
I think the issue is that you are not using the feedback from the same encoder that's generating
the index. In this case, homing to index cannot work.
the index. In this case, homing to index cannot work.
Please Log in or Create an account to join the conversation.
Time to create page: 0.253 seconds