rodbus (.NET API) 1.6.0-RC1
Loading...
Searching...
No Matches
rodbus.RequestParam Class Reference

Address and timeout parameters for requests More...

Public Member Functions

RequestParam WithUnitId (byte value)
 Modbus address for the request More...
 
RequestParam WithTimeout (TimeSpan value)
 Response timeout for the request. It covers sending the request and receiving the response. A request that can't be sent in time fails with an I/O error, and the connection (or serial port) is closed and reopened, whatever the channel's limit on consecutive response timeouts. A response that doesn't arrive in time is a response timeout. On a serial port, the delay between frames is part of sending the request. A zero timeout is replaced by one millisecond; any other duration is used as given. More...
 
 RequestParam (byte unitId, TimeSpan timeout)
 Fully construct RequestParam specifying the value of each field More...
 

Public Attributes

byte UnitId
 Modbus address for the request More...
 
TimeSpan Timeout
 Response timeout for the request. It covers sending the request and receiving the response. A request that can't be sent in time fails with an I/O error, and the connection (or serial port) is closed and reopened, whatever the channel's limit on consecutive response timeouts. A response that doesn't arrive in time is a response timeout. On a serial port, the delay between frames is part of sending the request. A zero timeout is replaced by one millisecond; any other duration is used as given. More...
 

Detailed Description

Address and timeout parameters for requests

Constructor & Destructor Documentation

◆ RequestParam()

rodbus.RequestParam.RequestParam ( byte  unitId,
TimeSpan  timeout 
)
inline

Fully construct RequestParam specifying the value of each field

Parameters
unitIdModbus address for the request
timeoutResponse timeout for the request. It covers sending the request and receiving the response. A request that can't be sent in time fails with an I/O error, and the connection (or serial port) is closed and reopened, whatever the channel's limit on consecutive response timeouts. A response that doesn't arrive in time is a response timeout. On a serial port, the delay between frames is part of sending the request. A zero timeout is replaced by one millisecond; any other duration is used as given.

Member Function Documentation

◆ WithTimeout()

RequestParam rodbus.RequestParam.WithTimeout ( TimeSpan  value)
inline

Response timeout for the request. It covers sending the request and receiving the response. A request that can't be sent in time fails with an I/O error, and the connection (or serial port) is closed and reopened, whatever the channel's limit on consecutive response timeouts. A response that doesn't arrive in time is a response timeout. On a serial port, the delay between frames is part of sending the request. A zero timeout is replaced by one millisecond; any other duration is used as given.

◆ WithUnitId()

RequestParam rodbus.RequestParam.WithUnitId ( byte  value)
inline

Modbus address for the request

Member Data Documentation

◆ Timeout

TimeSpan rodbus.RequestParam.Timeout

Response timeout for the request. It covers sending the request and receiving the response. A request that can't be sent in time fails with an I/O error, and the connection (or serial port) is closed and reopened, whatever the channel's limit on consecutive response timeouts. A response that doesn't arrive in time is a response timeout. On a serial port, the delay between frames is part of sending the request. A zero timeout is replaced by one millisecond; any other duration is used as given.

◆ UnitId

byte rodbus.RequestParam.UnitId

Modbus address for the request


The documentation for this class was generated from the following file: