CONSTANT keyword in POU
The CONSTANT
keyword is not allowed for POU declarations, only variables can be CONSTANT
Erroneous code example:
FUNCTION FOO : BOOL CONSTANT
VAR_INPUT
END_VAR
// ...
END_FUNCTION
The CONSTANT
keyword is not allowed for POU declarations, only variables can be CONSTANT
Erroneous code example:
FUNCTION FOO : BOOL CONSTANT
VAR_INPUT
END_VAR
// ...
END_FUNCTION