Compiler Warning C0526
Message: Default value is not constant
Possible error cause: The initial value of a VAR_INPUT
does not use a constant, but the result of a function call.
Error correction: Use a constant as the initial value.
Example 487. Example of the warning
FUNCTION F2: INT FUNCTION F1: INT VAR_INPUT iPar : INT := F2(); xPar : BOOL; END_VAR
The declaration of the variable iPar
produces the following warning.
Message:
C0526: Default value is not constant