How-to
Read motor current and speed from a CU240E-2 with an S7-1200
Short answer
Configure telegram 352 (PZD-6/6) on the CU240E-2 and the S7-1200, write control word STW1 and a speed setpoint normalized to p2000, and read status, actual speed and motor current r0027 from the assigned input words, converting each raw value back with the drive's reference parameters p2000 and p2002.

On this page
You get start/stop, speed reference, actual speed and motor current from a CU240E-2 PN over one cyclic telegram: select telegram 352 (PZD-6/6) in the S7-1200's device configuration and in the drive, write control word STW1 and the setpoint NSOLL_B into the output words, and read ZSW1, NIST_B and the motor current r0027 back from the input words. The PM240 behind it is only the power stage; the control unit is the whole interface. Every analog value travels normalized, so the PLC converts each raw word with the drive's reference parameters — p2000 for speed, p2002 for current — and the network link by itself fixes none of it: until the telegram matches on both sides and the command source points at the fieldbus, the words stay empty or the drive ignores them.
What telegram 352 carries #
PROFINET IO retransmits the same block of words every bus cycle between the S7-1200 as IO controller and the control unit as IO device. Telegram 352 is the 6/6-word arrangement for this drive: the first two words in each direction are fixed, and the remaining four are spare on both sides.
| Word | PLC writes (outputs) | PLC reads (inputs) |
|---|---|---|
| PZD 1 | STW1, control word | ZSW1, status word |
| PZD 2 | NSOLL_B, speed setpoint | NIST_B, actual speed |
| PZD 3 to 6 | spare | spare, for example r0027 via p2051 |
This is the drive-specific case of the general pattern described in How PROFINET drive control telegrams map PLC commands to a drive. The map is documented for the CU240B-2 and CU240E-2 control units; confirm it against the list manual for your firmware before you depend on the spare words.
If your engineering tool has no integrated description for this control unit, Siemens supplies a GSDML device description that gives the tool the slots, telegram options and word lengths. Loading it changes nothing on the drive: it does not select the telegram, move command authority, or scale a single value.
Configure it end to end #
- In TIA Portal, make the S7-1200 a PROFINET IO controller and insert the CU240E-2 PN as the drive device, picking the entry that matches your control unit and its firmware.
- Select telegram 352, the PZD-6/6 arrangement, in the drive device's telegram assignment, and set the matching telegram in the control unit's fieldbus commissioning so both sides agree.
- Note the word start addresses the device configuration assigns to the drive's input and output areas; every tag in your logic points at those addresses.
- Switch the drive's command and setpoint source to the fieldbus, so STW1 and NSOLL_B become the executed signals instead of the terminal strip or the operator panel; the selection lives in the control unit's commissioning menus.
- In the drive's cyclic interconnection list p2051, connect r0027 to a spare input word:
p2051[2]puts the filtered motor current into the third input word. - Read p2000 and p2002 from the drive and build the conversions on those exact values; p2002 defaults to the power module's rated current during commissioning.
- Download both projects and confirm the drive sits online in the PLC's device diagnostics with no configuration mismatch.
Start and stop with STW1 #
The control word is a state-machine request, not a start button: every bit below must be right at once, which is why the documented sequence runs through one defined word.
| Bit | Name | Value for run |
|---|---|---|
| 0 | ON | 1 to start |
| 1 | OFF2 inactive, no coast stop | 1 |
| 2 | OFF3 inactive, no rapid stop | 1 |
| 3 | Pulse enable | 1 |
| 4 | Ramp-inhibit released | 1 |
| 5 | Uncontrolled ramp-inhibit released | 1 |
| 6 | Setpoint enable | 1 |
| 7 | Fault acknowledge, 0-to-1 edge | pulse to reset |
| 8, 9 | Jog 1, Jog 2 | 0 |
| 10 | Control by PLC | 1 |
| 11 | Reversal | 0 forward, 1 reverse |
| 12 to 15 | Defined in the Control Units manual | 0 |
With ZSW1 showing bit 3 at 1 (no fault) and bit 6 at 1 (no switch-on inhibit), write 047E hex — bits 1 through 6 plus bit 10 — then write 047F hex. The rising edge on bit 0 releases the pulses and the motor runs up on the drive's own ramp. Dropping bit 0 back to 047E ramps the drive down as an OFF1 stop; clearing bit 1 instead commands a coast, clearing bit 2 a rapid stop. Reset faults with a 0-to-1 edge on bit 7, kept away from the ON bit so an acknowledgement can never restart the motor. One safety line: a stop over this word is an operational stop, not a safety function, and it never replaces the machine's own stopping means.
If the drive trips as control moves to the fieldbus, the guide to resolving fault F7802 on a CU240E-2 with a PM240 is the walk-through for that failure.
Send the speed setpoint #
NSOLL_B, the second output word, is a signed 16-bit setpoint normalized to p2000, the reference speed commissioning wrote into the drive. The CU240B-2/CU240E-2 Control Units operating instructions work their example at p2000 = 3000 rpm and read 2100 rpm actual as 2100 / 3000 = 0.7 of reference. Full scale is 16384 decimal, written 4000 hex, so a 1450 rpm request against that same 3000 rpm reference computes as 1450 / 3000 × 16384 = 7918.9: write 7919 decimal — 1EEF hex — into the setpoint word and the drive scales it back to speed on arrival. If your commissioning left p2000 as a frequency, the identical arithmetic applies with that hertz reference and the word still spans the full range.
Leave the ramp to the drive and treat the PLC as the reference master; if you are weighing a PLC-side loop instead, where the PID belongs in S7-1200 speed control of a G120 sets out that placement. And if the p2000 basis needs a deeper pass, the p2000 reference-speed scaling guide for this converter family covers the reference parameters end to end.
Read actual speed from NIST_B #
NIST_B, the second input word, uses the same normalization and arrives signed, so reverse rotation reads negative. Your 1233 rpm example against a 3000 rpm reference travels as 1233 / 3000 × 16384 = 6734 raw counts, and 6734 × 3000 / 16384 reads back 1233.0 rpm in the PLC; one raw count is worth about 0.18 rpm at that reference. Whether the value is measured or estimated depends on the encoder equipment commissioned in the drive — without an encoder it is the drive's model estimate, and it tracks the shaft only as well as that model does. For the same feedback word followed into the S7's logic, Reading motor actual speed from a SINAMICS drive into an S7-1200 shows the tag-to-conversion path.
Read motor current from r0027 #
r0027 is the control unit's filtered motor current; over the telegram it travels normalized to p2002, not in amperes. With a drive commissioned at a p2002 of 24.0 A — read your own value from the drive — a motor pulling 24.5 A sends 24.5 / 24.0 × 16384 = 16,725 raw counts into the word you put r0027 in, and the PLC converts 16,725 × 24.0 / 16384 = 24.5 A. One count is about 1.5 mA at that reference, far finer than any overcurrent comparison in the PLC needs. Move the word with a single integer read and convert once per scan; comparing the raw value against a fixed threshold without the p2002 conversion is the classic failure, because the number looks plausible and is simply wrong on any drive commissioned to a different rating.
When words arrive but nothing works #
- No cyclic connection. If the drive logs A08526 or the PLC marks the device unreachable, the exchange itself is down — device name, IP parameters or a word length that differs between the projects. The article on why a PROFINET drive reports A08526 no cyclic connection walks that recovery.
- Telegram mismatch. Both sides must agree on six words each way; a length difference leaves the drive waiting and the input words frozen at their last values.
- Wrong offset. A valid word read at the wrong start address looks like plausible speed or current while actually being the status word. Go back to the addresses noted in step 3 before trusting any conversion.
- Command authority. Cyclic traffic can be perfect while the motor still answers only the terminals — recheck step 4 and the status word's inhibit bits.
Decision: telegram 352 on both sides, the command and setpoint source on the fieldbus, r0027 on a spare input word through p2051, and every conversion built on your drive's own p2000 and p2002. That yields start and stop on a documented bit sequence, a setpoint that lands as commanded, feedback in rpm and current in amperes — from six words per direction, with no undocumented addresses anywhere.
Questions asked
Is there a fixed address in the PLC for motor current?
No. The word address is whatever the device configuration assigns to the drive's input area, and which signal a word carries is set by the telegram plus the drive's p2051 interconnection. With telegram 352, connect r0027 to a spare input word by writing it into index 2 of p2051, note the assigned address, read the word as a signed integer, and convert with the drive's reference current p2002.
Why does my drive stay stopped even though PROFINET shows healthy?
A healthy cyclic link does not transfer command authority. The control unit executes whichever source its command and setpoint selections name, and after local commissioning that is often the terminal strip or the operator panel. Move both selections to the fieldbus, then check the status word: bit 3 must show no fault and bit 6 no switch-on inhibit before the ON bit can start anything.
What is the GSDML file actually for?
GSDML is the manufacturer's device description for a PROFINET device. It gives your engineering tool the control unit's slots, telegram options and word lengths; you get it from the manufacturer's support pages when your tool version has no integrated description for the unit. It never selects a telegram, moves command authority to the fieldbus, or scales a value — those stay drive-side settings.
How do I acknowledge a drive fault from the S7-1200?
Raise bit 7 of the control word as a 0-to-1 edge while the rest of the word keeps its run-ready pattern, then clear the bit again. Keep the acknowledgement separate from the ON bit in your logic so a reset can never double as a restart; the drive stays stopped until your sequence deliberately issues a new start.
Does the actual speed word arrive in rpm or in hertz?
In neither: it arrives as a fraction of the drive's reference p2000. Multiply the raw word by your drive's p2000 and divide by full scale, then label the result with whatever unit p2000 carries in your commissioning — speed or frequency follows the motor configuration, not the telegram.


