beckhoff TF4100 — 4.2.1.3.6 FB_CTRL_PARAMETER_SWITCH

PLC API eErrorId : E_CTRL_ERRORCODES; bError : BOOL; END_VAR Inputs/ Outputs VAR_IN_OUT stParams : ST_CTRL_PARAMETER_SWITCH_PARAMS; END_VAR stParams consists of the following elements: TYPE ST_CTRL_2POINT_PARAMS : STRUCT tTaskCycleTime : TIME; tCtrlCycleTime : TIME; fThreshold : FLOAT; fOutMaxLimit : FLOAT; fOutMinLimit : FLOAT; tMinWaitTime : TIME; END_STRUCT END_TYPE TF4100 54 Version: 2.2.4 Name Type Description eParameterReco rd E CTRL _ _ PARAMETER _ RECORD The output of the function block, identifying the parameter range. fOutMaxLimit FLOAT The maximum output value of which the controller is limited.

(This should be copied into the controller's parameter structure.) fOutMinLimit FLOAT The minimum output value of which the controller is limited. (This should be copied into the controller's parameter structure.) eState E CTRL _ _ STATE State of the function block eErrorId E CTRL ERROR _ _ CODES Supplies the error number [} 173] when the output bError is set. bError BOOL Becomes TRUE, as soon as an error occurs. Name Type Description stParams ST CTRL PARA _ _ METER SWITCH _ PARAMS _ Parameter structure of the function block Name Type Description tTaskCycleTime TIME Cycle time with which the function block is called.

If the function block is called in every cycle this corresponds to the task cycle time of the calling task. tCtrlCycleTime TIME Cycle time with which the control loop is processed. This must be greater than or equal to the TaskCycleTime. The function block uses this input value to calculate internally whether the state and the output values have to be updated in the current cycle. fThreshold FLOAT Switching threshold, see illustration above. fOutMaxLimit FLOAT The maximum limit; it is passed on to the controller. fOutMinLimit FLOAT The minimum limit; it is passed on to the controller. tMinWaitTime TIME Waiting time, see description above.