Our Brands

Welcome to the Schneider Electric Website

Welcome to our website.
		
How can we help you today?
How to convert floating point registers to an integer value in the Enercept Meter and Energy Meter?

Product Line:
Enercept and Energy Meter

Resolution:
Follow the steps below in the example to convert register values to an integer.

In this example register 287 has a value of 17395 and register 288 has a value of -22528.  Register 287 is the upper 16 bit number and 288 is the lower 16 bit number.

1) Convert 17395 and 22528 to binary numbers (add a 0 to the front of the number to make it 16 bits) and combine them (drop the negative sign from register 288). This will give you the following binary number:

0100001111110011 0 101100000000000

2) Drop the 0 to the far left giving you:

1000011111100110101100000000000

3) Take the 8 bits on the far left and convert them to a decimal number:

10000111 | 11100110101100000000000

10000111 = 135

4) Subtract 127 from the value that you got in step 3:

135 - 127 = 8

5) Take the part of the binary number that was not used in step 3

11100110101100000000000

6) Count over from the left the amount calculated in step 4. Drop off everything to the right of this.

11100110

7) Add a 1 to the front of that number.

111100110

8) Convert that number to decimal and this is the register value.

486

Schneider Electric Ireland

How to convert floating point registers to an integer value in the Enercept Meter and Energy Meter?

Product Line:  
Enercept and Energy Meter

Resolution:  
Follow the steps below in the example to convert register values to an integer.  

In this example register 287 has a value of 17395 and register 288 has a value of -22528.  Register 287 is the upper 16 bit number and 288 is the lower 16 bit number.  

1) Convert 17395 and 22528 to binary numbers (add a 0 to the front of the number to make it 16 bits) and combine them (drop the negative sign from register 288). This will give you the following binary number:

0100001111110011 0 101100000000000

2) Drop the 0 to the far left giving you: 

1000011111100110101100000000000

3) Take the 8 bits on the far left and convert them to a decimal number:

10000111 | 11100110101100000000000

10000111 = 135

4) Subtract 127 from the value that you got in step 3:

135 - 127 = 8

5) Take the part of the binary number that was not used in step 3

11100110101100000000000

6) Count over from the left the amount calculated in step 4. Drop off everything to the right of this.

11100110

7) Add a 1 to the front of that number.

111100110

8) Convert that number to decimal and this is the register value.

486

Schneider Electric Ireland

Explore more
Range:
Explore more
Range:
Users group

Discuss this topic with experts

Visit our community and get advice from experts and peers on this topic and more
Users group

Discuss this topic with experts

Visit our community and get advice from experts and peers on this topic and more
Explore more
Range:
Explore more
Range:

Need help?

  • Where to buy?

    Easily find the nearest Schneider Electric distributor in your location.

  • Search FAQs

    Search topic-related frequently asked questions to find answers you need.

  • Contact Sales

    Start your sales enquiry online and an expert will connect with you.

  • All Support & Contact

    Find answers now. Search for a solution on your own, or connect with one of our experts.

I'd like to receive news and commercial info from Schneider Electric and its affiliates via electronic communication means such as email, and I agree to the collection of information on the opening and clicks on these emails (using invisible pixels in the images), to measure performance of our communications and improve them. For more details, please read our Privacy Policy.

  • Products Documentation
  • Software Downloads
  • Product Selector
  • Product Substitution and Replacement
  • Help and Contact Centre
  • Find our Offices
  • Where to buy
  • Careers
  • Company Profile
  • Report a misconduct
  • Accessibility
  • Newsroom
  • Investors
  • EcoStruxure
  • Job Search
  • Blog
  • Privacy Policy
  • Cookie Notice
  • Terms of use
  • Change your cookie settings
Your browser is out of date and has known security issues.

It also may not display all features of this website or other websites.

Please upgrade your browser to access all of the features of this website.

Latest version for Google Chrome, Mozilla Firefox or Microsoft Edgeis recommended for optimal functionality.