Spindle PID close loop goes to the maximum value

More
16 Nov 2018 16:55 - 16 Nov 2018 16:56 #120845 by gantarone
Hi ,
I have a mesa 7i76e and a 7i85 ,
I'm trying to do a Close Loop Spindle but I think I have a configuration problem in my HAL

The encoder work well with exact value of rpm (on GUI)
when I try to set any speed value my Spindle goes to its maximum speed
Ex. S1000 the spindle goes to 7000 rpm

I tried to change the pid values ​​but the result does not change ....
attached my ini and hal files

Any help is appreciated!!!!
Attachments:
Last edit: 16 Nov 2018 16:56 by gantarone.

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

More
16 Nov 2018 17:32 - 16 Nov 2018 17:33 #120848 by PCW
The spindle PID feedback term is linked to the signal spindle-vel-fb-rpm:

net spindle-vel-fb-rpm => pid.s.feedback

but spindle-vel-fb-rpm is not driven (so will always be 0)

You probably want the PID feedback to come from the signal spindle-fb-rpm-abs:

net spindle-fb-rpm-abs abs.spindle.out => lowpass.spindle.in
Last edit: 16 Nov 2018 17:33 by PCW.
The following user(s) said Thank You: gantarone

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

More
16 Nov 2018 17:57 #120851 by alan_3301
Is this might be another pncconf bug? I had the same issue. It set net spindle-vel-fb-rpm => pid.s.feedback instead of net spindle-vel-fb-rpm-abs => pid.s.feedback
The following user(s) said Thank You: gantarone

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

More
16 Nov 2018 18:15 #120852 by PCW
Yes I think this is another pncconf bug

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

More
16 Nov 2018 19:22 #120859 by gantarone
Thanks for quick replay.....
I'll test it soon!!!

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

More
19 Nov 2018 10:57 #120984 by gantarone
It woks!!!!
Thanks
just another question ... can I see the PID "Calibration" Spindle like as axes (JOINT_0, JOINT_1, JOINT_N) to modify on fly PID?
Attachments:

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

More
19 Nov 2018 12:45 #120986 by alan_3301
I don't think there is any easy way, but you can make changes from a terminal window with halrun.

halrun setp pid.s.Pgain 100

When making changes I liked to first run the command with the existing setting, so that if the spindle went crazy, I can just press up arrow twice then enter, to reset the original setting. If that makes sense.
The following user(s) said Thank You: gantarone

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

More
19 Nov 2018 13:06 #120987 by gantarone
Thanks Alan!!!!

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

Time to create page: 0.072 seconds
Powered by Kunena Forum