FB_BAFValveActuatorContinuous

Function-block for controlling a Continuous Valve Actuator directly out of the PLC-program.
VAR_INPUT
uiId : UINT;
bStartExecution : BOOL;
bStopExecution : BOOL;
bClose : BOOL;
bOpen : BOOL;
bSetControlValueDirect : BOOL;
lrSetControlValueDirect : LREAL;
uiId: Object id of the instance (see object id).
bStartExecution: Starts the instance of the valve actuator.
bStopExecution: Stops the instance of the valve actuator.
bSetPositionDirect: The valve will open up to the position entered under lrSetPositionDirect.
lrSetPositionDirect: See bSetPositionDirect. 0% means completely closed, 100% fully opened.
VAR_OUTPUT
uiErrorId : UINT;
iErrorParameter : INT;
eExecutionState : E_BAF_ExecutionState;
lrControlValue : 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.
lrControlValue: Control value between 0% and 100%.