← Back to projects

Projects

Modbus Controller

I designed the hardware and firmware for a DIN-rail module that bridges Modbus TCP to Modbus RTU, reads eight digital inputs and controls eight outputs.

Modbus Controller connects RS-485 devices to an Ethernet network. It forwards Modbus TCP requests from Ethernet as Modbus RTU and returns the responses to the control system. It also has eight digital inputs, whose state it reports via Modbus at its own address, and eight switched outputs that can likewise be controlled via Modbus.

Modbus Controller

Hardware

  • AVR microcontroller board for DIN-rail mounting (4M), 24 V DC supply, power consumption under 2 W.
  • 10/100 Ethernet, RS-485 with integrated termination resistor.
  • 8 digital inputs for volt-free contacts and 8 transistor outputs with overload protection; an LED indicates the state of each signal.
  • Temperature sensor and expansion connector for an additional sensor or indicator.

Firmware

  • Forwards Modbus TCP requests to RS-485 devices and returns their responses.
  • Allows remote configuration of the RS-485 line speed, parity and stop bits, as well as the device’s own Modbus address, with settings saved to EEPROM.
  • Reads input states, controls outputs and measures the internal temperature.
  • Reports errors via a register value and LED blinking, and restores factory defaults when the button is held at power-on.