PROFIBUS GSD File Installation in STEP 7 5.5 HWConfig Guide

David Krause11 min read
ProfibusSiemensTutorial / How-to
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

Overview of PROFIBUS GSD Files

A GSD file (General Station Description) is the standardised, vendor-supplied ASCII text file that integrates a third-party PROFIBUS DP slave into a SIMATIC STEP 7 project. The format, the keyword grammar, and the required entries are specified by PI (PROFIBUS & PROFINET International) and form the contract between any DP master configuration tool and any DP slave regardless of manufacturer.

The PROFIBUS GSD specification is publicly available from PI - GSD Specification. Companion downloads and the searchable GSD library across all registered devices are listed at PI - Standard GSD Libraries. Across both files, system integrators determine:

  • Vendor name, model name, hardware/firmware revision and the unique Ident Number (assigned by the PNO test lab).
  • Supported baud rates (9.6 kbps up to 12 Mbps) and the currently active baud rate.
  • DP version supported (DPV0, DPV1, DPV2 class-1 / class-2 services).
  • Maximum diagnostic length, max module count, max channel count per module.
  • Number, direction (input/output), consistency width, and unit (bit / byte / word) of every slot the slave offers.
  • Available text strings for module descriptions and diagnostic messages.

For drives such as the Vacon NX family fitted with an OPTC3 or OPTC5 PROFIBUS option board, the GSD file is normally supplied together with the board manual (Vacon-NX-OPTC3-C5 Profibus Board User Manual) and is keyed to the option firmware revision. Always re-confirm the file revision matches the hardware before commissioning, otherwise HWConfig will reject the file with an "Ident number inconsistent" alarm or fall back to a generic slot.

Prerequisites and Required Toolchain

Item Specification / Note
STEP 7 V5.5 + SP3 installed (V5.5 SP3 readme must be reviewed for known issues)
SIMATIC Manager Full admin rights on Windows XP/7/10; HWConfig reachable via Options > HW Config
Vendor GSD file Plain ASCII, file extension .gsd (older versioned variants .gsg and bitmap .bmp may accompany it)
PG/PC interface CP 5611 / CP 5613 / CP 5621, or USB-to-PROFIBUS CP 5711 with the SIMATIC NET PC software driver
DP master station CPU31x-2 DP, CPU31xC-2 DP, IM 153-2, CP 342-5, CP 443-5 Ext, or ET 200S/SP with PROFINET/PROFIBUS link
Slave option firmware Must match the revision listed in the GSD header (e.g. Vacon OPTC3 fw 1.2xx)
Note: Close any open STEP 7 project before installing a new GSD. The HW Config catalog is rebuilt and locked during installation; multiple STEP 7 instances on the same PC can corrupt the catalog database (S7HK32Ax) if installation is interrupted.

Locating and Validating the Vendor GSD File

Open the vendor GSD file in any text editor. The header block is fixed by the GSD specification and looks similar to the following excerpt:

\ Profibus_DP
GSD_Revision = 2
Vendor_Name  = "Vacon"
Model_Name   = "VACON NX OPTC3"
Revision     = "FW 1.20"
Ident_Number = 0x09A2
Protocol_Ident = 0
Station_Type = 0
FMS_supp     = 0
Hardware_Release = "1.0"
Software_Release = "V1.20"
9.6_supp = 1 ; 19.2_supp = 1 ; ... ; 12M_supp = 1
... 
Module = "PPO Type 3 (0 PKW, 2 PZD)" 0x0F, 0x05 EndModule

Validate the file before importing it. The check sequence in the field:

  1. Compare the printed Ident_Number against the value shown on the option-board label or in the board manual.
  2. Confirm supported baud rates include the master line speed (DP-1 is normally left at the auto-detect master behaviour; explicit Set_Slave_Add_supp = 1 is required if the drive is addressed by software address > 126).
  3. Inspect the Max_Diag_Data_Len and the maximum user data length.
  4. Confirm consistency types used by each module: 0x00 = byte, 0x01 = word, 0x04 = total-module consistent (use this for process data that must not split between PLC scan cycles).
  5. Check the bitmaps exist: VACON_NX.bmp must accompany the .gsd. STEP 7 uses these BMPs in the catalog tree.

Installing the GSD File in STEP 7 HWConfig

  1. Launch SIMATIC Manager. Open the target S7-300 / S7-400 project (or create a new one with a CPU 31x-2 DP).
  2. Click on the SIMATIC 300 Station / SIMATIC 400 Station container and double-click Hardware to launch HW Config.
  3. From the HW Config menu select Options → Install GSD File....
  4. In the dialog, browse to the folder containing the .gsd (and optional .gsg, .bmp) files. Set the filter to GSD file (*.gsd). Multiple files can be highlighted and installed in one batch.
  5. Click Install. STEP 7 parses each file, runs the GSD tokenizer, and copies the files into <STEP7 path>\S7DATA\GSD\. The catalog is rebuilt; wait for the progress bar to complete.
  6. Close and re-open HW Config so the new device appears in the catalog tree.
