×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

PID controller in space state form

PID controller in space state form

PID controller in space state form

(OP)
Hello,
I have a process which has Hsys= k/s(1+Ts)
I designed a Pid controller for this process. I have to used space state representation of my system for simulation.

xdot=(I+ Te*A)*xk+ Te*B*uk
yk=C*xk // yk=Ysys

I want to proceed in the same way for pid controller to be able to see, at each time, the output of my pid; ypid= u_sys=uk
I don't know where I have a mistake, cause in the simulation I get wrong things...
x1= integral(e)
x2=e = x1dot
x3= edot= x2dot
e= r-Ysys
e= r- k*u/s(1+Ts)
It will give me: edot*(1+T*s)=-k*u
edot + T*edot.dot = -k*u
edot.dot=-k*u/T - edot/T
edot.dot=-k*u/T - x3/T

I will then have: matrix A for pid system:
Apid=([0 1 0],[0 0 1 ],[0 0 -1/T])
Bpid= ([0 0 -k/T].transpose()
Cpid=([Ki, Kp, Kd)])

Anyone know what I did wrong ? or if there a simple way to do ?

RE: PID controller in space state form

(OP)
Thank you for your answer, I tried to understand what was done in the file your gave me the link, but I couldn't understand the formula is used to ged PID output.
Thank you

RE: PID controller in space state form

The PID itself is simple. Ackermann's method of computing gains is documented many places on the internet. Ackermann's method place poles in the z domain.
One thing you may not understand is the you provided the continuous time matrices but the matrices must be converted to discrete time matrices for calculations. Matlab has and expm() or c2d() function that will do this for you so page 2 can be ignored.

Peter Nachtwey
Delta Computer Systems
http://www.deltamotion.com
http://forum.deltamotion.com/

RE: PID controller in space state form

School problems are not permitted in this forum...

______________________________________________________________________________
This is normally the space where people post something insightful.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login



News


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close