{
  "name": "u3-check",
  "kind": "poll",
  "devices": [
    {
      "name": "Pump station",
      "slave": false,
      "tcp": true,
      "tcp_ip": "127.0.0.1",
      "tcp_port": 1502,
      "rtu_device": "COM3",
      "rtu_baud": 9600,
      "rtu_parity": "N",
      "rtu_data_bits": 8,
      "rtu_stop_bits": 1,
      "slave_id": 1,
      "timeout_ms": 1000,
      "retry_count": 1,
      "scan_rate_ms": 1000,
      "function_areas": [
        "holding",
        "discrete"
      ],
      "sessions": [
        {
          "slave_id": 1,
          "holding": [
            {
              "address": 0,
              "name": "Speed",
              "format": "Unsigned",
              "eng_format": "Unsigned",
              "eng_mode": "scale",
              "scale": 1,
              "offset": 0,
              "unit": "rpm",
              "enums": [],
              "monitor": true,
              "write_fc": "auto",
              "access": "rw"
            },
            {
              "address": 1,
              "name": "Running",
              "format": "Unsigned",
              "eng_format": "Unsigned",
              "eng_mode": "map",
              "scale": 1,
              "offset": 0,
              "unit": "",
              "enums": [
                {
                  "value": 0,
                  "text": "Stopped"
                },
                {
                  "value": 1,
                  "text": "Running"
                }
              ],
              "monitor": true,
              "write_fc": "auto",
              "access": "rw"
            }
          ],
          "input": [],
          "coils": [],
          "discrete": [
            {
              "address": 0,
              "name": "Fault",
              "format": "Unsigned",
              "eng_format": "Unsigned",
              "eng_mode": "map",
              "scale": 1,
              "offset": 0,
              "unit": "",
              "enums": [
                {
                  "value": 0,
                  "text": "OK"
                },
                {
                  "value": 1,
                  "text": "Fault"
                }
              ],
              "monitor": true,
              "write_fc": "auto",
              "access": "rw"
            }
          ]
        },
        {
          "slave_id": 2,
          "holding": [
            {
              "address": 0,
              "name": "Speed",
              "format": "Unsigned",
              "eng_format": "Unsigned",
              "eng_mode": "scale",
              "scale": 1,
              "offset": 0,
              "unit": "rpm",
              "enums": [],
              "monitor": true,
              "write_fc": "auto",
              "access": "rw"
            },
            {
              "address": 1,
              "name": "Running",
              "format": "Unsigned",
              "eng_format": "Unsigned",
              "eng_mode": "map",
              "scale": 1,
              "offset": 0,
              "unit": "",
              "enums": [
                {
                  "value": 0,
                  "text": "Stopped"
                },
                {
                  "value": 1,
                  "text": "Running"
                }
              ],
              "monitor": true,
              "write_fc": "auto",
              "access": "rw"
            }
          ],
          "input": [],
          "coils": [],
          "discrete": [
            {
              "address": 0,
              "name": "Fault",
              "format": "Unsigned",
              "eng_format": "Unsigned",
              "eng_mode": "map",
              "scale": 1,
              "offset": 0,
              "unit": "",
              "enums": [
                {
                  "value": 0,
                  "text": "OK"
                },
                {
                  "value": 1,
                  "text": "Fault"
                }
              ],
              "monitor": true,
              "write_fc": "auto",
              "access": "rw"
            }
          ]
        }
      ]
    }
  ]
}
