{
  "rmc_models_export": 1,
  "device_models": {
    "Wayy wDDM.601": {
      "info": {
        "id": "wayy/wddm-601",
        "version": 1,
        "date": "2026-11-22",
        "vendor": "Wayy",
        "category": "I/O module",
        "devices": "wDDM.601 device control module (6 universal inputs, 5 relay DO, 4 AO 0-10 V)",
        "description": "Device control module, Modbus RTU: 6 universal inputs (0-10 V, digital 24 V, NTC 10k, volt-free contact, resistance), 5 relay outputs, 4 analog outputs 0-10 V or PWM. Inputs, outputs (writable at their read address), supply voltage and processor temperature; input types, offsets, PWM and offline-mode settings.",
        "source": "Wayy DTR wDDM.601 (Polish), version 09.01.2023, pages 4-10",
        "source_file": "source/DTR wDDM.601 09.01.2023.pdf",
        "source_sha256": "ce71d8cbf3404ddb73039cfe50a989861796e24092af47192df88e74ea49aa0c",
        "device_firmware": "not stated by the source; resistance inputs and PWM outputs need device firmware 1.2 or later",
        "min_firmware": "1.0.59",
        "frames": {
          "Inputs and outputs": {
            "description": "UI1-UI6 values and range errors, AO1-AO4 and DO1-DO5 (writable), supply voltage, processor temperature",
            "recommended": true
          },
          "Configuration": {
            "description": "Serial number, firmware version, communication settings, input type and offset per input (type and offset writable)",
            "recommended": false
          },
          "Output settings": {
            "description": "PWM mask and cycle time, output offsets, offline time, mask and values (writable)",
            "recommended": false
          }
        },
        "notes": [
          "Addresses in the manual are 0-based (JBUS); the model uses the same notation.",
          "The device accepts FC3 and FC6 only (no FC16). A Modbus TCP Client writes these registers one at a time with FC6; an FC16 write is passed to the device as FC16 and answered with its own exception.",
          "The manual's FC3 table allows 1-25 registers per read, so the registers are three frames: Configuration 0-19, Output settings 20-32, Inputs and outputs 33-50.",
          "The manual contradicts itself twice; the model follows its register table. Its text says holding registers 0-43, the table runs to 50. The input error register is row 41, but its description says address 39 (UI5's value).",
          "Input values have no fixed scale: it depends on each input's type (registers 8-13). Values are raw; set scale and unit per variable in the project (analog ×0.01 V, NTC ×0.1 °C, resistance ×10 Ω).",
          "Analog outputs are scaled for 0-10 V. In PWM mode (device firmware 1.2 and later, register 20) an output's value is its high time per cycle in 20 ms steps; change scale and unit in the project for such an output.",
          "The processor temperature (register 34) is uncalibrated; the manual gives °C with a range of -350…1000 and no scale. Left raw until checked on a device (0.1 °C per count is likely).",
          "Bit order: in the offline mask (register 27) AO1 is bit 0 … AO4 bit 3, DO1 bit 4 … DO5 bit 8.",
          "Offline mode: when the RS-485 line has been silent for the offline time (register 26, default 0 = off), each output whose bit is set in the mask (27) takes its offline value (28 for DO, 29-32 for AO). While the gateway polls, the line is never silent that long; it protects the plant when the bus or the gateway is down.",
          "Communication settings (address, baud rate, parity, stop bits) are not writable here: a write takes the device off the line until the port is changed to match. Change them with the SETUP switch (ON = the defaults: 38400, even parity, address 247) and a Modbus tool.",
          "Not tested on a device: written from the manual only (2026-11-22). Test it on one module before relying on it."
        ],
        "changes": [
          "1: first version"
        ]
      },
      "address_mode": "jbus",
      "frames": {
        "Inputs and outputs": {
          "fc": 3,
          "reg_start": 33,
          "reg_count": 18,
          "poll_interval": 1,
          "response_timeout": 0.5,
          "retries": 1,
          "variables": [
            {"offset": 0, "name": "supply_voltage", "unit": "V", "scale": 0.01, "description": "Module supply voltage, 0…35.00 V (register 0…3500, 10 mV per count)"},
            {"offset": 1, "name": "cpu_temperature", "data_type": "int16", "description": "Uncalibrated processor temperature, -350…1000, raw: see notes"},
            {"offset": 2, "name": "ui1_value", "data_type": "int16", "description": "UI1, raw; meaning follows its type (register 8): analog 10 mV per count (0…1000); digital and volt-free 0 = inactive, 1 = active; NTC 0.1 °C per count (-250…1100); resistance 10 Ω per count (10…9000)"},
            {"offset": 3, "name": "ui2_value", "data_type": "int16", "description": "UI2, raw; meaning follows its type (register 9): analog 10 mV per count (0…1000); digital and volt-free 0 = inactive, 1 = active; NTC 0.1 °C per count (-250…1100); resistance 10 Ω per count (10…9000)"},
            {"offset": 4, "name": "ui3_value", "data_type": "int16", "description": "UI3, raw; meaning follows its type (register 10): analog 10 mV per count (0…1000); digital and volt-free 0 = inactive, 1 = active; NTC 0.1 °C per count (-250…1100); resistance 10 Ω per count (10…9000)"},
            {"offset": 5, "name": "ui4_value", "data_type": "int16", "description": "UI4, raw; meaning follows its type (register 11): analog 10 mV per count (0…1000); digital and volt-free 0 = inactive, 1 = active; NTC 0.1 °C per count (-250…1100); resistance 10 Ω per count (10…9000)"},
            {"offset": 6, "name": "ui5_value", "data_type": "int16", "description": "UI5, raw; meaning follows its type (register 12): analog 10 mV per count (0…1000); digital and volt-free 0 = inactive, 1 = active; NTC 0.1 °C per count (-250…1100); resistance 10 Ω per count (10…9000)"},
            {"offset": 7, "name": "ui6_value", "data_type": "int16", "description": "UI6, raw; meaning follows its type (register 13): analog 10 mV per count (0…1000); digital and volt-free 0 = inactive, 1 = active; NTC 0.1 °C per count (-250…1100); resistance 10 Ω per count (10…9000)"},
            {"offset": 8, "name": "errors_ui1_6", "data_type": "bit_field", "bits": {"0": {"name": "UI1 ERR0 (below range)"}, "1": {"name": "UI1 ERR1 (above range)"}, "2": {"name": "UI2 ERR0 (below range)"}, "3": {"name": "UI2 ERR1 (above range)"}, "4": {"name": "UI3 ERR0 (below range)"}, "5": {"name": "UI3 ERR1 (above range)"}, "6": {"name": "UI4 ERR0 (below range)"}, "7": {"name": "UI4 ERR1 (above range)"}, "8": {"name": "UI5 ERR0 (below range)"}, "9": {"name": "UI5 ERR1 (above range)"}, "10": {"name": "UI6 ERR0 (below range)"}, "11": {"name": "UI6 ERR1 (above range)"}}, "description": "UI1-UI6 errors, two bits per input (UI1 = bits 0-1 … UI6 = bits 10-11). ERR1 = above range (analog > 10.3 V, NTC > 110.0 °C, resistance > 90 kΩ); ERR0 = below range (NTC < -25.0 °C, resistance < 100 Ω); always 0 for digital and volt-free inputs"},
            {"offset": 9, "name": "ao1", "unit": "V", "scale": 0.01, "writable": true, "description": "Analog output AO1, 0…10.00 V (register 0…1000, 10 mV per count); in PWM mode the high time per cycle in 20 ms steps. Default 0"},
            {"offset": 10, "name": "ao2", "unit": "V", "scale": 0.01, "writable": true, "description": "Analog output AO2, 0…10.00 V (register 0…1000, 10 mV per count); in PWM mode the high time per cycle in 20 ms steps. Default 0"},
            {"offset": 11, "name": "ao3", "unit": "V", "scale": 0.01, "writable": true, "description": "Analog output AO3, 0…10.00 V (register 0…1000, 10 mV per count); in PWM mode the high time per cycle in 20 ms steps. Default 0"},
            {"offset": 12, "name": "ao4", "unit": "V", "scale": 0.01, "writable": true, "description": "Analog output AO4, 0…10.00 V (register 0…1000, 10 mV per count); in PWM mode the high time per cycle in 20 ms steps. Default 0"},
            {"offset": 13, "name": "do1", "writable": true, "state_map": {"0": "Off", "1": "On"}, "description": "Relay output DO1: 0 = off, 1 = on. Default 0"},
            {"offset": 14, "name": "do2", "writable": true, "state_map": {"0": "Off", "1": "On"}, "description": "Relay output DO2: 0 = off, 1 = on. Default 0"},
            {"offset": 15, "name": "do3", "writable": true, "state_map": {"0": "Off", "1": "On"}, "description": "Relay output DO3: 0 = off, 1 = on. Default 0"},
            {"offset": 16, "name": "do4", "writable": true, "state_map": {"0": "Off", "1": "On"}, "description": "Relay output DO4: 0 = off, 1 = on. Default 0"},
            {"offset": 17, "name": "do5", "writable": true, "state_map": {"0": "Off", "1": "On"}, "description": "Relay output DO5: 0 = off, 1 = on. Default 0"}
          ]
        },
        "Configuration": {
          "fc": 3,
          "reg_start": 0,
          "reg_count": 20,
          "poll_interval": 10,
          "response_timeout": 0.5,
          "retries": 1,
          "variables": [
            {"offset": 0, "name": "serial_number_high", "description": "Serial number, highest 2 bytes"},
            {"offset": 1, "name": "serial_number_middle", "description": "Serial number, middle 2 bytes"},
            {"offset": 2, "name": "serial_number_low", "description": "Serial number, lowest 2 bytes"},
            {"offset": 3, "name": "firmware_version", "description": "Device firmware version (0…65535)"},
            {"offset": 4, "name": "modbus_address", "description": "0…247 per the manual, default 247. Read-only in this model: see notes"},
            {"offset": 5, "name": "baud_rate", "state_map": {"0": "2400", "1": "4800", "2": "9600", "3": "14400", "4": "19200", "5": "28800", "6": "38400", "7": "57600", "8": "76800", "9": "115200", "10": "230400"}, "description": "Default 6 = 38400. Read-only in this model: see notes"},
            {"offset": 6, "name": "parity", "state_map": {"0": "None", "1": "Reserved", "2": "Even", "3": "Odd"}, "description": "Default 2 = Even. Read-only in this model: see notes"},
            {"offset": 7, "name": "stop_bits", "state_map": {"0": "1 stop bit", "1": "2 stop bits"}, "description": "Default 0 = 1 stop bit. Read-only in this model: see notes"},
            {"offset": 8, "name": "ui1_input_type", "writable": true, "state_map": {"0": "Analog 0-10 V", "1": "Digital 24 V", "2": "NTC 10k temperature", "3": "Volt-free contact", "4": "Resistance"}, "description": "UI1 type: 0 = analog 0-10 V; 1 = digital 24 V; 2 = NTC 10k; 3 = volt-free contact; 4 = resistance (device firmware 1.2 and later). Default 0"},
            {"offset": 9, "name": "ui2_input_type", "writable": true, "state_map": {"0": "Analog 0-10 V", "1": "Digital 24 V", "2": "NTC 10k temperature", "3": "Volt-free contact", "4": "Resistance"}, "description": "UI2 type: 0 = analog 0-10 V; 1 = digital 24 V; 2 = NTC 10k; 3 = volt-free contact; 4 = resistance (device firmware 1.2 and later). Default 0"},
            {"offset": 10, "name": "ui3_input_type", "writable": true, "state_map": {"0": "Analog 0-10 V", "1": "Digital 24 V", "2": "NTC 10k temperature", "3": "Volt-free contact", "4": "Resistance"}, "description": "UI3 type: 0 = analog 0-10 V; 1 = digital 24 V; 2 = NTC 10k; 3 = volt-free contact; 4 = resistance (device firmware 1.2 and later). Default 0"},
            {"offset": 11, "name": "ui4_input_type", "writable": true, "state_map": {"0": "Analog 0-10 V", "1": "Digital 24 V", "2": "NTC 10k temperature", "3": "Volt-free contact", "4": "Resistance"}, "description": "UI4 type: 0 = analog 0-10 V; 1 = digital 24 V; 2 = NTC 10k; 3 = volt-free contact; 4 = resistance (device firmware 1.2 and later). Default 0"},
            {"offset": 12, "name": "ui5_input_type", "writable": true, "state_map": {"0": "Analog 0-10 V", "1": "Digital 24 V", "2": "NTC 10k temperature", "3": "Volt-free contact", "4": "Resistance"}, "description": "UI5 type: 0 = analog 0-10 V; 1 = digital 24 V; 2 = NTC 10k; 3 = volt-free contact; 4 = resistance (device firmware 1.2 and later). Default 0"},
            {"offset": 13, "name": "ui6_input_type", "writable": true, "state_map": {"0": "Analog 0-10 V", "1": "Digital 24 V", "2": "NTC 10k temperature", "3": "Volt-free contact", "4": "Resistance"}, "description": "UI6 type: 0 = analog 0-10 V; 1 = digital 24 V; 2 = NTC 10k; 3 = volt-free contact; 4 = resistance (device firmware 1.2 and later). Default 0"},
            {"offset": 14, "name": "ui1_offset", "data_type": "int16", "writable": true, "description": "UI1 offset, -500…500, default 0. Unit follows the input type: analog 10 mV per count; NTC 0.1 °C per count; resistance 10 Ω per count; digital and volt-free: not 0 = input inverted"},
            {"offset": 15, "name": "ui2_offset", "data_type": "int16", "writable": true, "description": "UI2 offset, -500…500, default 0. Unit follows the input type: analog 10 mV per count; NTC 0.1 °C per count; resistance 10 Ω per count; digital and volt-free: not 0 = input inverted"},
            {"offset": 16, "name": "ui3_offset", "data_type": "int16", "writable": true, "description": "UI3 offset, -500…500, default 0. Unit follows the input type: analog 10 mV per count; NTC 0.1 °C per count; resistance 10 Ω per count; digital and volt-free: not 0 = input inverted"},
            {"offset": 17, "name": "ui4_offset", "data_type": "int16", "writable": true, "description": "UI4 offset, -500…500, default 0. Unit follows the input type: analog 10 mV per count; NTC 0.1 °C per count; resistance 10 Ω per count; digital and volt-free: not 0 = input inverted"},
            {"offset": 18, "name": "ui5_offset", "data_type": "int16", "writable": true, "description": "UI5 offset, -500…500, default 0. Unit follows the input type: analog 10 mV per count; NTC 0.1 °C per count; resistance 10 Ω per count; digital and volt-free: not 0 = input inverted"},
            {"offset": 19, "name": "ui6_offset", "data_type": "int16", "writable": true, "description": "UI6 offset, -500…500, default 0. Unit follows the input type: analog 10 mV per count; NTC 0.1 °C per count; resistance 10 Ω per count; digital and volt-free: not 0 = input inverted"}
          ]
        },
        "Output settings": {
          "fc": 3,
          "reg_start": 20,
          "reg_count": 13,
          "poll_interval": 10,
          "response_timeout": 0.5,
          "retries": 1,
          "variables": [
            {"offset": 0, "name": "ao_pwm_mask", "data_type": "bit_field", "writable": true, "bits": {"0": {"name": "AO1"}, "1": {"name": "AO2"}, "2": {"name": "AO3"}, "3": {"name": "AO4"}}, "description": "Bit set = the output works in PWM mode (bit 0 = AO1 … bit 3 = AO4); device firmware 1.2 and later. Default 0"},
            {"offset": 1, "name": "pwm_cycle_time", "unit": "ms", "scale": 20, "writable": true, "description": "PWM cycle time, 2…30000 in 20 ms steps (40 ms … 10 min). Default 1000 (20 s)"},
            {"offset": 2, "name": "ao1_offset", "data_type": "int16", "unit": "V", "scale": 0.01, "writable": true, "description": "AO1 offset, -500…500 (10 mV per count, ±5.00 V). Default 0"},
            {"offset": 3, "name": "ao2_offset", "data_type": "int16", "unit": "V", "scale": 0.01, "writable": true, "description": "AO2 offset, -500…500 (10 mV per count, ±5.00 V). Default 0"},
            {"offset": 4, "name": "ao3_offset", "data_type": "int16", "unit": "V", "scale": 0.01, "writable": true, "description": "AO3 offset, -500…500 (10 mV per count, ±5.00 V). Default 0"},
            {"offset": 5, "name": "ao4_offset", "data_type": "int16", "unit": "V", "scale": 0.01, "writable": true, "description": "AO4 offset, -500…500 (10 mV per count, ±5.00 V). Default 0"},
            {"offset": 6, "name": "offline_time", "unit": "s", "writable": true, "description": "Line silence before offline mode, 0…120 s. Default 0"},
            {"offset": 7, "name": "offline_mask", "data_type": "bit_field", "writable": true, "bits": {"0": {"name": "AO1"}, "1": {"name": "AO2"}, "2": {"name": "AO3"}, "3": {"name": "AO4"}, "4": {"name": "DO1"}, "5": {"name": "DO2"}, "6": {"name": "DO3"}, "7": {"name": "DO4"}, "8": {"name": "DO5"}}, "description": "Bit set = the output takes its offline value in offline mode (bit 0 = AO1 … bit 3 = AO4, bit 4 = DO1 … bit 8 = DO5). Default 0"},
            {"offset": 8, "name": "do_offline_values", "data_type": "bit_field", "writable": true, "bits": {"0": {"name": "DO1"}, "1": {"name": "DO2"}, "2": {"name": "DO3"}, "3": {"name": "DO4"}, "4": {"name": "DO5"}}, "description": "Relay states in offline mode, 1 = on (bit 0 = DO1 … bit 4 = DO5). Default 0"},
            {"offset": 9, "name": "ao1_offline_value", "unit": "V", "scale": 0.01, "writable": true, "description": "AO1 in offline mode, 0…1000 (10 mV per count). Default 0"},
            {"offset": 10, "name": "ao2_offline_value", "unit": "V", "scale": 0.01, "writable": true, "description": "AO2 in offline mode, 0…1000 (10 mV per count). Default 0"},
            {"offset": 11, "name": "ao3_offline_value", "unit": "V", "scale": 0.01, "writable": true, "description": "AO3 in offline mode, 0…1000 (10 mV per count). Default 0"},
            {"offset": 12, "name": "ao4_offline_value", "unit": "V", "scale": 0.01, "writable": true, "description": "AO4 in offline mode, 0…1000 (10 mV per count). Default 0"}
          ]
        }
      }
    }
  }
}
