Sends a diagnostics request to the Modbus device (FC08).
Diagnostic sub-function code and data words.
An Effect resolving to a DiagnosticsResponse containing the echo sub-function and data.
Reads coils (digital outputs) from the Modbus device (FC01).
Starting address, quantity, and optional AbortSignal.
An Effect resolving to an array of boolean coil states.
Reads device identification from the Modbus device (FC43 / MEI type 14).
Read device ID code, starting object ID, and optional AbortSignal.
An Effect resolving to a DeviceIdentificationResponse with conformity level and objects.
Reads discrete inputs (digital inputs) from the Modbus device (FC02).
Starting address, quantity, and optional AbortSignal.
An Effect resolving to an array of boolean input states.
Reads the Modbus exception status (FC07).
Returns the contents of eight exception-status coils as a single byte.
An Effect resolving to the exception status byte value.
Reads the FIFO queue from the Modbus device (FC24).
FIFO pointer address and optional AbortSignal.
An Effect resolving to a FifoQueueResponse containing the queue values.
Reads file records from the Modbus device (FC20).
Array of file/sub-record read requests and optional AbortSignal.
An Effect resolving to an array of record data arrays.
Reads holding registers from the Modbus device (FC03).
Register address, quantity, and optional AbortSignal.
An Effect resolving to an array of 16-bit register values.
Reads input registers from the Modbus device (FC04).
Register address, quantity, and optional AbortSignal.
An Effect resolving to an array of 16-bit input register values.
Atomic read-write of multiple registers (FC23).
Performs a write operation and a read operation atomically within a single Modbus transaction.
Separate read and write addresses/quantities/values.
An Effect resolving to the read register values.
Writes file records to the Modbus device (FC21).
Array of file/sub-record write requests and optional AbortSignal.
An Effect that completes when the write is acknowledged.
Writes multiple consecutive coils (FC15).
Starting address, array of boolean values, and optional AbortSignal.
An Effect that completes when the write is acknowledged.
Writes multiple consecutive holding registers (FC16).
Starting address, array of values, and optional AbortSignal.
An Effect that completes when the write is acknowledged.
Writes a single coil (digital output) (FC05).
Coil address, boolean value, and optional AbortSignal.
An Effect that completes when the write is acknowledged.
Writes a single holding register (FC06).
Register address, value, and optional AbortSignal.
An Effect that completes when the write is acknowledged.
The Modbus function-code surface, before any resilience is layered on.
Each method delegates to the equivalent method on the underlying native or WASM client, converting the Promise-based API into an Effect.Effect with typed ModbusError failures.
Thrown errors are classified using toModbusError, mapping
modbus-rserror codes (timeout, transport, exception, etc.) into the correspondingData.TaggedErrorvariant for use withEffect.catchTags.See
modbus-rsserial client API.modbus-rsTCP client API.