FB_BAFValveActuatorGroupStandard
Function-block for controlling a Standard Valve Actuator Group directly out of the PLC-program.
VAR_INPUT
uiId : UINT;
bStartExecution : BOOL;
bStopExecution : BOOL;
bClose : BOOL;
bOpen : BOOL;
bStop : BOOL;
bSetControlValueDirect : BOOL;
lrSetControlValueDirect : LREAL;
uiId: Object id of the instance (see object id).
bStartExecution: Starts the instance of the valve actuator group.
bStopExecution: Stops the instance of the valve actuator group.
bClose: The bClose-command of all valves in this group are executed.
bOpen: The bOpen-command of all valves in this group are executed.
bStop: The bStop-command of all valves in this group are executed.
bSetControlValueDirect: The bSetControlValueDirect-command of all valves in this group are executed.
lrSetControlValueDirect: After sending the command bSetControlValueDirect all valves in this group are supposed to drive to this value. 0% completely closed, 100% means fully opened.
VAR_OUTPUT
uiErrorId : UINT;
iErrorParameter : INT;
eExecutionState : E_BAF_ExecutionState;
udiAmountOfValveActuators : UDINT;
udiAmountOfFaultyValveActuators : UDINT;
udiAmountOfValveActuatorDriveClose : UDINT;
udiAmountOfValveActuatorDriveOpen : UDINT;
lrAverageControlValue : LREAL;
uiErrorId: Contains the error code of the last executed command (see Error codes).
iErrorParameter: Contains the specific parameter of the error code (see Error codes).
eExecutionState: Contains the actual execution state of the instance of the valve group.
udiAmountOfValveActuators: The amount of valves in this group.
udiAmountOfFaultyValveActuators: The number of faulty valves in this group (uiErrorId > 0).
udiAmountOfValveActuatorDriveClose: The number of valves in this group, which are actually closing (uiErrorId has to be 0).
udiAmountOfValveActuatorDriveOpen: The number of valves in this group, which are actually opening (uiErrorId has to be 0).
lrAverageControlValue: The average position of all valves in this group, which are not in an error-state.