Hi there,
I was having issue When i tried 520000 it gives this error
"Error: Exception preparing the write buffer for item 'D28': RangeError [ERR_OUT_OF_RANGE]: The value of "value" is out of range. It must be >= -32768 and <= 32767. Received 520000"
using this Flow
[
{
"id": "2675d77db8276e1c",
"type": "inject",
"z": "c9566eb69956fe5d",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "D28",
"payload": "520000",
"payloadType": "num",
"x": 230,
"y": 1900,
"wires": [
[
"3aa7ae60ba13a900"
]
]
},
{
"id": "3aa7ae60ba13a900",
"type": "MC Write",
"z": "c9566eb69956fe5d",
"name": "",
"topic": "",
"connection": "8c926f873226d344",
"data": "payload",
"address": "topic",
"addressType": "msg",
"dataType": "msg",
"errorHandling": "throw",
"outputs": 1,
"x": 340,
"y": 1760,
"wires": [
[
"6bc305555dbb14cb"
]
]
},
{
"id": "6bc305555dbb14cb",
"type": "debug",
"z": "c9566eb69956fe5d",
"name": "debug 9",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 600,
"y": 1700,
"wires": []
},
{
"id": "5a0ee7502a26083d",
"type": "MC Read",
"z": "c9566eb69956fe5d",
"name": "JobID",
"topic": "",
"connection": "8c926f873226d344",
"address": "topic",
"addressType": "msg",
"outputFormat": 0,
"errorHandling": "throw",
"outputs": 1,
"x": 390,
"y": 1620,
"wires": [
[
"6bc305555dbb14cb"
]
]
},
{
"id": "7696f023cd4a497e",
"type": "change",
"z": "c9566eb69956fe5d",
"name": "D28,1",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "D28,1",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 250,
"y": 1580,
"wires": [
[
"5a0ee7502a26083d"
]
]
},
{
"id": "e45cbab16188f3a2",
"type": "inject",
"z": "c9566eb69956fe5d",
"name": "Jobid D28",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "1",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "D28,2",
"payload": "",
"payloadType": "date",
"x": 170,
"y": 1640,
"wires": [
[
"7696f023cd4a497e"
]
]
},
{
"id": "8c926f873226d344",
"type": "MC Protocol Connection",
"name": "",
"host": "192.168.2.20",
"port": "5001",
"protocol": "TCP",
"frame": "1E",
"plcType": "Q",
"ascii": false,
"PLCStation": "2",
"PCStation": "255",
"PLCModuleNo": "2",
"network": "2",
"octalInputOutput": false,
"timeout": "5000"
}
]
and with buffer parser node
[
{
"id": "2675d77db8276e1c",
"type": "inject",
"z": "c9566eb69956fe5d",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "D28",
"payload": "520000",
"payloadType": "num",
"x": 230,
"y": 1900,
"wires": [
[
"3aa7ae60ba13a900"
]
]
},
{
"id": "3aa7ae60ba13a900",
"type": "MC Write",
"z": "c9566eb69956fe5d",
"name": "",
"topic": "",
"connection": "8c926f873226d344",
"data": "payload",
"address": "topic",
"addressType": "msg",
"dataType": "msg",
"errorHandling": "throw",
"outputs": 1,
"x": 340,
"y": 1760,
"wires": [
[
"6bc305555dbb14cb"
]
]
},
{
"id": "6bc305555dbb14cb",
"type": "debug",
"z": "c9566eb69956fe5d",
"name": "debug 9",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 600,
"y": 1700,
"wires": []
},
{
"id": "5a0ee7502a26083d",
"type": "MC Read",
"z": "c9566eb69956fe5d",
"name": "JobID",
"topic": "",
"connection": "8c926f873226d344",
"address": "topic",
"addressType": "msg",
"outputFormat": 0,
"errorHandling": "throw",
"outputs": 1,
"x": 390,
"y": 1620,
"wires": [
[
"81499fcc262083ba"
]
]
},
{
"id": "7696f023cd4a497e",
"type": "change",
"z": "c9566eb69956fe5d",
"name": "D28,1",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "D28,1",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 250,
"y": 1580,
"wires": [
[
"5a0ee7502a26083d"
]
]
},
{
"id": "e45cbab16188f3a2",
"type": "inject",
"z": "c9566eb69956fe5d",
"name": "Jobid D28",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "1",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "D28,2",
"payload": "",
"payloadType": "date",
"x": 170,
"y": 1640,
"wires": [
[
"7696f023cd4a497e"
]
]
},
{
"id": "81499fcc262083ba",
"type": "buffer-parser",
"z": "c9566eb69956fe5d",
"name": "Convert array to named values",
"data": "payload",
"dataType": "msg",
"specification": "spec",
"specificationType": "ui",
"items": [
{
"type": "int16le",
"name": "JOB ID",
"offset": 0,
"length": 1,
"offsetbit": 0,
"scale": "1",
"mask": ""
}
],
"swap1": "swap16",
"swap2": "",
"swap3": "",
"swap1Type": "swap",
"swap2Type": "swap",
"swap3Type": "swap",
"msgProperty": "payload1",
"msgPropertyType": "str",
"resultType": "keyvalue",
"resultTypeType": "return",
"multipleResult": false,
"fanOutMultipleResult": false,
"setTopic": true,
"outputs": 1,
"x": 490,
"y": 1660,
"wires": [
[
"6bc305555dbb14cb"
]
]
},
{
"id": "8c926f873226d344",
"type": "MC Protocol Connection",
"name": "",
"host": "192.168.2.20",
"port": "5001",
"protocol": "TCP",
"frame": "1E",
"plcType": "Q",
"ascii": false,
"PLCStation": "2",
"PCStation": "255",
"PLCModuleNo": "2",
"network": "2",
"octalInputOutput": false,
"timeout": "5000"
}
]
Error: data is not an array or a buffer
so what is the issue i am not understanding