Problem Overview
A PROFIBUS PA segment driven by a Siemens S7-400 CPU, terminated through an IM 157 DP-LINK and a Siemens DP/PA Coupler, is hosting two Micro Motion (Emerson) 2400 series Coriolis flow transmitters. With SIMATIC PDM V5.2 the field devices can be opened, the process variables (mass flow, density, temperature) are visible through the acyclic service channel, and online diagnostics return clean values. However, the measured variables are not being written into the Analog Input (AI) words of the S7-400 process image. The tag stays at 0 / 7FFFh / quality BAD, even though PDM and the device both report healthy operation.
This is a classic cyclic-vs-acyclic configuration mismatch in PROFIBUS PA: PDM talks to the device through the acyclic DPV1 services (read/write Slot/Index), while the PLC reads cyclic I/O through the PROFIBUS DP layer via the DP/PA Coupler. The two paths share the same physical bus but they do not share configuration. A successful PDM handshake therefore does not prove that the cyclic AI is mapped correctly. The root cause almost always lies in HW Config (Step 7), the GSD file, or the slot/index assignment inside the Micro Motion device.
System Architecture and Reference Topology
The end-to-end segment consists of four logical layers. Understanding them is essential before any diagnostic step is taken.
- Controller layer: S7-400 CPU (typical: CPU 414-3 PN/DP, CPU 416-3 DP, or CPU 417-4). The PROFIBUS DP master interface is normally the integrated DP port or a CP 443-5 Extended.
- DP/PA gateway layer: DP/PA Coupler (Siemens 6GK1 572-0AA00-0AC0 or successor 6GK1 572-1AA00-0AC0) translates the RS-485 DP side at 45.45 kbit/s to the IEC 61158-2 PA side at 31.25 kbit/s. Two operating modes are available: non-coupler (transparent DP/PA) and coupler (DP/PA with up to 30 PA slaves, maximum segment length 1900 m).
- DP-LINK layer: IM 157 (6ES7 157-0AA82-0XA0 for DP, 6ES7 157-0AA83-0XA0 for PA direct, or 6ES7 157-1AA00-0XA0 DP/PA Link). The IM 157 is configured as a DP slave in HW Config and acts as a PROFIBUS PA master on the PA segment. It supports up to 32 PA slaves when used as a Link.
- Field layer: Two Micro Motion 2400 transmitters, configured for PROFIBUS PA communication (PA profile 3.0 or 3.01). Each occupies one PA address.
Hardware Components and Catalog References
| Component | Typical Part Number | Role | Firmware / Profile |
|---|---|---|---|
| S7-400 CPU | 6ES7416-3ES06-0AB0 | DP Master | Firmware V6.x or later |
| CP 443-5 Extended | 6GK7443-5DX05-0XE0 | DP Master (alt.) | Firmware V6.x |
| IM 157 DP-LINK | 6ES7157-0AA82-0XA0 | DP Slave + PA Master | Firmware V3.x |
| DP/PA Coupler | 6GK1572-0AA00-0AC0 | Physical media converter | Non-coupler / coupler mode |
| Micro Motion 2400S | 2400S-PA / 2400S-DP | PA Slave (Coriolis) | Profile 3.0 / 3.01, NE 107 |
| SIMATIC PDM | 6ES7658-0XX06-0YA5 (V6.x); legacy V5.2 supported | FDT/DTM commissioning | EDD V1.x or DeviceDTM V2.x |
The Micro Motion 2400S PA variant supports profile version B (PROFIBUS PA Profile 3.0) and profile version B+ (Profile 3.01). Confirm the printed board version before loading the matching GSD. The legacy Micro Motion 2400 (pre-2400S) shipped as a DP-only device; if a 2400 is being used on PA, an IFM (Interface Module) upgrade is normally required.
Symptom Detail and Quality Byte Analysis
When the cyclic AI does not update in the S7 program, monitor the following in the S7 online view (VAT or DB):
- Input word shows
16#0000-> no cyclic communication at all (DP/PA link down, slave missing, address conflict). - Input word shows
16#7FFF-> cyclic communication active but value is out of range; typically a transducer block error mapped into the AI. - Input word shows
16#7FFEor16#7FFD-> quality code indicating uncertain or bad; the device is on the bus but the transducer is not ready. - Input word shows a constant value -> configuration is mapped but not refreshing; check DP update time and acyclic write paths.
The PROFIBUS quality byte is the most informative diagnostic. According to IEC 61158-6 / PROFIBUS PA Profile, the status of a process variable follows the NE 107 mapping implemented in the device. A 0x00 quality byte means good; 0x40 means good - local override; 0x80..0xBF means uncertain; 0xC0..0xFF means bad. If the S7 input shows a non-zero status but the value never changes, the issue is configuration-side, not transducer-side.
Root Cause Analysis
Eight root causes account for the majority of "PDM sees it, PLC does not" cases. Each must be ruled out methodically.
1. Wrong GSD file (PA profile version mismatch)
If the GSD file in HW Config is older than the EDD installed in PDM, or vice-versa, the cyclic I/O layout can be empty even though the device appears online. Micro Motion 2400S with Profile 3.01 must use a GSD with ident 0x9700 (or compatible profile B+) - never an old profile 3.0 GSD with ident 0x0601. The version can be read with SIMATIC PDM: Device -> Properties -> Profile.
2. IM 157 not inserted as DP/PA Link
In HW Config, the IM 157 must be inserted as a DP slave and its PA interface must be configured as a PROFIBUS PA master network. Many engineers drop PA slaves onto the DP network by mistake. The correct path is: Insert -> DP Slave -> IM 157 -> PA Master interface -> Insert PA Slave. Without the PA master network in HW Config, the IM 157 will not poll the PA slaves, and PDM still sees them because it tunnels acyclic through the same master.
3. Slot/Index mismatch inside the Micro Motion 2400S
The 2400S exposes Transducer Block (TB), Function Block (FB), and Analog Input (AI) blocks. By default the AI block outputs Mass Flow in SI units (kg/s or kg/h). However, the cyclic slot assignment of the Micro Motion GSD may map the first AI word to Density or Temperature instead of Mass Flow. If the HMI/PLC code reads AI0 expecting kg/s and the GSD maps Density (kg/m³), the value appears numerically wrong even though communication is healthy.
4. Duplicate PA addresses
Two Micro Motion devices on the same segment with the same address are both online from PDM's perspective (PDM will hit whichever responds first), but from the cyclic master side the bus is unstable. Use a Siemens BT 200 or any IEC 61158-2 commissioning tool to verify each address is unique. With two 2400 transmitters the typical addresses are 3 and 4, with the DP/PA Coupler at 1 (when in non-coupler mode it is transparent and does not occupy an address).
5. SIMATIC PDM communication path bypassing the controller
PDM can attach to the bus either through the same DP/PA Coupler (using a CP 5611 / CP 5613 / CP 5711 on the PC) or through a direct Ethernet route via the S7-400's PN interface and the routing table in PDM. If PDM is attached directly to the PA side, it can see devices even when the IM 157 is misconfigured or down. Confirm PDM route: SIMATIC PDM -> Options -> Communication Settings -> Route. Choose "S7 Ethernet -> S7-400 -> DP -> IM 157 -> PA", not "Direct to PA segment".
6. Micro Motion 2400S in simulation mode
The 2400S supports an AI simulation switch (NE 107 simulation bit). When the simulation switch is active, the AI reports the simulated value but the quality byte carries the SimulationActive bit. Some HMI tags reject this. Disable simulation via PDM: AI Block -> Simulation -> Disabled.
7. Condensed Status vs Classic Status in PA Profile 3.01
Profile 3.01 introduced Condensed Status with a different status byte mapping. If the GSD is 3.0 and the device is 3.01, the status byte is mis-interpreted by the S7 driver. Force both to the same profile level.
8. DP/PA Coupler in wrong operating mode
The Siemens DP/PA Coupler has a 4-position DIL switch. Position "Coupler" enables up to 30 PA slaves; position "Non-Coupler" enables up to 32 PA slaves but with stricter timing. Position "Coupler" is the default for S7-400 segments with IM 157. If the switch is set to position "Off" the segment is silent.
Diagnostic Procedure (Step-by-Step)
- Capture the HW Config screen. Export the S7 project to a PDF: Station -> Print -> Module List. Verify IM 157 is present, its PA master network is defined, and both Micro Motion 2400S are inserted on the PA side (not DP). Compare the configured PA address against the address set on the device (rotary switches or display).
- Read live DP diagnostics. In Step 7, right-click the DP master -> Operating Mode. The DP slave list must show IM 157 in OK state. If IM 157 is Fault, no PA traffic is reaching the devices regardless of PDM.
-
Check the IM 157 PA master diagnostics. Open the IM 157 in HW Config -> Object Properties -> Diagnostics. The "PA Slaves" tab lists each configured slave with a status byte. Status
0x00= healthy,0x11= no response,0x14= address conflict,0x18= configuration mismatch. -
Compare EDD vs GSD profile version. In PDM open the device -> Device -> Properties -> Profile. Compare with the GSD in Step 7: Options -> Install GSD -> open the GSD text and read
GSD_Revision =. They must match exactly. -
Inspect Slot/Index of the AI. In PDM open AI Block -> Parameter tab. Verify
SlotandIndexmatch the HW Config slot where the AI word is mapped. For Micro Motion 2400S Profile 3.0, AI1 = Slot 1 / Index 26 (default mass flow). For 3.01, the slot may differ. - Force a write to the AI in PDM. Right-click the AI block -> Online -> Write. Enter a known value (e.g., 100.0 kg/h). Monitor the S7 input word. If it does not appear, the cyclic path is broken. If it does appear for a moment and reverts, the AI block is in Out of Service (OOS) or auto mode conflict.
- Reset the Micro Motion device. PDM -> Device -> Reset -> Warm Start. The 2400S reboots in ~5 s and re-initializes the AI block. If the AI now writes, the issue was a stale acyclic write left over from a prior configuration session.
- Capture a bus trace. If the issue persists, attach a PROFIBUS tracer (Siemens BT 200, Softing PROFIusb, or P×ez) on the PA segment. Filter for cyclic Read/Response telegrams. Missing responses confirm a physical or addressing issue; corrupted responses indicate EMI or termination problems (verify the fieldbus terminator is present at both ends of the segment, 100 Ω + 1 µF).
Configuration Solution
Apply the corrections in this order. The IM 157 must be healthy before the PA slaves can be commissioned.
Step A - Rebuild the PA master network in HW Config
- Open the S7 project in Step 7.
- Delete any PA slaves that were incorrectly inserted on the DP side.
- Right-click the IM 157 -> Insert PROFIBUS PA System.
- Drag the Micro Motion 2400S GSD into the PA segment at addresses 3 and 4.
- Save and compile. Download HW Config to the S7-400.
Step B - Align EDD, GSD, and firmware
- Install the latest Micro Motion EDD for the 2400S (Profile 3.0 or 3.01 as printed on the device label).
- Install the matching GSD file: Start -> SIMATIC -> Options -> Install GSD.
- Reboot PDM, re-discover devices.
Step C - Configure the AI block
In PDM open the Micro Motion 2400S, navigate to AI Block, and verify:
- Mode: Auto, not Out of Service (OOS).
- Channel: Mass Flow (unit kg/s or kg/h, depending on user preference).
- Simulation: Disabled.
- Status Handling: Condensed Status (Profile 3.01) or Classic Status (Profile 3.0).
Download to device. The AI block will now publish the selected variable in the cyclic slot.
Step D - Map the input word in the S7 program
In the S7-400 program, read the input word from the I/O area assigned by HW Config. Typical address pattern for IM 157 with two PA slaves and one AI each:
// S7-400 ST - sample read
// Slave 1 (PA address 3) AI: IW 512
// Slave 2 (PA address 4) AI: IW 514
L IW 512 // Mass Flow slave 1 (REAL upper 4 bytes)
T MD 100 // store in Merker double word
L IW 514 // Mass Flow slave 2
T MD 104
If the input words stay at 0, return to HW Config and verify the AI module is checked in the device slot. Some GSD variants leave the AI disabled by default.
Common AI Word Mapping for Micro Motion 2400S
| Slot | Function Block | Variable | Default Unit | Notes |
|---|---|---|---|---|
| 1 | AI1 | Mass Flow | kg/s | Configurable to kg/h, lb/h, t/h |
| 2 | AI2 | Density | kg/m³ | Often unused; can be re-routed |
| 3 | AI3 | Temperature | °C | Sensor temperature |
| 4 | AI4 | Volume Flow | m³/s | Derived from mass flow & density |
| 5 | TOT | Totalizer | kg | Often read via Totalizer block, not AI |
Verification Procedure
-
Online cyclic check. In Step 7 -> Monitor/Modify, watch the AI word. With process flow active, the value must change at the configured DP update interval (typical: 100 ms for a 5-device segment). A frozen value at
16#0000indicates the DP/PA Link is still failing. -
NE 107 status check. Read the quality byte in the S7 input. It must show
16#80(Good, Non-Cascade, Non-Limited) under normal flow conditions. - Simulation test. In PDM, activate AI simulation at 50% of the calibrated range. Confirm the S7 input follows. If yes, the path is fully working. Disable simulation afterward.
- Long-term stability. Leave the segment running for at least 30 minutes. PA segments with marginal termination or noise can run for several minutes before the IM 157 reports a fault.
- Document the final HW Config. Export the S7 HW Config to PDF and archive it next to the project. This is the single most valuable record for future maintenance.
Troubleshooting Matrix
| Observed Symptom | Most Likely Cause | First Verification |
|---|---|---|
| PDM sees devices, AI = 0 | IM 157 PA master network missing in HW Config | Check DP slave list in Step 7 |
| AI = 7FFF, PDM healthy | Transducer block error or AI in OOS | Read AI block Mode in PDM |
| AI = constant nonzero | Slot maps wrong variable (Density vs Mass Flow) | Verify unit string in HMI |
| AI reads only after warm restart | Stale acyclic write blocking cyclic | Warm restart via PDM |
| AI reads only on one of two slaves | Duplicate address or faulty slave | Swap PA addresses, retest |
| AI reads but quality is BAD | Condensed vs Classic Status mismatch | Verify profile version on label |
| IM 157 not seen by S7 | Wrong IM 157 type inserted (DP-only vs Link) | Catalog number must end -0AA82 / -0AA83 / -1AA00 |
| PA segment silent | DP/PA Coupler DIL switch in Off | Set switch to "Coupler" |
Edge Cases and Field-Proven Caveats
- Too many devices on the segment: A 31.25 kbit/s PA segment with two Micro Motion 2400S and an IM 157 must still respect the maximum of 32 PA addresses and the 9.6 V minimum bus voltage at the last device. Long spurs degrade the signal; keep the trunk straight and use stubs < 30 m.
- DP/PA Coupler powering from PROFIBUS: The 6GK1 572-0AA00-0AC0 couples but does not supply power to the PA devices. Each Micro Motion 2400S must be powered from the bus or have its own segment protector. Verify voltage at each device: 9 to 32 V DC on PA.
- Stale EDD cache in PDM V5.2: PDM V5.2 is end-of-life. The EDD catalog can become inconsistent after multiple installs. Run Start -> SIMATIC -> PDM -> Manage Device Library -> Rebuild before any serious debugging.
- S7-400 CPU in RUN with PA slaves in OOS: Some commissioning engineers force the AI block to OOS during startup to keep values at the last good reading. The PDM view will still be "online" but the cyclic AI returns BAD. Set the AI block back to Auto before plant startup.
- Micro Motion 2400 vs 2400S: The original 2400 (no "S") is a profile 2.0 device and may not respond to the AI block request from a profile 3.x master. Confirm the model number printed on the device front panel ends with "S" or consult the device type plate before commissioning.
- Slot numbering vs GSD ident: If two GSD files for the same model family are installed (Profile 3.0 and 3.01), Step 7 may pick the wrong one. Uninstall the obsolete GSD to force a clean configuration.
Standards and Reference Documents
- IEC 61158-6 / IEC 61784 - PROFIBUS PA protocol and profile.
- PROFIBUS PA Profile 3.0 and 3.01 - Function block definitions, status mapping.
- NE 107 - Status and diagnostic categories for field devices.
- Siemens manual SIMATIC IM 157 / DP/PA Link (A5E00217740-01 or successor).
- Siemens manual DP/PA Coupler 6GK1 572 (A5E00141684-02 or successor).
- Emerson / Micro Motion 2400S PROFIBUS PA Device Manual (MMI-20014590).
Why can SIMATIC PDM see the Micro Motion 2400S but the S7-400 AI does not update?
PDM communicates acyclic (DPV1 read/write) while the S7 reads the cyclic AI word. PDM can attach directly to the PA segment through a CP 5611 / CP 5711 and therefore succeed even when the IM 157 PA master network is missing in HW Config. Check that the IM 157 is configured as a DP/PA Link and that the Micro Motion GSD is inserted on the PA side, not the DP side.
Which GSD file is correct for the Micro Motion 2400S on PROFIBUS PA?
Use the GSD file whose GSD_Revision matches the profile printed on the device label. Profile 3.0 uses a legacy GSD; Profile 3.01 (Condensed Status) uses a newer one. Installing both versions in Step 7 can cause Step 7 to pick the wrong one - uninstall the obsolete GSD.
The AI input word stays at 16#0000 in the S7 - what is the first thing to verify?
Verify that the IM 157 is in OK state in the Step 7 DP slave list. If the IM 157 is not in OK, no PA traffic is generated. If the IM 157 is OK but the AI is still 0, open the IM 157 object properties and check the "PA Slaves" tab for status codes such as 0x11 (no response), 0x14 (address conflict), or 0x18 (configuration mismatch).
What is the default cyclic mapping of the Micro Motion 2400S AI1?
AI1 is Mass Flow by default in SI units (kg/s). The S7 program should read the AI word assigned to the device slot. If the value looks numerically wrong (e.g., ~1000 instead of a flow rate), the slot is probably mapping Density (kg/m³) instead of Mass Flow. Reconfigure AI block Channel via PDM.
How do I confirm that the DP/PA Coupler is correctly set?
The 6GK1 572-0AA00-0AC0 has a 4-position DIL switch. Position "Coupler" enables a fully-functional PA segment. Position "Non-Coupler" is for transparent segments up to 32 slaves. Position "Off" disables the segment. Set the switch to "Coupler" unless the IM 157 is configured as the only PA master on the segment, in which case "Non-Coupler" is acceptable.