{
  "spec_version": 1,
  "slug": "diehl-sharky-775-modbus-module",
  "manufacturer": "Diehl Metering",
  "model": "SHARKY 775 / SCYLAR INT 8 with Modbus RTU communication module",
  "category": "Heat meter",
  "supplier_url": "https://www.diehl.com/metering/en/products-solutions/products/thermal-energy-metering/sharky-775-se/",
  "default_configuration": {
    "protocol": "modbus_rtu",
    "unit_id": 1,
    "addressing": "zero_based",
    "byte_order": "BigEndian",
    "word_order": "HighFirst",
    "native_interface": "rs485",
    "serial": {
      "baud_rate": 9600,
      "parity": "None",
      "data_bits": 8,
      "stop_bits": 1
    }
  },
  "coils": [],
  "discrete_inputs": [],
  "input_registers": [
    {
      "address": 0,
      "count": 2,
      "name": "Energy",
      "data_type": "Int32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Register 30001 or 40001. Raw integer energy value; the engineering value is the raw value multiplied by the unit factor at address 2 and named by the unit ID at address 7. The document's worked example reads raw 12345 with factor 1 and unit ID 8 as 12345 MJ, and the float copy at address 8 reads 12345.0."
    },
    {
      "address": 2,
      "count": 1,
      "name": "Energy unit factor",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Multiplier applied to the integer energy value (document footnote 1); 1 in the worked example."
    },
    {
      "address": 7,
      "count": 1,
      "name": "Energy unit ID",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Unit code from the module's codes-and-units table: 1 mWh, 2 Wh, 3 kWh, 4 MWh, 5 GWh, 6 J, 7 kJ, 8 MJ, 9 GJ, 10 cal, 11 kcal, 12 Mcal, 13 Gcal, 14 Btu, 15 kBtu, 16 MBtu, 17 GBtu."
    },
    {
      "address": 8,
      "count": 2,
      "name": "Energy (float)",
      "data_type": "Float32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "IEEE-754 copy of the energy value, already in the unit given by the unit ID register."
    },
    {
      "address": 10,
      "count": 2,
      "name": "Volume",
      "data_type": "Int32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Raw integer volume value, scaled by the unit factor at address 12 and named by the unit ID at address 17."
    },
    {
      "address": 12,
      "count": 1,
      "name": "Volume unit factor",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Multiplier applied to the integer volume value (document footnote 1)."
    },
    {
      "address": 17,
      "count": 1,
      "name": "Volume unit ID",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Unit code: 18 ml, 19 l, 20 m3, 21 mGal, 22 Gal, 23 kGal, 24 MGal, 25 ml/h, 26 l/h, 27 m3/h."
    },
    {
      "address": 18,
      "count": 2,
      "name": "Volume (float)",
      "data_type": "Float32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "IEEE-754 copy of the volume value."
    },
    {
      "address": 20,
      "count": 2,
      "name": "Power",
      "data_type": "Int32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Raw integer power value, scaled by the unit factor at address 22 and named by the unit ID at address 27."
    },
    {
      "address": 22,
      "count": 1,
      "name": "Power unit factor",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Multiplier applied to the integer power value (document footnote 1)."
    },
    {
      "address": 27,
      "count": 1,
      "name": "Power unit ID",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Unit code: 30 kGal/min, 31 MGal/min, 32 mW, 33 W, 34 kW, 35 MW, 36 GW."
    },
    {
      "address": 28,
      "count": 2,
      "name": "Power (float)",
      "data_type": "Float32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "IEEE-754 copy of the power value."
    },
    {
      "address": 30,
      "count": 2,
      "name": "Flow",
      "data_type": "Int32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Raw integer flow value, scaled by the unit factor at address 32 and named by the unit ID at address 37."
    },
    {
      "address": 32,
      "count": 1,
      "name": "Flow unit factor",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Multiplier applied to the integer flow value (document footnote 1)."
    },
    {
      "address": 37,
      "count": 1,
      "name": "Flow unit ID",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Unit code, from the same codes-and-units table as the other unit ID registers (e.g. 27 m3/h)."
    },
    {
      "address": 38,
      "count": 2,
      "name": "Flow (float)",
      "data_type": "Float32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "IEEE-754 copy of the flow value."
    },
    {
      "address": 40,
      "count": 1,
      "name": "Forward temperature",
      "data_type": "Int16",
      "units": "",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R",
      "description": "Forward (start) temperature; Int16 with one decimal place, so the raw value is multiplied by 0.1 (document footnote 4). The unit ID register at address 45 names the unit (41 degC, 42 degF)."
    },
    {
      "address": 45,
      "count": 1,
      "name": "Forward temperature unit ID",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Unit code: 41 degC, 42 degF."
    },
    {
      "address": 46,
      "count": 2,
      "name": "Forward temperature (float)",
      "data_type": "Float32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "IEEE-754 copy of the forward temperature."
    },
    {
      "address": 48,
      "count": 1,
      "name": "Return temperature",
      "data_type": "Int16",
      "units": "",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R",
      "description": "Return temperature; Int16 with one decimal place, so the raw value is multiplied by 0.1 (document footnote 4). The block prints value, unit name, unit ID and float, with no unit-factor register."
    },
    {
      "address": 53,
      "count": 1,
      "name": "Return temperature unit ID",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Unit code: 41 degC, 42 degF."
    },
    {
      "address": 54,
      "count": 2,
      "name": "Return temperature (float)",
      "data_type": "Float32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "IEEE-754 copy of the return temperature."
    },
    {
      "address": 56,
      "count": 1,
      "name": "Temperature difference",
      "data_type": "Int16",
      "units": "",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "R",
      "description": "Temperature difference (forward minus return); Int16 with one decimal place, so the raw value is multiplied by 0.1 (document footnote 4)."
    },
    {
      "address": 61,
      "count": 1,
      "name": "Temperature difference unit ID",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Unit code: 41 degC, 42 degF."
    },
    {
      "address": 62,
      "count": 2,
      "name": "Temperature difference (float)",
      "data_type": "Float32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "IEEE-754 copy of the temperature difference."
    },
    {
      "address": 64,
      "count": 2,
      "name": "Tariff energy 1",
      "data_type": "Int32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Tariff register 1 energy, scaled by the unit factor at address 66 and named by the unit ID at address 71."
    },
    {
      "address": 66,
      "count": 1,
      "name": "Tariff energy 1 unit factor",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Multiplier applied to the tariff-1 energy value (document footnote 1)."
    },
    {
      "address": 71,
      "count": 1,
      "name": "Tariff energy 1 unit ID",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Unit code from the codes-and-units table."
    },
    {
      "address": 72,
      "count": 2,
      "name": "Tariff energy 1 (float)",
      "data_type": "Float32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "IEEE-754 copy of tariff register 1 energy."
    },
    {
      "address": 74,
      "count": 2,
      "name": "Tariff volume 1",
      "data_type": "Int32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Tariff register 1 volume, scaled by the unit factor at address 76."
    },
    {
      "address": 76,
      "count": 1,
      "name": "Tariff volume 1 unit factor",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Multiplier applied to the tariff-1 volume value (document footnote 1)."
    },
    {
      "address": 81,
      "count": 1,
      "name": "Tariff volume 1 unit ID",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Unit code from the codes-and-units table."
    },
    {
      "address": 82,
      "count": 2,
      "name": "Tariff volume 1 (float)",
      "data_type": "Float32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "IEEE-754 copy of tariff register 1 volume."
    },
    {
      "address": 154,
      "count": 2,
      "name": "Pulse input volume 2",
      "data_type": "Int32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Volume counted on pulse input 2, scaled by the unit factor at address 156."
    },
    {
      "address": 156,
      "count": 1,
      "name": "Pulse input volume 2 unit factor",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Multiplier applied to the pulse-input-2 volume (document footnote 1)."
    },
    {
      "address": 161,
      "count": 1,
      "name": "Pulse input volume 2 unit ID",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Unit code from the codes-and-units table."
    },
    {
      "address": 162,
      "count": 2,
      "name": "Pulse input volume 2 (float)",
      "data_type": "Float32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "IEEE-754 copy of the pulse-input-2 volume."
    },
    {
      "address": 164,
      "count": 1,
      "name": "Error code",
      "data_type": "Hex",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Only one error is shown at a time, by priority. 0x0000 no error; 0x0100 no communication with the meter; 0x0008 basic parameter error in flash or RAM; 0x0004 defective primary voltage (mains unit) - supply from backup battery; 0x0028 hardware error of the ultrasonic measurement; 0x0050 temperature range exceeded; 0x0070 no meaningful ultrasonic signal / air in the measuring path; 0x0084 battery almost flat; 0x00B0 forward and return sensor reversed; 0x00D0 wrong direction of flow; 0x00F0 leakage detected; 0x0010 communication not possible (update rate too fast)."
    },
    {
      "address": 165,
      "count": 2,
      "name": "Heat meter serial number (fixed)",
      "data_type": "UInt32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Serial number of the heat meter as a 32-bit number."
    },
    {
      "address": 167,
      "count": 4,
      "name": "Heat meter serial number (ASCII)",
      "data_type": "Ascii",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Serial number of the heat meter as 8 ASCII characters."
    },
    {
      "address": 171,
      "count": 1,
      "name": "Periodical log 0 date - day",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Day of the newest periodical log entry."
    },
    {
      "address": 172,
      "count": 1,
      "name": "Periodical log 0 date - month",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Month of the newest periodical log entry."
    },
    {
      "address": 173,
      "count": 1,
      "name": "Periodical log 0 date - year",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Year of the newest periodical log entry."
    },
    {
      "address": 174,
      "count": 2,
      "name": "Periodical log 0 energy",
      "data_type": "Int32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Energy stored in the newest periodical log entry, scaled by the unit factor at address 176."
    },
    {
      "address": 176,
      "count": 1,
      "name": "Periodical log 0 energy unit factor",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Multiplier applied to the logged energy value (document footnote 1)."
    },
    {
      "address": 181,
      "count": 1,
      "name": "Periodical log 0 energy unit ID",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Unit code from the codes-and-units table."
    },
    {
      "address": 182,
      "count": 2,
      "name": "Periodical log 0 energy (float)",
      "data_type": "Float32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "IEEE-754 copy of the logged energy value."
    },
    {
      "address": 184,
      "count": 2,
      "name": "Periodical log 0 volume",
      "data_type": "Int32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Volume stored in the newest periodical log entry, scaled by the unit factor at address 186."
    },
    {
      "address": 186,
      "count": 1,
      "name": "Periodical log 0 volume unit factor",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Multiplier applied to the logged volume value (document footnote 1)."
    },
    {
      "address": 191,
      "count": 1,
      "name": "Periodical log 0 volume unit ID",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Unit code from the codes-and-units table."
    },
    {
      "address": 192,
      "count": 2,
      "name": "Periodical log 0 volume (float)",
      "data_type": "Float32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "IEEE-754 copy of the logged volume value."
    },
    {
      "address": 2000,
      "count": 2,
      "name": "Module serial number",
      "data_type": "UInt32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Register 32001, serial number of the Modbus RTU module."
    },
    {
      "address": 2002,
      "count": 2,
      "name": "Module model number",
      "data_type": "UInt32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Register 32003, model number of the Modbus RTU module."
    },
    {
      "address": 2004,
      "count": 1,
      "name": "Module firmware version",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Register 32005, firmware version of the Modbus RTU module."
    }
  ],
  "holding_registers": [
    {
      "address": 1000,
      "count": 1,
      "name": "Modbus slave ID",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "RW",
      "description": "Register 41001, default 0x0101: 0xHHLL with HH = 0x01 or 0x00 and LL = 0x01-0xF7. The module can instead derive the slave ID from the meter's secondary address (factory-set to the meter serial number), which is the automatic slave ID behaviour described in the document."
    },
    {
      "address": 1001,
      "count": 1,
      "name": "Update rate",
      "data_type": "UInt16",
      "units": "s",
      "scale_factor": 0.1,
      "offset": 0,
      "access": "RW",
      "description": "Register 41002, default 150 (= 15.0 s: the register holds a time value with one decimal place, document footnote 4). Sets how often the module reads the meter; 0 disables meter reads, and too fast a setting causes error 0x0010."
    },
    {
      "address": 1002,
      "count": 2,
      "name": "Baud rate",
      "data_type": "UInt32",
      "units": "bit/s",
      "scale_factor": 1,
      "offset": 0,
      "access": "RW",
      "description": "Register 41003, default 9600. Allowed values 1200, 2400, 4800, 9600, 14400, 19200, 38400, 56000, 57600, 115200."
    },
    {
      "address": 1004,
      "count": 1,
      "name": "Data bits",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "RW",
      "description": "Register 41005, default 8; the only documented value is 8."
    },
    {
      "address": 1005,
      "count": 1,
      "name": "Parity",
      "data_type": "Ascii",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "RW",
      "description": "Register 41006, one ASCII character, default 78 ('N'). Values: 'n' (110), 'o' (111), 'e' (101), 'N' (78), 'O' (79), 'E' (69)."
    },
    {
      "address": 1006,
      "count": 1,
      "name": "Stop bits",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "RW",
      "description": "Register 41007, default 1; allowed values 1 and 2."
    },
    {
      "address": 1007,
      "count": 1,
      "name": "Enable periodical log 0 data",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "RW",
      "description": "Register 41008, default 0; 0 and 1."
    }
  ],
  "combined_registers": [],
  "notes": "Source: Diehl Metering 'Modbus RTU Communication Module for SHARKY 775 and SCYLAR INT 8', 04/2019 revision (sections 6.1.1 automatic slave ID, 6.2.1 read-only registers, 6.2.2 configuration registers, 6.3 unit-ID table, 6.6 error codes). The delivered citation is the compteur-energie.com notice (SHA-256 69ba6576bc00968aec451f6757fc82bedaa5d7867f64b0d2868bb84d338a7de6), which now answers 403; this review re-read the same 04/2019 revision as served by armatec.com, SHA-256 4bd1202a917df035f16f35f896994b98a1f1d079d25045b0e5b8da88ff0e4cb5, and Diehl's 12/2023 edition, SHA-256 4b5bedca26488452419e5c7de3f0ff0f0f32d23127df9500ee559c444905b430, which carries the same map but defaults the update rate to 600 instead of the 04/2019 150, so the 04/2019 revision was used for register 1001's default. Factory frame from 6.2.2: slave ID default 0x0101, baud rate 9600, data bits 8, parity 'N' (78), stop bits 1. Addressing: the table prints both a Modicon reference (30001/40001) and a 0-based 'Modbus Address' column; the seed stores the latter, which is why it declares zero_based. The read-only block is served through both the input area (30001+) and the holding area (40001+), so it is seeded once, as input registers. Int32 values are multiplied by their unit-factor register (footnote 1); the three Int16 temperatures at 40/48/56 carry one decimal place and are scaled by 0.1 (footnote 4). No byte or word order is printed for the Int32/IEEE-754 values, so BigEndian + HighFirst is declared as the Modbus convention, with LowFirst as the fallback. Omitted on purpose: the 'Unit name' ASCII rows, Tariff energy/volume 2-4 and pulse input 1 (same block shape as tariff 1 and pulse input 2, which are seeded), and periodical logs 1-N (only log 0 is seeded)."
}
