{
 "manufacturer": "Lovato Electric",
 "manufacturer_slug": "lovato-electric",
 "model": "DCRL3 / DCRL5 / DCRL8 power factor controllers",
 "model_slug": "dcrl3-dcrl5-dcrl8",
 "short_model": "DCRL",
 "aliases": [
  "DCRL3",
  "DCRL5",
  "DCRL8",
  "DCRL 3",
  "DCRL 5",
  "DCRL 8"
 ],
 "equipment_type": "Power meter (power factor controller)",
 "applies_to": "DCRL3, DCRL5 and DCRL8 automatic power factor controllers with optical port or EXP10xx modules (Modbus TCP on DCRL8 only), per protocol document I427 GB 05 20.",
 "summary": "The DCRL3, DCRL5 and DCRL8 are Lovato automatic power factor controllers (the register table covers up to 14 steps). They speak Modbus RTU and ASCII, and the DCRL8 also Modbus TCP, on the optical port or EXP10xx expansion modules. This map covers voltage, current, power factor, powers, alarm bits, step timers and counters, harmonics and the mode, step and reset commands.",
 "transport": [
  "RTU",
  "ASCII",
  "TCP"
 ],
 "defaults": {
  "unit_id": 1,
  "baud": 9600,
  "parity": "None",
  "data_bits": 8,
  "stop_bits": 1,
  "tcp_port": 1001
 },
 "addressing": {
  "convention": "1-based",
  "note": "The document states that, as in the Modbus standard, the address in a request is the table address minus one; its function 04 example (registers 10h-17h requested with start 00 0F) and ASCII example (table 04h sent as 00 03) agree. Addresses here are already reduced by one."
 },
 "default_word_order": "ABCD",
 "firmware": null,
 "source": {
  "title": "DCRL3 - DCRL5 - DCRL8 digital power factor controller - Modbus communication protocol",
  "doc_number": "I427 GB 05 20",
  "revision_date": "2020-05-20",
  "url": "https://datasheet.lovatoelectric.com/DOWNLOAD/Technical/TechInstructions/30.%20REGOLATORI%20DI%20RIFASAMENTO%20E%20MODULI%20A%20TIRISTORI/I427IGB05_20.pdf",
  "pages": "pp. 2-6 (settings, functions, examples), p. 8 (Tables 2-3), p. 9 (Tables 4-5, parameter access)"
 },
 "notes": [
  "Measures are read with function 03 or 04 (same data) and are listed as input registers. Commands use function 06.",
  "Word order: the RTU example returns 00 00 00 1C for 28 °C and the ASCII example 00 00 01 3D for 317 V, so 32-bit values are high word first (ABCD).",
  "The RTU example says the panel temperature is at table address 0Eh but sends 00 2D in the frame; the document's written rule (subtract one) and the ASCII example (voltage) are followed here.",
  "Left out: cos-phi (02h; bit 31 is the sign and bit 30 the inductive/capacitive flag, no scale printed), and delta-kvar, panel temperature and max temperature (marked sign in bit 31, i.e. sign-magnitude, not two's complement).",
  "Left out: output status (10h; no bit legend), THDV at 2008h (no format printed), apparent energy and parameter values (read via 5002h/5004h with lengths given in the operating manual).",
  "Intermediate steps follow the printed patterns: insertion times 200h + 2 x (step-1), counts 2020h + (step-1), residual power 2040h + (step-1); only steps 1 and 14 are listed.",
  "Left out: the command-menu register 2FF0h. The English text says its C01-C09 functions are mapped to single bits and several can run at once, but the table lists plain values 00h-08h, so the write format is unclear."
 ],
 "registers": [
  {
   "table": "input_register",
   "address": 3,
   "documented": "04h",
   "name": "Voltage",
   "description": "",
   "data_type": "UINT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 1,
   "units": "V",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 5,
   "documented": "06h",
   "name": "Current",
   "description": "",
   "data_type": "UINT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 0.001,
   "units": "A",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 9,
   "documented": "0Ah",
   "name": "Weekly average power factor",
   "description": "",
   "data_type": "UINT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 0.01,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 17,
   "documented": "12h",
   "name": "Phase angle offset",
   "description": "Printed unit °/4.",
   "data_type": "UINT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 0.25,
   "units": "°",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 19,
   "documented": "14h",
   "name": "Actual power factor",
   "description": "Printed as /5000.",
   "data_type": "INT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 0.0002,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 21,
   "documented": "16h",
   "name": "Error bits",
   "description": "",
   "data_type": "UINT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": {
    "0": "A01 Under compensation",
    "1": "A02 Over compensation",
    "2": "A03 Low current",
    "3": "A04 High current",
    "4": "A05 Low voltage",
    "5": "A06 High voltage",
    "6": "A07 Capacitor overload",
    "7": "A08 Overtemperature",
    "8": "A09 No-voltage release",
    "9": "A10 Voltage THD too high",
    "10": "A11 Current THD too high"
   },
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 23,
   "documented": "18h",
   "name": "Max voltage",
   "description": "",
   "data_type": "UINT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 1,
   "units": "V",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 25,
   "documented": "1Ah",
   "name": "Max current",
   "description": "",
   "data_type": "UINT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 0.01,
   "units": "A",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 27,
   "documented": "1Ch",
   "name": "Max capacitor overload",
   "description": "",
   "data_type": "UINT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 1,
   "units": "%",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 49,
   "documented": "32h",
   "name": "Active power",
   "description": "",
   "data_type": "INT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 1,
   "units": "W",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 51,
   "documented": "34h",
   "name": "Reactive power",
   "description": "",
   "data_type": "INT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 1,
   "units": "var",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 53,
   "documented": "36h",
   "name": "Apparent power",
   "description": "",
   "data_type": "UINT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 1,
   "units": "VA",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 511,
   "documented": "200h",
   "name": "Step 1 insertion time",
   "description": "Steps 2-14 follow every 2 registers up to 21Ah.",
   "data_type": "UINT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 1,
   "units": "min",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 537,
   "documented": "21Ah",
   "name": "Step 14 insertion time",
   "description": "",
   "data_type": "UINT32",
   "length": 2,
   "word_order": "ABCD",
   "scale": 1,
   "units": "min",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 8196,
   "documented": "2005h",
   "name": "Capacitor current overload",
   "description": "",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "%",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 8198,
   "documented": "2007h",
   "name": "Hours to maintenance",
   "description": "",
   "data_type": "INT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "h",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 8200,
   "documented": "2009h",
   "name": "THDI",
   "description": "",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 0.1,
   "units": "%",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 8223,
   "documented": "2020h",
   "name": "Step 1 insertion count",
   "description": "Steps 2-14 at 2021h-202Dh.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 8236,
   "documented": "202Dh",
   "name": "Step 14 insertion count",
   "description": "",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 8255,
   "documented": "2040h",
   "name": "Step 1 residual power",
   "description": "Steps 2-14 at 2041h-204Dh.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "%",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 8319,
   "documented": "2080h",
   "name": "2nd voltage harmonic",
   "description": "Up to the 15th at 208Dh.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 0.1,
   "units": "%",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "input_register",
   "address": 8351,
   "documented": "20A0h",
   "name": "2nd current harmonic",
   "description": "Up to the 15th at 20ADh.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 0.1,
   "units": "%",
   "access": "R",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 12034,
   "documented": "2F03h",
   "name": "Save setup to EEPROM",
   "description": "Write 5 after changing parameters.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "W",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 12287,
   "documented": "3000h",
   "name": "Operating mode change",
   "description": "",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "W",
   "values": {
    "0": "Toggle AUT/MAN",
    "1": "MAN mode",
    "2": "AUT mode"
   },
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 12288,
   "documented": "3001h",
   "name": "Device reset (warm boot)",
   "description": "Write 1.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "W",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 12292,
   "documented": "3005h",
   "name": "Step activation",
   "description": "Write the step number to switch in.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "W",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 12293,
   "documented": "3006h",
   "name": "Step de-activation",
   "description": "Write the step number to switch out.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "W",
   "values": null,
   "bits": null,
   "offset": 0
  },
  {
   "table": "holding_register",
   "address": 12294,
   "documented": "3007h",
   "name": "Keyboard lock",
   "description": "",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "units": "",
   "access": "W",
   "values": {
    "0": "Unlocked",
    "1": "Locked"
   },
   "bits": null,
   "offset": 0
  }
 ],
 "integration": {
  "summary": "Read voltage (04h), current (06h), actual power factor (14h) and the alarm bits (16h) with function 04, subtracting one from each table address. Switch AUT/MAN by writing 1 or 2 to 3000h.",
  "minimum_registers": [
   {
    "table": "input_register",
    "address": 3,
    "why": "Voltage"
   },
   {
    "table": "input_register",
    "address": 5,
    "why": "Current"
   },
   {
    "table": "input_register",
    "address": 19,
    "why": "Actual power factor"
   },
   {
    "table": "input_register",
    "address": 21,
    "why": "Alarm bits"
   },
   {
    "table": "input_register",
    "address": 51,
    "why": "Reactive power"
   },
   {
    "table": "holding_register",
    "address": 12287,
    "why": "AUT/MAN mode"
   }
  ],
  "enable": "Use the optical port or fit an EXP1012 RS-485 (or EXP1013 Ethernet on DCRL8) module, then set node address, speed, data format, stop bits and protocol in the setup menu.",
  "watchdog": null,
  "quirks": [
   "Table addresses are one above the wire address.",
   "32-bit values are high word first.",
   "Some 'signed' values use a sign bit (bit 31) instead of two's complement."
  ],
  "setup": [
   "Defaults: node 01, 9600 baud, 8 data bits, no parity, 1 stop bit, Modbus RTU.",
   "Ethernet (DCRL8 + EXP1013): default IP 192.168.1.1, port 1001.",
   "Maximum data field is 80 registers."
  ],
  "gotchas": [
   "Parameter changes made through 5002h/5004h only take effect after writing 5 to 2F03h (store to EEPROM)."
  ]
 },
 "page": "https://easymodbus.com/modbus-register-maps/lovato-electric/dcrl3-dcrl5-dcrl8",
 "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."
}
