Backup Online de Valores Actuales s7300
Backup Online de Valores Actuales s7300
https://support.industry.siemens.com/cs/ww/en/view/109478260
This entry originates from the Siemens Industry Online Support. The conditions of
use specified there apply (www.siemens.com/nutzungsbedingungen).
Security Siemens offers products and solutions with industrial security functions which
Notes support the secure operation of plants, solutions, machines, devices and/or
networks. They are important components in a comprehensive industrial security
concept. The Siemens products and solutions continue to be developed under
this aspect. Siemens recommends that you keep yourself regularly informed
about product updates.
For the safe operation of Siemens products and solutions it is necessary to take
appropriate security measures (cell protection concept, for example) and to
integrate each component in an overall industrial security concept which is state
of the art. This should also cover the third-party products used. Additional
information about industrial security is available at:
http://www.siemens.com/industrialsecurity.
In order to keep yourself informed about product updates, we recommend
subscribing to our product-specific newsletter. Additional information about this is
available at http://support.industry.siemens.com.
Siemens AG Copyright-2015 All rights reserved
Contents
1 Introduction ........................................................................................................ 3
2 Saving the Actual Values in the Offline Project ............................................. 4
3 Copying Data from RAM to ROM ..................................................................... 6
4 Saving and Read-back of Actual Values with System Functions ................. 8
5 Setting Data to Retentive ................................................................................ 10
1 Introduction
During commissioning, certain values in the data blocks are changed for the plant.
These can be control parameters, limit values, etc. These changes are often made
directly in the CPU, in other words online. In order to retain these changes, the
data has to be saved beforehand.
This FAQ response illustrates the storage concept of a SIMATIC S7-300 CPU and
describes the options for saving data and actual values so that they are retained
after POWER OFF and restart.
Furthermore there is a description of how to save data before an overall reset and
reloading of the program.
Siemens AG Copyright-2015 All rights reserved
(Actual values)
Non-volatile memory
(NVRAM)
Siemens AG Copyright-2015 All rights reserved
DB online (1)
Figure 2-2
Siemens AG Copyright-2015 All rights reserved
Note Make sure that the online blocks and offline blocks have the same time stamp;
otherwise the offline declaration view is lost!
Note If a DB block from the online project folder is opened and there is a difference in
time stamp (interface, start values), then dummy variables are also displayed
(STAT0, for example) for the variables.
Note If the blocks loaded by the controller into the project are loaded back into the
controller, the last actual values become the new start values.
Note Note that the actual values in the load memory are overwritten when the program
is loaded.
(MMC) RAM to
ROM DBs
DBs (Actual values) (Actual values)
DBs
(Actual values)
Non-volatile memory
(NVRAM)
Figure 3-2
Note The function is only permitted when the CPU is in STOP mode.
Siemens AG Copyright-2015 All rights reserved
Note The "Copy RAM to ROM..." function only works for data blocks that are not
designated as "unlinked" (DB only in the load memory).
Note If the function could not be terminated with power off, the load memory is then
empty. From the check sum the CPU recognizes that the data has not been
completely written. The program is recognized as invalid and has to be reloaded.
In this case the data blocks are overwritten with the new start values in the load
memory.
--> It is therefore useful to first copy the online blocks into the offline project.
Note Note that the actual values in the load memory are overwritten when the program
is loaded.
Schematic diagram for saving and read-back of actual values with system functions
Figure 4-1
(MMC)
WRITE_DBL
DBs
DBs (Actual values) READ_DBL (Actual values)
DBs
(Actual values)
Non-volatile memory
(NVRAM)
Figure 4-2
Note SFC 84 is not suitable for writing variables frequently (or cyclically) to the load
memory, because the micro memory card technology only permits a specific
number of write accesses (100,000 write/delete operations per cell).
With system function SFC 83 "READ_DBL" (read data block in load memory) you
Siemens AG Copyright-2015 All rights reserved
copy the data area as required back from the load memory into the main memory.
Figure 4-3
Note After "STOP/RUN", "Power off / power on" and "Overall reset" the data is
transferred automatically to the main memory. It is therefore not necessary to
read the data with the system function SFC 83 "READ_DBL".
Note Note that with an overall reset the retentive area is also deleted. Then the
retentive data blocks are also loaded from the load memory into the main
memory (RAM). Data which has been changed by the process, for example, or
the HMI, is also initialized through the values of the load memory.
Figure 5-1