MbusSlaveServersetTimeout Method |
Configures master transmit time-out supervision.
Namespace:
FieldTalk.Modbus.Slave
Assembly:
FieldTalk.Modbus.Slave (in FieldTalk.Modbus.Slave.dll) Version: 2.11.0-eval+eb1ecbe71c969eff5d7c05d58da16dade0474678
Syntaxpublic int setTimeout(
int timeOut
)
Public Function setTimeout (
timeOut As Integer
) As Integer
public:
int setTimeout(
int timeOut
)
Parameters
- timeOut
- Type: SystemInt32
Timeout value in ms (Range: 1 - 100000), 0 disables time-out
Return Value
Type:
Int32 BusProtocolErrors.FTALK_SUCCESS on success or error code.
See
BusProtocolErrors for possible error codes.
Remarks
Configures master transmit time-out supervision. The slave can monitor
whether a master is actually transmitting characters or not.
This function sets the transmit time-out to the specified value.
A value of 0 disables the time-out, which stops time-out
notifications being sent to the Data Provider.
Note |
|---|
| 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. |
Note |
|---|
| The time-out does not check whether a master is sending valid
frames. The transmission of characters is sufficient to avoid the time-out. |
See Also