Modbus Analog Input Read From Arduino Uno Board, Arduino As Slave.
by rupjit81 in Circuits > Arduino
454 Views, 0 Favorites, 0 Comments
Modbus Analog Input Read From Arduino Uno Board, Arduino As Slave.
In this design I'm going to use Modbus protocol to communicate with Arduino Uno and read Arduino analog channels A0 , A1.
My computer is a Modbus master in this case. The software used is Modbus Poll as Modbus master.
The Modbus request is processed by Arduino Uno and a response is generated with LRC and returned to the master.
Supplies
- Arduino Uno 1 pc
- 10K potential 2 pc
- Vero board 1 pc
- USB cable 1 pc
- Connection wires 1 pc
- PC software Download (modbustools.com) Other Modbus master tools may be used.
The Modbus poll software is Modbus master. This software issues Modbus frame with slave address, type of data request etc. Refer the Modbus ASCII frame for detailed data.
The ASCII frame is received by the Arduino and it processes the data. The processed data is analysed and analog channel data is dumped in the response frame. The complete frame LRC is calculated and sent so that the master can verify the data is good or bad.
The software for this project is attached.
This is a tested project.