How-to
Configuring the S7-200 EM277 as a PROFIBUS DP slave
Short answer
The EM277 takes no PROFIBUS configuration inside the S7-200. You import its GSD file into the DP master's hardware configuration, set the slave address to match the module's rotary switch, choose the input and output byte counts, and set the V-memory offset that selects the memory block the S7-200 program reads and writes. The module is slave-only, so a master such as an S7-300 or a configured PC station must run the exchange.

On this page
- Does the EM277 need configuring in the S7-200 program?
- How do you set the PROFIBUS address on the EM277?
- How do you import the EM277 GSD file into the master?
- Which input and output byte counts should you choose?
- How does the V-memory offset map the exchanged bytes?
- What goes on the mapping sheet before any code?
- How do you commission the link and prove the mapping?
- Can a PC with a CP5611 read the EM277 directly?
- Can two S7-200 PLCs exchange data through their EM277 modules?
- Questions asked
Nothing about the EM277's PROFIBUS link is configured in the S7-200. The whole configuration lives in the DP master: you import the module's GSD file into the master's hardware configuration, set the slave address to match the rotary switch on the module, choose how many input and output bytes the exchange carries, and set the V-memory offset that selects the S7-200 memory block. The S7-200 program then only reads and writes that block with ordinary instructions. The steps below use an S7-300 master in STEP 7 HW Config, cover the PC-station variant, and end with the test that proves the mapping.
Does the EM277 need configuring in the S7-200 program? #
No. The EM277 is a slave-only module, so it carries no PROFIBUS settings in the S7-200: the station address lives on the module's rotary switch, and the data exchange is defined in the DP master's hardware configuration. That one-way behaviour is also the reason why an S7-200 with an EM277 cannot be a PROFIBUS master.
PROFIBUS DP, standardized as IEC 61158, gives the master the right to poll and the slave only the duty to answer, so the S7-200 program has exactly one job on the bus: write outgoing values into the mapped send area and read incoming values from the mapped receive area. No communications instruction, no interrupt routine and no port setup is involved; a plain move instruction is all the exchange ever sees. You can therefore wire, address and fully configure the PROFIBUS side from the master's engineering PC without opening the S7-200 project, until the moment the V-memory block must match the program.
How do you set the PROFIBUS address on the EM277? #
Turn the module's rotary address switch so the arrow points at the station number, for example 3, and cycle the S7-200's power afterwards, because the module reads the switch only at power-up. Siemens support entry 2615830 shows the same step in its S7-200-to-S7-300 example, with the lower switch's arrow on 3.
Cycle the power only with the machine in a safe state, because the S7-200 drops its outputs while it restarts. The switch number must be identical to the address you type into the master's configuration, unique on that segment, and different from the master's own address — an S7-300 CPU commonly ships at address 2, so keep the slave off 2. There is no baud setting at the S7-200 end: the module works at every PROFIBUS rate from 9.6 kbit/s to 12 Mbit/s, and the network rate is set once, on the master.
How do you import the EM277 GSD file into the master? #
Copy the EM277's GSD file onto the engineering PC and install it with the GSD import command of the master's configuration tool, which adds the module to the hardware catalog. The GSD file is the device description that tells the tool what the EM277 is and which byte counts it accepts, so take the file that matches the order number on the module's label: 6ES7-277-0AA22-0XA0 is the current module, and it replaced 6ES7-277-0AA20-0XA0. Siemens support entry 2383630 walks through the import into the STEP 7 HW Config, and EM277 GSD file reference for the S7-200 DP slave covers the same import with the selectable options.
After the import, drag the EM277 from the catalog onto the PROFIBUS DP branch of the master — on an S7-300 that is the CPU's DP interface set to the master role, the same setup you meet when configuring S7-300 PROFIBUS control for an MM420 drive. Enter the switch number as the station address.
Which input and output byte counts should you choose? #
Choose the smallest offered byte counts that cover your mapping sheet, up to the EM277's limit of 32 bytes of inputs and 32 bytes of outputs per station. Directions are named from the master's point of view, and keeping that convention in every document prevents most commissioning arguments: master inputs carry data from the S7-200 up to the master, master outputs carry data from the master down to the S7-200.
The imported catalog entry offers fixed byte counts; select the pair that covers your fields and leave the rest, because every selected byte occupies V memory on the S7-200 whether or not you use it. When the master is an S7-300, HW Config assigns the slave an output area and an input area in its address columns — copy both onto the sheet. Addresses outside the CPU's process image are reached as peripheral I/O, PIW and PQW, or you enlarge the process image in the CPU properties.
How does the V-memory offset map the exchanged bytes? #
The V-memory offset is the parameter in the slave's properties that tells the EM277 which V-memory block to use; the master's outputs fill the block from its beginning, and the master's inputs follow directly after them. The offset counts bytes into the S7-200's V memory — VW denotes a word there — and the block is exactly as long as the byte counts you selected.
Keep the whole block clear of every address the S7-200 program's data block already uses, or the bus will overwrite live program data on every cycle. The page on configuring the EM277 V-memory offset for S7-200 to S7-300 PROFIBUS shows the same parameter inside a complete example. Whatever offset you pick, write it on the mapping sheet before anyone touches the program, because the sheet, not anyone's memory, is what both programmers will trust.
What goes on the mapping sheet before any code? #
Give every field one row with its direction, byte offset, length, data type, master-side address and S7-200 address, so both programs are written against one frozen table. Build the columns in this order:
- Direction in the master's terms: output to the S7-200, or input from it.
- Byte offset inside the block, derived from the offset and the selected byte counts.
- Length and data type, with scaling and engineering unit for analog values.
- The master address from the hardware configuration's address columns.
- The S7-200 V-memory address the program will use.
Worked example: with the offset set to 2000 and 8 output bytes plus 8 input bytes selected, the block runs from VB2000 to VB2015, since 2000 + 16 − 1 = 2015. The receive part, the master's outputs, occupies VB2000 to VB2007; the send part begins at VB2008, since 2000 + 8 = 2008. Assume the master's configuration assigned the slave outputs at QB 264 and inputs at IB 272:
| Field | Direction (master view) | Block bytes | Type | Master address | S7-200 address |
|---|---|---|---|---|---|
| Speed setpoint | Output to S7-200 | 0–1 | Word | QW 264 | VW 2000 |
| Run command | Output to S7-200 | 2 | Byte | QB 266 | VB 2002 |
| Actual speed | Input from S7-200 | 8–9 | Word | IW 272 | VW 2008 |
| Fault word | Input from S7-200 | 10–11 | Word | IW 274 | VW 2010 |
One more note belongs on the sheet: byte order. When the master is not a Siemens PLC — a DCS, for instance — compare raw bytes in hex before trusting a whole word, because some masters pack the low byte into the lower address.
How do you commission the link and prove the mapping? #
Download the master configuration, power-cycle the slave once more, confirm that the master sees the station without a fault, and then prove the map by sending a fixed test pattern in each direction.
- Download the hardware configuration to the master — to the DP-master CPU of an S7-300.
- Power the S7-200 and EM277 down and up, in the machine's safe state as before, so the module latches the switch address.
- Open the master's online diagnostics and confirm the slave is present at its address with no station fault. An absent or faulty station at this point is an address, power, connector or termination problem, not a mapping problem.
- In the S7-200 program, move the test constant
16#A55Ainto the first send word, VW2008 in the example, and watch for16#A55Aat the master's input word, IW 272 in the example. If the master shows16#5AA5instead, the two bytes arrive reversed and the byte-order note was skipped. - From the master, write the raw count 1000 to the output word QW 264 — as
16#03E8, since 3 × 256 + 14 × 16 + 8 = 1000 — and confirm the S7-200 reads 1000 at VW2000. - Only then connect the real program variables on both sides and apply the sheet's scaling.
Keep the two failure classes apart for the rest of the machine's life. A station the master cannot reach is a bus problem: switch number against configured address, wiring, termination, power. A station that runs while its data sits in the wrong variables is a mapping problem — the split you also meet with an S7-300 PROFIBUS gateway that is detected but reads no I/O data. Fix the class you actually have; no bus work ever moves a byte from one mapped word to another.
Can a PC with a CP5611 read the EM277 directly? #
Not with the card alone: a CP5611 in a PC is only the bus interface, and the EM277 answers only to a configured DP master, so the PC must run the software that takes the master role. With the SIMATIC NET PC software installed, you configure a PC station whose PROFIBUS interface carries the DP-master role, import the same EM277 GSD file there, and an application such as the OPC server reads the input bytes through the PC station.
Siemens support entry 29645558 describes the PC station as DP master for the OPC server; entry 16650883 describes the reverse case, a PC station as DP slave to an S7 master. A CP5611 with no PC-station configuration behind it reads nothing from the EM277, because the card provides the electrical connection, not the master.
Can two S7-200 PLCs exchange data through their EM277 modules? #
No. Both modules are DP slaves and a slave never starts an exchange, so the data must pass through a master or use the S7-200's own port protocol instead. One S7-300 master can relay: each scan it copies bytes from one slave's input area into the other slave's output area, and the two S7-200 programs only ever see their mapped V memory.
If the pair is one S7-300 and one S7-200 and PROFIBUS DP is not required, the simpler route needs no EM277 at all — exchange data between an S7-300 and an S7-200 over MPI covers it. Two S7-200s alone on one cable with two EM277s exchange nothing, however long both run.
Questions asked
Does the S7-200 program need a communications instruction for the EM277?
No. The module moves the PROFIBUS bytes in and out of the mapped V-memory block on its own each bus cycle, so the program only uses ordinary move, compare and math instructions on those addresses. There is no send or receive block to call and no interrupt to enable; if you catch yourself adding one for the EM277, the mapping is wrong, not the program.
What PROFIBUS baud rate does the EM277 support?
The module works at every PROFIBUS rate between 9.6 kbit/s and 12 Mbit/s and adapts to the network's rate without a setting of its own. Choose the rate on the master, matched to your cable length, and leave the module alone: a rate change on the bus needs nothing at the S7-200 end, and the address switch is the only setting the module physically has.
Which GSD file do you use for a replacement module?
Use the GSD file that matches the order number on the module's label: 6ES7-277-0AA22-0XA0 is the current PROFIBUS DP slave module and 6ES7-277-0AA20-0XA0 the earlier one it replaced. After importing, open the slave's properties in the existing master configuration and confirm the byte counts you selected are still offered, then download again only if something changed.
Why does the master still report the slave as missing after the address was changed?
The EM277 latches its address when power is applied, so a switch moved on a powered module takes effect only after the S7-200's supply is cycled, done with the machine in a safe state. Then compare the switch number with the configured address, check the bus connector and the termination at both cable ends, and confirm the module is powered before suspecting the module itself.
How do you split a word across two bytes of the mapped block?
The S7-200 keeps a word's high byte at the lower byte address and the low byte at the next one up, which decides how any word of the block splits across two bytes on the bus. Count that in when a field begins on an odd offset or when the other master stores words the other way around; writing one known word per direction during commissioning shows the true arrangement immediately.