F_BA_BinaryCrit

F_BA_BinaryCrit 1:

The function of return type ST_BA_Binary 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_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

stCmd.bEnSfty

stCmd.bValSfty

bEnCrit

bValCrit

stCmd.bEnPgm

stCmd.bValPgm

Syntax

FUNCTION F_BA_BinaryCrit  : ST_BA_Binary
VAR_INPUT
  bEnCrit      : BOOL;
  bValCrit     : BOOL;
  stCmd        : ST_BA_Binary;
END_VAR

F_BA_BinaryCrit 2: Inputs

Name

Type

Description

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