{
 "manufacturer": "Teracom",
 "manufacturer_slug": "teracom",
 "model": "TDO340 4-channel Modbus RTU relay output module",
 "model_slug": "tdo340",
 "short_model": "TDO340",
 "aliases": [
  "TDO340"
 ],
 "equipment_type": "Sensor (relay output module)",
 "applies_to": "TDO340 per the Teracom TDO340 user manual Revision R1.2, firmware V1.03 or later.",
 "summary": "The TDO340 is a Teracom DIN-rail module with four SPST relays (3 A) driven over Modbus RTU RS-485. Relays can be switched as coils or holding registers, and the module has configurable power-up states and a comms-loss watchdog with per-relay actions.",
 "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": null,
 "firmware": "V1.03 or later",
 "source": {
  "title": "TDO340 User manual",
  "doc_number": "Revision R1.2",
  "revision_date": "2026-10",
  "url": "https://www.teracomsystems.com/download/tdo340-modbus-rtu-relay-output-module/",
  "pages": "pp. 5-7 (Modbus address table)"
 },
 "notes": [
  "Addresses are taken from the manual's PDU address column (0-based); the logical column adds 40001 for holding registers and 1 for coils (discrete outputs), as the manual states.",
  "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.",
  "Coils run from PDU 1 (logical 2) to PDU 4 (logical 5) for relays 1-4, exactly as the table prints them; there is no relay at coil 0.",
  "This model has no Data order register and no 32-bit measurement values."
 ],
 "registers": [
  {
   "table": "coil",
   "address": 1,
   "documented": "2",
   "name": "Relay 1",
   "description": "Relay state as a coil.",
   "data_type": "BIT",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": null,
   "bits": null
  },
  {
   "table": "coil",
   "address": 2,
   "documented": "3",
   "name": "Relay 2",
   "description": "Relay state as a coil.",
   "data_type": "BIT",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": null,
   "bits": null
  },
  {
   "table": "coil",
   "address": 3,
   "documented": "4",
   "name": "Relay 3",
   "description": "Relay state as a coil.",
   "data_type": "BIT",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": null,
   "bits": null
  },
  {
   "table": "coil",
   "address": 4,
   "documented": "5",
   "name": "Relay 4",
   "description": "Relay state as a coil.",
   "data_type": "BIT",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": null,
   "bits": null
  },
  {
   "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": 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": 100,
   "documented": "40101",
   "name": "All relay outputs, binary",
   "description": "All four relay states in one word (0-15); write to set them all at once.",
   "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": 101,
   "documented": "40102",
   "name": "Relay 1 output, binary",
   "description": "Relay state as a 0/1 word.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "Off",
    "1": "On"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 102,
   "documented": "40103",
   "name": "Relay 2 output, binary",
   "description": "Relay state as a 0/1 word.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "Off",
    "1": "On"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 103,
   "documented": "40104",
   "name": "Relay 3 output, binary",
   "description": "Relay state as a 0/1 word.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "Off",
    "1": "On"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 104,
   "documented": "40105",
   "name": "Relay 4 output, binary",
   "description": "Relay state as a 0/1 word.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "Off",
    "1": "On"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 200,
   "documented": "40201",
   "name": "Relays power-on state",
   "description": "What the relays do at power-up.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "Restore last set states",
    "1": "All relays on",
    "2": "All relays off",
    "3": "Use per-relay settings (PDU 201-204)"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 201,
   "documented": "40202",
   "name": "Relay 1 power-on state",
   "description": "Power-up state; used only when PDU 200 = 3.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "Restore last set state",
    "1": "Relay on",
    "2": "Relay off"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 202,
   "documented": "40203",
   "name": "Relay 2 power-on state",
   "description": "Power-up state; used only when PDU 200 = 3.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "Restore last set state",
    "1": "Relay on",
    "2": "Relay off"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 203,
   "documented": "40204",
   "name": "Relay 3 power-on state",
   "description": "Power-up state; used only when PDU 200 = 3.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "Restore last set state",
    "1": "Relay on",
    "2": "Relay off"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 204,
   "documented": "40205",
   "name": "Relay 4 power-on state",
   "description": "Power-up state; used only when PDU 200 = 3.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "Restore last set state",
    "1": "Relay on",
    "2": "Relay off"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 301,
   "documented": "40302",
   "name": "Relay 1 no-communication behavior",
   "description": "Action when the comms watchdog expires.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "Keep last state",
    "1": "Relay on",
    "2": "Relay off",
    "3": "Pulse to the opposite state for the PDU 306 time"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 302,
   "documented": "40303",
   "name": "Relay 2 no-communication behavior",
   "description": "Action when the comms watchdog expires.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "Keep last state",
    "1": "Relay on",
    "2": "Relay off",
    "3": "Pulse to the opposite state for the PDU 306 time"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 303,
   "documented": "40304",
   "name": "Relay 3 no-communication behavior",
   "description": "Action when the comms watchdog expires.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "Keep last state",
    "1": "Relay on",
    "2": "Relay off",
    "3": "Pulse to the opposite state for the PDU 306 time"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 304,
   "documented": "40305",
   "name": "Relay 4 no-communication behavior",
   "description": "Action when the comms watchdog expires.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "Keep last state",
    "1": "Relay on",
    "2": "Relay off",
    "3": "Pulse to the opposite state for the PDU 306 time"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 305,
   "documented": "40306",
   "name": "Modbus no-communication timeout",
   "description": "Comms-loss timeout; 0 disables the watchdog.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "s",
   "access": "RW",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 306,
   "documented": "40307",
   "name": "Watchdog pulse duration",
   "description": "Pulse length for watchdog action 3 (1-255 s).",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "s",
   "access": "RW",
   "values": null,
   "bits": null
  }
 ],
 "integration": {
  "summary": "Switch relays with function 05 on coils 1-4, or write PDU 100 (bitmask) / 101-104 with function 06. Set the watchdog timeout (PDU 305) and per-relay actions (PDU 301-304) before commissioning.",
  "minimum_registers": [
   {
    "table": "holding_register",
    "address": 100,
    "why": "All relays bitmask"
   },
   {
    "table": "holding_register",
    "address": 101,
    "why": "Relay 1"
   },
   {
    "table": "coil",
    "address": 1,
    "why": "Relay 1 coil"
   },
   {
    "table": "holding_register",
    "address": 305,
    "why": "Watchdog timeout"
   },
   {
    "table": "holding_register",
    "address": 301,
    "why": "Relay 1 comms-loss action"
   },
   {
    "table": "holding_register",
    "address": 200,
    "why": "Power-up behaviour"
   }
  ],
  "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": "PDU 305 sets a comms-loss timeout in seconds (0 = off); any valid request addressed to the module restarts it. On expiry each relay follows its PDU 301-304 action; relays then hold until a new command arrives.",
  "quirks": [
   "Baud rate and framing changes only take effect after the device is powered off and on again."
  ],
  "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 wiring Term to RS485-. A daisy chain is recommended."
  ],
  "gotchas": []
 },
 "page": "https://easymodbus.com/modbus-register-maps/teracom/tdo340",
 "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."
}
