{
 "manufacturer": "Teracom",
 "manufacturer_slug": "teracom",
 "model": "TSM400-4-CP Modbus CO2 and barometric pressure sensor",
 "model_slug": "tsm400-4-cp",
 "short_model": "TSM400-4-CP",
 "aliases": [
  "TSM400-4-CP"
 ],
 "equipment_type": "Sensor (CO2 / pressure)",
 "applies_to": "TSM400-4-CP per the Teracom TSM400-4-CP user manual TSM400-4-CP-R1.9.",
 "summary": "The TSM400-4-CP is a Teracom wall-mount NDIR CO2 and barometric pressure sensor with Modbus RTU over RS-485. CO2 in ppm and pressure in hPa or mmHg are given as floats and 16-bit integers, with trim registers.",
 "transport": [
  "RTU"
 ],
 "defaults": {
  "unit_id": 1,
  "baud": 19200,
  "parity": "Even",
  "data_bits": 8,
  "stop_bits": 1,
  "tcp_port": null
 },
 "addressing": {
  "convention": "Modicon",
  "note": "The register table prints both a PDU (wire) address and a logical address (PDU + 40001 for holding registers). 'documented' holds the logical number; the PDU number is what goes in the request, e.g. logical 40101 = PDU 100."
 },
 "default_word_order": "ABCD",
 "firmware": null,
 "source": {
  "title": "TSM400-4-CP User manual",
  "doc_number": "TSM400-4-CP-R1.9",
  "revision_date": "2026-10",
  "url": "https://www.teracomsystems.com/download/tsm400-4-cp-modbus-co2-and-pressure-sensor/",
  "pages": "p. 6 (Modbus address table)"
 },
 "notes": [
  "Addresses are taken from the manual's PDU address column (0-based); the logical column is the same number plus 40001, the holding-register offset the manual states.",
  "All 32-bit values follow the Data order register (PDU 13): 1 = most significant word first (factory default), 2 = least significant word first. The map shows the default, ABCD.",
  "Left out: the 32-bit float/integer test-value registers (PDU 82-95), which only exist to check word order; the 16-bit test values are kept.",
  "The mmHg x100 pressure in the integer block is split into a high word and a low word (PDU 704/705); they are listed as two 16-bit registers as the manual does. Combine as high x 65536 + low, then divide by 100.",
  "CO2 automatic self-calibration is switched by PDU 2002 (0 = off, 1 = on); it assumes the sensor sees about 400 ppm fresh air at least weekly.",
  "Readings can be trimmed with the multiplier and offset floats near PDU 2115: corrected = measured x multiplier + offset."
 ],
 "registers": [
  {
   "table": "holding_register",
   "address": 10,
   "documented": "40011",
   "name": "RS-485 address",
   "description": "Modbus slave address of the device.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 11,
   "documented": "40012",
   "name": "Baud rate",
   "description": "Serial baud rate; takes effect after a power cycle.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 12,
   "documented": "40013",
   "name": "Parity, data, stop bits",
   "description": "Parity/data/stop framing; takes effect after a power cycle.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "1": "8 data bits, even parity, 1 stop (E81)",
    "2": "8 data bits, odd parity, 1 stop (O81)",
    "3": "8 data bits, no parity, 1 stop (N81)"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 13,
   "documented": "40014",
   "name": "Data order",
   "description": "Word order used for all 32-bit values.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "1": "MSWF - most significant word first",
    "2": "LSWF - least significant word first"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 14,
   "documented": "40015",
   "name": "Device code",
   "description": "Fixed product identification code.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 15,
   "documented": "40016",
   "name": "FW version",
   "description": "Firmware version number.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 18,
   "documented": "40019",
   "name": "Vendor URL",
   "description": "Maker URL as UTF-8 text (64 bytes).",
   "data_type": "STRING",
   "length": 32,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 86,
   "documented": "40087",
   "name": "Signed integer test value",
   "description": "",
   "data_type": "INT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 91,
   "documented": "40092",
   "name": "Unsigned integer test value",
   "description": "",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 106,
   "documented": "40107",
   "name": "CO2, ppm",
   "description": "",
   "data_type": "FLOAT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "ppm",
   "access": "R",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 108,
   "documented": "40109",
   "name": "Pressure, hPa",
   "description": "",
   "data_type": "FLOAT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "hPa",
   "access": "R",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 206,
   "documented": "40207",
   "name": "CO2, ppm",
   "description": "",
   "data_type": "FLOAT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "ppm",
   "access": "R",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 208,
   "documented": "40209",
   "name": "Pressure, mmHg",
   "description": "",
   "data_type": "FLOAT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "mmHg",
   "access": "R",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 603,
   "documented": "40604",
   "name": "CO2, ppm",
   "description": "",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "ppm",
   "access": "R",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 604,
   "documented": "40605",
   "name": "Pressure, hPa",
   "description": "",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "hPa",
   "access": "R",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 703,
   "documented": "40704",
   "name": "CO2, ppm",
   "description": "",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "ppm",
   "access": "R",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 704,
   "documented": "40705",
   "name": "Pressure High-Word, mmHg x 100",
   "description": "High word of pressure in mmHg x100.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 705,
   "documented": "40706",
   "name": "Pressure Low-Word, mmHg x 100",
   "description": "Low word of pressure in mmHg x100.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 2002,
   "documented": "42003",
   "name": "Automatic self-calibration (ASC)",
   "description": "CO2 automatic self-calibration switch.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "disable",
    "1": "enable"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 2115,
   "documented": "42116",
   "name": "CO2 multiplier",
   "description": "",
   "data_type": "FLOAT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 2117,
   "documented": "42118",
   "name": "CO2 offset",
   "description": "",
   "data_type": "FLOAT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 2119,
   "documented": "42120",
   "name": "Pressure multiplier",
   "description": "",
   "data_type": "FLOAT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 2121,
   "documented": "42122",
   "name": "Pressure hPa offset",
   "description": "",
   "data_type": "FLOAT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "hPa",
   "access": "RW",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 2123,
   "documented": "42124",
   "name": "Pressure mmHg offset",
   "description": "",
   "data_type": "FLOAT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "mmHg",
   "access": "R",
   "values": null,
   "bits": null
  }
 ],
 "integration": {
  "summary": "Read CO2 and pressure as floats at PDU 106-109 with function 03, or as plain 16-bit values at PDU 603-604.",
  "minimum_registers": [
   {
    "table": "holding_register",
    "address": 106,
    "why": "CO2 ppm (float)"
   },
   {
    "table": "holding_register",
    "address": 108,
    "why": "Pressure hPa (float)"
   },
   {
    "table": "holding_register",
    "address": 603,
    "why": "CO2 ppm (uint16)"
   },
   {
    "table": "holding_register",
    "address": 604,
    "why": "Pressure hPa (uint16)"
   },
   {
    "table": "holding_register",
    "address": 2002,
    "why": "CO2 self-calibration on/off"
   }
  ],
  "enable": "Modbus RTU is the only interface and is always active; there is nothing to switch on. Factory settings are address 1, 19200 baud, 8E1.",
  "watchdog": null,
  "quirks": [
   "Baud rate and framing changes only take effect after the device is powered off and on again.",
   "Word order for every 32-bit value is set by the Data order register (PDU 13); check it before blaming the scaling."
  ],
  "setup": [
   "Set unit ID (PDU 10), baud (PDU 11) and framing (PDU 12), then power-cycle the device.",
   "Terminate both ends of the RS-485 bus with 120 ohm; the built-in resistor is enabled by shorting the RS485- and TERM terminals. A daisy chain is recommended."
  ],
  "gotchas": []
 },
 "page": "https://easymodbus.com/modbus-register-maps/teracom/tsm400-4-cp",
 "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."
}
