F_BA_MdltSftyCrit

F_BA_MdltSftyCrit 1:

The function of return type ST_BA_Mdlt enables writing to the priorities "Safety" and "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.

bEnSfty

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

FALSE

stCmd.bEnSfty

stCmd.eValSfty

stCmd.bEnCrit

stCmd.eValCrit

stCmd.bEnPgm

stCmd.eValPgm

FALSE

TRUE

stCmd.bEnSfty

stCmd.eValSfty

bEnCrit

eValCrit

stCmd.bEnPgm

stCmd.eValPgm

TRUE

FALSE

bEnSfty

eValSfty

stCmd.bEnCrit

stCmd.eValCrit

stCmd.bEnPgm

stCmd.eValPgm

TRUE

TRUE

bEnSfty

eValSfty

stCmd.bEnCrit

stCmd.eValCrit

stCmd.bEnPgm

stCmd.eValPgm

Syntax

FUNCTION F_BA_MdltSfty : ST_BA_Mdlt
VAR_INPUT
  bEnSfty      : BOOL;
  eValSfty     : E_BA_Mdlt;
  bEnCrit      : BOOL;
  eValCrit     : E_BA_Mdlt;
  stCmd        : ST_BA_Mdlt;
END_VAR

F_BA_MdltSftyCrit 2: Inputs

Name

Type

Description

bEnSfty

BOOL

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

eValSfty

E_BA_Mdlt

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

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