F_BA_RVal

F_BA_RVal 1:

The return value of the F_BA_RVal function is created by the structure of type U_BA_ClassValue. The input value fValue is written to the variable rVal 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_RVal : U_BA_ClassValue
VAR_INPUT
  fValue    : REAL;
END_VAR

F_BA_RVal 2: Inputs

Name

Type

Description

fValue

REAL

This value is assigned to rVal in the output structure.

Requirements

Development environment

Required PLC library

TwinCAT 3.1 4024.35

Tc3_BA2_Common from V2.1.20.0