previous page next page reference home emBASIC home page

15.3.1 Regulator functions PID
PID regulator function with a long parameter set:
E is difference (input value)
E1 and E2 are last difference and the one before
KP is proportional factor
KD differential factor
KI integral factor
YU and YL are upper and lower bounds for regulating variable (output)
AC is the accumulator (to be able to clear it) SPID
As above but speed algorithm. PI
As above but PI only SPI
As above but speed algorithm