Advertisement
NittyGritty

MODBUS Sample

Feb 2nd, 2024
953
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [
  2.     {
  3.         "id": "59ef0f46f0cf89f0",
  4.         "type": "debug",
  5.         "z": "278c3ffc.fa40d8",
  6.         "name": "debug 4",
  7.         "active": true,
  8.         "tosidebar": false,
  9.         "console": false,
  10.         "tostatus": true,
  11.         "complete": "payload",
  12.         "targetType": "msg",
  13.         "statusVal": "payload",
  14.         "statusType": "auto",
  15.         "x": 800,
  16.         "y": 500,
  17.         "wires": []
  18.     },
  19.     {
  20.         "id": "9eaaef2263fbca4d",
  21.         "type": "debug",
  22.         "z": "278c3ffc.fa40d8",
  23.         "name": "debug 5",
  24.         "active": true,
  25.         "tosidebar": true,
  26.         "console": false,
  27.         "tostatus": false,
  28.         "complete": "false",
  29.         "statusVal": "",
  30.         "statusType": "auto",
  31.         "x": 800,
  32.         "y": 560,
  33.         "wires": []
  34.     },
  35.     {
  36.         "id": "49d527f4a1351f16",
  37.         "type": "inject",
  38.         "z": "278c3ffc.fa40d8",
  39.         "name": "Temp",
  40.         "props": [
  41.             {
  42.                 "p": "payload.fc",
  43.                 "v": "4",
  44.                 "vt": "str"
  45.             },
  46.             {
  47.                 "p": "payload.address",
  48.                 "v": "1",
  49.                 "vt": "str"
  50.             },
  51.             {
  52.                 "p": "payload.quantity",
  53.                 "v": "1",
  54.                 "vt": "str"
  55.             }
  56.         ],
  57.         "repeat": "",
  58.         "crontab": "",
  59.         "once": false,
  60.         "onceDelay": 0.1,
  61.         "topic": "",
  62.         "x": 230,
  63.         "y": 500,
  64.         "wires": [
  65.             [
  66.                 "1fa78d55461a32bb",
  67.                 "c1ad8fd4ed513bb8"
  68.             ]
  69.         ]
  70.     },
  71.     {
  72.         "id": "1fa78d55461a32bb",
  73.         "type": "modbus-flex-getter",
  74.         "z": "278c3ffc.fa40d8",
  75.         "name": "Flex",
  76.         "showStatusActivities": false,
  77.         "showErrors": false,
  78.         "showWarnings": true,
  79.         "logIOActivities": false,
  80.         "server": "597e48e38ce244cf",
  81.         "useIOFile": false,
  82.         "ioFile": "",
  83.         "useIOForPayload": false,
  84.         "emptyMsgOnFail": false,
  85.         "keepMsgProperties": false,
  86.         "delayOnStart": false,
  87.         "startDelayTime": "",
  88.         "x": 390,
  89.         "y": 540,
  90.         "wires": [
  91.             [
  92.                 "59ef0f46f0cf89f0"
  93.             ],
  94.             [
  95.                 "9eaaef2263fbca4d"
  96.             ]
  97.         ]
  98.     },
  99.     {
  100.         "id": "b8ae073dd51d2e8b",
  101.         "type": "inject",
  102.         "z": "278c3ffc.fa40d8",
  103.         "name": "Hum",
  104.         "props": [
  105.             {
  106.                 "p": "payload.fc",
  107.                 "v": "4",
  108.                 "vt": "str"
  109.             },
  110.             {
  111.                 "p": "payload.address",
  112.                 "v": "2",
  113.                 "vt": "str"
  114.             },
  115.             {
  116.                 "p": "payload.quantity",
  117.                 "v": "1",
  118.                 "vt": "str"
  119.             }
  120.         ],
  121.         "repeat": "",
  122.         "crontab": "",
  123.         "once": false,
  124.         "onceDelay": 0.1,
  125.         "topic": "",
  126.         "x": 230,
  127.         "y": 640,
  128.         "wires": [
  129.             [
  130.                 "1fa78d55461a32bb",
  131.                 "c1ad8fd4ed513bb8"
  132.             ]
  133.         ]
  134.     },
  135.     {
  136.         "id": "c1ad8fd4ed513bb8",
  137.         "type": "debug",
  138.         "z": "278c3ffc.fa40d8",
  139.         "name": "debug 7",
  140.         "active": true,
  141.         "tosidebar": true,
  142.         "console": false,
  143.         "tostatus": false,
  144.         "complete": "false",
  145.         "statusVal": "",
  146.         "statusType": "auto",
  147.         "x": 400,
  148.         "y": 600,
  149.         "wires": []
  150.     },
  151.     {
  152.         "id": "597e48e38ce244cf",
  153.         "type": "modbus-client",
  154.         "name": "Modbus-Serial",
  155.         "clienttype": "serial",
  156.         "bufferCommands": true,
  157.         "stateLogEnabled": false,
  158.         "queueLogEnabled": false,
  159.         "failureLogEnabled": true,
  160.         "tcpHost": "127.0.0.1",
  161.         "tcpPort": "502",
  162.         "tcpType": "DEFAULT",
  163.         "serialPort": "/dev/ttyUSB0",
  164.         "serialType": "RTU",
  165.         "serialBaudrate": "9600",
  166.         "serialDatabits": "8",
  167.         "serialStopbits": "1",
  168.         "serialParity": "none",
  169.         "serialConnectionDelay": "100",
  170.         "serialAsciiResponseStartDelimiter": "0x3A",
  171.         "unit_id": 1,
  172.         "commandDelay": 1,
  173.         "clientTimeout": 1000,
  174.         "reconnectOnTimeout": true,
  175.         "reconnectTimeout": 2000,
  176.         "parallelUnitIdsAllowed": true,
  177.         "showWarnings": true,
  178.         "showLogs": true
  179.     }
  180. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement