beckhoff TF4100 — 4.2.1.2.2 FB_CTRL_P

PLC API stParams consists of the following elements: TYPE ST_CTRL_HYSTERESIS_PARAMS : STRUCT tCtrlCycleTime : TIME := T#0ms; tTaskCycleTime : TIME := T#0ms; fHysteresisRange : FLOAT; END_STRUCT END_TYPE 4.2.1.2.2 FB_CTRL_P The function block provides an P-transfer element in the functional diagram. Transfer function: ( ) p G s K = VAR_INPUT fIn :FLOAT; eMode :E_CTRL_MODE; END_VAR Inputs Outputs VAR_OUTPUT fOut :FLOAT; eState :E_CTRL_STATE; eErrorId :E_CTRL_ERRORCODES; bError :BOOL; END_VAR TF4100 28 Version:

2.2.4 Name Type Description stParams ST CTRL _ _ HYSTERESIS _ PARAMS Parameter structure of the hysteresis element Name Type Description 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. 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. fHysteresis Range FLOAT Hysteresis range, see diagram above.

Name Type Description fIn FLOAT Input of the P element eMode E CTRL MODE _ _ Input that specifies the operation mode of the function block.