FB_BAFValveActuator3Point

FB_BAFValveActuator3Point 1:
TcBAPlc_FB_BAFValveActuator3Point

Function-block for controlling a 3-point Valve Actuator directly out of the PLC-program.

VAR_INPUT

uiId                 : UINT;
bStartExecution      : BOOL;
bStopExecution       : BOOL;
bClose               : BOOL;
bOpen                : BOOL;
bStop                : BOOL;

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.

bClose: Closes the valve.

bOpen: Opens the valve.

bStop: Stops opening/closing the valve.

VAR_OUTPUT

uiErrorId            : UINT;
iErrorParameter      : INT;
eExecutionState      : E_BAF_ExecutionState;
bDriveClose          : BOOL;
bDriveOpen           : BOOL;
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.

bDriveClose: The valve closes.

bDriveOpen: The valve opens.

lrControlValue: Control value between 0% and 100%.