{
 "manufacturer": "Carlo Gavazzi",
 "manufacturer_slug": "carlo-gavazzi",
 "model": "DCT1 DC energy meter (Modbus RTU)",
 "model_slug": "dct1",
 "short_model": "DCT1",
 "aliases": [
  "DCT1A60V10LS1X",
  "DCT1A60V10LS2EC",
  "DCT1A60V10LS3EC",
  "DCT1A30V10LS1X",
  "DCT1A30V10LS2EC",
  "DCT1A30V10LS3EC"
 ],
 "equipment_type": "Energy meter (DC)",
 "applies_to": "DCT1 300 A and 600 A / 1000 V DC meters, with and without signed data (S1/S2/S3), protocol version 1.1.",
 "summary": "The DCT1 is a DC energy meter with an internal shunt, built for EV charging and DC distribution, with an RS485 Modbus RTU port. Readings are 32-bit integers sent low word first with fixed weights. This map covers voltage, current, power, imported and exported energy and Ah, run-hour counters, shunt temperatures, cable-loss value, serial settings, resets and the device state word.",
 "transport": [
  "RTU"
 ],
 "defaults": {
  "unit_id": 1,
  "baud": 9600,
  "parity": "None",
  "data_bits": null,
  "stop_bits": 1,
  "tcp_port": null
 },
 "addressing": {
  "convention": "Modicon",
  "note": "Each row gives a 6-digit Modicon number (3xxxxx) and the hex physical address; the hex value goes in the frame. 300001 / 0000h is read at wire address 0. Functions 03 and 04 both read the measurement tables."
 },
 "default_word_order": "CDAB",
 "firmware": null,
 "source": {
  "title": "DCT1 Modbus Communication Protocol - Public version",
  "doc_number": "Version 1.1",
  "revision_date": "2024-02-13",
  "url": "https://www.gavazziautomation.com/fileadmin/images/PIM/OTHERSTUFF/COMPRO/DCT1_CPP_%20V1.1_05042024.pdf",
  "pages": "Data format p. 9 (PDF p. 10); tables pp. 10-23 (PDF pp. 11-27)"
 },
 "notes": [
  "Word order: the protocol says INT32, UINT32 and UINT64 are sent least significant word first, bytes MSB first, so 32-bit values here are CDAB.",
  "Left out: the FLOAT block at 0200h (word order for IEEE 754 values is not stated), the INT64 high-resolution energy blocks at 0500h and 0600h (word order is stated only for UINT64, not INT64), the mirror INT32 block at 0100h-0124h, the signed OBIS data maps at 0700h and 0800h, public key, signatures, device tag and serial-number ASCII words, maintenance mode and the cable-loss datalogger.",
  "The ID code (000Bh) and firmware word (0302h) may only be read one word at a time.",
  "Reading an address not in the tables returns an illegal data address exception.",
  "The factory-reset sequence at 4020h (write 0x0A0A then 0xC1A0 within 5 s) is not listed as a register.",
  "Start-up current of run hour counter is printed as Modicon 304360 next to hex 110Bh; the hex address (wire 4363) is used."
 ],
 "registers": [
  {
   "table": "input_register",
   "address": 0,
   "documented": "300001 / 0000h",
   "name": "Voltage",
   "description": "",
   "data_type": "INT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 0.1,
   "units": "V",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 2,
   "documented": "300003 / 0002h",
   "name": "Current",
   "description": "",
   "data_type": "INT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 0.001,
   "units": "A",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 4,
   "documented": "300005 / 0004h",
   "name": "Power",
   "description": "Signed DC power.",
   "data_type": "INT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 0.1,
   "units": "W",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 11,
   "documented": "300012 / 000Bh",
   "name": "Carlo Gavazzi identification code",
   "description": "Read one word at a time.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": {
    "1808": "DCT1A60V10LS1X",
    "1809": "DCT1A60V10LS2EC",
    "1810": "DCT1A60V10LS3EC",
    "1812": "DCT1A30V10LS1X",
    "1813": "DCT1A30V10LS2EC",
    "1814": "DCT1A30V10LS3EC"
   },
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 16,
   "documented": "300017 / 0010h",
   "name": "kWh (+) TOT",
   "description": "",
   "data_type": "INT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 0.1,
   "units": "kWh",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 18,
   "documented": "300019 / 0012h",
   "name": "Ah (+) TOT",
   "description": "",
   "data_type": "INT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 0.1,
   "units": "Ah",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 20,
   "documented": "300021 / 0014h",
   "name": "kWh (+) PAR",
   "description": "",
   "data_type": "INT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 0.1,
   "units": "kWh",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 22,
   "documented": "300023 / 0016h",
   "name": "Ah (+) PAR",
   "description": "",
   "data_type": "INT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 0.1,
   "units": "Ah",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 32,
   "documented": "300033 / 0020h",
   "name": "kWh (-) TOT",
   "description": "",
   "data_type": "INT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 0.1,
   "units": "kWh",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 34,
   "documented": "300035 / 0022h",
   "name": "Ah (-) TOT",
   "description": "",
   "data_type": "INT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 0.1,
   "units": "Ah",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 36,
   "documented": "300037 / 0024h",
   "name": "kWh (-) PAR",
   "description": "",
   "data_type": "INT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 0.1,
   "units": "kWh",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 38,
   "documented": "300039 / 0026h",
   "name": "Ah (-) PAR",
   "description": "",
   "data_type": "INT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 0.1,
   "units": "Ah",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 44,
   "documented": "300045 / 002Ch",
   "name": "Run hour meter",
   "description": "",
   "data_type": "INT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 0.01,
   "units": "h",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 46,
   "documented": "300047 / 002Eh",
   "name": "Run hour meter kWh-",
   "description": "Hours counted while energy flows in the negative direction.",
   "data_type": "INT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 0.01,
   "units": "h",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 48,
   "documented": "300049 / 0030h",
   "name": "Run hour meter ON time",
   "description": "Hours the meter has been powered.",
   "data_type": "INT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 0.01,
   "units": "h",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 50,
   "documented": "300051 / 0032h",
   "name": "Run hour meter PAR",
   "description": "",
   "data_type": "INT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 0.01,
   "units": "h",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 52,
   "documented": "300053 / 0034h",
   "name": "Run hour meter kWh- PAR",
   "description": "",
   "data_type": "INT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 0.01,
   "units": "h",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 54,
   "documented": "300055 / 0036h",
   "name": "Run hour meter ON time PAR",
   "description": "",
   "data_type": "INT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 0.01,
   "units": "h",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 80,
   "documented": "300081 / 0050h",
   "name": "T1 (shunt terminal 1 temperature)",
   "description": "",
   "data_type": "INT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 0.1,
   "units": "°C",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 82,
   "documented": "300083 / 0052h",
   "name": "T2 (shunt terminal 2 temperature)",
   "description": "",
   "data_type": "INT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 0.1,
   "units": "°C",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 770,
   "documented": "300771 / 0302h",
   "name": "Firmware version and revision",
   "description": "High byte: bits 0-3 minor, bits 4-7 major; low byte: revision.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 4355,
   "documented": "304356 / 1103h",
   "name": "Easy connection",
   "description": "",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "RW",
   "values": {
    "0": "Disabled (default)",
    "1": "Enabled"
   },
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 4363,
   "documented": "304360 / 110Bh",
   "name": "Startup current of run hour counter",
   "description": "Range 480-600000 (0.48-600 A), default 480. Write with function 10h only.",
   "data_type": "UINT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 0.001,
   "units": "A",
   "access": "RW",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 8192,
   "documented": "308193 / 2000h",
   "name": "RS485 instrument address",
   "description": "1-247, default 1.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "RW",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 8193,
   "documented": "308194 / 2001h",
   "name": "RS485 baud rate",
   "description": "",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "RW",
   "values": {
    "1": "9.6 kbps (default)",
    "2": "19.2 kbps",
    "3": "38.4 kbps",
    "4": "57.6 kbps",
    "5": "115.2 kbps"
   },
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 8194,
   "documented": "308195 / 2002h",
   "name": "RS485 parity",
   "description": "",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "RW",
   "values": {
    "1": "No parity (default)",
    "2": "Even parity"
   },
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 8195,
   "documented": "308196 / 2003h",
   "name": "Stop bit",
   "description": "",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "RW",
   "values": {
    "1": "1 (default)",
    "2": "2"
   },
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 8196,
   "documented": "308197 / 2004h",
   "name": "RS485 delay on reply",
   "description": "0-1000, default 20.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "ms",
   "access": "RW",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 8208,
   "documented": "308209 / 2010h",
   "name": "Update serial communication settings",
   "description": "Write 1 to apply new serial settings; other values do nothing.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "RW",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 9471,
   "documented": "309472 / 24FFh",
   "name": "Signature type",
   "description": "",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": {
    "0": "256-bit signature",
    "1": "384-bit signature",
    "2": "No signature"
   },
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 16387,
   "documented": "316388 / 4003h",
   "name": "Reset total counters",
   "description": "Write 1. Non-certified: totals, Ah, run hours. Certified: Ah and run hours only.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "RW",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 16388,
   "documented": "316389 / 4004h",
   "name": "Reset partial counters",
   "description": "Write 1 to clear partial energy, Ah and run-hour counters.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "RW",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 20487,
   "documented": "320488 / 5007h",
   "name": "Production year",
   "description": "Four digits.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 20498,
   "documented": "320499 / 5012h",
   "name": "Device state",
   "description": "",
   "data_type": "BITMAP16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "Voltage over range (beyond ±1150.1 V)",
    "1": "Current over range (±600.1 A on A60 models, ±300.1 A on A30 models)",
    "2": "Terminal 1 temperature below -25.1 °C",
    "3": "Terminal 1 temperature above 120.1 °C",
    "4": "Terminal 2 temperature below -25.1 °C",
    "5": "Terminal 2 temperature above 120.1 °C",
    "15": "Internal device fault"
   },
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 20499,
   "documented": "320500 / 5013h",
   "name": "Shunt temperature position 1",
   "description": "",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 0.1,
   "units": "°C",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 20500,
   "documented": "320501 / 5014h",
   "name": "Shunt temperature position 2",
   "description": "",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 0.1,
   "units": "°C",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 20736,
   "documented": "320737 / 5100h",
   "name": "Cable loss value",
   "description": "Cable resistance used to correct energy.",
   "data_type": "INT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 1,
   "units": "mOhm",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  }
 ],
 "integration": {
  "summary": "Read input registers 0000h-0005h (function 04 or 03) for volts, amps and watts, and 0010h-0027h for energy and Ah; decode INT32 low word first and apply the fixed weights (V and W x10, A x1000, kWh and Ah x10).",
  "minimum_registers": [
   {
    "table": "input_register",
    "address": 0,
    "why": "DC voltage"
   },
   {
    "table": "input_register",
    "address": 2,
    "why": "DC current"
   },
   {
    "table": "input_register",
    "address": 4,
    "why": "DC power"
   },
   {
    "table": "input_register",
    "address": 16,
    "why": "Imported energy total"
   },
   {
    "table": "input_register",
    "address": 32,
    "why": "Exported energy total"
   },
   {
    "table": "holding_register",
    "address": 20498,
    "why": "Device state / over-range flags"
   }
  ],
  "enable": "Modbus RTU is always on. Set address, baud, parity and stop bits at 2000h-2003h, then write 1 to 2010h to apply them.",
  "watchdog": null,
  "quirks": [
   "32-bit values are low word first (CDAB).",
   "Energy totals carry 0.1 kWh resolution; run hours are in 1/100 h.",
   "On certified (signed) versions the total-energy reset is blocked."
  ],
  "setup": [
   "Defaults: address 1, 9600 baud, no parity, 1 stop bit, 20 ms reply delay.",
   "Terminate both bus ends with 120 ohm; above 1000 m or 160 devices add a repeater."
  ],
  "gotchas": [
   "New serial settings only take effect after writing 1 to 2010h.",
   "Max answer time is about 160 ms; retry 2-3 times before declaring the meter offline."
  ]
 },
 "page": "https://easymodbus.com/modbus-register-maps/carlo-gavazzi/dct1",
 "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."
}
