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_LIN_INTERPOLATION_PARAMS; END_VAR stParams consists of the following elements: TYPE ST_CTRL_2POINT_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 119 Version:
2.2.4 Name Type Description fIn FLOAT Input value for the interpolation function block 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 bInIsGreater ThanMax Element BOOL A TRUE at this output indicates that the input value is greater than the largest interpolation point.
bInIsLessThan Min Element 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 _ _ ERRORCODES 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 LIN IN _ _ _ TERPOLATION _ PARAMS Parameter structure of the interpolation element