What is the meaning of function return values?
Information about this topic is available in the specialist literature on the "C" programming language. More information is available in the WinCC Information System in the path "Working with WinCC > ANSI-C for creating functions and actions".
In addition, it should be mentioned that C functions of the calling function often return a so-called "error code". In the simplest of cases, therefore, a function might return a value of the BOOL data type (TRUE for "Function executed successfully" and "FALSE" for "Function not executed successfully"). Entry ID 22196775 includes a description of how you can use the return value for error handling in C scripts.