Spindle Step/Dir and as C axis one the same Servo
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 17662
- Thank you received: 5165
30 Aug 2024 19:14 - 30 Aug 2024 19:16 #309040
by PCW
Replied by PCW on topic Spindle Step/Dir and as C axis one the same Servo
I'm not sure I understand, the stepgen position feedback
should not be connected to anything when in spindle mode.
should not be connected to anything when in spindle mode.
Last edit: 30 Aug 2024 19:16 by PCW.
Please Log in or Create an account to join the conversation.
- ustaL
- Offline
- New Member
-
Less
More
- Posts: 8
- Thank you received: 1
31 Aug 2024 11:55 #309083
by ustaL
Replied by ustaL on topic Spindle Step/Dir and as C axis one the same Servo
Stepgen has two connections. To Spidnle and Axis. That's why it has both feedbacks: velocity-fb and position-fb.I'm not sure I understand, the stepgen position feedback
should not be connected to anything when in spindle mode.
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 17662
- Thank you received: 5165
31 Aug 2024 13:57 #309087
by PCW
Replied by PCW on topic Spindle Step/Dir and as C axis one the same Servo
position feedback must be unconnected in spindle mode
Please Log in or Create an account to join the conversation.
- ustaL
- Offline
- New Member
-
Less
More
- Posts: 8
- Thank you received: 1
31 Aug 2024 18:53 #309105
by ustaL
Replied by ustaL on topic Spindle Step/Dir and as C axis one the same Servo
That would be ideal. And how should I do that?position feedback must be unconnected in spindle mode
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 17662
- Thank you received: 5165
31 Aug 2024 19:12 - 31 Aug 2024 19:13 #309109
by PCW
Replied by PCW on topic Spindle Step/Dir and as C axis one the same Servo
in spindle mode, the stepgen velocity command comes directly from
the (perhaps scaled) spindle velocity. The stepgen feedback position
would be ignored in spindle mode. The joint feedback could be looped
back from the C joint commanded position this case. Finally, a homing
to index move would be done to re-synchronize the spindle position to
absolute C coordinates.
the (perhaps scaled) spindle velocity. The stepgen feedback position
would be ignored in spindle mode. The joint feedback could be looped
back from the C joint commanded position this case. Finally, a homing
to index move would be done to re-synchronize the spindle position to
absolute C coordinates.
Last edit: 31 Aug 2024 19:13 by PCW.
Please Log in or Create an account to join the conversation.
- ustaL
- Offline
- New Member
-
Less
More
- Posts: 8
- Thank you received: 1
31 Aug 2024 21:09 #309113
by ustaL
I cannot use mux2 to switch source of pos-fb (that was my first idea), because if I have position-fb = 300 in stepgen AND joint AND pid, and then somehow stepgen position-fb became 0.0 (or source of this value became 0.0 and joint/pid have 300) -> joint error occur.
Replied by ustaL on topic Spindle Step/Dir and as C axis one the same Servo
The question is how? As I understand there is no command like UNlink signal with pin.The joint feedback could be looped
back from the C joint commanded position this case. Finally, a homing
to index move would be done to re-synchronize the spindle position to
absolute C coordinates.
I cannot use mux2 to switch source of pos-fb (that was my first idea), because if I have position-fb = 300 in stepgen AND joint AND pid, and then somehow stepgen position-fb became 0.0 (or source of this value became 0.0 and joint/pid have 300) -> joint error occur.
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 17662
- Thank you received: 5165
31 Aug 2024 22:35 #309115
by PCW
Replied by PCW on topic Spindle Step/Dir and as C axis one the same Servo
One mux2 would be the one that selects the stepgen velocity command to come from
the PID output or the scaled spindle speed command.
The other mux2 would select the joint feedback from either the stepgen feedback
or the joint position command.
The trick is not to switch the second mux back to stepgen feedback until
the joint command and stepgen feedback are zeroed (ideally by
homing to index)
the PID output or the scaled spindle speed command.
The other mux2 would select the joint feedback from either the stepgen feedback
or the joint position command.
The trick is not to switch the second mux back to stepgen feedback until
the joint command and stepgen feedback are zeroed (ideally by
homing to index)
Please Log in or Create an account to join the conversation.
- edimas93
- Offline
- New Member
-
Less
More
- Posts: 1
- Thank you received: 0
27 Jan 2026 20:49 #342021
by edimas93
Replied by edimas93 on topic Spindle Step/Dir and as C axis one the same Servo
Is there any hal to configure this 2-mode configuration!
Please Log in or Create an account to join the conversation.
- spumco
- Offline
- Platinum Member
-
Less
More
- Posts: 1974
- Thank you received: 808
27 Jan 2026 22:32 #342036
by spumco
github.com/LinuxCNC/linuxcnc/issues/3556
A few posts down the author attached a configuration zip file.
It's not extremely complicated, but neither is it simple.
And the issue reported in the post is still present. I'm almost done with my attempt at a configuration based on the posted one, and I'll be testing if the joint.N.index-enable signal is what causes motion errors.
Replied by spumco on topic Spindle Step/Dir and as C axis one the same Servo
Yes. This post has a configuration using a step/dir spindle drive to manage spindle, orient, and c-axis modes:Is there any hal to configure this 2-mode configuration!
github.com/LinuxCNC/linuxcnc/issues/3556
A few posts down the author attached a configuration zip file.
It's not extremely complicated, but neither is it simple.
And the issue reported in the post is still present. I'm almost done with my attempt at a configuration based on the posted one, and I'll be testing if the joint.N.index-enable signal is what causes motion errors.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
Time to create page: 0.085 seconds