PLC-API Transfer function: VAR_INPUT VAR_INPUT fIn : FLOAT; fManSyncValue : FLOAT; bSync : BOOL; eMode : E_CTRL_MODE; bHold : BOOL; END_VAR fIn : Input value of the TuTg element. fManSyncValue : Input value to which the TuTg element can be set, or that is issued at the output in manual mode. bSync : A rising edge at this input sets the TuTg element to the value fManSyncValue. eMode : Input that specifies the block's operating mode [ } 16] . bHold : A TRUE at this input will hold the internal state (and therefore also the output) constant at its current value, independently of the input value. VAR_OUTPUT VAR_OUTPUT fOut : FLOAT; bSampleRateChanged : BOOL; eState : E_CTRL_STATE; eErrorId :
E_CTRL_ERRORCODES; bError : BOOL; END_VAR fOut : Output of the TuTg element. bSmpleRateChanged : Output that indicates whether the block has internally reduced the sampling rate because of the array being used to delay the input signal not otherwise providing sufficient room. eState : State of the function block. eErrorId : Supplies the error number [ } 16] when the bError output is set. TS4100 104 Version: 1.1