Eliminated from:PLC Designer V3.6
Behaviour of the new version:
If the error message "Out of global data memory" appears, you only have to execute the Build>Clean all command. After this, projects can be downloaded again provided that the size of the PERSISTENT_RETAIN variables does not exceed the capacity available.
What happens?
When logging into the PLC project, the following error message appears in the message window:
Compiler error message 'C0106: Out of global data memory: Variable 'xxx', 65000 bytes (Entire available size 61439) (Incremental compilation may produce fragmented memory. Perform 'Build, Clean' to force a reallocation of all data and code.)'
Due to the error message, projects cannot be downloaded.
When does the problem occur?
The error message desribed above appears if the memory area for PERSISTENT_RETAIN variables is bigger than the available area. Even if the size of the PERSISTENT_RETAIN variables is reduced to the available area afterwards, this error message appears.
Which products are concerned?
PLC Designer from V3.4
Possible diagnostics:
None
Short-term measures/recommendations:
Add the Reorder List and Clear Gaps command to the Build menu (via the menu item Tools>Adapt; command is only available from PLC Designer V3.4).
Execute the Reorder List and Clear Gaps command in the declaration part of the PERSISTENT_RETAIN variables and afterwards the Build>Clean all command. Then, projects can be downloaded again.
Evaluation:
If the PERSISTENT_RETAIN memory area used in the PLC project is bigger than the available memory area, an error message appears even after the memory area used has been reduced. The short-term measure described above serves to remove the function restriction.