alex - 2021-03-16

Hello guys, have a very weird issue and cant help but ask.
I created the Function with very simple math in it adding two REALS

Function always returns zero, same code works great with FB but not in a function.

FUNCTION DIVME : REAL
VAR_INPUT
num01:REAL;
num02:REAL;
END_VAR
VAR
END_VAR
------------------------
DIVME := (num01+num02);

When i call this function from the program the result will always be zero regardless of the value of two input parameters. Please guide me to solution. And yes CPU is running...

 
πŸ‘
1

Last edit: alex 2021-03-16