F_BA_UDIVal

The return value of the F_BA_UDIVal function is created by the structure of type U_BA_ClassValue. The input value nValue is written to the variable udiVal 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_UDIVal : U_BA_ClassValue
VAR_INPUT
nValue : BOOL;
END_VAR
Inputs
Name | Type | Description |
---|---|---|
nValue | UINT | This value is assigned to udiVal in the output structure. |
Requirements
Development environment | Required PLC library |
---|---|
TwinCAT 3.1 4024.35 | Tc3_BA2_Common from V2.1.20.0 |