Technology instructions
10.2 PID control
S7-1200 Programmable controller
612 System Manual, V4.2, 09/2016, A5E02486680-AK
Mode IN/OUT Int Activated on the leading edge of the Mode Activate input.
Operating mode selection (Default value: 0.0):
• Mode = 0: Inactive
• Mode = 1: Pretuning
• Mode = 2: Fine tuning
• Mode = 3: Automatic mode
• Mode = 4: Manual mode
“Substitute output value with error monitoring” (State = 5). This cannot
be activated by the user; it is only an automatic error reaction.
Cascade connection to master (AntiWindUp and tuning conditions).
(Default value: DW#16#0000)
• Bits 0 - 15: Not used in PID_Temp instruction
• Bits 16 - 23: Limit counter: A slave increments this value if it reach-
es its limitation. The number of slaves in limitation is processed for
Anti-Windup-functionality (Refer to the Con-
fig.Cascade.AntiWindUpMode parameter.
• Bit 24: IsAutomatic: This bit is set to "1" if all slaves of this controller
are in Automatic mode and are processed to check conditions for
tuning in a cascade. This bit is identical to the AllSlaveAutomat-
icState parameter.
• Bit 25: "IsReplacement-Setpoint": This bit is set to "1" if a slave of
this controller has the "Replacement Setpoint" activated and is pro-
cessed to check conditions for tuning in a cascade. The inverted
value is stored in the NoSlaveReplacementSetpoint parameter.
Slave IN/OUT DWord
Scaled process value. (Default value: 0.0)
OutputHeat
1
OUT Real Output value for heating in REAL format. (Default value: 0.0)
This output value is calculated, independent from the output selection,
using the Config.Output.Heat.Select parameter.
OutputCool
1
OUT Real Output value for cooling in REAL format. (Default value: 0.0)
This output value is calculated, independent from the output selection,
using the Config.Output.Cool.Select parameter.
OutputHeat_PER
1
OUT Int Output value for heating in peripheral format (Default value: 0)
This output value is only calculated if selected using the Con-
fig.Output.Heat.Select = 2 parameter. If not selected, this output is
OutputCool_PER
1
OUT Int Output value for cooling in peripheral format (Default value: 0)
This output value is only calculated if selected using the Con-
fig.Output.Cool.Select = 2 parameter. If not selected, this output is
OutputHeat_PWM
1
OUT Bool Pulse-width-modulated output value for heating. (Default value: FALSE)
This output value is only calculated if selected using the Con-
fig.Output.Heat.Select = 1 (default value) parameter. If not selected,
this output is always FALSE.