Dear Henrik et al.
I am showing here how I implement PID in my 8bit process controllers. I have deliberately shown it as pseudo code for ease of understanding.
Typical C conventions are used. += is add to, != is not equal to
PB is the proportional band in which you will like PID action to take place. Outside the band, the output is either on or off at all times depending on which side it is of the Setpoint (SV) PV is the present value of the process variable
Integral time and Derivative time are between 0 to 3600 units of time (rate at which PID is run). I run my routine for temperature control every second.




Bookmarks