Reading .pb5 Files from Siemens IM 308-3UC1 5V FLASH 256

David Krause15 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

The Siemens IM 308-3UC1 is a PROFIBUS DP master interface module for the SIMATIC S5 PLC family, including the S5-95U and the wider ET 200 distributed I/O architecture. The module stores its complete master configuration on a removable 5V FLASH 256 memory card, with the project archived as a single .pb5 file. Reading the .pb5 file out of the module is a routine engineering task required for backup, project replication, controller replacement, and migration of an existing PROFIBUS master configuration into a newer S7-based system.

Two proven methods exist for extracting a .pb5 file from an IM 308-3UC1 installation:

  1. Upload the file from the IM 308-C's PROFIBUS port using COM PROFIBUS software and a PROFIBUS CP or Siemens PG.
  2. Read the EPROM/FLASH directly with a Siemens PG or an external EPROM/FLASH reader after removing the card from the module.

Both methods require COM PROFIBUS, the Siemens configuration tool that defines DP masters, slaves, and bus timing, and that stores the project as a .pb5 file. COM PROFIBUS is not available as a free download and must be obtained through your nearest Siemens representative. The official Siemens Industry Online Support portal provides current ordering and licensing details for COM PROFIBUS and for the ET 200 Distributed I/O System with IM 308-C and S5-95U manual.

Engineering note: COM PROFIBUS is the only officially supported tool that can read and interpret the .pb5 file format generated by the IM 308-C. The .pb5 file is a binary PROFIBUS configuration database that includes master parameters, slave GSD references, bus timing, and slot assignments for the DP network. Generic PROFIBUS tools will not decode the file.

Prerequisites

Before attempting either read-out method, confirm the following hardware and software items are available:

Item Specification / Notes
IM 308-3UC1 module Siemens PROFIBUS DP master interface for S5 systems; 6ES5 308-3UC1 family
Memory card 5V FLASH 256 - 256 Kbit 5 V FLASH card populated in the IM 308-C card slot
Configuration software COM PROFIBUS (licensed version appropriate to the IM 308-C firmware)
PC PROFIBUS interface Siemens CP 5611, CP 5613, CP 5512, or a SIMATIC Field PG with built-in PROFIBUS/MPI
Cable option A PROFIBUS DP cable (twisted pair, violet sheath) with two PROFIBUS D-sub 9-pin connectors
Cable option B Siemens MPI/DP cable, MLFB 6ES7 972-0CB20-0XA0
Reference documentation ET 200 Distributed I/O System with IM 308-C and S5-95U manual

For Method 2 (direct EPROM read), you also need either a Siemens PG with EPROM/FLASH programmer support, or a third-party EPROM/FLASH programmer capable of reading 5 V parallel FLASH devices. Verify the device ID of the FLASH on the card before selecting a programmer algorithm; mismatched algorithms will return all-0xFF or garbled data even when the card is healthy.

Understanding the 5V FLASH 256 Memory Card

The 5V FLASH 256 card is a 256 Kbit battery-free FLASH memory module that plugs into the IM 308-3UC1's front card slot. The card stores the COM PROFIBUS project as a single .pb5 file, which the IM 308-C reads on power-up to load its master configuration, slave list, bus parameters, and diagnostic addresses.

Key electrical and operational characteristics of the 5V FLASH 256 card:

  • Logic level: 5 V only. The card slot of the IM 308-C is hard-wired for 5 V operation.
  • Capacity: 256 Kbit (32 Kbyte). Sufficient for typical DP master configurations with up to 122 slave slots.
  • Non-volatile: Data is retained without a battery. Programming and erase are controlled by the IM 308-C firmware.
  • Removable: The card can be pulled from the module for offline read-out or duplication.
Warning: Do not install a 3.3 V FLASH card into the IM 308-C. The card slot is hard-wired for 5 V operation, and a 3.3 V card may be misread, destroyed, or cause bus errors on power-up. Verify the card label reads "5V FLASH 256" before insertion.

Removing the card does not erase its contents. The IM 308-C retains the project in non-volatile FLASH until it is explicitly reprogrammed through COM PROFIBUS. A cold start of the S5 PLC with the card removed will leave the IM 308-C without a master configuration; the module will not join the DP segment and will report a configuration fault on its status LEDs.

The .pb5 File Format

