How-to
Splitting VFD speed and start stop between Modbus and digital inputs
Short answer
Apply connection macro Cn011, set P0700 to 2 so the digital inputs carry start and stop, and keep the HSW register as the speed reference scaled against P2000. A successful register write proves the link, not the source selection, so prove each path separately and never zero P2000 to silence fault F72.
On this page
Split the interface the way the machine wants it: connection macro Cn011 for the Modbus RTU link, P0700[0] set to 2 so the digital inputs own start and stop, and the HSW register kept as the speed reference, scaled against P2000. The reads and writes that already work are not a false start — they prove the link. What they do not prove is source selection: command source and frequency-setpoint source are two independent settings, and the drive runs on whichever source owns the run command. That is why valid STW and HSW writebacks can still leave the motor stopped. Commission the link, move the commands to the terminals, keep the setpoint serial, and treat fault F72 as the telegram problem it is — never as a reason to zero P2000.
Why a good-looking write never started the drive #
A Modbus write that reads back correctly tells you the link and the register map work. It tells you nothing about which source the drive is obeying. P0700[0] selects the command source — where ON and OFF come from. P1000[0] selects the frequency-setpoint source — where the speed number comes from. The two selections are independent, so a drive can accept your setpoint all day and still take its run command from somewhere else, or hold a run command while an old setpoint source rules the frequency. The general failure behind this symptom — a VFD that ignores Modbus RTU start commands from a PLC — lands on these same two parameters.
There is also a register-level trap: the control word is a bit-coded word, and a drive starts only on a valid bit pattern, not on an arbitrary value written once. You are not going to fight that path. The machine wants a local start pulse and a local stop anyway, so give the run command to the terminals, where it behaves like wire, and leave the link doing what it is good at: carrying the speed number.
Commission the link with Cn011 before anything else #
A connection macro is a named group of settings for one standard wiring arrangement, and the drive ships with Cn000 as the default. Cn011 is the Modbus RTU arrangement for the RS485 port. Select it in the connection-macro menu on the keypad: arrow keys, pick Cn011, confirm.
Do the commissioning in this order:
- Record the drive parameters as they stand now, including the current command and setpoint selections, so you have a recoverable baseline.
- Apply Cn011. A macro applied later would replace the terminal settings you commissioned, so the macro goes first.
- Compare the macro's serial settings and slave address with your PLC master: format and address must match exactly, one address per drive.
- Prove the link with traffic: read a known register repeatedly and run one controlled write-readback on a harmless writable parameter. Valid responses with no recurring communication errors are the pass mark.
Readback still does not make the motor follow the value — that proof comes after the next section. This order also keeps a source-selection problem from masquerading as a serial-network problem, which is the fastest way to lose an afternoon.
Give start and stop to the digital inputs #
With the link stable, move the run command:
- Read P0700[0]. After Cn011 it selects the RS485 link, and it reads 5.
- Set P0700[0] to 2, terminal as command source, and read it back: 2.
- Take the Cn002 terminal arrangement from section 5.5 of the V20 operating instructions as your wiring template. It is a standard terminal layout you can copy: run and stop on the digital inputs, with the digital-input common terminal tied to 24 V or 0 V — which one you choose sets the sink or source mode, and the drawing shows both.
- Assign the ON/OFF function to the run input in the digital-input function parameters — P0701[0] is input 1 and its siblings cover the rest. An ON/OFF input is a maintained command: the motor runs exactly while the input is made, and a short pulse into it will not latch. If the machine wants push-button start with a dedicated stop button, use the three-wire arrangement from the same macro chapter instead of pulsing a maintained input.
- Toggle the input with the drive enabled and watch the digital-input status: the bit must follow the wire. Then give a start at a deliberately low setpoint and confirm the motor runs only while the command stands.
- Assign the fault function to a digital output in the output's function parameter, the same way you assigned the input, and lamp it at the machine. That is your alarm DO, driven by the drive itself.
From this point a write to the control word no longer starts or stops anything: the terminals own the run command, which is the point. The status word and the input status bits still report honestly, so use them as the proof.
Keep the setpoint serial and scale it against P2000 #
Commands live at the terminals; the speed number stays on the link. Two checks make that arrangement real.
First, read P1000[0] back. Its value 2 routes the setpoint to the analog input, so if the setpoint must come from the link, P1000[0] has to keep selecting the serial setpoint that Cn011 set up. If anything later puts it on the analog input, your HSW writes keep being accepted and quietly stop being followed.
Second, give P2000 a deliberate value. P2000 is the reference frequency the serial setpoint is measured against — the frequency that counts as full setpoint. Set it to the machine's natural top speed for setpoint purposes, for example the motor's rated frequency.
In the V20 Modbus map the HSW integer is normalized to P2000: 4000 hex, decimal 16384, is exactly the frequency in P2000. The worked example, with P2000 at 50.00 Hz:
- 25.00 Hz command: 16384 × 25 ÷ 50 = 8192. Write 8192 to the HSW register.
- Each count is worth 50 ÷ 16384 ≈ 0.003 Hz, about three millihertz.
- 40.00 Hz needs 16384 × 40 ÷ 50 = 13107.2; write 13107 and the drive holds 39.999 Hz, which its display rounds to 40.0.
Take the signedness of the transmitted value from the same register description and match it in the PLC; do not treat the integer as a raw hertz number. Prove the path with the motion inhibited: write two distinct permitted values and watch the active reference follow the scaling. Add acceleration and deceleration writes only after this works.
Diagnose F72 as the telegram problem it is #
F72 on this drive family is the telegram-interruption fault: the RS485 link went quiet for longer than the drive's Modbus timeout allows, and the drive tripped. Reads and writes that worked during commissioning do not change that — the timeout counts the gap between telegrams on the link, so a master that writes only when an operator changes speed will trip it between changes.
That is the fault in front of you, and zeroing P2000 has nothing to do with fixing it. P2000 is the scale base for the setpoint; at zero it turns your reference scaling into nothing and hides the timeout until the next trip. Decide now: P2000 keeps its intended value, and F72 gets fixed at the link.
Fix it where it lives:
- Keep the master polling cyclically. The link must carry telegrams continuously — a setpoint that never changes still needs refreshing inside the timeout window.
- Check address, baud, parity and stop bits against what the macro set, and match the master to them.
- If reads and writes share one port, read why a read and a write on one Modbus RTU port drops VFD control. Then check how the polling list on one serial port sets your cycle time, because a cycle that grows past the timeout is the same fault by another road.
When the link dies for real, F72 and the drive's fault reaction are the drive holding itself safe — the correct outcome for most machines. One line of caution belongs here: moving run and stop to terminals is operating hygiene, not a safety function. The stop that protects people must work with every serial path dead, hardwired, per the machine's risk assessment.
The decision, case by case #
| Case | Command source | Speed reference | Pass mark |
|---|---|---|---|
| Local start/stop, speed from the PLC (this article) | Terminals: P0700[0] = 2 after Cn011 | HSW over Modbus, scaled to P2000 | Input status follows the wire; the written setpoint moves the active reference |
| Everything from the network | The serial link, as Cn011 leaves it | HSW over Modbus | A valid control-word sequence runs the drive |
| Nothing from the network | Terminals: P0700[0] = 2 | Analog input: P1000[0] = 2 | The potentiometer or transmitter moves the reference |
For the machine described here — PLC sets speed, a local input starts and stops, a drive output lamps the alarm — take the split arrangement exactly as configured above and leave it alone. P0700[0] stays at 2, HSW stays the reference, P2000 keeps its deliberate value, and the master polls cyclically so F72 has no reason to return. If you are still choosing the whole interface for a small PLC and a drive, the trade-offs in how a small PLC commands VFD speed safely sit one level above this parameter work — make that choice before any macro is selected.
Questions asked
Can I write acceleration and deceleration over Modbus once this arrangement works?
Yes. Ramp parameters are ordinary writable settings, and the drive applies them however the run command arrives. Establish the speed reference first and prove it with two written setpoints, then add ramp writes one at a time, reading each back before you let the motor follow it. Keep the values inside the documented ramp limits.
How do I run in reverse when start and stop come from terminals?
Give a second digital input the reverse function in its function parameter and wire a selector or a second button to it. The Cn002 arrangement shows input blocks you can copy, and the same section of the operating instructions lists the functions each input can take. The serial setpoint keeps its magnitude; the input chooses the direction.
What happens to my setpoint writes if P2000 changes later?
Every count changes meaning. The HSW integer is a fraction of the reference frequency, so the same number commands a different speed whenever P2000 moves, and the PLC scaling has to change in the same step. Read the new value of P2000, recompute the counts per hertz, and prove the new scaling with one written setpoint before production runs.
Where are the Cn011 and Cn002 arrangements documented?
In the connection-macro chapter of the SINAMICS V20 operating instructions on the Siemens support site, section 5.5, together with the sink and source wiring for the digital-input common terminal at 24 V or 0 V. A macro applies a whole group of settings, so record your parameters before you select one, and recheck the serial settings afterward.