Explainer
Reading motor actual speed from a SINAMICS drive into an S7-1200
Short answer
The rpm entry field is a setpoint, so the actual-speed display must read the drive's speed actual value — the second word of PROFIdrive telegram 1 — scaled once in the PLC and shown as its own tag. The 'error in subordinate component' behind the red LED is a separate diagnostic: the diagnostic buffer names the faulty device, and the motor turning proves nothing about it.

On this page
Half of your program is done: the buttons, the stop and the rpm entry field are the command side. The missing half is one feedback signal. Show actual speed by reading the drive's speed actual value from the cyclic telegram — with a PROFIdrive telegram 1 that is the second word the drive sends back — converting it to rpm once in the PLC and placing that tag on the panel. The red LED is a separate job: an error in a subordinate component means a device configured under the PLC is reporting a fault, and the motor turning on the forward command proves nothing about it.
The entry field is a command, not a measurement #
The 0 to 1500 rpm entry field carries what you ask the drive for, and nothing in the PLC can derive shaft speed from it. An induction motor runs below synchronous speed by its slip. A 1400 rpm nameplate rating points to a 4-pole machine at 50 Hz: synchronous speed is 120 × 50 / 4 = 1500 rpm, and at rated load the rotor lags it by about 6.7 percent. Lightly loaded, the shaft creeps up toward synchronous speed; heavily loaded, it drops further. The display therefore has to read a signal that comes back from the machinery, not one that goes out to it.
Feedback paths and when each is right #
| Path | What the PLC reads | Choose it when |
|---|---|---|
| Cyclic telegram over PROFIBUS or PROFINET | the drive's speed actual value word | the drive is already a configured node — the default for this panel |
| Drive analog output into a PLC analog input | a voltage or current scaled to speed | no fieldbus exists between drive and PLC |
| Shaft encoder into a counting input | pulses converted to rpm | the number must be an independent mechanical measurement |
Take the drive's word by default, because the drive already computes it — from its internal motor model or from a motor encoder — and it costs no wiring. Its blind spot is everything downstream of the motor shaft: a slipping belt or a sheared coupling still reports full speed. When the number has to be the load's real speed, that is the encoder row, and no scaling rescue will turn the drive's estimate into a measurement.
The order number decides the language #
The 0.75 kW rating tells you nothing about how the drive talks. Read the order number off the nameplate before writing another line of code. A G120-family drive with a PROFIBUS or PROFINET interface is configured as a PROFIdrive node and exchanges process-data telegrams with the S7-1200 — that is the case the rest of this article works through. A SINAMICS V20 wired over USS exchanges registers instead, with a mapping of its own; V20 USS communication with an S7-300 instead of PROFIBUS is a different job, and none of the telegram arithmetic below applies to it.
What the drive sends back #
PROFIdrive telegram 1 is the smallest standard exchange: two words in each direction, every cycle. Toward the drive go a control word and the speed setpoint; back come a status word and the speed actual value. Your speed is therefore the second received process-data word, read as a signed 16-bit integer. The status word arriving beside it carries the drive's state — tie the display's validity to it, so a faulted drive blanks or flags the number instead of leaving an old value on screen as if it were live.
If the command side misbehaves — setpoint written, nothing moves — the checks are in fixing missing setpoint and control word writes to a PROFIBUS drive. Receiving data that changes proves only that the connection is alive; confirm the word really is speed by stepping the setpoint and watching the value follow, with standstill reading approximately zero.
Scale once, in the PLC #
Do the conversion in one place and keep the raw word as its own tag, so a wrong display can be traced to acquisition or to scaling. PROFIdrive normalizes speed: the raw value 16384 stands for 100 percent of the drive's reference speed, and the reference speed in rpm is a parameter you read out of the drive itself. The conversion is rpm = raw × reference_rpm / 16384. Worked example with a reference speed of 1500 rpm: a received 8192 reads 8192 × 1500 rpm / 16384 = 750 rpm.
// Illustrative tag names and example values, not drive parameter numbers.
#raw_speed : Word := 0; // speed actual value, telegram word 2
#speed_norm : Real;
#speed_rpm : Real;
#ref_raw : DInt := 16384; // example: raw value standing for 100 percent
#ref_rpm : Real := 1500.0; // example: drive reference speed in rpm
#speed_norm := NORM_X(MIN := -1.0 * #ref_raw, VALUE := WORD_TO_INT(#raw_speed), MAX := #ref_raw);
#speed_rpm := SCALE_X(MIN := -1.0 * #ref_rpm, VALUE := #speed_norm, MAX := #ref_rpm);
The signed conversion ahead of the normalize instruction is what keeps reverse reading negative instead of wrapping to an impossible positive number. Prove the result: a stopped shaft reads approximately 0 rpm, a forward jog at half setpoint reads half the example reference speed, and reverse flips the sign. Compare against the speed on the drive's own display; the two should agree to within rounding, since they are the same value twice. Take both readings from the displays and the PLC tags — if a check ever needs probes on live drive terminals, that work goes under your site's electrical safe work permit, and a standing EEWP for routine live access to VFD HIM modules is one workable form of it.
The red LED is a separate fault #
An error in a subordinate component is the PLC reporting that a device configured beneath it in the project — the panel, the drive as a configured node, a signal module — is flagging a fault. The program keeps running, which is why forward still turns the motor; the two facts are unrelated, and a turning motor has never cleared a diagnostic. In TIA Portal V13, go online with the PLC and open its device diagnostics; the diagnostic buffer is the first screen to read. The entries for the named component give the cause, and in a bench setup like this one expect one of two findings: a configured device that is not reachable (wrong node address in the project, device unpowered, bad cable) or hardware that does not match the configured module. Correct the named cause. The LED goes out only when no active fault remains; older entries stay in the buffer as history.
The decision for each case #
- Drive on PROFIBUS or PROFINET, as on this panel: read the second received word as a signed integer, run it through the normalize-and-scale pair above, and display the rpm tag.
- No fieldbus to the drive: program the drive's analog output to represent speed, land it on a PLC analog input and scale with the documented endpoints — the walk-through for scaling a SINAMICS G150 actual speed via PROFIBUS to an analog output shows the shape of that parameter chain.
- The number must be the load's true mechanical speed: an encoder on the shaft into a counting input, with rpm = 60 × counts / (counts per revolution × seconds), folding the edge evaluation and any gear ratio into counts per revolution.
- Red LED still lit: the diagnostic buffer names the component; fix that cause, then confirm the LED clears. The forward command working is not evidence of anything.
Questions asked
Which telegram do I need for a second encoder's speed?
Standard telegrams 4 and 6 and Siemens telegram 106 support up to two encoders, but the 32-bit actual speed NIST_B is transferred only for encoder 1. A second encoder's speed has to be mapped into free telegram words, with the telegram extended by the extra process-data words the drive's telegram configuration documentation lists. If only one motor encoder exists, telegram 1 remains the simpler choice.
Why does the display jump to a huge positive speed in reverse?
The actual-value word is signed, and reverse is a negative number. Read as an unsigned word, the pattern for minus 750 rpm is 57344, which at the example scaling displays as 5250 rpm. Convert with a signed conversion before normalizing and reverse comes out negative — the correct reading for a bidirectional motor.
The nameplate says 1400 rpm, so why does the shaft never hold that speed?
1400 rpm is the rated speed at rated frequency and rated load. An induction motor always lags synchronous speed by its slip, about 6.7 percent at full load here and less at part load. On a drive the synchronous speed follows the output frequency, so this 4-pole motor at 25 Hz has a 750 rpm synchronous speed and turns slightly below that — exactly why the setpoint field cannot stand in for feedback.
The diagnostic buffer is full of entries — which one keeps the LED red?
Only a fault that is still present lights the LED. When a fault arrives and later clears, the buffer pairs the incoming entry with an outgoing event, and that pair is history, not an active fault. Open the entries for the component named in the message and read which fault lacks an outgoing partner; fix that one, then confirm the LED goes out while the old entries remain readable as a record.
