IMDHMIControls LibraryShop main store

Explainer

How PROFINET drive control telegrams map PLC commands to a drive

Industrial networks Published 9 min read By IMDHMI controls team

Short answer

A PROFINET drive obeys a PLC that runs the IO-controller role and exchanges Standard Telegram 1 every bus cycle: control word plus speed setpoint out, status word plus actual value back. Setup is the controller function, the drive's GSDML, matching telegram layouts, and setpoint scaling against the drive reference.

On this page
  1. What role must my controller play on the PROFINET network?
  2. What exactly does a drive control telegram carry?
  3. How do I add the drive to my PLC project?
  4. Which words in Telegram 1 map to which drive values?
  5. How do I convert motor rpm into the setpoint word?
  6. What sequence of control word values starts the motor?
  7. What does the status word tell me that the link LED does not?
  8. Why does the drive ignore commands while the link is up?
  9. Questions asked

A PROFINET frequency converter obeys your PLC only when the PLC runs the PROFINET IO-controller role and exchanges a cyclic drive telegram with the converter every bus cycle. Standard Telegram 1 moves four 16-bit words: a control word and a speed setpoint out to the drive, a status word and a speed actual value back. None of that is wired by hand. The work is putting the controller function into your PLC or soft PLC, describing the drive to your engineering tool with its GSDML file, selecting the same telegram layout on both ends, scaling the setpoint against the drive's reference, and stepping the control word through the drive's state machine. This article walks that chain in the order a first build meets it, and closes with the fault branch where the link is up but the motor will not move.

What role must my controller play on the PROFINET network? #

Your PLC must run the PROFINET IO-controller function, because a converter is an IO device that only answers: two IO devices cannot command each other, no matter how the Ethernet is wired or how many switches sit between them.

PROFINET IO splits the network into one controller per connection and the devices that serve it. A converter with a PROFINET interface sits on the device side: it advertises the cyclic data it offers and waits for a controller to open the exchange. An Ethernet socket on your card proves physical connectivity, not a protocol stack, and a successful ping proves IP reachability, not the application association — the cyclic relationship is a separate layer that only a controller establishes.

Check your own side before touching the drive. Does your runtime or PLC offer an IO-controller function, or only IO-device operation? That role split is why a device configured only as an IO device cannot turn around and drive the converter; the same reasoning is worked through in why a PROFINET IO-device gateway cannot be a controller. On a soft PLC the controller function is a separately licensed option: obtain it from the runtime vendor or its authorized channel and confirm it covers continuous operation, because a runtime that executes logic without it will not establish the drive's cyclic connection. The runtime also needs ownership of a physical port, so no other service on the machine may hold that interface. If the controller role will live in software rather than a dedicated PLC, it needs a computer mounted in the cabinet running it cycle after cycle — an industrial mini PC is the hardware built for that job.

What exactly does a drive control telegram carry? #

Telegram 1 is four 16-bit words exchanged every bus cycle: a control word and a speed setpoint travel out to the drive, and a status word and a speed actual value travel back, commonly refreshed every 1 to 4 ms on a drive network.

A telegram is the agreed layout of that cyclic frame, selected during configuration on both ends. The word meanings come from the PROFIdrive drive profile, the same profile the drive world uses on PROFIBUS, which is why telegram numbers and word positions stay readable across drive vendors: word 1 out is the control word, word 2 out the setpoint, word 1 in the status word, word 2 in the actual value. Only the transport changes between the two networks; the words do not.

The controller writes the whole frame once per bus cycle and reads the reply in the same rhythm, so there is no polling logic to program and no register reads to sequence. One exchange carrying command, setpoint, state and feedback each cycle is what makes cyclic data the cleanest of the ways a PLC can command a converter, a choice how a PLC controls a VFD: five interfaces compared lays out side by side.

How do I add the drive to my PLC project? #

You install the drive's GSDML file into your engineering tool, place the device in the project, assign it the PROFINET device name the project expects, and plug in Telegram 1 — the tool can only build a connection to a drive it can describe, name and match.

GSDML is the XML device-description format the drive manufacturer publishes for its interface; take the file from the drive manufacturer or its distributor, matched to your control unit and firmware. Importing it fills the tool's device catalog, so the drive appears with the modules and telegram slots it actually offers. In CODESYS the imported file lives in the device repository, and exporting the GSDML for a CODESYS PROFINET device shows how files move in and out of that repository step by step.

