{
 "manufacturer": "Teledyne Detcon",
 "manufacturer_slug": "detcon",
 "model": "Model X40 integrated alarm and control system (Modbus slave port)",
 "model_slug": "x40",
 "short_model": "X40",
 "aliases": [
  "X40-08-N4X",
  "X40-32-N4X",
  "X40-32-N1P",
  "X40 controller"
 ],
 "equipment_type": "Sensor controller (gas detection)",
 "applies_to": "Teledyne Detcon X40 gas detection controllers (8 and 32 channel, N4X and N1P enclosures), instruction manual Document #3672 Rev. 3.8, slave port register map.",
 "summary": "The X40 is a Teledyne Detcon gas detection controller that collects up to 32 wired or wireless sensors (CXT sensors, alarm stations, repeaters) and drives alarms. A Modbus RTU slave port lets a BMS or PLC read every channel: one register with the gas reading and one with alarm, fault, calibration, battery, decimal-point and device-type bits. This map lists all 64 registers.",
 "transport": [
  "RTU"
 ],
 "defaults": {
  "unit_id": null,
  "baud": 9600,
  "parity": "None",
  "data_bits": 8,
  "stop_bits": 1,
  "tcp_port": null
 },
 "addressing": {
  "convention": "0-based",
  "note": "Table 4 numbers the registers from 40000 (channel 1 reading), so the digits after the leading 4 are the wire address: channel n reading = 2(n-1), status = 2(n-1)+1."
 },
 "default_word_order": null,
 "firmware": null,
 "source": {
  "title": "X40 Instruction Manual",
  "doc_number": "Document #3672, Rev. 3.8",
  "revision_date": "2023-01-18",
  "url": "https://www.teledynegasandflamedetection.com/en-us/Products/docs/controllers-x40-usermanual-english.pdf",
  "pages": "p. 41 (slave port settings, Table 4 register map), p. 42 (status register bits)"
 },
 "notes": [
  "Readings carry no fixed scale: status bits 7-6 give the decimal point (00 = none, 01 = divide by 10, 10 = divide by 100, 11 = undefined, treat as none).",
  "Status bits 15-13 give the device type on that channel: 000 disabled, 001 CXT sensor, 010 alarm station, 011 SmartHMI, 100 repeater, 101 sensor, 110/111 undefined (sensor).",
  "Bits 4, 6 and 7 are only active for sensor devices. Bit 11 is not used.",
  "The manual does not name the function code; the 4xxxx register numbers indicate holding registers (function 03).",
  "The slave address is set in the controller menu; no default is stated in this section."
 ],
 "registers": [
  {
   "table": "holding_register",
   "address": 0,
   "documented": "40000",
   "name": "Channel 1 reading",
   "description": "Gas reading; divide per decimal-point bits 6-7 of the status register.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 1,
   "documented": "40001",
   "name": "Channel 1 status",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Alarm 1",
    "1": "Alarm 2",
    "2": "Alarm 3",
    "3": "Sensor/alarm fault",
    "4": "In calibration (sensors only)",
    "5": "Communication error",
    "6": "Decimal point bit 0 (01 = divide by 10)",
    "7": "Decimal point bit 1 (10 = divide by 100)",
    "8": "Smart battery pack present",
    "9": "Battery error",
    "10": "Low battery",
    "12": "Wireless network type (0 = 320, 1 = 300)",
    "13": "Device type bit 0",
    "14": "Device type bit 1",
    "15": "Device type bit 2"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 2,
   "documented": "40002",
   "name": "Channel 2 reading",
   "description": "Gas reading; divide per decimal-point bits 6-7 of the status register.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 3,
   "documented": "40003",
   "name": "Channel 2 status",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Alarm 1",
    "1": "Alarm 2",
    "2": "Alarm 3",
    "3": "Sensor/alarm fault",
    "4": "In calibration (sensors only)",
    "5": "Communication error",
    "6": "Decimal point bit 0 (01 = divide by 10)",
    "7": "Decimal point bit 1 (10 = divide by 100)",
    "8": "Smart battery pack present",
    "9": "Battery error",
    "10": "Low battery",
    "12": "Wireless network type (0 = 320, 1 = 300)",
    "13": "Device type bit 0",
    "14": "Device type bit 1",
    "15": "Device type bit 2"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 4,
   "documented": "40004",
   "name": "Channel 3 reading",
   "description": "Gas reading; divide per decimal-point bits 6-7 of the status register.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 5,
   "documented": "40005",
   "name": "Channel 3 status",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Alarm 1",
    "1": "Alarm 2",
    "2": "Alarm 3",
    "3": "Sensor/alarm fault",
    "4": "In calibration (sensors only)",
    "5": "Communication error",
    "6": "Decimal point bit 0 (01 = divide by 10)",
    "7": "Decimal point bit 1 (10 = divide by 100)",
    "8": "Smart battery pack present",
    "9": "Battery error",
    "10": "Low battery",
    "12": "Wireless network type (0 = 320, 1 = 300)",
    "13": "Device type bit 0",
    "14": "Device type bit 1",
    "15": "Device type bit 2"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 6,
   "documented": "40006",
   "name": "Channel 4 reading",
   "description": "Gas reading; divide per decimal-point bits 6-7 of the status register.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 7,
   "documented": "40007",
   "name": "Channel 4 status",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Alarm 1",
    "1": "Alarm 2",
    "2": "Alarm 3",
    "3": "Sensor/alarm fault",
    "4": "In calibration (sensors only)",
    "5": "Communication error",
    "6": "Decimal point bit 0 (01 = divide by 10)",
    "7": "Decimal point bit 1 (10 = divide by 100)",
    "8": "Smart battery pack present",
    "9": "Battery error",
    "10": "Low battery",
    "12": "Wireless network type (0 = 320, 1 = 300)",
    "13": "Device type bit 0",
    "14": "Device type bit 1",
    "15": "Device type bit 2"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 8,
   "documented": "40008",
   "name": "Channel 5 reading",
   "description": "Gas reading; divide per decimal-point bits 6-7 of the status register.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 9,
   "documented": "40009",
   "name": "Channel 5 status",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Alarm 1",
    "1": "Alarm 2",
    "2": "Alarm 3",
    "3": "Sensor/alarm fault",
    "4": "In calibration (sensors only)",
    "5": "Communication error",
    "6": "Decimal point bit 0 (01 = divide by 10)",
    "7": "Decimal point bit 1 (10 = divide by 100)",
    "8": "Smart battery pack present",
    "9": "Battery error",
    "10": "Low battery",
    "12": "Wireless network type (0 = 320, 1 = 300)",
    "13": "Device type bit 0",
    "14": "Device type bit 1",
    "15": "Device type bit 2"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 10,
   "documented": "40010",
   "name": "Channel 6 reading",
   "description": "Gas reading; divide per decimal-point bits 6-7 of the status register.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 11,
   "documented": "40011",
   "name": "Channel 6 status",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Alarm 1",
    "1": "Alarm 2",
    "2": "Alarm 3",
    "3": "Sensor/alarm fault",
    "4": "In calibration (sensors only)",
    "5": "Communication error",
    "6": "Decimal point bit 0 (01 = divide by 10)",
    "7": "Decimal point bit 1 (10 = divide by 100)",
    "8": "Smart battery pack present",
    "9": "Battery error",
    "10": "Low battery",
    "12": "Wireless network type (0 = 320, 1 = 300)",
    "13": "Device type bit 0",
    "14": "Device type bit 1",
    "15": "Device type bit 2"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 12,
   "documented": "40012",
   "name": "Channel 7 reading",
   "description": "Gas reading; divide per decimal-point bits 6-7 of the status register.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 13,
   "documented": "40013",
   "name": "Channel 7 status",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Alarm 1",
    "1": "Alarm 2",
    "2": "Alarm 3",
    "3": "Sensor/alarm fault",
    "4": "In calibration (sensors only)",
    "5": "Communication error",
    "6": "Decimal point bit 0 (01 = divide by 10)",
    "7": "Decimal point bit 1 (10 = divide by 100)",
    "8": "Smart battery pack present",
    "9": "Battery error",
    "10": "Low battery",
    "12": "Wireless network type (0 = 320, 1 = 300)",
    "13": "Device type bit 0",
    "14": "Device type bit 1",
    "15": "Device type bit 2"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 14,
   "documented": "40014",
   "name": "Channel 8 reading",
   "description": "Gas reading; divide per decimal-point bits 6-7 of the status register.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 15,
   "documented": "40015",
   "name": "Channel 8 status",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Alarm 1",
    "1": "Alarm 2",
    "2": "Alarm 3",
    "3": "Sensor/alarm fault",
    "4": "In calibration (sensors only)",
    "5": "Communication error",
    "6": "Decimal point bit 0 (01 = divide by 10)",
    "7": "Decimal point bit 1 (10 = divide by 100)",
    "8": "Smart battery pack present",
    "9": "Battery error",
    "10": "Low battery",
    "12": "Wireless network type (0 = 320, 1 = 300)",
    "13": "Device type bit 0",
    "14": "Device type bit 1",
    "15": "Device type bit 2"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 16,
   "documented": "40016",
   "name": "Channel 9 reading",
   "description": "Gas reading; divide per decimal-point bits 6-7 of the status register.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 17,
   "documented": "40017",
   "name": "Channel 9 status",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Alarm 1",
    "1": "Alarm 2",
    "2": "Alarm 3",
    "3": "Sensor/alarm fault",
    "4": "In calibration (sensors only)",
    "5": "Communication error",
    "6": "Decimal point bit 0 (01 = divide by 10)",
    "7": "Decimal point bit 1 (10 = divide by 100)",
    "8": "Smart battery pack present",
    "9": "Battery error",
    "10": "Low battery",
    "12": "Wireless network type (0 = 320, 1 = 300)",
    "13": "Device type bit 0",
    "14": "Device type bit 1",
    "15": "Device type bit 2"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 18,
   "documented": "40018",
   "name": "Channel 10 reading",
   "description": "Gas reading; divide per decimal-point bits 6-7 of the status register.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 19,
   "documented": "40019",
   "name": "Channel 10 status",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Alarm 1",
    "1": "Alarm 2",
    "2": "Alarm 3",
    "3": "Sensor/alarm fault",
    "4": "In calibration (sensors only)",
    "5": "Communication error",
    "6": "Decimal point bit 0 (01 = divide by 10)",
    "7": "Decimal point bit 1 (10 = divide by 100)",
    "8": "Smart battery pack present",
    "9": "Battery error",
    "10": "Low battery",
    "12": "Wireless network type (0 = 320, 1 = 300)",
    "13": "Device type bit 0",
    "14": "Device type bit 1",
    "15": "Device type bit 2"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 20,
   "documented": "40020",
   "name": "Channel 11 reading",
   "description": "Gas reading; divide per decimal-point bits 6-7 of the status register.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 21,
   "documented": "40021",
   "name": "Channel 11 status",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Alarm 1",
    "1": "Alarm 2",
    "2": "Alarm 3",
    "3": "Sensor/alarm fault",
    "4": "In calibration (sensors only)",
    "5": "Communication error",
    "6": "Decimal point bit 0 (01 = divide by 10)",
    "7": "Decimal point bit 1 (10 = divide by 100)",
    "8": "Smart battery pack present",
    "9": "Battery error",
    "10": "Low battery",
    "12": "Wireless network type (0 = 320, 1 = 300)",
    "13": "Device type bit 0",
    "14": "Device type bit 1",
    "15": "Device type bit 2"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 22,
   "documented": "40022",
   "name": "Channel 12 reading",
   "description": "Gas reading; divide per decimal-point bits 6-7 of the status register.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 23,
   "documented": "40023",
   "name": "Channel 12 status",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Alarm 1",
    "1": "Alarm 2",
    "2": "Alarm 3",
    "3": "Sensor/alarm fault",
    "4": "In calibration (sensors only)",
    "5": "Communication error",
    "6": "Decimal point bit 0 (01 = divide by 10)",
    "7": "Decimal point bit 1 (10 = divide by 100)",
    "8": "Smart battery pack present",
    "9": "Battery error",
    "10": "Low battery",
    "12": "Wireless network type (0 = 320, 1 = 300)",
    "13": "Device type bit 0",
    "14": "Device type bit 1",
    "15": "Device type bit 2"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 24,
   "documented": "40024",
   "name": "Channel 13 reading",
   "description": "Gas reading; divide per decimal-point bits 6-7 of the status register.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 25,
   "documented": "40025",
   "name": "Channel 13 status",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Alarm 1",
    "1": "Alarm 2",
    "2": "Alarm 3",
    "3": "Sensor/alarm fault",
    "4": "In calibration (sensors only)",
    "5": "Communication error",
    "6": "Decimal point bit 0 (01 = divide by 10)",
    "7": "Decimal point bit 1 (10 = divide by 100)",
    "8": "Smart battery pack present",
    "9": "Battery error",
    "10": "Low battery",
    "12": "Wireless network type (0 = 320, 1 = 300)",
    "13": "Device type bit 0",
    "14": "Device type bit 1",
    "15": "Device type bit 2"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 26,
   "documented": "40026",
   "name": "Channel 14 reading",
   "description": "Gas reading; divide per decimal-point bits 6-7 of the status register.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 27,
   "documented": "40027",
   "name": "Channel 14 status",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Alarm 1",
    "1": "Alarm 2",
    "2": "Alarm 3",
    "3": "Sensor/alarm fault",
    "4": "In calibration (sensors only)",
    "5": "Communication error",
    "6": "Decimal point bit 0 (01 = divide by 10)",
    "7": "Decimal point bit 1 (10 = divide by 100)",
    "8": "Smart battery pack present",
    "9": "Battery error",
    "10": "Low battery",
    "12": "Wireless network type (0 = 320, 1 = 300)",
    "13": "Device type bit 0",
    "14": "Device type bit 1",
    "15": "Device type bit 2"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 28,
   "documented": "40028",
   "name": "Channel 15 reading",
   "description": "Gas reading; divide per decimal-point bits 6-7 of the status register.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 29,
   "documented": "40029",
   "name": "Channel 15 status",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Alarm 1",
    "1": "Alarm 2",
    "2": "Alarm 3",
    "3": "Sensor/alarm fault",
    "4": "In calibration (sensors only)",
    "5": "Communication error",
    "6": "Decimal point bit 0 (01 = divide by 10)",
    "7": "Decimal point bit 1 (10 = divide by 100)",
    "8": "Smart battery pack present",
    "9": "Battery error",
    "10": "Low battery",
    "12": "Wireless network type (0 = 320, 1 = 300)",
    "13": "Device type bit 0",
    "14": "Device type bit 1",
    "15": "Device type bit 2"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 30,
   "documented": "40030",
   "name": "Channel 16 reading",
   "description": "Gas reading; divide per decimal-point bits 6-7 of the status register.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 31,
   "documented": "40031",
   "name": "Channel 16 status",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Alarm 1",
    "1": "Alarm 2",
    "2": "Alarm 3",
    "3": "Sensor/alarm fault",
    "4": "In calibration (sensors only)",
    "5": "Communication error",
    "6": "Decimal point bit 0 (01 = divide by 10)",
    "7": "Decimal point bit 1 (10 = divide by 100)",
    "8": "Smart battery pack present",
    "9": "Battery error",
    "10": "Low battery",
    "12": "Wireless network type (0 = 320, 1 = 300)",
    "13": "Device type bit 0",
    "14": "Device type bit 1",
    "15": "Device type bit 2"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 32,
   "documented": "40032",
   "name": "Channel 17 reading",
   "description": "Gas reading; divide per decimal-point bits 6-7 of the status register.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 33,
   "documented": "40033",
   "name": "Channel 17 status",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Alarm 1",
    "1": "Alarm 2",
    "2": "Alarm 3",
    "3": "Sensor/alarm fault",
    "4": "In calibration (sensors only)",
    "5": "Communication error",
    "6": "Decimal point bit 0 (01 = divide by 10)",
    "7": "Decimal point bit 1 (10 = divide by 100)",
    "8": "Smart battery pack present",
    "9": "Battery error",
    "10": "Low battery",
    "12": "Wireless network type (0 = 320, 1 = 300)",
    "13": "Device type bit 0",
    "14": "Device type bit 1",
    "15": "Device type bit 2"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 34,
   "documented": "40034",
   "name": "Channel 18 reading",
   "description": "Gas reading; divide per decimal-point bits 6-7 of the status register.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 35,
   "documented": "40035",
   "name": "Channel 18 status",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Alarm 1",
    "1": "Alarm 2",
    "2": "Alarm 3",
    "3": "Sensor/alarm fault",
    "4": "In calibration (sensors only)",
    "5": "Communication error",
    "6": "Decimal point bit 0 (01 = divide by 10)",
    "7": "Decimal point bit 1 (10 = divide by 100)",
    "8": "Smart battery pack present",
    "9": "Battery error",
    "10": "Low battery",
    "12": "Wireless network type (0 = 320, 1 = 300)",
    "13": "Device type bit 0",
    "14": "Device type bit 1",
    "15": "Device type bit 2"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 36,
   "documented": "40036",
   "name": "Channel 19 reading",
   "description": "Gas reading; divide per decimal-point bits 6-7 of the status register.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 37,
   "documented": "40037",
   "name": "Channel 19 status",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Alarm 1",
    "1": "Alarm 2",
    "2": "Alarm 3",
    "3": "Sensor/alarm fault",
    "4": "In calibration (sensors only)",
    "5": "Communication error",
    "6": "Decimal point bit 0 (01 = divide by 10)",
    "7": "Decimal point bit 1 (10 = divide by 100)",
    "8": "Smart battery pack present",
    "9": "Battery error",
    "10": "Low battery",
    "12": "Wireless network type (0 = 320, 1 = 300)",
    "13": "Device type bit 0",
    "14": "Device type bit 1",
    "15": "Device type bit 2"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 38,
   "documented": "40038",
   "name": "Channel 20 reading",
   "description": "Gas reading; divide per decimal-point bits 6-7 of the status register.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 39,
   "documented": "40039",
   "name": "Channel 20 status",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Alarm 1",
    "1": "Alarm 2",
    "2": "Alarm 3",
    "3": "Sensor/alarm fault",
    "4": "In calibration (sensors only)",
    "5": "Communication error",
    "6": "Decimal point bit 0 (01 = divide by 10)",
    "7": "Decimal point bit 1 (10 = divide by 100)",
    "8": "Smart battery pack present",
    "9": "Battery error",
    "10": "Low battery",
    "12": "Wireless network type (0 = 320, 1 = 300)",
    "13": "Device type bit 0",
    "14": "Device type bit 1",
    "15": "Device type bit 2"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 40,
   "documented": "40040",
   "name": "Channel 21 reading",
   "description": "Gas reading; divide per decimal-point bits 6-7 of the status register.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 41,
   "documented": "40041",
   "name": "Channel 21 status",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Alarm 1",
    "1": "Alarm 2",
    "2": "Alarm 3",
    "3": "Sensor/alarm fault",
    "4": "In calibration (sensors only)",
    "5": "Communication error",
    "6": "Decimal point bit 0 (01 = divide by 10)",
    "7": "Decimal point bit 1 (10 = divide by 100)",
    "8": "Smart battery pack present",
    "9": "Battery error",
    "10": "Low battery",
    "12": "Wireless network type (0 = 320, 1 = 300)",
    "13": "Device type bit 0",
    "14": "Device type bit 1",
    "15": "Device type bit 2"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 42,
   "documented": "40042",
   "name": "Channel 22 reading",
   "description": "Gas reading; divide per decimal-point bits 6-7 of the status register.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 43,
   "documented": "40043",
   "name": "Channel 22 status",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Alarm 1",
    "1": "Alarm 2",
    "2": "Alarm 3",
    "3": "Sensor/alarm fault",
    "4": "In calibration (sensors only)",
    "5": "Communication error",
    "6": "Decimal point bit 0 (01 = divide by 10)",
    "7": "Decimal point bit 1 (10 = divide by 100)",
    "8": "Smart battery pack present",
    "9": "Battery error",
    "10": "Low battery",
    "12": "Wireless network type (0 = 320, 1 = 300)",
    "13": "Device type bit 0",
    "14": "Device type bit 1",
    "15": "Device type bit 2"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 44,
   "documented": "40044",
   "name": "Channel 23 reading",
   "description": "Gas reading; divide per decimal-point bits 6-7 of the status register.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 45,
   "documented": "40045",
   "name": "Channel 23 status",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Alarm 1",
    "1": "Alarm 2",
    "2": "Alarm 3",
    "3": "Sensor/alarm fault",
    "4": "In calibration (sensors only)",
    "5": "Communication error",
    "6": "Decimal point bit 0 (01 = divide by 10)",
    "7": "Decimal point bit 1 (10 = divide by 100)",
    "8": "Smart battery pack present",
    "9": "Battery error",
    "10": "Low battery",
    "12": "Wireless network type (0 = 320, 1 = 300)",
    "13": "Device type bit 0",
    "14": "Device type bit 1",
    "15": "Device type bit 2"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 46,
   "documented": "40046",
   "name": "Channel 24 reading",
   "description": "Gas reading; divide per decimal-point bits 6-7 of the status register.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 47,
   "documented": "40047",
   "name": "Channel 24 status",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Alarm 1",
    "1": "Alarm 2",
    "2": "Alarm 3",
    "3": "Sensor/alarm fault",
    "4": "In calibration (sensors only)",
    "5": "Communication error",
    "6": "Decimal point bit 0 (01 = divide by 10)",
    "7": "Decimal point bit 1 (10 = divide by 100)",
    "8": "Smart battery pack present",
    "9": "Battery error",
    "10": "Low battery",
    "12": "Wireless network type (0 = 320, 1 = 300)",
    "13": "Device type bit 0",
    "14": "Device type bit 1",
    "15": "Device type bit 2"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 48,
   "documented": "40048",
   "name": "Channel 25 reading",
   "description": "Gas reading; divide per decimal-point bits 6-7 of the status register.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 49,
   "documented": "40049",
   "name": "Channel 25 status",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Alarm 1",
    "1": "Alarm 2",
    "2": "Alarm 3",
    "3": "Sensor/alarm fault",
    "4": "In calibration (sensors only)",
    "5": "Communication error",
    "6": "Decimal point bit 0 (01 = divide by 10)",
    "7": "Decimal point bit 1 (10 = divide by 100)",
    "8": "Smart battery pack present",
    "9": "Battery error",
    "10": "Low battery",
    "12": "Wireless network type (0 = 320, 1 = 300)",
    "13": "Device type bit 0",
    "14": "Device type bit 1",
    "15": "Device type bit 2"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 50,
   "documented": "40050",
   "name": "Channel 26 reading",
   "description": "Gas reading; divide per decimal-point bits 6-7 of the status register.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 51,
   "documented": "40051",
   "name": "Channel 26 status",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Alarm 1",
    "1": "Alarm 2",
    "2": "Alarm 3",
    "3": "Sensor/alarm fault",
    "4": "In calibration (sensors only)",
    "5": "Communication error",
    "6": "Decimal point bit 0 (01 = divide by 10)",
    "7": "Decimal point bit 1 (10 = divide by 100)",
    "8": "Smart battery pack present",
    "9": "Battery error",
    "10": "Low battery",
    "12": "Wireless network type (0 = 320, 1 = 300)",
    "13": "Device type bit 0",
    "14": "Device type bit 1",
    "15": "Device type bit 2"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 52,
   "documented": "40052",
   "name": "Channel 27 reading",
   "description": "Gas reading; divide per decimal-point bits 6-7 of the status register.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 53,
   "documented": "40053",
   "name": "Channel 27 status",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Alarm 1",
    "1": "Alarm 2",
    "2": "Alarm 3",
    "3": "Sensor/alarm fault",
    "4": "In calibration (sensors only)",
    "5": "Communication error",
    "6": "Decimal point bit 0 (01 = divide by 10)",
    "7": "Decimal point bit 1 (10 = divide by 100)",
    "8": "Smart battery pack present",
    "9": "Battery error",
    "10": "Low battery",
    "12": "Wireless network type (0 = 320, 1 = 300)",
    "13": "Device type bit 0",
    "14": "Device type bit 1",
    "15": "Device type bit 2"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 54,
   "documented": "40054",
   "name": "Channel 28 reading",
   "description": "Gas reading; divide per decimal-point bits 6-7 of the status register.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 55,
   "documented": "40055",
   "name": "Channel 28 status",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Alarm 1",
    "1": "Alarm 2",
    "2": "Alarm 3",
    "3": "Sensor/alarm fault",
    "4": "In calibration (sensors only)",
    "5": "Communication error",
    "6": "Decimal point bit 0 (01 = divide by 10)",
    "7": "Decimal point bit 1 (10 = divide by 100)",
    "8": "Smart battery pack present",
    "9": "Battery error",
    "10": "Low battery",
    "12": "Wireless network type (0 = 320, 1 = 300)",
    "13": "Device type bit 0",
    "14": "Device type bit 1",
    "15": "Device type bit 2"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 56,
   "documented": "40056",
   "name": "Channel 29 reading",
   "description": "Gas reading; divide per decimal-point bits 6-7 of the status register.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 57,
   "documented": "40057",
   "name": "Channel 29 status",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Alarm 1",
    "1": "Alarm 2",
    "2": "Alarm 3",
    "3": "Sensor/alarm fault",
    "4": "In calibration (sensors only)",
    "5": "Communication error",
    "6": "Decimal point bit 0 (01 = divide by 10)",
    "7": "Decimal point bit 1 (10 = divide by 100)",
    "8": "Smart battery pack present",
    "9": "Battery error",
    "10": "Low battery",
    "12": "Wireless network type (0 = 320, 1 = 300)",
    "13": "Device type bit 0",
    "14": "Device type bit 1",
    "15": "Device type bit 2"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 58,
   "documented": "40058",
   "name": "Channel 30 reading",
   "description": "Gas reading; divide per decimal-point bits 6-7 of the status register.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 59,
   "documented": "40059",
   "name": "Channel 30 status",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Alarm 1",
    "1": "Alarm 2",
    "2": "Alarm 3",
    "3": "Sensor/alarm fault",
    "4": "In calibration (sensors only)",
    "5": "Communication error",
    "6": "Decimal point bit 0 (01 = divide by 10)",
    "7": "Decimal point bit 1 (10 = divide by 100)",
    "8": "Smart battery pack present",
    "9": "Battery error",
    "10": "Low battery",
    "12": "Wireless network type (0 = 320, 1 = 300)",
    "13": "Device type bit 0",
    "14": "Device type bit 1",
    "15": "Device type bit 2"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 60,
   "documented": "40060",
   "name": "Channel 31 reading",
   "description": "Gas reading; divide per decimal-point bits 6-7 of the status register.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 61,
   "documented": "40061",
   "name": "Channel 31 status",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Alarm 1",
    "1": "Alarm 2",
    "2": "Alarm 3",
    "3": "Sensor/alarm fault",
    "4": "In calibration (sensors only)",
    "5": "Communication error",
    "6": "Decimal point bit 0 (01 = divide by 10)",
    "7": "Decimal point bit 1 (10 = divide by 100)",
    "8": "Smart battery pack present",
    "9": "Battery error",
    "10": "Low battery",
    "12": "Wireless network type (0 = 320, 1 = 300)",
    "13": "Device type bit 0",
    "14": "Device type bit 1",
    "15": "Device type bit 2"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 62,
   "documented": "40062",
   "name": "Channel 32 reading",
   "description": "Gas reading; divide per decimal-point bits 6-7 of the status register.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 63,
   "documented": "40063",
   "name": "Channel 32 status",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Alarm 1",
    "1": "Alarm 2",
    "2": "Alarm 3",
    "3": "Sensor/alarm fault",
    "4": "In calibration (sensors only)",
    "5": "Communication error",
    "6": "Decimal point bit 0 (01 = divide by 10)",
    "7": "Decimal point bit 1 (10 = divide by 100)",
    "8": "Smart battery pack present",
    "9": "Battery error",
    "10": "Low battery",
    "12": "Wireless network type (0 = 320, 1 = 300)",
    "13": "Device type bit 0",
    "14": "Device type bit 1",
    "15": "Device type bit 2"
   },
   "offset": 0
  }
 ],
 "integration": {
  "summary": "Give each X40 its own slave address, poll at 9600 8N1 no faster than once per second, and read registers 0-63 (reading/status pairs per channel).",
  "minimum_registers": [
   {
    "table": "holding_register",
    "address": 0,
    "why": "Channel 1 reading"
   },
   {
    "table": "holding_register",
    "address": 1,
    "why": "Channel 1 status (alarms, fault, decimals)"
   },
   {
    "table": "holding_register",
    "address": 2,
    "why": "Channel 2 reading"
   },
   {
    "table": "holding_register",
    "address": 3,
    "why": "Channel 2 status"
   }
  ],
  "enable": "The manual describes no separate enable step for the slave port; give each X40 its own device address when several share one network.",
  "watchdog": null,
  "quirks": [
   "Read the status register with every reading to get the decimal point.",
   "Minimum inter-poll delay 150 ms; response timeout at least 2000 ms; poll at most once per second."
  ],
  "setup": [
   "9600 baud, 8 data bits, no parity, 1 stop bit."
  ],
  "gotchas": [
   "A channel with type bits 000 is disabled; ignore its reading."
  ]
 },
 "page": "https://easymodbus.com/modbus-register-maps/detcon/x40",
 "address_note": "address = 0-based Modbus wire (PDU) address; documented = as printed in the source.",
 "note": "Re-typed from the manufacturer's public documentation (see source) and verified against it. Registers vary by firmware and options; verify against the live device before writing."
}
