F_BA_IVal

F_BA_IVal 1:

The return value of the F_BA_IVal function is created by the structure of type U_BA_ClassValue. The input value nValue is written to the variable iVal 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_IVal : U_BA_ClassValue
VAR_INPUT
  nValue    : INT;
END_VAR

F_BA_IVal 2: Inputs

Name

Type

Description

nValue

INT

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