The device name is the identity the connection is built on: assign it to the drive with your engineering tool's discovery function, keep it unique on the network, and make the project's name equal the device's name — a link LED or a ping never proves that association. Last, the telegram you plug into the controller's slot must match the telegram the drive is configured to produce. A layout mismatch is refused when the connection comes up, which is the standard signature of a converter that will not reach data exchange.

Which words in Telegram 1 map to which drive values? #

Word 1 out is the control word, word 2 out is the speed setpoint, word 1 in is the status word, and word 2 in is the actual value — fixed slots, so your program reads and writes the same four registers every cycle.

Slot Direction Content Your program uses it for
Word 1 out PLC to drive control word state-machine steps: on, enable, fault reset
Word 2 out PLC to drive speed setpoint commanded speed, scaled against the reference
Word 1 in drive to PLC status word drive state: ready, running, fault, warning
Word 2 in drive to PLC speed actual value measured speed, encoded like the setpoint

The first two slots behave the same on the PROFIBUS side of the same profile: in a PPO2 telegram on PROFIBUS the first two words are pinned to exactly this control word and setpoint pair, and why the first two words of a PPO2 telegram are fixed explains that rule. Watch the directions in your data blocks: writing to the input words or reading back the output words is a mapping bug, not a communication fault, and it produces plausible garbage rather than an error message.

How do I convert motor rpm into the setpoint word? #

Divide the commanded speed by the drive's reference value and multiply by 16384: 16#4000, not 32768, is 100 percent of the reference in Telegram 1, so 750 rpm against a 1500 rpm reference is 750 / 1500 × 16384 = 8192, written 16#2000.

The setpoint and actual-value fields carry a percentage of the drive's reference as a signed 16-bit integer. On a SINAMICS converter the reference is parameter P2000, the reference speed or frequency; its default follows the drive's unit setting — 1500 rpm on a 50 Hz machine, 1800 rpm on a 60 Hz machine — so read the drive's value before computing rather than assuming.

Worked example, every number stated:

  • Commanded speed: 750.0 rpm forward.
  • Drive reference P2000: 1500.0 rpm.
  • Full scale: 16384 = 16#4000.
  • Ratio: 750 / 1500 = 0.5.
  • Setpoint word: 0.5 × 16384 = 8192 = 16#2000.
  • Feedback check: a shaft settling at 740 rpm returns 740 / 1500 × 16384 = 8082.8, reported as 8083 = 16#1F93; decode it back as 8083 / 16384 × 1500 = 740.0 rpm.

Those figures assume the 1500 rpm default. At an 1800 rpm reference the same 750 rpm command drops from 16#2000 to 16#1AAB, 6827 — the two-line division rescales everything, setpoint and feedback decode alike.

What sequence of control word values starts the motor? #

You step the control word through the drive's state machine and gate each step on the status word: for a SINAMICS converter, 16#047E to release the stop commands and enable the drive, then 16#047F, which adds bit 0 and starts the motor.

In Telegram 1's control word, bit 0 is ON/OFF1, cleared for a ramped stop; bit 1 is OFF2, the coast stop; bit 2 is OFF3, the quick stop; bit 3 enables the output stage's pulses; bit 7 delivers a fault reset as an off-to-on edge; and bit 10 hands control to the PLC. Until bit 10 is set, the drive treats the bus words as background noise. 16#047E sets bits 1, 2, 3, 4, 5, 6 and 10: stop commands released, pulses enabled, ramps enabled, setpoint accepted, control on the bus. 16#047F adds bit 0, and the drive accelerates to the setpoint in word 2.

A normal stop clears bit 0 alone; an emergency ramp clears bit 2. Neither is a safety function — these are ordinary, non-safety commands. The machine's safety stop stays with the drive's documented safety inputs, wired and validated against your risk assessment.

The status word is the drive's answer about itself, not about the network: bit 3 is an active fault, bit 7 a warning, bit 8 speed at setpoint, bit 9 the drive asking for PLC control — none of it visible on a link LED.

Gate the control-word sequence on these bits instead of on timers: hold 16#047E until the ready bits you expect arrive, then send 16#047F; if bit 3 switches on, pulse bit 7 for the fault reset and watch bit 3 drop. Bit 9 matters at handover: it is the drive announcing that it will accept bus control, your cue to commit the fieldbus setpoint instead of any panel fallback.

