×
Siemens Industry Online Support
Siemens AG
Entry type: FAQ Entry ID: 107108015, Entry date: 12/12/2014
(4)
Rate

When downloading to the S7-1500 CPU, why is the message "There is insufficient memory on the memory card for this amount of data" displayed although there is still enough memory available?

  • Entry
  • Associated product(s)
When downloading your program to the S7-1500 CPU you get this message: "There is insufficient memory on the memory card for this amount of data".

Description
The remedies given in this entry refer to the above-mentioned error message that you get when downloading your program to the S7-1500 CPU.

  1. Message: "There is insufficient memory on the memory card for this amount of data"
    when downloading to the CPU in RUN mode
  2. Message: "There is insufficient memory on the memory card for this amount of data"
    when downloading to the CPU in STOP mode
  3. Message: "There is insufficient memory on the memory card for this amount of data"
    although the program information about memory load shows that there is still enough memory available
  4. Small program modifications can in some cases lead to extensive download procedures with many objects
  5. Changing the memory card without losing retained data

  1. Message: "There is insufficient memory on the memory card for this amount of data"
    when downloading to the CPU in RUN mode.

    Your memory card must have enough memory available for consistent and atomic execution of the complete download procedure. The files concerned by the download are deleted only after the new files have been created. In this case you must provide for enough free memory on the memory card for all the program objects.

Note
Extensive download procedures can be caused by comparatively small modifications in programs (see Point 4).

Remedy
We recommend one or more of the options below as a remedy.

  • Use the web server to delete files you no longer need on the memory card (like csv files, panel backups, ...).
  • Do not download extensive modifications all at once in RUN mode, instead you should download less extensive changes in the user program separately. If it is not possible to download in multiple steps, then download the extensive modifications in STOP mode.
  • Use a larger memory card in future to execute extensive downloads in RUN mode (see Point 5).

  1. Message: "There is insufficient memory on the memory card for this amount of data"
    when downloading to the CPU in STOP mode

    Even when downloading in STOP mode a certain amount of reserve memory is required, because your memory card needs sufficient free memory for consistent downloading of single data blocks. The files concerned by the downloading of the data blocks are deleted only after the new files have been created. Therefore, for the modifications you must have available at least the memory requirement of the largest data block.
    Contrary to downloading in RUN mode, when downloading in STOP mode, modified code blocks in the CPU are deleted first prior to downloading of the modified code block. For this reason, when downloading code blocks in STOP mode, no additional memory is required on the memory card.

Remedy
We recommend one or more of the options below as a remedy.

  • Use the web server to delete files you no longer need on the memory card (like csv files, panel backups, ...).
  • Use a larger memory card (see Point 5).
  • In STEP 7 (TIA Portal) download your program to the CPU using the menu command "Online > Download and reset PLC program".
  • Remove the memory card from the slot of the CPU and use your PG to delete the memory card content no longer required.
  • Delete the complete content by formatting the memory card, for example.


Fig. 1
   

  1. Message: "There is insufficient memory on the memory card for this amount of data"
    although the program information about memory load shows that there is still enough memory available.

    The display of the memory load in the program information is an offline display in STEP 7 (TIA Portal) and only shows the memory requirement of the program in the project. However, the program on the memory card of the CPU can determine, if it is more recent, for example, or whether it contains blocks created by other projects or on the CPU. Furthermore, not only the program is stored on the memory card, but also the device configuration. In addition, there might be other data on the SIMATIC Memory Card like recipes, data logs, HMI backups and other files which were copied to the memory card via the web server of the CPU or offline in the explorer.

In STEP 7 (TIA Portal) and also on the display of the S7-1500 CPU you can check how much memory is still available on the SIMATIC Memory Card.

On the display of the S7-1500 CPU

  1. Use the arrow keys to select the "Overview" menu on the display and click OK.
  2. Then press "Memory Card". This gives you information about "Total memory", "In use memory" and "Free memory".

In STEP 7 (TIA Portal)

  1. In the project navigation you open the "Online & Diagnostics" function. The "Online Access" dialog opens.
  2. Check the online accesses of the PG/PC interface and click the "Go online" button.
  3. When the online connection has been established, you select the "Diagnostics > Memory" function.


 Fig. 2
   

  1. Small program modifications can in some cases lead to extensive download procedures with many objects.
    There are dependencies between the objects of a program, like from code blocks to called code blocks, from code blocks to data blocks and from data blocks to data types (PLC data types, FB types). Thus, with a small modification the download procedure can be very extensive if the modification concerns very many dependent objects.

Description
A STEP 7 (TIA Portal) program contains one OB, 20 FCs and one DB. The OB calls the 20 FCs and all the FCs access the DB. If you modify the program code in one of the FCs, the subsequent download procedure contains only the modified FC. However, if you change the data type of a tag in the DB, then the subsequent download contains all the FCs plus the DB.

You can see the objects included in the download procedure in the "Load preview" (Fig. 03).


Fig. 3

To determine the interdependencies of the objects, in the project navigation you double-click "Program Information" and go to the "Program Information" dialog and select the "Dependency structure" tab.


Fig. 4
   

  1. Changing the memory card without losing retained data.
    You can change the memory card or use a larger SIMATIC Memory Card without loosing retained data. When you switch off the CPU, the retained data is saved in the retentive memory of the CPU. While the CPU is switched off you can remove the memory card and copy the contents to a larger memory card. When the CPU is switched on again, the data saved in the CPU when it was switched off is restored.

Further Information
Additional information is available in the function manual "SIMATIC S7-1500 Structure and Utilization of the CPU Memory" in Entry ID: 59193101.

Creation Environment
The screens in this FAQ response were created with STEP 7 (TIA Portal) V15.

 

Security information
In order to protect technical infrastructures, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art IT security concept. Siemens’ products and solutions constitute one element of such a concept. For more information about cyber security, please visit
https://www.siemens.com/cybersecurity#Ouraspiration.