FB_BA_View

FB_BA_View 1:

The function block FB_BA_View is used to create a folder within the project structure.

Inheritance hierarchy

FB_BA_Base

    FB_BA_BasePublisher

        FB_BA_Object

Syntax

FUNCTION_BLOCK FB_BA_View EXTENDS FB_BA_Object IMPLEMENTS I_BA_View
VAR_INPUT CONSTANT PERSISTENT
  {region 'Variable Parameters'}
    eNodeType           : E_BA_NodeType := E_BA_NodeType.Automatic;
  {endregion}
END_VAR
VAR_INPUT CONSTANT
  {region 'Operational Parameters'}
    bAcknowledgeRm      : BOOL;
  {endregion}
END_VAR
VAR
  {region 'SubInit'}
    eDPADMode           : E_BA_DPADMode := E_BA_DPADMode.Undefined;
  {endregion}
  {region 'Events'}
    fbActiveEvents      : FB_BA_EventIndicator;
  {endregion}
END_VAR

FB_BA_View 2: Inputs CONSTANT PERSISTENT

Name

Type

Description

eNodeType

E_BA_NodeType

The variable NodeType describes the folder level within the project structure.

FB_BA_View 3: Inputs CONSTANT

Name

Type

Description

bAcknowledgeRm

BOOL

Input for local acknowledgement of the events of an object.

VAR

Name

Type

Description

eDPADMode

E_BA_DPADMode

The variable influences the generation of the user address key integrated by the project structure.

To create the project structure it is mandatory to establish an integrated parent / child relationship within the TwinCAT project.

This means that all instances of the FB_BA_View function block must be told from whom they originate.

However, the number of levels within the TwinCAT program or symbol path often differs from the number of levels in the user address key.

Often there are more levels in the symbol path of the TwinCAT project than in the user address key.

It may therefore be necessary to exclude some levels from the concatenation of texts for the generic generation of object names and description texts.

This is possible with the enumeration eDPADMode.

fbActiveEvents

FB_BA_EventIndicator

Gives information about events of all objects of a View object.

FB_BA_View 4: Methods

Name

Description

EventConditionCount

This method is invoked when certain events occur. It counts state changes.

OnObjectEventChange

Change of an event in a sub-object.

FindObjectItf

This looks up the index of a subordinate object using the object’s interface pointer.

FindObjectSbj

This determines the index of an object using the subject identifier.

GetObject

This method looks up a specific object using the known index.

IterateObjects

This iterates over all subordinate objects.

QueryObjectSbj

This looks up a subordinate object that matches the specified subject identifier.

ResolveObject

This resolves an object path that is relative to the current instance.

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.35

Tc3_XBA from v5.3.0.0