Every device. One tool. Pay once. Modbus · BACnet · Siemens S7 · one-time licence · also from us: BACManager ↗

Siemens SINAMICS G120 Modbus RTU: Register Map, STW1 and ZSW1

A SINAMICS G120 with a CU240B-2 or CU240E-2 control unit is a Modbus RTU slave once you choose it in p2030 — and Siemens gives it a fixed register map: control and status words at 40100 and 40110, speed, frequency, current and power from 40340, fault numbers from 40400. This page covers which control units have Modbus at all, the setup parameters, the map with its scaling, and the STW1 / ZSW1 bits, from Siemens's operating instructions and fieldbus function manual.

ModbusManager Pro dashboard for a Siemens SINAMICS G120 on a fan: drive faceplate running at about 40 Hz, 6.5 A, 3.1 kW and 1190 rpm; ZSW1 status word 0xE337 bit by bit; speed, setpoint, torque, DC link, main actual value in percent of p2000, output voltage, energy, manual/auto and fault number, and a speed and current trend
The free read-only workspace below on a simulated G120 — 40110 is wire address 109, diagnostics from 40340.

Which Control Units Have Modbus

Control UnitArticle numberFieldbus
CU240B-26SL3244-0BB00-1BA1USS, Modbus RTU
CU240E-26SL3244-0BB12-1BA1USS, Modbus RTU
CU240E-2 F6SL3244-0BB13-1BA1USS, Modbus RTU
… DP / DP-F…-1PA1PROFIBUS DP only
… PN / PN-F…-1FA0PROFINET, EtherNet/IP

Only the RS-485 variants ending in -1BA1 speak Modbus RTU. A DP or PN control unit cannot be switched to Modbus by any parameter — check the article number before planning the wiring.

Setup Parameters

ParameterSet toFactory setting / note
p20302 = Modbus RTUFieldbus protocol selection
p2020baud rate code7 = 19200 (5 = 4800, 6 = 9600, 8 = 38400 … 13 = 187500)
p20211–2471 — only used when the address switch on the control unit is 0
p2031parity2 = even (0 = none, 1 = odd)
p2040monitoring time10 s for Modbus (0 = off)
p2024times[0] max. telegram processing time 1000 ms
r2029—error statistics: good, rejected, framing, overrun, parity, CRC, length

The address switch on the control unit wins over p2021. A new address or protocol applies after the power is switched off and on. If no process data arrive within p2040 the drive faults; the timeout counts only the process-data registers (40100, 40101, 40110, 40111).

Register Map

FC03 reads, FC06 / FC16 write. On the wire the address is the register minus 40001: Siemens's own example reads 40110 with start address 006D hex = 109. A register outside the map is answered with an exception.

RegisterWireContentScale
4010099STW1 control word (R/W)bits
40101100Main setpoint (R/W)4000 hex = 100 % of p2000
40110109ZSW1 status wordbits
40111110Main actual value4000 hex = 100 % of p2000
40324323Reference speed p2000rpm
40340 / 40341339 / 340Speed setpoint r0020 / speed actual r0022rpm
40342341Output frequency r0024÷ 100 → Hz
40343 / 40344342 / 343Output voltage r0025 / DC link r0026V
40345344Current actual r0027÷ 100 → A
40346345Torque r0031÷ 100 → Nm
40347346Active power r0032÷ 100 → kW
40348347Energy r0039kWh
40349348Control: manual / auto r08070 / 1
40400…399…Fault numbers r0947[0]…—
40240–40245239–244Digital inputs DI 0–50 / 1
40260–40263259–262Analog inputs AI 0–3÷ 100 → %

Any other parameter is reached acyclically through data set 47 in registers 40601–40722 (40601 control, 40602 = 47 and length, data from 40603).

STW1 and ZSW1

