S7 - Problem after modifying multiple instance FB.

OT but I have to ask. What is a car boot sale?

Sorry, wasn't back online after I posted, but I'm glad to see that the question has been answered. Fleamarket is actually also the German term - "Flohmarkt", but for some reason I can't explain, I chose to use the other term. As you can see, I'm now back at work!
 
RMA - thanks for the link to S7Guy's description. This is a thought provoking thread and should be required reading for anyone looking to improve their understanding of Step 7.

Your comment confuses me though,

The significant part about it is that he recalculates his offsets etc. in a Block called by OB100,so that he can modify the parameters in his UDTs without having to rebuild any of the other blocks (apart from the program mods, of course).

If you modify the structure of the UDT, a recompile of all blocks is suggested - thus all blocks that reference the
UDT will be rebuilt.

My approach is to use a DB for each 'object'. The DB gets populated with similar configuration and process data, but,
once a variable has been allocated an address in the DB, that address is then "set in stone" and cannot be used for anything else. Extra functionality means the DB grows in size. Pointers (to other DBs if neccessary) are used if large amounts of process data needs to be referenced. Using the same address in each DB means the FC's and FB's that reference the data do not need to be changed if the DB is expanded. Similarly, any GUI devices that reference the data in the DB will not need modifying. When processing my list of objects, the DB number changes instead of pointing AR2 to a different area of a DB. (Code is written to control a range of machines with similar control systems on them, not a new project everytime)
 
Sorry, didn't express myself very well. What I meant was that because there are no parameters assigned in the block calls, you don't have to go through each individual call and retype it (or refresh it), which was the cause of my pain with my changes!
 

Similar Topics

I had to make some changes to the "active" FB of a multi-instance FB pair. It must have been too early in the morning, or too late at night but...
Replies
7
Views
6,105
Hello, I need to write the following program in Ladder language, but I could not integrate the Fibonacci sequence into the ladder. Can you help...
Replies
22
Views
461
On all pages of my project i have a lot of information, texts and details that should not not be shown. I can remove them for each part apart from...
Replies
0
Views
52
Hi, I have had problem with upgrading some projects from v16 to v18. I tried it on 3 diffrent computers. I want to post this so that anyone that...
Replies
3
Views
213
Hi, I am having a challenge installing a new drive ACS355-03E-44A0-4 as it keeps on displaying Fault code F00018 even when the load is not...
Replies
3
Views
153
Back
Top Bottom