The .pb5 extension is the standard COM PROFIBUS project file. The file is a binary database that contains:

  • DP master parameters (PROFIBUS address, baud rate, slot time, quiet time, TSDR, GAP factor, retry count)
  • Slave list (PROFIBUS addresses, GSD references, I/O slot mapping, diagnostic slots)
  • Bus timing and diagnostic configuration
  • User comments and project metadata

The same .pb5 file is consumed by the IM 308-C at boot and by COM PROFIBUS for offline editing. A backup .pb5 file can be loaded onto a fresh 5V FLASH 256 card to clone a working master configuration, or imported into COM PROFIBUS for offline analysis and modification. The .pb5 file is the canonical exchange format for S5-era DP master projects and is the only file type that the IM 308-C card slot will accept for programming.

Cable Selection and PROFIBUS Interface Options

Either a standard PROFIBUS cable with two D-sub 9-pin connectors, or an MPI/DP cable such as the 6ES7 972-0CB20-0XA0, can be used to connect the host PC to the IM 308-C PROFIBUS port. The following table compares the two cable approaches:

Cable MLFB Bus Termination Notes
PROFIBUS DP cable (violet) with two 9-pin D-sub connectors 6XV1 830-0AH10 (typical) Requires bus terminator at one end if PC is end-of-segment Preferred for lab bench read-out; allows connection to a live DP network
MPI/DP cable 6ES7 972-0CB20-0XA0 Built-in terminating resistors in most variants Convenient for direct PC-to-IM 308-C point-to-point backup link

For a point-to-point backup, an MPI/DP cable 6ES7 972-0CB20-0XA0 between the PC's CP and the IM 308-C's PROFIBUS port is typically the simplest arrangement, particularly when the IM 308-C is not connected to a live DP segment. A standard MPI cable generally also works for the upload, as the IM 308-C supports MPI-mode addressing for the configuration read.

Field tip: When connecting the PC directly to the IM 308-C in a point-to-point arrangement, enable terminating resistors in the PC CP and at the IM 308-C end only, and leave the bus terminator OFF at the IM 308-C's far PROFIBUS connector if the network remains connected downstream. Two terminators on a live segment will distort the signal and cause diagnostic errors.

Method 1: Upload .pb5 via the IM 308-C PROFIBUS Port

This method is the preferred approach when the IM 308-C is installed in a working system, because it does not require removing the memory card and it can be performed while the S5 PLC is in RUN (with the project live on the bus).

Step 1 - Install COM PROFIBUS on the engineering PC

  1. Obtain a licensed copy of COM PROFIBUS from your Siemens representative or through the Siemens Industry Online Support portal.
  2. Install the package, including the CP 5611/CP 5613/CP 5512 device driver.
  3. Confirm the CP is recognised in the Windows Device Manager and in the COM PROFIBUS "Set PG/PC Interface" dialog.
  4. Verify the CP firmware is at a level supported by your COM PROFIBUS release; older CP firmware may not enumerate correctly under newer COM PROFIBUS versions.

Step 2 - Connect the PC to the IM 308-C

  1. Connect the PROFIBUS cable from the PC's CP to the IM 308-C's PROFIBUS port.
  2. If connecting to a live DP network, observe the segment topology and bus terminator rules.
  3. If connecting point-to-point, enable bus terminators at both ends and verify the IM 308-C's PROFIBUS address (default is typically 1, but verify on the module's DIP switch).

Step 3 - Open COM PROFIBUS and select the upload path

  1. Launch COM PROFIBUS.
  2. From the menu, choose File > Upload from DP master / IM 308-C (exact wording varies by COM PROFIBUS version).
  3. Select the PC PROFIBUS CP and the IM 308-C's PROFIBUS address (default 1, but verify on the module's DIP switch).
  4. Set the upload baud rate to match the IM 308-C; the COM PROFIBUS upload routine will normally auto-detect, but on marginal links you may need to lock the baud rate manually.

Step 4 - Read the .pb5 file from the FLASH card

  1. COM PROFIBUS reads the configuration from the IM 308-C's 5V FLASH 256 card over the PROFIBUS link.
  2. Save the resulting project as a new .pb5 file on the engineering PC (for example, IM308C_backup_YYYYMMDD.pb5).
  3. Note the file size, baud rate, master address, and COM PROFIBUS version in a project log for traceability.
  4. Store the .pb5 file in a versioned project archive - never overwrite the only known-good copy.
Note: The upload reads the in-memory image of the project loaded by the IM 308-C. If the FLASH card and the loaded configuration have diverged (for example, after an in-RAM edit that was not committed to FLASH), the uploaded file will reflect the loaded image, not the on-card image. Use Method 2 if you need the exact card contents.

Method 2: Read the FLASH/EPROM Card Directly

This method is used when the IM 308-C is not reachable over PROFIBUS, when the upload fails, or when an exact byte-level image of the card is required for forensic or cloning purposes.

Step 1 - Power down the S5 rack

  1. Bring the S5 PLC to a safe state per site procedure (typically STOP with all controlled outputs in a known-safe state).
  2. Remove power from the rack.
  3. Wait for the IM 308-C's status LEDs to extinguish before removing the card.
  4. Document the card slot position and orientation - the 5V FLASH 256 card is keyed, but the keyed notch must be aligned for re-insertion.

Step 2 - Remove the 5V FLASH 256 card

  1. Open the card slot cover on the IM 308-3UC1 front panel.
  2. Pull the 5V FLASH 256 card straight out of the slot using the ejector tab; do not rock the card, as the edge connector pins can bend.
  3. Place the card in an anti-static holder.

Step 3 - Read the card with a Siemens PG or external programmer

  1. Insert the card into a Siemens PG that supports the IM 308-C card type, OR insert it into an external EPROM/FLASH programmer socket.
  2. Use the PG's EPROM/FLASH driver or the external programmer software to read the full device into a binary image.
  3. Save the binary image. Note that this raw image is not a .pb5 file; it is a flat binary dump of the FLASH contents including header, .pb5 payload, and any trailing pad bytes.
  4. Record the FLASH device ID and the programmer algorithm used in the project log.

Step 4 - Convert the binary dump to .pb5 (if required)

  1. Open COM PROFIBUS.
  2. From the menu, choose File > Import from EPROM/FLASH image (or equivalent "import binary" command; exact wording varies by version).
  3. Point COM PROFIBUS at the saved binary dump.
  4. Save the imported configuration as a new .pb5 file.
Field tip: Some engineers retain the raw binary dump in addition to the .pb5 file. The binary dump is the only authoritative copy of the card contents; the .pb5 file is the COM PROFIBUS representation and may apply rounding, defaults, or version-specific interpretation. Store both copies in the project archive under a date-stamped folder.

Verification

After either method, verify the extracted configuration is usable:

  1. Open the saved .pb5 file in COM PROFIBUS.
  2. Confirm the master PROFIBUS address, baud rate, and slave list match the live system.
  3. Check the file size against a known-good backup; a corrupted or truncated upload will typically be smaller than expected.
  4. Verify that the GSD file references in the .pb5 match the GSD versions installed under COM PROFIBUS - a missing GSD will cause slave entries to be displayed as "unknown device".
  5. Optionally, load the .pb5 file onto a spare 5V FLASH 256 card and install it in a bench IM 308-C; the module should boot with the same master address and pass its self-test.
  6. Compare the offline master parameters in COM PROFIBUS against the live bus diagnostics (PROFIBUS tracer or BT 200) if the IM 308-C is still on a live network.
  7. Confirm the .pb5 file opens cleanly in COM PROFIBUS with no parse warnings in the message log.

Troubleshooting Matrix

Symptom Likely Cause Action
COM PROFIBUS does not see the IM 308-C Wrong CP selected in "Set PG/PC Interface" Re-select the correct PROFIBUS CP and retry
Upload returns timeout Bus terminator missing in point-to-point link Enable terminators at both ends
Upload returns timeout Master PROFIBUS address mismatch Verify the IM 308-C DIP switch against the upload dialog
Upload returns timeout Another PROFIBUS master is on the segment Disconnect the IM 308-C from the live network and retry point-to-point
Upload returns timeout Baud rate auto-detect failed on a marginal cable Lock the upload baud rate manually in COM PROFIBUS
Uploaded .pb5 has missing slaves Slaves powered down or failed during upload Power all slaves, wait for cyclic exchange, retry upload
External EPROM read returns all 0xFF Wrong device algorithm selected in programmer Identify the FLASH device ID and select the matching algorithm
External EPROM read returns garbled data Card contact contamination Clean card contacts with isopropyl alcohol, reseat in the programmer
COM PROFIBUS rejects the imported binary Binary dump from a different card type (for example, 3.3 V card) Confirm the card label reads 5V FLASH 256; re-read with the correct algorithm
IM 308-C will not boot with cloned card Card write incomplete or wrong card type Re-program the card with COM PROFIBUS, verify the write log, confirm card type
COM PROFIBUS reports "unknown device" for a slave GSD file mismatch between project and installed GSD library Install the matching GSD and re-import the .pb5

