You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Reply
 
Thread Tools Display Modes
Old September 8th, 2010, 02:21 AM   #1
svoicum
Member
Romania

svoicum is offline
 
Join Date: Sep 2006
Location: Cluj
Posts: 43
Unhappy Area length error when reading

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 (ET200S IM151-8 PN/DP CPU). They all pretty much do the same thing, so they're configured almost the same, except the HW. They all seem to work flawlessly, except one. This one, when I start it up, immediately turns on the RED SF LED. I've attached the Diagnostic Buffer read with Module Information inside Siemens.

I've also read Area length error when reading and Please help me: Area length error when reading but I couldn't figure out what's the solution to my problem.

I also mention that the CPU doesn't go into STOP because I loaded all the necessary OBs in order to prevent that (learned this one from this forum ), but the boss see's every RED thingy as a problem , so I must solve this one in order to get him off my back.

Has anyone ever dealt with this situation? Could anyone help me solve this?

Thanks in advance!
Voicu

P.S. Oh, I forgot to mention... I'm the boss...
Attached Files
File Type: txt Diagnose CT2E7.txt (123.3 KB, 17 views)
  Reply With Quote
Old September 8th, 2010, 03:13 AM   #2
L D[AR2,P#0.0]
Supporting Member
United Kingdom

L D[AR2,P#0.0] is offline
 
Join Date: Nov 2006
Location: UK
Posts: 4,540
Delete OB121 from the plc so that it does stop then examine the stacks to track down your errant code which is attempting to access a bit in a DB but the DB is not big enough.
  Reply With Quote
Old September 8th, 2010, 03:13 AM   #3
Jobbe
Member
Belgium

Jobbe is offline
 
Join Date: Jul 2005
Location: Antwerp
Posts: 159
My best guess is that you don’t have DB 43 loaded but the fault message isn’t very specific in this case.
Here’s one trick I sometimes use to diagnose this problem. Load the software in PLCSIM and remove OB121. This will make the PLC(SIM) go to STOP. Then open the PLC module information and open the I-stack. The button “Open block” will take you to the point where the PLC went to STOP.
  Reply With Quote
Old September 8th, 2010, 03:43 AM   #4
svoicum
Member
Romania

svoicum is offline
 
Join Date: Sep 2006
Location: Cluj
Posts: 43
Thumbs up Thank you! Problem solved...

It's good to be reminded from time to time that PLCSim exists (Thank you Jobbe). I did what you told me (thus learning a new way to debug programs without carrying out the whole compile all procedure and loading into the PLC - getting smarter by each day that passes me ).

I've found the problem that was causing this. It was in the alarm managing function block, an erroneous copy paste from another PLC was addressing an address (DBX43.0) non existent in my DB (DB1). So i figured out that the "43" the diagnostic buffer was telling me about is the address of the bit that I was wrongly addressing.

Thank you! Thank you! Thank you!

You saved my day. Next round of drinks on me

Cheers to all,
Voicu

Last edited by svoicum; September 8th, 2010 at 03:47 AM.
  Reply With Quote
Old September 8th, 2010, 10:00 PM   #5
Paul B
Member
United States

Paul B is offline
 
Paul B's Avatar
 
Join Date: Sep 2009
Location: North Carolina
Posts: 571
Brost!!!!

I got a kick out of your thread, svoicum.
__________________
"I never let a cowboy make the coffee."
Yeah, thats what Granny always said to my Grandad.
And he'd say: "Never tell a joke that ain't that funny more than once."
"And if you wanna hear God laugh, tell Him your plans."
Van Zant "Help Somebody"
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Step7 Reading from IDB STAT area AJZ LIVE PLC Questions And Answers 3 March 31st, 2010 06:39 PM
Area length error when reading manmeetvirdi LIVE PLC Questions And Answers 9 November 21st, 2009 07:34 AM
area length error when writing?? Richharry LIVE PLC Questions And Answers 7 September 13th, 2007 07:19 AM
Please help me: Area length error when reading BoSChoW LIVE PLC Questions And Answers 14 August 10th, 2006 09:26 AM
S7 Area Length Fail kennyb LIVE PLC Questions And Answers 6 January 31st, 2005 03:37 PM


All times are GMT -5. The time now is 09:41 PM.


.