beckhoff TF4100 — 4.2.1.3.8 FB_CTRL_PI_PID

PLC API Outputs VAR_OUTPUT fOut : FLOAT; eStateInnerLoop : E_CTRL_STATE; bARWactiveInnerLoop : BOOL; eErrorIdInnerLoop : E_CTRL_ERRORCODES; bErrorInnerLoop : BOOL; eStateOuterLoop : E_CTRL_STATE; bARWactiveOuterLoop : BOOL; eErrorIdOuterLoop : E_CTRL_ERRORCODES; bErrorOuterLoop : BOOL; END_VAR Inputs/ outputs VAR_IN_OUT stParams : ST_CTRL_PI_PID_PARAMS; END_VAR stParams consists of the following elements: TYPE ST_CTRL_PI_PID_PARAMS : STRUCT tCtrlCycleTime : TIME := T#0ms; tTaskCycleTime : TIME := T#0ms; fKp_OuterLoop : FLOAT := 0; tTn_OuterLoop : TIME := T#0s; fMaxLimit_OuterLoop : FLOAT := 1E38; fMinLimit_OuterLoop : FLOAT := -1E38; fKp_InnerLoop : FLOAT := 0; tTn_InnerLoop :

TIME := T#0ms; tTv_InnerLoop : TIME := T#0ms; tTd_InnerLoop : TIME := T#0ms; fMaxLimit_InnerLoop : FLOAT := 1E38; fMinLimit_InnerLoop : FLOAT := -1E38; END_STRUCT END_TYPE TF4100 59 Version: 2.2.4 Name Type Description fOut FLOAT Output of the PI-PID-element eStateInnerLoop E CTRL STATE _ _ State of the internal PID-element (inner control loop) bARWactive InnerLoop BOOL A TRUE at this output indicates that the output of the PID-element (the inner control loop) is being restricted. eErrorIdInnerLoo p E CTRL ERROR _ _ CODES Returns the error number [} 173] of the PID-element (the inner control loop) when the bError output is set.

bErrorInnerLoop BOOL Is set to TRUE as soon as an error occurs in the PID-element (the inner control loop). eStateOuterLoop E CTRL STATE _ _ State of the internal PI element (outer control loop) bARWactiveOute rLoop BOOL A TRUE at this output indicates that the PI element's (the outer control loop) output is being restricted. eErrorIdOuterLoo p E CTRL ERROR _ _ CODES Returns the error number [} 173] of the PI element (the outer control loop) when the bError output is set. bErrorOuterLoop BOOL Is set to TRUE as soon as an error occurs in the PI element (the outer control loop). Name Type Description stParams ST CTRL PI PID _ _ _ PARAMS _ Parameter structure of the PI-PID-element