RSLogix 5000 PID bumpless transfer

cjd1965

Lifetime Supporting Member
Join Date
Apr 2007
Location
UK
Posts
1,659
Hi I am trying to understand the best method of providing bumpless transfer to the PID function (not PIDE)

The existing code shows

In Manual Mode
Copy ProgCV to PID.SO . ProgCV is a value i am sending to the device by code
Copy ProgCV to OperCV

In Auto Mode
Copy the ProgSP to OperSP
Copy the CV to OperCV

However when the PID is set to auto it is dropping to 0 CV then the CV builds under the PID action

What is the preferred method of achieving bump less transfer from manual to auto mode change

Thanks
 
copy the SP to the PV and ramp to the desired SP from there.
copy the control output to the integrator term. Since the SP and PV are equal there will be no change in the control output until the SP starts changing,

A more important question is what is being "bumped". This is important in motion control systems but not in temperature control systems.
 
First you need to make sure the PID control is installed and running correctly
It should be in a Periodic task to update about every 100 ms faster than that and the PID output may have radical changes it the output. Because the PID can update faster than the hard you are controlling
Always leave it run unconditionally
When you want to enter manual mode
Set the manual Bit (.MO) or the software manual Bit (.SWM)
When you set the PID to manual move the desired output into the output word (.SO)
When the you reset the Manual bit the PID control will control the output
While the PID Manual Bit is set the control will continue to monitor the Set point and the Process variable and calculate the necessary values and track the output, it just will not update the output word
 
The existing code shows

In Manual Mode
Copy ProgCV to PID.SO . ProgCV is a value i am sending to the device by code
Copy ProgCV to OperCV

In Auto Mode
Copy the ProgSP to OperSP
Copy the CV to OperCV

However when the PID is set to auto it is dropping to 0 CV then the CV builds under the PID action

What's described above should work as long as one of the following is true:
1. There is a non-zero integral gain, or
2. The Bias Back-calculate bit is set.

This assumes the SP/PV error is not so large to drive the initial control action all the way to zero.

There is often confusion around a manual-to-auto transition "bump" that is really the first control action applied to the "bumpless" starting CV. The last manual SO is automatically copied to the integral term to initialize the pre-auto CV, and if SP is equal to PV, there will be no change to the CV.

The initial SP/PV error can be managed by a one-shot move of the PV to SP upon clearing SWM, or by using the PV Tracking feature.
 

That is crazy. Yet there it is in black-and-white, and makes no sense. Must have been some kind of error in the Logix platform implementation because the PLC-5 PID.CV target is always an integer.

At least they call it out in more than just a footnote.

Also a plausible explanation for the OP, especially if this is the initial setup and commissioning of the loop.
 
Hi all thanks for replies

It all works OK it is an existing system i was just looking to understand it better
 
Here is a program my brother wrote with a PID coded into a MircroLogix.


The last few rungs of program file 248 (PID_SUBR) implement the bumpless and anti-windup pieces; there might be more related code elsewhere.
 
Look at the .PVT (process variable tracking) element of the PID instruction. Specifically designed to be used when the PID loop is switched to manual to prevent integral windup, etc, and assist with bumpless transfer.
 

Similar Topics

Hi, Long time not in the forum, and not in the programming. I´m getting back. I was issued a conversion from RSLogix 500 to RSLogix 5000 (studio...
Replies
0
Views
1,282
So I have a PID loop on an 1756-L61 running V17 software just for background. Also the PID PV is a pressure transmitter and the CV is speed sent...
Replies
1
Views
890
Hi All, I have a PID control application that I would like to get your opinions on. As I am reality new to PID loops I am struggling somewhat...
Replies
14
Views
4,270
Hi, I am confuse with the scaling tab on the PID dialog box. On the Process variable I am using a tag that is already scale. 0 to 16 Feet Level...
Replies
2
Views
2,399
Good day everyone. I would like to ask something regarding PID Instruction. I noticed one of our machine's PID instruction status is showing "PID...
Replies
3
Views
5,565
Back
Top Bottom