Keep commanded and actual straight in the logic: word 2 out is what you asked for, word 2 in is what the shaft did, and the gap between them is the quickest mechanical diagnostic you own. That same discipline — actual as feedback, target as command — is spelled out for a different machine interface in why actual speed is feedback and the target is the command.

Three causes cover almost every case: control bit 10 is still 0, the drive's command and setpoint source settings still point at the terminals or its panel, or the two ends have selected different telegram layouts, so the connection never reaches data exchange.

Diagnose in that order. First confirm the controller reports the drive's cyclic connection established; if the converter reports a no-cyclic-connection fault instead, work through why a PROFINET drive reports A08526 no cyclic connection, because nothing downstream matters until data exchange is valid. Second, compare the telegram selected in the controller project with the telegram configured in the drive — a mismatch silently blocks the connection or lands your setpoint in the wrong slot. Third, set bit 10 and watch the drive's own diagnostics show your words arriving. Fourth, in the drive's command-data and setpoint-source configuration, select the fieldbus path instead of the terminal strip or the built-in panel: cyclic communication can be perfectly healthy while those settings leave the motor answering somebody else.

With data exchange valid, bit 10 set, command and setpoint sources on the bus, and the telegram matched, the setpoint word from the worked example runs the shaft at the commanded speed. Every piece of that chain is configuration, not wiring — and once it is in place, changing speed is one word write per cycle.

Questions asked

How do I command reverse rotation over Telegram 1?

The setpoint field is a signed 16-bit integer, so reverse speed is a negative value in two's complement. With a 1500 rpm reference, minus 500 rpm is minus one third of full scale, which rounds to 5461; encoded as a negative word that is 65536 minus 5461 = 60075, written 16#EAAB. The drive reads it as about minus 33 percent and turns the shaft the other way, unless reverse operation is blocked in the drive configuration.

What happens if the cyclic telegram stops arriving?

PROFINET IO runs a watchdog on every connection. When frames stop arriving within the watched time, the drive interface signals a communication fault and the converter moves to its configured fallback behavior, which for drive applications normally means a controlled stop. The PLC sees the failure through its own connection diagnostics rather than stale values, so treat lost data exchange as a stop condition in your program, not as old data you can trust for another cycle.

Should I choose a bigger telegram than Telegram 1?

Only when the application needs values Telegram 1 does not carry, such as torque limits, ramp times or a second setpoint. Extra words do nothing by themselves: each is filled only where the drive's parameterization assigns a signal to it, and both ends must select exactly the same layout or the connection will not reach data exchange. List what your machine needs beyond speed control, then pick the smallest standard telegram that covers the list.

How is the PROFINET controller function licensed on a soft PLC?

On soft-PLC runtimes the IO-controller function is a separately licensed option, sold for the specific target device the runtime runs on rather than per project. Obtain it through the runtime vendor or its authorized channel and activate it by the vendor's documented procedure, confirming it covers continuous operation. Without it, the runtime executes your logic normally but never establishes the drive's cyclic connection, which looks exactly like a network problem when it is a license problem.

Keep reading

  • Explainer

    Danfoss VLT5000 DeviceNet control words from a PLC-5

    The VLT5000 is not driven in a separate hexadecimal language: the values in the PLC-5 data table are the bit fields of the drive's selected DeviceNet I/O assembly. Decode the control word and reference from the assembly definition, map them through the scanner scan list, and set the drive's command source to the network before writing run logic.

    Industrial networks

  • How-to

    ABB drive to Quantum PLC over Modbus: find the register map

    Modbus and the drive's own fieldbus are not the same thing: first confirm the exact ABB drive model and its communication option speak Modbus serial (or add the option that does), then take every register address from that drive-and-option's fieldbus manual. Never assume drive data starts at 40001; validate the map with read-only polls before you enable a single write.

    Industrial networks

  • How-to

    Configuring S7-200 PROFIBUS communication with an MM440 drive

    The S7-200 cannot be the PROFIBUS-DP master for an MM440: the EM277 is a slave-only module. Make an S7-300 the DP master with the EM277 and the MM440 as slaves, exchange the speed request through the EM277 V-memory window, and start the drive with control word 047E then 047F plus the normalized speed word. If you only need direct S7-200-to-drive control, use USS at the drive's serial terminals instead.

    Industrial networks