Removing unnecessary servo threads?
- dokwine
- Offline
- Senior Member
Less
More
- Posts: 76
- Thank you received: 11
16 Mar 2021 18:16 #202494
by dokwine
Removing unnecessary servo threads? was created by dokwine
I’ve put this off because its so embarrassing, but its time to clean things up and move to 2.8…
When I built my CNC router (~ 5- 6 years ago) I was very excited about using Technic step-and-direction servos. I still am - they’ve been great! As I recall though, I was initially confused going through PNCconf as to whether I was setting up a servo machine or a stepper. I learned of course that as far as LCNC is concerned it's a stepper and I got things working by editing the files I generated initially with PNCconf. The machine is running very well, but as I look through the .hal and .ini, I see lots of what seems to be deadwood; servo-related threads and pins generated by PNCconf for a servo machine which should probably be cleaned out.
So questions:
1. Things like:
addf motion-command-handler servo-thread
addf motion-controller servo-thread
addf pid.x.do-pid-calcs servo-thread
addf pid.y.do-pid-calcs servo-thread
addf pid.z.do-pid-calcs servo-thread
addf pid.s.do-pid-calcs servo-thread
2. Am I better off going through PNCconf again and starting clean, or are there some basic rules for what I _don’t_ need that I could just hand-edit out? My other changes to Hal and ini are not super extensive, on the other hand there’s something to be said for going forward from a known reliable base.
Thanks
FWIW the machine is a gantry-style CNC router running Technic step and direction servos on 3 axis and a 3hp WC ATC spindle. Using Mesa 5i25/7i76 with Intel core I7 host. .hal and .ini attached 'cuz I know you'll ask
When I built my CNC router (~ 5- 6 years ago) I was very excited about using Technic step-and-direction servos. I still am - they’ve been great! As I recall though, I was initially confused going through PNCconf as to whether I was setting up a servo machine or a stepper. I learned of course that as far as LCNC is concerned it's a stepper and I got things working by editing the files I generated initially with PNCconf. The machine is running very well, but as I look through the .hal and .ini, I see lots of what seems to be deadwood; servo-related threads and pins generated by PNCconf for a servo machine which should probably be cleaned out.
So questions:
1. Things like:
addf motion-command-handler servo-thread
addf motion-controller servo-thread
addf pid.x.do-pid-calcs servo-thread
addf pid.y.do-pid-calcs servo-thread
addf pid.z.do-pid-calcs servo-thread
addf pid.s.do-pid-calcs servo-thread
2. Am I better off going through PNCconf again and starting clean, or are there some basic rules for what I _don’t_ need that I could just hand-edit out? My other changes to Hal and ini are not super extensive, on the other hand there’s something to be said for going forward from a known reliable base.
Thanks
FWIW the machine is a gantry-style CNC router running Technic step and direction servos on 3 axis and a 3hp WC ATC spindle. Using Mesa 5i25/7i76 with Intel core I7 host. .hal and .ini attached 'cuz I know you'll ask
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17982
- Thank you received: 4832
16 Mar 2021 19:18 - 16 Mar 2021 19:19 #202504
by PCW
Replied by PCW on topic Removing unnecessary servo threads?
The standard PNCConf hal files use the step generators in velocity mode
so the PID components are required. This mode is more robust with regard
to servo thread jitter than the built in position mode so is recommended.
so the PID components are required. This mode is more robust with regard
to servo thread jitter than the built in position mode so is recommended.
Last edit: 16 Mar 2021 19:19 by PCW.
The following user(s) said Thank You: dokwine
Please Log in or Create an account to join the conversation.
- Michael
- Offline
- Platinum Member
Less
More
- Posts: 335
- Thank you received: 59
16 Mar 2021 19:28 #202506
by Michael
Replied by Michael on topic Removing unnecessary servo threads?
2.8 has better support for gantry. Which means slightly different file structures. You can have the best of both worlds though. Save the original folder, upgrade to 2.8, run pncconf. See what works and doesn't, reference the old files for corrections. If all else fails reinstall the original linuxcnc version you had.
The following user(s) said Thank You: dokwine
Please Log in or Create an account to join the conversation.
- dokwine
- Offline
- Senior Member
Less
More
- Posts: 76
- Thank you received: 11
16 Mar 2021 19:48 #202507
by dokwine
Replied by dokwine on topic Removing unnecessary servo threads?
Ok guys, thanks!. Guess I know what I need to do
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4860
17 Mar 2021 00:49 #202553
by andypugh
Replied by andypugh on topic Removing unnecessary servo threads?
Nobody else seems to have mentioned that _every_ linuxCNC machine has a "servo-thread". That's the name of the thread that motion control and mathematical calculations are done in.
Please Log in or Create an account to join the conversation.
- dokwine
- Offline
- Senior Member
Less
More
- Posts: 76
- Thank you received: 11
17 Mar 2021 01:04 - 17 Mar 2021 01:04 #202554
by dokwine
Replied by dokwine on topic Removing unnecessary servo threads?
Thank you Andy. I did understand that about the servo thread. Wasn’t quite so sure of the pid calculations and Hal pins though.
Last edit: 17 Mar 2021 01:04 by dokwine.
Please Log in or Create an account to join the conversation.
Time to create page: 0.054 seconds