• Libraries
  • Shop
  • Doc
  • Free Modbus
  • Support
  • Login
FieldTalk Modbus Slave Library for .NET
FieldTalk Modbus Slave Library for .NET
Namespaces
FieldTalk.Modbus.Slave
MbusTcpSlaveProtocol Class
MbusTcpSlaveProtocol Methods
getConnectionTimeOut Method
setConnectionTimeOut Method
Click or drag to resizeClick or drag to resize

MbusTcpSlaveProtocolsetConnectionTimeOut Method

Configures connection time-out.

Namespace:  FieldTalk.Modbus.Slave
Assembly:  FieldTalk.Modbus.Slave (in FieldTalk.Modbus.Slave.dll) Version: 2.11.0-eval+eb1ecbe71c969eff5d7c05d58da16dade0474678
Syntax
C#
VB
C++
Copy
public int setConnectionTimeOut(
	int masterTimeOut
)
Public Function setConnectionTimeOut ( 
	masterTimeOut As Integer
) As Integer
public:
int setConnectionTimeOut(
	int masterTimeOut
)

Parameters

masterTimeOut
Type: SystemInt32
Timeout value in ms (Range: 0 - 3600000), 0 disables time-out

Return Value

Type: Int32
BusProtocolErrors.FTALK_SUCCESS on success or error code. See BusProtocolErrors for possible error codes.
Remarks
This allows to detect broken TCP connections. The TCP connection is closed if a valid request is not received within the configured time period. A value of 0 disables the time-out. Default value is 0 (disabled). The time-out value is a minimum value only and the actual time may be longer. How precise it is followed depends on the operating system used, its scheduling priority and its system timer resolution.
See Also

Reference

MbusTcpSlaveProtocol Class
FieldTalk.Modbus.Slave Namespace
FieldTalk Modbus Slave Library for .NET
Library version 2.11.0
Speak to the Experts
Modbus Organization Member logo

We are member of the Modbus Organization, Inc.

Buy with Confidence
30-day money back guarantee All our FieldTalk web sales are backed by a 30-day Money Back Guarantee.
We Accept
Bank VISA MasterCard PayPal
Customer Info
  • Info & Contact
  • Customer Login
  • Terms of Service
  • Terms of Sale
  • Privacy Policy
© 2005-2025 proconX Pty Ltd. All rights reserved. proconX and FieldTalk are trademarks of proconX Pty Ltd.
All other trademarks and registered trademarks appearing on www.modbusdriver.com are the property of their respective owners.