Author Topic: piddef resets pidcompute data.  (Read 10053 times)

hareldvd

  • Newbie
  • Posts: 4
    • View Profile
piddef resets pidcompute data.
« on: February 25, 2005, 06:47:41 AM »
Hi,

We have finally implemented a distillation control unit based on On a T100MD unit.
Using pid channel we control the heater.
Unfortunately when a liquid such as oil is heated there are different phases which require different pid values. I have the ability to identify the phase where I need to change pid definitions but doing so resets the current pid calculations and starts back from zero. This causes a major instability state in the controller.

I was told by my boss that on some controllers you can set manual value to pid so I could restore the pidcompute result and have next pidcompute use new P I D values. Is that possible on any Tri products?

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:piddef resets pidcompute data.
« Reply #1 on: February 25, 2005, 04:49:32 PM »
It is not possible to execute the PIDDEF function without resetting the PID historical data.

To achieve what you want to do in the M-series PLC, you would have to  implement your own custom made PID function yourself using the TBASIC language. By means of a clock pulse you can periodically trigger a custom function that compare the feed back value to a set value and take the difference to apply to your own P, I and D multiplier.  You then need to use a DM variable to accumulate the integrator and also to compute the derivative  term based on the diffence between current value and previous value.   There should be text book that demonstrate how to implement PID using a Visual BASIC program on a PC and you can adapt that to TBASIC.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS