MbusIpServerBasesetPort Method |
Sets the TCP port number to be used by the protocol.
Namespace:
FieldTalk.Modbus.Slave
Assembly:
FieldTalk.Modbus.Slave (in FieldTalk.Modbus.Slave.dll) Version: 2.11.0-eval+eb1ecbe71c969eff5d7c05d58da16dade0474678
Syntaxpublic int setPort(
int portNo
)
Public Function setPort (
portNo As Integer
) As Integer
public:
int setPort(
int portNo
)
Parameters
- portNo
- Type: SystemInt32
Port number the server shall listen on
Return Value
Type:
Int32 BusProtocolErrors.FTALK_SUCCESS on success or error code.
See
BusProtocolErrors for possible error codes.
Remarks Note |
|---|
| Usually the port number remains unchanged and defaults to
502. In this case no call to this function is necessary. However if
the port number has to be different from 502 this function must be
called before starting the server with startupServer(). |
Note |
|---|
| This parameter must be set before starting
the server in order to come into effect. |
See Also