If servo period is changed the coresponding P values for PID do not change

  • tommylight
  • tommylight's Avatar Topic Author
  • Away
  • Moderator
  • Moderator
More
22 Jul 2026 21:06 #347968 by tommylight
Noticed this lately, if servo period is set to say 2000000 the P values will remain at 1000 (should be 500), and that causes issues where the steppers run rough or joint errors occur often.
How much trouble would it be to add the feature to calculate the P values for servo period entered?

Please Log in or Create an account to join the conversation.

More
23 Jul 2026 09:43 #347984 by Aciera
The 'pncconf' configuration tool does this automatically.

If you want to check the `P` values in the ini file against the `SERVO_PERIOD` then this might be something that a GUI could do on start up followed by a message pop up in the GUI.

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar Topic Author
  • Away
  • Moderator
  • Moderator
More
23 Jul 2026 13:10 #347990 by tommylight

The 'pncconf' configuration tool does this automatically.

Nope, it does not when editing an existing config for sure, did not check when creating a new one.
This was on 2.10 or master.

Please Log in or Create an account to join the conversation.

More
23 Jul 2026 13:23 - 23 Jul 2026 13:28 #347992 by Aciera
Definitely works when creating a new config (tested on 2.9.10 and master) .

[edit]
It does not work when editing an existing config.
Last edit: 23 Jul 2026 13:28 by Aciera.
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar Topic Author
  • Away
  • Moderator
  • Moderator
More
23 Jul 2026 14:45 #347996 by tommylight
Thank you Aciera, i do not use wizards as i am used to manually editing everything, but been forcing myself to use them lately.

Please Log in or Create an account to join the conversation.

More
23 Jul 2026 15:50 - 23 Jul 2026 16:23 #348002 by Aciera
I've had a look and we could generate a popup when the servo period has been changed in an existing config:

 

PR is here: github.com/LinuxCNC/linuxcnc/pull/4263
Attachments:
Last edit: 23 Jul 2026 16:23 by Aciera.
The following user(s) said Thank You: tommylight, Clive S

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar Topic Author
  • Away
  • Moderator
  • Moderator
More
23 Jul 2026 20:30 #348015 by tommylight
Nice, thank you.

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.135 seconds
Powered by Kunena Forum