{
  "format": "voltrus-device-template/1",
  "template_id": "weg-cfw500",
  "manufacturer": "WEG",
  "model": "CFW500",
  "protocol": "modbus",
  "description": "Compact AC drive with a built-in RS-485 Modbus RTU slave port. Every drive parameter is exposed as a 16-bit holding register, so monitoring values, setpoints, the control word and the speed reference are all read and written the same way. Register map: https://voltrus.id/registers/weg/cfw500/",
  "version": "1.0.0",
  "verified": false,
  "verified_notes": "Generated by voltrus.id from Document 10002253377, revision 04, publication date 06/2025. Scales and ranges for monitoring and setpoint parameters from the CFW500 Programming Manual V2.2X, document 10002296099 / 07, 09/2024 (https://static.weg.net/medias/downloadcenter/h73/ha4/WEG-CFW500-modbus-rtu-manual-10002253377-en.pdf), read 2026-10-24. Not checked against a real device; confirm a known value before relying on it.",
  "quirks": [
    "Offsets are 0-based wire addresses. The manual prints 0-based addresses, the same as here.",
    "The manual does not state the word order for 32 and 64-bit values; big (AB CD) is set. Check one known value and change it if it reads wrong.",
    "All rows are single 16-bit registers, so word order does not apply.",
    "The device speaks Modbus RTU. Voltrus SCADA polls Modbus TCP, so connect it through a Modbus RTU to TCP gateway: use the gateway's IP and port and the device's unit ID.",
    "Defaults from the manual: Factory values per the Modbus manual: address 1 (P0308), 19200 bit/s (P0310 = 1), 8 data bits with even parity and 1 stop bit (P0311 = 1), Modbus RTU on the standard serial port (P0312 = 2)."
  ],
  "license": "CC-BY-4.0",
  "port": 502,
  "unit_id": 1,
  "interval_ms": 1000,
  "endianness": "big",
  "registers": [
    {
      "name": "P0001_SpeedReference",
      "offset": 1,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Speed reference in use (any source) (manual address 1)"
    },
    {
      "name": "P0002_OutputSpeed",
      "offset": 2,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Output speed (motor), same scale as P0001 (manual address 2)"
    },
    {
      "name": "P0003_MotorCurrent",
      "offset": 3,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 0.1,
      "unit": "A",
      "description": "Motor current (RMS) (manual address 3)"
    },
    {
      "name": "P0004_DCLinkVoltage",
      "offset": 4,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "unit": "V",
      "description": "DC link voltage (manual address 4)"
    },
    {
      "name": "P0005_OutputFrequency",
      "offset": 5,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 0.1,
      "unit": "Hz",
      "description": "Output frequency applied to the motor (manual address 5)"
    },
    {
      "name": "P0006_InverterStatus",
      "offset": 6,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Inverter status code (manual address 6)"
    },
    {
      "name": "P0007_OutputVoltage",
      "offset": 7,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "unit": "V",
      "description": "Output line voltage (manual address 7)"
    },
    {
      "name": "P0009_MotorTorque",
      "offset": 9,
      "register_type": "int16",
      "register_area": "holding",
      "scale": 0.1,
      "unit": "%",
      "description": "Motor torque relative to rated torque (manual address 9)"
    },
    {
      "name": "P0010_OutputPower",
      "offset": 10,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 0.1,
      "unit": "kW",
      "description": "Output power (manual address 10)"
    },
    {
      "name": "P0011_PowerFactor",
      "offset": 11,
      "register_type": "int16",
      "register_area": "holding",
      "scale": 0.01,
      "description": "Motor power factor (manual address 11)"
    },
    {
      "name": "P0012_DigitalInputStatus",
      "offset": 12,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Digital input states DI1 to DI8 (bit 0 is DI1) (manual address 12)"
    },
    {
      "name": "P0013_DigitalOutputStatus",
      "offset": 13,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Digital output states DO1 to DO5 (bit 0 is DO1) (manual address 13)"
    },
    {
      "name": "P0014_AO1Value",
      "offset": 14,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 0.1,
      "unit": "%",
      "description": "Analog output 1 value (manual address 14)"
    },
    {
      "name": "P0018_AI1Value",
      "offset": 18,
      "register_type": "int16",
      "register_area": "holding",
      "scale": 0.1,
      "unit": "%",
      "description": "Analog input 1 value (manual address 18)"
    },
    {
      "name": "P0019_AI2Value",
      "offset": 19,
      "register_type": "int16",
      "register_area": "holding",
      "scale": 0.1,
      "unit": "%",
      "description": "Analog input 2 value (manual address 19)"
    },
    {
      "name": "P0023_MainSoftwareVersion",
      "offset": 23,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 0.01,
      "description": "Main software version (manual address 23)"
    },
    {
      "name": "P0030_PowerModuleTemperature",
      "offset": 30,
      "register_type": "int16",
      "register_area": "holding",
      "scale": 1,
      "unit": "°C",
      "description": "Power module temperature (internal NTC) (manual address 30)"
    },
    {
      "name": "P0037_MotorOverloadIxt",
      "offset": 37,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "unit": "%",
      "description": "Motor overload (Ixt) accumulator (manual address 37)"
    },
    {
      "name": "P0048_PresentAlarm",
      "offset": 48,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Alarm number currently active (manual address 48)"
    },
    {
      "name": "P0049_PresentFault",
      "offset": 49,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Fault number currently active (manual address 49)"
    },
    {
      "name": "P0050_LastFault",
      "offset": 50,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Most recent fault number (manual address 50)"
    },
    {
      "name": "P0100_AccelerationTime",
      "offset": 100,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 0.1,
      "unit": "s",
      "description": "Acceleration time (ramp 1) (manual address 100)",
      "writable": true
    },
    {
      "name": "P0101_DecelerationTime",
      "offset": 101,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 0.1,
      "unit": "s",
      "description": "Deceleration time (ramp 1) (manual address 101)",
      "writable": true
    },
    {
      "name": "P0133_MinimumSpeed",
      "offset": 133,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 0.1,
      "unit": "Hz",
      "description": "Minimum speed reference (manual address 133)",
      "writable": true
    },
    {
      "name": "P0134_MaximumSpeed",
      "offset": 134,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 0.1,
      "unit": "Hz",
      "description": "Maximum speed reference (manual address 134)",
      "writable": true
    },
    {
      "name": "P0308_SerialAddress",
      "offset": 308,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Modbus slave address (manual address 308)",
      "writable": true
    },
    {
      "name": "P0310_SerialBaudRate",
      "offset": 310,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Serial baud rate selector (manual address 310)",
      "writable": true
    },
    {
      "name": "P0311_SerialBytesConfig",
      "offset": 311,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Serial data bits, parity and stop bits selector (manual address 311)",
      "writable": true
    },
    {
      "name": "P0313_CommErrorAction",
      "offset": 313,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Action taken on a communication error (manual address 313)",
      "writable": true
    },
    {
      "name": "P0314_SerialWatchdog",
      "offset": 314,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 0.1,
      "unit": "s",
      "description": "Serial watchdog timeout (0 disables) (manual address 314)",
      "writable": true
    },
    {
      "name": "P0316_SerialInterfaceStatus",
      "offset": 316,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Serial interface status (manual address 316)"
    },
    {
      "name": "P0401_MotorRatedCurrent",
      "offset": 401,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 0.1,
      "unit": "A",
      "description": "Motor rated current (manual address 401)",
      "writable": true
    },
    {
      "name": "P0402_MotorRatedSpeed",
      "offset": 402,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "unit": "rpm",
      "description": "Motor rated speed (manual address 402)",
      "writable": true
    },
    {
      "name": "P0403_MotorRatedFrequency",
      "offset": 403,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "unit": "Hz",
      "description": "Motor rated frequency (manual address 403)",
      "writable": true
    },
    {
      "name": "P0680_LogicalStatus",
      "offset": 680,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Logical status word (manual address 680)"
    },
    {
      "name": "P0681_SpeedAt13Bits",
      "offset": 681,
      "register_type": "int16",
      "register_area": "holding",
      "scale": 1,
      "description": "Actual speed on the 13-bit scale (manual address 681)"
    },
    {
      "name": "P0682_SerialControlWord",
      "offset": 682,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Serial control word (manual address 682)",
      "writable": true
    },
    {
      "name": "P0683_SerialSpeedReference",
      "offset": 683,
      "register_type": "int16",
      "register_area": "holding",
      "scale": 1,
      "description": "Serial speed reference on the 13-bit scale (manual address 683)",
      "writable": true
    },
    {
      "name": "P0695_DOxValue",
      "offset": 695,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Digital output values driven by the network (bit 0 is DO1) (manual address 695)",
      "writable": true
    },
    {
      "name": "P0696_AOxValue1",
      "offset": 696,
      "register_type": "int16",
      "register_area": "holding",
      "scale": 1,
      "description": "Analog output value 1 from the network (manual address 696)",
      "writable": true
    },
    {
      "name": "P0697_AOxValue2",
      "offset": 697,
      "register_type": "int16",
      "register_area": "holding",
      "scale": 1,
      "description": "Analog output value 2 from the network (manual address 697)",
      "writable": true
    },
    {
      "name": "P0698_AOxValue3",
      "offset": 698,
      "register_type": "int16",
      "register_area": "holding",
      "scale": 1,
      "description": "Analog output value 3 from the network (manual address 698)",
      "writable": true
    }
  ]
}
