IMDHMIControls LibraryShop main store

How-to

Connecting a Beckhoff BK3150 PROFIBUS-DP slave to an S7-300

Industrial networks Published 6 min read

Short answer

Any certified PROFIBUS-DP slave, including the BK3150 coupler, exchanges cyclic I/O with an S7-300 DP master once the Beckhoff GSD device description is installed in STEP 7, the slave address matches the coupler and is unique, and the configured terminal sequence equals the installed one. The coupler is the single network slave; its terminals are configured inside that station.

On this page
  1. Install the GSD file in STEP 7
  2. Confirm the S7-300 interface is a DP master
  3. Insert the BK3150 station and set its address
  4. Configure the terminal sequence
  5. Mapping the station's bytes to PLC addresses
  6. Worked example: a 2-in, 2-out digital station at address 5
  7. Prove cyclic exchange reaches the terminals
  8. Questions asked

Yes, the Beckhoff coupler runs on an S7-300. Any certified PROFIBUS-DP slave integrates into any DP master configuration regardless of who built it, and the tool that makes it possible is the GSD file: the Beckhoff device description installed into STEP 7. The BK3150 appears on the S7-300's DP master system as one slave station; its Bus Terminals are configured inside that station, not as separate network participants.

Three things decide whether the station works: the GSD installed in the hardware catalog, the slave address set identically in STEP 7 and on the coupler, and the configured terminal sequence matching the installed one. This article walks the five steps in that order.

Install the GSD file in STEP 7 #

Every PROFIBUS field device is described by its GSD (General Station Description) file, and GSD files are required for integrating the Beckhoff PROFIBUS couplers in DP configuration tools. Get the file from Beckhoff, in the chapter Downloads for PROFIBUS of the coupler documentation, and match it to the installed coupler family.

The extension's last letter is language-dependent: .gsd is the default form, .gsg is German and .gse is English. Use the .gse file if you want the catalog entry's texts in English; the communication behavior is identical either way.

In STEP 7 V5.x HW Config the documented menu path is Options > Install GSD file .... In the dialog, browse to the file, install it, and the station appears in the hardware catalog. In TIA Portal the equivalent command is Options > Manage general station description files (GSD), where you add the file under the installed GSDs. Importing the exact BK3150 entry, not a similarly named coupler, is what the rest of the configuration builds on.

Confirm the S7-300 interface is a DP master #

The master must initiate DP communication; a connector that physically fits proves nothing about the interface role. The S7-300 family name alone does not identify the network interface, so open the hardware configuration of the actual CPU or communication processor and check that its PROFIBUS interface can be set to DP master mode, then create or select the DP master system on the PROFIBUS subnet. If the installed CPU has no DP master capability, no amount of GSD importing will create it; add a DP-capable communication processor instead, the choice covered in connecting an S7-1200 to a PROFIBUS slave through a CM 1243-5.

Set the subnet's transmission rate and check it against the coupler's documented capability and your cable length; the master's rate is imposed on every slave on the segment.

Insert the BK3150 station and set its address #

Drag the installed Beckhoff station from the catalog into the DP master system. The station address you assign in STEP 7 must match the address set on the coupler, and it must be unique on the subnet. Read the coupler documentation for how the address is set and when a change becomes active; a mismatch here shows up as the master reporting the slave absent, with the coupler's bus indication showing no data exchange.

Keep the two address systems apart:

  • The PROFIBUS station address selects the network participant; the master's cyclic telegram goes to it.
  • The I/O addresses you assign next select bytes in the PLC's memory; they are independent of the station address. A missing-station fault caused by addressing on the master side is the same failure mode covered in fix an S7-300 PROFIBUS gateway: module address above the image.

Configure the terminal sequence #

The BK3150's GSD defines the module entries for each terminal type. Build the station's module list to mirror the installed terminal assembly exactly, in physical order: a reachable slave still rejects cyclic exchange when the configured module sequence or data lengths differ from what the coupler expects. Compare the complete configured list against the installed terminal list, including any end plate or power feed terminal positions the coupler documentation says occupy logical slots.

The GSD also states the maximum input and output lengths the coupler accepts; keep the configured totals under those limits or the configuration will not compile.

Mapping the station's bytes to PLC addresses #

Assign the station's input and output address ranges in STEP 7, then:

  1. Record each configured module's input and output start address and data length.
  2. Check for overlap with other hardware in the configuration.
  3. Map each channel to its byte, bit or word position from the terminal's process-data definition (for example, a 4-channel digital terminal occupies 4 input bits in its process byte).
  4. Check analog scaling, status bytes and any consistent-area access requirements before compiling.
  5. Compile, download in a controlled commissioning window, and confirm the online hardware view shows the intended master, slave address and I/O ranges before testing field signals.

