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
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
Have a question? Please contact us with details, and we will respond.
Look through existing questions to find popular answers.
Want to know more about Exchange and its possibilities?
Discuss challenges in energy and automation with 30,000+ experts and peers.
Find answers in 10,000+ support articles to help solve your product and business challenges.
Find peer based solutions to your questions. Provide answers for fellow community members!
Register today for FREE
Already have an account?Log in