PLC-API ) bSyncOuterLoop : BOOL; (* rising edge set the output to the fManSyncValue *) eModeOuterLoop : E_CTRL_MODE; (* sets the mode of the function block *) bHoldOuterLoop : BOOL; (* hold the internal integrator *) END_VAR fSetpointValue : Setpoint of the controlled variable. fActualValueOuterLoop : The actual value of the controlled variable that is fed back to the PI controller of the outer control loop. fActualValueInnerLoop : The actual value of the controlled variable that is fed back to the PID controller of the inner control loop. fPreControl : Pre-control that is connected behind the PI controller. fManSyncValueInnerLoop :
Input, to whose value it is possible to set the internal state of the PID element (inner control loop). bSyncInnerLoop : A rising edge at this input sets the PID element (inner control loop) to the value fManSyncValueInnerLoop. eModeInnerLoop : Input that specifies the operation mode [ } 16] of the PID element (inner control loop). bHoldInnerLoop : A TRUE at this input holds the internal state of the PID element (inner control loop) constant at the current value. fManSyncValueOuterLoop : Input, to whose value it is possible to set the internal state of the PI element (outer control loop). bSyncOuterLoop :
A rising edge at this input sets the PI element (the outer control loop) to the value fManSyncValueOuterLoop. eModeOuterLoop : Input that specifies the operation mode [ } 16] of the PI element (the outer control loop). bHoldOuterLoop : A TRUE at this input holds the internal state of the PI element (the outer control loop) constant at the current value. VAR_OUTPUT VAR_OUTPUT fOut : FLOAT; (* manipulated value to the process *) eStateInnerLoop : E_CTRL_STATE; bARWactiveInnerLoop : BOOL; eErrorIdInnerLoop : E_CTRL_ERRORCODES; (* error code *) bErrorInnerLoop : BOOL; (* TRUE if an error situation exists *) eStateOuterLoop : E_CTRL_STATE; bARWactiveOuterLoop : BOOL; eErrorIdOuterLoop :
E_CTRL_ERRORCODES; (* error code *) bErrorOuterLoop : BOOL; (* TRUE if an error situation exists *) END_VAR fOut : Output of the PI-PID element. eStateInnerLoop : State of the internal PID element (inner control loop). bARWactiveInnerLoop : A TRUE at this output indicates that the PID element (inner control loop) is being restricted. eErrorIdInnerLoop : Returns the error number [ } 16] of the PID element (inner control loop) when the bError output is set. bErrorInnerLoop : Becomes TRUE as soon as an error occurs in the PID element (inner control loop). eStateOuterLoop : State of the internal PI element (outer control loop). bARWactiveOuterLoop :
A TRUE at this output indicates that the PID element (outer control loop) is being restricted. TS4100 55 Version: 1.1