IMDHMIControls LibraryShop main store

How-to

Connect an S7-300 to a DCM drive over PROFIBUS or PROFINET

Drives and motion Published 7 min read

Short answer

Yes: an S7-300 controls a DCM over PROFIBUS or PROFINET by installing the drive's GSD or GSDML description, selecting the same supported telegram on both sides — standard telegram 1 (PZD-2/2) is the safe first choice — exchanging the 4-byte records with SFC14 and SFC15, and trusting the link only once cyclic exchange runs fault-free. A clean link still will not move the motor while the drive's command source is local or an enable is missing.

On this page
  1. The job in seven steps
  2. Install the device description
  3. Agree one telegram on both sides
  4. Exchange the record with SFC14 and SFC15
  5. Prove the link before you trust it
  6. When the link runs but the drive will not start
  7. The decisions
  8. Questions asked

You can control a SINAMICS DCM from an S7-300 over PROFIBUS or PROFINET, and the whole job is four moves: install the drive's device description, agree one supported telegram on both sides, exchange the record consistently with SFC14 and SFC15, and confirm cyclic exchange runs fault-free before you trust a single word of it. Standard telegram 1 (PZD-2/2) is the telegram to start on: two words of commands out, two words of feedback back, 4 bytes each way. The step that saves the most time is the last one, because a link that exchanges data perfectly still leaves the drive standing while its command source sits on local or an enable is missing. The steps below take you through both networks to a drive that actually turns.

The job in seven steps #

  1. Download the DCM device description that matches the firmware on your drive, from the maker's official support site: a GSD file for PROFIBUS, a GSDML file for PROFINET.
  2. Install it in your engineering software's hardware catalog and place the DCM on the network your hardware actually has.
  3. Set the PROFIBUS station address or assign the PROFINET device name so the configured device and the installed device match.
  4. Select the same telegram in the drive and in the PLC's hardware configuration. Start with standard telegram 1 (PZD-2/2).
  5. Read the input record with SFC14 and write the output record with SFC15, using each module's configured start address.
  6. Download the project and confirm the drive joins cyclic exchange with no configuration fault.
  7. Only then command the motor: walk the control word through its sequence, scale the setpoint to the drive's reference, and make sure the drive accepts commands from the fieldbus.

Install the device description #

The device description is what lets the engineering software offer the DCM's communication modules at all. PROFIBUS integration uses a GSD file; PROFINET integration uses GSDML, the same idea written as XML that describes the device's modules and options. The files are firmware-matched: the support page for DCM firmware V1.5 SP2, for example, delivers the PROFIBUS package as GSD_Profibus_DCM.zip. Take the package that matches the firmware your drive actually runs, and take it from the maker's official support site only, because an integration built on a description that does not match the drive produces faults you will chase for a day.

Selecting PROFIBUS or PROFINET in the project does not give the hardware that capability. The CPU needs an interface that can run the network as master or controller, and the DCM needs the matching communication interface installed. If the DCM is missing from the hardware catalog, install the description first and reopen the configuration; nothing else in this procedure works before that.

Agree one telegram on both sides #

Cyclic communication is the repeated transfer of the same process-data record on every bus cycle, and it exists only on a correctly configured connection. The record layout must therefore be identical at both ends. Standard telegram 1 is the layout to start with:

  • Outputs, bytes 0-1: STW1, the control word.
  • Outputs, bytes 2-3: NSET, the 16-bit speed setpoint.
  • Inputs, bytes 0-1: ZSW1, the status word.
  • Inputs, bytes 2-3: the 16-bit actual speed value.

That is the PZD-2/2 record. In the PROFIdrive profile that telegram 1 follows, the setpoint is normalized: hexadecimal 4000, which is 16384 decimal, means 100 percent of the drive's configured reference speed, and the sign of the value gives the direction of rotation. The drive holds that reference speed, not the telegram, so read it out of the drive before you scale anything in the PLC.

Select the identical telegram in the drive's own configuration and in the PLC's hardware configuration. A telegram picked on one side only does not produce wrong data — it stops the cyclic exchange with a configuration fault, which at least tells you where to look.

Exchange the record with SFC14 and SFC15 #

The two output words belong together. A control word from this scan paired with a setpoint from the last is how a drive receives an ON edge carrying yesterday's speed, and separate byte or word writes on an S7-300 offer no guarantee against exactly that tear. The documented way to keep the record whole is SFC14 (DPRD_DAT) for the input record and SFC15 (DPWR_DAT) for the output record. Each call takes the configured start address of the process-data module and a buffer as long as the module, and each returns a value you must evaluate: zero means the transfer happened, anything else means it did not. Newer controller families can reach consistent data beyond 4 bytes without these calls, but on an S7-300 driving a fieldbus device the system functions are the way; the page on how SFC14 and SFC15 handle consistent data on an S7-300 covers the call mechanics and the alternatives.

Worked example: telegram 1 at start address 300 #

Suppose the hardware configuration assigns the output module to QB300 and the input module to IB300. The record is 4 bytes each way: outputs 300-301 carry STW1 and 302-303 carry NSET; inputs mirror it with ZSW1 and the actual speed.

The calls need the start address as a WORD. Convert: (1 x 256) + (2 x 16) + 12 = 300 decimal = 12C hexadecimal, so the address argument is W#16#12C for both calls.

To command 1500 rpm against a drive reference of 3000 rpm: 16384 x 1500 / 3000 = 8192 = 2000 hexadecimal, so bytes 302-303 hold 2000 hex while the control word walks the start sequence in bytes 300-301.

