- 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
- ffffrf
- Offline
- Junior Member
-
Less
More
- Posts: 34
- Thank you received: 1
04 Apr 2025 04:11 #325652
by ffffrf
Replied by ffffrf on topic Using a servo as a spindle and positional axis - keep getting vague errors
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?
Please Log in or Create an account to join the conversation.
- ffffrf
- Offline
- Junior Member
-
Less
More
- Posts: 34
- Thank you received: 1
04 Apr 2025 04:49 - 04 Apr 2025 04:50 #325657
by ffffrf
Replied by ffffrf on topic Using a servo as a spindle and positional axis - keep getting vague errors
one more question before i forget: what issue could be encountered by having a different model of servo driver? Given that you are driving both the spindle and c-axis both with step/dir signals, you just need a driver that can output step/dir, right?
Last edit: 04 Apr 2025 04:50 by ffffrf.
Please Log in or Create an account to join the conversation.
- COFHAL
- Offline
- Platinum Member
-
Less
More
- Posts: 362
- Thank you received: 43
04 Apr 2025 15:57 #325690
by COFHAL
Replied by COFHAL on topic Using a servo as a spindle and positional axis - keep getting vague errors
my email is cofhal.and.gmail.com , send the manual
Please Log in or Create an account to join the conversation.
- COFHAL
- Offline
- Platinum Member
-
Less
More
- Posts: 362
- Thank you received: 43
04 Apr 2025 15:58 - 04 Apr 2025 16:10 #325691
by COFHAL
Replied by COFHAL on topic Using a servo as a spindle and positional axis - keep getting vague errors
There's no need to use the same servo motor for both, but keep in mind that for it to work, you must connect the servo motor's encoder feedback. I believe your servo motor has a 2,500-pulse encoder. I can help you configure it with the manual.
youtube.com/shorts/neoFkCpddyE?feature=share
youtube.com/shorts/neoFkCpddyE?feature=share
Last edit: 04 Apr 2025 16:10 by COFHAL.
Please Log in or Create an account to join the conversation.
- COFHAL
- Offline
- Platinum Member
-
Less
More
- Posts: 362
- Thank you received: 43
04 Apr 2025 16:13 #325693
by COFHAL
Replied by COFHAL on topic Using a servo as a spindle and positional axis - keep getting vague errors
I think it would be a bad idea, since you could use the same servo motor for both functions.
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4305
- Thank you received: 1908
04 Apr 2025 17:19 #325697
by Aciera
Replied by Aciera on topic Using a servo as a spindle and positional axis - keep getting vague errors
@COFHAL
Have you ever used spindle synchronized motion (eg G33 or G33.1) with the config you posted above?
Just wondering if you are also affected by the erratic behavior bug described here:
forum.linuxcnc.org/38-general-linuxcnc-q...blem?start=20#324268
Have you ever used spindle synchronized motion (eg G33 or G33.1) with the config you posted above?
Just wondering if you are also affected by the erratic behavior bug described here:
forum.linuxcnc.org/38-general-linuxcnc-q...blem?start=20#324268
Please Log in or Create an account to join the conversation.
- ffffrf
- Offline
- Junior Member
-
Less
More
- Posts: 34
- Thank you received: 1
04 Apr 2025 23:21 - 05 Apr 2025 01:25 #325721
by ffffrf
Replied by ffffrf on topic Using a servo as a spindle and positional axis - keep getting vague errors
Text removed
Last edit: 05 Apr 2025 01:25 by ffffrf.
Please Log in or Create an account to join the conversation.
- COFHAL
- Offline
- Platinum Member
-
Less
More
- Posts: 362
- Thank you received: 43
05 Apr 2025 00:31 #325729
by COFHAL
Replied by COFHAL on topic Using a servo as a spindle and positional axis - keep getting vague errors
If I received it, please delete the email address. I have another question: Do you have feedback from the servo motor encoder connected?
Please Log in or Create an account to join the conversation.
- ffffrf
- Offline
- Junior Member
-
Less
More
- Posts: 34
- Thank you received: 1
05 Apr 2025 01:24 - 05 Apr 2025 01:28 #325732
by ffffrf
Replied by ffffrf on topic Using a servo as a spindle and positional axis - keep getting vague errors
EDIT: I double checked and it seems you received my email. I removed your email from my post. I will type out a small part of my email here for other people in the community who might find it useful in the future.
Part of email:
Importantly, I have an external encoder that is already attached to the lathe headstock, so I DO NOT need to use the encoder on the servo driver, infact, I already have the encoder set up correctly to my mesa board. In a future project I may use the servo encoder but i suspect my drive does not actually have encoder output setup as the manual says not all versions come standard, and i have no connector (although it must be somewhere inside haha)
Using your files, here is the progress I have done:
1. I have went through and integrated my machine parameters into your hal and ini, halcompiled the caxis and gn-userkins, and added the remapped gcodes
2. The software does boot up successfully but doesnt fully work: X and Z move and work fine. The encoder works and outputs the live C value
What does not work - something that has failed me in many other attemps
1. The C or spindle do not work, the first issue from debugging is homing - it seems homing does not work. I am going to try and disable homing or try a workaround
2. I suspect after homing is fixed, I will get some additional vague command line errors. Likely from my lack of coding experience and improper linuxcnc logic, but not certain.
3. There are a few other annoying issues I suspect, but I do not want to get ahead of myself.
I will also upload my current HAL and INI which are the only files of your I have changed. Is there any chance I could get your input on the HAL and INI and if you have any obvious suggestions I may be missing?
Part of email:
Importantly, I have an external encoder that is already attached to the lathe headstock, so I DO NOT need to use the encoder on the servo driver, infact, I already have the encoder set up correctly to my mesa board. In a future project I may use the servo encoder but i suspect my drive does not actually have encoder output setup as the manual says not all versions come standard, and i have no connector (although it must be somewhere inside haha)
Using your files, here is the progress I have done:
1. I have went through and integrated my machine parameters into your hal and ini, halcompiled the caxis and gn-userkins, and added the remapped gcodes
2. The software does boot up successfully but doesnt fully work: X and Z move and work fine. The encoder works and outputs the live C value
What does not work - something that has failed me in many other attemps
1. The C or spindle do not work, the first issue from debugging is homing - it seems homing does not work. I am going to try and disable homing or try a workaround
2. I suspect after homing is fixed, I will get some additional vague command line errors. Likely from my lack of coding experience and improper linuxcnc logic, but not certain.
3. There are a few other annoying issues I suspect, but I do not want to get ahead of myself.
I will also upload my current HAL and INI which are the only files of your I have changed. Is there any chance I could get your input on the HAL and INI and if you have any obvious suggestions I may be missing?
Last edit: 05 Apr 2025 01:28 by ffffrf.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- COFHAL
- Offline
- Platinum Member
-
Less
More
- Posts: 362
- Thank you received: 43
05 Apr 2025 13:02 #325756
by COFHAL
Replied by COFHAL on topic Using a servo as a spindle and positional axis - keep getting vague errors
Attachments:
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.252 seconds