PLC API Description of the function block This function block is used to switch over the parameter set used by FB_CTRL_PID_SPLITRANGE . This function block is particularly intended to switch the parameter sets of controllers that can use two actuators to heat and to cool, and to set the limits for the controller. The time tMinWaitTime is specified as an input parameter. At least this time must elapse when switch-over is requested to allow for the parameter range to be changed, and for the controller limits set in such a way that it is possible to switch from heating operation to cooling operation.
The intention of this is to prevent the operation mode being changed immediately simply because the controller overshoots slightly. For heating operation, the parameter range " eCTRL_PARAMETER_RECORD_HEATING = heating" is selected, while for cooling operation the parameter range is " eCTRL_PARAMETER_RECORD_COOLING = cooling" . The controller's parameter sets must be specified in accordance with this arrangement. The request for a changeover itself is provided by a 2-point element (see diagram). The controller's output value, in other words the control value, should be used as the input value for the illustrated characteristic hysteresis curve.
A request for changeover created by the hysteresis element must be present for at least the specified waiting time, so that the parameter range can be changed. The bDisableRange1 and bDisableRange2 Inputs makes it possible to prevent switching into one of the two ranges. It is therefore possible, for instance, to deactivate heating operation in summer and to deactivate cooling in winter. It would also be possible to make the change in the operation mode depend on the current control deviation. In summer, for instance, it might have to be 2°C too hot before switching into cooling operation. This can also be achieved by connecting the Inputs appropriately.
Maximum and minimum limits are output in addition to providing the output of the parameter range, and these can be copied into the PID controller's parameter set. If the FB_CTRL_PARAMETER_SWITCH is in the Heating operation mode, the limits are set as follows: fOutMinLimit = -1.0 stParams.fThreshold; fOutMaxLimit = stParams.fOutMaxLimit; In the Cooling mode , the limits are set as follows: fOutMinLimit = stParams.fOutMaxLimit; fOutMaxLimit = stParams.fThreshold; Inputs VAR_INPUT fManipulatedVariable : FLOAT; nManSyncValue : eCTRL_PARAMETER_RECORD_HEATING; bSync : BOOL; eMode : E_CTRL_MODE; END_VAR Outputs VAR_OUTPUT eParameterRecord : E_CTRL_PARAMETER_RECORD; fOutMaxLimit :
FLOAT; fOutMinLimit : FLOAT; eState : E_CTRL_STATE; TF4100 53 Version: 2.2.4 Name Type Description fManipulated Variable FLOAT Input value of the FB Parameter Switch. This should be equal to _ _ the output value of the controller. nManSync Value eCTRL PARAME _ TER RECORD _ _ HEATING The input with which the function block can be set to one of the parameter ranges. bSync BOOL A rising edge at this input sets the function block to the value "nManSyncValue". eMode E CTRL MODE _ _ Input that specifies the operation mode [} 173] of the function block.