Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
I'd like to assign NaN (i.e., Not a Number) to a function block output variable if parameters are invalid. Is there a way to do this without causing a fault?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'd like to assign NaN (i.e., Not a Number) to a function block output variable if parameters are invalid. Is there a way to do this without causing a fault?
Hi.
Use FloatingPointUtils library, function GetRealSpecialVal.
https://help.codesys.com/webapp/OzMHMaG ... on=3.5.9.0 m
Exactly what I was looking for. Thanks!