Problem Overview: IM318-MS Not Found in S7-300 HW Config
An IM318-MS module with order number 6ES5318-2MM11 cannot be located inside the SIMATIC S7-300 hardware catalog of STEP 7 HW Config. Engineers restoring a project after a lost S7-300 CPU program typically attempt to insert the part into the S7-300 station by browsing the HW catalog tree (SIMATIC 300 > ... ), receive no match, and conclude that the GSD file is missing. The actual root cause is more fundamental: the IM318-MS is a SIMATIC S5 family PROFIBUS DP interface module designed for the ET 200U distributed I/O system, not an S7-300 native catalog object.
This article documents the diagnostic logic that separates a true GSD deficiency from a family-mismatch condition, lists the exact part numbers in the IM318 product tree that are interchangeable for hardware configuration purposes, and provides a working procedure for adding the module through the ET 200U GSD path in HW Config on STEP 7 V5.x.
6ES5318-2MM11 (or a clearly related MLFB). Different suffix codes indicate different mechanical, firmware, or PROFIBUS ASIC revisions. Treating the part number as ambiguous can lead to a configuration that compiles but fails during bus start-up.
Root Cause: S5 vs. S7 Catalog Architecture Mismatch
The STEP 7 HW Config catalog is partitioned by PLC family. The S7-300 catalog tree (SIMATIC 300 > SM-, FM-, CP-, IM- ... ) only contains modules designed for direct insertion into an S7-300 rail. The IM318 family, including the IM318-MS, was developed for the SIMATIC S5 ET 200U distributed I/O station and is therefore registered under the PROFIBUS DP slave catalog path, not under SIMATIC 300.
Three architectural facts drive this separation:
- Form factor: The IM318 family uses the ET 200U mechanical footprint and backplane, not the S7-300 rail.
- PROFIBUS DP slave role: The IM318 is a DP slave that requires a DP master (CPU 315-2 DP, CPU 317-2, CP 342-5, CP 443-5, or a third-party master) to assign parameters. It is not a master-capable interface for the S7-300 station itself.
-
GSD registration scope: Siemens registers IM318 variants in the
Profibus DP > ET200Usubtree because the module is enumerated as a DP-V0 slave device with an ET 200U device identity, not as an S7-300 backplane element.
For official background on the IM 318 family and its product classification, refer to the Siemens Industry Support entry IM 318 - Product Information (ID 4205297). This entry confirms the module's positioning as a PROFIBUS DP interface element rather than an S7-300 slot module.
IM318 Module Family Identification
Multiple suffixes have shipped over the product lifecycle. Engineers restoring older installations must distinguish between them to select the correct GSD entry and to plan a migration if spare parts are no longer available.
| MLFB Order Number | Designation | Functional Role | Configuration Path in HW Config |
|---|---|---|---|
6ES5318-2MM11 |
IM318-MS | ET 200U PROFIBUS DP slave interface (S5 family) | Profibus DP > ET200U |
6ES5318-8MB11 |
IM318B (original) | ET 200U DP slave, replacement target for legacy IM318 | Profibus DP > ET200U |
6ES5318-8MB12 |
IM318B (revision 12) | Updated firmware, drop-in replacement | Profibus DP > ET200U |
6ES5318-8MB13 |
IM318B (revision 13) | Latest IM318B firmware revision | Profibus DP > ET200U |
6ES5318-8MC11 |
IM318C (original) | Enhanced DP-V1 features over IM318B | Profibus DP > ET200U |
6ES5318-8MC12 |
IM318C (revision 12) | Latest IM318C firmware, recommended for new installations | Profibus DP > ET200U |
Key differentiation points:
- The IM318-MS (
2MM11) is the user's specific variant and is the original S5-era interface. It does not carry a separate GSD beyond the ET 200U family GSD. - The IM318B (
8MBxx) series replaced the original IM318 as Siemens rationalized the part numbering and consolidated firmware. Functionally compatible for most DP-V0 use cases. - The IM318C (
8MCxx) series added DP-V1 class-1 and class-2 services, allowing acyclic parameter and diagnostics data exchange in addition to the cyclic I/O of the IM318B.
Locating the IM318 GSD in STEP 7 HW Config
The IM318 does not require an external GSD import when using the catalog tree that ships with STEP 7. The GSD is bundled with the STEP 7 installation. Navigate the catalog as follows:
- Open SIMATIC Manager and load the project (or create a new one matching the CPU on station).
- Double-click Hardware to launch HW Config.
- Open the catalog using View > Catalog (or press Ctrl+K).
- Drill into:
Profibus DP > ET200U - Within
ET200U, select the IM318 entry that matches the physically installed module (IM318, IM318B, or IM318C as listed in the table above).
If the ET200U branch is missing from the catalog, the STEP 7 installation did not include the optional SIMATIC NET / PROFIBUS components. Reinstall with the STEP 7 V5.x + SP package and ensure the PROFIBUS DP Slave Catalog option is selected, or import the GSD manually:
- Download the IM318 GSD from the Siemens Industry Support portal (search entry IM 318 - Product Information (ID 4205297) and follow the linked downloads).
- In HW Config, choose Options > Install GSD File.
- Browse to the downloaded
*.gsdor*.gsgfile and confirm. - Restart HW Config; the module will appear under
Profibus DP > ET200U > IM318.
Step-by-Step Configuration of the IM318 in HW Config
The following procedure applies to STEP 7 V5.4 SP5 / V5.5 and later with the PROFIBUS DP catalog installed. The CPU on the master station must already be configured with a PROFIBUS DP master interface.
Prerequisites
- STEP 7 V5.4 SP5 or later with the PROFIBUS DP slave catalog option installed.
- A configured S7-300 station with a PROFIBUS DP master (e.g., CPU 315-2 DP, CPU 317-2 DP/PN, CPU 319-3 PN/DP) or a configured S7-400 station with a CP 443-5.
- Physical PROFIBUS DP network terminated per IEC 61158 (terminators ON at both ends, OFF in the middle).
- IM318 module MLFB confirmed by physical label.
Procedure
- Open the DP master system. In HW Config, click the PROFIBUS(1) DP master system line (the horizontal cyan bar representing the subnet).
-
Insert the IM318. Drag the IM318 (or IM318B/IM318C if migrating) icon from the catalog (
Profibus DP > ET200U) onto the DP master system line. STEP 7 will prompt for a PROFIBUS address. - Assign the PROFIBUS address. Enter a unique DP address in the range 1 to 125. The address must match the physical address set on the IM318 via the rotary switches on the front of the module. Typical address range: 3 to 32 for plant segments.
- Configure the slot mapping. Right-click the IM318 station symbol and select Object Properties > Configuration. Map the ET 200U I/O slots to the process image of the CPU. For an ET 200U station with 8 slots (typical IM318 + up to 7 I/O modules), the I/O area defaults to 32 bytes input and 32 bytes output.
- Set diagnostic behavior. In the same properties dialog, enable Diagnostic Interrupts and Process Interrupts as required by the application. The IM318 supports both diagnostic and process interrupts on the DP-V0 channel.
- Save and compile. Press Ctrl+S, then choose Station > Save and Compile. Check the Compile Logs window for warnings such as Address area exceeded or Slot configuration mismatch.
- Download to the CPU. With the target CPU online, select PLC > Download to Target. Confirm that the IM318 appears in the online view of the DP slaves.
Common Address Mapping Example
| ET 200U Slot | Module Type (example) | PIW/PQW Range (default) | IB/QB Range (bytewise) |
|---|---|---|---|
| 0 | IM318 interface | Diagnostic only | — |
| 1 | DI 16 x DC 24V (6ES5431-8MA11) | PIW 0 ... PIW 1 | IB 0 ... IB 1 |
| 2 | DO 16 x DC 24V/0.5A (6ES5450-8MB11) | PQW 0 ... PQW 1 | QB 0 ... QB 1 |
| 3 | AI 8 x 13-bit (6ES5460-8MA11) | PIW 2 ... PIW 17 | IB 2 ... IB 17 |
| 4 | AO 4 x 13-bit (6ES5470-8MB11) | PQW 2 ... PQW 9 | QB 2 ... QB 9 |
The exact address ranges depend on the slot configuration selected in the IM318 properties. Always cross-check against the Address Overview tab in HW Config before downloading.
Verification and Commissioning
After downloading, perform the following verification checks before placing the system in production mode:
-
Online DP diagnostics. In HW Config, right-click the IM318 station and select DP Slave Diagnostics. The expected response includes vendor ID
0x0 0 06(Siemens AG) and the module's own PROFIBUS identification. A return of Slave not found indicates a wiring or address conflict. - Module status LEDs. The IM318 front panel has BF (Bus Fault), SF (System Fault), and ON LEDs. BF off, SF off, ON steady indicates normal cyclic operation.
- I/O test pattern. Force a known value into a DO channel and read back via a connected DI or via the variable monitoring table (VAT) in STEP 7. The IM318 must return the expected state within one PROFIBUS cycle (typical 1 ms to 10 ms depending on baud rate and slave count).
- Diagnostic buffer. Open the CPU's online diagnostic buffer (PLC > Diagnostic Buffer) and verify no Station Failure or Diagnostic Interrupt from DP Slave events are recorded for the IM318 address.
| BF | SF | ON | Interpretation | Recommended Action |
|---|---|---|---|---|
| OFF | OFF | ON | Normal cyclic DP-V0 operation | None required |
| ON | OFF | ON | No PROFIBUS communication (wiring, address, or baud rate) | Check DP address, terminating resistors, baud rate consistency |
| OFF | ON | ON | Module detected parameter or configuration error | Compare HW Config slot map against physical module; recompile |
| Flashing | — | — | DP-V0 station not in token ring or duplicate address | Audit all DP addresses on segment |
| OFF | Flashing | ON | Diagnostic interrupt pending, read SFC 13 / SFC 59 | Inspect diagnostic data block |
Diagnostic Interrupts and Error Codes
When the IM318 raises a diagnostic interrupt, the CPU places a diagnostic data block (typically 6 bytes header + module-specific payload) in the diagnostic interrupt OB (OB 82). The following channel-related error codes are commonly reported by the IM318 family on STEP 7 V5.x and TIA Portal equivalents:
| Channel Error Code (hex) | Meaning | Typical Root Cause | Corrective Action |
|---|---|---|---|
0x0001 |
Short circuit on sensor supply | External wiring fault on 24 V load supply | Inspect channel and load group; verify fuse |
0x0002 |
Undervoltage at module | Backplane 5 V or external 24 V out of tolerance | Measure supply, check power supply unit sizing |
0x0003 |
Over-temperature | Ambient temperature > 60 °C or blocked ventilation | Improve cooling, derate, or relocate cabinet |
0x0004 |
Wire break on input | Mechanical break or removed sensor | Replace wiring; if unused, disable channel in HW Config |
0x0005 |
Wire break on output | Load removed or open actuator | Inspect actuator circuit |
0x0006 |
Module parameterization error | STEP 7 slot configuration inconsistent with physical module | Recompile HW Config, re-download |
0x0007 |
External auxiliary voltage missing | 2M terminal not connected | Reconnect load voltage to ET 200U terminal module |
0x0009 |
Internal module fault | Hardware failure of IM318 | Replace module; check for ESD damage history |
For a complete list of channel errors, reference the diagnostic interrupt OB (OB 82) programming guide in the STEP 7 documentation set, and the SFC 59 / SFB 54 / SFB 52 function block descriptions for reading out the diagnostic buffer.
Migration Strategy: From IM318-MS to IM318B / IM318C
When the original IM318-MS hardware is no longer serviceable, plan a structured migration. The IM318B is the form-fit-function successor; the IM318C is the recommended target if the master supports DP-V1.
Pre-Migration Checklist
- Verify DP master firmware supports the replacement module (no master change required for IM318B; IM318C may require master firmware update for DP-V1 class-2).
- Capture the existing HW Config slot map and PROFIBUS address.
- Verify the new module's GSD is registered in the STEP 7 catalog. If absent, import the GSD via Options > Install GSD File and restart HW Config.
- Replace the module on the ET 200U backplane; set the same PROFIBUS address via the rotary switches.
- Update the HW Config entry to point to the new MLFB and recompile.
- Re-download to the CPU and repeat the verification steps in the section above.
Firmware and Compatibility Matrix
| Migration Path | From MLFB | To MLFB | Firmware Equivalent | DP Services |
|---|---|---|---|---|
| IM318-MS > IM318B-11 | 6ES5318-2MM11 | 6ES5318-8MB11 | Direct replacement | DP-V0 |
| IM318-MS > IM318B-12 | 6ES5318-2MM11 | 6ES5318-8MB12 | Updated ASIC, drop-in | DP-V0 |
| IM318-MS > IM318B-13 | 6ES5318-2MM11 | 6ES5318-8MB13 | Latest B-series firmware | DP-V0 |
| IM318-MS > IM318C-11 | 6ES5318-2MM11 | 6ES5318-8MC11 | DP-V1 capable | DP-V0 + V1 |
| IM318-MS > IM318C-12 | 6ES5318-2MM11 | 6ES5318-8MC12 | Latest C-series firmware | DP-V0 + V1 |
Troubleshooting Matrix
| Symptom | Most Likely Cause | Diagnostic Step | Resolution |
|---|---|---|---|
| IM318 not visible in HW Config catalog | Family-mismatch: looking under SIMATIC 300 | Check catalog path | Browse Profibus DP > ET200U instead |
| Compile error: GSD not registered | STEP 7 install missing PROFIBUS DP slave catalog | Reinstall with PROFIBUS option or import GSD | Options > Install GSD File, restart HW Config |
| BF LED on after download | DP address mismatch with HW Config | Verify rotary switch on module | Set physical address to match HW Config entry |
| SF LED on, BF off | Slot configuration mismatch | Compare physical modules with HW Config | Adjust slot mapping, recompile, redownload |
| Intermittent BF during operation | EMC, cable damage, or terminator issue | Inspect PROFIBUS cable, measure reflections | Replace damaged segments, verify 220 Ω terminators at both ends |
| Slave appears offline after firmware update of master CPU | Master firmware bug or new DP startup behavior | Check master CPU diagnostic buffer | Update master CPU firmware or revert |
| Diagnostic interrupt not reaching OB 82 | OB 82 not loaded or interrupt disabled in slot config | Check OB 82 presence and slot properties | Load OB 82, enable Diagnostic Interrupts in slot properties |
Notes on Long-Term Service and Documentation
The IM318 family is part of the SIMATIC S5 product line, which Siemens formally discontinued for new sales and migration assistance. The IM318-MS itself, identified by MLFB 6ES5318-2MM11, is generally available only as a service spare, and most plant operators have transitioned to IM318B-13 or IM318C-12. When a full migration is required, review the product information page on Siemens Industry Support at IM 318 - Product Information (ID 4205297) for the latest firmware bundles and for any official migration utilities that have been published for the S5-to-S7 transition path.
Why is the IM318-MS not listed in the S7-300 HW Config catalog?
The IM318-MS (6ES5318-2MM11) is a SIMATIC S5 ET 200U PROFIBUS DP slave interface, not an S7-300 slot module. It is registered in HW Config under Profibus DP > ET200U, not under SIMATIC 300. A separate GSD import is not required if STEP 7 was installed with the PROFIBUS DP slave catalog option.
Where can I download the GSD file for an IM318 family module?
The GSD is bundled with STEP 7 V5.x when the PROFIBUS DP slave catalog option is selected during installation. For newer modules or to update firmware metadata, obtain the GSD from the Siemens Industry Support entry IM 318 - Product Information (ID 4205297) and import via Options > Install GSD File in HW Config.
What is the direct replacement for the IM318-MS?
The form-fit-function replacement is the IM318B series (6ES5318-8MB12 or 6ES5318-8MB13 for the latest revision). If the DP master supports DP-V1, specify the IM318C series (6ES5318-8MC11 or 6ES5318-8MC12) for enhanced acyclic diagnostics support.
Can an IM318 be used as a DP master for the S7-300 CPU?
No. The IM318 family operates strictly as a PROFIBUS DP slave (DP-V0 for the original and IM318B; DP-V0 plus DP-V1 for the IM318C). The S7-300 CPU must carry a DP master interface such as CPU 315-2 DP, CPU 317-2, or be paired with a CP 342-5 / CP 443-5 to communicate with the IM318 station.
What STEP 7 version supports the IM318 in HW Config?
STEP 7 V5.4 SP5 and STEP 7 V5.5 ship with the ET 200U catalog that contains the IM318, IM318B, and IM318C entries. Earlier STEP 7 V5.x service packs also include the catalog but should be updated to the latest SP to ensure the firmware metadata matches the installed hardware revision.