# Schneider Smartlink Modbus TCP

**URL:** <https://discourse.nodered.org/t/schneider-smartlink-modbus-tcp/25240>\
**Category:** General\
**Created:** [21 April 2020 13:58 UTC](https://discourse.nodered.org/t/schneider-smartlink-modbus-tcp/25240 "2020-04-21T13:58:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Job-Hoogeboom](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/job-hoogeboom/32/19629_2.png) [@Job-Hoogeboom](https://discourse.nodered.org/u/Job-Hoogeboom)\
**Post date:** [21 April 2020 13:58 UTC](https://discourse.nodered.org/t/schneider-smartlink-modbus-tcp/25240/1 "2020-04-21T13:58:47Z")

</div>

Hi!

I'm using the Modbus-Getter node in node-red to retrieve data from a Schneider electric Acti9 Smartlink SI D power meter gateway.

The Voltage, Amperage, and Wattage are a Float32 file.

From the Modbus-Getter node it goes to a function node with this string in it;

const buf = Buffer.from(msg.payload.buffer);  
const value = buf.readFloatBE();  
msg.payload = {"Voltage": value};

return msg;

I would like to read the Kilowatthour too, but that is an INT64 file.

 ![nodered](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/e/4e0f3c213e76ea33cdc570d0e70e3001d0b37702.jpeg)

I hope someone can help me with this, i'm still learning in node-red.

Thanks!

---

<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:** [21 April 2020 14:23 UTC](https://discourse.nodered.org/t/schneider-smartlink-modbus-tcp/25240/2 "2020-04-21T14:23:59Z")

</div>

Use the [readBigInt64BE](https://nodejs.org/api/buffer.html#buffer_buf_readbigint64be_offset) function

Ps, strictly speaking, this is a nodejs/js thing not a node-red thing. I.e. don't limit your searches and learning to node-red only. E.g. the buffer object is a nodejs thing - so realising that, you can go look at the nodejs documentation.

---

<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:** [20 June 2020 14:24 UTC](https://discourse.nodered.org/t/schneider-smartlink-modbus-tcp/25240/3 "2020-06-20T14:24:07Z")

</div>

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