![]() |
||
|
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
| ||
New Here? Please read this important info!!!
|
|
#1 |
|
Member
![]() 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 |
|
|
|
#2 |
|
Member
|
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. |
|
|
|
#3 |
|
Member
|
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. |
|
|
|
#4 | |
|
Lifetime Supporting Member
|
Quote:
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. |
|
|
|
|
#5 |
|
Member
![]() 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.
|
|
|
|
#6 |
|
Member
|
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. |
|
|
|
#7 |
|
Member
![]() 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 |
|
|
|
#8 |
|
Member
|
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. |
|
|
|
#9 |
|
Member
![]() 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 |
|
|
|
#10 |
|
Member
|
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) |
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |