hit counter script

Pid_Compact Instruction - Siemens SIMATIC S7 System Manual

Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

102BTechnology instructions
9.2 PID control
9.2.2

PID_Compact instruction

The PID controller uses the following formula to calculate the output value for the
PID_Compact instruction.
y = K
y
w
K
p
T
1
T
D
Table 9- 13
PID_Compact instruction
LAD / FBD
STEP 7 automatically creates the technological object and instance DB when you insert the instruction. The instance
1
DB contains the parameters of the technological object.
In the SCL example, "PID_Compact_1" is the name of the instance DB.
2
Table 9- 14
Data types for the parameters
Parameter and type
Setpoint
IN
Input
IN
328
1
[
(b · w - x) +
p
T
· s
I
Output value
Setpoint value
Proportional gain
(P component)
Integral action time
(I component)
Derivative action time
(D component)
SCL
"PID_Compact_1"(
Setpoint:=_real_in_,
Input:=_real_in_,
Input_PER:=_word_in_,
ManualEnable:=_bool_in_,
ManualValue:=_real_in_,
Reset:=_bool_in_,
ScaledInput=>_real_out_,
Output=>_real_out_,
Output_PER=>_word_out_,
Output_PWM=>_bool_out_,
SetpointLimit_H=>_bool_out_,
SetpointLimit_L=>_bool_out_,
InputWarning_H=>_bool_out_,
InputWarning_L=>_bool_out_,
State=>_int_out_,
Error=>_dword_out_);
Data type
Description
Real
Setpoint of the PID controller in automatic mode. Default value: 0.0
Real
Process value. Default value: 0.0
You must also set sPid_Cmpt.b_Input_PER_On = FALSE.
T
· s
D
(w - x) +
(c · w - x)
a · T
· s + 1
D
x
s
a
b
c
]
Process value
Laplace operator
Derivative delay coefficient
(D component)
Proportional action weighting
(P component)
Derivative action weighting
(D component)
Description
PID_Compact provides a PID controller with
self-tuning for automatic and manual mode.
PID_Compact is a PIDT1 controller with
anti-windup and weighting of the P- and D-
component.
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-1200

Table of Contents

Save PDF