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
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
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