9.3.4.5
In/out parameters of PID_Temp V2
Parameter
Data type
Mode
INT
Master
DWORD
Slave
DWORD
PID control
Function Manual, 03/2017, A5E35300227-AC
Default
Description
4
At Mode, specify the operating mode to which PID_Temp is to switch. Options
are:
Mode = 0: Inactive
•
Mode = 1: Pretuning
•
Mode = 2: Fine tuning
•
Mode = 3: Automatic mode
•
Mode = 4: Manual mode
•
The operating mode is activated by:
Rising edge at ModeActivate
•
Falling edge at Reset
•
Falling edge at ManualEnable
•
Cold restart of CPU if RunModeByStartup = TRUE
•
For pretuning and fine tuning, you specify with Heat.EnableTuning and
Cool.EnableTuning whether tuning takes place for heating or cooling.
Mode is retentive.
A detailed description of the operating modes can be found in State and Mode
parameters (Page 430).
DW#16#0
Interface for cascade control
If this PID_Temp instance is used as slave controller in a cascade (Con-
fig.Cascade.IsSlave = TRUE), assign the Master parameter at the instruction
call with the Slave parameter of the master controller.
Example:
Call of a slave controller "PID_Temp_2" with master controller "PID_Temp_1" in
SCL:
----------------------------------------------------------------------------
"PID_Temp_2"(Master := "PID_Temp_1".Slave, Setpoint :=
"PID_Temp_1".OutputHeat);
----------------------------------------------------------------------------
You use this interface to exchange slave controller information about operating
mode, limit and substitute setpoint with your master controller. Keep in mind that
the call of the master controller has to take place before the call of the slave
controller in the same cyclic interrupt OB.
Assignment:
Bits 0 to 15: Unassigned
•
Bits 16 to 23 – Limit counter:
•
A slave controller whose output value is limited increments this counter. De-
pending on the configured number of slaves (Config.Cascade.CountSlaves)
and of the anti-windup mode (Config.Cascade.AntiWindUpMode), the mas-
ter controller reacts accordingly.
Bit 24 – Automatic mode of the slave controllers:
•
TRUE, if all slave controllers are in automatic mode
Bit 25 – Substitute setpoint of the slave controllers:
•
TRUE, if a slave controller has activated the substitute setpoint (Substi-
tuteSetpointOn = TRUE)
DW#16#0
Interface for cascade control
You use this interface to exchange slave controller information about operating
mode, limit and substitute setpoint with your master controller.
See description of Master parameter
Instructions
9.3 PID_Temp
393