- Configuring LinuxCNC
- Configuration Tools
- PnCConf Wizard
- Stepper configs have suboptimal P term setting
Stepper configs have suboptimal P term setting
09 Feb 2016 00:17 #69800
by PCW
Stepper configs have suboptimal P term setting was created by PCW
PnPConf created stepper configs use a initial P value of 50
This is much too low for stepper configs and will result in following errors (50 is ok as a starting point for servos)
For stepper configs, P should be 1/Servo-thread-period so P=1000 for the standard 1ms servo thread period
This is much too low for stepper configs and will result in following errors (50 is ok as a starting point for servos)
For stepper configs, P should be 1/Servo-thread-period so P=1000 for the standard 1ms servo thread period
Please Log in or Create an account to join the conversation.
09 Feb 2016 01:08 #69806
by cmorley
Replied by cmorley on topic Stepper configs have suboptimal P term setting
Ok I will see what I can do
Please Log in or Create an account to join the conversation.
09 Feb 2016 01:22 #69807
by cmorley
Replied by cmorley on topic Stepper configs have suboptimal P term setting
I pushed a better fix into 2.7
steppers get a calculated P
servos get 50
This could still be screwed up if the user set the axis as a servo then changes to a stepper but its a little better.
Thanks for the heads up
Chris M
steppers get a calculated P
servos get 50
This could still be screwed up if the user set the axis as a servo then changes to a stepper but its a little better.
Thanks for the heads up
Chris M
Please Log in or Create an account to join the conversation.
09 Feb 2016 01:46 - 09 Feb 2016 01:48 #69808
by PCW
Replied by PCW on topic Stepper configs have suboptimal P term setting
I think you may have the calculation wrong,
P should be 1/ servo-period-in-seconds, not servo period/1000
so P=1000 at 1 ms, 500 at 2 ms, 4000 at 250 usec
servo-period-in-ns/1000 is correct for 1 ms but wrong everywhere else
P should be 1/ servo-period-in-seconds, not servo period/1000
so P=1000 at 1 ms, 500 at 2 ms, 4000 at 250 usec
servo-period-in-ns/1000 is correct for 1 ms but wrong everywhere else
Last edit: 09 Feb 2016 01:48 by PCW.
Please Log in or Create an account to join the conversation.
09 Feb 2016 06:18 #69822
by cmorley
Replied by cmorley on topic Stepper configs have suboptimal P term setting
damn ok ill fix
Please Log in or Create an account to join the conversation.
09 Feb 2016 06:31 #69823
by cmorley
Replied by cmorley on topic Stepper configs have suboptimal P term setting
ok pushed a fix again.
Thanks for checking!
Chris M
Thanks for checking!
Chris M
Please Log in or Create an account to join the conversation.
- guymalpass
- Offline
- Senior Member
Less
More
- Posts: 75
- Thank you received: 1
11 Dec 2016 19:33 #83920
by guymalpass
Replied by guymalpass on topic Stepper configs have suboptimal P term setting
Hi Peter,
I'm running a closed loop stepper system using a 7i76, 7i77 and 5i25 and have recently noticed your post about P terms being 1/servo period. I have been using a P term of 170 so decided to try out 1000 (my servo period is 1000000) but I just get oscillation. Is there anything I should be looking at to explain why I am so far off your recommended value?
To clarify my stable settings are P-170 I-0 D-0 FF1-0.994 FF2-0.000025 on master branch.
Thanks,
Guy
I'm running a closed loop stepper system using a 7i76, 7i77 and 5i25 and have recently noticed your post about P terms being 1/servo period. I have been using a P term of 170 so decided to try out 1000 (my servo period is 1000000) but I just get oscillation. Is there anything I should be looking at to explain why I am so far off your recommended value?
To clarify my stable settings are P-170 I-0 D-0 FF1-0.994 FF2-0.000025 on master branch.
Thanks,
Guy
Please Log in or Create an account to join the conversation.
11 Dec 2016 19:59 #83921
by PCW
Replied by PCW on topic Stepper configs have suboptimal P term setting
For a closed loop system (closed with encoder feedback)
1/T-servo is probably way too much P gain
because of delays from step output to physical motion
Only very tiny delays are present for "local" pid feedback so the 1/T-servo works and matches
the drivers position mode settings (that correct the position error completely in the next servo period)
1/T-servo is probably way too much P gain
because of delays from step output to physical motion
Only very tiny delays are present for "local" pid feedback so the 1/T-servo works and matches
the drivers position mode settings (that correct the position error completely in the next servo period)
Please Log in or Create an account to join the conversation.
- guymalpass
- Offline
- Senior Member
Less
More
- Posts: 75
- Thank you received: 1
11 Dec 2016 20:08 #83922
by guymalpass
Replied by guymalpass on topic Stepper configs have suboptimal P term setting
My mistake I thought the post was referring to closed loop setups.
Thanks
Thanks
Please Log in or Create an account to join the conversation.
11 Dec 2016 20:52 #83923
by PCW
Replied by PCW on topic Stepper configs have suboptimal P term setting
NP, I probably was not clear, its a bit confusing since they are both closed loop
(though one is closed locally to the stepgen position counter)
(though one is closed locally to the stepgen position counter)
Please Log in or Create an account to join the conversation.
Moderators: cmorley
- Configuring LinuxCNC
- Configuration Tools
- PnCConf Wizard
- Stepper configs have suboptimal P term setting
Time to create page: 0.073 seconds