FB_BA_ScheduleBinary

FB_BA_ScheduleBinary 1:

The function block FB_BA_ScheduleBinary represents a binary schedule. It consists essentially of the base class FB_BA_ScheduleBase.

The function block uses the base class to determine the binary output value. If the output value bPresentValue is not determined within the base class, bDefaultValue = bPresentValue.

FB_BA_ScheduleBinary 2: Inputs CONSTANT PERSISTENT

VAR_INPUT CONSTANT PERSISTENT
  {region 'Fixed Parameters'}
    {attribute 'parameterCategory':='Value'}
      bDefaultValue    : BOOL;
  {endregion}
END_VAR

Name

Type

Description

bDefaultValue

 

BOOL

The default value bDefaultValue is active in the following cases:

bPresentValue = bDefaultValue if the output value bPresentValue is not determined within the base class FB_BA_ScheduleBase.

FB_BA_ScheduleBinary 3: Outputs

VAR_OUTPUT
  bPresentValue    : BOOL;
END_VAR

Name

Type

Description

bPresentValue

BOOL

Current value

It consists essentially of the base class FB_BA_ScheduleBase.

The numerical output value for bPresentValue is determined within the base class. If the output value bPresentValue is not determined within the base class, bDefaultValue = bPresentValue.

Prerequisites

Development environment

Required PLC library

TwinCAT from v3.1.4024.62

Tc3_BA2 from v5.5.2.0