STW1 (40100): bit 0 ON / OFF1, 1 no OFF2 (coast), 2 no OFF3 (quick stop), 3 enable operation, 4–6 ramp generator and setpoint enable, 7 acknowledge fault on 0→1, 10 control via PLC (0 = the drive ignores the Modbus process data), 11 reverse, 13 / 14 motorized potentiometer up / down. Bits 1–6 and 10 set with bit 0 = 0 gives 0x047E (ready); setting bit 0 gives 0x047F and the motor runs to the setpoint in 40101.

ZSW1 bit1 meansbit1 means
0Ready for switching on8Speed deviation within tolerance
1Ready9Master control requested
2Operation enabled10Comparison speed reached
3Fault active11Current / torque limit reached
4 / 5OFF2 / OFF3 inactive13No motor overtemperature alarm
6Switching on inhibited14Motor rotates clockwise
7Alarm active15Depends on telegram (CDS / no inverter overload alarm)

Switching on inhibited (bit 6) after a power-up means the drive needs an OFF1 first: write 0x047E, then 0x047F.

Common Mistakes

Step-by-Step: Reading a G120 with ModbusManager

  1. Check the control unit is a -1BA1 type; set the address switch to 0.
  2. Set p2030 = 2, p2021 = address, p2020 and p2031 as on the line; power off and on.
  3. In ModbusManager choose RTU, 19200, Even, 1 stop bit.
  4. Read FC03 address 109, quantity 2: ZSW1 and the actual value.
  5. Open the workspace below.

Download a Ready-Made Workspace

Read-only. No STW1, no setpoint: Start / Stop on the faceplate are disabled. Unit ID 1. Tags and dashboard are ModbusManager Pro features; Standard opens the poll windows only.

Siemens_G120_monitor.json

Siemens SINAMICS G120 read-only workspace. Open via Workspace › Open in ModbusManager Pro.

Download Workspace

Try it with ModbusManager Pro

Drive faceplate, status bits, historian and alarms — and S7 PLCs over PUT/GET. Free 14-day trial. No credit card. Windows 10/11.

Download Pro Trial

The PLC on the same panel: S7-1200 / S7-1500 over PUT/GET. Other drives: Altivar ATV320, Danfoss FC 102, ABB ACH580.

Frequently Asked Questions

Which SINAMICS G120 control units support Modbus RTU?

The RS-485 variants: CU240B-2 (6SL3244-0BB00-1BA1), CU240E-2 (6SL3244-0BB12-1BA1) and CU240E-2 F (6SL3244-0BB13-1BA1). The DP and PN variants do not.

What are the G120 Modbus registers for control and status word?

40100 is control word STW1 and 40101 the main setpoint; 40110 is status word ZSW1 and 40111 the main actual value. On the wire subtract 40001: ZSW1 is address 109.

How do I set the Modbus address on a G120?

Set p2030 = 2 (Modbus RTU) and p2021 to the address, with the control unit's address switch at 0 — otherwise the switch wins. Power the drive off and on.

How is the G120 setpoint scaled on Modbus?

40101 and 40111 use 4000 hex (16384) = 100 % of the reference speed p2000, which you can read at 40324. Speed in rpm is also at 40341 directly.

Why does the G120 ignore my Modbus commands?

STW1 bit 10 (control via PLC) must be 1, the drive must not be in manual (40349), and after power-up an OFF1 is needed first: 0x047E, then 0x047F.

Sources

Siemens, Converter with the CU240B-2 and CU240E-2 Control Units, Operating Instructions 04/2018, FW V4.7 SP10, A5E34259001B; SINAMICS G120 Fieldbus Function Manual 11/2020, FW V4.7 SP13, A5E34229197C (the edition on Siemens's download server is in Chinese; register numbers and parameter names are the same). Tested against a simulator built from these documents, not a physical drive.

// drives and the PLC

G120s and the S7 in one map

ModbusManager Pro reads several G120s on one RS-485 line and the S7-1200 over PUT/GET, and republishes both as one Modbus TCP map for SCADA or a BMS — without touching the PLC program.

Modbus gateway software →