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 412. Example of the error:
PROGRAM PLC_PRG VAR END_VAR POU_1(); FUNCTION POU_1 VAR RETAIN END_VAR
Message:
C0175: 'RETAIN' or 'PERSISTENT' not allowed in this place