![]() |
GaIA BIOS Library
|
This example runs a Modbus RTU master on serial port 0.
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.
Serial configuration is 9600 baud, 8 data bits, odd parity, 1 stop bit.