FB_BA_AO_IO

FB_BA_AO_IO 1:

The function block represents an analog output object within the base framework. The variables for linking the control output 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_BaseAO

Syntax

FUNCTION_BLOCK FB_BA_AO_IO EXTENDS FB_BA_BaseAO IMPLEMENTS I_BA_RawAO
VAR_INPUT CONSTANT PERSISTENT
  {region 'Variable Parameters'}
    eOverriddenPolarity    : E_BA_Polarity := E_BA_Polarity.eNormal;
  {endregion}
END_VAR
VAR
  {region 'Raw I/O'}
    bRawOverridden    AT %I*    : BOOL;
    nRawState         AT %I*    : USINT;
    nRawDataOut       AT %Q*    : INT;
  {endregion}
END_VAR

FB_BA_AO_IO 2: Inputs CONSTANT PERSISTENT

Name

Type

Description

eOverridenPolarity

E_BA_Polarity

Output terminals with mechanical priority operation report the state of their switches back to the controller.

With this enumeration the polarity of the switch feedback can be parameterized.

VAR

Name

Type

Description

bRawOverridden

BOOL

Variable for detecting an override from the outside.

nRawState

USINT

Variable for linking the status information of a terminal.

nRawDataOut

INT

Variable for linking the output value of the PLC with the process image of an output terminal.

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.35

Tc3_XBA from v5.3.0.0