![]() |
||
|
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
| ||
New Here? Please read this important info!!!
|
|
#1 |
|
Member
![]() Join Date: Jul 2003
Location: Ontario
Posts: 215
|
Step7 Reading from IDB STAT area
I am modifying a large STEP7 program with many FBs and FCs. The original programmer is reading STAT bitw of IDB's in other blocks directly using DBxxx.DBXxx.x. Isn't that a very bad practise? If I add or remove IN, OUT or INOUT from the FB, all these STATs will move to a different physical location.
|
|
|
|
#2 |
|
Lifetime Supporting Member + Moderator
|
No, it is not bad practice.
Just be sure to use symbolic address priority. Or did you just upload the program without comments or symbols ?
__________________
Jesper
|
|
|
|
#3 |
|
Member
![]() Join Date: Jul 2003
Location: Ontario
Posts: 215
|
The customer gave the project. Therefore I have all comments, symbols, etc.
I will test and figure out the four different settings for address or symbol priority. |
|
|
|
#4 |
|
Lifetime Supporting Member + Moderator
|
If you change the declaration part of FBs or UDTs, then it is recommended to run a consistency check. All the modified positions will then be updated everywhere in the program.
You cant do that on a running program of course, but that would be the case even if the FB STAT part was not accessed from outside the FBs.
__________________
Jesper
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Topics
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Area length error when reading | manmeetvirdi | LIVE PLC Questions And Answers | 9 | November 21st, 2009 07:34 AM |
| Step7: Transfer array to I/O area | Robert Carlsson | LIVE PLC Questions And Answers | 6 | June 12th, 2009 07:06 AM |
| Step7 - Copying a STRUCT in a STAT in an FB declaration | RMA | LIVE PLC Questions And Answers | 7 | July 21st, 2007 03:37 AM |
| Step7 - Read some bit from Word in Interface area | bar.pavel@telecom.cz | LIVE PLC Questions And Answers | 17 | September 18th, 2006 12:43 AM |
| Please help me: Area length error when reading | BoSChoW | LIVE PLC Questions And Answers | 14 | August 10th, 2006 09:26 AM |