Sunteți pe pagina 1din 2

Siemens - Industry Automation and Drive Technologies - Service& Support - Automation...

Page 1 of 2
show the entry list Data management in the S7-200 CPU Display part number QUESTION: How is my program stored in the S7-200 CPU? ANSWER: General: Your S7-200 CPU has an internal RAM and an internal EEPROM. Data security of the RAM is guaranteed by a built-in super capacitor even if there is a power cut at the CPU. Depending on the version of your CPU, the super capacitor can buffer the RAM for several days. Some CPU versions even support an optional battery module. This can prolong the data buffering time of the RAM after a CPU power failure. The following is stored in the RAM by timers and counters:
l l l l l

The user program The variable storage (data block) The CPU configuration The flag The current values of timers and counters

Loading the program in the CPU: When you load a program from the PG/PC into the S7-200 CPU, the following is stored in the RAM:
l l l

The user program (OB1) The data block DB1 (optional) The CPU configuration (optional)

In order that the components are stored in the internal EEPROM as non-resetting on voltage failure the CPU automatically copies the following into it:
l l l

The user program The non-resetting on voltage failure part of the variable memory (DB1) The CPU configuration

Loading a program from the CPU: When you load a program from your CPU into your PC/PG, the user program and the CPU configuration are loaded from the RAM into the computer. When loading the variable memory the nonresetting on voltage failure area of the data block (stored in the EEPROM) is combined with any other remaining data blocks in the RAM and transferred to your PC. The size of the non-resetting on voltage failure area of the data block depends on your CPU (see technical data). Remanent Markers: Upon power failure, the first 14 bytes in the storage area of your marker (MB0 MB13) are automatically stored as non-volatile in the EEPROM, as long as you have defined them as remanent beforehand. Switching on the CPU: As soon as you switch on the power supply, the CPU loads the user program and the CPU configuration from the EEPROM. At start-up the CPU checks the RAM to make sure that the super capacitor has buffered the data correctly. If so, then the remanent areas of the RAM are not modified. The non-remanent areas of the variable storage are loaded from the associated non-volatile part of the variable storage in the EEPROM. If the contents of the RAM cannot be buffered, the CPU resets the whole RAM and sets the special marker SM0.2 (remanent data lost) in the first cycle after start-up. The data is then loaded out of the non-volatile EEPROM.

http://support.automation.siemens.com/WW/llisapi.dll/734300?func=ll&objId=734300&...

11.09.2010

Siemens - Industry Automation and Drive Technologies - Service& Support - Automation... Page 2 of 2
Entry ID:734300 Date:1999-03-10 I regard this article.... Copy link
Print Siemens AG 2010 - Corporate Information - Privacy Policy - Terms of Use

as helpful

as not helpful Send to a friend

Suggestion for the entry

http://support.automation.siemens.com/WW/llisapi.dll/734300?func=ll&objId=734300&...

11.09.2010

S-ar putea să vă placă și