Troubleshooting install failures: if STEP 7 reports "GSD file contains syntax errors", the file is usually corrupted in transport. Compare against a vendor-supplied MD5 or open the file in Notepad++ and check the line endings (a mixed CRLF/LF imported via FTP sometimes breaks the parser).

Adding the Slave to the PROFIBUS DP Network

  1. In HW Config, select the DP master (the CPU rail with the DP interface or an external CP). The PROFIBUS subnet object appears below the master.
  2. Right-click the PROFIBUS (1) : DP master system slot and choose Add Master System if none exists, or simply Properties... to set bus parameters (transmission rate, profile, highest station address / HSA).
  3. Open the hardware catalog on the right side of HW Config. Navigate to PROFIBUS DP → Additional Field Devices → Drives → <Vendor Name>. The newly imported device appears as a subfolder; for Vacon this resolves to Vacon Drives → VACON NX OPTC3.
  4. Drag the slave icon from the catalog into the PROFIBUS line. The dialog Properties - PROFIBUS Interface OPTC3 opens.
  5. Assign a unique PROFIBUS address (1 - 125). The HSA must be equal to or greater than this address, otherwise the master will not poll the slave.
  6. Confirm "Watchdog" is enabled (recommended for drives), and leave the diagnostic address at the default unless you are using a custom diagnostic FB.

Selecting the PPO Telegram and I/O Byte Mapping

DPV0 PROFIdrive slaves negotiate process data via predefined PPO (Parameter / Process Data Object) telegrams. Pick the telegram type from the slot 1 configuration of the slave in HW Config; this simultaneously sets the byte count, consistency, and the I address / Q address ranges reserved in the CPU.

PPO Type PKW (Parameter) PZD (Process Data) Total Input Bytes Total Output Bytes Typical Use
PPO 1 4 words (8 bytes) 2 words (4 bytes) 12 12 Full parameter access + minimal control
PPO 2 4 words (8 bytes) 6 words (12 bytes) 20 20 Full parameter access + drive status / setpoints / ramps
PPO 3 None 2 words (4 bytes) 4 4 Cycle-synchronous control only
PPO 4 None 6 words (12 bytes) 12 12 High-performance control, no parameter channel
PPO 5 4 words (8 bytes) 10 words (20 bytes) 28 28 Full parameter access + extended diagnostics

Place the appropriate PPO module into slot 1 of the slave; remove any redundant modules from slots 2 / 3. Confirm the consistency type is shown as "Total length" for the PZD area. When you re-enter the slot, STEP 7 will preallocate I/O address ranges, for example:

Input  Word   256..263   (12 bytes for PPO1 = 6 words)
Output Word   256..263

These addresses are then moved into the IEC process image with SFC26/SFC27 (update process image partitions) or read directly with L PIW 256 / written with T PQW 256. For PPO consistency, prefer SFC14 / SFC15:

CALL  SFC 14  // DPRD_DAT
LADDR  := W#16#100                  // PPO1 input, base PIW256
RET_VAL := MW 100
RECORD  := P#DB100.DBX0.0 BYTE 12   // 6 words packed into DB100

CALL  SFC 15  // DPWR_DAT
LADDR  := W#16#100
RECORD  := P#DB101.DBX0.0 BYTE 12
RET_VAL := MW 102

Configuration Notes for Variable-Speed Drives

After the slot is selected, set the drive-side parameters that mirror the master slot choice:

  • Vacon NX OPTC3/C5: parameter P17.1 selects the active telegram; always set the value through the panel or Drive Tool before commissioning to ensure consistency between the GSD-selected PPO and the option-board side.
  • PKW channel: if parameter access is not required, select PPO 3 or PPO 4 to halve the cycle load and free four input / output words on the S7-300 I area.
  • Watchdog: keep watchdog enabled and set the master watchdog time (default 1.0 s) tight enough to drive the inverter into a fail-safe state on communication loss, but loose enough to ride through PLC pause / breakpoint conditions during commissioning.
  • Fallback mode: if the slave firmware is unknown, install the GSD but verify the Ident_Number reads identically via "PLC → PROFIBUS Diagnostics" before connecting any motor.

Downloading and Verifying Communication

  1. From HW Config, click Station → Save and Compile (Ctrl+S). The bottom panel must show 0 errors; warnings about HSA are tolerated but should be reduced.
  2. Click PLC → Download to Target Unit. Select the correct PG/PC interface (e.g. PC Adapter (MPI) or CP 5611 (PROFIBUS)).
  3. Bring the CPU to RUN; the SF / BF LEDs on the slave drive should extinguish within 2-3 scan cycles.
  4. Open PLC → PROFIBUS Diagnostics in HW Config and confirm the new slave appears with state "active, no diagnosis" and a stable bus statistic (no repeat-failure frames).
  5. Force a small setpoint in a watch-table by writing to the configured PQW word, verify the drive reacts, and back-read the drive actual value via PIW.

