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.

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

M340 with Energy meter Modbus RS485 communication

Modicon PAC Forum

A forum for topics related to the scope of Modicon PAC offers and ecosystem along the whole lifecycle: Modicon M580 and 340, EcoStruxure Control Expert, EcoStruxure Process Expert (Unity Pro) and more.


M340 with Energy meter Modbus RS485 communication

We are trying to capture the energy meter data using a M340 PLC,


we are able to get the decimal data from the energy meter as mentioned in the attachment.


Can you help us to figure out which function block is required to convert the decimal values to the floating point value in M340 PLC

1 Reply 1
Lieutenant Lieutenant

You need to useRe: M340 with Energy meter Modbus RS485 communication

You need to use the WORD_AS_REAL type conversion function block.

Check the Help file for use and examples.

Confirm that the Real output is what you are seeing on the meter. If totally different/ weird value then reverse the order of the Word values applied to the inputs.


As an example, a meter value of 415.2 would have register values of 16#43CF (17359) and 16#999A (39322)

If the registers were reversed your conversion would give -1.59506144646e-23


Tags (1)