PLC API The internal data required by the function block is stored in the ar_stTransferfunction1Data array. This data must never be modified from within the PLC program. This procedure is also illustrated in the sample program listed below. Inputs VAR_INPUT fIn : FLOAT; eMode : E_CTRL_MODE; END_VAR Outputs VAR_OUTPUT fOut : FLOAT; eState : E_CTRL_STATE; bError : BOOL; eErrorId : E_CTRL_ERRORCODES; END_VAR Inputs/ outputs VAR_IN_OUT stParams : ST_CTRL_TRANSFERFUNCTION_1_PARAMS; END_VAR stParams consists of the following elements: TYPE ST_CTRL_TRANSFERFUNCTION_1_PARAMS: STRUCT tTaskCycleTime : TIME; tCtrlCycleTime : TIME := T#0ms; nOrderOfTheTransferfunction : USINT; pNumeratorArray_ADR :
POINTER TO FLOAT := 0; nNumeratorArray_SIZEOF : UINT; pDenominatorArray_ADR : POINTER TO FLOAT := 0; nDenomiantorArray_SIZEOF : UINT; pTransferfunction1Data_ADR : POINTER TO ST_CTRL_TRANSFERFUNCTION_1_DATA; nTransferfunction1Data_SIZEOF : UINT; END_STRUCT END_TYPE TF4100 36 Version: 2.2.4 Name Type Description fIn FLOAT Input to the transfer function eMode E CTRL MODE _ _ Input that specifies the operation mode of the function block. Name Type Description fOut FLOAT Output from the transfer function eState E CTRL STATE _ _ State of the function block bError BOOL Supplies the error number [} 173] when the output bError is set.
eErrorId E CTRL ERROR _ _ CODES Becomes TRUE, as soon as an error occurs. Name Type Description stParams ST CTRL TRAN _ _ SFERFUNCTION 1 PARAMS _ _ Parameter structure of the function block