XBA_Globals

VAR_GLOBAL
  {region 'General'}
    Diag                            : FB_BA_Diagnosis;

    Top                             : FB_BA_TopView;
  {endregion}

  {region 'Indicators'}
    nIncObjInitial                  : UINT  := 1;
    nIncObjActivePriority           : UINT  := 1;
    nIncObjStatus                   : UINT  := 1;
    nIncEvent                       : UDINT := 1;
    nIncEventConfig                 : UINT  := 1;
  {endregion}
END_VAR

VAR_GLOBAL CONSTANT
  {region 'Constants'}
    {region 'General'}
      nInstId_Auto                  : UDINT := BACnet_Globals.nBACnetInstId_Auto;
      guidUndefined                 : GUID   := (Data1:=16#0, Data2:=16#0, Data3:=16#0, Data4:=[16#0,16#0,16#0,16#0,16#0,16#0,16#0,16#0]);

      nNoActivePrio                 : UDINT  := 16#FFFFFFFF;
    {endregion}
    {region 'Text generation'}
      sPlaceholderSign_Open         : STRING(1) := '{';
      sPlaceholderSign_Close        : STRING(1) := '}';
      sPlaceholderSign_Delimiter    : STRING(1) := ',';
      sPlaceholderSign_DenyConcat   : STRING(1) := '!';
      sPlaceholder_Empty            : STRING(2) := CONCAT(sPlaceholderSign_Open, sPlaceholderSign_Close);
      stUndefinedIdentifier         : ST_BA_ObjectIdentifier := (eObjectType:=E_BA_ObjectType.Undefined, nInstanceID:=0);
    {endregion}
    {region 'Event'}
  //Acknowledgement
      aAckFlags_None                : T_BA_EventTransitions := F_BA_EventTransition(FALSE, FALSE, FALSE);

  // Pre-defined indicator filters:
      aIndFilter_None               : T_BA_EventConditionFlags := [ E_BA_EventCondition.Count(TRUE) ];
      aIndFilter_EvtAll             : T_BA_EventConditionFlags := [ E_BA_EventType.Count(TRUE) ];
      aIndFilter_Evt                : ARRAY[E_BA_EventType.First .. E_BA_EventType.Last] OF T_BA_EventConditionFlags := [
                  (*   eAlarm                  *) [ TRUE,  FALSE,  FALSE,  FALSE,  FALSE ],
                  (*   eDisturb                *) [ FALSE,  TRUE,  FALSE,  FALSE,  FALSE ],
                  (*   eMaintenance            *) [ FALSE,  FALSE,  TRUE,  FALSE,  FALSE ],
                  (*   eNotification           *) [ FALSE,  FALSE,  FALSE,  TRUE,  FALSE ],
                  (*   eOther                  *) [ FALSE,  FALSE,  FALSE,  FALSE,  TRUE ]
                 ];
    {endregion}
  {endregion}
END_VAR

Name

Type

Description

Diag

FB_BA_Diagnosis

Provides information about the project and offers information and diagnosis options:

  • Current system time
  • Set cycle times
  • Libraries and BACnet drivers used
  • Number of BACnet objects
  • State of the Publishers and Subscribers
  • Project structure output
  • Output of the current present and historical events.

Top

FB_BA_TopView

Root object or top object of the project structure.

Collects information of all children objects.

nIncObjInitial

UINT

Indicates that properties of an object have changed, which usually change only rarely.

nIncObjActivePriority

UINT

Indicates that the active priority of an object has changed.

nIncObjStatus

UINT

Indicates that the status of an object has changed.

nIncEvent

UINT

Indicates the change of an event.

nIncEventConfig

UINT

Indicates that the event configuration of an object has changed.

nInstId_Auto

UDINT

Indicates that a valid instance ID must be generated automatically.

guidUndefined

GUID

Undefined system ID

nNoActivePrio

UDINT

Value of the constant indicates that no priority is active.

sPlaceholderSign_Open

STRING(1)

Start character for a placeholder.

sPlaceholderSign_Close

STRING(1)

End character for a placeholder.

sPlaceholderSign_Delimiter

STRING(1)

Separator for placeholder attributes.

sPlaceholderSign_DenyConcat

STRING(1)

Characters for placeholders not to be concatenated.

sPlaceholder_Empty

STRING(2)

Empty placeholders.

stUndefinedIdentifier

ST_BA_ObjectIdentifier

Value representing an undefined object reference.

aAckFlags_None

T_BA_EventTransitions

Value, which represents no active AcknowledgeRequired flags.

aIndFilter_None

T_BA_EventConditionFlags

Value, after which no event conditions are filtered.

aIndFilter_EvtAll

T_BA_EventConditionFlags

Value, to filter all event conditions.

aIndFilter_Evt

T_BA_EventConditionFlags

Value, to filter selected event types (Grouped by event types).