Hi Archie,
Your suggestion works well - thanks.
I notice it also works in the click event of a PilotLight like this:
Private Sub PilotLight4_Click(sender As Object, e As EventArgs) Handles PilotLight4.Click
ModbusTCPCom1.Write("00001", "0")
ModbusTCPCom1.Write("00002", "0")
End Sub
Is there any problem with using a PilotLight like this?
Ron