F_BA_BinarySfty

F_BA_BinarySfty 1:

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

F_BA_BinarySftyCrit.bValSfty

F_BA_BinarySftyCrit.bEnCrit

F_BA_BinarySftyCrit.bValCrit

F_BA_BinarySftyCrit.bEnPgm

F_BA_BinarySftyCrit.bValPgm

FALSE

stCmd.bEnSfty

stCmd.bValSfty

stCmd.bEnCrit

stCmd.bValCrit

stCmd.bEnPgm

stCmd.bValPgm

TRUE

bEnSfty

bValSfty

stCmd.bEnCrit

stCmd.bValCrit

stCmd.bEnPgm

stCmd.bValPgm

Syntax

FUNCTION F_BA_BinarySfty : ST_BA_Binary
VAR_INPUT
  bEnSfty      : BOOL;
  bValSfty     : BOOL;
  stCmd        : ST_BA_Binary;
END_VAR

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

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