Вы находитесь на странице: 1из 13

Recruit researchers Join for free Login

Advertisement

Industrial Internet of Things OPEN

Question Answers 10 Similar questions Related publications

Question Asked 30th Jul, 2019


Ozcan Zenger
Ankara University
How could I nd Kp,Ki,Kd from transfer function?
Hi everyone,I want to design a motor(transfer
function) which opens in 4 and 10 seconds.I have
transfer function which is 5/(s^2+18*s+1).My
supervisor said me rstly you should transform
step signal to ramp for input(Probably this provide
to open motors in 4 or 10 seconds) After that you
should nd Kp,Ki and Kd.I have transfer function
but i dont know how can i nd this parameters and
also how could i arrange to opening motor in 4 or
10 seconds? Is there anyone who can help me?
Sorry for my English.

With my best regards.

Motor English Simulink PID Control

Share

Why you can bank on


Candidate Search — now…

Organizations must rapidly adapt their


STEM hiring strategies to account for the
current economic downturn. It might be
tempting to assume a short-term view and
put certain aspects of… Read More

Advertisement
Most recent answer

K V Thulasi Ram 3rd Oct, 2019


Central Mechanical
Engineering Research Institute
Kp and Ki can be found by following methods

1. Trial and Error Method

Set integral and derivative terms to zero rst and


then increase the proportional gain until the
output of the control loop oscillates at a
constant rate. This increase of proportional gain
should be in such that response the system
becomes faster provided it should not make the
system unstable.
Once the P-response is fast enough, set the
integral term, so that the oscillations will be
gradually reduced. Change this I-value until the
steady-state error is reduced, but it may increase
overshoot.
Once P and I parameters have been set to the
desired values with minimal steady-state error,
increase the derivative gain until the system
reacts quickly to its set point. Increasing the
derivative term decreases the overshoot of the
controller response.

2. Zeigler-Nichols Method

a)method 1

Obtain a unit step response of the plant


experimentally and it may look‘s’ shaped curve
as shown in the gure below. This method
applies, if obtained response exhibit s-shaped
curve for unit step input otherwise it cannot be
applied. This curve can also be obtained by
dynamic simulation of the plant.

b)method 2

it is very similar to the trial and error method


where integral and derivative terms are set to the
zero, i.e., making Ti in nity and Td zero.
Increase the proportional gain such that the
output exhibits sustained oscillations. If the
system does not produce sustained oscillations
then this method cannot be applied. The gain at
which sustained oscillations produced is called
as critical gain

please Ref the image for tuning Kp and Ki

 pituning method1.JPG · 57.49 KB
 method2.JPG · 44.20 KB
Cite 1 Recommendation

Popular Answers (1)

Asma Meddeb 2nd Aug, 2019


ENSIT Tunisie

You can use the Matlab program that will help you
obtaining the parameters of the PID. It's the
simplest way !

Cite 8 Recommendations

All Answers (10)


Ozcan Zenger 30th Jul, 2019
Ankara University

I design this blocks still i dont know how can i


generate step input to ramp input and how can i
arrange to opening motor in 4 or 10 seconds.

 20190730_104747.jpg · 5.06 MB
Cite 1 Recommendation
Mohamed-Mourad 30th Jul, 2019
La
Badji Mokhtar - Annaba University
Dear Uzcan Zenger,

In fact there are classic methods such as the


Ziegler Nichols method to determine the gain of
the PID controller, however the simplest way is the
use of Matlab providing "pidtool" which
automatically chooses the optimal Kp Ki Kd PID
gains, which makes testing and error unnecessary.
Also you can access the tuning algorithm directly
using "pidtune" or through the graphical user using
"pidtool".

For more details and information about this


subject, i suggest you to see links and attached le
on topic.

PID ... - Control Tutorials for MATLAB and Simulink


- Introduction

ctms.engin.umich.edu/CTMS/index.php?
example=Introduction...

Determination of PID controller parameters from


step response ...

www.12000.org/my_notes/PID_ode/index.pdf

Best regards
 CHAPTER 10. PID CONTROL.pdf · 251.53 KB
Cite 2 Recommendations
Aissa Kheldoun 30th Jul, 2019
University M'Hamed
Bougara of Boumerdes
Dear Zenger,

If I have well understood you main concern is the


design of PID for you motor control. Here below
you will nd (a copy of the program is attached to
the message) a Matlab program that will help you
obtaining the parameters of the PID. Just copy and
paste in your matlab editor then run it to get the
PID parameters. Actually the program will give two
different PID controllers and you can choose the
one that ts your desired performances. The
second PID provides faster response than the rst
one.

regards .

clc;

clear; % here is your system 5/(s^2+18s+1)

num=[0 5];%

den=[1 18 1];% poles: P1=-17.9443, P2=-0.0557

G=tf(num,den);% poles are negative that's your


