{
  "name": "09-trainer",
  "kind": "slave",
  "devices": [
    {
      "name": "Training 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",
        "input",
        "coils"
      ],
      "sessions": [
        {
          "slave_id": 1,
          "holding": [
            {
              "address": 0,
              "name": "Status",
              "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": 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": [
                250
              ]
            },
            {
              "address": 2,
              "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": [
                65481
              ]
            },
            {
              "address": 3,
              "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": 16,
              "name": "Pressure",
              "format": "Float CD AB",
              "eng_format": "Float CD AB",
              "eng_mode": "none",
              "scale": 1,
              "offset": 0,
              "unit": "",
              "enums": [],
              "monitor": false,
              "write_fc": "auto",
              "access": "rw",
              "value_words": [
                0,
                16288
              ]
            },
            {
              "address": 32,
              "name": "Data 0",
              "format": "Unsigned",
              "eng_format": "Unsigned",
              "eng_mode": "none",
              "scale": 1,
              "offset": 0,
              "unit": "",
              "enums": [],
              "monitor": false,
              "write_fc": "auto",
              "access": "rw",
              "value_words": [
                0
              ]
            },
            {
              "address": 33,
              "name": "Data 1",
              "format": "Unsigned",
              "eng_format": "Unsigned",
              "eng_mode": "none",
              "scale": 1,
              "offset": 0,
              "unit": "",
              "enums": [],
              "monitor": false,
              "write_fc": "auto",
              "access": "rw",
              "value_words": [
                0
              ]
            },
            {
              "address": 34,
              "name": "Data 2",
              "format": "Unsigned",
              "eng_format": "Unsigned",
              "eng_mode": "none",
              "scale": 1,
              "offset": 0,
              "unit": "",
              "enums": [],
              "monitor": false,
              "write_fc": "auto",
              "access": "rw",
              "value_words": [
                0
              ]
            },
            {
              "address": 35,
              "name": "Data 3",
              "format": "Unsigned",
              "eng_format": "Unsigned",
              "eng_mode": "none",
              "scale": 1,
              "offset": 0,
              "unit": "",
              "enums": [],
              "monitor": false,
              "write_fc": "auto",
              "access": "rw",
              "value_words": [
                0
              ]
            },
            {
              "address": 36,
              "name": "Data 4",
              "format": "Unsigned",
              "eng_format": "Unsigned",
              "eng_mode": "none",
              "scale": 1,
              "offset": 0,
              "unit": "",
              "enums": [],
              "monitor": false,
              "write_fc": "auto",
              "access": "rw",
              "value_words": [
                0
              ]
            },
            {
              "address": 37,
              "name": "Data 5",
              "format": "Unsigned",
              "eng_format": "Unsigned",
              "eng_mode": "none",
              "scale": 1,
              "offset": 0,
              "unit": "",
              "enums": [],
              "monitor": false,
              "write_fc": "auto",
              "access": "rw",
              "value_words": [
                0
              ]
            },
            {
              "address": 38,
              "name": "Data 6",
              "format": "Unsigned",
              "eng_format": "Unsigned",
              "eng_mode": "none",
              "scale": 1,
              "offset": 0,
              "unit": "",
              "enums": [],
              "monitor": false,
              "write_fc": "auto",
              "access": "rw",
              "value_words": [
                0
              ]
            },
            {
              "address": 39,
              "name": "Data 7",
              "format": "Unsigned",
              "eng_format": "Unsigned",
              "eng_mode": "none",
              "scale": 1,
              "offset": 0,
              "unit": "",
              "enums": [],
              "monitor": false,
              "write_fc": "auto",
              "access": "rw",
              "value_words": [
                0
              ]
            },
            {
              "address": 40,
              "name": "Data 8",
              "format": "Unsigned",
              "eng_format": "Unsigned",
              "eng_mode": "none",
              "scale": 1,
              "offset": 0,
              "unit": "",
              "enums": [],
              "monitor": false,
              "write_fc": "auto",
              "access": "rw",
              "value_words": [
                0
              ]
            },
            {
              "address": 41,
              "name": "Data 9",
              "format": "Unsigned",
              "eng_format": "Unsigned",
              "eng_mode": "none",
              "scale": 1,
              "offset": 0,
              "unit": "",
              "enums": [],
              "monitor": false,
              "write_fc": "auto",
              "access": "rw",
              "value_words": [
                0
              ]
            }
          ],
          "input": [
            {
              "address": 0,
              "name": "Firmware",
              "format": "Hex",
              "eng_format": "Hex",
              "eng_mode": "none",
              "scale": 1,
              "offset": 0,
              "unit": "",
              "enums": [],
              "monitor": false,
              "write_fc": "auto",
              "access": "rw",
              "value_words": [
                259
              ]
            }
          ],
          "coils": [
            {
              "address": 0,
              "name": "Heater",
              "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": "Alarm",
              "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": []
        }
      ]
    }
  ]
}
