FUNCTION_BLOCK PUMP_VIEW

VAR_INPUT
    DIA : UINT; (* Shaft diameter in pixels *)
    FGD : COLOR := COLOR#blue; (* Shaft body color *)
    BKGD : COLOR := COLOR#white; (* Background color *)
    IX : COLOR := COLOR#red; (* Shaft index color *)
    ARC : UINT := 15; (* Shaft mark width *)
    ANGLE : INT; (* Current shaft angle *)
    DIR : BOOL; (* Outlet direction: 0=Right, 1=Left *)
END_VAR

An instance of this function block type displays a View of a fluid pump showing the index position of its rotating shaft. It is implemented as a subclass of the SHAFT_VIEW type.

See the TANK_VIEWL configuration for an example of the use of an instance of this type.

The pump view shown above was generated with the following parameter values.

Parameter Value Units
DIA 50 pixels
FGD red --
BKGD white --
IX blue --
ARC 15 degrees
ANGLE 45 degrees
DIR FALSE (right)