Compiler Error C0182
Message: Return type is only possible for POUs of Type FUNCTION and METHOD
Possible error cause: An attempt is made to define a return value in a program.
Error correction: Define a return value only in methods and functions.
Example of the error:
PROGRAM MAIN : BOOL
VAR
END_VARMessage:
C0182: Return type is only possible for POUs of Type FUNCTION and METHOD