Overview
Engineers commissioning SIMATIC S7-300, S7-400, ET 200, or older S7-200 systems frequently need to mirror the STEP 7 hardware configuration into an EPLAN Electric P8 electrical schematic. The instinctive path — exporting the *.cfg* file out of SIMATIC Manager > HW Config and dragging it into EPLAN — fails because EPLAN has no parser for the STEP 7 binary configuration format. The two systems do not speak a common interchange format natively.
The supported workflow is to obtain Siemens-prepared EPLAN macros from either the Siemens CAx download area or the EPLAN Data Portal, then place those macros on the appropriate schematic pages and assign them to the same Siemens part numbers used in HW Config. This article documents the exact procedure, the supported file formats, the parts-database mapping, and a troubleshooting matrix for the common failure modes.
The CFG Limitation: Why STEP 7 HW Config Output Is Not EPLAN-Compatible
When you save a station in SIMATIC Manager > HW Config > Station > Save (or Save and Compile), the following artefacts are generated:
| File | Extension | Contents |
|---|---|---|
| Hardware configuration | *.cfg |
Rack layout, slot assignment, module order, parameter records (binary) |
| System data | *.sdf |
CPU operating parameters, OB / FB / DB mapping |
| Symbol table export |
*.asc / *.dif
|
I/Q/M/T/C symbolic names |
| Hardware catalog | Internal *.dat
|
Module-type database used by HW Config |
The *.cfg file is a packed binary record specific to STEP 7. EPLAN Electric P8 (versions 2.1, 2.7, 2.9, 2022, 2023, 2024, and the current 2025 release) does not contain an importer for that format. The same restriction applies to TIA Portal's *.ap* project archive — TIA can export device labels as CSV but cannot push a working schematic macro set into EPLAN. As of writing there is no Siemens-supplied bidirectional STEP 7 < > EPLAN bridge.
*.cfg directly into an EPLAN project as unverified; Siemens does not endorse such a path. The supported methodology uses macro files provided by Siemens and EPLAN.Supported EPLAN Import Formats for Siemens Components
| Format | Extension | Source | Contents |
|---|---|---|---|
| EPLAN Macro Archive | *.ema |
EPLAN Data Portal / Siemens CAx | Schematic symbol, terminal diagram, 3D model, drill pattern, parts data in one container |
| EPLAN Macro Project | *.emp |
EPLAN | Project-level macro with embedded pages |
| EPLAN Window Macro | *.emw |
EPLAN | Single-page macro stored in user project |
| EPLAN Parts Data | *.edd |
EPLAN parts management | Single parts record (commercial / technical data) |
| DXF / DWG |
*.dxf / *.dwg
|
Legacy Siemens discs | 2D schematic geometry only — no parts intelligence |
| STEP / IGES |
*.step / *.iges
|
CAx 3D downloads | 3D mechanical model for cabinet layout |
The *.ema file is the canonical deliverable. A single archive can carry a schematic symbol, a terminal-strip representation, a 3D mounting model, and the full parts record (article number, manufacturer, technical properties). This is why Siemens ships one archive per module rather than separate schematic and parts files.
Prerequisites
- EPLAN Electric P8 2.7 or newer. Versions 2.1 (the one referenced in earlier forum questions) do not support EPLAN Data Portal direct download — they require manual
*.emaimport. Versions 2022 / 2023 / 2024 / 2025 have the Data Portal integrated as a ribbon tab (Home > Parts > Data Portal). - Valid EPLAN Data Portal account. A free registered account is sufficient for searching; bulk download and watchlists require an EPLAN subscription or a maintenance contract.
- Siemens Support account for CAx download. support.industry.siemens.com registration is free; some macro archives require a Siemens Industry Online Support registration.
- SIMATIC Manager (STEP 7 V5.5 or V5.6) or TIA Portal V15 / V16 / V17 / V18 installed locally so you can read the existing
*.cfgfile and confirm the exact module order, MLFB (article number), and rack/slot positions you need to mirror in EPLAN. - List of Siemens part numbers actually present in the station — pulled from HW Config: Station > Print > Module List, or from the offline catalog via View > Catalog.
STEP 7 Hardware Configuration: What to Extract Before Touching EPLAN
Before you start placing macros in EPLAN, capture the canonical data from STEP 7 so the schematic exactly mirrors the rack:
- Open the station in HW Config.
- From the menu, select Station > Print > Module List. This produces a text or printable list showing each slot's MLFB (e.g.
6ES7 313-6CF40-0AB0), firmware version, and I/O address ranges. - From Station > Export, choose Configuration file (*.cfg). Save it locally for reference; you will not import it into EPLAN but you will keep it for audit traceability.
- Open View > Catalog and write down every MLFB you intend to draw, including:
- Power supply (PS)
- CPU
- Signal modules (SM) — DI / DO / AI / AO
- Function modules (FM)
- Communication processors (CP)
- Interface modules (IM) for ET 200
- Capture the terminal assignment: HW Config > select module > right-click > Properties > Addresses records the I/Q address. The schematic terminal letters (e.g.
1, 2, 3, 4, 5, 6, 7, 8for an SM 321) come from the module datasheet, not from HW Config.
6ES7 321-1BL00-0AA0 vs the later -1BL01-0AA0). Always key your EPLAN parts records to the exact MLFB string STEP 7 shows; do not truncate the dash-separated suffix.Method 1 — Siemens CAx Download (formerly CAXorder)
Siemens publishes EPLAN-compatible CAx data through their Industry Online Support portal. The legacy "CAXorder" link has been folded into the CAx download area.
- Open Siemens Industry Online Support and search for the MLFB (for example, type
6ES7313-6CF40-0AB0into the product search). - From the product page, navigate to Support > CAx data (or follow the CAx download help entry).
- Select EPLAN Electric P8 as the target format and download the
*.ziparchive. - Extract the archive. Typical contents:
-
*.ema— schematic / terminal / 3D macro -
*.dxfor*.dwg— 2D geometry -
*.step— 3D model -
*.pdf— datasheet and terminal plan
-
- Repeat for every MLFB in your station list. Place all extracted
*.emafiles in a single staging directory such asC:\EPLAN_Macros\S7300_Station01\.
Method 2 — EPLAN Data Portal
The Data Portal is the modern workflow and is integrated into EPLAN from version 2.7 onward.
- Inside EPLAN, open the parts database view: Menu > Master Data > Parts.
- Click Search in Data Portal (or ribbon: Home > Parts > Data Portal).
- Filter by manufacturer:
Siemens AG. Optionally narrow by part-number prefix (e.g.6ES7 313for S7-300 CPUs). - Locate the matching part number, right-click and select Download to parts database. This action:
- Adds the part to your EPLAN parts database with full commercial and technical properties
- Downloads the matching macro to
%USERPROFILE%\Documents\EPLAN\Data\Macros\ - Associates the part number with the macro for future placements
- Confirm the download by clicking Refresh in the parts manager; the new Siemens part should appear with a green EPLAN Data Portal icon.
The Data Portal search returns both current EPLAN 2024+ macros and older *.zw1 macros for projects opened in EPLAN 2.1 or earlier. Always choose the version that matches your EPLAN release unless you have a documented reason to downgrade.
Method 3 — Manual Macro Construction (Fallback)
If Siemens has not yet released a macro for a particular module — common with very recent firmware revisions or new IM 153 / ET 200SP variants — build the macro inside EPLAN:
- Draw the schematic symbol on a new macro page: Insert > Symbol. Use the IEC symbol library, search by function (e.g. "16-channel digital input module").
- Add terminal designations: Insert > Terminal / Terminal Strip. Define each terminal number, its function, and the wire cross-section reference.
- Create the macro: File > Export as Macro > Window Macro (*.emw). Save it in
%USERPROFILE%\Documents\EPLAN\Data\Macros\. - Create the matching parts record: Master Data > Parts > New. Fill in the MLFB exactly as STEP 7 records it, set manufacturer to
Siemens AG, and link the macro you just saved under the Macro tab.
*.emw filename convention in EPLAN is <part-number>_<function-key>.emw — do not overwrite Siemens-supplied *.ema files with manual drafts.STEP-by-Step: Importing Siemens Macros into EPLAN Electric P8
- Confirm macros are downloaded (Method 1 or Method 2 above).
- Open the target EPLAN project. If the project does not yet exist, create one with the matching station name: Project > New > Project name = Station_01.
- Set the project template / basic project to one that uses IEC symbols (typical in EU installations). North-American installations may use the NFPA / JIC templates; the macro set is the same but the sheet frame differs.
- Open the page where the module should appear. For S7-300 stations use the page structure:
=> Cabinet / Rack / Slot. - Place the macro: Insert > Macro > Insert Window Macro (or Place from Data Portal). Navigate to the staged
*.emaor the Data Portal browser. - Anchor the macro at the desired coordinate. The macro brings all its graphical and logical content: terminal designations, DT/PE markings, internal wiring identifiers.
- Assign the part: right-click the placed symbol > Properties > Parts tab > select the matching Siemens article number. This binds the symbol to the parts database and enables the bill-of-materials to roll up correctly.
- Repeat for every slot in the STEP 7 rack until the schematic reflects the same module order. Maintain slot order left-to-right in the schematic to match the physical rack order for easier troubleshooting in the field.
- Save the project. EPLAN saves macros by reference inside the project file. Deleting the source
*.emafrom disk after import will break existing placements — keep the source directory in your revision-control system.
Linking the EPLAN Schematic Back to STEP 7 Symbols
The schematic side is solved by the macros; the symbol side (the I/Q tag names inside the STEP 7 project) still has to be re-typed or imported manually:
- In STEP 7, export the symbol table: Options > Symbol Table > Export. Choose
*.ascwith semicolon separators, or*.difif you need formatting compatibility. - In EPLAN, open Utilities > Connections > Connection Designation for the macro you placed. Paste the symbolic tag (e.g.
I 0.0 / Motor_Run) into the connection designation. - For bulk import, EPLAN 2022+ supports the
*.csvconnection list import under Project > Import > Connections. The CSV column order is:Page / Higher-level function / Page nameConnection designation sourceConnection designation targetSignal nameWire cross-sectionColor / Function definition
- Use the EPLAN plug-in Signal Flow / Connection Numbering (Project Data > Connections) to update all connection designations in one pass after CSV import.
Specifications and Compatibility Matrix
| STEP 7 / TIA Station Module Class | Typical MLFB Stem | EPLAN Macro Availability | Macro Version Pattern |
|---|---|---|---|
| PS 305 / PS 307 (S7-300 power supply) | 6ES7 307- |
Data Portal + CAx | PS307_xx_xx_xx.ema |
| CPU 312 / 313 / 314 / 315 / 317 | 6ES7 312-/313-/314-/315-/317- |
Data Portal + CAx | CPU_315-2_xx_xx.ema |
| SM 321 DI / SM 322 DO | 6ES7 321-/322- |
Data Portal + CAx | SM321_xx.ema |
| SM 331 AI / SM 332 AO | 6ES7 331-/332- |
Data Portal + CAx (some older variants only as DXF) | SM331_xx.ema |
| IM 151 / IM 153 (ET 200 interface) | 6ES7 151-/153- |
Data Portal + CAx | IM153-1_xx.ema |
| CP 340 / CP 341 | 6ES7 340-/341- |
Data Portal (CAx limited) | CP341_xx.ema |
| FM 350 / FM 351 / FM 352 | 6ES7 350-/351-/352- |
CAx only (legacy) | Often DXF + 3D STEP, no *.ema
|
The macro naming is set by Siemens and may include the firmware index (e.g. -1BL00- vs -1BL01-). Always check the macro's parts-record linkage before mass placement — a firmware mismatch will produce a wrong MLFB in the EPLAN parts list even though the graphic looks correct.
Verifying the Import
- Cross-check parts list: Project > Reports > Parts List. Compare the EPLAN parts list to the HW Config module list exported in Step 2. Every slot should have a matching MLFB.
- Cross-check terminal designations: for an SM 321 DI 16 × 24 V DC the macro should show terminals
1–8(channel 0),9–16(channel 1), with terminal20as M / ground reference. Manually trace the macro's terminals against the Siemens datasheet shipped in the CAx archive. - Cross-check 3D model: Project > 3D Mounting Layout > Open Layout Space. The 3D macros from Siemens should snap onto the rail in correct order. If a 3D macro does not snap, the macro file is the wrong firmware revision.
- Run a connection-numbering pass: Project Data > Connections > Number / Rename. This validates that every macro placed in the schematic has reachable, non-duplicate connection designations.
- Open the EPLAN project on a second station (or in the same release) and confirm macro bindings resolve. EPLAN 2.1 cannot open projects saved in 2024 unless upgraded; macro references stored in pre-2.1 format (
*.zw1) are not portable to 2024+ projects.
Troubleshooting Matrix
| Symptom | Likely Cause | Resolution |
|---|---|---|
EPLAN shows "Unknown file format" on *.cfg drag-and-drop |
STEP 7 *.cfg is not an EPLAN-importable format |
Do not attempt direct import. Follow Method 1 or Method 2 to obtain *.ema macros. |
| Macro placed but parts list shows "Unspecified component" | Macro placed without assigning part record | Right-click macro > Properties > Parts > assign MLFB. Then re-evaluate the parts list. |
| Data Portal search returns no results | Manufacturer filter set wrong or MLFB typo | Clear filters; search by MLFB stem (e.g. 6ES7 313); cross-check Siemens product page. |
| Macro opens with broken terminals | Macro saved for different EPLAN version | Use only *.ema macros from CAx or Data Portal. Manual *.zw1 macros do not load cleanly in 2024+. |
| 3D layout does not show the module | Macro lacks 3D component | Download the matching *.step from Siemens CAx and add it under Macro > 3D Mounting in the parts record. |
| Project opens with "Macro missing" warning | Source *.ema was moved or deleted |
Re-download from Siemens CAx or EPLAN Data Portal; place back in %USERPROFILE%\Documents\EPLAN\Data\Macros\. |
| Connection numbers do not auto-generate | Macro placed on a non-navigable page | Verify the page structure is set to "Multi-line" and the macro's connections are reachable (no logical island). |
| Parts list shows wrong MLFB despite correct graphic | Firmware index mismatch | Edit the parts record > Article number > match the firmware suffix exactly from HW Config. |
Alternative Approaches for Special Cases
For TIA Portal V18+ stations: TIA can export a CSV device list under Project tree > Devices & Networks > Export. Combine the CSV with EPLAN's CSV connection import to reduce manual typing for large S7-1500 / ET 200SP stations. Macro sourcing remains identical through the Data Portal.
For PROFINET topologies: The PROFINET device name and IP address are not part of the EPLAN macro. They live in the EPLAN connection-designation layer or in a separate Network topology page, where the MAC address and device name are entered as device-tag properties.
For cabinet design integrations: When the schematic is being laid out in EPLAN Pro Panel or EPLAN Cabinet Engineering, the Siemens-supplied 3D STEP file from CAx can be imported as a placement object. The macro's 3D Mounting tab must reference the same STEP file; otherwise the placement drifts from the schematic by millimeters, causing bolt-pattern mismatches at cabinet build time.
For revision tracking: Add the Siemens CAx macro file checksum (SHA-256) to the EPLAN project documentation under Project > Reports > Project Properties. This lets auditors confirm the schematic is bound to a vendor-supplied macro rather than a manually edited variant.
FAQ
Can I import the STEP 7 *.cfg file directly into EPLAN?
No. The *.cfg file generated by SIMATIC Manager HW Config is a STEP 7 binary format and is not supported by any EPLAN Electric P8 version (2.1 through 2025). Obtain the matching *.ema macro from the Siemens CAx download area or the EPLAN Data Portal and place it manually.
Where do I download Siemens EPLAN macros for free?
The Siemens CAx download area at support.industry.siemens.com provides EPLAN-formatted data per article number. The EPLAN Data Portal (eplan.com/data-portal) is integrated inside EPLAN 2.7 and newer; a registered account is sufficient for standard macro download.
Which EPLAN version do I need for the Siemens macros?
EPLAN 2.7 and newer (including 2022, 2023, 2024, and 2025 releases) supports the *.ema macro archive format used by Siemens and the Data Portal. Older EPLAN 2.1 projects require the legacy *.zw1 macros, which Siemens still publishes for selected modules but does not update.
Why does my EPLAN parts list show a different MLFB than HW Config?
This is usually caused by a firmware-suffix mismatch. Siemens ships multiple macro revisions per module (for example 6ES7 321-1BL00-0AA0 vs 6ES7 321-1BL01-0AA0). Open the parts record in EPLAN and confirm the full MLFB matches the version reported under HW Config > Module Properties > Version.
How do I keep EPLAN schematics in sync with STEP 7 changes?
Re-export the HW Config module list after every STEP 7 revision, diff the MLFB strings against the EPLAN parts list, and re-download the affected *.ema macros from the Data Portal. Update the macro placement only when the MLFB changed; layout-only revisions in STEP 7 do not require EPLAN edits.