PLC API VAR_IN_OUT stParams : ST_CTRL_PID_EXT_PARAMS; END_VAR Inputs/ outputs stParams consists of the following elements: TYPE ST_CTRL_PID_EXT_PARAMS : STRUCT tCtrlCycleTime : TIME := T#0ms; tTaskCycleTime : TIME := T#0ms; fKp : FLOAT := 0; tTn : TIME := T#0ms; tTv : TIME := T#0ms; tTd : TIME := T#0ms; fDeadBandInput : REAL := 0.0; fDeadBandOutput : REAL := 0.0; fInnerWindow : REAL := 0.0; fOuterWindow : REAL := 0.0; fOutMaxLimit : FLOAT := 1E38; fOutMinLimit : FLOAT := -1E38; bPInTheFeedbackPath : BOOL; bDInTheFeedbackPath : BOOL; bARWOnIPartOnly : BOOL; END_STRUCT END_TYPE TF4100 76 Version:
2.2.4 Name Type Description fOut FLOAT Output of the PID element bMaxLimit Reached BOOL The output is TRUE when the function block is at its upper limit. bMinLimit Reached BOOL The output is TRUE when the function block is at its lower limit. bARWActive BOOL A TRUE at this output indicates that the PID-element is being restricted. fCtrlDerivation FLOAT The current value of the control deviation 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 _ _ ERRORCODES Becomes TRUE, as soon as an error occurs. Name Type Description stParams ST CTRL PID _ _ _ EXT PARAMS _ Parameter structure of the PID element