Download "user manual"
Transcript
Memory Areas of S7 CPUs 5.1 Memory Areas of the CPU Distribution of the Memory Areas The memory of the S7 CPUs has three basic areas: S The load memory is used for user programs without symbolic address assignments or comments (these remain in the memory of the programming device). The load memory can be either RAM or FEPROM. Blocks identified as being not relevant to the running of your program are all located in the load memory. S The work memory (integrated RAM) contains the parts of the S7 program relevant for running your program. The program is executed only in the work memory and system memory areas. S The system memory (RAM) contains the memory elements provided by every CPU for the user program, such as the process image input and output tables, bit memory, timers and counters. The system memory also contains the block stack and interrupt stack. In addition to the areas above, the system memory of the CPU also provides temporary memory (local data stack) that contains temporary data for a block when it is called. This data only remains valid as long as the block is active. Figure 5-1 illustrates the memory areas of the CPU. CPU Work memory (RAM) contains the executable user program (for example logic and data blocks) Dynamic load memory (RAM, integrated or on a memory card): contains the user program System memory (RAM) contains: Retentive load memory (FEPROM, on memory card or integrated in S7-300 CPUs): contains the user program process image input/output tables, bit memory, timers, counters Local data stack Block stack Interrupt stack Diagnostic buffer Figure 5-1 5-2 Memory Areas of S7 CPUs System Software for S7-300 and S7-400 Program Design C79000-G7076-C506-01