Exporting a PROFINET I-Device GSDML File from ET 200S IM 151-8 PN/DP
The Siemens ET 200S IM 151-8 PN/DP CPU (order number 6ES7151-8BA01-0AB0) is a compact PROFINET controller with an integrated PROFINET switch. When its X1 interface is configured as an I-device, the station exposes its process-data image as a modular PROFINET IO device that can be coupled to a higher-level PROFINET controller. The most common third-party master in this topology is the Hilscher CIFX 50 RE. Coupling requires a GSDML description of the I-device, generated by TIA Portal from the slot configuration of the ET 200S. This article walks through identifying the correct CPU variant, configuring I-device mode, defining transfer areas, exporting the GSDML, and integrating it on the Hilscher side, plus a troubleshooting matrix covering the failure modes that surface in the field.
1. Concept: PROFINET I-Device
A PROFINET I-device is an IO device with an upper IO controller. From the perspective of the upper controller, the I-device behaves exactly like any other PROFINET IO device—it has a fixed IP address, a station name, and a modular slot structure. From its own lower PROFINET perspective, the I-device may continue to operate as an IO controller for downstream IO or as a stand-alone PLC. The IM 151-8 PN/DP supports both roles simultaneously because it has two physical PROFINET ports (X1 and X2); X1 becomes the I-device port and X2 the lower IO controller port.
The GSDML file (General Station Description Markup Language) is the standardized XML description of a PROFINET device. It encodes the slots, sub-slots, modules, transfer areas, diagnostics, and parameter descriptions. The upper controller imports the GSDML into its configuration tool and then drags the device into the PROFINET topology, after which the tool generates the connection records and the assignment table that the master downloads to its PROFINET stack.
2. Prerequisites
| Component | Required version | Notes |
|---|---|---|
| IM 151-8 PN/DP CPU | 6ES7151-8BA01-0AB0 or 6ES7151-8AB01-0AB0 | Firmware V3.x. The -8BA00 suffix marks the V2.x variant which cannot export GSDML |
| TIA Portal | V16, V17, V18, V19, or V20 | Procedure identical across V16-V20 |
| STEP 7 (legacy) | V5.6 + HSP 0291 for IM 151-8 PN/DP | Use only when migrating from SIMATIC Manager |
| Hilscher CIFX 50 RE | Firmware ≥ 3.x with PROFINET IO Master stack | Configured with SYCON.net V1.4x or higher |
| Hilscher cifX driver | V2.x or higher | Required for GSDML V2.5 schema support |
| GSDML schema | V2.4 or V2.5 | Selected automatically by TIA Portal based on I-device firmware |
| Ethernet cable | Cat 5e or higher, crossover or straight-through | Industrial PROFINET cabling (IEC 61784-2) recommended |
-8BA00 ship with firmware V2.x and cannot export a GSDML. Order numbers ending in -8BA01 ship with firmware V3.x and provide the Export I-device command in TIA Portal. If the export option appears disabled, this is the most common root cause.3. Identifying the IM 151-8 PN/DP Variant
- Open the device view of the ET 200S station in TIA Portal.
- Right-click the IM 151-8 PN/DP module and select Properties → General → Identification & Maintenance.
- Compare the Order number field with the table above. Confirm the last three characters are
BA1orAB1rather thanBA0. - Compare the Firmware version field. Values
< V3.0.0indicate that GSDML export is not available in the catalog; perform a firmware update via TIA Portal online functions or the SIMATIC Automation Tool. - Optionally check the Hardware tab for the MAC address range; the
-8BA01series uses MAC prefix00-0E-8Cwith vendor ID0x002A(Siemens AG).
4. Configuring the I-Device Mode in TIA Portal
In the device view of the ET 200S station:
- Double-click the PN IO port of the IM 151-8 PN/DP (port X1).
- In the Inspector window, select PROFINET interface → Operating mode.
- Tick the checkbox I-device communication.
If the checkbox is greyed out, the CPU variant does not support I-device mode. Update the firmware to ≥ V3.0 or replace the unit with a6ES7151-8BA01revision. - Under Real time settings → Send clock, set a value matching the master's send clock. The default of 1 ms is acceptable for most CIFX 50 RE masters; reduce to 250 µs only if the master's watchdog permits and the I-device firmware supports it.
- Under Interface → Ethernet addresses, assign a fixed IP address that is reachable from the CIFX 50 RE subnet. PROFINET DCP should remain enabled so that the master can assign an alternative address during commissioning.
- Under Interface → PROFINET security, leave DCP read/write enabled during commissioning; restrict after a successful AR has been established.
5. Configuring Transfer Areas and Slots
The transfer areas define the process-data image that the GSDML exposes to the master. Configure them under Properties → PROFINET interface → I-device communication → Transfer areas.
| Slot / Submodule | Direction | Length (bytes) | Default name |
|---|---|---|---|
| Slot 0 / Sub 0 | — | 0 | Device Access Point (DAP) |
| Slot 1 / Sub 1 | Input (to master) | 32 | I-device inputs |
| Slot 1 / Sub 2 | Output (from master) | 32 | I-device outputs |
| Slot 1 / Sub 3 | Input | 4 | Status / Diagnosis |
To add additional transfer areas:
- Click Add new transfer area in the table.
- Set API to
0(the default PROFINET application process identifier). - Set Slot and Subslot. Valid slots:
0(device access point),1(head module). Sub-slots1–0x7FFFare user-definable. - Set the Length in bytes. Each transfer area can hold up to 1440 bytes input + 1440 bytes output, with a maximum of 256 transfer areas per I-device.
- Map the transfer area to a tag area in the IM 151-8 PN/DP PLC program (e.g.,
PIB 0…PIB 31for inputs). - Set the Consistency field to Total length when the entire transfer area must be read or written atomically; use Byte when individual bytes are acceptable.
6. Exporting the GSDML File
The export wizard generates a GSDML V2.x file plus an icon bitmap (BMP) and a YAML-based parameter description for the slot-level configuration.
- Open the Inspector window at the PN interface (X1).
- Navigate to Operating mode → I-device communication.
- Click the Export button in the upper-right of the section.
- In the dialog Export I-device, choose a target directory (e.g.,
C:\GSD\ET200S_151-8\). - Accept the default GSDML filename:
GSDML-V2.<version>-SIEMENS-ET200S_IM151-8PNDP-<yyyyMMdd>.xml. - Click Export. TIA Portal writes the file in <5 s.
- Verify that the following artifacts are written:
-
GSDML-V2.x-SIEMENS-ET200S_IM151-8PNDP-yyyyMMdd.xml(the GSDML) -
SIEMENS_ET200S_IM151-8PNDP.bmp(device icon) -
SIEMENS_ET200S_IM151-8PNDP.yaml(parameter description, optional)
-
The official TIA Portal V20 documentation describes this procedure at Exporting an I-device as a GSD file. The companion topic Installing the GSD file documents the inverse operation when the ET 200S is a master that needs to consume a third-party GSD.
7. Installing the GSDML in the Hilscher CIFX 50 RE Master
The CIFX 50 RE firmware exposes a PROFINET IO Master stack. Configuration uses SYCON.net:
- Open SYCON.net and create a new PROFINET IO Master configuration.
- Select Device catalog → Import GSD and choose the
.xmlfile exported in step 6. - Place the new Siemens ET 200S IM 151-8 PN/DP I-device in the PROFINET topology view.
- Match the Send clock, Watchdog, and Reduction ratio to the values configured in TIA Portal. Mismatched send clocks are the most common cause of AR-establishment failures.
- Set the I-device's IP address and device name. The device name must be unique within the PROFINET network and is case-sensitive; PROFINET names follow DNS label rules (max 240 characters, alphanumeric and dash).
- Configure the I/O mapping on the CIFX 50 RE side. Use Hilscher's process-data API:
xChannelOpen(),xChannelIORead(),xChannelIOWrite(). - Download the configuration to the CIFX 50 RE using SYCON.net. The cifX driver stores the configuration in non-volatile memory on the card.
- Verify that the CIFX 50 RE enters RUN state and that the AR (Application Relationship) LED is solid green.
If SYCON.net rejects the GSDML, install the corresponding TIA Portal version of the GSDML schema (V2.4 / V2.5). The Hilscher cifX driver supports both schema versions as of Driver V2.x.
8. Configuration Notes for the IM 151-8 PN/DP PLC Program
The PLC program running on the IM 151-8 PN/DP must populate the input transfer areas with the data the master should read and consume the output transfer areas the master writes. The data is exchanged through the process-image partition.
| TIA Portal symbol | Address | Direction | Master view |
|---|---|---|---|
iDev_In_Word_0…15 |
IW 0 … IW 30 | Input to master | 32 bytes (16 words) |
iDev_Out_Word_0…15 |
QW 0 … QW 30 | Output from master | 32 bytes (16 words) |
iDev_Status |
IB 32 … IB 35 | Input to master | 4-byte status/diagnosis |
The status/diagnosis bytes follow the PROFINET profile:
Byte 0: bit 0 = AR established, bit 1 = Data exchange, bit 2 = Diagnostics pending.
Byte 1: Master AR number (0 = primary AR).
Bytes 2–3: Vendor-specific, free for application use.
If the PLC program needs to react to AR loss, evaluate iDev_Status.0 in OB1 and call SFB52 (PNIO_RW_REC) or, in newer TIA Portal versions, the diagnostic blocks under PROFINET IO → Diagnostics in the instruction catalog.
9. STEP 7 V5.6 Procedure (Legacy Path)
If the IM 151-8 PN/DP project was created in SIMATIC Manager rather than TIA Portal, the GSDML export is available from HW Config:
- Open HW Config and select the IM 151-8 PN/DP station.
- Double-click the PN-IO interface of the CPU.
- Switch to the I-device tab.
- Tick Operate as I-device.
- Configure the transfer areas under Transfer areas in the same dialog.
- Click the Export button. SIMATIC Manager writes the GSDML to the project directory.
STEP 7 V5.6 produces GSDML V2.4 by default, regardless of firmware version. If the Hilscher driver expects V2.5, post-process the XML with the GSDML Schema Converter shipped in the TIA Portal installation directory (Siemens\Automation\Portal V20\Data\GSD\Tools\GsdmlSchemaConverter.exe).
10. Commissioning and Verification
| Check | Tool | Expected result |
|---|---|---|
| AR establishment | SYCON.net diagnostic view | AR established, no diagnostics |
| I/O data exchange | CIFX 50 RE process-data monitor | Inputs toggle in sync with PLC program |
| Watchdog | PROFINET diagnostics | No wire break or life-sign missed events |
| Slot mapping | TIA Portal → Online → Diagnostics | All slots show OK, no Submodule mismatch |
| GSD version | Right-click device in SYCON.net → Properties | Shows GSDML V2.<x> matching TIA Portal export |
| Device name | SYCON.net topology view | Matches TIA Portal I-device name exactly (case-sensitive) |
| Cycle time | PROFINET analyzer (e.g., Indu-Sol PROFINET-INspektor) | Cycle jitter < 50 µs, no late telegrams |
11. Troubleshooting Matrix
| Symptom | Probable cause | Remedy |
|---|---|---|
| Export button greyed out | CPU variant 6ES7151-8BA00 (FW V2.x) | Update firmware to ≥ V3.0 or replace CPU with 6ES7151-8BA01 |
| I-device communication checkbox disabled | CPU firmware < V3.0 | Perform firmware update via TIA Portal online functions |
| GSDML rejected by SYCON.net | Schema version not supported by Hilscher driver | Re-export with compatible TIA Portal version or convert schema |
| AR establishment fails | Device name mismatch | Match device name in TIA Portal and SYCON.net exactly |
| AR establishes but no data | Transfer area not mapped to PLC tag | Check PLC tag assignment in IM 151-8 PN/DP program |
| Watchdog trips after 3 s | Send clock mismatch between master and I-device | Align send clock in TIA Portal and SYCON.net |
| Slot shows submodule mismatch | Slot length differs from export | Re-export after changing slot length and re-import GSD |
| Diagnostic alarm at startup | DCP disabled but master expects DCP-based address assignment | Enable DCP read/write under PROFINET security |
| Inputs read zero but no alarm | Process-image partition not updated by OB1 | Force update with SFC 26 / SFC 27 or use PIP0..PIP3 |
| CIFX 50 RE stays in NOT READY | Driver V1.x installed; needs V2.x for GSDML V2.5 | Update cifX driver to V2.x or higher |
12. Field-Proven Best Practices
- Lock the firmware. Disable automatic firmware updates on the IM 151-8 PN/DP once commissioning is complete. Unintended firmware changes break GSDML compatibility with the master.
- Reserve a static IP. PROFINET DCP allows the master to overwrite the I-device's IP at startup. Reserve the IP in the master's PROFINET topology to prevent accidental collisions.
- Use dedicated VLANs. Isolate PROFINET traffic on a dedicated VLAN (e.g., VLAN 100) to keep broadcast storms off the PROFINET line.
- Pin the GSDML to the project. Store the GSDML in a versioned folder under the project root and reference it in the master's documentation set. Re-export and re-import whenever the slot layout changes.
- Validate with a PROFINET analyzer. Before handing the system over to operations, run a 24-hour PROFINET analyzer trace to confirm that the AR is stable and that no late or duplicate telegrams occur.
- Document the device name. The PROFINET device name of the I-device must be documented in the plant's naming convention; renaming requires re-downloading the master configuration.
FAQ
Why is the Export button greyed out in TIA Portal for my IM 151-8 PN/DP?
The Export command is enabled only on order number 6ES7151-8BA01-0AB0 (and the equivalent 6ES7151-8AB01) with firmware V3.x. The earlier 6ES7151-8BA00 revision cannot generate a GSDML; either update the firmware to ≥ V3.0 or replace the CPU.
Which GSDML schema version is exported by TIA Portal V20?
TIA Portal V20 exports GSDML V2.5 by default. Older I-device firmware produces GSDML V2.4. Both schema versions are accepted by Hilscher cifX driver V2.x and higher.
Can the IM 151-8 PN/DP act simultaneously as I-device and as IO controller for downstream IO?
Yes. Use PROFINET port X1 as the I-device port and port X2 as the IO controller for downstream ET 200S modules. Enable Operating mode → I-device on X1 only and leave X2 in default IO-controller mode.
How many transfer areas can be defined on the IM 151-8 PN/DP?
Up to 256 transfer areas per I-device, with a maximum of 1440 bytes input and 1440 bytes output each. Most applications stay well below this limit because the IM 151-8 PN/DP has only 64 KB of process image.
Do I need to restart the IM 151-8 PN/DP after exporting the GSDML?
No. The export is an offline operation that generates files only. The running PLC program and the live PROFINET AR are unaffected. A restart is required only if the GSDML is re-imported into the master and the AR is re-established.
What happens if I export the GSDML twice with different slot lengths?
The newer file supersedes the older one on disk, but the master retains the configuration that was downloaded to its non-volatile memory. Re-import the GSDML into SYCON.net and download the new configuration to the CIFX 50 RE so that the AR slot layout matches.
Can I export the GSDML from STEP 7 V5.6 SIMATIC Manager?
Yes. STEP 7 V5.6 with the IM 151-8 PN/DP HSP produces GSDML V2.4. Convert to V2.5 with the GSDML Schema Converter if the Hilscher driver requires it.