Diagnostic Tools and PROFIBUS Live Monitoring

For deeper analysis, use the SIMATIC NET "PROFIBUS Monitor" or any PI-conformant diagnostic tool. Standard toolset and interpretation points:

Tool Source Purpose
PROFIBUS Diagnostics STEP 7 → PLC → PROFIBUS Diagnostics List of slaves, address state, last diagnostic frame
Online → Accessible Nodes STEP 7 Active scan of live participants
PROFIBUS Monitor (tracer) SIMATIC NET / PROFItrace Frame-level capture, telegram integrity
Slave diagnostic FB (FB125 / FB126) Standard Siemens blocks Decode DPV1 alarms inside STEP 7

Troubleshooting Matrix

Symptom Likely Cause Resolution
Slave does not appear in catalog after Install GSD Catalog not refreshed; STEP 7 still has an open project Close HWConfig entirely, re-open, then Options → Update Catalog
HWConfig shows Ident_Number mismatch GSD file revision does not match option-board firmware Request current GSD from drive vendor; verify against the device label
BF (Bus Fault) LED steady on the drive after online Wrong PROFIBUS address or baud-rate mismatch Compare address against the master scan; check bus termination and shield grounding
SF (System Fault) LED on the CPU Consistency mismatch (byte vs total) on the cyclic PZD area Set module consistency to "Total length"; pack via SFC14/15
CPU Run/Stop toggles when GSD is downloaded Watchdog too tight; cycle time exceeded Open slave Properties → Watchdog, increase to 1.5x OB1 cycle
Diagnostic → "Slave not found at address 33" HSA lower than the slave address Increase HSA in DP master properties
Parameter read returns 0x0000 (PKE = ill. value) PKW channel disabled / wrong PPO type picked Change module to PPO1, PPO2, or PPO5 in slot 1
Drive ignores all setpoints after online stop/run Drive-side P17.x parameterisation differs from slot Set Vacon P17.1 (or equivalent vendor menu) to match PPO type
Output bytes change but input bytes always 0x0000 Set_Slave_Add_supp not enabled; address overlaps Verify GSD supports SSA, re-validate address range vs existing I/O layout

Field-Proven Pitfalls and Caveats

Several recurring issues appear repeatedly during field commissioning:

  • Bitmaps missing. The GSD must be accompanied by a 1-bit-per-pixel BMP. STEP 7 silently ignores the device if it cannot load the icon, leading the engineer to suspect a corrupt catalog.
  • Mixed GSD/GSG files. Older drives ship a .gsg (German) and .gse (English) variant. STEP 7 prefers the English file; both can be installed simultaneously for documentation completeness.
  • GSD revision > project STEP 7. STEP 7 V5.5 will reject features declared as "DPV1 with safety" or "PROFIsafe" if the catalog does not know the identifier. Either apply the latest Service Pack for STEP 7 V5.5 or fall back to the standard PPO module list.
  • Y-Link / DP/PA Coupler. When routing through a Y-Link to a downstream DP segment, the cyclic I/O length is limited to 244 bytes. PPO 5 (28 bytes) is well inside this limit, but stacking additional drive modules may exceed it.

FAQ

Where do I find the official GSD specification that HWConfig parses?

The GSD specification is maintained by PI (PROFIBUS & PROFINET International). The current revision (GSD Revision 5) and the searchable device library are published at PI - GSD Specification and PI - Standard GSD Libraries.

Which menu in HWConfig do I use to import the GSD file?

Within the active HW Config window, select Options → Install GSD File..., browse to the folder containing the .gsd (plus .bmp bitmap) and click Install. The new device then appears in the catalog tree under PROFIBUS DP → Additional Field Devices / Drives / <Vendor name>.

How do I decide between PPO Type 1 (4 PKW + 2 PZD) and PPO Type 4 (0 PKW + 6 PZD)?

Pick PPO 1 if you need the parameter channel to read/write drive parameters over the bus (e.g. commissioning, ramp configuration). Pick PPO 4 if you only need cyclic setpoint and actual-value exchange; it removes the 8-byte PKW channel, freeing 4 input and 4 output words in the CPU process image.

What is the smallest cyclic frame a drive will accept in STEP 7 V5.5?

A PPO Type 3 telegram with 2 PZD words, producing 4 bytes of input and 4 bytes of output, is the minimum cyclic PDU supported by classic PROFIdrive drives. Some clamps and remote I/O accept even shorter frames (down to 1 byte) but that is non-standard for PROFIdrive and is configured via a vendor-specific slot, not via a PPO entry.

Can the same GSD be installed on two STEP 7 project stations?

Yes. The GSD is copied into <STEP7>\S7DATA\GSD\, which is shared across the whole PC. Launch HWConfig on the second project, refresh the catalog (Options → Update Catalog), and the drive appears immediately. Repeated imports on a single PC are safe but generate duplicate catalog entries; right-click the duplicate and choose Delete to keep the catalog clean.

Back to blog