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!
In reply to AdrianOffield:
In reply to Eugen Evseev:
In reply to Colin Welsh: