# Stromzählerwert "INT32(3+3)" umrechnen

**URL:** <https://discourse.nodered.org/t/stromzahlerwert-int32-3-3-umrechnen/89696>\
**Category:** General\
**Created:** [23 July 2024 12:09 UTC](https://discourse.nodered.org/t/stromzahlerwert-int32-3-3-umrechnen/89696 "2024-07-23T12:09:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TWW](https://avatars.discourse-cdn.com/v4/letter/t/3d9bf3/32.png) [@TWW](https://discourse.nodered.org/u/TWW)\
**Post date:** [23 July 2024 12:09 UTC](https://discourse.nodered.org/t/stromzahlerwert-int32-3-3-umrechnen/89696/1 "2024-07-23T12:09:01Z")

</div>

Hallo Zusammen.  
Ich habe einen Modbus Stromzähler von B+G Tech DS100-00B. Die Spannungswerte kommen in Node-Red als "INT32(3+3)" rein. Wie wandle ich diese um damit ein sinnvoller Wert erscheint? Ich kein begnadeter Mathematiker.  
Die Abfolge sieht so aus:  
Rohdaten  
**01 04 04 00 03 73 09 EE B2**

**01** Device Adress  
**04** Functioncode  
**04** Anzahl der Antwortbytes

Register 4-Bytes HEX   
**00 03 73 09**  
DEC  
Umgerechnet 226,057 (V)  
**EE** Prüfsumme Hi  
**B2** Prüfsumme Lo  
Bei vielen YT-Clips kommen die Werte aus anderen Zählern direkt heraus. Ich erwische aber einen Zähler der eine Weiterverarbeitung braucht. 🤔  
Irgendwer hat das sicher schon mal gemacht und kann mir den Weg weisen...  
Gruß

---

<div class="post-metadata">

**Author:** ![TWW](https://avatars.discourse-cdn.com/v4/letter/t/3d9bf3/32.png) [@TWW](https://discourse.nodered.org/u/TWW)\
**Post date:** [29 July 2024 14:27 UTC](https://discourse.nodered.org/t/stromzahlerwert-int32-3-3-umrechnen/89696/2 "2024-07-29T14:27:14Z")

</div>

Gelöst: INT32 --\> "(3+3)" bedeutet scheinbar nur 000.000  
Also drei stellen vor und drei Stellen hinter dem Punkt (Komma)

---

<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:** [29 July 2024 15:24 UTC](https://discourse.nodered.org/t/stromzahlerwert-int32-3-3-umrechnen/89696/3 "2024-07-29T15:24:37Z")

</div>

> [@TWW](#):
>
> Register 4-Bytes HEX  
> **00 03 73 09**  
> DEC  
> Umgerechnet 226,057 (V)

The [buffer-parser](https://flows.nodered.org/node/node-red-contrib-buffer-parser) node can help you do this (and much more) in a no-code way

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/5/55071ee7e5ca2a54cba8794479e42066fd814852.png)

Demo flow

```auto
[{"id":"6ff39d6e52909eed","type":"inject","z":"f504a58fa092fd5d","name":"Data [00,03,73,09]","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[0,3,\"0x73\",9]","payloadType":"bin","x":890,"y":980,"wires":[["0d86f22f461b1632"]]},{"id":"0d86f22f461b1632","type":"buffer-parser","z":"f504a58fa092fd5d","name":"","data":"payload","dataType":"msg","specification":"spec","specificationType":"ui","items":[{"type":"uint32be","name":"voltage","offset":0,"length":1,"offsetbit":0,"scale":"/1000","mask":""}],"swap1":"","swap2":"","swap3":"","swap1Type":"swap","swap2Type":"swap","swap3Type":"swap","msgProperty":"payload","msgPropertyType":"str","resultType":"keyvalue","resultTypeType":"return","multipleResult":false,"fanOutMultipleResult":false,"setTopic":true,"outputs":1,"x":880,"y":1040,"wires":[["e23a086b03a3ed1c"]]},{"id":"e23a086b03a3ed1c","type":"debug","z":"f504a58fa092fd5d","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":910,"y":1100,"wires":[]}]

```

---

<div class="post-metadata">

**Author:** ![TWW](https://avatars.discourse-cdn.com/v4/letter/t/3d9bf3/32.png) [@TWW](https://discourse.nodered.org/u/TWW)\
**Post date:** [29 July 2024 21:54 UTC](https://discourse.nodered.org/t/stromzahlerwert-int32-3-3-umrechnen/89696/4 "2024-07-29T21:54:07Z")

</div>

The problem is in front of the monitor. I only have to read the register of the electricity meter out of the user manual and work with the values .Then it works. I thought into the wrong and too complicated way.

 ![Screenshot-NR-Forum](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/5/b55d2bd2e1fbe0836e4c9fa68d5c28dab0fe6310.jpeg)

[Node-red-forum.json](https://discourse.nodered.org/uploads/short-url/gIIF5bcovGzt6Vxxv9GM2gd3ICA.json) (5.7 KB)

---

<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:** [27 October 2024 21:54 UTC](https://discourse.nodered.org/t/stromzahlerwert-int32-3-3-umrechnen/89696/5 "2024-10-27T21:54:31Z")

</div>

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