Ob251 Pid Algorithm For Cpu 103 Version 8Ma02 And Higher - Siemens SIMATIC S5-100U System Manual

Simatic s5 series cpu 100/102/103
Hide thumbs Also See for SIMATIC S5-100U:
Table of Contents

Advertisement

S5-100U
9.3.3
OB251 PID Algorithm, for CPU 103 Version 8MA02 and Higher
A PID algorithm is integrated in the operating system of the S5-100U. OB251 helps you use this
algorithm to meet your needs.
Before calling up OB251, you must first open a data block called the controller DB. It contains the
controller parameters and other controller specific data. The PID algorithm must be called up peri-
odically to generate the manipulated variable. The more closely the scan time is maintained, the
more accurately the controller fulfills its task. The control parameters specified in the controller DB
must be adapted to the scan time.
You should always call OB251 from the time OB (OB13). You can set time OBs at a call up interval
ranging between 10 ms and 655,350 ms. The PID algorithm requires no more than 1.7 ms to
process.
OB13
Time-Controlled
Processing
C
DB N
JU
OB 251
.
.
.
.
.
BE
Figure 9-6. Calling Up the OB251 PID Algorithm
The continuous action controller is designed for controlled systems such as those present in
process engineering for controlling pressure, temperature, or flow rate.
The "R" variable sets the proportional element of the PID controller. If proportional action is
required, most controller designs use the value R = 1.
The individual Proportional action, Integral action, and Derivative action elements can be deactivated
via their parameters (R, TI, and TD) by presetting the pertinent data words to zero. This enables
you to implement all required controller structures without difficulty, e.g., PI, PD, or PID controllers.
You can forward the system deviation XW or, using the XZ input, any disturbance variable or the
inverted actual value X to the derivative action element. Specify a negative K value for a reverse
acting controller.
When the manipulated information (dY or Y) is at a limit, the integral action component is
automatically deactivated in order not to impair the dynamic response of the controller.
The switch settings in the block diagram are implemented by setting the respective bits in control
word "STEU".
EWA 4NEB 812 6120-02b
Integrated Blocks and Their Functions
OB251
PID Control
Algorithm
DBN
Controller
Data Block
DW
1
.
.
.
.
.
.
DW
49
9-15

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents