Lathe C axis homing
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 17910
- Thank you received: 5243
15 Apr 2026 20:28 #345580
by PCW
Replied by PCW on topic Lathe C axis homing
The commanded C position should come directly from LinuxCNC, It should not have steps
nor be affected in any way by PID settings.
Can you post your HAL/INI files?
nor be affected in any way by PID settings.
Can you post your HAL/INI files?
Please Log in or Create an account to join the conversation.
- jetbadger
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 2
16 Apr 2026 18:13 #345616
by jetbadger
Replied by jetbadger on topic Lathe C axis homing
It does make some sense to me that the commanded position would stay ahead by some bit so that it doesn't instantly get massive following error, but am not sure at this point. It comes from joint.n.motor-pos-cmd. I've attached the config files here
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 17910
- Thank you received: 5243
17 Apr 2026 13:51 #345641
by PCW
Replied by PCW on topic Lathe C axis homing
OK I guess I got too swayed by the "homing" in the title when in fact this looks like a C axis
programmed path where the "steps" are real.
It basically looks like the acceleration is too high to the spindle to follow. This may just be physics
(inertia vs spindle motor torque) or programming (some acceleration limit set in the drive)
programmed path where the "steps" are real.
It basically looks like the acceleration is too high to the spindle to follow. This may just be physics
(inertia vs spindle motor torque) or programming (some acceleration limit set in the drive)
Please Log in or Create an account to join the conversation.
- jetbadger
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 2
20 Apr 2026 18:13 #345780
by jetbadger
Replied by jetbadger on topic Lathe C axis homing
Yeah, the title is a bit misleading at this point, but not sure it's worth making another thread for this.
I see what you mean but I've tried vastly different acc/vel values on the joint and stepgen sections and it still has the same kind of behaviour.
If it was a physical issue that should be ruled out when using stepgen.position-fb instead of encoder feedback, I'm thinking so? But that makes no difference still...
I tried to figure out how the joint comes up with the position command but with no luck either.
I see what you mean but I've tried vastly different acc/vel values on the joint and stepgen sections and it still has the same kind of behaviour.
If it was a physical issue that should be ruled out when using stepgen.position-fb instead of encoder feedback, I'm thinking so? But that makes no difference still...
I tried to figure out how the joint comes up with the position command but with no luck either.
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 17910
- Thank you received: 5243
20 Apr 2026 18:30 #345781
by PCW
Replied by PCW on topic Lathe C axis homing
With open loop, (stepgen feedback) you need to have a _much_ higher P term
(typically 1000 with a 1 ms servo thread period)
(typically 1000 with a 1 ms servo thread period)
Please Log in or Create an account to join the conversation.
- jetbadger
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 2
20 Apr 2026 19:25 #345784
by jetbadger
Replied by jetbadger on topic Lathe C axis homing
I've tried that too. Now I've noticed that I have pid.c.feedback-deriv connected. Maybe getting rid of it will help, Guess I'll try that next.
Please Log in or Create an account to join the conversation.
- jetbadger
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 2
23 Apr 2026 09:17 - 23 Apr 2026 09:18 #345870
by jetbadger
Replied by jetbadger on topic Lathe C axis homing
A little update as I've found the issue. It was the spindle-at-speed signal. Connected to encoder feedback it would go off in axis mode and I assume it's Gmoccapy behavior that it halts all motion if that signal is false.
Still took me embarrasingly long to figure that out.
Still took me embarrasingly long to figure that out.
Last edit: 23 Apr 2026 09:18 by jetbadger.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
Time to create page: 0.108 seconds