F_BA_MdltSfty

F_BA_MdltSfty 1:

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

F_BA_MdltSfty.bEnSfty

F_BA_MdltSfty.eValSfty

F_BA_MdltSfty.bEnCrit

F_BA_MdltSfty.eValCrit

F_BA_MdltSfty.bEnPgm

F_BA_MdltSfty.eValPgm

FALSE

stCmd.bEnSfty

stCmd.eValSfty

stCmd.bEnCrit

stCmd.eValCrit

stCmd.bEnPgm

stCmd.eValPgm

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;
  stCmd        : ST_BA_Mdlt;
END_VAR

F_BA_MdltSfty 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.

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