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. |
Requirements
Development environment | Required PLC library |
---|---|
TwinCAT 3.1 4024.35 | Tc3_BA2_Common from V2.1.20.0 |