IMDHMIControls LibraryShop main store

Explainer

Why an S7-300 PROFIBUS master leaves motor control to S7-200 slaves

Industrial networks Published 9 min read By IMDHMI controls team

Short answer

Run each motor's PID in the S7-200 that drives it and keep the S7-300 PROFIBUS master busy only with supervisory words: setpoints and run commands out, status back. Configure the TP170A as its own panel connection, not a second DP master, and give every slave a defined stop on communication loss.

On this page
  1. Where should each motor's PID loop run?
  2. Which words cross the bus, and which stay in the slave?
  3. How fast must the PROFIBUS cycle be?
  4. What does the TP170A do on this network?
  5. What happens when a slave loses the master?
  6. How do I commission the two slaves without tripping anything?
  7. How do I tell a bus fault from a logic fault?
  8. Questions asked

On this network the S7-300 is the PROFIBUS DP master and nothing more: it cycles supervisory words — setpoints, run and mode commands, status — between two S7-200 slaves, while each slave runs its own PID loop locally, one trimming an ABB inverter on a three-phase AC motor, the other driving a 24 V DC servo through PWM. Keep that split. Moving regulation into the master ties every controller output to network timing and turns a bus interruption into a frozen actuator. Give the TP170A its own panel connection instead of treating it as a second master, and define in each slave what happens when the cyclic words stop arriving. The sections below work through loop placement, the data map, the cycle-time arithmetic, the panel's role, loss behavior, commissioning order and the checks that separate a bus fault from a logic fault.

Where should each motor's PID loop run? #

Run each loop inside the S7-200 that owns its motor: the PID executes at the sample time set in that slave's loop table — 100 ms is a workable example — and the network only refreshes the setpoint the loop chases.

The S7-300 keeps its hands off the actuator value. If the PID ran in the master, every correction would have to cross the bus twice — setpoint down, output back — and when telegrams stop, the corrections stop with them. Inside the slave, the loop executes every scan against fresh local feedback no matter what the bus is doing, and the slave's scan fixes the sample interval instead of network load. Changing that interval changes how the tuning behaves, so the value that decides loop speed belongs to the slave, where it is guaranteed.

The drive interfaces stay local too. For the three-phase motor, the S7-200's PID output feeds the inverter's reference path — an analog reference or a command interface, decided by the drive wiring, not by the bus. For the servo, PWM sets how much of each switching period the output stays active, and the slave's pulse output feeds the servo's power electronics, which supply the current: a 24 V label on the motor says nothing about the output's current capability. The architecture is not optional anyway — an S7-200 with an EM277 cannot be a PROFIBUS master, so the scheduling role sits with the S7-300's DP interface by construction.

Which words cross the bus, and which stay in the slave? #

Only supervisory words cross: 4 bytes out and 4 bytes back per slave is enough here — two bytes of setpoint plus a two-byte command word in each direction — and no PID internal ever travels.

The slave owns its loop. The master writes targets and modes; it never writes a running PID's integral, output or feedback, because a supervisor that can reach into the loop will corrupt it while the operator watches the panel.

EM277 cyclic area Slave 1 — AC motor via inverter Slave 2 — DC servo via PWM
Master output (commands) 2-byte setpoint + 2-byte command word 2-byte setpoint + 2-byte command word
Master input (status) 2-byte actual value + 2-byte status word 2-byte actual value + 2-byte status word

The cyclic bytes land in a block of each S7-200's V memory whose offset is fixed when configuring the EM277 as a PROFIBUS DP slave, so declare the identical map in the slave program: same byte position, width, signedness and scaling on both sides, and each multi-byte value inside one consistent transfer unit so a reader never catches half an update. The slave validates every received setpoint against engineering limits and the selected mode before the PID uses it — the master sends plausible targets, the slave refuses the rest.

How fast must the PROFIBUS cycle be? #

An order of magnitude under the loop sample time decides it: at 187.5 kbit/s the two 8-byte exchanges finish in roughly 3.3 ms, so each 100 ms PID sample sees about 30 fresh setpoint updates.

