1
Support Questions / Re: BasicDataLogger2 sql database
« on: August 23, 2017, 06:26:50 AM »Quote
Private Value1, Value2 as string
Private Sub BasicDataLogger21_DataReturned(sender As Object, e As Drivers.Common.PlcComEventArgs) Handles BasicDataLogger21.DataReturned
if e.PLCAddress=BasicDataLogger21.PLCAddressValueItems(0).PLCAddress Then
Value1=e.Values(0)
ElseIf e.PLCAddress=BasicDataLogger21.PLCAddressValueItems(1).PLCAddress Then
Value2=e.Values(0)
Else
Using t As New DataSet.logDataTable, ta As New DataSetTableAdapters.logTableAdapter
t.AddlogRow(t.NewRow)
t(0).c1 = Value1
t(0).c2 = Value2
t(0).c3 = e.Values(0)
ta.Update(t)
End Using
End If
End Sub
Thanks Archie!
This worked great.