Update existing AOIs to same AOIs new defaults

jlmcguire3

Member
Join Date
Dec 2021
Location
Texas
Posts
10
Hello,
Say I am using an AOI with a default value of 1.
Now I want the default value for the same AOI to be 2.
Is there a way to update all instances of this AOI in the code?
I know I can redeclare the instance, or manually change the default value in each AOI, but I do not want to do this.

This is offline design FYI.
 
Hi jlmcguire3,

The purpose of the AOI is so that you can set any values or parameters inside of the AOI and not have to manually update every instance. If you edit the AOI, the changes are applied to everywhere the AOI is used if you have a well configured UDT.
 
Hi jlmcguire3,

The purpose of the AOI is so that you can set any values or parameters inside of the AOI and not have to manually update every instance. If you edit the AOI, the changes are applied to everywhere the AOI is used if you have a well configured UDT.
That's not necessarily true.

If you have some logic which e.g. says MOV 1 to Some_Tag, and you update it to be MOV 2 to Some_Tag, all instances of the AOI will update. That is, if you change the logic, all instances of the AOI will inherit that logic automatically.

However, let's say you have an input parameter called MyParam, and it's default value is 1. You can make the default value 1 by specifying it in the AOI definition parameters table, or by setting a value of 1 in that tag anywhere it exists in your AOI definition logic.

Now, you create 10 instances of that AOI. In each AOI, the value of MyParam will be 1, unless you act to change it.

Next, you go to your AOI definition parameter table and change the default value of MyParam from 1 to 2, and click OK. All of the existing instances of that AOI will retain their original value, that is, MyParam in all existing instances will remain at 1 (or whatever other value they may have since been manipulated to in each instance). Any new instances you create from this point on will use the updated default value, but the ones that already existed will not change.

However, as OP has suggested, it would be handy to be able to update those values in all the existing AOI's without manually going through them one at a time - and there's a function to allow exactly that. At the bottom of your AOI definition parameter table, there is a check box labelled "Copy all default values of parameters and local tags whose values were modified to all tags of this instruction type", which does, well, exactly what the description suggests. If you update a default value, check that box and then hit OK, all existing instances of the AOI will be updated to use whatever default parameter you just added or specified or changed. Even if you have previously changed them from their original default.
 

Similar Topics

I am using PME 9.5 but I believe that what I want to do relates to earlier version of PME. I have an existing ME project in which I want to...
Replies
1
Views
2,538
How do you install update on Red Lion Crimson ver 3.1. Do I just need to run the exe file on the host server?
Replies
1
Views
126
Has anyone found a way to convert/replace/update the firmware on old Parker TS80xx series HMIs (i.e. TS8010, TS8006, etc) to accept Crimson...
Replies
0
Views
105
Hi All, we've recently upgraded from FTView SE v10 to v12. Since the upgrade we've been having a problem where the HMI is slow to update tags in...
Replies
0
Views
102
Hi, I have an iFIX 5.5 project (Windows 7) that needs to be updated to version 6.5 (Windows 10). iFIX communicates with the "Siemens Industrial...
Replies
1
Views
179
Back
Top Bottom