How to generate first value for Kp, Ki of PID in current controller

38 ビュー (過去 30 日間)
adhavan d
adhavan d 2023 年 7 月 6 日
コメント済み: Aquatris 2023 年 7 月 22 日
How to generate first value for Kp, Ki of PID for Id,Iq in current controller.Now I put random values for initial kp,ki values.For Example ,For Many projects ,I put kp =1,Ki = 10.After that ,I have to tune using auto tuning method.So,Do you have any method or formula for generate initial value for Kp,Ki of PID in current controller.
  2 件のコメント
Sam Chak
Sam Chak 2023 年 7 月 6 日
Can you show the mathematical model of the plant or system?
The initial values for the control gains can be generated when the nominal model is available.
How you want to tune them later to fit the control objectives is another story.
Aquatris
Aquatris 2023 年 7 月 22 日
This depends on a lot of things. However if you know nothing about the system, there is no way to do this. You can try to follow certain PID tuning methods (ziegler nichols is the most popular for simple systems) but then you need to know the order of magnitude of your gains regardsless.

サインインしてコメントする。

採用された回答

Sabin
Sabin 2023 年 7 月 6 日
It is possible to use pole placement as a starting point. If you can approximate the plant with a first order system, it is easy to compute the gains in MATLAB. See below an example for tuning the PMSM current controllers if we know the values of inductance L (can be Ld and Lq or same L depending on if surface or interior magnets) and resistance R. The only parameter we will need to define is the bandwidth.
% G(s) = 1/(L.s+R)=(1/R)/((L/R).s+1)
w0=Hz*2*pi; % bandwidth [rad/s]
zeta=1; % attenuation
Kp=2*zeta*w0*L-R; % proportional gain
Ki=Kp*(L*w0^2); % integral gain
  1 件のコメント
adhavan d
adhavan d 2023 年 7 月 7 日
can you tell how to calculate frequency which is used for calculating Bandwidth(w0)?

サインインしてコメントする。

その他の回答 (0 件)

コミュニティ

カテゴリ

Help Center および File ExchangePID Controller Tuning についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by