A Forum run by Enthusiasts of MidNite Solar

The Open Source software/hardware corner => Arduino => Topic started by: Manjunath on October 12, 2015, 08:56:27 AM

Poll
Question: How to read modbus data through RS485 at serial terminal using Arduino
Option 1: what are functions I need to use votes: 0
Option 2: Is there any mistakes are in my code votes: 0
Title: Read modbus data through RS485 at serial terminal by using Arduino
Post by: Manjunath on October 12, 2015, 08:56:27 AM
Hello,

I am suffering for last few days to read Mod-bus data of Energy meter -EN8400(model no:).
I trying your libraries,but there is a no luck for me to show data on terminal.

I want see the data on serial terminal that's it.

I can see the data ,if I connected MOXA 1130 to Energy Meter-EN8400 (USB to RS 485 converter) by Mod-bus tester software.

Please help me I attached the code also
Title: Re: Read modbus data through RS485 at serial terminal by using Arduino
Post by: dgd on October 12, 2015, 04:11:52 PM
I think you have posted this question in the wrong forum.
The author of the Arduino SimpleModbus libs is (was) available in the Arduino forums that can be accessed from the Arduino IDE.

dgd
Title: Re: Read modbus data through RS485 at serial terminal by using Arduino
Post by: Manjunath on October 13, 2015, 12:42:37 AM
Dear dgd,

I am new to work on arduino OK .why you think like that my question can answer by any forum, but I expect answer thats it.I know it is simple answer.
I want read modbus rs485 data from arduino and show it on serial terminal.
Do want to help me? you can please.
---- Manjunath
Title: Re: Read modbus data through RS485 at serial terminal by using Arduino
Post by: dgd on October 13, 2015, 01:50:21 AM
You are in the wrong forum, you have said you are new to Arduino and in the IDE Arduino forums there is a forum just for new users questions. There are many people there much more knowledgeable than me.

The Simplemodbusmaster library comes with example programs that show how to read data from an rs485 connected modbus slave device (which I assume your power meter is) and display it using the Arduino serial monitor.
If you need help with SImplemodbusmaster then ask in the IDE forums and the author of the lib may be able to help you

I cant really help you with this as I know nothing about the power meter.
If you have any questions with interfacing an Arduino to a Midnite Classic or KID controller then this is the forum to ask those questions.
good luck with your Arduino project  :)

dgd
Title: Re: Read modbus data through RS485 at serial terminal by using Arduino
Post by: Manjunath on October 13, 2015, 08:49:46 AM
Dgd sir,

By your inspiration I have completed the task successfully ask me how? the answer is I have follow your solution giving to "WillEert " see the site : http://midnitesolar.com/Forum/index.php?topic=2328.30
I have checked so many simplemodbus libraries but my bad luck and even I tried your instructions and solved my problem.
I have not continuously getting the data when press reset button only I got the data what is reason can you guess?
---- Manjunath
Title: Re: Read modbus data through RS485 at serial terminal by using Arduino
Post by: paul alting on October 15, 2015, 09:10:54 AM
Manjunath, see my reply at the Arduino forum http://forum.arduino.cc/index.php?topic=176142.msg2437014#msg2437014 (http://forum.arduino.cc/index.php?topic=176142.msg2437014#msg2437014)
______
Paul