How to extract the tag list from ABB 800xa
I need to extract the configured tags and variables in ABB 800XA database, maybe in Excel
I am trying to use BDM but didn't work
I am trying to use BDM but didn't work
Answers
Below an ABB Aspect Automation script outputting all objects (and object type) found in the Control Structure
The output is printed directly to the shell, e.g.
C:\TEMP> C:\WINDOWS\SysWOW64\cscript.exe findtags.vbs
Microsoft (R) Windows Script Host Version 5.812
Copyright (C) Microsoft Corporation. All rights reserved.
*** Enumerating objects. This may take a few minutes...
Object 1: Graphics Test Network (Generic OPC Server Network)
Object 2: Random_1_5 (Random)
Object 3: Sinus_1 (Sinus)
...
Object 9410: Square Waves (Generic OPC Object)
Object 9411: Triangle Waves (Generic OPC Object)
Object 9412: Write Error (Generic OPC Object)
Object 9413: Write Only (Generic OPC Object)
Object 9414: Configured Aliases (Generic OPC Object)
***
Total count: 9414, execution time: 118.62
Provided "as is" with no warranties. OPC property names and values not output as it would make the script run much slower (unless the script is made much more complex to cache types & variables). Since object type is output, one can easily guess the properties available.
A property value is easily output by WScript.Echo obj.properties("Function Block:ValueReal") or set with obj.properties("Control Module:ValueBool") = True. Remember, this interface was made for compatibility with as much as possible, not performance. Reading and writing properties need to be made in a responsible & controlled manner to not overload or jeopardise the OPC server and control application hosting them.
For more info, have a look at the Aspect Integrator Platform Automation Models Programmer’s Guide, 3BSE024835R301 published on ABB Library.
REM
REM NOTE 1: Need to be called from 32-bit version of WScript or CScript
REM C:\WINDOWS\SysWOW64\wscript.exe findtags.vbs
REM NOTE 2: WScript.Echo results in msgbox in WScript.exe but console output in CScript.exe
REM
REM NOTE 3: Example provided "as is" with no warranty. Use at own risk!
REM
dim systems
set systems = CreateObject("ABB.ABBSystems")
dim system
set system = systems.defaultsystem
dim sc
dim startTime
dim endTime
dim count
dim desc
dim node
dim obj
dim ot
WScript.Echo "*** Enumerating objects. This may take a few minutes..."
startTime = Timer()
set sc = system.structurecursor
sc.setcursor "[Control Structure]Root"
set desc = sc.descendents(false)
for each node in desc
set obj = node.object
set ot = obj.objecttype
count = count + 1
if ot is Nothing then
WScript.Echo "Object " & count & ": " & obj.name
else
WScript.Echo "Object " & count & ": " & obj.name & " (" & ot.name & ")"
end if
next
set ot = Nothing
endTime = Timer()
WScript.Echo "***"
WScript.Echo "Total count: " & count & ", execution time: " & FormatNumber(endTime - startTime, 2)
The output is printed directly to the shell, e.g.
C:\TEMP> C:\WINDOWS\SysWOW64\cscript.exe findtags.vbs
Microsoft (R) Windows Script Host Version 5.812
Copyright (C) Microsoft Corporation. All rights reserved.
*** Enumerating objects. This may take a few minutes...
Object 1: Graphics Test Network (Generic OPC Server Network)
Object 2: Random_1_5 (Random)
Object 3: Sinus_1 (Sinus)
...
Object 9410: Square Waves (Generic OPC Object)
Object 9411: Triangle Waves (Generic OPC Object)
Object 9412: Write Error (Generic OPC Object)
Object 9413: Write Only (Generic OPC Object)
Object 9414: Configured Aliases (Generic OPC Object)
***
Total count: 9414, execution time: 118.62
Provided "as is" with no warranties. OPC property names and values not output as it would make the script run much slower (unless the script is made much more complex to cache types & variables). Since object type is output, one can easily guess the properties available.
A property value is easily output by WScript.Echo obj.properties("Function Block:ValueReal") or set with obj.properties("Control Module:ValueBool") = True. Remember, this interface was made for compatibility with as much as possible, not performance. Reading and writing properties need to be made in a responsible & controlled manner to not overload or jeopardise the OPC server and control application hosting them.
For more info, have a look at the Aspect Integrator Platform Automation Models Programmer’s Guide, 3BSE024835R301 published on ABB Library.
by ParthibanT Rank: 43 on 12/3/2020 5:20:03 AM | Like (0) | Report
Have you checked this link
https://forum-controlsystems.abb.com/19887/Browse-Extract-Tag-List-from-ABB-800xA-OPC-Servers
Add new comment