The test that proves the calls are wired right: load the 4-byte output buffer with a valid control word and 2000 hex, call SFC15, then call SFC14 and read the input buffer — the actual speed value climbs toward half the reference and ZSW1 tracks the state sequence. A nonzero return value on either call means the start address or the buffer length does not match the configured module; fix that before you interpret any word on the wire.

Download the configuration and watch the diagnostics, not the shaft. The expected picture: the DCM appears with its configured modules, joins cyclic exchange, and no configuration fault is active. Words in the input buffer that change with shaft speed are the confirmation that the telegram agreement is real.

If the device is present but the process image stays dead, compare the PROFIBUS station address (one address per device, no duplicates on the segment) or the PROFINET device name and identity against the configuration, and check cabling and termination. The failure where a bus device answers but no I/O data moves has its own walk-through in fixing an S7-300 PROFIBUS gateway that is detected but reads no I/O data; the same diagnostic path applies to a DCM that sits silent at its address. Once exchange is proven, remember the drive now starts with nobody standing at it, so keep commissioning runs uncoupled or guarded until the enable and stop paths are proven.

A healthy cyclic connection does not authorize the motor to turn. If ZSW1 and the actual speed keep updating but the drive stays at zero, work down this list in order, because each item stops the drive on its own:

  1. Active fault: a faulted drive ignores commands until the fault is cleared with the fault-reset action the drive's telegram chapter defines.
  2. Command source: a local or override selection at the drive makes it disregard the fieldbus words entirely, no matter how correct they are.
  3. Missing enable: an enable or pulse-inhibit condition holds the drive in a ready-but-not-enabled state while the network words are perfect.
  4. Incomplete sequence: the control word must walk the drive's state sequence step by step; a word that jumps to the end does not enable the drive.

Decision: if the input record keeps updating and the drive still stands, the network needs nothing further — the fault is in the drive's command source, enable chain, active fault or sequence, in that order, and the fix lives in the drive's configuration, not in the PLC project.

The decisions #

  • PROFIBUS: install the firmware-matched GSD, set a unique station address, select standard telegram 1 on both sides, exchange with SFC14 and SFC15. Done when cyclic exchange runs fault-free and the actual speed tracks your setpoint.
  • PROFINET: the same procedure with the GSDML description and a matching device name in place of the station address.
  • No exchange or a failed call: the configured start address, module length or telegram selection does not match between project and drive. Align them and re-download.
  • Link healthy, drive standing: command source, enable chain, active fault, incomplete sequence — in that order, all on the drive side.

Questions asked

Does standard telegram 1 carry the drive's fault number?

No. The PZD-2/2 record carries a control word and speed setpoint out and a status word and 16-bit actual speed back; there is no fault number in it. Read the fault at the drive, or move to a larger telegram that adds a fault word, or use an acyclic read — whichever options the DCM communication manual lists for your installed interface.

What does the PZD-2/2 label on a telegram mean?

Two words of output process data and two words of input process data. For standard telegram 1 that is one word of control data plus one word of speed setpoint going to the drive, and one status word plus one 16-bit actual speed value coming back, which makes 4 bytes in each direction. The label sizes the record, so an identical PZD-2/2 selection at both ends is what lets cyclic exchange start.

How large must the SFC14 and SFC15 buffers be?

Exactly the length of the configured process-data module, no more and no less. For standard telegram 1 that is 4 bytes on each call. The call checks the record length against the configured module and refuses a mismatch, so size each buffer from your own hardware configuration rather than from habit with another drive's telegram.

How many DCM drives can one S7-300 control this way?

Standard telegram 1 costs 4 output bytes plus 4 input bytes per drive, so each drive takes 8 bytes of process image. The total number of drives is set by the interface resources and process-image limits of your exact CPU and its communications hardware, which differ across the S7-300 range. Budget 8 bytes per drive and compare the sum against the limits documented for your CPU model.

Do I still need the drive's commissioning tool once the PLC exchange works?

Yes, before it. The telegram selection, the reference speed behind the setpoint scaling, ramps and limits are drive parameters set at the drive. Telegram 1 carries only the speed setpoint and actual value, so commission those drive-side settings with the drive's own tool first; the PLC exchange then commands speed within limits the drive already knows.

Keep reading

  • How-to

    Configuring S7-300 PROFIBUS control for an MM420 drive

    Hardware configuration alone moves no drive data. An S7-300 reads and writes an MM420's cyclic PROFIBUS area with SFC14 and SFC15 whenever the consistent area is too large for direct access, maps every control-word and status-word bit to the configured telegram, and switches the drive's command and setpoint sources to the fieldbus before the first enable. Judge drive readiness from the status word, not from a completed bus transfer.

    Drives and motion

  • Troubleshooting

    Fix missing setpoint and control word writes to a PROFIBUS drive

    A working transmit path proves the bus is fine; the receive half is unfinished. Verify the PLC writes the configured output words, the words arrive in the receive buffer with a matching PZD length, the free-BICO receive connections exist, and control-word bit 10 is 1. Check the boundaries in order so an address fault is not mistaken for a BICO or authority fault.

    Drives and motion

  • How-to

    Control a PROFINET servo drive with cyclic telegram data

    No motion library is needed when a PLC only exchanges cyclic process data with a PROFINET servo drive: import the device description, attach the drive, select the same telegram the drive is configured for, and map the words. Standard telegram 1, PZD 2/2, is two 16-bit words each way — four bytes per direction — and the PLC logic sequences control word STW1 and reads status word ZSW1.

    Drives and motion