F_BA_BVal

F_BA_BVal 1:

The return value of the F_BA_BVal function is created by the structure of type U_BA_ClassValue. The input value bValue is written to the variable bVal of this structure. Due to the data type UNION, whose elements all start from the same memory address, all other values of this structure change as well.

Syntax

FUNCTION F_BA_BVal : U_BA_ClassValue
VAR_INPUT
  bValue    : BOOL;
END_VAR

F_BA_BVal 2: Inputs

Name

Type

Description

bValue

BOOL

This value is assigned to iVal in the output structure.

Requirements

Development environment

Required PLC library

TwinCAT 3.1 4024.35

Tc3_BA2_Common from V2.1.20.0