F_BA_BinarySftyCrit

F_BA_BinarySftyCrit 1:

The function of return type ST_BA_Binary 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_BinarySftyCrit.bEnSfty

F_BA_BinarySftyCrit.bValSfty

F_BA_BinarySftyCrit.bEnCrit

F_BA_BinarySftyCrit.bValCrit

F_BA_BinarySftyCrit.bEnPgm

F_BA_BinarySftyCrit.bValPgm

FALSE

FALSE

stCmd.bEnSfty

stCmd.bValSfty

stCmd.bEnCrit

stCmd.bValCrit

stCmd.bEnPgm

stCmd.bValPgm

TRUE

FALSE

bEnSfty

bValSfty

stCmd.bEnCrit

stCmd.bValCrit

stCmd.bEnPgm

stCmd.bValPgm

FALSE

TRUE

stCmd.bEnSfty

stCmd.bValSfty

bEnCrit

bValCrit

stCmd.bEnPgm

stCmd.bValPgm

TRUE

TRUE

bEnSfty

bValSfty

stCmd.bEnCrit

stCmd.bValCrit

stCmd.bEnPgm

stCmd.bValPgm

Syntax

FUNCTION F_BA_BinarySftyCrit : ST_BA_Binary
VAR_INPUT
  bEnSfty      : BOOL;
  bValSfty     : BOOL;
  bEnCrit      : BOOL;
  bValCrit     : BOOL;
  stCmd        : ST_BA_Binary;
END_VAR

F_BA_BinarySftyCrit 2: Inputs

Name

Type

Description

bEnSfty

BOOL

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

bValSfty

BOOL

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

bEnCrit

BOOL

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

bValCrit

BOOL

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

stCmd

ST_BA_Binary

The command structure stCmd transmits the enables and switching values of the priorities to the connected aggregate.

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.22

Tc3_BA2 from v5.2.5.0