Discrete pid equation what unit is T in??

bara_hence

Member
Join Date
Aug 2007
Location
Ockelbo
Posts
225
I wonder what unit the sample update time is in is it in minutes or seconds??

the equation: Un=Un_1+En(Kp+KiT+Kd/T)+En_1(-Kp-2*Kd/T)+En_2(Kd/T)


En=error
En_1 error previous
En_2 error before previous
Un=pid output
Un_1=previous pid output
 
bara_hence said:
I wonder what unit the sample update time is in is it in minutes or seconds??

the equation: Un=Un_1+En(Kp+KiT+Kd/T)+En_1(-Kp-2*Kd/T)+En_2(Kd/T)
What difference does it make? T can be either seconds or minutes but not both. The units must be consistent.

Why not write the PID like this:
u(n)=u(n-1)+E(n)*(Kp+KiT+Kd/T)+E(n-1)*(-Kp-2*Kd/T)+E(n-2)*(Kd/T)
Phil doesn't charge for using the multiply sign *. That way we know you are multiplying and not array indexing.

Singapore_Mats, it is good to see there are some that realize there is already wealth of information already on the forum and is only a search away.
 

Similar Topics

Hello, I have been developing a library of function blocks. One of the developed function blocks is the PID controller. I have created a Simulink...
Replies
7
Views
3,004
Hello, I have already searched for that in the forum but did not get any satisfying answer, so here it goes: I have a 1769-L36ERM that controls...
Replies
4
Views
3,121
I'd appreciate hearing opinions and experiences of going from discrete controllers to PLC control of temperature. We use a lot of Watlow and...
Replies
12
Views
5,990
Does anyone have any examples of how to control a temperature of a PID loop that is firing a discrete output for logix 5000? Any help would be...
Replies
4
Views
2,623
I have been assigned a project where I need to use a PID in a PLC5/80E to control the temperature of a chemical in a tank. The chemical goes...
Replies
3
Views
4,756
Back
Top Bottom