F_BA_IsUnitValid

F_BA_IsUnitValid 1:

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

F_BA_IsUnitValid 2: Inputs

Name

Type

Description

eUnit

E_BA_Unit

Enumeration to be checked.

Requirements

Development environment

Required PLC library

TwinCAT 3.1 4024.35

Tc3_BA2_Common from V2.1.20.0