S7 going in to Stop Mode 'Error Allocating Local'

ylade

Member
Join Date
Sep 2007
Location
Ireland
Posts
23
Hi All,

I have a S7318 and it will not go into Run Mode. The Diagnostic Buffer says


'Stop caused by Error When Allocating Local Data'

Any Ideas?

Thanks
 
Have you added a lot of temp registers to your OB's????? or changed the allocation of local memory in the HW config?

Taken from Step 7 Online Help
"The L stack saves the following:
  • <LI style="FONT-SIZE: 10pt">The temporary variables of the local data of blocks
    <LI style="FONT-SIZE: 10pt">The start information of the organization blocks
    <LI style="FONT-SIZE: 10pt">Information about transferring parameters
  • Interim results of the logic in Ladder Logic programs
When you are programming organization blocks, you can declare temporary variables (TEMP) that are only available when the block is executed and are then overwritten again. Before you access the local data stack for the first time, the local data must be initialized. In addition to this, every organization block also requires 20 bytes of local data for its start information.
The CPU has a limited amount of memory for the temporary variables (local data) of blocks currently being executed. The size of this memory area, the local data stack, is dependent on the CPU. The local data stack is divided up equally among the priority classes (default). This means that every priority class has its own local data area, thus guaranteeing that higher priority classes and their OBs also have space available for their local data."
 
I would also look at module information and go to the stacks tab and see if it will tell you which block it is getting hung on.... Good luck!
 
The default allocation of Local data in a 318 is to spread 256 byte chunks around to the different priority classes. Re-allocate the local data by first using the spare 500 bytes and then taking say 128 bytes from each of the priority classes and allocate it to priority class 1 until your problem is resolved.

318009009.JPG
 
Last edited:

Similar Topics

I have an S5-135U. We had a problem in the past where if we unplugged our Siemens M4 PG while still in Windows but offline and out of STEP5. The...
Replies
5
Views
2,967
I'm using 317-2DP for hydraulic drives. Where plc controlling 5 pumps by indvidual setpoint of 4-20ma. While starting the system PLC is going to...
Replies
3
Views
4,159
pls can u tell me cause for UAFEHL interruption and plc going to stop mode i m thank full to u best regards mohammad danish
Replies
1
Views
1,983
I've a Siemens S7-300 cpu (with two DI, two DO and one AI) card. The problem is that all the I/O cards have gone into SF (system fault) with solid...
Replies
13
Views
16,454
Back
Top Bottom