Here is the code I ended up after entering N70:110 in the PLCAddressValue field of datasubscriber. I still got an error when trying to run it. Can you see what I'm missing?
Code:
Private Sub DataSubscriber1_DataChanged(sender As System.Object, e As MfgControl.AdvancedHMI.Drivers.Common.PlcComEventArgs) Handles DataSubscriber1.DataChanged
EthernetIPforPLCSLCMicroCom1.Write("N7:55", e.Values(0) * 2)
End Sub
Error:
Overload resolution failed because no accessible 'Write' can be called without a narrowing conversion:
'Public Function Write(startAddress As String, dataToWrite As String) As String': Argument matching parameter 'dataToWrite' narrows from 'Double' to 'String'.
'Public Function Write(startAddress As String, dataToWrite As Single) As Integer': Argument matching parameter 'dataToWrite' narrows from 'Double' to 'Single'.
'Public Function Write(startAddress As String, dataToWrite As Integer) As Integer': Argument matching parameter 'dataToWrite' narrows from 'Double' to 'Integer'.