This example uses an InTouch application which has Access Names and Tags configured. We moved away from Access Names to using the Galaxy, so the tags in InTouch needed to be updated.
To do this, we dumped all of the tags out of the InTouchViewApp template:
The DB Dump will give you a .csv file which you can modify to update the tags.
The first column is going to remain the same as this is what the objects in InTouch are referencing, however the ItemName, AccessName and UseTagname columns are of interest to us.
The UseTagname column needs to be set to No so that the ItemName column can be used to reference something other than the name of the tag in InTouch.
You will notice that the AccessName column will currently point to each of the access names defined in InTouch. This column will need to be set to Galaxy.
Then, you can set the ItemName column to point to the correct location in the galaxy, for example: <SuiteLinkInstance>.<ScanGroup>.PLCTag
Here is a before and after:
The first line is what it looks like before, the second line is what it looks like after we’ve made the changes to go via galaxy.
I used some CONCATENATE formulas around the place magic this new ItemName so that I didn’t have to manually change much.
Once you have all of your tags pointing to the new location in the galaxy, save the .csv file as a new file and then do a DB Load:
Annoyingly, you will need to confirm that you want to replace for each and every tag that you’ve changed. So either spamming the left click, or enter on the keyboard for a while will be the fastest way.
UPDATE change the CSV file header to one of below
Update the Database Input File Operating Modes in the header of the CSV:
MODE=ASK > This is default option and you will end up using left click lots.
Keep in mind that sometimes the prompt pops UNDER the IDE window, and so you might be fooled in to thinking that it’s doing something. Keep an eye on the taskbar to make sure that the popup prompt window isn’t waiting for you behind the IDE.
You’ll then need to go in to WindowMaker and remove the old AccessNames, leaving only Galaxy:
You’ll may also need to specify (depending on your license?) that the Application Type is an InTouchView Application:
In our particular case, the previous developers couldn’t work out how to reference UDA members or Array Elements in InTouch, so they did mapping in DAS between the tagname and the actual PLC tag name. So, you may need to check there to ensure any existing mappings are brought across too.