Pid_Compact Instruction - Siemens S7-1200 System Manual

Hide thumbs Also See for S7-1200:
Table of Contents

Advertisement

Technology instructions
9.2 PID control
9.2.2

PID_Compact instruction

The PID_Compact instruction provides a universal PID controller with integrated self-tuning
for automatic and manual mode.
Table 9- 13
PID_Compact instruction
LAD / FBD
STEP 7 automatically creates the technology object and instance DB when you insert the instruction. The instance DB
1
contains the parameters of the technology 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
Input_PER
IN
Disturbance
IN
422
SCL
"PID_Compact_1"(
Setpoint:=_real_in_,
Input:=_real_in_,
Input_PER:=_word_in_,
Disturbance:=_real_in_,
ManualEnable:=_bool_in_,
ManualValue:=_real_in_,
ErrorAck:=_bool_in_,
Reset:=_bool_in_,
ModeActivate:=_bool_in_,
Mode:=_int_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=>_bool_out_,
ErrorBits=>_dword_out_);
Data type
Description
Real
Setpoint of the PID controller in automatic mode. (Default value: 0.0)
Real
A tag of the user program is used as the source of the process value.
(Default value: 0.0)
If you are using the Input parameter, you must set
Config.InputPerOn = FALSE.
Word
An Analog input is used as the source of the process value. (Default
value: W#16#0)
If you are using the Input_PER parameter, you must set
Config.InputPerOn = TRUE.
Real
Disturbance variable or pre-control value
Description
PID_Compact provides a PID controller with
self-tuning for automatic and manual mode.
PID_Compact is a PID T1 controller with
anti-windup and weighting of the P- and D-
component.
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG

Advertisement

Table of Contents
loading

Table of Contents