GaIA BIOS Library
Loading...
Searching...
No Matches
Modbus RTU Master

Overview

This example runs a Modbus RTU master on serial port 0.

Behavior

The device sends requests to slave 1. Master reads input registers 0-1 from slave 1 and writes DIP switch values to the outputs of slave 1. See modbus_rtu_slave for slave register mapping.

Setup

Serial configuration is 9600 baud, 8 data bits, odd parity, 1 stop bit.