[SOLVED] Bug: PnCConf does not set up servo spindle PID feedback correctly.

More
5 years 9 months ago - 5 years 9 months ago #196431 by PCW
Note that the encoder velocity signal "spindle-vel-fb-rpm" is not connected to anything

Code:
#******************* # SPINDLE #******************* -------------------------------------------- net spindle-vel-fb-rpm-abs => pid.s.feedback # ---Encoder feedback signals/setup--- net spindle-vel-fb-rpm <= hm2_7i76e.0.encoder.00.velocity-rpm
I would change this:

Code:
setp scale.spindle.gain 60 setp lowpass.spindle.gain 1.000000 net spindle-vel-fb-rps => scale.spindle.in net spindle-fb-rpm scale.spindle.out => abs.spindle.in net spindle-fb-rpm-abs abs.spindle.out => lowpass.spindle.in net spindle-fb-rpm-abs-filtered lowpass.spindle.out

to this:

Code:
setp lowpass.spindle.gain 1.000000 net spindle-vel-fb-rpm => abs.spindle.in net spindle-fb-rpm-abs abs.spindle.out => lowpass.spindle.in net spindle-fb-rpm-abs-filtered lowpass.spindle.out

and remove the scale component since it is not used:

Code:
#addf scale.spindle servo-thread
Last edit: 5 years 9 months ago by PCW.
The following user(s) said Thank You: Steffen

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

More
5 years 9 months ago #196440 by Steffen
Hi PCW,

thank you, i just tested it but still the same problem.

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

More
5 years 9 months ago - 5 years 9 months ago #196441 by PCW
Can you post the current hal/ini files?

Did you look at the pid.s.command and pid.s.feedback pins?
These values are key to diagnosing any closed loop speed control issue
Last edit: 5 years 9 months ago by PCW.
The following user(s) said Thank You: Steffen

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

More
5 years 9 months ago #196442 by Steffen
here are the new files.

i have no counts at the pid.s.feedback pin

File Attachment:

File Name: meine_Linu...1-24.ini
File Size:3.63 KB

File Attachment:

File Name: meine_Linu...1-24.hal
File Size:10.27 KB

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

More
5 years 9 months ago #196445 by PCW
Code:
net spindle-vel-fb-rpm-abs => pid.s.feedback

should be

Code:
net spindle-fb-rpm-abs => pid.s.feedback
The following user(s) said Thank You: besriworld, Steffen

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

More
5 years 9 months ago #196447 by Steffen
it works, thank you very much.

Steffen

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

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