Pid
Pid
Pid
Yes, there are some sample faceplates in FactoryTalk ME 5.0 and later or you
can build your own screens. You would setup a screen to access the internal
members of the PID tag, like [PID_tag]. SO, that controls the output in
software manual mode. The instruction reference, starting on page 504,
shows all of the members, the link to the reference is:
http://literature.rockwellautomation.com/idc/groups/literature/documents/rm/
1756-rm003_-en-p.pdf
2. Why does the PID instruction need an update time if a timer with the same
value is required to run the instruction?
The PID was not designed to regulate itself or even know how often it is run.
Thats the way it was made in the PLC-5. The original PLC designers decided
to do it that way and the ControlLogix ladder instructions are modeled after
the PLC-5 to remain consistent in operation between the two families. If the
PID is not regulated, then the integral contribution will not be consistent and
scan time dependent. Under the hood, the PID essentially just does a multiply
and add for the integration, and this has to be programmed with the right
time and controlled at a consistent rate.
3. How does the PID loop time work in regards to PLC scan time? Say the PLC
scan didn't land on 0.5 seconds?
Let me answer that by posing a situation. Lets say the timer is changed
from .5 seconds to 1 second without changing the PID. The portion due to the
integral term would change half as fast. So going back, if the scan time were
to hover between .48 and .52 seconds, then the integration behavior would
change just a little ((.48-.52)/.50 = 8%). In most cases, an 8% variance
probably wouldnt be noticed. In other words, it depends on how much off?.
Under the hood, the PID essentially just does a multiply and add for the
integration every time the rung is true.
4. Will the bumpless help if the set point changes during the process (drops 30
psi)?
I am guessing you are asking, if I change the Proportional gain to be based
on PV instead of ERROR in the PIDE, will this help my equipment when I
change the setpoint in the PIDE?. It depends on what you mean by help. If
you want faster reaction from the PIDE, then it will not help. If you want to
smooth out the PIDE output to take it easier on the equipment, then yes, it
will help. If I missed the question, then please provide more detail.
5. Would you discuss anti-windup for cascade control with PIDE?
I am not sure exactly what about the windup you want me to discuss, but I
will assume the question How do I set things up so that the slave tells the
master to stop integrating when the slave is not in cascade mode or at a
limit? This is shown on pages 21 and 22 in the PIDE whitepaper on how to
wire the loops to achieve this, link:
http://literature.rockwellautomation.com/idc/groups/literature/documents/wp/
logix-wp008_-en-p.pdf
If I missed the question, please add more detail.
6. Please explain when you'd use .swm or .man pros and cons of each (for
ladder PID).
With SWM, you can program the output in percent, and you do not need an
external tag. With .MO, you can define the range of the tieback tag and have
an external tag that might be easier to use with an HMI. Theres really no pro
or con; its just a difference of an internal tag or external one and you are
free to choose either.
7. When entering a value in "Deadband Value" is this value in % of CV or PV?
Or is it in Engineering Units? Also, is this the same setting that is labeled as
"CV Zero-Crossing Deadband" in the Function Block PIDE instruction? What is
"Zero-Crossing Off"?
In the PID, the Deadband Value uses the engineering units range. If No
Zero crossing for deadband is NOT checked, then the deadband wont kick
in until the PV reaches the setpoint. If it is checked, the deadband will not
wait for the PV to reach the setpoint but instead will kick in as soon as the PV
reaches the deadband. The deadband in the PIDE is the same with the option
to disable the zero crossing.
8. Does the PIDE require a loop update time?
Not if it is in periodic mode. Only if you change the mode from the default to
oversample mode does it need this. The whitepaper covers when it is a good
9. Will you be covering tuning in more detail? e.g., What does a "1" mean in the
proportional gain? In other words, is there a method to calculate gains vs.
trial and error?
The topic of tuning is, well, there are literally college courses dedicated to
such things and it is a very broad and sometimes complex topic. I can tell
you about the sparkplug of a car and how it creates a fire, but thats not
going to teach you how to drive . . . but I will tell you about the sparkplug, so
to speak. The PID stands for Proportional, Integral, and Derivative. They
operate on a thing called Error which is the difference between the PV and
the setpoint. The Proportional has an output proportional to the error. The
Integral integrates the past error, and the Derivative is a prediction of future
error. Calculating and adding all of these things together is what the PID
produces. Setting the gains just tells how much of each to use. Having a 1 in
the proportional gain means that its contribution is 1 x ERROR to the output.
In this case, if the integral and derivative were set to 0, the PID output would
simply be equal to the Error value (the difference of SP PV) scaled to the CV
range.
As far as tuning goes, one popular method that is sometimes good enough is
Ziegler-Nichols method (you can find this with Google). This does not always
work though in all cases and may not give the optimal results. If you did not
want to do some study or playing with the gains, you could use tuning
software to get good results, or hire a tuning expert. Try searching Google for
PID tuning and you will find quite a bit of stuff on the subject. Simply due to
the wide variety of applications and the complexity of the subject, that is the
best answer I can offer.
10.Is there a manual mode on PIDE?
Yes, there is a program manual request input call ProgManualReq for program
mode and OperManualReq for operator request of manual mode. These use
CVProg and CVOper respectively.
11.Why would you put a timer on to execute the PID when the Loop Update Time
does this for us.
Unfortunately, the Loop Update Time in the ControlLogix PID does not
regulate the PID itself like the SLC PID can with its timed mode. The Loop
Update Time is only used as a multiplier for the integral and derivative
portions. If the PID is not regulated with a timer or periodic task, these
portions can get magnified or decreased as the scan time changes. The timer
is not necessary if the PID is put into a periodic task and the loop update is
PV is close enough.
17.Is it valid to use PIDE oversample mode, with a timer controlling the time
trigger, with a PIDE in a periodic task?
Yes, the oversample mode in the PIDE makes the timing behave like the
ladder PID and it needs to be regulated the same, by a timer to Its enable bit,
or by being in a task that scans as fast as oversampleDT.
The PID whitepaper page 13 discussed when it is usually used.
http://literature.rockwellautomation.com/idc/groups/literature/documents/wp/
logix-wp008_-en-p.pdf
18.When converting a PLC-5 PID instruction, would you choose PID or PIDE?
I generally would choose PID, as it is almost a twin of the PCL-5 PID, but
thats not to say you couldnt use the PIDE.
19.Can you explain the autotune feature briefly. Does the Ladder have
autotune?
Ladder does not have an autotune. The PIDE has a built in Autotuner with
some RSLogix 5000 packages that bumps the PIDE output in manual mode,
and watches the system response. It then generates gains based on the
response. The Autotuner getting results guide has a little more detail, link:
http://literature.rockwellautomation.com/idc/groups/literature/documents/gr/p
ide-gr001_-en-p.pdf
20.We use PIDEs in AOIs, when I open the PIDE within the AOI in runtime, there
are question marks in most of the configuration fields. Has this behavior
changes with versions of RSLogix 5000?
I put a PIDE into in AOI in V19 and I dont see any question marks. I think I do
vaguely remember this in earlier versions. However, in either case, to see
the current values actually being used, there is a drop down box at the top
called data context. If you choose a tag, then the question marks should
disappear and show you the currently used values. If you dont get very far,
let me know.
21.What if you have ladder PID and function block PIDE running in program?
I am not sure if I understand the question. Let me know if I get it wrong, but I
think you are asking if you can use both in the same project. Yes, each
instruction is independent. If you put in several PIDE and several PID
instructions, the controller has no issue with this.
22.Will Rockwell Automation be going away from PID to PIDE, or keep both?
There are no plans to change anything at this time or the foreseeable future,
both are available.
23.On the PIDE, the deadband zero crossing does not stop the error term from
winding up. is there a way without adding a manual disable on deadbands to
the PIDE to stop it calculating?
I am not sure if I understand the question. The definition of the error value is
PV-SP or SP-PV. There is no deadband on this calculation. The deadband
applies to the change of the CV while the error is under the deadband. The
error is continually updated to know when the PV leaves the deadband.
24.Should the PID ladder be used in an STI?
Only the PLC-5 had an STI. However, the ControlLogix does have periodic
tasks. Sure, the PID can be used in a periodic task. If the task rate is
matched to the loop update time, then the timer instruction is not needed
either, which simplifies code a little bit.
25.How do you implement tracking of the PIDE output when not in control so
that its output tracks the active PIDE controller such as with a constraint
control application?
I am not absolutely sure of what you are asking, but I think you are asking
about a low select application. The PIDE whitepaper has an example of two
PIDEs, one active, the other one tracking. See page 8. I think the page is
missing the management of the SetCVPrevious bits, but I can discuss that if
you like. Link to the guide is
http://literature.rockwellautomation.com/idc/groups/literature/documents/wp/
logix-wp008_-en-p.pdf
26.How did you add the function block again?
I did a right click on the sheet, selected ADD ELEMENT, then typed in PIDE
and clicked OK.
27.How can you determine what the smallest scan time that can be used?
Generally, you would want to run the PID only as fast as needed to control
the loop. To determine this time, you would make a disturbance to the
process and see how long it takes to mostly settle out, then try to be about
10 to 20 times faster for the PID.
28.Can I change the P-I-D set points based on a set point band, also based on
the PV angle of attack and second derivative alter the set points of the
same?
The PID and PIDE instructions do not touch the setpoint, well, except for PV
tracking. However, anything can be written in ladder to implement this as the