{
  "spec_version": 1,
  "slug": "rotronic-pf4-pf5",
  "manufacturer": "Rotronic",
  "model": "PF4 / PF5 differential pressure, humidity and temperature transmitter",
  "category": "Sensor",
  "supplier_url": "https://service.rotronic.com/products-manual/pf4-_-pf5.html",
  "default_configuration": {
    "protocol": "modbus_rtu",
    "unit_id": 1,
    "addressing": "zero_based",
    "byte_order": "BigEndian",
    "word_order": "HighFirst",
    "native_interface": "rs485",
    "serial": {
      "baud_rate": 19200,
      "parity": "None",
      "data_bits": 8,
      "stop_bits": 1
    }
  },
  "coils": [],
  "discrete_inputs": [],
  "input_registers": [
    {
      "address": 31000,
      "count": 2,
      "name": "Humidity",
      "data_type": "Float32",
      "units": "%RH",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Current humidity value, 32-bit IEEE-754 float in two registers (part 1 at 31000, part 2 at 31001). The worked frame in section 2.4.5.1 reads registers 31'001-31'006 and returns 0x41F370A3 = 30.43 %RH here. Only present when an HC2 probe is connected."
    },
    {
      "address": 31002,
      "count": 2,
      "name": "Temperature",
      "data_type": "Float32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Current temperature value (two registers, high word first). The worked frame returns 0x41BA0000 = 23.25. The unit follows the unit selection in holding register 41'001 (address 41'000): 0 = °C, 1 = °F."
    },
    {
      "address": 31004,
      "count": 2,
      "name": "Differential pressure",
      "data_type": "Float32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Current differential pressure value (two registers). The worked frame returns 0x3D80E9A2 = 0.0629. The unit follows the differential-pressure unit register 41'002 (address 41'001): 0 = Pa, 1 = inH2O, 2 = mpsi, 3 = mbar, 4 = mmHg, 5 = mmH2O, 6 = Torr, 7 = g/cm2."
    },
    {
      "address": 31006,
      "count": 2,
      "name": "Calculation value",
      "data_type": "Float32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Current value of the selected calculation (two registers). The calculation is chosen in holding register 40'001 (address 40'000): 0 = dew point, 1 = frost point, 2 = wet bulb temperature, 3 = enthalpy, 4 = vapour concentration, 5 = specific humidity, 6 = mixing ratio, 7 = saturation vapour concentration, 8 = vapour partial pressure, 9 = vapour saturation pressure."
    },
    {
      "address": 31008,
      "count": 2,
      "name": "Analog input value",
      "data_type": "Float32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Current analog input value (two registers). The input type is set in holding register 40'002 (address 40'001): 0 = voltage 0...10 V, 1 = current 0...24 mA."
    },
    {
      "address": 31010,
      "count": 2,
      "name": "Flow",
      "data_type": "Float32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Current flow value (two registers). Only present when the flow option is activated; the unit follows the flow-unit selection (0 = m/s, 1 = km/h, 2 = ft/s, 3 = mph)."
    },
    {
      "address": 31012,
      "count": 2,
      "name": "Volume flow",
      "data_type": "Float32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Current volume flow value (two registers). Only present when the flow option is activated; the unit follows the volume-flow selection (m3/h, m3/min, l/min, l/s, cfm, cfs)."
    },
    {
      "address": 31014,
      "count": 2,
      "name": "Ambient pressure",
      "data_type": "Float32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Current ambient pressure value (two registers). The unit follows the ambient-pressure unit register 41'003 (address 41'002): 0 = hPa, 1 = inHg, 2 = psi."
    },
    {
      "address": 31016,
      "count": 2,
      "name": "Internal temperature",
      "data_type": "Float32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Current internal temperature of the transmitter (two registers)."
    }
  ],
  "holding_registers": [],
  "combined_registers": [],
  "notes": "Source: Rotronic 'Modbus Manual for PF4/5 - Differential Pressure Transmitter', document E-M-PF4_PF5-Modbus_V1.2 ((c) 2021), vendor-hosted PDF at https://www.rotronic.com/pub/media/productattachments/files/E-M-PF4_PF5-V1.2_Modbus_Manual.pdf (SHA-256 70d19545b7b6fddad0e1bc40826c91e234bcb30e89f17fba030cda199aa02fad), sections 1.1.1.1 (Modbus RTU), 2.4.2 'Current Values: Float Values', 2.4.4 'Explanation of Flags', 2.4.5.1 (worked read of 31'001-31'006), 2.5.1 'Value Type' and 2.5.2 'Value Unit'. Factory frame from section 1.1.1.1: Modbus RTU over RS-485, 19200 baud, 8 data bits, no parity, 1 stop bit, and the parameters 'cannot be changed'. The Modbus address is always the RS485 network address + 1 (section 1.1.1.1 and the Device Specific Settings chapter); the RS485 device number is selectable 0...63 and no factory value is printed, so this seed stores unit 1 (RS485 address 0) as a stated placeholder - set it to the unit's own address before polling a shared bus. Addressing: the register tables print the register number and the protocol (wire) address side by side, the worked frame reads 0x7918 = 31000 for register 31'001, and the manual states that Modbus registers are addressed starting at zero, so the seed is zero_based. Word order: the worked read returns humidity 0x41F3 0x70A3 and temperature 0x41BA 0x0000, high word first (BigEndian + HighFirst); 44'114 can change the operation mode from its 'word swap' default, so verify it on site. Only the measurement block is seeded: the device-data block (30'001-31'000) and the holding-register chapters print register numbers, protocol addresses and names as separate text streams, so rows cannot be paired reliably, and the 16-bit block (32'001-32'009) is the same values multiplied by scaling factors that live in those unpairable holding registers. Units are not fixed: every measurement except humidity follows the unit selection registers listed in each row's description, so no engineering unit is claimed for them here."
}
