I was in a rush and ended up not posting the stream. I'm still in my early days with node-red.
I'm looking for other alternatives but without success, follow the flow I'm using, thank you.
[
{
"id": "6ac00b0df044367e",
"type": "inject",
"z": "e3e2bab63104a927",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 340,
"y": 680,
"wires": [
[
"df16c70440883ae1"
]
]
},
{
"id": "df16c70440883ae1",
"type": "FINS Read",
"z": "e3e2bab63104a927",
"name": "560",
"connection": "946c4e79a6eb224e",
"addressType": "str",
"address": "D2440",
"countType": "num",
"count": "2",
"msgPropertyType": "msg",
"msgProperty": "payload",
"outputFormatType": "signedkv",
"outputFormat": "",
"x": 470,
"y": 720,
"wires": [
[
"5d04f1820839acb4"
]
]
},
{
"id": "8112ee1a71a20951",
"type": "debug",
"z": "e3e2bab63104a927",
"name": "debug 4",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 920,
"y": 680,
"wires":
},
{
"id": "5d04f1820839acb4",
"type": "function",
"z": "e3e2bab63104a927",
"name": "function 31",
"func": "msg.payload.D2440;\nmsg.payload.D2441;\n\n\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": ,
"x": 630,
"y": 680,
"wires": [
[
"72e1e130f8a916a9"
]
]
},
{
"id": "72e1e130f8a916a9",
"type": "buffer-parser",
"z": "e3e2bab63104a927",
"name": "",
"data": "payload",
"dataType": "msg",
"specification": "spec",
"specificationType": "ui",
"items": [
{
"type": "floatle",
"name": "D2440",
"offset": 0,
"length": 1,
"offsetbit": 0,
"scale": "0",
"mask": ""
},
{
"type": "floatle",
"name": "item2",
"offset": 4,
"length": 1,
"offsetbit": 0,
"scale": "0",
"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": 730,
"y": 740,
"wires": [
[
"8112ee1a71a20951"
]
]
},
{
"id": "946c4e79a6eb224e",
"type": "FINS Connection",
"name": "",
"host": "10.116.20.140",
"port": "9600",
"MODE": "",
"MODEType": "CJ",
"protocol": "",
"protocolType": "tcp",
"ICF": "0x80",
"DNA": "",
"DA1": "88",
"DA2": "",
"SNA": "",
"SA1": "179",
"SA2": "",
"autoConnect": true
}
]