This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Buffer Parser node red in lua
#1
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-...fer-parser

If someone has done something similar, please explain to me.
Reply
#2
What kind of data do you want to parse? Provide an example.
Reply
#3
(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

Attached Files Thumbnail(s)
       
Reply
#4
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.
Reply
#5
(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
Reply
#6
This is done internally. Make a profile or use Modbus via scripting. Similar topic: https://forum.logicmachine.net/showthread.php?tid=3565
Reply


Forum Jump: