S7-300/400 Tip PID Tip No. 2
Copyright 1996 by SIEMENS page 1 / 15 Pid.doc
Status: 11/96 Version 1.0
SIMATIC S7-300/400 customers have free use of the application tips. These tips are only a general approach to using the S7-300/400 with various
applications. Your specific application may be different. It is your responsibility to use the SIMATIC S7-300/400 properly in your applications.
Group Topic
1 Simple PID Controllers for the S7-300/400
Overview
This programming example shows a method for programming a Proportional Integral Derivative
(PID) controller on a S7 PLC. The example is already a fully functioning program, needing only
for the user to tie the actual inputs and outputs to appropriate variables to be a working
controller. This program is suitable for simple PID applications.
For complex PID applications, Siemens offers the SIMATIC S7 Standard Control software
package, which offers numerous features that this applications tip lacks. These features
include alarming, scaling, deadband control, feed-forward control, range limiting, ramp/soak
steps, and an integrated scheduler. The Standard Control package includes a Windows-based
configuration tool that greatly simplifies configuring and tuning a PID loop.
To prepare a user to make these programming changes, the text will explain the basics of the
PID controller implemented in the sample code. Below is a brief outline for the rest of this
document:
1. What does the example program do?
2. Where do you use a PID controller?
3. Auto Mode vs. Manual Mode
4. What does a PID controller do, and how?
5. What are the Sample, Gain, Rate, and Reset?
6. How is the Error figured?
7. How is the Proportional term figured?
8. How is the Integral term figured?
9. How is the Derivative term figured?
10. What if the final Output is too high?
11. What should the user add to make the program work for his system?
12. Adjusting the Reset, Rate, Gain, Sample time and Mode during run-time
SIMATIC
S7-300/400 Tips