[
{
"id": "469823bb.8dbd9c",
"type": "modbus-flex-write",
"z": "950e1863.7ddc98",
"name": "",
"showStatusActivities": true,
"showErrors": true,
"server": "7142743e.1c9bec",
"x": 715,
"y": 362,
"wires": [
[
"ed464d4f.a0814"
],
[
"48970aa.d58c9f4"
]
]
},
{
"id": "48970aa.d58c9f4",
"type": "modbus-response",
"z": "950e1863.7ddc98",
"name": "",
"registerShowMax": 20,
"x": 1052,
"y": 379,
"wires": []
},
{
"id": "ae964da3.297a8",
"type": "function",
"z": "950e1863.7ddc98",
"name": "Write 10 on Unit 1 FC6",
"func": "msg.payload = { value: msg.payload, 'fc': 6, 'unitid': 5, 'address': 1 , 'quantity': 2};\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 442,
"y": 397,
"wires": [
[
"469823bb.8dbd9c",
"6b7c6a30.5324c4"
]
]
},
{
"id": "3610f6a2.1fd60a",
"type": "inject",
"z": "950e1863.7ddc98",
"name": "Write single!",
"topic": "",
"payload": "2345",
"payloadType": "num",
"repeat": "",
"crontab": "",
"once": false,
"x": 150,
"y": 351,
"wires": [
[
"ae964da3.297a8"
]
]
},
{
"id": "ed464d4f.a0814",
"type": "debug",
"z": "950e1863.7ddc98",
"name": "",
"active": true,
"console": "true",
"complete": "payload",
"x": 1042,
"y": 339,
"wires": []
},
{
"id": "83938b43.4e1998",
"type": "function",
"z": "950e1863.7ddc98",
"name": "reset Write on HighHigh",
"func": "if(\"high high level reached\" === msg.state && \n msg.unitid === 1 &&\n
msg.error.source.name === \"Write Queue\") {\n msg.resetQueue = true;\n return msg;\n}\n",
"outputs": 1,
"noerr": 0,
"x": 450,
"y": 300,
"wires": [
[
"e6261b83.c46558"
]
]
},
{
"id": "bc40e553.775cd8",
"type": "link in",
"z": "950e1863.7ddc98",
"name": "MODBUS",
"links": [
"d77f8cbe.9b68a"
],
"x": 176,
"y": 410,
"wires": [
[
"ae964da3.297a8"
]
]
},
{
"id": "6b7c6a30.5324c4",
"type": "modbus-flex-write",
"z": "950e1863.7ddc98",
"name": "TCP Flex Write",
"showStatusActivities": true,
"showErrors": true,
"server": "6e35ce16.4be38",
"x": 706,
"y": 440,
"wires": [
[],
[
"bcd54f1a.a4a23"
]
]
},
{
"id": "bcd54f1a.a4a23",
"type": "modbus-response",
"z": "950e1863.7ddc98",
"name": "",
"registerShowMax": 20,
"x": 1016,
"y": 450,
"wires": []
},
{
"id": "7142743e.1c9bec",
"type": "modbus-client",
"z": "",
"name": "Serial RTU",
"clienttype": "serial",
"bufferCommands": true,
"stateLogEnabled": false,
"tcpHost": "127.0.0.1",
"tcpPort": "502",
"tcpType": "DEFAULT",
"serialPort": "/dev/ttyUSB0",
"serialType": "RTU-BUFFERD",
"serialBaudrate": "9600",
"serialDatabits": "7",
"serialStopbits": "1",
"serialParity": "none",
"serialConnectionDelay": "100",
"unit_id": "5",
"commandDelay": "1",
"clientTimeout": "1000",
"reconnectTimeout": "2000"
},
{
"id": "6e35ce16.4be38",
"type": "modbus-client",
"z": "",
"name": "Local Write VServer",
"clienttype": "tcp",
"bufferCommands": true,
"stateLogEnabled": false,
"tcpHost": "127.0.0.1",
"tcpPort": "10502",
"tcpType": "DEFAULT",
"serialPort": "/dev/ttyUSB",
"serialType": "RTU-BUFFERD",
"serialBaudrate": "9600",
"serialDatabits": "8",
"serialStopbits": "1",
"serialParity": "none",
"serialConnectionDelay": "100",
"unit_id": 1,
"commandDelay": 1,
"clientTimeout": 1000,
"reconnectTimeout": 2000
}
]