Compiler Error C0175
Message: 'RETAIN' or 'PERSISTENT' not allowed in this place
Possible error cause: 'RETAIN' or 'PERSISTENT' is used in a function.
Error correction: Use 'RETAIN' or 'PERSISTENT' at the intended locations.
Example of the error:
PROGRAM MAIN
VAR
END_VAR
POU_1();
FUNCTION POU_1
VAR RETAIN
END_VARMessage:
C0175: 'RETAIN' or 'PERSISTENT' not allowed in this place