beckhoff TF4100 — 4.2.1.3.7 FB_CTRL_PI

PLC API Inputs VAR_INPUT fSetpointValue : FLOAT; fActualValue : FLOAT; fManSyncValue : FLOAT; bSync : BOOL; eMode : E_CTRL_MODE; bHold : BOOL; END_VAR Outputs VAR_OUTPUT fOut : FLOAT; bARWactive : BOOL; eState : E_CTRL_STATE; eErrorId : E_CTRL_ERRORCODES; bError : BOOL; END_VAR Inputs/ outputs VAR_IN_OUT stParams : ST_CTRL_PI_PARAMS; END_VAR stParams consists of the following elements: TYPE ST_CTRL_PI_PARAMS: STRUCT tCtrlCycleTime : TIME := T#0ms; tTaskCycleTime : TIME := T#0ms; tTn : TIME := T#0ms; fKp : FLOAT := 0; fOutMaxLimit : FLOAT := 1E38; fOutMinLimit : FLOAT := -1E38; bARWOnIPartOnly : BOOL := FALSE; END_STRUCT END_TYPE TF4100 56 Version:

2.2.4 Name Type Description fSetpointValue FLOAT Setpoint of the controlled variable fActualValue FLOAT Actual value of the controlled variable fManSyncValue FLOAT Input with which the PI element can be set. bSync BOOL A rising edge at this input sets the PI-element to the value "fManSyncValue". eMode E CTRL MODE _ _ Input that specifies the operation mode [} 173] of the function block. bHold BOOL A TRUE at this input will hold the internal state (and therefore also the output) constant at its current value, independently of the control deviation. Name Type Description fOut FLOAT Output of the PI element bARWactive BOOL A TRUE at this output indicates that the PI-element is being restricted.

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 PI _ _ _ PARAMS Parameter structure of the PI element