Siemens s7-300 Programming Error

Edmond1966

Member
Join Date
Nov 2007
Location
nz
Posts
6
Hi All,

I am trying to figure out where my programing error is in the program. The Diagnostics Buffer says Event ID 16#2522.
The help tells me what this error is, trouble is I can't find any values outside or not completely within the permitted address range.
The Event is;
Event 3 of 10: Event ID 16# 2522
Area length error when reading
Global DB, word access, Access address: 34
Requested OB: Programming error OB (OB121)
Priority class: 1
Internal error, Incoming event

I'm assuming 'Global DB, word access, Access address: 34'
is where the error is but I don't know where this is in my program.

Any ideas how to overcome this?

Cheers
 
sounds like you have a DB thats too short. It should tell you which block the error is seen in, in one of the diagnostic messages.

Alternatively try putting a trap in OB1 to see where the error is, the error can be found in the TEMP area of OB121.

Be aware if you want the PLC to continue to stop on error after putting code in OB121, you would have to call SFC46.
 
If you remove OB121, you force the CPU to stop.
Then you can investigate the diagnostics - B stack. This tells you where in the program the error occurred. I think that there is even a "go to" button that will open the last block at the correct spot.
 

Similar Topics

Hi Sir, I am using S7-300/400. I am usually using FC 03 and FC04 to transfer (R/W) bool values by moving them DBs. However i want to R/W bool...
Replies
1
Views
2,059
Hi, I have a 315-2 PN/DP CPU. It was programmed in Step 7 V5.5. Then a colleague programmed it in TIA Portal V13 for a test. Now I want to...
Replies
6
Views
2,276
Hi guys, once more I need your help: Siemens Part Number 6GK1571-0BA00-0AA0, (see the attached image) is this the correct part for...
Replies
4
Views
2,333
Hello Guys! Let me explain what is my problem. I have two timers T1 and T2, When i detect a metal the M8.0 memory will addressed and start the...
Replies
1
Views
4,431
Hi I am looking into remote access for modifications/ customer support. I will not be able to VPN so am considering 3G connection with a remote...
Replies
8
Views
4,578
Back
Top Bottom