system is stable

[C_PID, info]=pidtune(G,'PIDF');

info

% the previous instruction gives the PID parameters


and the chosen open-loop crossover

% frequency

%you can test your PID using the step response as


follows:

T_PID=feedback(C_PID*G,1);

hold on

step(T_PID);

% the previous PID has crossover frequency of


0.0985 rad/s

% if you want a faster response, you have to


change the open-loop crossover

% frequency, for example


[C_PID_fast, info]=pidtune(G,'PIDF',1.0);

TI_PD_fast=feedback(C_PID_fast*G,1);

hold on

step(T_PID_fast);

 PID_Design.m · 665 B
Cite 2 Recommendations
Yew-Chung Chak 30th Jul, 2019
Politecnico di Torino

Hi Ozcan Zenger,

Covey's Habit #2: Begin With the End in Mind. This


provides an alternative theoretical approach for the
control design.

The plant's transfer function is given by Gp = 5/(s2


+ 18*s + 1). The plant is already stable but very
slow (due to 1 << 18). To reach the steady-state at
4 sec, a P-only controller can be considered to
achieve the desired closed-loop transfer function,
Gcl = 5·Kp/(s2 + 18*s + 5·Kp + 1) = 18/(s2 + 18*s +
19).

On the problem formulation, you need design a


controller Gc and place it in the loop, such that Gcl
is obtained. In short, you need to nd out how to
get from Gp to Gcl.

Comparing and solving the characteristic equation


give Kp = 3.6. Note that the design will give a
steady-state error of 1/19. As an exercise, try
designing a controller that gives Gcl = 2.25/(s2 +
3*s + 2.25). No steady-state error and no
overshoot.

 plot.PNG · 19.24 KB
Cite 2 Recommendations
Yew-Chung Chak 31st Jul, 2019
Politecnico di Torino

Hi Ozcan Zenger,

If the desired settling time is 10 sec, using the P-


only controller will result in a larger steady-state
error. Hence, a PI controller maybe considered. If
so, then the closed-loop transfer function becomes

Gcl = 5*(Kp·s + Ki)/[s3 + 18·s2 + (5·Kp + 1)·s + 5·Ki]

Since the order of denominator is 3 and the


coe cient of s2 cannot be manipulated, you can try
to make the coe cients of the polynomial as
"balanced" as possible. Balanced in this context
means that the coe cients of s2 and s1 should be
as close as possible and coe cient of s0 should be
approximately one-third of the coe cient of s1,
(because Gcl is a 3rd-order system).

One good candidate is s3 + 18·s2 + 18·s + 6.


Solving the simultaneous equations yields Kp =
17/5 and Ki = 6/5. The following m-code plots the
step response. Luckily, it turns out that the
response settles around 10 sec and the overshoot
is relatively acceptable.

s = tf('s');

Gp = 5/(s^2 + 18*s + 1)

kp = 17/5; ki = 6/5;

Gc = kp + ki/s

Gcl = Gp*Gc/(1 + Gp*Gc);

Gcl = minreal(Gcl)

step(Gcl, 20)

 plot.PNG · 19.73 KB
Cite 1 Recommendation
Wasim Ghder Soliman 1st Aug, 2019
Andhra University -
College of Engineering / Tartous University
- Faculty of Technical Engineering
Since you have a known plant model i.e. the T.F, so
you can tune the controller easly. However one
easy way is to use auto tuning option from the PID
block which gives you the parameters values, also
you can use traditional or optimal methods for
more accuracy...

Cite 1 Recommendation
Asma Meddeb 2nd Aug, 2019
ENSIT Tunisie

You can use the Matlab program that will help you
obtaining the parameters of the PID. It's the
simplest way !

Cite 8 Recommendations
Ravinder Kumar 17th Aug, 2019
Birla Institute of
Technology and Science Pilani
http://ctms.engin.umich.edu/CTMS/index.php?
example=Introduction&section=ControlPID

Cite 2 Recommendations
Kartik Sharma 18th Aug, 2019
Rajasthan Technical
University
The PID controller block you use before the plant
transfer function have auto tuning option to nd the
PID controller parameters. And you can manually
set your desired response in PID tuner which
changes the values of Kp, Ki and Kd accordingly.

Cite 1 Recommendation

Can you help by adding an


answer?
Answer

Add your answer


Add your answer

Advertisement

Similar questions and discussions

How to calculate Kp and Ki values?


Question 10 answers
Asked 29th Aug, 2012
Priyanka M M
I am designing a control technique for induction
motor using (direct torque control)DTC-SVM(space
vector modulation) in MATLAB. Controlling
parameter is torque and I am using PI controller for
controlling the model. Can anyone suggest a
simple method to determine kp and ki values in
MATLAB?

