Skip to content

Instantly share code, notes, and snippets.

@MonkeyDo
Created December 5, 2017 12:43
Show Gist options
  • Save MonkeyDo/0b2a5eb06e8408aeaffb2b18e595fc14 to your computer and use it in GitHub Desktop.
Save MonkeyDo/0b2a5eb06e8408aeaffb2b18e595fc14 to your computer and use it in GitHub Desktop.
[
{
"id": "c221d6dd.a94f88",
"type": "tab",
"label": "Flow 4"
},
{
"id": "57a8686a.357858",
"type": "modbus-flex-getter",
"z": "c221d6dd.a94f88",
"name": "mb_reader_mb_client_192.168.1.11_1512475514797",
"showStatusActivities": true,
"showErrors": true,
"server": "165b7d58.e77bb3",
"x": 825,
"y": 154,
"wires": [
[
"4786db73.48c2c4"
],
[]
]
},
{
"id": "4786db73.48c2c4",
"type": "function",
"z": "c221d6dd.a94f88",
"name": "extract data array",
"func": "msg.payload = msg.payload.data;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 1175,
"y": 134,
"wires": [
[
"6ffb224c.e7e33c"
]
]
},
{
"id": "951e2152.23d33",
"type": "inject",
"z": "c221d6dd.a94f88",
"name": "mb_client_192.168.1.11_1512475514797_prg_channel_getter_mr_group_0",
"topic": "mb_client_192.168.1.11_1512475514797_prg_channel_getter_mr_group_0",
"payload": "{\"fc\":3, \"address\": 12392, \"quantity\":100}",
"payloadType": "json",
"repeat": 1,
"crontab": "",
"once": false,
"x": 295,
"y": 104,
"wires": [
[
"57a8686a.357858"
],
[]
]
},
{
"id": "6ffb224c.e7e33c",
"type": "switch",
"z": "c221d6dd.a94f88",
"name": "mb_client_192.168.1.11_1512475514797_getter_splitter",
"property": "input.topic",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "mb_client_192.168.1.11_1512475514797_prg_channel_getter_mr_group_0",
"vt": "str"
},
{
"t": "eq",
"v": "mb_client_192.168.1.11_1512475514797_input_reader",
"vt": "str"
}
],
"checkall": "false",
"outputs": 2,
"x": 1525,
"y": 104,
"wires": [
[],
[]
]
},
{
"id": "755b7743.008af8",
"type": "inject",
"z": "c221d6dd.a94f88",
"name": "mb_client_192.168.1.11_1512475514797_input_reader",
"topic": "mb_client_192.168.1.11_1512475514797_input_reader",
"payload": "{\"fc\":3, \"address\": 0, \"quantity\":67}",
"payloadType": "json",
"repeat": 1,
"crontab": "",
"once": false,
"x": 295,
"y": 154,
"wires": [
[
"57a8686a.357858"
],
[]
]
},
{
"id": "1790301b.b5981",
"type": "modbus-flex-getter",
"z": "c221d6dd.a94f88",
"name": "mb_reader_mb_client_192.168.1.12_1512475515017",
"showStatusActivities": true,
"showErrors": true,
"server": "d52e586b.c04c98",
"x": 805,
"y": 384,
"wires": [
[
"4c232ad7.ff7244"
],
[]
]
},
{
"id": "4c232ad7.ff7244",
"type": "function",
"z": "c221d6dd.a94f88",
"name": "extract data array",
"func": "msg.payload = msg.payload.data;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 1155,
"y": 364,
"wires": [
[
"87057105.35a2d"
]
]
},
{
"id": "d483cacf.557ee8",
"type": "inject",
"z": "c221d6dd.a94f88",
"name": "mb_client_192.168.1.12_1512475515017_prg_channel_getter_mr_group_0",
"topic": "mb_client_192.168.1.12_1512475515017_prg_channel_getter_mr_group_0",
"payload": "{\"fc\":3, \"address\": 12308, \"quantity\":62}",
"payloadType": "json",
"repeat": 1,
"crontab": "",
"once": false,
"x": 275,
"y": 334,
"wires": [
[
"1790301b.b5981"
],
[]
]
},
{
"id": "ef0a22c9.34a4a",
"type": "inject",
"z": "c221d6dd.a94f88",
"name": "mb_client_192.168.1.12_1512475515017_prg_channel_getter_mr_group_1",
"topic": "mb_client_192.168.1.12_1512475515017_prg_channel_getter_mr_group_1",
"payload": "{\"fc\":3, \"address\": 12434, \"quantity\":2}",
"payloadType": "json",
"repeat": 1,
"crontab": "",
"once": false,
"x": 275,
"y": 384,
"wires": [
[
"1790301b.b5981"
],
[]
]
},
{
"id": "f2aea834.357248",
"type": "inject",
"z": "c221d6dd.a94f88",
"name": "mb_client_192.168.1.12_1512475515017_prg_channel_getter_mr_group_2",
"topic": "mb_client_192.168.1.12_1512475515017_prg_channel_getter_mr_group_2",
"payload": "{\"fc\":3, \"address\": 12480, \"quantity\":10}",
"payloadType": "json",
"repeat": 1,
"crontab": "",
"once": false,
"x": 275,
"y": 434,
"wires": [
[
"1790301b.b5981"
],
[]
]
},
{
"id": "87057105.35a2d",
"type": "switch",
"z": "c221d6dd.a94f88",
"name": "mb_client_192.168.1.12_1512475515017_getter_splitter",
"property": "input.topic",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "mb_client_192.168.1.12_1512475515017_prg_channel_getter_mr_group_0",
"vt": "str"
},
{
"t": "eq",
"v": "mb_client_192.168.1.12_1512475515017_prg_channel_getter_mr_group_1",
"vt": "str"
},
{
"t": "eq",
"v": "mb_client_192.168.1.12_1512475515017_prg_channel_getter_mr_group_2",
"vt": "str"
},
{
"t": "eq",
"v": "mb_client_192.168.1.12_1512475515017_input_reader",
"vt": "str"
}
],
"checkall": "false",
"outputs": 4,
"x": 1505,
"y": 364,
"wires": [
[],
[],
[],
[]
]
},
{
"id": "dc9fc555.f8d438",
"type": "inject",
"z": "c221d6dd.a94f88",
"name": "mb_client_192.168.1.12_1512475515017_input_reader",
"topic": "mb_client_192.168.1.12_1512475515017_input_reader",
"payload": "{\"fc\":3, \"address\": 0, \"quantity\":74}",
"payloadType": "json",
"repeat": 1,
"crontab": "",
"once": false,
"x": 275,
"y": 384,
"wires": [
[
"1790301b.b5981"
],
[]
]
},
{
"id": "5dc0fbef.3d9c84",
"type": "modbus-flex-getter",
"z": "c221d6dd.a94f88",
"name": "mb_reader_mb_client_192.168.1.13_1512475515300",
"showStatusActivities": true,
"showErrors": true,
"server": "e12e9306.8ba83",
"x": 805,
"y": 634,
"wires": [
[
"f04eaa9a.b71fe8"
],
[]
]
},
{
"id": "f04eaa9a.b71fe8",
"type": "function",
"z": "c221d6dd.a94f88",
"name": "extract data array",
"func": "msg.payload = msg.payload.data;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 1155,
"y": 614,
"wires": [
[
"94361615.08dae8"
]
]
},
{
"id": "c38e598a.dde1f8",
"type": "inject",
"z": "c221d6dd.a94f88",
"name": "mb_client_192.168.1.13_1512475515300_prg_channel_getter_mr_group_0",
"topic": "mb_client_192.168.1.13_1512475515300_prg_channel_getter_mr_group_0",
"payload": "{\"fc\":3, \"address\": 12294, \"quantity\":36}",
"payloadType": "json",
"repeat": 1,
"crontab": "",
"once": false,
"x": 275,
"y": 584,
"wires": [
[
"5dc0fbef.3d9c84"
],
[]
]
},
{
"id": "71f09bba.df9574",
"type": "inject",
"z": "c221d6dd.a94f88",
"name": "mb_client_192.168.1.13_1512475515300_prg_channel_getter_mr_group_1",
"topic": "mb_client_192.168.1.13_1512475515300_prg_channel_getter_mr_group_1",
"payload": "{\"fc\":3, \"address\": 12436, \"quantity\":10}",
"payloadType": "json",
"repeat": 1,
"crontab": "",
"once": false,
"x": 275,
"y": 634,
"wires": [
[
"5dc0fbef.3d9c84"
],
[]
]
},
{
"id": "94361615.08dae8",
"type": "switch",
"z": "c221d6dd.a94f88",
"name": "mb_client_192.168.1.13_1512475515300_getter_splitter",
"property": "input.topic",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "mb_client_192.168.1.13_1512475515300_prg_channel_getter_mr_group_0",
"vt": "str"
},
{
"t": "eq",
"v": "mb_client_192.168.1.13_1512475515300_prg_channel_getter_mr_group_1",
"vt": "str"
},
{
"t": "eq",
"v": "mb_client_192.168.1.13_1512475515300_input_reader",
"vt": "str"
},
{
"t": "eq",
"v": "mb_client_192.168.1.13_1512475515300_output_reader",
"vt": "str"
}
],
"checkall": "false",
"outputs": 4,
"x": 1505,
"y": 604,
"wires": [
[],
[],
[],
[]
]
},
{
"id": "ba7ff92e.0f82e8",
"type": "inject",
"z": "c221d6dd.a94f88",
"name": "mb_client_192.168.1.13_1512475515300_input_reader",
"topic": "mb_client_192.168.1.13_1512475515300_input_reader",
"payload": "{\"fc\":3, \"address\": 0, \"quantity\":41}",
"payloadType": "json",
"repeat": 1,
"crontab": "",
"once": false,
"x": 275,
"y": 634,
"wires": [
[
"5dc0fbef.3d9c84"
],
[]
]
},
{
"id": "e530e97d.83b258",
"type": "inject",
"z": "c221d6dd.a94f88",
"name": "mb_client_192.168.1.13_1512475515300_output_reader",
"topic": "mb_client_192.168.1.13_1512475515300_output_reader",
"payload": "{\"fc\":3, \"address\": 512, \"quantity\":13}",
"payloadType": "json",
"repeat": 1,
"crontab": "",
"once": false,
"x": 275,
"y": 684,
"wires": [
[
"5dc0fbef.3d9c84"
],
[]
]
},
{
"id": "6f14e273.4d55dc",
"type": "modbus-flex-getter",
"z": "c221d6dd.a94f88",
"name": "mb_reader_mb_client_192.168.1.14_1512475515367",
"showStatusActivities": true,
"showErrors": true,
"server": "eac74db4.87b83",
"x": 805,
"y": 914,
"wires": [
[
"29327f4f.5d6"
],
[]
]
},
{
"id": "29327f4f.5d6",
"type": "function",
"z": "c221d6dd.a94f88",
"name": "extract data array",
"func": "msg.payload = msg.payload.data;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 1175,
"y": 884,
"wires": [
[
"5bc83e79.4238c"
]
]
},
{
"id": "49031b1e.7b5254",
"type": "inject",
"z": "c221d6dd.a94f88",
"name": "mb_client_192.168.1.14_1512475515367_prg_channel_getter_mr_group_0",
"topic": "mb_client_192.168.1.14_1512475515367_prg_channel_getter_mr_group_0",
"payload": "{\"fc\":3, \"address\": 12434, \"quantity\":10}",
"payloadType": "json",
"repeat": 1,
"crontab": "",
"once": false,
"x": 295,
"y": 854,
"wires": [
[
"6f14e273.4d55dc"
],
[]
]
},
{
"id": "5bc83e79.4238c",
"type": "switch",
"z": "c221d6dd.a94f88",
"name": "mb_client_192.168.1.14_1512475515367_getter_splitter",
"property": "input.topic",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "mb_client_192.168.1.14_1512475515367_prg_channel_getter_mr_group_0",
"vt": "str"
},
{
"t": "eq",
"v": "mb_client_192.168.1.14_1512475515367_input_reader",
"vt": "str"
},
{
"t": "eq",
"v": "mb_client_192.168.1.14_1512475515367_output_reader",
"vt": "str"
}
],
"checkall": "false",
"outputs": 3,
"x": 1525,
"y": 864,
"wires": [
[],
[],
[]
]
},
{
"id": "7fea0daa.cec3a4",
"type": "inject",
"z": "c221d6dd.a94f88",
"name": "mb_client_192.168.1.14_1512475515367_input_reader",
"topic": "mb_client_192.168.1.14_1512475515367_input_reader",
"payload": "{\"fc\":3, \"address\": 0, \"quantity\":46}",
"payloadType": "json",
"repeat": 1,
"crontab": "",
"once": false,
"x": 295,
"y": 904,
"wires": [
[
"6f14e273.4d55dc"
],
[]
]
},
{
"id": "60b22179.2543c",
"type": "inject",
"z": "c221d6dd.a94f88",
"name": "mb_client_192.168.1.14_1512475515367_output_reader",
"topic": "mb_client_192.168.1.14_1512475515367_output_reader",
"payload": "{\"fc\":3, \"address\": 512, \"quantity\":1}",
"payloadType": "json",
"repeat": 1,
"crontab": "",
"once": false,
"x": 295,
"y": 954,
"wires": [
[
"6f14e273.4d55dc"
],
[]
]
},
{
"id": "c49ba1ab.e9124",
"type": "modbus-flex-getter",
"z": "c221d6dd.a94f88",
"name": "mb_reader_mb_client_192.168.1.15_1512475515422",
"showStatusActivities": true,
"showErrors": true,
"server": "67102eb6.ebca5",
"x": 865,
"y": 1174,
"wires": [
[
"27738789.1000d8"
],
[]
]
},
{
"id": "27738789.1000d8",
"type": "function",
"z": "c221d6dd.a94f88",
"name": "extract data array",
"func": "msg.payload = msg.payload.data;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 1215,
"y": 1154,
"wires": [
[
"cff7babd.b654f8"
]
]
},
{
"id": "9d8c52b3.d8fb8",
"type": "inject",
"z": "c221d6dd.a94f88",
"name": "mb_client_192.168.1.15_1512475515422_prg_channel_getter_mr_group_0",
"topic": "mb_client_192.168.1.15_1512475515422_prg_channel_getter_mr_group_0",
"payload": "{\"fc\":3, \"address\": 12288, \"quantity\":116}",
"payloadType": "json",
"repeat": 1,
"crontab": "",
"once": false,
"x": 335,
"y": 1124,
"wires": [
[
"c49ba1ab.e9124"
],
[]
]
},
{
"id": "cff7babd.b654f8",
"type": "switch",
"z": "c221d6dd.a94f88",
"name": "mb_client_192.168.1.15_1512475515422_getter_splitter",
"property": "input.topic",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "mb_client_192.168.1.15_1512475515422_prg_channel_getter_mr_group_0",
"vt": "str"
},
{
"t": "eq",
"v": "mb_client_192.168.1.15_1512475515422_input_reader",
"vt": "str"
},
{
"t": "eq",
"v": "mb_client_192.168.1.15_1512475515422_output_reader",
"vt": "str"
}
],
"checkall": "false",
"outputs": 3,
"x": 1565,
"y": 1124,
"wires": [
[],
[],
[]
]
},
{
"id": "ecb30655.12f2e8",
"type": "inject",
"z": "c221d6dd.a94f88",
"name": "mb_client_192.168.1.15_1512475515422_input_reader",
"topic": "mb_client_192.168.1.15_1512475515422_input_reader",
"payload": "{\"fc\":3, \"address\": 0, \"quantity\":39}",
"payloadType": "json",
"repeat": 1,
"crontab": "",
"once": false,
"x": 335,
"y": 1174,
"wires": [
[
"c49ba1ab.e9124"
],
[]
]
},
{
"id": "de7d8c87.d04da",
"type": "inject",
"z": "c221d6dd.a94f88",
"name": "mb_client_192.168.1.15_1512475515422_output_reader",
"topic": "mb_client_192.168.1.15_1512475515422_output_reader",
"payload": "{\"fc\":3, \"address\": 512, \"quantity\":36}",
"payloadType": "json",
"repeat": 1,
"crontab": "",
"once": false,
"x": 335,
"y": 1224,
"wires": [
[
"c49ba1ab.e9124"
],
[]
]
},
{
"id": "40c8fadd.9c0654",
"type": "modbus-flex-getter",
"z": "c221d6dd.a94f88",
"name": "mb_reader_mb_client_192.168.1.16_1512475515638",
"showStatusActivities": true,
"showErrors": true,
"server": "9dd15f08.3ce76",
"x": 845,
"y": 1474,
"wires": [
[
"8079e9bb.4a7518"
],
[]
]
},
{
"id": "8079e9bb.4a7518",
"type": "function",
"z": "c221d6dd.a94f88",
"name": "extract data array",
"func": "msg.payload = msg.payload.data;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 1195,
"y": 1454,
"wires": [
[
"a4367ad.917e688"
]
]
},
{
"id": "20cc1845.f372b8",
"type": "inject",
"z": "c221d6dd.a94f88",
"name": "mb_client_192.168.1.16_1512475515638_prg_channel_getter_mr_group_0",
"topic": "mb_client_192.168.1.16_1512475515638_prg_channel_getter_mr_group_0",
"payload": "{\"fc\":3, \"address\": 12288, \"quantity\":100}",
"payloadType": "json",
"repeat": 1,
"crontab": "",
"once": false,
"x": 315,
"y": 1374,
"wires": [
[
"40c8fadd.9c0654"
],
[]
]
},
{
"id": "6780cc5.811f334",
"type": "inject",
"z": "c221d6dd.a94f88",
"name": "mb_client_192.168.1.16_1512475515638_prg_channel_getter_mr_group_1",
"topic": "mb_client_192.168.1.16_1512475515638_prg_channel_getter_mr_group_1",
"payload": "{\"fc\":3, \"address\": 12414, \"quantity\":58}",
"payloadType": "json",
"repeat": 1,
"crontab": "",
"once": false,
"x": 315,
"y": 1424,
"wires": [
[
"40c8fadd.9c0654"
],
[]
]
},
{
"id": "a4367ad.917e688",
"type": "switch",
"z": "c221d6dd.a94f88",
"name": "mb_client_192.168.1.16_1512475515638_getter_splitter",
"property": "input.topic",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "mb_client_192.168.1.16_1512475515638_prg_channel_getter_mr_group_0",
"vt": "str"
},
{
"t": "eq",
"v": "mb_client_192.168.1.16_1512475515638_prg_channel_getter_mr_group_1",
"vt": "str"
},
{
"t": "eq",
"v": "mb_client_192.168.1.16_1512475515638_input_reader",
"vt": "str"
},
{
"t": "eq",
"v": "mb_client_192.168.1.16_1512475515638_output_reader",
"vt": "str"
}
],
"checkall": "false",
"outputs": 4,
"x": 1545,
"y": 1444,
"wires": [
[],
[],
[],
[]
]
},
{
"id": "2e943dc7.1db332",
"type": "inject",
"z": "c221d6dd.a94f88",
"name": "mb_client_192.168.1.16_1512475515638_input_reader",
"topic": "mb_client_192.168.1.16_1512475515638_input_reader",
"payload": "{\"fc\":3, \"address\": 0, \"quantity\":53}",
"payloadType": "json",
"repeat": 1,
"crontab": "",
"once": false,
"x": 315,
"y": 1474,
"wires": [
[
"40c8fadd.9c0654"
],
[]
]
},
{
"id": "1c74b408.2d691c",
"type": "inject",
"z": "c221d6dd.a94f88",
"name": "mb_client_192.168.1.16_1512475515638_output_reader",
"topic": "mb_client_192.168.1.16_1512475515638_output_reader",
"payload": "{\"fc\":3, \"address\": 512, \"quantity\":49}",
"payloadType": "json",
"repeat": 1,
"crontab": "",
"once": false,
"x": 315,
"y": 1524,
"wires": [
[
"40c8fadd.9c0654"
],
[]
]
},
{
"id": "165b7d58.e77bb3",
"type": "modbus-client",
"z": "",
"name": "AMCS1",
"clienttype": "tcp",
"bufferCommands": true,
"stateLogEnabled": true,
"tcpHost": "192.168.1.100",
"tcpPort": "503",
"tcpType": "DEFAULT",
"serialPort": "/dev/ttyS0",
"serialBaudrate": "9600",
"serialDatabits": "8",
"serialStopbits": "1",
"serialParity": "none",
"serialConnectionDelay": "",
"unit_id": "",
"commandDelay": "",
"clientTimeout": 5000,
"reconnectTimeout": 5000
},
{
"id": "d52e586b.c04c98",
"type": "modbus-client",
"z": "",
"name": "AMCS2",
"clienttype": "tcp",
"bufferCommands": true,
"stateLogEnabled": true,
"tcpHost": "192.168.1.100",
"tcpPort": "504",
"tcpType": "DEFAULT",
"serialPort": "/dev/ttyS0",
"serialBaudrate": "9600",
"serialDatabits": "8",
"serialStopbits": "1",
"serialParity": "none",
"serialConnectionDelay": "",
"unit_id": "",
"commandDelay": "",
"clientTimeout": "5000",
"reconnectTimeout": "5000"
},
{
"id": "e12e9306.8ba83",
"type": "modbus-client",
"z": "",
"name": "AMCS3",
"clienttype": "tcp",
"bufferCommands": true,
"stateLogEnabled": true,
"tcpHost": "192.168.1.100",
"tcpPort": "505",
"tcpType": "DEFAULT",
"serialPort": "/dev/ttyS0",
"serialBaudrate": "9600",
"serialDatabits": "8",
"serialStopbits": "1",
"serialParity": "none",
"serialConnectionDelay": "",
"unit_id": "",
"commandDelay": "",
"clientTimeout": "5000",
"reconnectTimeout": "5000"
},
{
"id": "eac74db4.87b83",
"type": "modbus-client",
"z": "",
"name": "AMCS4",
"clienttype": "tcp",
"bufferCommands": true,
"stateLogEnabled": true,
"tcpHost": "192.168.1.100",
"tcpPort": "506",
"tcpType": "DEFAULT",
"serialPort": "/dev/ttyS0",
"serialBaudrate": "9600",
"serialDatabits": "8",
"serialStopbits": "1",
"serialParity": "none",
"serialConnectionDelay": "",
"unit_id": "",
"commandDelay": "",
"clientTimeout": "5000",
"reconnectTimeout": "5000"
},
{
"id": "67102eb6.ebca5",
"type": "modbus-client",
"z": "",
"name": "AMCS5",
"clienttype": "tcp",
"bufferCommands": true,
"stateLogEnabled": true,
"tcpHost": "192.168.1.100",
"tcpPort": "507",
"tcpType": "DEFAULT",
"serialPort": "/dev/ttyS0",
"serialBaudrate": "9600",
"serialDatabits": "8",
"serialStopbits": "1",
"serialParity": "none",
"serialConnectionDelay": "",
"unit_id": "",
"commandDelay": "",
"clientTimeout": "5000",
"reconnectTimeout": "5000"
},
{
"id": "9dd15f08.3ce76",
"type": "modbus-client",
"z": "",
"name": "AMCS6",
"clienttype": "tcp",
"bufferCommands": true,
"stateLogEnabled": true,
"tcpHost": "192.168.1.16",
"tcpPort": "502",
"tcpType": "DEFAULT",
"serialPort": "/dev/ttyS0",
"serialBaudrate": "9600",
"serialDatabits": "8",
"serialStopbits": "1",
"serialParity": "none",
"serialConnectionDelay": "",
"unit_id": "",
"commandDelay": "",
"clientTimeout": 5000,
"reconnectTimeout": 5000
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment