Schneider Smartlink Modbus TCP


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.

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


Use the readBigInt64BE 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.

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