beckhoff TS4100 — 5.4.6 FB_CTRL_PARAMETER_SWITCH

PLC-API 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: In the Cooling mode, the limits are set as follows: VAR_INPUT VAR_INPUT fManipulatedVariable : FLOAT; (* fOut from the FB_CTRL_PID_SPLITRANGE *) nManSyncValue : eCTRL_PARAMETER_RECORD_HEATING; bSync : BOOL; eMode : E_CTRL_MODE; END_VAR fManipulatedVariable : The input value of FB_Parameter_Switch. This should be the same as the controller's output value. nManSyncValue : The input with which the function block can be set to one of the to parameter ranges. bSync : A rising edge at this input sets the function block to the value nManSyncValue. eMode :

Input that specifies the block's operating mode [ } 16] . VAR_OUTPUT VAR_OUTPUT eParameterRecord : E_CTRL_PARAMETER_RECORD; fOutMaxLimit : FLOAT; fOutMinLimit : FLOAT; eState : E_CTRL_STATE; eErrorId : E_CTRL_ERRORCODES; bError : BOOL; END_VAR eParameterRecord : The output of the function block, identifying the parameter region. fOutMaxLimit : The maximum output value of which the controller is limited. (This should be copied into the controller's parameter structure.) fOutMinLimit : The minimum value of the output of which the controller is limited. (This should be copied into the controller's parameter structure.) eState : State of the function block. eErrorId :

Supplies the error number [ } 16] when the bError output is set. bError : Becomes TRUE, as soon as an error occurs. VAR_IN_OUT VAR_IN_OUT stParams : ST_CTRL_PARAMETER_SWITCH_PARAMS; END_VAR stParams : Parameter structure of the function block. This consists of the following elements: TS4100 50 Version: 1.1