The EM277 is documented from 9.6 kbit/s up to 12 Mbit/s. The estimate, station by station: PROFIBUS sends each character as 11 bits — start, 8 data, parity, stop — and assume each poll or response carries about 10 bytes of framing around the 4-byte payload, so one slave exchange is 2 frames × 14 bytes × 11 bits = 308 bits. At 187.5 kbit/s: 308 / 187,500 = 1.64 ms per slave, and two slaves give 3.3 ms per cycle with no token time, because this design keeps one master on the segment. At the EM277's lowest documented baud: 308 / 9,600 = 32.1 ms per slave, 64.2 ms for both — still under the sample time, with almost nothing left for retries or frame gaps.

Decision: configure this two-slave segment at 187.5 kbit/s or faster, and use 12 Mbit/s when the copper is short enough to carry it; every station on the segment must run the same baud. The framing figures are an estimate, not a datasheet value — read the real cycle in the master's diagnostics — but the conclusion survives them: even a doubled overhead leaves the margin wide.

One rule makes the speed irrelevant to the loop: between updates the slave holds the last valid setpoint, so the network refreshes the target while the slave's own sample time remains the loop's clock.

What does the TP170A do on this network? #

It is an operator panel, not the process controller: configure the TP170A with its own connection to the S7-300 and point each tag at the exact PLC variable, because issuing commands from a screen does not make a panel the DP master.

A station that joins PROFIBUS as a supervisor participates as an additional master, and masters share the segment by token pass, so a second master adds token time to every cycle — acceptable for supervision, no reason at all to relocate control. That same boundary is why a station such as WinCC above two EM277 slaves needs its own DP master role rather than a borrowed one.

Then keep one authoritative command path: if the panel and the master program can both write the same run command, define per operating mode which source owns it, or one writer silently overwrites the other and the fault will look like a bus problem. Show the slave's accepted command and actual status, not merely the last value written, and acknowledge alarms at the panel — on a TP177micro, for example, an alarm acknowledges only through the panel's own ACK button.

What happens when a slave loses the master? #

The slave decides: it holds the last valid setpoint while a local loss timer runs, then forces a defined state — typically stop — and the drive path backs this up with its own telegram watchdog, the mechanism behind SINAMICS fault F01910, a PROFIBUS setpoint timeout.

Size the slave's loss timer near the loop sample time, the 100 ms used above: at the cycle time computed in the worked example that is about 30 consecutive missed updates before the slave acts — conclusive proof of a real outage, and short enough that no motor coasts unattended for long. The drive's watchdog is faster and independent: when the master's cyclic telegrams stop, a drive with a setpoint timeout trips, and that trip is exactly what SINAMICS reports as F01910; the same trip in production means telegrams stopped, not that the drive failed.

When the bus recovers, nothing moves by itself — the slaves resume receiving setpoints, each revalidates them, and the supervisor re-enables a drive only after an explicit operator action. One boundary outranks everything else in this section: cyclic PROFIBUS data is not a machine safety function, and any stop the risk assessment demands belongs in the drives' safety circuitry and the machine's designed safety architecture.

How do I commission the two slaves without tripping anything? #

Bring up the bus before any motor turns: configure master and slaves offline, power the segment, prove both cyclic exchanges with motion inhibited, and only then allow the first commanded move.

  1. Record the installed hardware — the S7-300's CPU and DP interface, the EM277 fitted to each S7-200, the panel's connection hardware. A label like 2DP is not a complete CPU identification; configure from the order number and the project's hardware entry.
  2. Give every node its own address — master, two EM277 slaves, panel — in the 0 to 126 PROFIBUS range, and set one baud for the whole segment, the one chosen in the cycle-time section.
  3. Terminate the segment at its two physical ends: terminating resistors switched on in the two end connectors, off in every connector between them.
  4. Load each slave's description into the master project — a GSD file defines what a PROFIBUS device can exchange — and size the cyclic areas to the 4-plus-4-byte map above.
  5. Program each S7-200 with the same map and its loss logic, download the master project, then read the master's diagnostics: both slaves exchange cyclic data with no configuration or bus fault.
  6. Write a known permissible test value to each slave with motion inhibited and read back its status word; the value must match byte for byte in the slave's variables.
  7. Allow motion on one slave at a time under controlled conditions, confirm the loop's local behavior, then repeat for the second slave.

How do I tell a bus fault from a logic fault? #

Scope the failure before touching anything: both slaves down points at the master or the shared cabling, one slave down points at that slave, and correct data with wrong motion points at the map or the loop itself.

