Technology instructions
10.2 PID control
S7-1200 Programmable controller
594 System Manual, V4.2, 09/2016, A5E02486680-AK
Output_PWM
1
OUT Bool Output value for pulse width modulation. (Default value: FALSE)
On and Off times form the output value.
SetpointLimit_H OUT Bool Setpoint high limit. (Default value: FALSE)
If SetpointLimit_H = TRUE, the absolute setpoint upper limit is reached
(Setpoint ≥ Config.SetpointUpperLimit).
The setpoint is limited to Config.SetpointUpperLimit.
SetpointLimit_L OUT Bool Setpoint low limit. (Default value: FALSE)
If SetpointLimit_L = TRUE, the absolute setpoint lower limit is reached
(Setpoint ≤ Config.SetpointLowerLimit).
The setpoint is limited to Config.SetpointLowerLimit.
InputWarning_H OUT Bool If InputWarning_H = TRUE, the process value has reached or exceed-
ed the warning high limit. (Default value: FALSE)
InputWarning_L OUT Bool If InputWarning_L = TRUE, the process value has reached or fallen
below the warning low limit. (Default value: FALSE)
State OUT Int Current operating mode of the PID controller. (Default value: 0)
You can change the operating mode using the Mode input parameter
and a rising edge at ModeActivate:
• State = 0: Inactive
• State = 1: Pre-tuning
• State = 2: Manual fine tuning
• State = 3: Automatic mode
• State = 4: Manual mode
• State = 5: Substitute output value with error monitoring
Error OUT Bool If Error = TRUE, at least one error message is pending in this cycle.
(Default value: FALSE)
Note: The Error parameter in V1.x PID was the ErrorBits field that con-
tained the error codes. It is now a Boolean flag indicating that an error
ErrorBits OUT DWord The PID_Compact instruction ErrorBits parameters table (Page 597)
defines the error messages that are pending. (Default value:
DW#16#0000 (no error)). ErrorBits is retentive and is reset upon a
rising edge at Reset or ErrorAck.
Note: In V1.x, the ErrorBits parameter was defined as the Error param-
1
You can use the outputs of the Output, Output_PER, and Output_PWM parameters in parallel.