Welcome to the new Schneider Electric Community

It's your place to connect with experts and peers, get continuous support, and share knowledge.

  • Explore the new navigation for even easier access to your community.
  • Bookmark and use our new, easy-to-remember address (community.se.com).
  • Get ready for more content and an improved experience.

Contact SchneiderCommunity.Support@se.com if you have any questions.

Close
Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
Send Invite Cancel
84245members
353345posts

Reading data from energy meter using modbus protocol

Industry Automation and Control Forum

This forum is addressing industrial automation design & engineering, operations, asset performance, cyber security and digital transformation for Plants & Machines.

Priya
Cadet
0 Likes
3
4789

Reading data from energy meter using modbus protocol

Hello All,

 

We have installed EM6400NG meter. We are trying to read holding register data values from the same using Arduino Mega and RS485 to TTL converter but no success.

 

RS485 to TTL converter board link:

 

https://www.banggood.in/2Pcs-5V-MAX485-TTL-To-RS485-Converter-Module-Board-For-Arduino-p-948302.html...

 

Please help me out in this regard

3 Replies 3
BevanWeiss
Spock
Spock

Re: Reading data from energy meter using modbus protocol

I'd recommend that you start with something you have control over (in both directions).

 

So:

1) Test using an RS232 to RS485 converter, and ModScan or something similar on your PC.  Ensure that you can read the appropriate registers from the Power Meter using the baud rate, parity etc that you expect.

2) Testing using the same RS232 to RS485 converter and ModSim or something similar on your PC.  Ensure that you can read the appropriate registers from your Computer (into the Arduino) using the baud rate, parity etc that you have configured on your Computer to match what the Power Meter was tested in 1) using.

 

Then it should be trivial... you know how to read the values from the Power Meter, and you know how to read values using the Arduino board.  Therefore you know how to read the values from the Power Meter with the Arduino board.

 

I assume you already understand that Modbus Protocol <> RS485... if you're confused at what I'm suggesting here, then you probably need to read up more on what RS485 actually is, and why that is not the same as ModbusRTU.


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..
BevanWeiss
Spock
Spock
0 Likes
0
4594

Re: Reading data from energy meter using modbus protocol

@Priya if my answer provided the solution, please mark it as such.


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..
SteveAndjic
Ensign Ensign
Ensign
0 Likes
0
4346

Re: Reading data from energy meter using modbus protocol

Hello

 

If not solved, Also take into fact that the holding registers in the power meter will be Float32, so you will have a least significant word (LSW) and most significant word (MSW) to read. The Arduino will need to be the Master also. 

 

You will need to convert the 2 x Uint16 data into float32 value

 

// untested example

union
{
  uint16_t u[2];
  float f;
} meterdata;

meterdata.u[0] = a;
meterdata.u[1] = b;
Serial.println( meterdata.f);