PLC-API VAR_OUTPUT VAR_OUTPUT fOutPos : FLOAT; fOutNeg : FLOAT; fOut : FLOAT; bARWActive : BOOL := FALSE; (* ARW active ? [TRUE/FALSE] -> freeze I-part *) bParameterChangeActive : BOOL; eState : E_CTRL_STATE; bError : BOOL; (* error flag *) eErrorId : E_CTRL_ERRORCODES; (* error code *) END_VAR fOutPos : Output of the PID element when the control value is positive. A zero is output otherwise. fOutNeg : Output of the PID element when the control value is negative. A zero is output otherwise. fOut : Output of the PID element. bARWactive : A TRUE at this output indicates that the PID element is being restricted. bParameterChangeActive :
A TRUE at this output indicates that the change from one parameter record to the other is in progress. fCtrlDerivation : A TRUE at this output indicates that the PID element is being restricted. eState : State of the function block. eErrorId : Supplies the error number [ } 16] when the bError output is set. bError : Becomes TRUE, as soon as an error occurs. VAR_IN_OUT VAR_IN_OUT stParams : ST_CTRL_PID_SPLITRANGE_PARAMS; END_VAR stParams : Parameter structure of the PID element. This consists of the following elements: TYPE ST_CTRL_PID_SPLITRANGE_PARAMS : STRUCT tCtrlCycleTime : TIME := T#0ms; (* controller cycle time [TIME] *) tTaskCycleTime :
TIME := T#0ms; (* task cycle time [TIME] *) fKp_heating : FLOAT := 0; (* proportional gain *) tTn_heating : TIME := T#0ms; (* Tn *) tTv_heating : TIME := T#0ms; (* Tv *) tTd_heating : TIME := T#0ms; (* Td *) fKp_cooling : FLOAT := 0; (* proportional gain *) tTn_cooling : TIME := T#0ms; (* Tn *) tTv_cooling : TIME := T#0ms; (* Tv *) tTd_cooling : TIME := T#0ms; (* Td *) nParameterChangeCycleTicks : INT; fOutMaxLimit : FLOAT := 1E38; (* maximum output limit *) fOutMinLimit : FLOAT := -1E38; (* minimum output limit *) bPInTheFeedbackPath : BOOL; bDInTheFeedbackPath : BOOL; bARWOnIPartOnly : BOOL; END_STRUCT END_TYPE TS4100 75 Version: 1.1