beckhoff TF4100 — 4.2.1.5.2 FB_CTRL_NORMALIZE

PLC API Inputs VAR_INPUT fIn : FLOAT; fManValue : FLOAT; bExtrapolate : BOOL; eMode : E_CTRL_MODE; END_VAR Outputs VAR_OUTPUT fOut : FLOAT; bInIsGreaterThanMaxElement : BOOL; bInIsLessThanMinElement : BOOL; eState : E_CTRL_STATE; eErrorId : E_CTRL_ERRORCODES; bError : BOOL; END_VAR Inputs/ outputs VAR_IN_OUT stParams : ST_CTRL_NORMALIZE_PARAMS; END_VAR stParams consists of the following elements: TYPE ST_CTRL_NORMALIZE_PARAMS: STRUCT tCtrlCycleTime : TIME := T#0ms; tTaskCycleTime : TIME := T#0ms; pDataTable_ADR : POINTER TO FLOAT := 0; nDataTable_SIZEOF : UINT := 0; nDataTable_NumberOfRows : UINT := 0; END_STRUCT END_TYPE TF4100 122 Version:

2.2.4 Name Type Description fIn FLOAT Input value fManValue FLOAT Input value that is output in manual mode. bExtrapolate BOOL If this input is FALSE, then the value of the last interpolation point is output if the limits of the table are exceeded. If, however, it is TRUE, then extrapolation is performed on the basis of the last two interpolation points. eMode E CTRL MODE _ _ Input that specifies the operation mode [} 173] of the function block. Name Type Description fOut FLOAT Table value from linear interpolation bInIsGreaterThan MaxElement BOOL A TRUE at this output indicates that the input value is greater than the largest interpolation point.

bInIsLessThanMi nElement BOOL A TRUE at this output indicates that the input value is smaller than the smallest interpolation point. 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 NORM _ _ ALIZE PARAMS _ Parameter structure of the function block