{
 "manufacturer": "Endress+Hauser",
 "manufacturer_slug": "endress-hauser",
 "model": "Proline Promag 400 electromagnetic flowmeter (Modbus RS485)",
 "model_slug": "promag-400-modbus",
 "short_model": "Promag 400",
 "aliases": [
  "Promag D 400",
  "Promag L 400",
  "Promag W 400",
  "Proline 400 Modbus RS485"
 ],
 "equipment_type": "Sensor (electromagnetic flowmeter)",
 "applies_to": "Proline Promag 400 transmitters with the Modbus RS485 output, as described in GP01045D/06/EN/02.21.",
 "summary": "The Promag 400 is Endress+Hauser's electromagnetic flowmeter family (D, L and W sensors). Its Modbus RS485 interface exposes every operating-menu parameter at a fixed register. This map lists the values an integrator needs: volume and mass flow, conductivity, three totalizers with their controls, units, diagnostics and the Modbus settings.",
 "transport": [
  "RTU",
  "ASCII"
 ],
 "defaults": {
  "unit_id": 247,
  "baud": 19200,
  "parity": "Even",
  "data_bits": null,
  "stop_bits": null,
  "tcp_port": null
 },
 "addressing": {
  "convention": "1-based",
  "note": "Register numbers are printed in the Modbus Application Protocol form, which the manual equates with Modicon 3XXXX/4XXXX numbers (mass flow 2007 = 32007), and the scan-list parameter says register addresses are 1-based. So subtract 1 for the wire address: volume flow 3874 is requested at 3873."
 },
 "default_word_order": "CDAB",
 "firmware": "Valid from device firmware 02.01.zz",
 "source": {
  "title": "Description of Device Parameters Proline Promag 400 Modbus RS485",
  "doc_number": "GP01045D/06/EN/02.21",
  "revision_date": "2022-02-01",
  "url": "https://bdih-download.endress.com/files/DLA/005056A500261EEC9FD771039688391B/GP01045DEN_0221-00.pdf",
  "pages": "pp. 113-118 (Modbus settings, byte order), p. 174 (address model), pp. 181-194 (register tables)"
 },
 "notes": [
  "This is an integrator subset of a parameter manual that gives a register for every menu item; display, sensor-adjustment, I/O and web-server parameters are left out.",
  "Float word order follows the Byte order parameter (register 4915). At the factory setting 1-0-3-2 the bytes go out as byte 1, byte 0, byte 3, byte 2, with byte 3 holding the sign and exponent, which is CDAB. If you change Byte order, the word order of every float changes with it.",
  "Integer parameters are 2 bytes; the manual does not say signed or unsigned, so they are listed as UINT16 (all values shown are positive codes).",
  "Every value can be read with function 03 or 04 and written with 06 or 16, so it is listed here as a holding register.",
  "The parity picklist codes for the no-parity options disagree between the parameter description (2 = None/1 stop bit) and the register table (2 = None/2 stop bits), so only 0 = Even and 1 = Odd are given.",
  "The diagnostic registers return an integer only; the manual does not list the coding, so read the meaning from the device display or operating manual.",
  "String parameters (device tag, serial number, firmware version, order code) and the scan list (5001-5016, data read back at 5051-5081) are left out because their packing depends on the byte-order setting.",
  "Writes to non-volatile parameters go to EEPROM, which the manual limits to about one million writes; do not write setpoints cyclically.",
  "The data-bit and stop-bit count for the Even/Odd parity settings is not stated in this manual, so those defaults are left blank."
 ],
 "registers": [
  {
   "table": "holding_register",
   "address": 2012,
   "documented": "2013 to 2014",
   "name": "Conductivity",
   "description": "Measured conductivity of the fluid (if the option is active).",
   "data_type": "FLOAT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 2100,
   "documented": "2101",
   "name": "Mass flow unit",
   "description": "",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "g/s",
    "1": "g/min",
    "2": "g/h",
    "3": "g/d",
    "4": "kg/s",
    "5": "kg/min",
    "6": "kg/h",
    "7": "kg/d",
    "8": "t/s",
    "9": "t/min",
    "10": "t/h",
    "11": "t/d",
    "12": "oz/s",
    "13": "oz/min",
    "14": "oz/h",
    "15": "oz/d",
    "16": "lb/s",
    "17": "lb/min",
    "18": "lb/h",
    "19": "lb/d",
    "20": "STon/s",
    "21": "STon/min",
    "22": "STon/h",
    "23": "STon/d"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 2101,
   "documented": "2102",
   "name": "Mass unit",
   "description": "",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "50": "g",
    "51": "kg",
    "52": "t",
    "53": "oz",
    "54": "lb",
    "55": "STon"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 2102,
   "documented": "2103",
   "name": "Volume flow unit",
   "description": "",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "cm³/s",
    "1": "cm³/min",
    "2": "cm³/h",
    "3": "cm³/d",
    "4": "dm³/s",
    "5": "dm³/min",
    "6": "dm³/h",
    "7": "dm³/d",
    "8": "m³/s",
    "9": "m³/min",
    "10": "m³/h",
    "11": "m³/d",
    "12": "ml/s",
    "13": "ml/min",
    "14": "ml/h",
    "15": "ml/d",
    "16": "l/s",
    "17": "l/min",
    "18": "l/h",
    "19": "l/d",
    "20": "hl/s",
    "21": "hl/min",
    "22": "hl/h",
    "23": "hl/d",
    "24": "Ml/s",
    "25": "Ml/min",
    "26": "Ml/h",
    "27": "Ml/d",
    "32": "af/s",
    "33": "af/min",
    "34": "af/h",
    "35": "af/d",
    "36": "ft³/s",
    "37": "ft³/min",
    "38": "ft³/h",
    "39": "ft³/d",
    "40": "fl oz/s (us)",
    "41": "fl oz/min (us)",
    "42": "fl oz/h (us)",
    "43": "fl oz/d (us)",
    "44": "gal/s (us)",
    "45": "gal/min (us)",
    "46": "gal/h (us)",
    "47": "gal/d (us)",
    "48": "Mgal/s (us)",
    "49": "Mgal/min (us)",
    "50": "Mgal/h (us)",
    "51": "Mgal/d (us)",
    "52": "bbl/s (us;liq.)",
    "53": "bbl/min (us;liq.)",
    "54": "bbl/h (us;liq.)",
    "55": "bbl/d (us;liq.)",
    "56": "bbl/s (us;beer)",
    "57": "bbl/min (us;beer)",
    "58": "bbl/h (us;beer)",
    "59": "bbl/d (us;beer)",
    "60": "bbl/s (us;oil)",
    "61": "bbl/min (us;oil)",
    "62": "bbl/h (us;oil)",
    "63": "bbl/d (us;oil)",
    "64": "bbl/s (us;tank)",
    "65": "bbl/min (us;tank)",
    "66": "bbl/h (us;tank)",
    "67": "bbl/d (us;tank)",
    "68": "gal/s (imp)",
    "69": "gal/min (imp)",
    "70": "gal/h (imp)",
    "71": "gal/d (imp)",
    "72": "Mgal/s (imp)",
    "73": "Mgal/min (imp)",
    "74": "Mgal/h (imp)",
    "75": "Mgal/d (imp)",
    "76": "bbl/s (imp;beer)",
    "77": "bbl/min (imp;beer)",
    "78": "bbl/h (imp;beer)",
    "79": "bbl/d (imp;beer)",
    "80": "bbl/s (imp;oil)",
    "81": "bbl/min (imp;oil)",
    "82": "bbl/h (imp;oil)",
    "83": "bbl/d (imp;oil)",
    "88": "kgal/s (us)",
    "89": "kgal/min (us)",
    "90": "kgal/h (us)",
    "91": "kgal/d (us)",
    "92": "MMft³/s",
    "93": "MMft³/min",
    "94": "MMft³/h",
    "96": "Mft³/d"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 2103,
   "documented": "2104",
   "name": "Volume unit",
   "description": "",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "cm³",
    "1": "dm³",
    "2": "m³",
    "3": "ml",
    "4": "l",
    "5": "hl",
    "6": "Ml Mega",
    "8": "af",
    "9": "ft³",
    "10": "fl oz (us)",
    "11": "gal (us)",
    "12": "Mgal (us)",
    "13": "bbl (us;liq.)",
    "14": "bbl (us;beer)",
    "15": "bbl (us;oil)",
    "16": "bbl (us;tank)",
    "17": "gal (imp)",
    "18": "Mgal (imp)",
    "19": "bbl (imp;beer)",
    "20": "bbl (imp;oil)",
    "22": "kgal (us)",
    "23": "Mft³"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 2108,
   "documented": "2109",
   "name": "Temperature unit",
   "description": "",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "°C",
    "1": "K",
    "2": "°F",
    "3": "°R"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 2120,
   "documented": "2121",
   "name": "Conductivity unit",
   "description": "",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "1": "MS/m",
    "2": "kS/m",
    "3": "S/m",
    "4": "S/cm",
    "5": "mS/m",
    "6": "mS/cm",
    "7": "µS/m",
    "8": "µS/cm",
    "9": "µS/mm",
    "10": "nS/cm"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 2312,
   "documented": "2313 to 2314",
   "name": "Calibration factor",
   "description": "Sensor calibration factor.",
   "data_type": "FLOAT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 2546,
   "documented": "2547",
   "name": "Device ID",
   "description": "Four-digit hex device type 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": 2589,
   "documented": "2590 to 2591",
   "name": "Preset value 1",
   "description": "Start value used by the preset totalizer commands.",
   "data_type": "FLOAT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 2591,
   "documented": "2592 to 2593",
   "name": "Preset value 2",
   "description": "Start value used by the preset totalizer commands.",
   "data_type": "FLOAT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 2593,
   "documented": "2594 to 2595",
   "name": "Preset value 3",
   "description": "Start value used by the preset totalizer commands.",
   "data_type": "FLOAT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 2600,
   "documented": "2601",
   "name": "Totalizer 1 assign process variable",
   "description": "Which flow the totalizer adds up.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "Off",
    "1": "Volume flow",
    "2": "Mass flow",
    "3": "Corrected volume flow"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 2604,
   "documented": "2605",
   "name": "Totalizer 1 operation mode",
   "description": "",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "Net flow total",
    "1": "Forward flow total",
    "2": "Reverse flow total"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 2605,
   "documented": "2606",
   "name": "Totalizer 1 failure mode",
   "description": "Behaviour of the totalizer during a device alarm.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "Stop",
    "1": "Actual value",
    "2": "Last valid value"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 2607,
   "documented": "2608",
   "name": "Control totalizer 1",
   "description": "Write to reset, preset, hold or run the totalizer.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "Totalize",
    "1": "Reset + totalize",
    "2": "Preset + hold",
    "3": "Reset + hold",
    "4": "Preset + totalize",
    "5": "Hold"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 2608,
   "documented": "2609",
   "name": "Reset all totalizers",
   "description": "Write 1 to reset all totalizers and keep counting.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "Cancel",
    "1": "Reset + totalize"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 2609,
   "documented": "2610 to 2611",
   "name": "Totalizer 1 value",
   "description": "Current totalizer count in the totalizer's unit.",
   "data_type": "FLOAT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 2611,
   "documented": "2612 to 2613",
   "name": "Totalizer 1 overflow",
   "description": "Number of overflows of the totalizer.",
   "data_type": "FLOAT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 2731,
   "documented": "2732",
   "name": "Actual diagnostics",
   "description": "Currently active diagnostic event as an integer 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": 2733,
   "documented": "2734",
   "name": "Previous diagnostics",
   "description": "Last diagnostic event before the current one.",
   "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": 2735,
   "documented": "2736",
   "name": "Diagnostics 1",
   "description": "Entry 1 of the diagnostic list.",
   "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": 2737,
   "documented": "2738",
   "name": "Diagnostics 2",
   "description": "Entry 2 of the diagnostic list.",
   "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": 2739,
   "documented": "2740",
   "name": "Diagnostics 3",
   "description": "Entry 3 of the diagnostic list.",
   "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": 2741,
   "documented": "2742",
   "name": "Diagnostics 4",
   "description": "Entry 4 of the diagnostic list.",
   "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": 2743,
   "documented": "2744",
   "name": "Diagnostics 5",
   "description": "Entry 5 of the diagnostic list.",
   "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": 2800,
   "documented": "2801",
   "name": "Totalizer 2 assign process variable",
   "description": "Which flow the totalizer adds up.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "Off",
    "1": "Volume flow",
    "2": "Mass flow",
    "3": "Corrected volume flow"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 2804,
   "documented": "2805",
   "name": "Totalizer 2 operation mode",
   "description": "",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "Net flow total",
    "1": "Forward flow total",
    "2": "Reverse flow total"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 2805,
   "documented": "2806",
   "name": "Totalizer 2 failure mode",
   "description": "Behaviour of the totalizer during a device alarm.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "Stop",
    "1": "Actual value",
    "2": "Last valid value"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 2807,
   "documented": "2808",
   "name": "Control totalizer 2",
   "description": "Write to reset, preset, hold or run the totalizer.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "Totalize",
    "1": "Reset + totalize",
    "2": "Preset + hold",
    "3": "Reset + hold",
    "4": "Preset + totalize",
    "5": "Hold"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 2809,
   "documented": "2810 to 2811",
   "name": "Totalizer 2 value",
   "description": "Current totalizer count in the totalizer's unit.",
   "data_type": "FLOAT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 2811,
   "documented": "2812 to 2813",
   "name": "Totalizer 2 overflow",
   "description": "Number of overflows of the totalizer.",
   "data_type": "FLOAT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 2869,
   "documented": "2870 to 2871",
   "name": "Zero point",
   "description": "Sensor zero point.",
   "data_type": "FLOAT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 3000,
   "documented": "3001",
   "name": "Totalizer 3 assign process variable",
   "description": "Which flow the totalizer adds up.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "Off",
    "1": "Volume flow",
    "2": "Mass flow",
    "3": "Corrected volume flow"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 3004,
   "documented": "3005",
   "name": "Totalizer 3 operation mode",
   "description": "",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "Net flow total",
    "1": "Forward flow total",
    "2": "Reverse flow total"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 3005,
   "documented": "3006",
   "name": "Totalizer 3 failure mode",
   "description": "Behaviour of the totalizer during a device alarm.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "Stop",
    "1": "Actual value",
    "2": "Last valid value"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 3007,
   "documented": "3008",
   "name": "Control totalizer 3",
   "description": "Write to reset, preset, hold or run the totalizer.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "Totalize",
    "1": "Reset + totalize",
    "2": "Preset + hold",
    "3": "Reset + hold",
    "4": "Preset + totalize",
    "5": "Hold"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 3009,
   "documented": "3010 to 3011",
   "name": "Totalizer 3 value",
   "description": "Current totalizer count in the totalizer's unit.",
   "data_type": "FLOAT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 3011,
   "documented": "3012 to 3013",
   "name": "Totalizer 3 overflow",
   "description": "Number of overflows of the totalizer.",
   "data_type": "FLOAT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 3873,
   "documented": "3874 to 3875",
   "name": "Volume flow",
   "description": "Measured volume flow in the configured volume flow unit.",
   "data_type": "FLOAT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 3875,
   "documented": "3876 to 3877",
   "name": "Mass flow",
   "description": "Calculated mass flow (volume x density) in the mass flow unit.",
   "data_type": "FLOAT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "R",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 4480,
   "documented": "4481",
   "name": "Device revision",
   "description": "Four-digit hex device revision.",
   "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": 4603,
   "documented": "4604",
   "name": "Unit totalizer 1",
   "description": "Engineering unit of the totalizer.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "cm³",
    "1": "dm³",
    "2": "m³",
    "3": "ml",
    "4": "l",
    "5": "hl",
    "6": "Ml Mega",
    "8": "af",
    "9": "ft³",
    "10": "fl oz (us)",
    "11": "gal (us)",
    "12": "Mgal (us)",
    "13": "bbl (us;liq.)",
    "14": "bbl (us;beer)",
    "15": "bbl (us;oil)",
    "16": "bbl (us;tank)",
    "17": "gal (imp)",
    "18": "Mgal (imp)",
    "19": "bbl (imp;beer)",
    "20": "bbl (imp;oil)",
    "22": "kgal (us)",
    "23": "Mft³",
    "50": "g",
    "51": "kg",
    "52": "t",
    "53": "oz",
    "54": "lb",
    "55": "STon",
    "100": "Nl",
    "101": "Nm³",
    "102": "Sm³",
    "103": "Sft³",
    "104": "Sl",
    "105": "Sgal (us)",
    "106": "Sbbl (us;liq.)",
    "107": "Sgal (imp)",
    "108": "Sbbl (us;oil)",
    "109": "MMSft³",
    "110": "Nhl",
    "251": "None"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 4604,
   "documented": "4605",
   "name": "Unit totalizer 2",
   "description": "Engineering unit of the totalizer.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "cm³",
    "1": "dm³",
    "2": "m³",
    "3": "ml",
    "4": "l",
    "5": "hl",
    "6": "Ml Mega",
    "8": "af",
    "9": "ft³",
    "10": "fl oz (us)",
    "11": "gal (us)",
    "12": "Mgal (us)",
    "13": "bbl (us;liq.)",
    "14": "bbl (us;beer)",
    "15": "bbl (us;oil)",
    "16": "bbl (us;tank)",
    "17": "gal (imp)",
    "18": "Mgal (imp)",
    "19": "bbl (imp;beer)",
    "20": "bbl (imp;oil)",
    "22": "kgal (us)",
    "23": "Mft³",
    "50": "g",
    "51": "kg",
    "52": "t",
    "53": "oz",
    "54": "lb",
    "55": "STon",
    "100": "Nl",
    "101": "Nm³",
    "102": "Sm³",
    "103": "Sft³",
    "104": "Sl",
    "105": "Sgal (us)",
    "106": "Sbbl (us;liq.)",
    "107": "Sgal (imp)",
    "108": "Sbbl (us;oil)",
    "109": "MMSft³",
    "110": "Nhl",
    "251": "None"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 4605,
   "documented": "4606",
   "name": "Unit totalizer 3",
   "description": "Engineering unit of the totalizer.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "cm³",
    "1": "dm³",
    "2": "m³",
    "3": "ml",
    "4": "l",
    "5": "hl",
    "6": "Ml Mega",
    "8": "af",
    "9": "ft³",
    "10": "fl oz (us)",
    "11": "gal (us)",
    "12": "Mgal (us)",
    "13": "bbl (us;liq.)",
    "14": "bbl (us;beer)",
    "15": "bbl (us;oil)",
    "16": "bbl (us;tank)",
    "17": "gal (imp)",
    "18": "Mgal (imp)",
    "19": "bbl (imp;beer)",
    "20": "bbl (imp;oil)",
    "22": "kgal (us)",
    "23": "Mft³",
    "50": "g",
    "51": "kg",
    "52": "t",
    "53": "oz",
    "54": "lb",
    "55": "STon",
    "100": "Nl",
    "101": "Nm³",
    "102": "Sm³",
    "103": "Sft³",
    "104": "Sl",
    "105": "Sgal (us)",
    "106": "Sbbl (us;liq.)",
    "107": "Sgal (imp)",
    "108": "Sbbl (us;oil)",
    "109": "MMSft³",
    "110": "Nhl",
    "251": "None"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 4909,
   "documented": "4910",
   "name": "Bus address",
   "description": "Modbus slave address, 1-247.",
   "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": 4911,
   "documented": "4912",
   "name": "Baudrate",
   "description": "",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "baud",
   "access": "RW",
   "values": {
    "0": "1200",
    "1": "2400",
    "2": "4800",
    "3": "9600",
    "4": "19200",
    "5": "38400",
    "6": "57600",
    "7": "115200"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 4912,
   "documented": "4913",
   "name": "Data transfer mode",
   "description": "",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "RTU",
    "1": "ASCII"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 4913,
   "documented": "4914",
   "name": "Parity",
   "description": "0 = Even, 1 = Odd; codes 2/3 (no parity) conflict in the manual.",
   "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": 4914,
   "documented": "4915",
   "name": "Byte order",
   "description": "Byte sequence for floats and strings (factory 1-0-3-2).",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "0-1-2-3",
    "1": "3-2-1-0",
    "2": "2-3-0-1",
    "3": "1-0-3-2"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 4915,
   "documented": "4916 to 4917",
   "name": "Telegram delay",
   "description": "Reply delay after a request, 0-100 ms.",
   "data_type": "FLOAT32",
   "length": 2,
   "word_order": "CDAB",
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "ms",
   "access": "RW",
   "values": null,
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 4919,
   "documented": "4920",
   "name": "Failure mode",
   "description": "Value sent for measured values while a diagnostic is active.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "1": "Last valid value",
    "255": "NaN value"
   },
   "bits": null
  },
  {
   "table": "holding_register",
   "address": 6816,
   "documented": "6817",
   "name": "Device reset",
   "description": "Restart the device or return it to delivery settings.",
   "data_type": "UINT16",
   "length": 1,
   "word_order": null,
   "scale": 1,
   "offset": 0,
   "scale_factor_ref": null,
   "units": "",
   "access": "RW",
   "values": {
    "0": "Cancel",
    "1": "Restart device",
    "2": "To delivery settings",
    "25": "Restore S-DAT backup"
   },
   "bits": null
  }
 ],
 "integration": {
  "summary": "Set bus address, baud rate and parity on the device, then read volume flow (register 3874, wire 3873) and totalizer 1 (register 2610, wire 2609) with function 03 or 04 as CDAB floats. Reset totalizers by writing to the totalizer control registers.",
  "minimum_registers": [
   {
    "table": "holding_register",
    "address": 3873,
    "why": "Volume flow"
   },
   {
    "table": "holding_register",
    "address": 3875,
    "why": "Mass flow"
   },
   {
    "table": "holding_register",
    "address": 2609,
    "why": "Totalizer 1 value"
   },
   {
    "table": "holding_register",
    "address": 2102,
    "why": "Volume flow unit code"
   },
   {
    "table": "holding_register",
    "address": 2731,
    "why": "Active diagnostic"
   },
   {
    "table": "holding_register",
    "address": 2607,
    "why": "Totalizer 1 control (reset/hold)"
   }
  ],
  "enable": "Modbus settings are under Expert > Communication > Modbus configuration. Writing over the bus can be limited with the Fieldbus writing access parameter (Read + write or Read only).",
  "watchdog": null,
  "quirks": [
   "Floats default to CDAB because of the 1-0-3-2 byte order; the order is selectable on the device.",
   "Failure mode (register 4920) chooses whether measured values go to NaN or hold the last valid value during a fault."
  ],
  "setup": [
   "Factory settings: address 247, 19200 baud, Even parity, RTU.",
   "Telegram delay (default 6 ms) can be raised for slow masters."
  ],
  "gotchas": [
   "Writing parameters cyclically wears out the EEPROM.",
   "Flow and totalizer values are sent in the units set in the unit registers, so changing a unit on the device changes what the numbers mean."
  ]
 },
 "page": "https://easymodbus.com/modbus-register-maps/endress-hauser/promag-400-modbus",
 "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."
}
