{
  "name": "07-boiler-slave",
  "kind": "slave",
  "devices": [
    {
      "name": "Boiler controller",
      "slave": true,
      "tcp": true,
      "tcp_ip": "127.0.0.1",
      "tcp_port": 502,
      "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",
        "coils"
      ],
      "sessions": [
        {
          "slave_id": 1,
          "holding": [
            {
              "address": 0,
              "name": "Temperature",
              "format": "Signed",
              "eng_format": "Signed",
              "eng_mode": "none",
              "scale": 1,
              "offset": 0,
              "unit": "",
              "enums": [],
              "monitor": false,
              "write_fc": "auto",
              "access": "rw",
              "value_words": [
                253
              ]
            },
            {
              "address": 1,
              "name": "Setpoint",
              "format": "Unsigned",
              "eng_format": "Unsigned",
              "eng_mode": "none",
              "scale": 1,
              "offset": 0,
              "unit": "",
              "enums": [],
              "monitor": false,
              "write_fc": "auto",
              "access": "rw",
              "value_words": [
                300
              ]
            },
            {
              "address": 2,
              "name": "Mode",
              "format": "Unsigned",
              "eng_format": "Unsigned",
              "eng_mode": "none",
              "scale": 1,
              "offset": 0,
              "unit": "",
              "enums": [],
              "monitor": false,
              "write_fc": "auto",
              "access": "rw",
              "value_words": [
                1
              ]
            },
            {
              "address": 3,
              "name": "Alarm bits",
              "format": "Hex",
              "eng_format": "Hex",
              "eng_mode": "none",
              "scale": 1,
              "offset": 0,
              "unit": "",
              "enums": [],
              "monitor": false,
              "write_fc": "auto",
              "access": "rw",
              "value_words": [
                5
              ]
            },
            {
              "address": 16,
              "name": "Voltage",
              "format": "Float AB CD",
              "eng_format": "Float AB CD",
              "eng_mode": "none",
              "scale": 1,
              "offset": 0,
              "unit": "",
              "enums": [],
              "monitor": false,
              "write_fc": "auto",
              "access": "rw",
              "value_words": [
                17254,
                32768
              ]
            },
            {
              "address": 18,
              "name": "Energy",
              "format": "Long AB CD",
              "eng_format": "Long AB CD",
              "eng_mode": "none",
              "scale": 1,
              "offset": 0,
              "unit": "",
              "enums": [],
              "monitor": false,
              "write_fc": "auto",
              "access": "rw",
              "value_words": [
                1,
                57920
              ]
            }
          ],
          "input": [],
          "coils": [
            {
              "address": 0,
              "name": "Pump",
              "format": "Unsigned",
              "eng_format": "Unsigned",
              "eng_mode": "none",
              "scale": 1,
              "offset": 0,
              "unit": "",
              "enums": [],
              "monitor": false,
              "write_fc": "auto",
              "access": "rw",
              "value_bit": 1
            },
            {
              "address": 1,
              "name": "Fan",
              "format": "Unsigned",
              "eng_format": "Unsigned",
              "eng_mode": "none",
              "scale": 1,
              "offset": 0,
              "unit": "",
              "enums": [],
              "monitor": false,
              "write_fc": "auto",
              "access": "rw",
              "value_bit": 0
            }
          ],
          "discrete": []
        }
      ]
    }
  ]
}
