FB_BA_SubTrend

FB_BA_SubTrend 1:

The FB_BA_SubTrend function block allows to subscribe to a trend object.

Inheritance hierarchy

FB_BA_Base

    FB_BA_Subscriber

Syntax

FUNCTION_BLOCK FB_BA_SubTrend EXTENDS FB_BA_Subscriber
VAR_OUTPUT
  bEvent                    : BOOL;
  nRecordCount              : UDINT;
  nTotalRecordCount         : UDINT;
END_VAR

FB_BA_SubTrend 2: Outputs

Name

Type

Description

bEvent

BOOL

The variable signals an abnormal event of an object.

The type of event, e.g. an alarm, a maintenance message, etc., is described within the event class associated with the object.

nRecordCount

UDINT

Number of records.

nTotalRecordCount

UDINT

Absolute number of records.

FB_BA_SubTrend 3: Properties

Name

Type

Access

Description

Enable

BOOL

Get, Set

Enable of the subscription.

FB_BA_SubTrend 4: Methods

Name

Description

GetData

Contains the subscribed data.

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.35

Tc3_XBA from v5.3.0.0