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!