Skip to main content

PID instruction in Allen Bradley PLC Closed Loop Control




PID instruction in Allen Bradley PLC [Proportional/Integral/Derivative] Closed Loop Control


For  Processor SLC 5/02SLC 5/03SLC 5/04SLC 5/05 

 



MicroLogix 1200 and MicroLogix 1500 (A special PID file replaces the old integer file control block.)








Description of PID in PLC


 This output instruction is used to control physical properties such as temperature, pressure, liquid level, or flow rate of process loops.

The PID instruction normally controls a closed loop using inputs from an analog input module and providing an output to an analog output module as a response to effectively hold a process variable at a desired set point.

The PID equation controls the process by sending an output signal to the actuator. The greater the error between the setpoint and the process variable input, the greater the output signal, and vice versa. An additional value (feed forward or bias) can be added to the control output as an offset. The result of the PID calculation (control variable) will drive the process variable you are controlling toward the set point.

The PID instruction can be operated in the timed mode or the STI mode. In the timed mode, the instruction updates its output periodically at a user-selectable rate. In the STI mode, the instruction should be placed in an STI interrupt subroutine. It then updates its output every time the STI subroutine is scanned. The STI time interval and the PID loop update rate must be the same in order for the equation to execute properly.
Important: The integer control block can no longer be used with SoftLogix 5 version 2.0 and higher. 



Entering Parameters in PID Instruction



PID File - (MicroLogix 1200 and 1500 only) Specify a PID file. If you have not already defined a PD filetype among your data files, it will be created for you. The file length is fixed at 23 words. The PD file replaces the old integer file control block.

Control Block Length - (Not valid with MicroLogix 1200 or 1500) Specify an integer file, for example N7:0. The file length is fixed at 23 words. 

Process Variable PV - The element address that stores the process input value. This address can be the location of the analog input word where the value of the input A/D is stored. You can also enter an integer address if you choose to pre-scale your input value to the range 0-16383.

Control Variable CV - The element address that stores the PID output. The output value ranges from 0-16383, with 16383 being the 100% "ON" value. This is normally an integer address, so that you can scale the PID output range to the particular analog range your application requires.

Setup Screen - Double click Setup Screen on the instruction to bring up a display that prompts you for other parameters you must enter to fully program the PID instruction.
Clicking Setup Screen on the PID instruction displays a dialog that allows you to enter additional parameters. These parameters are described here.

                                                                                                                                 Source:Rockwell Software 

Comments

Popular posts from this blog

NE566 Function Generator Circuit Diagram

The NE566 Function Generator is a Voltage-Controlled Oscillator of exceptional linearity with buf fered square wave and triangle wave outputs. The frequency of oscillation is determined by an external resistor and capacitor and the voltage applied to the control terminal. The Oscillator CAN be programmed over a ten-to-one frequency range by proper selection of an external resistance and modulated over a ten-to-one range by the control voltage, with exceptional linearity.  FMAX = 1 MHz     WIDE 1000:1 Continuous Sweep Possible  NE566 Function Generator Circuit Diagram Pdf Datasheet  Sourced by : Circuitsstream

Long Loopstick Antenna Circuit Diagram

Circuit Diagram  Description Wound on a 3 foot length of PVC pipe, the long loopstick antenna was an experiment to try to improve AM radio reception without using a long wire or ground. It works fairly well and greatly improved reception of a weak station 130 miles away. A longer rod antenna will probably work better if space allows. The number of turns of wire needed for the loopstick can be worked out from the single layer, air core inductance formula: Inductance = (radius^2 * turns^2) / ((9*radius)+(10*length)) where dimensions are in inches and inductance is in microhenrys. The inductance should be about 230 microhenrys to operate with a standard AM radio tuning capacitor (33-330 pF). The 3 foot PVC pipe is wound with approximately 500 evenly spaced turns of #24 copper wire which forms an inductor of about 170 microhenrys, but I ended up with a little more (213uH) because the winding spacing wasn't exactly even. A secondary coil of about 50 turns is wound along the length of th...