beckhoff TF4100 — 4.2.1.3.12 FB_CTRL_PID_SPLITRANGE

PLC API Outputs VAR_OUTPUT fOutPos : FLOAT; fOutNeg : FLOAT; fOut : FLOAT; bARWActive : BOOL := FALSE; bParameterChangeActive : BOOL; eState : E_CTRL_STATE; bError : BOOL; eErrorId : E_CTRL_ERRORCODES; END_VAR VAR_IN_OUT stParams : ST_CTRL_PID_SPLITRANGE_PARAMS; END_VAR Inputs/ outputs stParams consists of the following elements: TYPE ST_CTRL_PID_SPLITRANGE_PARAMS : STRUCT tCtrlCycleTime : TIME := T#0ms; tTaskCycleTime : TIME := T#0ms; fKp_heating : FLOAT := 0; tTn_heating : TIME := T#0ms; TF4100 81 Version:

2.2.4 Name Type Description fSetpointValue FLOAT Setpoint of the controlled variable fActualValue FLOAT Actual value of the controlled variable eParameter Record E CTRL _ _ PARAMETER _ RECORD Index of the active parameter set 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 fOutPos FLOAT Output of the PID-element when the control value is positive. A zero is output otherwise. fOutNeg FLOAT Output of the PID-element when the control value is negative. A zero is output otherwise. fOut FLOAT Output of the PID element bARWActive BOOL A TRUE at this output indicates that the PID-element is being restricted. bParameter ChangeActive BOOL A TRUE at this output indicates that the change from one parameter set to the other is in progress. eState E CTRL STATE _ _ State of the function block bError BOOL Becomes TRUE, as soon as an error occurs. eErrorId E CTRL ERROR _ _ CODES Supplies the error number [} 173] when the output bError is set.

Name Type Description stParams ST CTRL PID _ _ _ SPLITRANGE _ PARAMS Parameter structure of the PID element