← BFi53ER0 / BFi53ER0S EdgeRouter EdgeRouter · RS-485 · Modbus RTU

Tested Modbus RTU devices.

The EdgeRouter’s RS-485 port works as a Modbus RTU master (gateway). It also works as a device on another master’s bus. The devices below were connected to a BFi53ER0 on the bench, polled, written and used in the gateway’s local rules. Firmware: BFi53ER0-BF 0.57.84–0.57.127; tests from October to November 2026.

Relay output Analog output 4–20 mA Temperature & humidity sensor Tested on BFi53ER0
Devices

Three kinds of accessories, tested.

1-channel Modbus RTU relay board with a SONGLE relay and screw terminals
Relay output

1-channel Modbus RTU relay board

LCTech type, marked “Modbus_Relay X1 V2.1”.

On the bus: coils — switched on, off, toggled or timed by switches, sensors and rules.

Waveshare Modbus RTU Analog Output 8CH module, 0 to 20 mA
Photo: Waveshare (waveshare.com)
Analog output

Waveshare Modbus RTU Analog Output 8CH (0–20 mA)

On the bus: holding registers — 4–20 mA / 0–20 mA levels, stepped or followed in proportion.

Product page ↗ · Wiki and manual ↗

XY-MD02 RS-485 temperature and humidity sensor
Sensor

XY-MD02 temperature and humidity sensor

SHT40 version.

On the bus: input registers — temperature and humidity as rule sources.

Generic model sold by several vendors; no maker page.

Parameters as tested

Line settings, addresses and registers.

Relay board (1-ch)Analog Output 8CHXY-MD02
Line settings tested9600 bit/s, 8N19600 bit/s, 8N19600 bit/s, 8N1
Factory address25511
Changing the addressBroadcast, function 16 at register 0x0000 (a preset on the EdgeRouter’s settings page)Broadcast, function 06 at 0x4000 (a preset); a single-device write is ignoredFunction 06 at holding 0x0101 (a preset); takes effect after the sensor’s power is cycled
Function codes01 and 02 (count 8 only), 05, 15 (all on / all off only), 0303, 06, 1603, 04, 06
RegistersCoil 0 = relay; register 0x03E8 = line speed (3 = 9600)Holding 0–7 = channel outputs in µA (0–20 000); 0x2000 line settings; 0x4000 addressInput 0x0001 = temperature, 0.1 °C, signed; 0x0002 = humidity, 0.1 %RH
HardwareSONGLE SRD-05VDC-SL-C relay, 10 A 250 VAC, NO / COM / NC; one opto-isolated input8 × 0–20 mA active outputs, 12-bit; supply 7–36 V DC; hardware V3, firmware V2.00SHT40 sensing element; supply 5–30 V DC
Powered fromEdgeRouter 24 V output (terminal 17 / 18)EdgeRouter 24 V outputEdgeRouter 24 V output
What was verified

Polled, written and used in rules.

Relay board

  • Switched by battery-free switches, a magnet contact, sensor thresholds and a polled RS-485 temperature: on, off, toggle, on for a time.
  • Read back every 10 s; after its power was cut, its output was put back within about 3 s of answering again.
  • Reached at address 255 through a route.

Analog Output 8CH

  • Stepped up and down by a switch, set to on / off levels, and followed in proportion to illuminance and to a polled humidity.
  • Per-output 4–20 mA limits held a master’s writes (10 of 10).
  • The module forgets its outputs when it loses power; the EdgeRouter put the value back within 0.5 s of the module answering, and also after the whole bench’s 24 V was cut.

XY-MD02

  • Polled every 2 s as a rule source.
  • Temperature thresholds switched the relay both ways; humidity followed onto a 4–20 mA output.
  • When unplugged, the “not heard” event fired after 1 minute; when plugged back, the rule acted again within 5 s.
  • Its start-up readings are ignored, so outputs do not jump.

RTU to RTU without a PLC

  • The sensor’s temperature worked the relay board and its humidity drove an analog output, with no PLC or master in the path.
EdgeRouter RS-485 parameters

The gateway side of the bus.

InterfaceRS-485 half duplex, two wire (A/B) with signal ground; 120 Ω termination fitted; 1/8 unit-load receiver
RolesModbus RTU master (gateway for Modbus TCP masters), or device on another master’s bus
Line speed1200–921 600 bit/s, RTU or ASCII. Third-party devices tested at 9600 8N1 only
Addresses1–255 through routes (devices at factory address 255 can be reached)
Device scanFinds devices by function 03, and by function 01 × 8 for coil-only boards
Polling16 entries, up to 125 registers or bits each; a cached read answered in about 2 ms
Extra gap on the bus20 ms by default. With 0 ms, some devices missed a request sent right after another device’s answer
No answerException 0x0B to the master after the timeout (1000 ms, 1 retry by default)
Power-up restoreRelay modules and analog outputs put back to their set or last states after a power cut (up to 32 each)

Models: tested on the BFi53ER0. The BFi53ER0S has an RS-485 interface; its tests with these devices are to come.

Notice: product names and trademarks belong to their owners. FLSEMI tested these devices on its own bench. This list does not imply endorsement by, or affiliation with, their makers. Other versions of the same devices may behave differently; check the maker’s manual. Devices not listed may work but have not been tested.

Next step

Have a different device on the bus?

Send us its model and register map; we tell you how it fits and what we would test.