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.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


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

PLC training tools sale

Reply
 
Thread Tools Display Modes
Old January 8th, 2008, 07:43 AM   #1
ggchavhan
Member
India

ggchavhan is offline
 
Join Date: Nov 2006
Location: pune
Posts: 128
pid algorithm

Hi

i want to make PID code by using MLX1000, I dont want to use PID instruction and real type data format. is possible, if yes please help me.

GAJANAN
  Reply With Quote
Old January 8th, 2008, 07:51 AM   #2
widelto
Member
Colombia

widelto is offline
 
widelto's Avatar
 
Join Date: Jul 2005
Location: barranquilla
Posts: 1,446
If you do not want to use the PID instruction, it´s going to be difficult, but try to use comparison instructions to turn on and off your ouput variable, be careful to avoid instability, try to use a hysteresis.

hope this will help you
__________________
My two cents.
  Reply With Quote
Old January 8th, 2008, 08:11 AM   #3
SNK
Member
Canada

SNK is offline
 
SNK's Avatar
 
Join Date: May 2004
Location: Toronto, Ontario
Posts: 877
There was a project some time ago that does just what you want

See post http://www.plctalk.net/qanda/showthr...hlight=hot+rod

(I used a portion of the code for a vacuum system, achieving a SP very acurately based on a contactor and feedback,


Last edited by SNK; January 8th, 2008 at 08:14 AM.
  Reply With Quote
Old January 8th, 2008, 09:22 AM   #4
TConnolly
Lifetime Supporting Member
United States

TConnolly is offline
 
TConnolly's Avatar
 
Join Date: Apr 2005
Location: Salt Lake City
Posts: 5,417
Quote:
Originally Posted by ggchavhan
Hi
...I dont want to use PID instruction and real type data format...
Thats a good thing because the PID instructions is NOT available on the ML1000 and the ML1000 does not uspport real numbers. You must step up to the ML1200 to get these features.

Fortunately, there is an alternatve that has been discussed at length here - the sliding mode controller.

Here are some of the threads that cover it: http://www.plctalk.net/qanda/search.php?searchid=813844
__________________
True craftsmanship is only one more power tool away.

That's the beauty of processors, they don't have emotions they just run code - The PLC Kid.
  Reply With Quote
Old January 8th, 2008, 02:33 PM   #5
KP_EENG
Member
United States

KP_EENG is offline
 
Join Date: May 2003
Location: Upstate, SC
Posts: 205
If you have to stick with the Micrologix 1000, you may want to look into a separate PID controller such as the CN77000 Series controller from Omega Engineering.
  Reply With Quote
Old January 8th, 2008, 04:41 PM   #6
Tom Jenkins
Member
United States

Tom Jenkins is offline
 
Tom Jenkins's Avatar
 
Join Date: Apr 2002
Location: Milwaukee, WI
Posts: 4,954
Why are you locking in on PID control? I realize that this is the most common algorithm for analog control, but it may not be the best for your application. In many cases a simple deadband controller (like your home thermostat) can do just as good or even better job of control in a much simpler manner. The SMC mentioned above is another alternate technique.

I'm not saying PID isn't the best choice, just that you should consider alternatives.
  Reply With Quote
Old January 8th, 2008, 07:38 PM   #7
KP_EENG
Member
United States

KP_EENG is offline
 
Join Date: May 2003
Location: Upstate, SC
Posts: 205
I agree with Tom, there are alternative methods of control. I was going to mention Fuzzy Logic, which can easily be implemented in the Micrologix, but every time I mention Fuzzy Logic, a lot of people get all bent out of shape. If you are interested, take a look at the GE Forum on www.mrplc.com for a fuzzy logic algorithm implemented in the Micrologix world. You can possibly alter it to work with the ML1000.

Best regards
  Reply With Quote
Old January 8th, 2008, 08:44 PM   #8
Peter Nachtwey
Member
United States

Peter Nachtwey is offline
 
Peter Nachtwey's Avatar
 
Join Date: Apr 2002
Location: Vancouver, WA, UMSA, United Marxist States of America
Posts: 5,484
Sliding mode control is the easiest to implement by far but there could be problems if there is excess dead time. I like the idea of an external PID controller. One can pack some very sophisticated algorithms into a little 8 bit micro controller because the update time is so slow.

KP_EENG, you do have a nice but simple fuzzy logic algorithm but for SISO applications fuzzy logic is over kill and still a lot more code than what is necessary to get the job done.. SMC is perfect for temperature control systems with little or no dead time. SMC really is nothing more than simple on-off control with a derivative term(s) that is used to dynamically change the at temperature band.
  Reply With Quote
Old January 10th, 2008, 05:53 AM   #9
ggchavhan
Member
India

ggchavhan is offline
 
Join Date: Nov 2006
Location: pune
Posts: 128
Thanks Every Body
Actually my client is expects low cost solution using MLX only. I tried my best but could not suceed as problem of math calculation overflow. If I could get certain idea to go further by using integer data I can proceed and I will be thankful.

Other solution suggested for fuzzy logic I don't have any Idea of fuzzy logic, if anybody having sample code for it I can assure you I will complete the project.

Actually this is boiler drum level control loop, I know, the code sould be very safe as per as boiler operation is concern, but stull client is forcing me to make the logic on MLX only because he is having spare MLX and he don't want to go for new one.

Please help me

GAJANAN
  Reply With Quote
Old January 11th, 2008, 07:40 AM   #10
chud
Member
South Africa

chud is offline
 
chud's Avatar
 
Join Date: Oct 2007
Location: KALAHARI
Posts: 451
I just did a boiler plc upgrade. Converted the program and installed new soft and hardware. As soon as I started I saw no PID control, basically just used comparators. Would have personally used pid myself but then again this was done yonks ago.
Is it a full boiler control you have to do (feed to boiler, water level,steam and furnace pressure,furnace temperature)
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


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
PID algorithm ggchavhan LIVE PLC Questions And Answers 2 May 24th, 2008 07:17 AM
PID block algorithm in Simatic ? sigreg LIVE PLC Questions And Answers 49 November 8th, 2006 03:16 PM
PID algorithm for PLC of twincat garchev LIVE PLC Questions And Answers 5 August 26th, 2005 10:42 AM
learning PID for Allen-Bradley ... Ron Beaufort LIVE PLC Questions And Answers 9 August 23rd, 2005 01:40 PM
how often should I trigger the PID? Ron Beaufort LIVE PLC Questions And Answers 11 February 22nd, 2003 10:57 AM


All times are GMT -5. The time now is 05:32 AM.


.