Lathe C axis homing

More
6 months 2 weeks ago #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?

 

Please Log in to join the conversation.

More
6 months 2 weeks ago #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

Attachment not found

Attachment not found

Attachment not found

Please Log in to join the conversation.

More
6 months 1 week ago #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)

Please Log in to join the conversation.

More
6 months 1 week ago #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.

Please Log in to join the conversation.

More
6 months 1 week ago #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)

 

Please Log in to join the conversation.

More
6 months 1 week ago #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 to join the conversation.

More
6 months 1 week ago #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.

Please Log in to join the conversation.

Time to create page: 0.114 seconds
Powered by Kunena Forum