Compiler Error C0587

Message: '{0}' is no declared generic constant of function block '{1}'

Possible error cause: When instantiating a generic function block, a name is specified for a generic constant which has not been declared in the function block. A missing declaration will result in an error.

Error correction: Correct the constant name.

Example of the error:

inst : POU<(consst := 12)>; // Typo

Message:

'const' is no declared generic constant of function block 'POU'

Correct code:

inst : POU<(const := 12)>; // Variable 'const' is declared

For more information, see the following: VAR_GENERIC CONSTANT