Hi all, one additional thing concerning the returned value on funcion
Public Function Write(startAddress As String, dataToWrite As String) As String Implements MfgControl.AdvancedHMI.Drivers.IComComponent.Write
Dim temp(0) As String
temp(0) = dataToWrite
Write(startAddress, 1, temp)
Return ("1")
'Return Write(startAddress, 1, temp)
End Function
Instead of Return("1") as string, we can jus modify the original Return Write(startAddress, 1, temp)
converting the result in a string like this
Public Function Write(startAddress As String, dataToWrite As String) As String Implements MfgControl.AdvancedHMI.Drivers.IComComponent.Write
Dim temp(0) As String
temp(0) = dataToWrite
Write(startAddress, 1, temp)
'Return ("1")
Return Write(startAddress, 1, temp).ToString()
End Function
ciao