show the entry list
S7-300 CPU 31x -- Product information -- Background and system information
What are the differences between OPEN MODBUS / TCP Redundant V1 and OPEN MODBUS / TCP Redundant V2?
What is the difference between "normal routing" and data record routing?
Which SIMATIC S7-300/S7-400 modules support the NTP time-of-day message and how do you activate this kind of time synchronization?
Which manufacturer ID, in other words OUI (Organizationally Unique Identifier), does SIEMENS AG use for the MAC addresses of network-compatible devices?
What should you watch out for when using the alarm numbering procedure?
Which IO controllers and IO devices support the following functions: IRT, prioritized startup, MRP, PROFIenergy, Shared device, I device and clock-synchronized mode?
What is the maximum number of parameters that can be assigned to an FC and FB in the S7-300 CPU?
Which types of connection/protocols do the S7-300/400 CPUs and the CPs support by default?
Which PROFINET nodes support automatic commissioning and the replace device without interchangeable medium function?
Which PROFINET nodes support the extended PN diagnostics and what do you have to configure?
Why is only a warm start available for S7-300?
Which SIMATIC S7 modules support the "Direct Data Exchange" function (internode communication)?
Which entries deal with consistent data in conjunction with distributed I/O?
What properties, advantages and special features does the S7 Basis Communication offer?
What properties, advantages and special features does the global data communication offer?
What is the connection between subnet masks and IP addresses with regard to subnetting and supernetting (Classless Inter Domain Routing CIDR)?
What are the requirements for using the S7 routing function and which modules can you implement?
How can you obtain an overview of the memory concept of SIMATIC S7-300 CPUs and C7 devices?
Retentivity behavior of S7-300 CPU 31x and complete devices C7-6xx with MMC
Status of the run-time meter after overall reset
Why does the retentivity behavior of the S7-300 CPUs and C7 devices without MMC (Micro Memory Card) influence the contents of the variables?
Local data addressing with S7-300 / S7 400
S7 300 run-time meter doesn't give any value
Local data addressing with S7-300 / S7 400
Part number:

QUESTION:
How are the variables stored in the temporary local data?

ANSWER:
The L-stack addressing always starts with Address ”0”
Exactly the same number of bytes are reserved on the L-stack for each block as the number of bytes of static or local data that each block has.
When a block is terminated, then its space is released again.

The pointer always indicates the 1st byte of the currently open block.

Example:
Run level L-stack in bytesPointer
Call OB1 (with 20 static [fixed] and 10 additional bytes of local data)
30

0
Call FC1 (with 30 bytes of local data)

30 bytes (OB1) +30 bytes (FC1)


60

30
Call FC10 (with 20 bytes of local data)

60 bytes (OB1 + FC1) +20 bytes FC10


80

60
Call FC11 (with 20 bytes of local data)

60 bytes (OB1 + FC1) +20 bytes FC11


80

60
Call FC12 (with 30 bytes of local data)

60 bytes (OB1 + FC1) +30 bytes FC12


90

60
Call FC2 (with 50 bytes of local data)

30 bytes (OB1) +50 bytes (FC2)


80

30
Call FC20 (with 10 bytes of local data)

80 bytes (OB1 + FC2) +10 bytes FC20


90

80
Call FC21 (with 10 bytes of local data)

80 bytes (OB1 + FC2) +10 bytes FC21


90

80
Call FC22 (with 20 bytes of local data)

80 bytes (OB1 + FC2) +20 bytes FC22


100

80
Call FC221 (with 10 bytes of local data)

100 bytes (OB1 + FC2 + FC22) + 10 bytes FC221


110

80

The L-stack is used by the CPU for internal processing. The STL editor itself also uses bytes of local data, e.g. in transferring parameters for a block call.
Therefore, do not change the contents of the L-stack.

Note:
256 bytes per priority class are provided per program processing level (run level).

- for S7-300, fixed
- for S7-400, usually can be set under ”CPU Properties” in the hardware configuration.

 Entry ID:291495   Date:1998-04-01 
I regard this article....as helpfulas not helpful                                 
mySupport
My Documentation Manager 
Newsletter 
CAx-Download-Manager 
Support Request
To this entry
Print
Create PDF 
Send to a friend
QuickLinks
Compatibility tool 
Help
Online Help
Guided Tour