FB_BA_BaseBI

FB_BA_BaseBI 1:

The function block FB_BA_BaseBI generates a binary input object.
It is the base of all binary input objects.

Inheritance hierarchy

FB_BA_Base

    FB_BA_BasePublisher

        FB_BA_Object

            FB_BA_EventObject

                FB_BA_EventObjectEx

                    FB_BA_ComEventObject

Illustration

FUNCTION_BLOCK ABSTRACT FB_BA_BaseBI EXTENDS FB_BA_ComEventObject IMPLEMENTS I_BA_BinaryInObject, I_BA_AnyValue
VAR_OUTPUT
  bPresentValue                : BOOL;
END_VAR
VAR_INPUT CONSTANT PERSISTENT
  {region 'Variable Parameters'}
    bEnOutOfService            : BOOL;
    sInactiveText              : T_BA_StateText;
    sActiveText                : T_BA_StateText;
    bAlarmValue                : BOOL := TRUE;
    ePolarity                  : E_BA_Polarity := E_BA_Polarity.eNormal;
    nStateChangeCount          : UDINT;
    nActiveTimeElapsed         : UDINT;
  {endregion}
END_VAR
VAR
  {region 'Output-Properties'}
    stStateChangeTime          : ST_BA_DateTime;
    stStateChangeResetPoint    : ST_BA_DateTime;
    stActiveTimeResetPoint     : ST_BA_DateTime;
  {endregion}
END_VAR

FB_BA_BaseBI 2: Outputs

Name

Type

Description

bPresentValue

BOOL

Current binary output value of the object.

FB_BA_BaseBI 3: Inputs CONSTANT PERSISTENT

Name

Type

Description

bEnOutOfService

BOOL

This variable sets an object out of service. It is thus OutOfService.

sInactiveText

T_BA_StateText

Text output when the object is inactive.

sActiveText

T_BA_StateText

Text output when the object is active.

bAlarmValue

BOOL

Value in the event of an alarm.

ePolarity

E_BA_Polarity

The polarity describes the dependency between the value resulting from the evaluation of the Priority_Array and the value that is output at the output of the controller.

If the polarity is normal then the result of the Priority_Array is directly forwarded to the output of the controller.

With reverse polarity the output is negated.

nStateChangeCount

UDINT

The variable indicates how often the state of the Present_Value has changed since the date and the last reset.

nActiveTimeElapsed

UDINT

Time [s] in which the Present_Value of the object had the value ACTIVE. The time is valid from the last reset by the property Time_Of_Active_Time_Reset.

VAR

Name

Type

Description

stStateChangeTime

ST_BA_DateTime

This property shows the time of the last state change.

The state change refers to the Present_Value of the object.

stStateChangeResetPoint

ST_BA_DateTime

Shows the date and time from which the counting of state changes started.

stActiveTimeResetPoint

ST_BA_DateTime

Indicates the time when the recording of the object's switch-on times started.

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.35

Tc3_XBA from v5.3.0.0