102BTechnology instructions
9.2 PID control
S7-1200 Programmable controller
332
System Manual, 11/2011, A5E02486680-05
Table 9- 16 Data types for the parameters
Parameter and type
Data type
Description
Setpoint
IN
Real
Setpoint of the PID controller in automatic mode. Default value: 0.0
Input
IN
Real
Process value. Default value: 0.0
You must also set Config.InputPEROn = FALSE.
Input_PER
IN
Word
Analog process value (optional). Default value: W#16#0
You must also set Config.InputPEROn = TRUE.
ManualEnable
IN
Bool
Enables or disables the manual operation mode. Default value: FALSE
On the edge of the change from FALSE to TRUE, the PID controller
switches to manual mode, State = 4, and Retain.Mode remains
unchanged.
On the edge of the change from TRUE to FALSE, the PID controller
switches to the last active operating mode and
State = Retain.Mode.
ManualUP
IN
Bool
In manual mode, every rising edge opens the valve by 5% of the total
actuating range, or for the duration of the minimum motor actuation
time. ManualUP is evaluated only if you are using OutputPer and if
position feedback is available. Default value: FALSE
If Output_PER is FALSE, the manual input turns Output_UP on for
the time that corresponds to a movement of 5% of the device.
If Config.ActuatorEndStopOn is TRUE, then Output_UP does not
come on if Actuator_H is TRUE.
ManualDN
IN
Bool
In manual mode, every rising edge closes the valve by 5% of the total
actuating range, or for the duration of the minimum motor actuation
time. ManualDN is evaluated only if you are using OutputPer and if
position feedback is available. Default value: FALSE
If Output_PER is FALSE, the manual input turns Output_DN on for
the time that corresponds to a movement of 5% of the device.
If Config.ActuatorEndStopOn is TRUE, then Output_DN does not
turn on if Actuator_L is TRUE.
ManualValue
IN
Real
Process value for manual operation. Default value: 0.0
In manual mode, you specify the absolute position of the valve.
ManualValue is evaluated only if you are using OutputPer, or if position
feedback is available. Default value: 0.0
Feedback
IN
Real
Position feedback of the valve. Default value: 0.0
To use Feedback, then set Config.FeedbackPerOn = FALSE.
Feedback_PER
IN
Word
Analog feedback of the valve position. Default value: W#16#0
To use Feedback_PER, set Config.FeedbackPerOn = TRUE.
Feedback_PER is scaled, using the following parameters:
Config.FeedbackScaling.LowerPointIn
Config.FeedbackScaling.UpperPointIn
Config.FeedbackScaling.LowerPointOut
Config.FeedbackScaling.UpperPointOut
Actuator_H
IN
Bool
If Actuator_H = TRUE, the valve is at the upper end stop and is no
longer moved in this direction. Default value: FALSE