Waveshare · Remote I/O
Modbus RTU Analog Input 8CH / Modbus RTU Analog Input 8CH (B) (8-channel 12-bit analog input, RS485) Modbus register map
Serial device: in Modbus Connect, choose “Add to existing device” and pick the serial (RTU) device you created on your COM port.
Default configuration
- Protocol
- Modbus RTU over RS-485
- Unit ID
- 1
- Addressing
- 0-based
- Byte order
- Big endian
- Word order
- High word first
- Baud rate
- 9600
- Parity
- None
- Data bits
- 8
- Stop bits
- 1
To read this device over Modbus RTU in Modbus Connect:
- In Modbus Connect, add a serial (RTU) device on your COM port with the serial settings and unit ID shown above.
- Click Add to Modbus Connect (or open the downloaded JSON), choose “Add to existing device” and pick that serial device. Its registers, byte order and word order are added; the serial device keeps its own line settings.
The “Add device” tab creates a Modbus TCP device (IP address and port), so use it only when you reach this device through a Modbus RTU-to-TCP gateway set to the serial settings above.
Register map
| Address | Count | Name | Type | Unit | Scale | Access |
|---|---|---|---|---|---|---|
| 0 | 1 | Analog input channel 1 value Register 3x0000-3x0007, read with function 04 as an unsigned 16-bit value. The document defines no fixed unit for this word: the value follows the channel's data type at 4x1000 - the standard version's default current mode reports microamps, the '(B)' version's default voltage mode reports millivolts, and in code mode (type 4) the word is the raw 12-bit ADC code, where voltage = code * 3300 / 4095 / amplifier ratio and current = voltage / sampling resistance (249 ohm on the standard version, 499 ohm on the '(B)' version). | UInt16 | - | 1 | R |
| 1 | 1 | Analog input channel 2 value Register 3x0000-3x0007, read with function 04 as an unsigned 16-bit value. The document defines no fixed unit for this word: the value follows the channel's data type at 4x1001 - the standard version's default current mode reports microamps, the '(B)' version's default voltage mode reports millivolts, and in code mode (type 4) the word is the raw 12-bit ADC code, where voltage = code * 3300 / 4095 / amplifier ratio and current = voltage / sampling resistance (249 ohm on the standard version, 499 ohm on the '(B)' version). | UInt16 | - | 1 | R |
| 2 | 1 | Analog input channel 3 value Register 3x0000-3x0007, read with function 04 as an unsigned 16-bit value. The document defines no fixed unit for this word: the value follows the channel's data type at 4x1002 - the standard version's default current mode reports microamps, the '(B)' version's default voltage mode reports millivolts, and in code mode (type 4) the word is the raw 12-bit ADC code, where voltage = code * 3300 / 4095 / amplifier ratio and current = voltage / sampling resistance (249 ohm on the standard version, 499 ohm on the '(B)' version). | UInt16 | - | 1 | R |
| 3 | 1 | Analog input channel 4 value Register 3x0000-3x0007, read with function 04 as an unsigned 16-bit value. The document defines no fixed unit for this word: the value follows the channel's data type at 4x1003 - the standard version's default current mode reports microamps, the '(B)' version's default voltage mode reports millivolts, and in code mode (type 4) the word is the raw 12-bit ADC code, where voltage = code * 3300 / 4095 / amplifier ratio and current = voltage / sampling resistance (249 ohm on the standard version, 499 ohm on the '(B)' version). | UInt16 | - | 1 | R |
| 4 | 1 | Analog input channel 5 value Register 3x0000-3x0007, read with function 04 as an unsigned 16-bit value. The document defines no fixed unit for this word: the value follows the channel's data type at 4x1004 - the standard version's default current mode reports microamps, the '(B)' version's default voltage mode reports millivolts, and in code mode (type 4) the word is the raw 12-bit ADC code, where voltage = code * 3300 / 4095 / amplifier ratio and current = voltage / sampling resistance (249 ohm on the standard version, 499 ohm on the '(B)' version). | UInt16 | - | 1 | R |
| 5 | 1 | Analog input channel 6 value Register 3x0000-3x0007, read with function 04 as an unsigned 16-bit value. The document defines no fixed unit for this word: the value follows the channel's data type at 4x1005 - the standard version's default current mode reports microamps, the '(B)' version's default voltage mode reports millivolts, and in code mode (type 4) the word is the raw 12-bit ADC code, where voltage = code * 3300 / 4095 / amplifier ratio and current = voltage / sampling resistance (249 ohm on the standard version, 499 ohm on the '(B)' version). | UInt16 | - | 1 | R |
| 6 | 1 | Analog input channel 7 value Register 3x0000-3x0007, read with function 04 as an unsigned 16-bit value. The document defines no fixed unit for this word: the value follows the channel's data type at 4x1006 - the standard version's default current mode reports microamps, the '(B)' version's default voltage mode reports millivolts, and in code mode (type 4) the word is the raw 12-bit ADC code, where voltage = code * 3300 / 4095 / amplifier ratio and current = voltage / sampling resistance (249 ohm on the standard version, 499 ohm on the '(B)' version). | UInt16 | - | 1 | R |
| 7 | 1 | Analog input channel 8 value Register 3x0000-3x0007, read with function 04 as an unsigned 16-bit value. The document defines no fixed unit for this word: the value follows the channel's data type at 4x1007 - the standard version's default current mode reports microamps, the '(B)' version's default voltage mode reports millivolts, and in code mode (type 4) the word is the raw 12-bit ADC code, where voltage = code * 3300 / 4095 / amplifier ratio and current = voltage / sampling resistance (249 ohm on the standard version, 499 ohm on the '(B)' version). | UInt16 | - | 1 | R |
Read this device live with Modbus Connect, free for Windows, macOS and Linux
Related guides
Notes
Source: Waveshare wiki page https://www.waveshare.com/wiki/Modbus_RTU_Analog_Input_8CH ('Version Comparision', 'Hardware Description', the Modbus Poll test section and 'Development Protocol V2' with its register table, its 'Set Baudrate Command' code table and worked frames), plus the vendor wiki page 'Modbus Series BootLoader Description' (https://www.waveshare.com/wiki/Modbus_Series_BootLoader_Description), which states that restoring the default device parameters sets '9600 N 8 1' and device address 0x01 - that is the cited factory frame for this module. The register table prints 3x0000-3x0007 (input data), 4x1000-4x1007 (channel data type), 4x2000 (UART parameter), 4x4000 (device address) and 4x8000 (software version); the seed stores those numbers and declares zero_based. The input data registers are deliberately seeded without a unit or scale factor: the document only says they are read as unsigned hexadecimal and that the engineering value depends on the channel's selected range and on which of the two hardware versions is in use (the standard version defaults to 0-20 mA and reports microamps, the '(B)' version defaults to 0-10 V and reports millivolts, and range 4 returns the 4096-scale raw code with the module's own conversion formula). Each channel has an internal current/voltage jumper that must match the selected type, otherwise the readings are wrong; the two versions differ in sampling resistor (249 ohm / 499 ohm) and amplifier ratio (32.4/49.9 vs 10/32.4). Two versions of the module share this map; there is no data-length or stop-bit parameter and the frame is fixed at 8 data bits and 1 stop bit.