{
  "$schema": "https://raw.githubusercontent.com/nobrega8/mbmap-library/main/schema/mbmap-2.schema.json",
  "mbmap": 2,
  "vendor": "Chint",
  "model": "DTSU666 / DSSU666",
  "models": ["DTSU666", "DSSU666"],
  "vendor_website": "chintglobal.com",
  "description": "Three-phase DIN rail energy meter with RS485 (DTSU666 four-wire, DSSU666 three-wire), bidirectional",
  "revision": 2,
  "source": "Chint, \"DTSU666.001 / DSSU666.001 series User Manual\", ZTW0.464.0104 (2023-11-14); https://www.chintglobal.com/content/dam/chint/global/product-center/instruments-meters/electricity-meter/din-rail-meter/dtsu666/manual/DTSU666%20DSSU666%20User%20Manual.pdf",
  "sources": [
    {"title": "DTSU666.001 / DSSU666.001 series User Manual", "version": "ZTW0.464.0104", "date": "2023-11-14", "url": "https://www.chintglobal.com/content/dam/chint/global/product-center/instruments-meters/electricity-meter/din-rail-meter/dtsu666/manual/DTSU666%20DSSU666%20User%20Manual.pdf"}
  ],
  "notes": [
    "Chint DTSU666 (three-phase four-wire) and DSSU666 (three-phase three-wire) DIN rail energy meters, Modbus RTU.",
    "This is the meter often supplied with solar inverters as a grid meter.",
    "Measurements and energies are IEEE 754 floats (ABCD). The electricity data block is in raw units: apply the scale column (e.g. a voltage of 2301.5 means 230.15 V).",
    "All values are on the secondary side: with CTs or VTs, multiply by the CT ratio (0x0006) and the VT ratio (0x0007 x 0.1).",
    "Rows marked \"4-wire only\" read nothing useful on a DSSU666 / three-wire connection."
  ],
  "protocol": "rtu",
  "unit_id": 1,
  "baudrate": 9600,
  "parity": "N",
  "databits": 8,
  "stopbits": 1,
  "byte_order": "big",
  "word_order": "big",
  "address_base": 0,
  "x_status": "official",
  "registers": [
    {"name": "Software version", "group": "Settings", "area": "holding", "address": "0x0000", "type": "int16", "access": "R"},
    {"name": "Programming code", "group": "Settings", "area": "holding", "address": "0x0001", "type": "int16", "access": "RW", "description": "1-9999"},
    {"name": "Energy reset", "group": "Settings", "area": "holding", "address": "0x0002", "type": "int16", "access": "W", "enum": {"1": "Clear energy"}},
    {"name": "Network type", "group": "Settings", "area": "holding", "address": "0x0003", "type": "int16", "access": "RW", "enum": {"0": "3-phase 4-wire", "1": "3-phase 3-wire"}},
    {"name": "CT ratio", "group": "Settings", "area": "holding", "address": "0x0006", "type": "int16", "access": "RW", "description": "1-9999"},
    {"name": "VT ratio", "group": "Settings", "area": "holding", "address": "0x0007", "type": "int16", "scale": 0.1, "access": "RW", "description": "0.1-999.9"},
    {"name": "Display rotation time", "group": "Settings", "area": "holding", "address": "0x000A", "type": "int16", "unit": "s", "access": "RW"},
    {"name": "Backlight time", "group": "Settings", "area": "holding", "address": "0x000B", "type": "int16", "unit": "min", "access": "RW"},
    {"name": "Protocol and parity", "group": "Communication", "area": "holding", "address": "0x002C", "type": "int16", "access": "RW", "enum": {"1": "DL/T645", "2": "Modbus n.2", "3": "Modbus n.1", "4": "Modbus E.1", "5": "Modbus o.1"}},
    {"name": "Baud rate", "group": "Communication", "area": "holding", "address": "0x002D", "type": "int16", "access": "RW", "enum": {"0": "1200", "1": "2400", "2": "4800", "3": "9600"}},
    {"name": "Modbus address", "group": "Communication", "area": "holding", "address": "0x002E", "type": "int16", "access": "RW", "description": "1-247"},
    {"name": "Voltage L1-L2", "group": "Voltage", "area": "holding", "address": "0x2000", "type": "float32", "scale": 0.1, "unit": "V", "access": "R"},
    {"name": "Voltage L2-L3", "group": "Voltage", "area": "holding", "address": "0x2002", "type": "float32", "scale": 0.1, "unit": "V", "access": "R"},
    {"name": "Voltage L3-L1", "group": "Voltage", "area": "holding", "address": "0x2004", "type": "float32", "scale": 0.1, "unit": "V", "access": "R"},
    {"name": "Voltage L1-N", "group": "Voltage", "area": "holding", "address": "0x2006", "type": "float32", "scale": 0.1, "unit": "V", "access": "R", "description": "4-wire only"},
    {"name": "Voltage L2-N", "group": "Voltage", "area": "holding", "address": "0x2008", "type": "float32", "scale": 0.1, "unit": "V", "access": "R", "description": "4-wire only"},
    {"name": "Voltage L3-N", "group": "Voltage", "area": "holding", "address": "0x200A", "type": "float32", "scale": 0.1, "unit": "V", "access": "R", "description": "4-wire only"},
    {"name": "Current L1", "group": "Current", "area": "holding", "address": "0x200C", "type": "float32", "scale": 0.001, "unit": "A", "access": "R"},
    {"name": "Current L2", "group": "Current", "area": "holding", "address": "0x200E", "type": "float32", "scale": 0.001, "unit": "A", "access": "R"},
    {"name": "Current L3", "group": "Current", "area": "holding", "address": "0x2010", "type": "float32", "scale": 0.001, "unit": "A", "access": "R"},
    {"name": "Total active power", "group": "Power", "area": "holding", "address": "0x2012", "type": "float32", "scale": 0.1, "unit": "W", "access": "R", "description": "Positive = import"},
    {"name": "Active power L1", "group": "Power", "area": "holding", "address": "0x2014", "type": "float32", "scale": 0.1, "unit": "W", "access": "R"},
    {"name": "Active power L2", "group": "Power", "area": "holding", "address": "0x2016", "type": "float32", "scale": 0.1, "unit": "W", "access": "R", "description": "4-wire only"},
    {"name": "Active power L3", "group": "Power", "area": "holding", "address": "0x2018", "type": "float32", "scale": 0.1, "unit": "W", "access": "R"},
    {"name": "Total reactive power", "group": "Power", "area": "holding", "address": "0x201A", "type": "float32", "scale": 0.1, "unit": "var", "access": "R"},
    {"name": "Reactive power L1", "group": "Power", "area": "holding", "address": "0x201C", "type": "float32", "scale": 0.1, "unit": "var", "access": "R"},
    {"name": "Reactive power L2", "group": "Power", "area": "holding", "address": "0x201E", "type": "float32", "scale": 0.1, "unit": "var", "access": "R", "description": "4-wire only"},
    {"name": "Reactive power L3", "group": "Power", "area": "holding", "address": "0x2020", "type": "float32", "scale": 0.1, "unit": "var", "access": "R"},
    {"name": "Total power factor", "group": "Power factor", "area": "holding", "address": "0x202A", "type": "float32", "scale": 0.001, "access": "R", "description": "Positive = inductive, negative = capacitive"},
    {"name": "Power factor L1", "group": "Power factor", "area": "holding", "address": "0x202C", "type": "float32", "scale": 0.001, "access": "R", "description": "4-wire only"},
    {"name": "Power factor L2", "group": "Power factor", "area": "holding", "address": "0x202E", "type": "float32", "scale": 0.001, "access": "R", "description": "4-wire only"},
    {"name": "Power factor L3", "group": "Power factor", "area": "holding", "address": "0x2030", "type": "float32", "scale": 0.001, "access": "R", "description": "4-wire only"},
    {"name": "Frequency", "group": "Voltage", "area": "holding", "address": "0x2044", "type": "float32", "scale": 0.01, "unit": "Hz", "access": "R"},
    {"name": "Total import active energy", "group": "Energy", "area": "holding", "address": "0x101E", "type": "float32", "unit": "kWh", "access": "R"},
    {"name": "Import active energy L1", "group": "Energy", "area": "holding", "address": "0x1020", "type": "float32", "unit": "kWh", "access": "R"},
    {"name": "Import active energy L2", "group": "Energy", "area": "holding", "address": "0x1022", "type": "float32", "unit": "kWh", "access": "R"},
    {"name": "Import active energy L3", "group": "Energy", "area": "holding", "address": "0x1024", "type": "float32", "unit": "kWh", "access": "R"},
    {"name": "Net import active energy", "group": "Energy", "area": "holding", "address": "0x1026", "type": "float32", "unit": "kWh", "access": "R"},
    {"name": "Total export active energy", "group": "Energy", "area": "holding", "address": "0x1028", "type": "float32", "unit": "kWh", "access": "R"},
    {"name": "Export active energy L1", "group": "Energy", "area": "holding", "address": "0x102A", "type": "float32", "unit": "kWh", "access": "R"},
    {"name": "Export active energy L2", "group": "Energy", "area": "holding", "address": "0x102C", "type": "float32", "unit": "kWh", "access": "R"},
    {"name": "Export active energy L3", "group": "Energy", "area": "holding", "address": "0x102E", "type": "float32", "unit": "kWh", "access": "R"},
    {"name": "Net export active energy", "group": "Energy", "area": "holding", "address": "0x1030", "type": "float32", "unit": "kWh", "access": "R"}
  ]
}
