Godra, I've tried the component
"Data Subscriber 21" and the following code:
Private Qs As String = ""
Private Sub DataSubscriber21_DataReturned (As Object sender, and As Drivers.Common.PlcComEventArgs)
If e.ErrorId = 0 Then
If e.PlcAddress = "011313,16" Then
Me.Label9.Text = ""
Qs = ""
For i = 0 To e.Values.Count - 1
If i = e.Values.Count - 1 Then
Qs & = "Q" & (i + 1) & "=" & e.Values (i)
Else
Qs & = "Q" & (i + 1) & "=" & e.Values (i) & ","
End If
Next
Me.Label9.Text = Qs
End If
End If
End Sub
Private QQs As String = ""
Private Sub ModbusRTUCom1_DataReceived (sender As Object, and As Drivers.Common.PlcComEventArgs) Handles ModbusRTUCom1.DataReceived
If e.ErrorId = 0 Then
If e.PlcAddress = "011313.6" Then
Me.Label10.Text = ""
QQs = ""
For i = 0 To e.Values.Count - 1
If i = e.Values.Count - 1 Then
QQs & = "Q" & (i + 1) & "=" & e.Values (i)
Else
QQs & = "Q" & (i + 1) & "=" & e.Values (i) & ","
End If
Next
Me.Label10.Text = Qs
End If
End If
End Sub
And I still don't get the plot I need.
this gives me the following data output:
"05 01 2C 30 00 01 F4 D1"
And I need this data output:
"05 01 2C 30 00 10 34 DD"
I have this problem with several AdvancedHMI components in their Property "PLCAddressValue", the Modbus function "01" with the address "011313,16" does not support me
The only thing that works for me is the code:
"ModbusRTUCom1.Read (" 011313 ", 16)"
I hope I don't bother with so many questions.
Greetings and thanks