How to change the initial value of a static variable in a FB?

drspanda

Member
Join Date
Oct 2005
Location
Damanjodi
Posts
155
I have created a FB and while creating I have given values for static variables (initialization)....But I want to change some values...

May I know the correct procedure....I have tried to open the instance DB (Which was assigned to that FB) and changed a value and downloaded it and finally found not happened.

Also I tried to open that FB and changed the variable and saved it and downloaded it and still not happened...

While I go online with Instance DB I still find the old values only.

I may be provided with the procedure.

Regards,
drspanda
 
First make sure you have no blocks open.

Open the FB with the stat you wish to change. Changing the initial value for a stat variable in an FB changes the interface of the FB. When you save the FB a message (unless you have turned it off) appears warning you of the interface change. Save and close the block. Now open the block where the FB is called and the DB associated with the call will be red - indicating that the DB is out of date. Click on "File" and then "Check and Update Accesses" - this will regenerate the instance DB. Save the block. Finally download the changed FB and it's instance DB and the calling block and you are done.
 

Similar Topics

I have two identical machines running similar HMI projects, the only difference is one is done in FactoryTalk View Version 10 and the other is...
Replies
5
Views
241
Hoping someone can give me some guidance or confirmation of what I need to do. We have a FactoryTalk SE program that I need to change the IP...
Replies
2
Views
124
Hey all, i have a panelview screen (image attached), with 4 items on it. Program 1, Program 2, ...3, ...4. The PLC i am using is a compactlogix...
Replies
7
Views
258
Greetings I have a problem, my system is the following: wincc v8.0 (demo), logo8.3, abb m2m analyzer. I created some pages to display the...
Replies
0
Views
91
We had one go down. we have a new one. Their emergency Number don't work. The Model is TLSA046AAH-330N01-007 A catalog says we need software TET...
Replies
2
Views
182
Back
Top Bottom