FieldTalk™ Modbus Master .NET Library

MbusTcpMasterProtocol Constructor (String, Int16)

Creates new instance and configures the host name

[Visual Basic]
Overloads Public Sub New( _
   ByVal hostName As String, _
   ByVal portNo As Short _
)
[C#]
public MbusTcpMasterProtocol(
   string hostName,
   short portNo
);

Parameters

hostName
String with IP address or host name (eg "127.0.0.1")
portNo
Port number to be used when opening the connection (default is 502)

Exceptions

Exception Type Condition
OutOfMemoryException Creation of class failed

See Also

MbusTcpMasterProtocol Class | FieldTalk Namespace | MbusTcpMasterProtocol Constructor Overload List