FieldTalk Modbus Master Library for .NET
FieldTalk Modbus Master Library for .NET
Namespaces
FieldTalk.Modbus.Master
MbusTcpMasterProtocol Class
MbusTcpMasterProtocol Properties
port Property

# MbusTcpMasterProtocol port Property

TCP port property

Namespace: FieldTalk.Modbus.Master
Assembly: FieldTalk.Modbus.Master (in FieldTalk.Modbus.Master.dll) Version: 2.15.2-eval+3d8362b4bb861c05760d48b11d303e954bb8597c
Syntax
C#
VB
C++
Copy

    public override short port { get; set; }

    Public Overrides Property port As Short
    	Get
    	Set

    public:
    virtual property short port {
    	short get () override;
    	void set (short value) override;
    }

#### Property Value

Type: Int16
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

#### Reference

MbusTcpMasterProtocol Class
FieldTalk.Modbus.Master Namespace
FieldTalk Modbus Master Library for .NET
Library version 2.15.2