FieldTalk™ Modbus Master .NET Library

MbusTcpMasterProtocol.port Property

TCP port property

[Visual Basic]
Public Property port As Short
[C#]
public short port {get; set;}

Property Value

TCP Port number of slave device. Default value is 502.

Remarks

Usually the port number remains unchanged and defaults to 502. However if the port number has to be different from 502 this property must be set before opening the connection with openProtocol().

Note    A protocol must be closed in order to configure it.

See Also

MbusTcpMasterProtocol Class | FieldTalk Namespace