- Configuring LinuxCNC
- Advanced Configuration
- Using a servo as a spindle and positional axis - keep getting vague errors
Using a servo as a spindle and positional axis - keep getting vague errors
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18391
- Thank you received: 5022
05 Apr 2025 13:25 #325757
by PCW
and the velocity command comes from the commanded spindle speed in spindle mode and the position control PID
loop output in C Axis mode. The trick is returning to C axis mode after being in spindle mode with the spindle in
an arbitrary position.
Replied by PCW on topic Using a servo as a spindle and positional axis - keep getting vague errors
You don't need two stepgens. Typically the way this is done is that a single stepgen is used (in velocity mode)cofhal - I will look at your files now, I did have another idea as well - could i simply use two stepgens? one for step.dir for spindle and another one for the "C" axis? and have a mesa output pin switch a dpdr relay to simply alter where the same motor gets the input?
and the velocity command comes from the commanded spindle speed in spindle mode and the position control PID
loop output in C Axis mode. The trick is returning to C axis mode after being in spindle mode with the spindle in
an arbitrary position.
Please Log in or Create an account to join the conversation.
- ffffrf
- Offline
- Junior Member
-
Less
More
- Posts: 28
- Thank you received: 1
05 Apr 2025 17:15 - 05 Apr 2025 17:24 #325771
by ffffrf
Replied by ffffrf on topic Using a servo as a spindle and positional axis - keep getting vague errors
here is a picture of my physical manual, its slightly different than the online manual. However, do you think it actually does work and this physical copy of the manual is wrong?Also just to clarify - are you also saying that because my current encoder is not 1:1, that it will not work?I can go ahead and try to solder on the wires to my servo driver and test it out
Currently using a 1024 p/r pulley mounted encoder
Currently using a 1024 p/r pulley mounted encoder
Last edit: 05 Apr 2025 17:24 by ffffrf.
Please Log in or Create an account to join the conversation.
- ffffrf
- Offline
- Junior Member
-
Less
More
- Posts: 28
- Thank you received: 1
05 Apr 2025 17:45 #325772
by ffffrf
Replied by ffffrf on topic Using a servo as a spindle and positional axis - keep getting vague errors
Also could you explain how your physical setup for homing of the C axis / spindle? It is something I am having trouble with after modifying your HAL and INI (which I will attach here).
Please Log in or Create an account to join the conversation.
- COFHAL
- Offline
- Platinum Member
-
Less
More
- Posts: 359
- Thank you received: 43
05 Apr 2025 22:03 #325781
by COFHAL
Replied by COFHAL on topic Using a servo as a spindle and positional axis - keep getting vague errors
Does your encoder have index?
Please Log in or Create an account to join the conversation.
- ffffrf
- Offline
- Junior Member
-
Less
More
- Posts: 28
- Thank you received: 1
06 Apr 2025 00:51 #325787
by ffffrf
Replied by ffffrf on topic Using a servo as a spindle and positional axis - keep getting vague errors
yes the one i am using has an index pulse!
Please Log in or Create an account to join the conversation.
- Configuring LinuxCNC
- Advanced Configuration
- Using a servo as a spindle and positional axis - keep getting vague errors
Time to create page: 0.292 seconds