×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Algorithm for filter and AutoTuning Temperature Control

Algorithm for filter and AutoTuning Temperature Control

Algorithm for filter and AutoTuning Temperature Control

(OP)
I am new  in PLC domain. I am trying to write a PLC program for autotuning a PID for temperature control.
I am looking for algorithm for filtering the noise in the analog signal and a robust algorithm for autotuning. which method is recommended ?
Many thanks for your help.
Ad

RE: Algorithm for filter and AutoTuning Temperature Control

Writing a good auto tune program in a PLC isn't practical.  Most PLCs don't have the memory space or can easily manipulate matrices  so the brute force method can't be used.  The temperature controllers probably have some algorithms in firmware written in C that make good guesses using heuristics rather than a minimizing routine.  If you can estimated the plant gain, time constant and dead time by using some heuristic method then you can use the formulas on http://www.controlguru.com
to calculate the gains.  I would read the material on the control guru site.

Have you written an auto tuning program for servo motion control or is this your first one?


 

Delta Computer Systems
http://www.deltamotion.com

 

RE: Algorithm for filter and AutoTuning Temperature Control

PNachtwey hit the nail headwise. Even if the PLC in question is capable it isn't worth the effort to roll-your-own.

Certain PLC models have autotuning built in, but you'll likely end up hand-tuning the loop. Don't despair, because there are few better ways to develop an understanding of loop control other than the laying on of hands, and most temperature loops are amenable to hand-tuning.

One (potentially) useful cheat is to obtain a single loop controller with autotuning capabilities, temporarily wire it in, tune the loop, record the resulting values, remove it (and wire up the PLC), and use the controller's autotuned values as a starting point.

*Potentially* useful, because each PLC manufacturer seems to have a slightly different take on how to define and scale their P, I, D (and other) terms. I've seen everything from engineering units for I and D (minutes, or seconds) to ... well, on some I never have been able to figure out what the manufacturer had in mind. nosmiley

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources