You can do it with a DataSubscriber and a little code:
- Add a DataSubscriber to the form
- Set PLCAddressValue to a address in the PLC
- Double click the DataSubscriber on the form design view. It will take you back to the code
- Enter code something like this:
If e.ErrorId = 0 Then
Using sw As New System.IO.StreamWriter(".\MyLogFile.txt", False)
sw.WriteLine(e.Values(0))
End Using
End If