Internet PLC Forum

General => Technical support => Topic started by: rnpico on June 13, 2008, 06:07:01 PM

Title: PID CALCULATE
Post by: rnpico on June 13, 2008, 06:07:01 PM
We made a mathematical constants PID calculate and we got the next values:
Kp=0,5
Ki=0
Kd=0

But the T100MD doesn't work with Ki=Kd=0, so what can we do for making our PID loop work right? ???
Title: Re:PID CALCULATE
Post by: support on June 14, 2008, 10:10:12 AM
You can run PIDDEF with 0 for both the Ki and Kd and keeping only Kp. But since TBASIC doesn't run floating point math, you need to scale your Kp value into fixed point representation. So if you need 1 decimal place precision, Kp = 5 means 0.5. If you need 2 decimal place precision, set Kp = 50 which means 0.50