FB_BA_BaseBO

FB_BA_BaseBO 1:

The function block FB_BA_BaseBO represents a binary output object.
It is the base for all other binary outputs.

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_BaseBO EXTENDS FB_BA_ComEventObject IMPLEMENTS I_BA_BinaryOutObject, I_BA_AnyValue
VAR_INPUT
  bEnSfty                      : BOOL;
  bValSfty                     : BOOL;
  bEnCrit                      : BOOL;
  bValCrit                     : BOOL;
  bEnManLoc                    : BOOL;
  bValManLoc                   : BOOL;
  bEnPgm                       : BOOL;
  bValPgm                      : BOOL;
END_VAR
VAR_OUTPUT
  bPresentValue                : BOOL;
  eActivePrio                  : E_BA_Priority;
END_VAR
VAR_INPUT CONSTANT PERSISTENT
  {region 'Variable Parameters'}
    nMinimumOffTime            : UDINT;
    nMinimumOnTime             : UDINT;
    bDefaultValue              : BOOL;
    bEnOutOfService            : BOOL;
    sInactiveText              : T_BA_StateText;
    sActiveText                : T_BA_StateText;
    ePolarity                  : E_BA_Polarity := E_BA_Polarity.eNormal;
    nStateChangeCount          : UDINT;
    nActiveTimeElapsed         : UDINT;
  {endregion}
  {region 'Operational Parameters'}
    bEnManualRm                : BOOL;
    bValManualRm               : BOOL;
  {endregion}
END_VAR
VAR
  {region 'Output-Properties'}
    stStateChangeTime          : ST_BA_DateTime;
    stStateChangeResetPoint    : ST_BA_DateTime;
    stActiveTimeResetPoint     : ST_BA_DateTime;
  {endregion}
END_VAR

FB_BA_BaseBO 2: Inputs

Name

Type

Description

bEnSfty

BOOL

Enabling the "Safety" priority.

bValSfty

BOOL

Binary value for the "Safety" priority.

bEnCrit

BOOL

Enabling the "Critical" priority.

bValCrit

BOOL

Binary value for the "Critical" priority.

bEnManLoc

BOOL

Enabling the "Manual Local" priority.

bValManLoc

BOOL

Binary value for the "Manual Local" priority.

bEnPgm

BOOL

Enabling the "Program" priority.

bValPgm

BOOL

Binary value for the "Program" priority.

FB_BA_BaseBO 3: Outputs

Name

Type

Description

bPresentValue

BOOL

Current binary output value of the object.

eActivePrio

E_BA_Priority

Active priority

FB_BA_BaseBO 4: Inputs CONSTANT PERSISTENT

Name

Type

Description

nMinimumOffTime

UDINT

Minimum time [s] in which the Present_Value should remain in the INACTIVE state after a write operation to Present_Value has assumed the INACTIVE state.

This can be used to implement protection against too fast restarting.

nMinimumOnTime

UDINT

Minimum time [s] in which the Present_Value is to remain in the ACTIVE state after a write operation to Present_Value has assumed the ACTIVE state.

This can be used to implement protection against premature, renewed switch-off

bDefaultValue

BOOL

Value that is assumed if all 16 priorities of the Priority_Array of a commandable object have no entry or are NULL.

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.

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.

bValManualRm

BOOL

Binary value for the "Manual Remote" priority.

bEnManualRm

BOOL

Enabling the "Manual Remote" priority.

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