Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 56 of 68

DL405 User Manual: Chapter 8: PID Loop Operation (DL450 only), pages 499 to 504

Pages 499 to 504 of 608, from DL405 User Manual

The original document is the PDF (8.2 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the AutomationDirect D4-08B-1, AutomationDirect D4-08ND3S, AutomationDirect D4-16TA, PLC Direct D4-16TD2, AutomationDirect D4-32ND3-1, Konnect-It D4-08B-1, Koyo D4-08B-1, Konnect-It D4-08ND3S, and 6 more models

Page 499

PID Loop Operation (DL450 only)

8--71

The example program shows how an analog input module, F4--08AD is used to setup a PID loop. This example assumes that the PID table for loop 1 has a beginning address of V3000. All of the analog I/O modules used with the DL450 is setup in a similar manner. Refer to the DL405 Analog I/O Manual for the setup information for the particular module that you will be using. Note that the modules used in the PID loop example program were set up for binary format. They could have been set up for BCD format. In the later case, the BCD data would have to be converted to binary format before being stored to the setpoint and process variable, and the control output would have to be converted from binary to BCD before being stored to the analog output. By following the steps outlined in this chapter, you should be able to setup workable PID control loops. The DirectSOFT Programming Software Manual provides more information for the use of PID View.

PID Loop Operation (DL450 Only) Maintenance DL405 User Manual, 4th Edition

Page 500

8--72

PID Loop Operation (DL450 only)

Troubleshooting Tips Q. The loop will not go into Automatic Mode. A. Check the following for possible causes: S The PLC is in Program Mode. It must be in Run Mode for loops to run. S A PV alarm exists, or a PV alarm programming error exists. S The loop is the major loop of a cascaded pair, and the minor loop is not in Cascade Mode.

Maintenance and Troubleshooting

PID Loop Operation (DL450 Only)

Q. The Control Output just stays at zero constantly when the loop is in Automatic Mode. A. Check the following for possible causes: S The Control Output upper limit in loop table location V+31 is zero. S The loop is driven into saturation, because the error never goes to zero value and changes (algebraic) sign. Q. The Control Output value is not zero, but it is incorrect. A. Check the following for possible cause: S The gain values are entered improperly. Remember, gains are entered in the loop table in BCD, while the SP and PV are in binary. If you are using DirectSOFT 5, PID View displays the SP, PV, Bias and Control output in decimal, converting it to binary before updating the loop table. Q. The Ramp/Soak Generator does not operate when I activate the Start bit. A. Check the following for possible causes: S The Ramp/Soak enable bit is off. Check the status of bit 11 of loop parameter table location V+00. It must be set =1. S The hold bit or other bits in the Ramp/Soak control are on. S The beginning SP value and the first ramp ending SP value are the same, so first ramp segment has no slope and consequently has no duration. The ramp/soak generator moves quickly to the soak segment, giving the illusion that the first ramp is not working. S The loop is in Cascade Mode, and is trying to get the SP remotely. S The SP upper limit value in the loop table location V+27 is too low. S Check your ladder program to verify it is not writing to the SP location (V+02 in the loop table). A quick way to do this is to temporarily place an end coil at the beginning of your program, then go to PLC Run Mode, and manually start the ramp/soak generator. Q. The PV value in the table is constant, even though the analog module receives the PV signal. A. Your ladder program must read the analog value from the module successfully and write it into the loop table V+03 location. Verify that the analog module is generating the value, and that the ladder is working. Q. The Derivative gain doesn’t seem to have any affect on the output. A. The derivative limit is probably enabled (see section on derivative gain limiting).

DL405 User Manual, 4th Edition

Page 501

PID Loop Operation (DL450 only)

8--73

Maintenance

DL405 User Manual, 4th Edition

PID Loop Operation (DL450 Only)

Q. The loop Setpoint appears to be changing by itself. A. Check the following for possible causes: S The Ramp/Soak generator is enabled, and is generating setpoints. S If this symptom occurs on loop Manual-to-Auto Mode changes, the loop is in Bumpless Transfer Mode 1. S Check your ladder program to verify it is not writing to the SP location (V+02 in the loop table). A quick way to do this is to temporarily place an end coil at the beginning of your program, then go to PLC Run Mode. Q. The SP and PV values I enter with DirectSOFT work okay, but these values do not work properly when the ladder program writes the data. A. The PID View in DirectSOFT lets you enter SP, PV, and Bias values in decimal, and displays them in decimal for your convenience. For example, when the data format is 12 bit unipolar, the values range from 0 to 4095. However, the loop table actually requires these in hex, so DirectSOFT converts them for you. The values in the table range from 0 to FFF, for 12-bit unipolar format. Your ladder program must convert constant values from their BCD format (when entered as Kxxxx) to binary with the BIN instruction or you must enter them in the constant field (Kxxxx) as the hex equivalent of the decimal value. Q. The loop seems unstable and impossible to tune, no matter what gains I use. A. Check the following for possible causes: S The loop sample time is set too long. Refer to the section near the front of this chapter on selecting the loop update time. S The gains are too high. Start out by reducing the derivative gain to zero. Then reduce the integral gain by increasing the integral time value, and the proportional gain if necessary. S There is too much transfer lag in your process. This means the PV reacts sluggishly to control output changes. There may be too much “distance” between actuator and PV sensor, or the actuator may be weak in its ability to transfer energy into the process. S There may be a process disturbance that is over-powering the loop. Make sure the PV is relatively steady when the SP is not changing.

Page 502

8--74

PID Loop Operation (DL450 only)

Maintenance and Troubleshooting

PID Loop Operation (DL450 Only)

Glossary of PID Loop Terminology Automatic Mode

An operational mode of a loop, in which it makes PID calculations and updates the loop’s control output.

Bias Freeze

A method of preserving the bias value (operating point) for a control output, by inhibiting the integrator when the output goes out-of-range. The benefit is a faster loop recovery.

Bias Term

In the position form of the PID equation, it is the sum of the integrator and the initial control output value.

Bumpless Transfer

A method of changing the operation mode of a loop while avoiding the usual sudden change in control output level. This consequence is avoided by artificially making the SP and PV equal, or the bias term and control output equal at the moment of mode change.

Cascaded Loops

A cascaded loop receives its setpoint from the output of another loop. Cascaded loops have a major/minor relationship, and work together to ultimately control one PV.

Cascade Mode

An operational mode of a loop, in which it receives its SP from another loop’s output.

Continuous Control

Control of a process done by delivering a smooth (analog) signal as the control output.

Direct-Acting Loop

A loop in which the PV increases in response to a control output increase. In other words, the process has a positive gain.

Error

The difference in value between the SP and PV,

Error Deadband

An optional feature which makes the loop insensitive to errors when they are small. You can specify the size of the deadband.

Error Squared

An optional feature which multiplies the error by itself, but retains the original algebraic sign. It reduces the effect of small errors, while magnifying the effect of large errors.

Feedforward

A method of optimizing the control response of a loop when a change in setpoint or disturbance offset is known and has a quantifiable effect on the bias term.

Control Output

The numerical result of a PID equation which is sent by the loop with the intention of nulling out the current error.

Derivative Gain

A constant that determines the magnitude of the PID derivative term in response to the current error.

Integral Gain

A constant that determines the magnitude of the PID integral term in response to the current error.

Major Loop

In cascade control, it is the loop that generates a setpoint for the cascaded loop.

Manual Mode

An operational mode of a loop, in which the PID calculations are stopped. The operator must manually control the loop by writing to the control output value directly.

Minor Loop

In cascade control, the minor loop is the subordinate loop that receives its SP from the major loop.

On / Off Control

A simple method of controlling a process, through on/off application of energy into the system. The mass of the process averages the on/off effect for a relatively smooth PV. A simple ladder program can convert the DL450’s continuous loop output to on/off control.

PID Loop

A mathematical method of closed-loop control involving the sum of three terms based on proportional, integral, and derivative error values. The three terms have independent gain constants, allowing one to optimize (tune) the loop for a particular physical system.

Position Algorithm

The control output is calculated so it responds to the displacement (position) of the PV from the SP (error term)

Process

A manufacturing procedure which adds value to raw materials. Process control particularly refers to inducing chemical changes to the material in process.

Process Variable (PV)

A quantitative measurement of a physical property of the material in process, which affects final product quality and is important to monitor and control.

DL405 User Manual, 4th Edition

Error=SP -- PV

Page 503

PID Loop Operation (DL450 only)

8--75

PV Absolute Alarm

A programmable alarm that compares the PV value to alarm threshold values.

PV Deviation Alarm

A programmable alarm that compares the difference between the SP and PV values to a deviation threshold value.

Ramp / Soak Profile

A set of SP values called a profile, which is generated in real time upon each loop calculation. The profile consists of a series of ramp and soak segment pairs, greatly simplifying the task of programming the PLC to generate such SP sequences.

Rate

Also called differentiator, the rate term responds to the changes in the error term.

Remote Setpoint

The location where a loop reads its setpoint when it is configured as the minor loop in a cascaded loop topology.

Reset

Also called integrator, the reset term adds each sampled error to the previous, maintaining a running total called the bias.

Reset Windup

A condition created when the loop is unable to find equilibrium, and the persistent error causes the integrator (reset) sum to grow excessively (windup). Reset windup causes an extra recovery delay when the original loop fault is remedied.

Reverse-Acting Loop

A loop in which the PV increases in response to a control output decrease. In other words, the process has a negative gain.

Sampling time

The time between PID calculations. The CPU method of process control is called a sampling controller, because it samples the SP and PV only periodically.

Setpoint (SP)

The desired value for the process variable. The setpoint (SP) is the input command to the loop controller during closed loop operation.

Soak Deviation

The soak deviation is a measure of the difference between the SP and PV during a soak segment of the Ramp/Soak profile, when the Ramp / Soak generator is active.

Step Response

The behavior of the process variable in response to a step change in the SP (in closed loop operation), or a step change in the control output (in open loop operation)

Transfer

To change from one loop operational mode to another ( between Manual, Auto, or Cascade). The word “transfer” probably refers to the transfer of control of the control output or the SP, depending on the particular mode change.

Velocity Algorithm

The control output is calculated to represent the rate of change (velocity) for the PV to become equal to the SP.

DL405 User Manual, 4th Edition

Maintenance

A constant that determines the magnitude of the PID proportional term in response to the current error.

PID Loop Operation (DL450 Only)

Proportional Gain

Page 504

8--76

PID Loop Operation (DL450 only)

Fundamentals of Process Control Theory, Second Edition Author: Paul W. Murrill Publisher: Instrument Society of America ISBN 1--55617--297--4

Application Concepts of Process Control Author: Paul W. Murrill Publisher: Instrument Society of America ISBN 1--55617--080--7

PID Controllers: Theory, Design, and Tuning, 2nd Edition Author: K. Astrom and T Hagglund Publisher: Instrument Society of America ISBN 1--55617--516--7

Fundamentals of Temperature, Pressure, and Flow Measurements, Third edition Author: Robert P. Benedict Publisher: John Wiley and Sons ISBN 0--471--89383--8

Process / Industrial Instruments & Controls Handbook, Fourth Edition Author (Editor-in-Chief): Douglas M. Considine Publisher: McGraw-Hill, Inc. ISBN 0--07--012445--0 pH Measurement and Control, Second Edition Author: Gregory K. McMillan Publisher: Instrument Society of America ISBN 1--55617--483--7

Programmable Controllers Concepts and Applications, First Edition, Authors: C.T. Jones and L.A. Bryant Publisher: International Programmable Controls ISBN 0--915425--00--9

Fundamentals of Programmable Logic Controllers, Sensors, and Communications Author: Jon Stenerson Publisher: Prentice Hall ISBN 0--13--726860--2

Process Control, Third Edition Instrument Engineer’s Handbook Author (Editor-in-Chief): Bela G. Liptak Publisher: Chilton ISBN 0--8019--8242--1

Process Measurement and Analysis, Third Edition Instrument Engineer’s Handbook Author (Editor-in-Chief): Bela G. Liptak Publisher: Chilton ISBN 0--8019--8197--2

Maintenance and Troubleshooting

PID Loop Operation (DL450 Only)

Bibliography

DL405 User Manual, 4th Edition