S7 and symbolic or absolute adressing.

JesperMP

Lifetime Supporting Member + Moderator
Join Date
Feb 2003
Location
ᚴᚬᛒᛅᚾᚼᚬᚠᚾ
Posts
16,298
Greetings S7 fetishists :)

Here is a little problem that is annoying me all the time.

When I write code within an FB, the adressing follows the symbolic names of the associated instance DB.
When I write code outside an FB, the code follows the absolute adresses of the DB.
If I change the declarations of the STAT variables so that existing variables changes position, then the code inside the FB is OK because it uses the symbolic adresses, but the code outside the FB gets screwed up becuse it still refers to the absolute DB adresses.
Its a nice source for programming errors.

To counter this I currently use spare placeholders in the DB declaration, or I append new declarations to the end of the DB.

Is there a neater or smarter way around this ?
Am I missing a point completely ?
 
Jesper, what a coincidence... :)

I am just getting ready to post a sample project in another thread that addresses your problem exactly (I think). Basically, you need to change the priority to "Symbolic". Take a look and let me know if that is what you mean.
 
THANKS S7Guy !

Its under the project tree ... blocks ... properties ... "blocks" tab ... Adress Priority.

It just one of the many things that you are supposed to know.
I find more and more with S7, that all the functionality is in there somewhere, the tricky part is to find it.

I am going to check it out immediately.
Edit: Have checked it now, and works exactly as I want it to.
 
Last edited:

Similar Topics

SOmething I forgot how to do or where the setting is. There is a couple of DBs I have to rename, but when I do I have to rename them individually...
Replies
1
Views
2,290
I have a program that normally uses symbol priority. I wanted to rename some DBs, so I changed to absolute priority, did the renaming, ran a...
Replies
2
Views
1,447
Can a single MSG_CIPSYMBOLIC function block be set up to write multiple REAL values (setup in an array)? I've read through a lot of help files...
Replies
0
Views
595
I am trying to make a change to a Mitsubishi plc FX3GE program that is running currently in the machine. I do not have a copy of the original...
Replies
4
Views
1,582
I have 2 Micro850 PLCs that I am working on that use MSG_CIPSYMBOLIC blocks to transfer data back and forth. Or at least they were... Basically...
Replies
6
Views
2,354
Back
Top Bottom