Why are there negative PID coefficients?

조회 수: 67 (최근 30일)
Maaz Madha
Maaz Madha 2022년 4월 24일
댓글: Sam Chak 2024년 6월 26일
Hi all
The transfer function I have is a type 1 transfer function so it doens't respond to step response and has 0 steady state error. . (The transfer function).
However, when I use PID controller only negative gains can stabilise it and not positive, which is unusual and something which perplexes me. I would appreciate any insight as to why is that so and what that tells us about the system. Any help would be appreciated

채택된 답변

Sam Chak
Sam Chak 2022년 4월 24일
편집: Sam Chak 2022년 4월 24일
You have to look into the plant transfer function first. On the denominator, the 's' can be factored out. On the numerator, the last term is a 'minus' sign. Thus, the step response of the plant will go into the negative direction.
s = tf('s');
Gp = 13.11*(s + 37.85)*(s - 35.58)*(s + 0.03922)/(s*(s^2 + 0.06348*s + 0.1765)*(s^2 + 19.91*s + 148.7))
step(Gp, 1e3)
Gp =
13.11 s^3 + 30.27 s^2 - 1.765e04 s - 692.4
-------------------------------------------------
s^5 + 19.97 s^4 + 150.1 s^3 + 12.95 s^2 + 26.25 s
tem
To make the closed-loop system goes in the positive direction, naturally, the polarity of the proportional control gain has to be reversed. In this example, only the proportional controller is used to demonstrate the concept, Gc = -2.5827e-4.
Gc = -2.5827e-4;
Gcl = feedback(Gp*Gc, 1)
step(Gcl)
Gcl =
-0.003386 s^3 - 0.007819 s^2 + 4.56 s + 0.1788
----------------------------------------------------------
s^5 + 19.97 s^4 + 150.1 s^3 + 12.95 s^2 + 30.81 s + 0.1788
Applying the final value theorem, your can see that the step response of the closed-lopp control system will converge to , when . The direction of the system response is successful inverted. Note that PI and PID controllers are not needed to stabilize the plant.
  댓글 수: 2
Muhammad Daffa Pratama
Muhammad Daffa Pratama 2024년 6월 19일
Hey I have the same problem but solved thanks to your explanation. But another problem arose. That negative proportional gain, when I check to its root locus, is in an unstable region. But my system is stable. How can that happen?
Sam Chak
Sam Chak 2024년 6월 26일
Can you post a New Question on MATLAB Answers and provide the transfer function or state-space of the system?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by