Best-Practice Notes

  • Always perform a read-out immediately after any change to the IM 308-C configuration, and store the .pb5 file under a date-stamped name. Do not overwrite the previous good copy until the new file has been opened and verified in COM PROFIBUS.
  • Keep a binary dump (Method 2) of the 5V FLASH 256 card in addition to the .pb5 export. The .pb5 file is a COM PROFIBUS representation; the binary dump is the only authoritative image of the card.
  • When cloning a master to a new card, program the new card with COM PROFIBUS rather than copying the binary dump directly. A direct binary copy can carry over card-specific serialisation or write-protect state that prevents the new card from booting.
  • If the IM 308-C is on a live DP network, do not change the master PROFIBUS address or baud rate from the IM 308-C side while the upload is in progress. Doing so will drop the upload and may disrupt the running slaves.
  • Document the COM PROFIBUS version, CP type, CP firmware, and the IM 308-C firmware/hardware release (for example, 6ES5 308-3UC1) alongside every backup. This is essential when restoring a project years later against newer COM PROFIBUS releases.

Related Configuration Workflow

Once the .pb5 file is read out, it can be opened in COM PROFIBUS for the typical follow-on engineering tasks:

  • Slave replacement: substitute a newer slave by mapping its GSD into the existing slot, then re-program the 5V FLASH 256 card and reload the IM 308-C.
  • Migration to S7: import the .pb5 into a STEP 7 / TIA Portal PROFIBUS view, where the GSD-based slave list is preserved and the master can be re-homed on a CP 443-5 Extended or a CPU with integrated DP master port.
  • Documentation: export the master and slave parameters from COM PROFIBUS to a PDF or RTF report and attach it to the project archive alongside the .pb5 file.

For the ET 200 distributed I/O topology, the IM 308-3UC1 acts as the DP master and the ET 200 stations (with IM 151 / IM 153 interface modules) are its DP slaves. The .pb5 file therefore carries the entire DP network definition, not just the master's own parameters. Treat the .pb5 file as the single source of truth for the DP segment when handing the system over to a new maintainer.

Frequently Asked Questions

What is a .pb5 file?

A .pb5 file is a binary PROFIBUS configuration database created by the Siemens COM PROFIBUS tool. It contains the DP master parameters, slave list, GSD references, and bus timing for an IM 308-C or compatible DP master. The same file is used to program 5V FLASH 256 cards and is the canonical exchange format for backup and cloning.

Can I use a USB-to-PROFIBUS adapter to read the .pb5 file?

No. The IM 308-C and COM PROFIBUS require a Siemens PROFIBUS CP (CP 5611, CP 5613, CP 5512) or a SIMATIC PG with built-in PROFIBUS/MPI. Third-party USB adapters do not implement the COM PROFIBUS upload protocol and will not see the IM 308-C as a master.

Is COM PROFIBUS still available for download?

No. COM PROFIBUS is a licensed, non-free product. It is available through your Siemens representative or via the Siemens Industry Online Support portal. Newer STEP 7 Professional versions include compatible PROFIBUS configuration, but legacy .pb5 files are best handled in the original COM PROFIBUS environment to avoid GSD and parameter-version drift.

Can I edit a .pb5 file in a text editor?

No. The .pb5 file is a structured binary format. Manual editing will corrupt the file and produce an invalid configuration that the IM 308-C will refuse to load. Use COM PROFIBUS to make any changes, then save the file from within the tool.

What is the difference between reading via PROFIBUS and reading the EPROM directly?

The PROFIBUS upload (Method 1) reads the configuration image loaded in the IM 308-C, which is the practical working copy. The direct EPROM/FLASH read (Method 2) extracts the exact byte-level image from the 5V FLASH 256 card. For backup and cloning of working systems, Method 1 is faster and sufficient; for forensic recovery or card-level verification, Method 2 is required.

What cable do I need between the PC and the IM 308-C?

Either a standard PROFIBUS DP cable (violet) with two 9-pin D-sub connectors, or a Siemens MPI/DP cable such as MLFB 6ES7 972-0CB20-0XA0, will work. A point-to-point backup with the MPI/DP cable is the simplest arrangement and is supported by the IM 308-C in MPI mode for configuration read.

Back to blog