FB_BA_ScheduleMultistate

FB_BA_ScheduleMultistate 1:

The function block FB_BA_ScheduleMultistate represents a numerical schedule. It consists essentially of the base class FB_BA_ScheduleBase.

The function block uses the base class to determine the numerical output value. If the output value nPresentValue is not determined within the base class, nDefaultValue = nPresentValue.

FB_BA_ScheduleMultistate 2: Inputs CONSTANT PERSISTENT

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

Name

Type

Description

nDefaultValue

 

UDINT

The default value nDefaultValue is active in the following cases:

nPresentValue = nDefaultValue if the output value nPresentValue is not determined within the base class FB_BA_ScheduleBase.

FB_BA_ScheduleMultistate 3: Outputs

VAR_OUTPUT
  nPresentValue    : UDINT;
END_VAR

Name

Type

Description

nPresentValue

UDINT

Current value

It consists essentially of the base class FB_BA_ScheduleBase.

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

Prerequisites

Development environment

Required PLC library

TwinCAT from v3.1.4024.62

Tc3_BA2 from v5.5.14.0