{
  "format": "voltrus-device-template/1",
  "template_id": "siemens-sinamics-g120",
  "manufacturer": "Siemens",
  "model": "SINAMICS G120",
  "protocol": "modbus",
  "description": "Modular low-voltage AC converter family from Siemens. Control units with an RS485 port (such as the CU240B-2 and CU240E-2) can act as a Modbus RTU slave and expose process data, converter data, diagnostics and the technology controller through fixed holding registers. Register map: https://voltrus.id/registers/siemens/sinamics-g120/",
  "version": "1.0.0",
  "verified": false,
  "verified_notes": "Generated by voltrus.id from A5E34229197B AG, Edition 11/2020, FW V4.7 SP13 (https://cache.industry.siemens.com/dl/files/930/109791930/att_1049446/v1/G120_fieldbus_fct_man_1120_en-US.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 Modicon numbers such as 40001.",
    "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.",
    "Every register listed here is a single 16-bit register, so no multi-register word order applies to these rows.",
    "The device speaks Modbus RTU (RS485). 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: Modbus RTU is selected with p2030 = 2. The manual's Modbus settings list baud rate 19200 bit/s (p2020 = 7, range 4800 to 187500 bit/s) and states the converter is set at the factory for even parity (p2031 = 2). The address comes from the Control Unit address switch (1 to 127), or from p2021 (1 to 247, default 1) only when the switch is 0. An address change takes effect after a power cycle (p. 135-136)."
  ],
  "license": "CC-BY-4.0",
  "port": 502,
  "unit_id": 1,
  "interval_ms": 1000,
  "endianness": "big",
  "registers": [
    {
      "name": "ControlWord",
      "offset": 99,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Control word (process data 1) (manual address 40100)",
      "writable": true
    },
    {
      "name": "MainSetpoint",
      "offset": 100,
      "register_type": "int16",
      "register_area": "holding",
      "scale": 1,
      "description": "Main setpoint (process data 2) (manual address 40101)",
      "writable": true
    },
    {
      "name": "StatusWord",
      "offset": 109,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Status word (process data 1) (manual address 40110)"
    },
    {
      "name": "MainActualValue",
      "offset": 110,
      "register_type": "int16",
      "register_area": "holding",
      "scale": 1,
      "description": "Main actual value (process data 2) (manual address 40111)"
    },
    {
      "name": "DigitalOutput0",
      "offset": 199,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Digital output 0 (manual address 40200)",
      "writable": true
    },
    {
      "name": "DigitalOutput1",
      "offset": 200,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Digital output 1 (manual address 40201)",
      "writable": true
    },
    {
      "name": "DigitalOutput2",
      "offset": 201,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Digital output 2 (manual address 40202)",
      "writable": true
    },
    {
      "name": "AnalogOutputActual0",
      "offset": 219,
      "register_type": "int16",
      "register_area": "holding",
      "scale": 0.01,
      "unit": "%",
      "description": "Analog output 0 actual value (manual address 40220)"
    },
    {
      "name": "AnalogOutputActual1",
      "offset": 220,
      "register_type": "int16",
      "register_area": "holding",
      "scale": 0.01,
      "unit": "%",
      "description": "Analog output 1 actual value (manual address 40221)"
    },
    {
      "name": "AnalogOutputActual2",
      "offset": 221,
      "register_type": "int16",
      "register_area": "holding",
      "scale": 0.01,
      "unit": "%",
      "description": "Analog output 2 actual value (manual address 40222)"
    },
    {
      "name": "AnalogOutputWrite0",
      "offset": 522,
      "register_type": "int16",
      "register_area": "holding",
      "scale": 0.01,
      "unit": "%",
      "description": "Analog output 0 setpoint from fieldbus (manual address 40523)",
      "writable": true
    },
    {
      "name": "AnalogOutputWrite1",
      "offset": 523,
      "register_type": "int16",
      "register_area": "holding",
      "scale": 0.01,
      "unit": "%",
      "description": "Analog output 1 setpoint from fieldbus (manual address 40524)",
      "writable": true
    },
    {
      "name": "AnalogOutputWrite2",
      "offset": 524,
      "register_type": "int16",
      "register_area": "holding",
      "scale": 0.01,
      "unit": "%",
      "description": "Analog output 2 setpoint from fieldbus (manual address 40525)",
      "writable": true
    },
    {
      "name": "DigitalInput0",
      "offset": 239,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Digital input 0 (manual address 40240)"
    },
    {
      "name": "DigitalInput1",
      "offset": 240,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Digital input 1 (manual address 40241)"
    },
    {
      "name": "DigitalInput2",
      "offset": 241,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Digital input 2 (manual address 40242)"
    },
    {
      "name": "DigitalInput3",
      "offset": 242,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Digital input 3 (manual address 40243)"
    },
    {
      "name": "DigitalInput4",
      "offset": 243,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Digital input 4 (manual address 40244)"
    },
    {
      "name": "DigitalInput5",
      "offset": 244,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Digital input 5 (manual address 40245)"
    },
    {
      "name": "AnalogInput0",
      "offset": 259,
      "register_type": "int16",
      "register_area": "holding",
      "scale": 0.01,
      "unit": "%",
      "description": "Analog input 0 (manual address 40260)"
    },
    {
      "name": "AnalogInput1",
      "offset": 260,
      "register_type": "int16",
      "register_area": "holding",
      "scale": 0.01,
      "unit": "%",
      "description": "Analog input 1 (manual address 40261)"
    },
    {
      "name": "AnalogInput2",
      "offset": 261,
      "register_type": "int16",
      "register_area": "holding",
      "scale": 0.01,
      "unit": "%",
      "description": "Analog input 2 (manual address 40262)"
    },
    {
      "name": "AnalogInput3",
      "offset": 262,
      "register_type": "int16",
      "register_area": "holding",
      "scale": 0.01,
      "unit": "%",
      "description": "Analog input 3 (manual address 40263)"
    },
    {
      "name": "PowerStackNumber",
      "offset": 299,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Power stack number (manual address 40300)"
    },
    {
      "name": "FirmwareVersion",
      "offset": 300,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Converter firmware version (manual address 40301)"
    },
    {
      "name": "RatedPower",
      "offset": 319,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 0.01,
      "unit": "kW",
      "description": "Rated power (manual address 40320)"
    },
    {
      "name": "CurrentLimit",
      "offset": 320,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 0.1,
      "unit": "A",
      "description": "Current limit (manual address 40321)",
      "writable": true
    },
    {
      "name": "RampUpTime",
      "offset": 321,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 0.01,
      "unit": "s",
      "description": "Ramp-up time (manual address 40322)",
      "writable": true
    },
    {
      "name": "RampDownTime",
      "offset": 322,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 0.01,
      "unit": "s",
      "description": "Ramp-down time (manual address 40323)",
      "writable": true
    },
    {
      "name": "ReferenceSpeed",
      "offset": 323,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "unit": "rpm",
      "description": "Reference speed (manual address 40324)",
      "writable": true
    },
    {
      "name": "SpeedSetpoint",
      "offset": 339,
      "register_type": "int16",
      "register_area": "holding",
      "scale": 1,
      "unit": "rpm",
      "description": "Speed setpoint (manual address 40340)"
    },
    {
      "name": "ActualSpeed",
      "offset": 340,
      "register_type": "int16",
      "register_area": "holding",
      "scale": 1,
      "unit": "rpm",
      "description": "Actual speed (manual address 40341)"
    },
    {
      "name": "OutputFrequency",
      "offset": 341,
      "register_type": "int16",
      "register_area": "holding",
      "scale": 0.01,
      "unit": "Hz",
      "description": "Output frequency (manual address 40342)"
    },
    {
      "name": "OutputVoltage",
      "offset": 342,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "unit": "V",
      "description": "Output voltage (manual address 40343)"
    },
    {
      "name": "DCLinkVoltage",
      "offset": 343,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "unit": "V",
      "description": "DC link voltage (manual address 40344)"
    },
    {
      "name": "CurrentActual",
      "offset": 344,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 0.01,
      "unit": "A",
      "description": "Current actual value (manual address 40345)"
    },
    {
      "name": "TorqueActual",
      "offset": 345,
      "register_type": "int16",
      "register_area": "holding",
      "scale": 0.01,
      "unit": "N·m",
      "description": "Actual torque (manual address 40346)"
    },
    {
      "name": "ActivePower",
      "offset": 346,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 0.01,
      "unit": "kW",
      "description": "Actual active power (manual address 40347)"
    },
    {
      "name": "EnergyConsumption",
      "offset": 347,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "unit": "kWh",
      "description": "Energy consumption (manual address 40348)"
    },
    {
      "name": "ControlPriority",
      "offset": 348,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Control priority (hand or auto) (manual address 40349)"
    },
    {
      "name": "FaultNumber0",
      "offset": 399,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Fault number, index 0 (manual address 40400)"
    },
    {
      "name": "FaultNumber1",
      "offset": 400,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Fault number, index 1 (manual address 40401)"
    },
    {
      "name": "FaultNumber2",
      "offset": 401,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Fault number, index 2 (manual address 40402)"
    },
    {
      "name": "FaultNumber3",
      "offset": 402,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Fault number, index 3 (manual address 40403)"
    },
    {
      "name": "FaultNumber4",
      "offset": 403,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Fault number, index 4 (manual address 40404)"
    },
    {
      "name": "FaultNumber5",
      "offset": 404,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Fault number, index 5 (manual address 40405)"
    },
    {
      "name": "FaultNumber6",
      "offset": 405,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Fault number, index 6 (manual address 40406)"
    },
    {
      "name": "FaultNumber7",
      "offset": 406,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Fault number, index 7 (manual address 40407)"
    },
    {
      "name": "AlarmNumber",
      "offset": 407,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Alarm number (manual address 40408)"
    },
    {
      "name": "ActualAlarmCode",
      "offset": 408,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Actual alarm code (manual address 40409)"
    },
    {
      "name": "PrmErrorCode",
      "offset": 498,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Parameter access error code (manual address 40499)"
    },
    {
      "name": "TechCtrlEnable",
      "offset": 499,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Technology controller enable (manual address 40500)",
      "writable": true
    },
    {
      "name": "TechCtrlMOP",
      "offset": 500,
      "register_type": "int16",
      "register_area": "holding",
      "scale": 0.01,
      "unit": "%",
      "description": "Technology controller motorized potentiometer setpoint (manual address 40501)",
      "writable": true
    },
    {
      "name": "TechCtrlActualFilterTime",
      "offset": 509,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 0.01,
      "description": "Actual value filter time constant (manual address 40510)",
      "writable": true
    },
    {
      "name": "TechCtrlActualScale",
      "offset": 510,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 0.01,
      "unit": "%",
      "description": "Actual value scaling factor (manual address 40511)",
      "writable": true
    },
    {
      "name": "TechCtrlProportionalGain",
      "offset": 511,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 0.001,
      "description": "Proportional gain (manual address 40512)",
      "writable": true
    },
    {
      "name": "TechCtrlIntegralTime",
      "offset": 512,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "unit": "s",
      "description": "Integral time (manual address 40513)",
      "writable": true
    },
    {
      "name": "TechCtrlDerivativeTime",
      "offset": 513,
      "register_type": "uint16",
      "register_area": "holding",
      "scale": 1,
      "description": "Derivative time constant (manual address 40514)",
      "writable": true
    },
    {
      "name": "TechCtrlMaxLimit",
      "offset": 514,
      "register_type": "int16",
      "register_area": "holding",
      "scale": 0.01,
      "unit": "%",
      "description": "Output upper limit (manual address 40515)",
      "writable": true
    },
    {
      "name": "TechCtrlMinLimit",
      "offset": 515,
      "register_type": "int16",
      "register_area": "holding",
      "scale": 0.01,
      "unit": "%",
      "description": "Output lower limit (manual address 40516)",
      "writable": true
    },
    {
      "name": "TechCtrlEffectiveSetpoint",
      "offset": 519,
      "register_type": "int16",
      "register_area": "holding",
      "scale": 0.01,
      "unit": "%",
      "description": "Effective setpoint after ramp (manual address 40520)"
    },
    {
      "name": "TechCtrlActualFiltered",
      "offset": 520,
      "register_type": "int16",
      "register_area": "holding",
      "scale": 0.01,
      "unit": "%",
      "description": "Actual value after filter (manual address 40521)"
    },
    {
      "name": "TechCtrlOutput",
      "offset": 521,
      "register_type": "int16",
      "register_area": "holding",
      "scale": 0.01,
      "unit": "%",
      "description": "Technology controller output (manual address 40522)"
    }
  ]
}
