Spindle PID close loop goes to the maximum value
16 Nov 2018 16:55 - 16 Nov 2018 16:56 #120845
by gantarone
Spindle PID close loop goes to the maximum value was created 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!!!!
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!!!!
Last edit: 16 Nov 2018 16:56 by gantarone.
Please Log in or Create an account to join the conversation.
16 Nov 2018 17:32 - 16 Nov 2018 17:33 #120848
by PCW
Replied by PCW on topic Spindle PID close loop goes to the maximum value
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
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.
16 Nov 2018 17:57 #120851
by alan_3301
Replied by alan_3301 on topic Spindle PID close loop goes to the maximum value
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.
16 Nov 2018 18:15 #120852
by PCW
Replied by PCW on topic Spindle PID close loop goes to the maximum value
Yes I think this is another pncconf bug
Please Log in or Create an account to join the conversation.
16 Nov 2018 19:22 #120859
by gantarone
Replied by gantarone on topic Spindle PID close loop goes to the maximum value
Thanks for quick replay.....
I'll test it soon!!!
I'll test it soon!!!
Please Log in or Create an account to join the conversation.
19 Nov 2018 10:57 #120984
by gantarone
Replied by gantarone on topic Spindle PID close loop goes to the maximum value
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?
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?
Please Log in or Create an account to join the conversation.
19 Nov 2018 12:45 #120986
by alan_3301
Replied by alan_3301 on topic Spindle PID close loop goes to the maximum value
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.
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.
19 Nov 2018 13:06 #120987
by gantarone
Replied by gantarone on topic Spindle PID close loop goes to the maximum value
Thanks Alan!!!!
Please Log in or Create an account to join the conversation.
Time to create page: 0.072 seconds