LabWired The easy way to build hardware
UART device

Modbus RTU sensor

The Modbus RTU sensor is a UART device in the LabWired part catalog. Its catalog type is modbus-rtu-sensor. It connects to the MCU over UART. The catalog gives a supply range of 5–24 V. It has 4 pins. A registered peripheral model runs in the engine: the firmware talks to it over the real bus and gets device-accurate responses.

From the catalog: Modbus RTU slave (function codes 03/04/06/16, exceptions 01-03, CRC-16, 3.5-character framing) as a uart_device data pack. No parity, no function-16 broadcast.

Key facts

CategoryUART devices
Catalog typemodbus-rtu-sensor
InterfaceUART
Supply range5–24 V
Pins4

What LabWired simulates

What is simulated

Simulated device model

How it was validated

Built from the datasheet. Implemented from the part’s register documentation and exercised by automated tests. Nothing physical was ever placed next to it.

Modbus RTU sensor pinout

PinElectrical typeFunction
VCC Power input Supply
GND Power input Supply
A Passive —
B Passive —

How to simulate the Modbus RTU sensor in LabWired

  1. Open the Playground at app.labwired.com and place an MCU board.
  2. Add the Modbus RTU sensor (catalog type modbus-rtu-sensor).
  3. Connect VCC and GND to the supply and ground of the board. Use a supply inside the catalog range of 5–24 V.
  4. Connect A and B as your circuit needs.
  5. Run the firmware. It sends and receives bytes on the simulated UART as on hardware.

Related UART devices

All UART devices · All parts

No manufacturer datasheet is indexed for this part yet, so none is linked here.