Semantic Error: Retain is not allowed for 'Instance' variables.
It is invalid to check the 'Retain' flag in the 'Instance' declaration, i.e., in the global Data List of the controller PLANT node.
Remedy
- Double-click the error message to open the Data List of the 'IEC 61131-3' PLANT node. The suspected table line is marked.
- Deselect the 'Retain' checkbox in the 'Instance' declaration.
- To declare each instance of this 'Instance' variable as retentive, open the local 'Variables' table of the FB POU and check the 'Retain' flag there.
Further Info
See topic "FB Instance-related Located Variables" for further information. |