F_BA_MdltCrit

F_BA_MdltCrit 1:

The function of return type ST_BA_Mdlt enables writing to the priority "Critical" of the return type of the function.

In the function table you can see which states are output at the return type of the function.

bEnCrit

F_BA_MdltCrit.bEnSfty

F_BA_MdltCrit.eValSfty

F_BA_MdltCrit.bEnCrit

F_BA_MdltCrit.eValCrit

F_BA_MdltCrit.bEnPgm

F_BA_MdltCrit.eValPgm

FALSE

stCmd.bEnSfty

stCmd.eValSfty

stCmd.bEnCrit

stCmd.eValCrit

stCmd.bEnPgm

stCmd.eValPgm

TRUE

stCmd.bEnSfty

stCmd.eValSfty

bEnCrit

eValCrit

stCmd.bEnPgm

stCmd.eValPgm

Syntax

FUNCTION F_BA_MdltCrit : ST_BA_Mdlt
VAR_INPUT
  bEnCrit      : BOOL;
  eValCrit     : E_BA_Mdlt;
  stCmd        : ST_BA_Mdlt;
END_VAR

F_BA_MdltCrit 2: Inputs

Name

Type

Description

bEnCrit

BOOL

Enable for writing the "Critical" priority of the return type ST_BA_Mdlt.

eValCrit

E_BA_Mdlt

Value of the priority "Critical" of the return type ST_BA_Mdlt to be written if bEnCrit has the value TRUE.

stCmd

ST_BA_Mdlt

The command structure stCmd is used to control modulating aggregates.

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.22

Tc3_BA2 from v5.2.5.0