Skip to main content

Modbus / RS485 Specifications

Aegir Ultrasonic Meters support communication over Modbus/RS485 protocol. Modbus RTU is typically used for serial communication (RS-485) interface for seamless integration with external devices.

1. Modbus Registry Details

RegisterData TypeDescription
40001U16Flow Rate as LPM × 10
40002U16Unique ID of this device
40003U16Cumulative flow reading, in Litres
40004U32Flow reading since last restart, in Litres
40006U32Manufacturing Date (days since 01-01-2020)
40008U32Sequentially increasing counter that resets after 9999 (useful for detecting out-of-sequence reads)
40010bit-wise16-Trickle, 15-Zero Flow, 14-High Flow (>60LPM), 13-Empty/Error, 12–1 Unused

Communication Details

  • Baud Rate: 9600
  • RS485 [Modbus] ID: 1
  • Bits: 8
  • Parity: N
  • Stop Bits: 1

2. RS-485 Electrical Specifications

FeatureDescription
StandardEIA/TIA-485-A
Signaling TypeDifferential (balanced)
Wires4 wires (A, B, VCC and GND)
Voltage LevelsLogic ‘1’ and ‘0’ represented by the voltage difference between A and B (typically ±1.5V to ±5V)
Maximum Nodes32 (can extend up to 128 or more using repeaters)
Maximum Cable LengthUp to 1200 meters (4000 ft) at 100 kbps
Baud RateTypically 9600, 19200, 38400, 57600, or 115200 bps
TopologyBus (daisy chain); no star connection
Termination120-ohm resistors at both ends of the bus
Common Mode Range−7 V to +12 V
Connector TypeScrew terminal or DB9 (optional)

3. Modbus Protocol Specifications

PropertyDescription
Protocol TypeMaster–Slave (or Client–Server)
Physical LayerRS-485 (two-wire differential)
Data FramingModbus RTU or Modbus ASCII
Address RangeSlave addresses: 1–247 (0 is broadcast)
Data Bits8 bits
ParityNone / Even / Odd
Stop Bits1 or 2
Error CheckingCRC-16 (for RTU) or LRC (for ASCII)
Function CodesDefine operations like read/write (e.g., 01, 03, 04, 05, 06, 15, 16)
Registers16-bit data blocks (Holding Registers, Input Registers, Coils, etc.)

4. Modbus RTU Frame Structure

A Modbus RTU message is transmitted as binary bytes:

FieldSize (bytes)Description
Slave Address1Identifies the slave device
Function Code1Defines the type of action
DataNDepends on function
CRC-162Error check

Silent intervals:

  • 3.5 character times = Start of frame
  • 3.5 character times = End of frame

5. Wiring Example

2-wire RS-485 bus (half-duplex): Master (A,B) → Device1 (A,B) → Device2 (A,B) → … → Termination (120Ω)


6. Summary

CategoryRS-485Modbus
TypeElectrical standardCommunication protocol
SignalingDifferentialBinary (RTU) or ASCII
RoleDefines how bits travelDefines how data is formatted
LayersPhysicalApplication
Used TogetherFor robust long-distance serial communication