Skip to main content
InSource Solutions

TN - 1262 Redefining a Tags Data Type In Historian

Description

 

This article from InSource shows a workaround for updating a tags data type in Historian. 

  • Author: Mario Meza
  • Published: 06/14/22
  • Applies to: Historian

Details

Once a tag is created in Historian there is no way to update or change the data type from the SMC interface. You can always delete and recreate the tag but in a scenario where data has been collected, one work around involves the use of the Tag Rename Utility with a minor caveat.

NOTE: This process assumes any collected data matches any changes in the data type.

 

To demonstrate this an Analog tag was created collecting digital data from OI SIM

clipboard_e53cc517794e8e298053f6e8d594bff58.png

The data is being actively collected and validated in Trend

clipboard_e63b3e23fc6a5f558150c08dd22f6715f.png

 To resolve this create a new tag of the correct data type pointing to the same IO source 

 

clipboard_edef7b658e0cad4458634c4ef4d854744.png

 

Next shut down and disable Historian and run the Tag Rename Utility from the following path

"C:\Program Files (x86)\Wonderware\Historian\x64\aahTagRename.exe"

 

Enter the New Tag of the correct datatype as the Old Tag Name and the Old TagName as the New Tag Name ( I know it sounds backwards).

clipboard_e38ea7f14b94ad7e8729370b45e0c7967.png

 

 

*** If you don’t do it this way the data type of the tag type will remain incorrect, but the name will be correct.

Select Rename Tags

clipboard_e7214d8b8dde63456c5a8d4ab3d84aca7.png

 

Enable Historian

 

clipboard_ee3a05da07776db9c510c3bceecd5e9e2.png

 

 

Validate the data type is now correct in the SMC...

clipboard_e2b31fc596af588e25414a48cbe86e2fd.png

 

 

At this point the data is maintained and the data type should now be correct...

  

clipboard_ebd1cf71b5b52396ff65d1e08ed91e615.png

 

The tag name may be inaccurate, so rectify this you just need to run the utility again updating the Incorrect name to the Correct name

 

clipboard_ef108393284a8e90411d3971639ffac36.png

 

Enable Historian and validate everything is now correct

 

clipboard_e8103727b3d9960b4b4f9706968b991ec.png

  • Was this article helpful?