Author Topic: PID CALCULATE  (Read 12317 times)

rnpico

  • Newbie
  • Posts: 5
    • View Profile
PID CALCULATE
« 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? ???

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:PID CALCULATE
« Reply #1 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

Email: support@triplc.com
Tel: 1-877-TRI-PLCS