You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

Reply
 
Thread Tools Display Modes
Old May 3rd, 2012, 03:35 PM   #1
raul_vaze
Member
India

raul_vaze is offline
 
Join Date: Feb 2008
Location: mumbai
Posts: 87
Convert Rslogix 500 P,I,D values to 5000 P,I,D

Dear All ,

Is there a way by which i can co-relate the P,I,D values obtain in Rslogix 500 PID instruction into Rslogix 5000 PID instruction.

I have converted a application in Rslogix500 to Rslogix5000 and everything is ok except the PID .

My PID values in Rslogix 500 are as follows

1. Proportional gain Kc == 20

2. Reset Ti = 1.40

3. Rate Td == 0.07

Pls help me
  Reply With Quote
Old May 3rd, 2012, 10:43 PM   #2
Ken Roach
Lifetime Supporting Member + Moderator
United States

Ken Roach is offline
 
Ken Roach's Avatar
 
Join Date: Apr 2002
Location: Seattle, WA
Posts: 17,257
The PID instruction for RSLogix 5000 is well-described in the General Instruction Set Reference, 1756-UM003. Take the time to read it thoroughly.

The equations are identical between the SLC PID and the ControlLogix PID, but there are some important differences.

The most important is the instruction execution method. In both controllers, you typically have the PID instruction in an unconditional rung, but the Ladder Logic routine that contains that rung gets executed at the Loop Update rate.

This can be done with a subroutine called by a timer (in both SLC and ControlLogix) or by putting the routine into a scheduled execution mechanism. This is the Selectable Timed Interrupt (STI) in the SLC, and a Periodic Task in the ControlLogix.

I've seen a lot of systems that did not follow this basic rule and were able to tune their loops only by good fortune: the scan time of the SLC or PLC controller was essentially the Update Time.

Because the ControlLogix is so much faster than the PLC or SLC, loops implemented on the new platform wouldn't perform the same.

Post your SLC program and ControlLogix program (or parts of them) if you can, and folks can give you more advice.

PID can be intimidating, but it doesn't have to be mysterious.
  Reply With Quote
Old May 3rd, 2012, 11:50 PM   #3
Old No. 7
Member
United States

Old No. 7 is offline
 
Join Date: Jun 2010
Location: Ohio
Posts: 173
You are talking PID and not PIDE in 5000, correct? The PIDE is a whole different animal. If you can test both systems, turn off reset and rate and introduce a small error. If the output behaves differently, there is probably a scaling issue with the Min and Max PV in the PID block. If gain works fine, introduce some reset. If there is a difference between them I would look for a timing issue as Ken said.
  Reply With Quote
Old May 4th, 2012, 03:02 AM   #4
Ken Roach
Lifetime Supporting Member + Moderator
United States

Ken Roach is offline
 
Ken Roach's Avatar
 
Join Date: Apr 2002
Location: Seattle, WA
Posts: 17,257
Scaling is another big issue: The SLC-500 PID needs to be given a PV between 0 and 16384, and will generate a CV between 0 and 16384.

The ControlLogix works in Engineering Units, not "counts", and generates a 0-100% output. Both the PV (and therefore Setpoint) range and the output can be scaled within the instruction.

My point is: the execution and scaling is different, the gains are the same.
  Reply With Quote
Old May 4th, 2012, 09:34 AM   #5
raul_vaze
Member
India

raul_vaze is offline
 
Join Date: Feb 2008
Location: mumbai
Posts: 87
Hi Ken ,

Actually timing factor is taken care by having timer of 1 sec and executing PID at Done bit of it. The PID loop update time is also kept at 1 sec.
Actually our process is temperature control of furnace which is divided into 4 zones. Normally PV takes much time to reach to the Setpoint , since our P(0.5) and I(0.06) values are small and also process takes too much time to respond although output is 100% . When the PV crosses SP, output starts to decrease but due to P&I output decreases very slowly and hence PV goes to very high value before it starts to decrease slowly and then PV goes much below SP(as output has decrease) before it again starts to increase.

Hence i felt that if i could put the same old PID values, may be i could tune it very easily ?? Can i use Derivative in this case ...
  Reply With Quote
Old May 4th, 2012, 09:43 AM   #6
Ron Beaufort
Lifetime Supporting Member
United States

Ron Beaufort is offline
 
Ron Beaufort's Avatar
 
Join Date: Jul 2002
Location: Charleston, SC
Posts: 5,698
Quote:
Hence i felt that if i could put the same old PID values, may be i could tune it very easily ?? Can i use Derivative in this case ...


