Siemens Organize Controller

JDCROCKETT724

Member
Join Date
Jun 2010
Location
Michigan
Posts
249
I just about have my siemens project wrapped up, and all my DB, FC, and FB numbers are all over the place. Is there a simple way to organize them? For instance if I have DB6 and I want to make it DB1 renaming it doesn't work, and then anywhere in the program DB6 was called it does not change to DB1. In the future I will organize better from the beginning of the project, but I am hoping there is a simple way to do this.
 
In step 7 you can use rewire. Right click the blocks folder to find it.

I have never used it, and hear it is not very good to use.

If you have a FB with a DB, and want to rename the DB. You can use CTRL F to find and replace.
 
The good ol' standby for any program layout:
Handle inputs

Do something

Write outputs
For example my FBs & FCs start @ 1000 and I step up by 100 when I transition to the next 'segment' of my machine

Instance dbs get a 'db' in front of them followed by the name of the FB that they belong to.

Edit: Also set your address priority to symbolic - this will allow you to change your DB #s, as long as the name stays the same when you re-generate (check block consistency) it will automatically relink.
 
Last edited:
Save the project to a new name.
Select Symbolic address priority.
Edit the Symbol list by changing the DB numbers but keeping the symbol names.
Run a block consistency check.
Done.
 

Similar Topics

HI everyone, i am new to Siemens plc programming and i am in need of some help. yesterday we had an S7-1200 CPU 1214C fail to turn on an output to...
Replies
7
Views
161
Hi PLC people, think about this scenario: The PLC is somehow connected to the same network with the facilities` network. Then someone connects to...
Replies
2
Views
84
Hello everyone, I've had this issue for the last 2 days where I try to assign the profisafe address to an IO block (6ES7 146-6FF00-0AB0) but when...
Replies
5
Views
152
Hello, good morning, I have been having two problems with the Tia Portal software. The first is that I have installed it on my computer and...
Replies
5
Views
184
Hello to all, I'm just starting with using CodeSys. Immediately, I have noticed that Codesys doesn't use data blocks like for example S7 does...
Replies
11
Views
182
Back
Top Bottom