F_BA_IsUnitValid

The function F_BA_IsUnitValid of return type BOOL checks whether the value of the enumeration applied to the input eUnit is within the limits First and Last as defined at E_BA_Unit.
Syntax
FUNCTION F_BA_IsUnitValid : BOOL
VAR_INPUT
eUnit : E_BA_Unit;
END_VAR
Inputs
Name | Type | Description |
|---|---|---|
|
eUnit |
Enumeration to be checked. |