IF (big IF) the scaling and the time issues are indeed properly "taken care of" then theoretically the previous tuning settings "SHOULD" give you the same response ...

AS LONG AS ...

you've also set the RSLogix5000 Equation Type for "Dependent" instead of the default of "Independent" ...

since the PID in RSLogix500 only supports the "Dependent" type equation, this is often a problem when conversions from one platform to another are involved ...

if you're still having problems, it would be wise to post your program file ...
__________________

2-B ?
Best regards, ----+----] [----+------------( )----
Ron | |
PLC Boot Camp - Retired | 2-B |
+----]/[----+

I once was lost, but now am found, was blind, but now I see.

  Reply With Quote
Old May 4th, 2012, 07:21 PM   #7
daba
Lifetime Supporting Member
United Kingdom

daba is offline
 
Join Date: Jul 2004
Location: uk
Posts: 5,396
Quote:
Originally Posted by raul_vaze View Post
Hi Ken ,

Actually timing factor is taken care by having timer of 1 sec and executing PID at Done bit of it. The PID loop update time is also kept at 1 sec.
Actually our process is temperature control of furnace which is divided into 4 zones. Normally PV takes much time to reach to the Setpoint , since our P(0.5) and I(0.06) values are small and also process takes too much time to respond although output is 100% . When the PV crosses SP, output starts to decrease but due to P&I output decreases very slowly and hence PV goes to very high value before it starts to decrease slowly and then PV goes much below SP(as output has decrease) before it again starts to increase.

Hence i felt that if i could put the same old PID values, may be i could tune it very easily ?? Can i use Derivative in this case ...
If you don't have to exercise any control of heat-up, then I would just give it manual 100% output until you are approaching setpoint, and then switch the PID to auto.

Any attempt to limit overshoot using PID terms in systems with huge lag times is asking for trouble.

If you put any integral gain in at all, you will almost certainly overshoot the SP. You can compensate with derivative, but it will just extend the heat-up time as the PID instruction keeps cutting back the output.
__________________
___________________________

Everything works with smoke. Let it out, and it stops working.

Nil Carborundem Illegitimi



  Reply With Quote
Old May 5th, 2012, 12:43 AM   #8
Nigasai
Member
Singapore

Nigasai is offline
 
Join Date: Nov 2006
Location: Singapore
Posts: 88
Try to run the PID autotune, at least you have the reference. Its a good practice to always put your PID routine in a periodic task whereby you can schedule when the scanning happen.. I had an experience before that I'm doing a PIDE control for a big cylindrical Spray drier where your CV increment has a longer effect on your PV, but once the effect happen it will go very fast and oftentimes will overshot. Base on my experience I did play the Auto Manual, the Gain (P) and time (I).. and add another logic to give me a very stable condition, thereafter I achieve an Auto Spraying system..

Cheers
  Reply With Quote
Old September 19th, 2023, 08:52 AM   #9
votecoffee
Member
United States

votecoffee is offline
 
Join Date: Nov 2011
Location: NY
Posts: 38
Sorry to ressurect an old thread, but I ended up here looking for an answer and the info here is lacking a key detail I found elsewhere on the forum.


Quote:
The "time related" functions (Integral and Derivative) are "off" by a factor of 60 ... that's because this configuration of the PID uses SECONDS – and the PIDE uses MINUTES ...
  Reply With Quote
Old September 19th, 2023, 08:57 AM   #10
votecoffee
Member
United States

votecoffee is offline
 
Join Date: Nov 2011
Location: NY
Posts: 38
Also this:


Quote:
1. Logix uses a %-to-% scaling on the proportional term, where SLC is %-to-eng.-units (per SP scaling, if used).
2. SLC has a "Reset and Gain Enhancement Bit" which applies different factors of ten to the gain values.
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Slc 500 or 5000 Maintenance Man LIVE PLC Questions And Answers 2 March 14th, 2011 01:21 PM
RSlogix 500 and Panelview data display gouch LIVE PLC Questions And Answers 0 October 26th, 2010 06:20 AM
RSLogix 500 and Standalone Security Server pimpim32 LIVE PLC Questions And Answers 4 August 23rd, 2007 12:03 PM
Convert RSLogix 500 to RSLogix 5000 bissotoe LIVE PLC Questions And Answers 3 March 27th, 2007 11:22 AM
RSLogix 5000 eastkodakguy LIVE PLC Questions And Answers 2 July 3rd, 2002 12:28 PM


All times are GMT -4. The time now is 03:46 PM.


.