Address and timeout parameters for requests
More...
|
| 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...
|
| |
|
| 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...
|
| |
Address and timeout parameters for requests
◆ RequestParam()
| rodbus.RequestParam.RequestParam |
( |
byte |
unitId, |
|
|
TimeSpan |
timeout |
|
) |
| |
|
inline |
Fully construct RequestParam specifying the value of each field
- Parameters
-
| unitId | Modbus address for the request |
| 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. |
◆ 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()
Modbus address for the request
◆ 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: