{
 "manufacturer": "Gas Detection Australia",
 "model": "GDA 4022",
 "short_model": "GDA 4022",
 "aliases": [
  "4022 V4.2",
  "GDA-4022"
 ],
 "equipment_type": "Gas detection controller (sensor)",
 "applies_to": "Gas Detection Australia 4022 two-sensor gas detection controller, Modbus document 4022 V4.2 Rev 2.0 (16/11/2022).",
 "summary": "The GDA 4022 is a two-channel gas detection controller whose isolated RS-485 port runs as a Modbus RTU slave by default. Gas concentrations are input registers, alarm states and the system fault are coils, and configuration (gas type, units, alarm behaviour, location names, mA outputs) sits in holding registers. All values are 16-bit, signed unless the document says otherwise.",
 "transport": [
  "RTU"
 ],
 "defaults": {
  "unit_id": null,
  "baud": 9600,
  "parity": "None",
  "data_bits": 8,
  "stop_bits": 1,
  "tcp_port": null
 },
 "addressing": {
  "convention": "Modicon",
  "note": "The table gives three columns per register: the physical (wire) address, the 1-based offset and the legacy Modicon address, e.g. physical 00000 = offset 00001 = 30001. Wire addresses here are the physical column; 'documented' shows the legacy number."
 },
 "default_word_order": null,
 "firmware": "V4.2",
 "source": {
  "title": "4022 V4.2 RS-485 (Modbus/Mimic)",
  "doc_number": "4022 V4.2 Rev 2.0",
  "revision_date": "2022-11-16",
  "url": "https://www.gasdetectionaustralia.com.au/wp-content/uploads/2025/04/GDA-4022-V4.2-Modbus.pdf",
  "pages": "Table 1, pp. 2-13; gas type table p. 13-14"
 },
 "notes": [
  "Coils are read with function 01, holding registers with 03 and the concentrations with 04, as listed in the table's function-code column.",
  "The document says all integers are signed unless stated, so registers are typed INT16.",
  "Left out: sensor range, scale, alarm thresholds, hysteresis, mA output mode/scaling/update period and value/status display mode. The range/threshold formulas (value x 10 to a power taken from the scale register) are not legible in the published PDF text.",
  "Concentration readings are raw; the document says the value is x10 when the gas range is % LEL or % Vol, so use the units register (40201/40202) to pick the divisor.",
  "Documented addresses use the legacy (Modicon-style) column; coils use 0xxxx numbers."
 ],
 "registers": [
  {
   "table": "coil",
   "address": 100,
   "documented": "00101",
   "name": "Sensor 1 alarm 1",
   "description": "1 = alarm on.",
   "data_type": "BIT",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "coil",
   "address": 101,
   "documented": "00102",
   "name": "Sensor 2 alarm 1",
   "description": "1 = alarm on.",
   "data_type": "BIT",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "coil",
   "address": 200,
   "documented": "00201",
   "name": "Sensor 1 alarm 2",
   "description": "1 = alarm on.",
   "data_type": "BIT",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "coil",
   "address": 201,
   "documented": "00202",
   "name": "Sensor 2 alarm 2",
   "description": "1 = alarm on.",
   "data_type": "BIT",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "coil",
   "address": 300,
   "documented": "00301",
   "name": "Sensor 1 alarm 3",
   "description": "1 = alarm on.",
   "data_type": "BIT",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "coil",
   "address": 301,
   "documented": "00302",
   "name": "Sensor 2 alarm 3",
   "description": "1 = alarm on.",
   "data_type": "BIT",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "coil",
   "address": 400,
   "documented": "00401",
   "name": "System fault",
   "description": "1 = system in fault.",
   "data_type": "BIT",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 0,
   "documented": "30001",
   "name": "Sensor 1 concentration",
   "description": "Raw value; divide by 10 when the sensor unit is % LEL or % Vol.",
   "data_type": "INT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 1,
   "documented": "30002",
   "name": "Sensor 2 concentration",
   "description": "Raw value; divide by 10 when the sensor unit is % LEL or % Vol.",
   "data_type": "INT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 100,
   "documented": "40101",
   "name": "Sensor 1 gas type",
   "description": "",
   "data_type": "INT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": {
    "0": "CO",
    "1": "O2",
    "2": "CO2",
    "3": "FLM",
    "4": "H2",
    "5": "CH4",
    "6": "LNG",
    "7": "Prop",
    "8": "LPG",
    "9": "H2S",
    "10": "NH3",
    "11": "NO2",
    "12": "Gas",
    "13": "R22",
    "14": "R123",
    "15": "R134a",
    "16": "R407c",
    "17": "R410a",
    "18": "Refrg",
    "19": "(blank)"
   },
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 101,
   "documented": "40102",
   "name": "Sensor 2 gas type",
   "description": "",
   "data_type": "INT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": {
    "0": "CO",
    "1": "O2",
    "2": "CO2",
    "3": "FLM",
    "4": "H2",
    "5": "CH4",
    "6": "LNG",
    "7": "Prop",
    "8": "LPG",
    "9": "H2S",
    "10": "NH3",
    "11": "NO2",
    "12": "Gas",
    "13": "R22",
    "14": "R123",
    "15": "R134a",
    "16": "R407c",
    "17": "R410a",
    "18": "Refrg",
    "19": "(blank)"
   },
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 200,
   "documented": "40201",
   "name": "Sensor 1 units of concentration",
   "description": "",
   "data_type": "INT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": {
    "0": "PPM",
    "1": "% Vol",
    "2": "% LEL",
    "3": "PPB"
   },
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 201,
   "documented": "40202",
   "name": "Sensor 2 units of concentration",
   "description": "",
   "data_type": "INT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": {
    "0": "PPM",
    "1": "% Vol",
    "2": "% LEL",
    "3": "PPB"
   },
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 300,
   "documented": "40301",
   "name": "Sensor 1 enabled",
   "description": "",
   "data_type": "INT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": {
    "0": "Off",
    "1": "On"
   },
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 301,
   "documented": "40302",
   "name": "Sensor 2 enabled",
   "description": "",
   "data_type": "INT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": {
    "0": "Off",
    "1": "On"
   },
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 400,
   "documented": "40401",
   "name": "System equipment ID",
   "description": "Returns 4020.",
   "data_type": "INT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 1100,
   "documented": "41101",
   "name": "Sensor 1 alarm threshold direction",
   "description": "",
   "data_type": "INT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": {
    "0": "Rising",
    "1": "Falling",
    "2": "Range (AL1 rising, AL2 falling, AL3 unused)"
   },
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 1101,
   "documented": "41102",
   "name": "Sensor 2 alarm threshold direction",
   "description": "",
   "data_type": "INT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": {
    "0": "Rising",
    "1": "Falling",
    "2": "Range (AL1 rising, AL2 falling, AL3 unused)"
   },
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 1200,
   "documented": "41201",
   "name": "Sensor 1 latching alarms",
   "description": "",
   "data_type": "INT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": {
    "0": "Non-latching",
    "1": "Latching"
   },
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 1201,
   "documented": "41202",
   "name": "Sensor 2 latching alarms",
   "description": "",
   "data_type": "INT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": {
    "0": "Non-latching",
    "1": "Latching"
   },
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 1300,
   "documented": "41301",
   "name": "Sensor 1 alarm validation delay",
   "description": "0-999 s.",
   "data_type": "INT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "s",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 1301,
   "documented": "41302",
   "name": "Sensor 2 alarm validation delay",
   "description": "0-999 s.",
   "data_type": "INT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "s",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 1400,
   "documented": "41401",
   "name": "Sensor 1 alarm run-on time",
   "description": "0-3600 s.",
   "data_type": "INT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "s",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 1401,
   "documented": "41402",
   "name": "Sensor 2 alarm run-on time",
   "description": "0-3600 s.",
   "data_type": "INT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "s",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 1600,
   "documented": "41601",
   "name": "Sensor 1 location name",
   "description": "16 characters over registers 41601-41616.",
   "data_type": "STRING",
   "length": 16,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 1700,
   "documented": "41701",
   "name": "Sensor 2 location name",
   "description": "16 characters over registers 41701-41716.",
   "data_type": "STRING",
   "length": 16,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 2000,
   "documented": "42001",
   "name": "mA output 1 range",
   "description": "",
   "data_type": "INT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": {
    "0": "4-20 mA",
    "1": "0-20 mA"
   },
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 2001,
   "documented": "42002",
   "name": "mA output 2 range",
   "description": "",
   "data_type": "INT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": {
    "0": "4-20 mA",
    "1": "0-20 mA"
   },
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 2002,
   "documented": "42003",
   "name": "mA output 3 range",
   "description": "",
   "data_type": "INT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": {
    "0": "4-20 mA",
    "1": "0-20 mA"
   },
   "bits": null,
   "offset": 0
  }
 ],
 "integration": {
  "summary": "Read input registers 0-1 (function 04) for concentrations, coils 100-400 (function 01) for alarms and fault, and holding registers 200/201 once to learn the units.",
  "minimum_registers": [
   {
    "table": "input_register",
    "address": 0,
    "why": "Sensor 1 concentration"
   },
   {
    "table": "input_register",
    "address": 1,
    "why": "Sensor 2 concentration"
   },
   {
    "table": "coil",
    "address": 100,
    "why": "Sensor 1 alarm 1"
   },
   {
    "table": "coil",
    "address": 400,
    "why": "System fault"
   },
   {
    "table": "holding_register",
    "address": 200,
    "why": "Sensor 1 units (sets the x10 rule)"
   },
   {
    "table": "holding_register",
    "address": 100,
    "why": "Sensor 1 gas type"
   }
  ],
  "enable": "The RS-485 port is a Modbus slave in the factory configuration; no enable step is needed.",
  "watchdog": null,
  "quirks": [
   "The controller normally answers within 20 ms; keep at least 3.5 characters (>3.7 ms) between frames."
  ],
  "setup": [
   "Fixed serial format: 9600 baud, 8 data bits, no parity, 1 stop bit.",
   "Fit termination at both bus ends for runs over 30 m or noisy sites; enable master bias resistors if communication is unreliable."
  ],
  "gotchas": [
   "Ring or star wiring is not recommended for the RS-485 bus."
  ]
 },
 "manufacturer_slug": "gas-detection-australia",
 "model_slug": "gda-4022",
 "page": "https://easymodbus.com/modbus-register-maps/gas-detection-australia/gda-4022",
 "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."
}
