How to continously sample data from ABB OPC Server to DeltaV?

I want to continously sample data from ABB OPC Server to DeltaV. I have some data tags in ABB, so i can use VBA to read its value, declare it as temporary variable and write it down to DVSYS. Currently, my code looks like this:
For AnalogValue: (TT100_temp is a variable)  I  just connected ABB OPC server to DeltaV, so i can see abb tags in DATASERVERS tab.

Private Sub TT100_temp_OnChange()
Dim temp As String
temp = frsReadValue("ABB.Applications.Application_1.TT100_temp_display")
frsWriteValue temp, "DVSYS.ALL_TEGS_ABB/TT100_TEMP.F_CV"
End Sub

For DiscreteValue:
Private Sub remote_OnChange()
Dim temp As Single
temp = frsReadValue("ABB.Applications.Application_1.romote")
frsWriteValue Str(temp), "DVSYS.ALL_TEGS_ABB/REMOTE.F_CV"
End Sub

But this code isn't good. In some cases, values in DVSYS stay still, so i need a better way to continously sample data. Any ideas? Should i use Sheduler?
Any help is appreciated!

5 Replies

  • Normally you would use the OPC Mirror application (included on install DVDs) to link 3rd party OPC servers to DeltaV. Run it on the application station and map data between ABB OPC server and the DeltaV OPC server.
  • In reply to AdrianOffield:

    Thanks for Reply.
    The problem is, that we don't have any Mirror OPC license, so i'm in search of other solutions.
  • In reply to Eugen Evseev:

    There used to be an OPC Mirror lite version that was license free (limited to 100 points), but I can't seem to find the download. Alternatively, Matrikon offer OPC data manager that does the same thing as Mirror, I think it's about $1000, so probably a lot cheaper than trying to develop your own interface.

    What about using Excel, I've automated DeltaV Excel add-in to perform cyclic writes, so if you had a similar add-in for ABB and Excel, you could build a Frankenstein solution that way!
  • Which version of the ABB OPC server are you using? We've found issues on that the ABB OPC server for DCI isn't a "true" implementation of the OPC standard; if you add new tags to the ABB system (in my case, System 6), then these are not picked up by the OPC server, and you have to reboot the OPC server for it to refresh it's tag list. This is a pain if you do long production runs without plant shutdowns.

    With our ABB system you can get it to export data using the @aglance software add-in to Excel, but this needs licenced and would need to run on a schedule (we use it for batch reports, and trigger them using Event bits in System 6). I'd avoid this scenario as it does get a little tricky.

    I'd go with Adrian's solution and use an OPC mirror application. that should make things a lot simpler (ignoring any DCOM issues if the OPC applications are on different PC's,Domain, etc, but that's a whole different ball game).
  • In reply to Colin Welsh:

    We've done this with Cogent DataHub as well. Real easy to setup.