# How to convert a US\_08 to decimal

**URL:** https://discourse.nodered.org/t/how-to-convert-a-us-08-to-decimal/98145
**Category:** General
**Tags:** node-red-dashboard
**Created:** [15 July 2025 10:29 UTC](https://discourse.nodered.org/t/how-to-convert-a-us-08-to-decimal/98145 "2025-07-15T10:29:58Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Desmond-Zeh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/desmond-zeh/32/92216_2.png) [@Desmond-Zeh](https://discourse.nodered.org/u/Desmond-Zeh)
#### Post date: [15 July 2025 10:29 UTC](https://discourse.nodered.org/t/how-to-convert-a-us-08-to-decimal/98145/1 "2025-07-15T10:29:58Z")

</div>

Hello, I’m reading data from a Genset controller. The read data are in US\_08 formate. For example à nominal frequency of 50Hz when read returns 6. This value needs to be converted and divided by 256 to obtain the real value. Some values are store in two registers and need to be converted and divided by 256 to get the real value.  
I need help please

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [15 July 2025 11:08 UTC](https://discourse.nodered.org/t/how-to-convert-a-us-08-to-decimal/98145/2 "2025-07-15T11:08:47Z")

</div>

Can you point to the docs that define that format? Google does not come up with anything that looks relevant.

---

<div class="post-metadata">

### Author: ![Desmond-Zeh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/desmond-zeh/32/92216_2.png) [@Desmond-Zeh](https://discourse.nodered.org/u/Desmond-Zeh)
#### Post date: [15 July 2025 11:21 UTC](https://discourse.nodered.org/t/how-to-convert-a-us-08-to-decimal/98145/3 "2025-07-15T11:21:22Z")

</div>

Here is a screenshot of one of the address list

 ![IMG_2007](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/9/d9fc2cacc91f7d5cf45406df78e20d8f0545569a.jpeg)

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [15 July 2025 11:21 UTC](https://discourse.nodered.org/t/how-to-convert-a-us-08-to-decimal/98145/4 "2025-07-15T11:21:55Z")

</div>

> [@Desmond-Zeh](#):
>
> Genset controller

> [@Desmond-Zeh](#):
>
> Some values are store in two registers

From these cues, I am guessing this is ModBus data.

From that I found this manual: [https://www.meccalte.com/downloads/Dance\_User\_Manual\_\_\_EAAM044401EN\_MA.pdf](https://www.meccalte.com/downloads/Dance_User_Manual___EAAM044401EN_MA.pdf)

There is no description of `US_08` format but based on it being in a single register I assume US means `Unsigned Single` and 08 means 8???

as for how to convert - you need to be using `node-red-contrib-buffer-parser`

---

<div class="post-metadata">

### Author: ![kitori](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kitori](https://discourse.nodered.org/u/kitori)
#### Post date: [15 July 2025 11:44 UTC](https://discourse.nodered.org/t/how-to-convert-a-us-08-to-decimal/98145/5 "2025-07-15T11:44:17Z")

</div>

Can you send a data dump? Maybe we can figure it out 🙂

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [15 July 2025 12:26 UTC](https://discourse.nodered.org/t/how-to-convert-a-us-08-to-decimal/98145/6 "2025-07-15T12:26:13Z")

</div>

OK, so US\_08 means unsigned 8 bit. That does not explain how 6 indicates a frequency of 50Hz.

---

<div class="post-metadata">

### Author: ![Desmond-Zeh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/desmond-zeh/32/92216_2.png) [@Desmond-Zeh](https://discourse.nodered.org/u/Desmond-Zeh)
#### Post date: [16 July 2025 07:35 UTC](https://discourse.nodered.org/t/how-to-convert-a-us-08-to-decimal/98145/7 "2025-07-16T07:35:42Z")

</div>

Actually I had difficulties with functions (03 ,04) corresponding to each register. Reading input registers requires function-04.  
It’s all good now.  
Thanks for the efforts.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [14 October 2025 07:36 UTC](https://discourse.nodered.org/t/how-to-convert-a-us-08-to-decimal/98145/8 "2025-10-14T07:36:38Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