Observed condition Likely area Deciding check
Both slaves stop exchanging Master project or shared physical bus Master diagnostics, shared cable sections, end termination
One slave stops, the other keeps working That slave's address, power, EM277 or program Compare its live diagnostics against the project entry
Bus healthy, motor command wrong Data map or application logic Send a known value and decode it in the slave
Panel values wrong, PLC data correct Panel tag addressing Compare each panel tag with its PLC variable
Bus healthy, motor oscillates Local loop: feedback, scaling, actuator limits, tuning Trend setpoint, feedback and output inside the slave

The master's diagnostics and each slave's status word separate these cases in seconds. The last row deserves the emphasis: an oscillating motor on a healthy bus is a local loop problem the network merely made visible — the bus carries the symptom, never the cause. The whole architecture in one line: each PID and its inverter or PWM command live in their S7-200, the S7-300 master cycles supervisory words at a baud that outruns the sample time by an order of magnitude, the panel is a configured connection rather than a second master, and every slave knows exactly what to do when the words stop.

Questions asked

Can an S7-200 with an EM277 ever act as the PROFIBUS master?

No. The EM277 module, order number 6ES7277-0AA22-0XA0, implements DP slave operation only, across baud rates from 9.6 kbit/s to 12 Mbit/s. The S7-200 behind it exchanges exactly the cyclic input and output area the master assigns during configuration; it cannot schedule other stations or poll them. Keep every motor decision inside the S7-200's own scan and let the S7-300 do the scheduling.

Which tool configures the DP network, STEP 7 or COM PROFIBUS?

Both are documented options for configuring PROFIBUS DP master-slave communication. STEP 7 builds the S7-300 master project; COM PROFIBUS can configure DP slaves standalone. Whichever you use, the entries must agree with the slave's own configuration: station address, baud rate and the byte lengths of the cyclic data. A mismatch shows up as a configuration or bus-parameter fault at the master rather than as bad process values.

Why did the drive trip F01910 while I was testing the bus?

F01910 is a SINAMICS drive's PROFIBUS setpoint-timeout fault: the drive's telegram watchdog expired because cyclic telegrams from the master stopped. During commissioning it is the expected response when a slave or the master is powered down, and it clears when telegrams resume and the fault is acknowledged at the drive. Treat the same trip in production as a real interruption of the master's cyclic exchange, not as a drive defect.

Do the motors keep running if the S7-300 master is switched off?

Each S7-200 keeps executing its own PID at the set sample time, so regulation does not stall the moment the master disappears. What the slaves lose is supervision: no new setpoints, modes or run commands arrive. Let the slave's communication-loss logic decide the outcome, typically holding the last valid setpoint until the local loss timer expires, then stopping the drive. Do not expect the panel to take over regulation.

What happens to termination if the end device is powered down?

Active PROFIBUS termination lives in the connector and draws its bias from the device's connector supply, so a powered-down device at a segment end silently removes that end's termination and the whole segment can start throwing interference errors. Terminate at connectors that stay powered, use a connector with a separate supply terminal, or fit external active termination at the cable end.

Keep reading

  • Explainer

    Why an S7-200 with EM277 cannot be a PROFIBUS master

    No — an S7-200 with an EM277 cannot take the PROFIBUS DP master role. The EM277 is documented only as a DP slave module and the CPU222 only as an MPI slave, so the network needs a controller with an integrated DP master, such as an S7-300 CPU315-2 PN/DP, with the IO-Link master module added as its DP slave.

    Industrial networks

  • How-to

    S7-1200 CM 1242-5 DP slave to an S7-400 PROFIBUS master

    A 1214C AC/DC/RLY with a CM 1242-5 exchanges cyclic data with a CPU 416-5H PROFIBUS DP master once both projects agree on a unique station address in the 0–125 range, byte-identical transfer areas and consistent word access. Prove the byte map with known values before any output is enabled.

    Industrial networks

  • Explainer

    When two brand-name PLCs share one PROFIBUS network

    Yes. A PROFIBUS DP line carries exactly one Class 1 master, so make the PLC that owns the drives the master and run the other PLC as a DP slave. If both PLCs must stay masters, give each its own line and join them with a DP/DP coupler, which appears as a slave with its own address on both lines and passes up to 244 bytes in each direction.

    Industrial networks