beckhoff TS4100 — 5.6.1 FB_CTRL_LIN_INTERPOLATION

PLC-API VAR_INPUT VAR_INPUT fIn : FLOAT; fManValue : FLOAT; bExtrapolate : BOOL; eMode : E_CTRL_MODE; END_VAR fIn : Input variable for the interpolation block. bManValue : Input variable whose value is output in manual mode. bExtrapolate : 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 : Input that specifies the block's operating mode [ } 16] . VAR_OUTPUT VAR_OUTPUT fOut : FLOAT; bInIsGreaterThanMaxElement : BOOL; bInIsLessThanMinElement : BOOL; eState : E_CTRL_STATE; eErrorId : E_CTRL_ERRORCODES; bError :

BOOL; END_VAR fOut : Table value from linear interpolation. bInIsGreaterThanMaxElement : A TRUE at this output indicates that the magnitude of the input is greater than the largest interpolation point. bInIsLessThanMinElement : A TRUE at this output indicates that the magnitude of the input is smaller than the smallest interpolation point. 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_LIN_INTERPOLATION_PARAMS; END_VAR stParams : Parameter structure of the interpolation element. This consists of the following elements:

TS4100 108 Version: 1.1