View
What are the separate and combined effects of
increasing proportional and derivative values of P I
controller in a feedback loop?
Question 9 answers
Asked 25th May, 2015
Maulik Kandpal
What are the separate and combined effects of
increasing proportional and derivative values of P I
controller in a feedback loop?

View
How can I design a PID controller unstable system
have rightside pole and zero?
Question 8 answers
Asked 4th May, 2018
Omer Cingoz

To simplify, I have a system whose transfer


function looks in PNG. The system is unstable and
there exist no Kp, Ki, Kd such that the system
becomes stable. Thank you. 

View
Is PI controller still the best controller up till now?
Question 12 answers
Asked 19th Jun, 2017
Mariam Ahmad Sameh Abbadi
My supervisor asked me to search for the best
controller, giving me a hint that a new controller is
now used called the PIDA controller (Proportional
Integral Derivative Accelerator )....is it better than
the PI? or the PI still the best ever?

View
How can I design the parameters of PI controller in
a control system?
Question 11 answers
Asked 2nd Sep, 2015
Miao Fang
As we design a controller of PV gridconnected
system to track a certain signal,such as a current
inner loop and a voltage outer loop,what is the
basis to determine the parameters of PI controller?
What the relationship between the proportional &
integral constant and the generated current error or
voltage error?I am looking forward to your
help!Thank you very much!

View
How can I show characteristics for a controlled
system using MATLAB/Simulink?
Question 9 answers
Asked 20th Apr, 2015
Khalil Mokhtari
How can I display characteristics of a controlled
system such as settling time and overshoot in
MATLAB/Simulink?

View
Tuning PID without process transfer function?
Question 45 answers
Asked 15th Dec, 2013
Marada Naveen Kumar
I am having a closed loop control system where i
use a PID controller. But if the transfer function of
the process is complex to derive, then how can i
tune the gains of the controller to have my desired
response?

Please attach any tech notes or papers.


Thanks in advance.

View
How to implement PI block inside a function in
SIMULINK?
Question 6 answers
Asked 20th Aug, 2019
Akram Elhelbawy
simply, I can put a PI block in simulink and specify
gain and sampling time ..

BUT this time I need to remove this block from


simulink and put a function block, where inside, I
can set Kp .. Ki.. Kd .. sampling .. FOR DISCRETE
SYSTEM

so, is there a function in matlab which can do so


OR I should write the PI equations "manually" inside
that function block???

THANKS

View
Is a good practice to use one PID in rise time and
another PID for steady time in order to eliminate
oscillations during steady time?
Question 7 answers
Asked 4th Jul, 2019
Ruben Hernando
I'm trying to control temperature with PID(Kp,Ki,
Kd). During the rise time the system use one PID
and when target is reached the system switch to
another PID with other parameter in order to
eliminate the oscillation. I know that I can remove
oscillations increasing Kd but in this case it does
not work.

Results of real time system

Control temperature with constant PID: see gure


onePID.png

Control temperature using PID1 during rise time


(blue color) and when temperature reach the target,
the controller is changed to PID2 (Steady state
error: black color): see gure TWOPID.png

1. void setTarget(...) { mPid = pid1; } void


steadyStateError() { oat e = fabs( temperature -
target); if(e<=0) mPID = pid2; }
View

Related Publications

Undesired Changes in PID Controller Model Due to


Simulators
Article Full-text available
Apr 2013
Paz-Pe · Cristobal Vargas
In this work we propose the simulation of a PID
controller to solve two problems, namely: 1)
Recovery signal with perturbation, using Simulink.
2) Tracking signal for a motor with perturbation in
two ways, using Simulink and using a Matlab
program. The aim of this work is to show particular
examples, where Simulink changes the expected
behavior of...

View
The control structure for dc motor based on the
atness control
Article
Dec 2017
Thang Nguyen Trong
This article presents the new control structure for a
Direct Current Motor (DC Motor) using the atness-
control principle. Basic on the mathematical model
of DC Motors, the author demonstrates the
application ability of the fatness-control theory to
control the DC Motor, and then calculates the
parameters and proposes the structure of the
atness...
View
Auto PID Tuning of Speed Control of DC Motor
Using Particle Swarm Optimization Based on FPGA
Article
Jul 2015
Hilal Tayara · Deokjin Lee · Kil To Chong
This paper introduces auto tuning of proportional-
integral-derivative (PID) controllers of DC motor
using particle swarm optimization (PSO) method.
The DC motor was modeled in Simulink and PSO
was implanted on FPGA “cyclone IV E” using the
soft processor NIOS II. The results were e cient in
reducing the steady state error, settling time, rise
tim...
View
View

Got a technical question?


Get high-quality answers from experts.

Ask a question

Advertisement

Company Support Business


solutions
About us Help
News Center Advertising
Careers Recruiting

© 2008-2020 ResearchGate GmbH. All rights reserved. Terms · Privacy · Copyright · Imprint

Вам также может понравиться