Worked example: a 2-in, 2-out digital station at address 5 #

Suppose your machine has the coupler set to station address 5, carrying four terminals in this physical order: one 4-channel digital input terminal, a second 4-channel digital input terminal, one 4-channel digital output terminal and a second 4-channel digital output terminal. The thread's principle applies: the coupler is the only slave, the four terminals are its modules.

Inputs. Station address 5 (set on the coupler, entered in STEP 7). Two digital input terminals at 1 process byte each; two digital output terminals at 1 process byte each. Chosen I/O start addresses: inputs from IB 16, outputs from QB 16.

Rule. Each 4-channel digital terminal contributes 1 byte of process data; the coupler's total input and output lengths are the sums over the configured modules in physical order.

Arithmetic.

  • Input bytes: 1 + 1 = 2 bytes, occupying IB 16 and IB 17.
  • Output bytes: 1 + 1 = 2 bytes, occupying QB 16 and QB 17.
  • Station address 5 is used once on the subnet; no other station may take 5.

Result. The master sends one cyclic telegram to station 5 carrying 2 input bytes and 2 output bytes; the first input terminal's four channels map to I 16.0 to I 16.3, the second to I 17.0 to I 17.3, and likewise the outputs to Q 16.0 and Q 17.0.

Decision. Compile and download; if the master reports the slave at address 5 but exchanges no data, the terminal sequence in the configuration differs from the installed assembly. Correct the module list before touching the cable. Above roughly 4 bytes in one direction with analog terminals mixed in, verify the mapping with a forced input before trusting the scaling in the program.

Prove cyclic exchange reaches the terminals #

With power applied, check the coupler's bus indication for active data exchange, then force or jumper one input per terminal and watch the mapped PLC bit. Where addresses fall inside the process image, ordinary I reads suffice; for consistent multi-byte transfers or addresses beyond the process image, use the peripheral access method documented for your CPU. For the same control-word and setpoint discipline when the slave is a drive rather than an I/O station, see fix missing setpoint and control word writes to a PROFIBUS drive.

Questions asked

What does the GSD file extension tell me?

An English .gse file is only a language variant of the device description, not a different protocol, so either works in STEP 7 as long as it matches the installed coupler.

Do I need a GSD for each Bus Terminal on the coupler?

No. The coupler is the only PROFIBUS slave; the terminals are configured as modules inside the coupler's station using the module entries the BK3150 GSD provides. The master sends one cyclic telegram addressed to the coupler, and the coupler distributes the process data to the local terminals.

Where do I get the BK3150 GSD file?

From Beckhoff, in the Downloads for PROFIBUS section referenced in the BK3xx0 coupler documentation. Match the file to the installed coupler family and revision, and install it through STEP 7's hardware catalog rather than any third-party copy.

Keep reading

  • How-to

    Connecting an S7-1200 to a PROFIBUS slave through a CM 1243-5

    An S7-1200 cannot speak PROFIBUS from any built-in port: its onboard Ethernet is PROFINET. PROFIBUS DP-V1 master duty needs the CM 1243-5 communications module in the S7-1200 rack. Confirm the remote device is a PROFIBUS slave, import its GSD into TIA Portal, give it a bus address no other station uses, and terminate the segment at both ends.

    Industrial networks

  • Selection guide

    Choosing a CP-341 or gateway for an S7-300 Modbus RTU slave

    For an S7-300 that must answer as a Modbus RTU slave, a PROFIBUS DP-to-Modbus RTU gateway is the lower-effort route: no separately licensed loadable driver and no serial code in the CPU. Choose the CP-341 with its Modbus Slave (RTU) driver only when the link must be independent of the fieldbus or when you need a per-write flag such as CP_NDR. Before ordering, confirm the exact gateway variant runs DP slave and Modbus RTU slave simultaneously.

    Industrial networks

  • How-to

    Using a PLC as a Modbus RTU to Profibus gateway

    Keep the regulator and let one PLC carry both buses. Poll the regulator over Modbus RTU on a fixed cyclic interval, map every register to a defined PROFIBUS DP location with documented scaling, and hand the BMS a data-valid flag instead of stale values. Terminate each bus at its own two ends; never join RS-485 and PROFIBUS into one network.

    Industrial networks