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?
Use FloatingPointUtils library, function GetRealSpecialVal.
https://help.codesys.com/webapp/OzMHMaG ... on=220.127.116.11 m
Exactly what I was looking for. Thanks!
Log in to post a comment.