area length error when writing??

Richharry

Member
Join Date
Sep 2007
Location
Yorkshire
Posts
2
guys,

I am trying to commission a software redundant system siemens S7 300.

the SF led's are on with both processors, looking in the diagnostic buffer it is full of area length error logs.

The description points me to the instance db's, is data being written to them which is too large??

regards
RH
 
What EXACTLY does it say in the diagnostics buffer ?

One way to locate the exact point in the program that causes the error is to delete all the error OBs. Then when the CPU faults, you can investigate the stacks and get the information where in the program the bad code is located.
 
each log states:
"Area length error when writing
InstanceDB,Double word access acess address:4834- (for this log )
Requested OB: Programming error OB121
Priority cals:12
Internal error,incoming event"

event ID 16#2523
 
It sounds like some kind of indirect adressing gone bad. 4834 is an extreme number if it is supposed to be a byte offset in an instance DB.

Try the trick with removing the error OB121.
 
Priority class 12 is OB35 if that helps. When the error is highlighted in the diagnostic buffer, do you get the option of "Open"? This would take you to the source of the error.

Nick
 
Rather than crash the PLC, especially if this is undesirable for the process, can't he wrote some code in OB121 to capture the information form OB121 TEMP variables.
 
PeterW said:
Rather than crash the PLC, especially if this is undesirable for the process, can't he wrote some code in OB121 to capture the information form OB121 TEMP variables.

I believe this is what the OB was created for......
 

Similar Topics

Kindly , in Siemens PCS7 , has anyone seen and solved this problem ? " Maximum length of code area reached (max. 64 Kbytes) "
Replies
3
Views
2,284
System is an IPC547D running GRAPH in WinAC RTX. Six S7-1200 (CPU 1215C) running a little code for manual operations, but mostly running as...
Replies
16
Views
8,002
Hello fellow programmers! I've come to you with a new problem... currently I am working on a project involving a network of 8 Siemens PLCs...
Replies
4
Views
11,242
Hi there Iam unable to understand as to why PLC gives "Area Length error when reading" if I add "A#call_fwd_I" at the very end of the block...
Replies
9
Views
9,067
Hi all, I have a problem, when i try to run my application an error appear on the PLC S-300 CPU 313C. The diagnostic buffer says area lenght...
Replies
14
Views
8,914
Back
Top Bottom