FB_BA_BI_IO

FB_BA_BI_IO 1:

The function block FB_BA_BI_IO represents a binary input object within the base framework. The variables for linking the input to the terminal are declared within the function block.

Inheritance hierarchy

FB_BA_Base

    FB_BA_BasePublisher

        FB_BA_Object

            FB_BA_EventObject

                FB_BA_EventObjectEx

                    FB_BA_ComEventObject

                        FB_BA_BaseBI

                            FB_BA_BI

Syntax

FUNCTION_BLOCK FB_BA_BI_IO EXTENDS FB_BA_BaseBI IMPLEMENTS I_BA_RawBI
VAR_INPUT CONSTANT PERSISTENT
  {region 'Variable Parameters'}
    {attribute 'parameterCategory':='Config'}
    ePolarity            : E_BA_Polarity := E_BA_Polarity.eNormal;
  {endregion}
END_VAR
VAR
  {region 'Raw I/O'}
    bRawVal      AT %I*  : BOOL;
  {endregion}
END_VAR

FB_BA_BI_IO 2: Inputs CONSTANT PERSISTENT

Name

Type

Description

ePolarity

E_BA_Polarity

The polarity of the sensor must be set at this input. The setting is made by selecting the type in the enumeration.

VAR

Name

Type

Description

bRawVal

BOOL

Variable for linking the input value to the terminal.

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.35

Tc3_XBA from v5.3.0.0