Siemens SIMATIC S7-1200 Function Manual page 248

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

Advertisement

Instructions
9.1 PID_Compact
Call
PID_Compact is called in the constant time scale of a cycle interrupt OB.
If you call PID_Compact as a multi-instance DB, no technology object is created. No
parameter assignment interface or commissioning interface is available. You must assign
parameters for PID_Compact directly in the multi-instance DB and commission it via a watch
table.
Download to device
The actual values of retentive variables are only updated when you download PID_Compact
completely.
Downloading technology objects to device (Page 44)
Startup
When the CPU starts up, PID_Compact starts in the operating mode that is saved in the
Mode in/out parameter. To switch to "Inactive" operating mode during startup, set
RunModeByStartup = FALSE.
Reaction to error
In automatic mode and during commissioning, the reaction to error depends on the
SetSubstituteOutput and ActivateRecoverMode variables. In manual mode, the reaction is
independent of SetSubstituteOutput and ActivateRecoverMode. If ActivateRecoverMode =
TRUE, the reaction additionally depends on the error that occurred.
SetSubstitute-
Acti-
Output
vateRecov-
erMode
Not relevant
FALSE
FALSE
TRUE
TRUE
TRUE
In manual mode, PID_Compact uses ManualValue as output value, unless ManualValue is
invalid. If ManualValue is invalid, SubstituteOutput is used. If ManualValue and
SubstituteOutput are invalid, Config.OutputLowerLimit is used.
The Error parameter indicates if an error is pending. When the error is no longer pending,
Error = FALSE. The ErrorBits parameter shows which errors have occurred. ErrorBits is
reset by a rising edge at Reset or ErrorAck.
248
Configuration editor
> output value
> Set Output to
Zero (inactive)
Current output value while error is
pending
Substitute output value while error
is pending
Reaction
Switch to "Inactive" mode (State = 0)
The value 0.0 0 is transferred to the actuator.
Switch to "Substitute output value with error moni-
toring" mode (State = 5)
The current output value is transferred to the
actuator while the error is pending.
Switch to "Substitute output value with error moni-
toring" mode (State = 5)
The value at SubstituteOutput is transferred to the
actuator while the error is pending.
Function Manual, 03/2017, A5E35300227-AC
PID control

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-1500

Table of Contents