Logic Machine Forum
Buffer Parser node red in lua - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Buffer Parser node red in lua (/showthread.php?tid=4523)



Buffer Parser node red in lua - AndresMezaA - 23.01.2023

Hello, I want to do the same thing that a logic machine node called buffer parser does in lua, the link of the node is the following:

https://flows.nodered.org/node/node-red-contrib-buffer-parser

If someone has done something similar, please explain to me.


RE: Buffer Parser node red in lua - admin - 23.01.2023

What kind of data do you want to parse? Provide an example.


RE: Buffer Parser node red in lua - AndresMezaA - 23.01.2023

(23.01.2023, 12:55)admin Wrote: What kind of data do you want to parse? Provide an example.

I have these modbus registers from an acrel amc16c-fak48 reference meter.
The voltage values are made up of two registers, as shown in the registers image.

In node red I only place the patch buffer node with the parameters shown in the image and it shows me the real value


RE: Buffer Parser node red in lua - admin - 23.01.2023

LM can read Modbus data in floating point format directly, no extra conversion is needed. The recommended approach is to use Modbus mapper (profiles) for this.


RE: Buffer Parser node red in lua - AndresMezaA - 23.01.2023

(23.01.2023, 13:24)admin Wrote: LM can read Modbus data in floating point format directly, no extra conversion is needed. The recommended approach is to use Modbus mapper (profiles) for this.

Yes, but the problem is that i have to do the parser for two records and get the real value


RE: Buffer Parser node red in lua - admin - 23.01.2023

This is done internally. Make a profile or use Modbus via scripting. Similar topic: https://forum.logicmachine.net/showthread.php?tid=3565