102BTechnology instructions
9.2 PID control
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05
333
Parameter and type
Data type
Description
Actuator_L
IN
Bool
If Actuator_L = TRUE, the valve is at the lower end stop and is no
longer moved in this direction. Default value: FALSE
Reset
IN
Bool
Restarts the PID controller. Default value: FALSE
If Reset = TRUE:
"Inactive" operating mode
Input value = 0
Interim values of the controller are reset. (PID parameters are
retained.)
ScaledInput
OUT
Real
Scaled process value
ScaledFeedback
OUT
Real
Scaled valve position
Output_PER
OUT
Word
Analog output value. If Config.OutputPerOn = TRUE, then Output_PER
is evaluated.
Output_UP
OUT
Bool
Digital output value for opening the valve. Default value: FALSE
If Config.OutputPerOn = FALSE, then parameter Output_UP is
evaluated.
Output_DN
OUT
Bool
Digital output value for closing the valve. Default value: FALSE
If Config.OutputPerOn = FALSE, then parameter Output_DN is
evaluated.
SetpointLimitH
OUT
Bool
Setpoint high limit. Default value: FALSE
If SetpointLimitH = TRUE, the absolute upper limit of the setpoint is
reached. In the CPU, the setpoint is limited to the configured absolute
upper limit of the actual value.
SetpointLimitL
OUT
Bool
Setpoint low limit. Default value: FALSE
If SetpointLimitL = TRUE, the absolute lower limit of the setpoint is
reached. In the CPU the setpoint is limited to the configured absolute
lower limit of the actual value.
InputWarningH
OUT
Bool
If InputWarningH = TRUE, the input value has reached or exceeded the
upper warning limit. Default value: FALSE
InputWarningL
OUT
Bool
If InputWarningL = TRUE, the input value has reached or exceeded the
lower warning limit. Default value: FALSE
State
OUT
Int
Current operating mode of the PID controller. Default value: 0
Use Retain.Mode to change the operating mode:
State = 0: Inactive
State = 1: Pretuning
State = 2: Manual fine tuning
State = 3: Automatic mode
State = 4: Manual mode
State = 5: Safety mode
State = 6: Output value measurement
State = 7: Safety mode monitoring with active trigger
State = 8: Inactive mode monitoring with active trigger
Error
OUT
Bool
If Error = TRUE, at least one error message is pending. Default value:
FALSE
ErrorBits
OUT
DWord
Error message. Default value: DW#16#0000 (no error)