102BTechnology instructions
9.2 PID control
Table 9- 16
Data types for the parameters
Parameter and type
Setpoint
IN
Input
IN
Input_PER
IN
ManualEnable
IN
ManualUP
IN
ManualDN
IN
ManualValue
IN
Feedback
IN
Feedback_PER
IN
Actuator_H
IN
332
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 Config.InputPEROn = FALSE.
Word
Analog process value (optional). Default value: W#16#0
You must also set Config.InputPEROn = TRUE.
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.
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.
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.
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
Real
Position feedback of the valve. Default value: 0.0
To use Feedback, then set Config.FeedbackPerOn = FALSE.
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
Bool
If Actuator_H = TRUE, the valve is at the upper end stop and is no
longer moved in this direction. Default value: FALSE
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05