Tuesday, February 21, 2012

Basic Setup Help for Logix PID

Question :

How can I setup a basic working ControlLogix PID?

Environment :

RSLogix5000 programming and PID tuning

Caution

A ControlLogix PID is a fairly complex instruction which should not be used with any real world equipment unless:
  • The programmer understands how to setup the PID.
  • At the very least, the equipment is in a safe state.

Answer

To get a basic start on PID, the following steps can generally be used:
  1. Add a PID instruction by entering the following:
    1. The PID control tag.
    2. The tag to be used as the PID input into the PV field.
    3. A tag for TIEBACK (used in operator manual control) into the TIEBACK field.
    4. A tag to use for the output into the CV field.
  2. The PID can be used in a Periodic Task.
    • In this case, the rung should be unconditional 
    • The period of the task should be matched with the loop update time of the PID.
    • The period used is typically at least 10 times faster than the Loop Process time
  3. If using a Continuous Task, the PID should be regulated with a Timer bit.
    • Match the timer preset with the loop update time of the PID. 
      NOTE:
      If this is not done, then the calclulations of the PID will not be consistent. The contribution to the output due to integratal and derivative parts of the equation will be proportionately effected in relation to the scan time. This will cause inconsistent behavour from the PID if it is not regulated.
  4. Enter the PID Configuration screen, then enter appropriate information for:
    • Gains
    • Loop update time
    • Control action
    • Scaling ranges on the Scaling Tab
 By correctly filling in the above information, the PID will run.

Example ACD File

Attached is an ACD file that shows a simple setup for a PID. In this example, the PID is set to run from a 1 second timer and all scaling is set 0 to 1000.
An example of a PID and a PIDE running in a simulation can also be found in 449308 - Basic Simulation of PID and PIDE

References

For more detailed information on the ControlLogix PID, please see the ControlLogix General Instructions Manual.

Sourece : http://rockwellautomation.custhelp.com/app/answers/detail/a_id/40236

1 comment:

  1. I need to rewrite a program from rs500 to rs5000 and would like to use the values in the rs500 PID blocks, any idea of the best conversion method????

    ReplyDelete