1. Problem Overview
Field engineers integrating a Siemens SIMATIC S7-300 station with a YOKOGAWA CENTUM VP / DCS subsystem routinely use the CP 342-5 communications processor in DP-Slave mode behind a YOKOGAWA ALP111 PROFIBUS-DP master module. The most common symptom at first power-up is a continuously flashing BF (Bus Fault) LED on the CP 342-5 with no diagnostic entry in the CPU diagnostic buffer, while the ALP111 reports a CABA alarm ("Illegal data / wrong type of data") on the Yokogawa side. Because the CPU has no entry of its own, the fault is purely on the CP 342-5 PROFIBUS interface and on the master's view of the slave GSD.
This reference documents the field-proven diagnostic path, the operating-mode and GSD pitfalls, the FC12 / FC13 programming required on the S7-300, and the parameter mapping that eliminates the CABA error. It is written for the engineer who is online with STEP 7 (HW Config) and has a Yokogawa engineering workstation with SyCon-PB / YOKO available.
2. Hardware and Software Reference Set
| Component | Designation | Role | Firmware / SW |
|---|---|---|---|
| CPU | SIMATIC S7-300 CPU 312 (6ES7312-1AE14-0AB0) | PLC application processor | Firmware V3.3 |
| PROFIBUS module | CP 342-5 (6GK7342-5DA02-0XE0) | DP-Slave interface to ALP111 | Firmware V5.x |
| Yokogawa master | ALP111 PROFIBUS-DP Communication Module | Class-1 DP master on FIO | Per GS33K50G80-50E |
| Yokogawa config | SyCon-PB / YOKO | DP master network configurator | Vendor-specific |
| STEP 7 | SIMATIC Manager / HW Config | Slave side engineering | STEP 7 V5.5 + SPx |
The YOKOGAWA ALP111 is documented in the manufacturer manual GS33K50G80-50E as a PROFIBUS-DP master module installed on the Field I/O (FIO) bus of a CENTUM VP / CS 3000 system. The manual states that the ALP111 exchanges cyclic I/O data with PROFIBUS-DP slave devices and that the master configuration, GSD assignment, and slot/offset definition are performed from the Yokogawa System View / Resource Configurator and from SyCon-PB.
3. Reading the LEDs Correctly
The CP 342-5 has four relevant indicators on the front bezel:
| LED | Steady ON | Flashing (2 Hz) | OFF |
|---|---|---|---|
| SF | Group or module diagnostic present | — | No fault |
| BF (Bus Fault) | Physical layer / no token / no master | Slave has not been parameterised by any master | Bus OK, slave cyclically exchanging |
| RUN | CP ready for data exchange | CP in start-up / test mode | No power or CP stopped |
| STOP | CP stopped (operator request) | — | CP running |
A flashing BF on the CP 342-5 specifically means the slave has detected the bus, has heard the master's parameterisation telegram, but has not received a valid Chk_Cfg / Set_Prm handshake. The CPU diagnostic buffer is typically empty because the CP 342-5 buffers the DP-slave diagnostics locally; you must open the CP-specific diagnostic buffer, not the CPU one.
4. Diagnostic Procedure (Step-by-Step)
- Open SIMATIC Manager > PLC > Online > Accessible Nodes, double-click the CPU 312, and switch to the Diagnostics view.
- Open HW Config and place it in Online > Online. The CP 342-5 will show a yellow diagnostic icon if the BF is latched.
- Double-click the CP 342-5 in the online rack. The Module Information window shows the slave diagnostic, the Special Diagnostics tab, and the DP-Slave Diagnostics tab.
- Read the DP-Slave Diagnostics bytes 7…10 — these carry the PROFIBUS Diag_Buffer flags that identify whether the master sent valid parameterisation.
- Open CP 342-5 Properties > Operating Mode and verify that Test, Commissioning, Routing is OFF. With this option enabled the CP accepts only configuration from STEP 7 and rejects the ALP111 parameterisation, which is the single most common root cause of the flashing BF.
- Capture the DP_SEND / DP_RECV return codes by reading
DONE,ERROR, andSTATUSoutputs. IfDONE = TRUEandERROR = FALSEthe CP is communicating with the S7 CPU, isolating the fault to the DP cable / master side. - On the Yokogawa side, open System View > IOM and inspect the CABA log to determine whether the alarm is raised on parameterisation (Set_Prm) or on the first Data_Exchange cycle.
5. Root Causes and Their Symptoms
| # | Root cause | CP 342-5 indication | ALP111 indication | Fix |
|---|---|---|---|---|
| 1 | Test / Commissioning / Routing mode is ON in HW Config | BF flashing, RUN off | CABA / no parameterisation | Uncheck option, re-download HW Config |
| 2 | Wrong GSD or no GSD imported in SyCon-PB | BF flashing | CABA on first Data_Exchange | Import SIEM814D.gsd matching CP 342-5 part number |
| 3 | I/O length mismatch (S7 slave config <> Yokogawa slot definition) | BF stops flashing after one cycle, then back | CABA on data length | Match input/output byte count exactly in both tools |
| 4 | DPV1 enabled on the master, DPV0 selected on slave | BF flashing | CABA / version mismatch | Force DPV0 on the ALP111 master slot for CP 342-5 |
| 5 | Bus termination missing or reversed A/B | BF steady on, all slaves down | Master reports no slaves | Enable termination on both physical ends, swap A/B if polarity reversed |
| 6 | FC12/FC13 not called in OB1, or wrong DB length | BF flashing or SF steady on | CABA, zero data | Call FC12 in OB1 with a valid DB >= configured length |
| 7 | PROFIBUS address conflict (two slaves same address) | BF on both CP 342-5 modules | Master logs duplicate address | Re-assign unique addresses 1…125 |
6. CP 342-5 Configuration for Slave Operation
The CP 342-5 must be configured as a DP-Slave in HW Config, not as a DP-Master. Configure the slot as follows:
- From the hardware catalog, drag CP 342-5 > DP-Slave into the S7-300 rack.
- Open CP 342-5 Properties > PROFIBUS Interface and assign a unique PROFIBUS address (typical 2…32).
- In Operating Mode, set DP-Slave and confirm Test, Commissioning, Routing is not checked. With the option checked the CP is forced into a test mode that does not accept third-party master parameterisation, which is the most common cause of the persistent BF flash described in the field incident.
- In DP-Slave Properties define at least one input slot and one output slot. Field experience shows that a CP 342-5 configured with only outputs and no input word can be parameterised by an S7 master but rejected by a non-Siemens master until at least one input word is declared. Define a 2-byte input and 2-byte output slot to be safe.
- Save and download the hardware configuration to the CPU.
7. FC12 (DP_SEND) and FC13 (DP_RECV) Programming
Once the slave is parameterised, the S7-300 application must use the SIMATIC function blocks FC12 DP_SEND and FC13 DP_RECV from the standard library "CP 342-5 / CP 343-5". They move data between a configured DB and the internal buffer of the CP 342-5.
7.1 Input / Output Interface of FC12 DP_SEND
| Parameter | Type | Meaning |
|---|---|---|
| CPLADDR | WORD | Logical base address of the CP 342-5 (from HW Config) |
| SEND | ANY | Source area in the S7 (e.g. P#DB100.DBX0.0 BYTE 2) |
| DONE | BOOL | 1 = job completed without error |
| ERROR | BOOL | 1 = error, see STATUS |
| STATUS | WORD | Event / error code |
7.2 OB1 Call Template (Structured Text equivalent)
// OB1 - cyclic call of FC12/FC13 for CP 342-5
CALL FC 12 // DP_SEND
CPLADDR := W#16#100, // base address of CP 342-5
SEND := P#DB100.DBX0.0 BYTE 2,
DONE := M 100.0,
ERROR := M 100.1,
STATUS := MW 102
CALL FC 13 // DP_RECV
CPLADDR := W#16#100,
RECV := P#DB101.DBX0.0 BYTE 2,
NDR := M 104.0,
ERROR := M 104.1,
STATUS := MW 106
7.3 DP_SEND / DP_RECV Status Codes (subset)
| STATUS (hex) | Meaning | Field action |
|---|---|---|
| 0000 | No error, idle | Continue |
| 7000 | Job active | Continue |
| 8181 | Send area < configured length | Resize DB |
| 8182 | Recv area < configured length | Resize DB |
| 8183 | CP not in Data_Exchange | Check BF LED, master parameterisation |
| 80A0 / 80A1 | Negative acknowledge from CP / module | Check CP diagnostic |
| 80C0 / 80C1 | CP in STOP / start-up | Check CP mode |
8. ALP111 Master Configuration (Yokogawa Side)
According to the ALP111 manual GS33K50G80-50E, the module is a PROFIBUS-DP Class-1 master that the Yokogawa resource configurator presents as an I/O module occupying one slot on the FIO node. The configuration steps are:
- From System View, drag the ALP111 into the FIO node and assign it to a logical node (e.g.
NODE01 / SLOT05). - Open SyCon-PB / YOKO and add a new DP network. Import the CP 342-5 GSD (file SIEM814D.gsd for part number 6GK7342-5DA02-0XE0). If the GSD is missing, SyCon falls back to a generic DP-V0 profile which is the most common origin of the CABA "wrong data type" alarm.
- Add the CP 342-5 (Siemens) slave, assign the PROFIBUS address matching HW Config, and define a single I/O block of 2 bytes input / 2 bytes output on slot 1 — these correspond to the FC12/FC13 transfer area.
- Set the master to DP-V0 mode. The CP 342-5 supports DP-V0; if the ALP111 is configured for DP-V1 with slot-based acyclic services the slave will reject the parameterisation and re-trigger the BF flash.
- From the Yokogawa System View IOM tab, register a data item pointing to the slave's input area. A typical entry: Area: INPUT, Station: 2, Offset: 0, Length: 16, Data type: Unsigned.
- Download the configuration to the ALP111 and the FCS and reset the bus.
9. GSD Selection Matrix for CP 342-5 Variants
| Part number | GSD file | DPV0/DPV1 | Max cyclic I/O |
|---|---|---|---|
| 6GK7342-5DA02-0XE0 | SIEM814D.gsd | DPV0 | 240 B in / 240 B out |
| 6GK7342-5DA03-0XE0 | SIEM816F.gsd | DPV0/V1 | 240 B in / 240 B out |
| 6GK7342-5DA10-0XE0 | SIEM816C.gsd | DPV0/V1 | 240 B in / 240 B out |
| 6GK7342-5DF00-0XE0 (FO) | SIEM8170.gsd | DPV0/V1 | 240 B in / 240 B out |
Always use the GSD file that matches the printed MLFB on the module. A different revision GSD can declare a different I/O length maximum or new diagnostic slots, which the ALP111 will treat as a parameterisation error.
10. Field-Confirmed Workaround When BF Persists
Engineers who have been unable to resolve the BF flash — for example, when the customer has not provided a recent GSD or when the ALP111 firmware predates DPV0 acyclic handling — have deployed the DP/DP Coupler (6GK1571-0BA00-0AA0) as a buffer. The DP/DP coupler acts as a slave to the ALP111 and as a master to the S7-300's CP 342-5 (in master mode). It is configured with two independent DP segments and a fixed input/output length.
- Configure the left segment of the DP/DP coupler as a slave to the ALP111 with a fixed 16 byte in / 16 byte out data block.
- Configure the right segment of the DP/DP coupler as a master with the CP 342-5 in slave mode and 2 byte in / 2 byte out.
- Wire the coupler to map its left input area to its right output area, and its left output area to its right input area, using the coupler's internal mapping table.
The DP/DP coupler isolates the protocol idiosyncrasies of each segment and converts the CABA alarm into a clearly mapped status byte, which is usually accepted by the Yokogawa side. The trade-off is an additional 90 mA load on the S7-300 backplane and a small bus-cycle delay (typically 1.5 ms at 1.5 Mbps).
11. Verification and Commissioning Checks
Once the BF LED goes off and the Yokogawa CABA alarm clears, run the following verification sequence:
- LED pattern: CP 342-5 RUN = solid, BF = off, SF = off, STOP = off. ALP111 "READY" LED = solid, "COMM" LED = solid or flashing 1 Hz depending on vendor revision.
-
STEP 7 side: In HW Config online view, the CP 342-5 diagnostic icon must be grey (no fault). The DP_SEND / DP_RECV
DONEbits must toggle each OB1 cycle. - Yokogawa side: In the System View, the IOM data item must show a fresh Good quality stamp. CABA must be absent from the message log.
- Live data test: Force a value in DB100.DBW0 from STEP 7 and confirm the corresponding Yokogawa data item updates within one master poll interval (typical 5–20 ms at 1.5 Mbps, depending on the number of slaves).
- Bus health: Connect a PROFIBUS analyser (e.g. Softing PROFINET/PROFIBUS Diagnostic Tool or a vendor equivalent) and confirm the line is at 1.5 / 3 / 6 / 12 Mbps, the waveform is symmetric, and the slave addresses are unique on the segment.
12. Engineering Notes and Edge Cases
- The CP 342-5 in slave mode does not participate in DP-V1 acyclic services. If the Yokogawa application uses Read/Write Record on the slave, the CP 342-5 will respond with Access Denied. Use the FC12/FC13 cyclic area or migrate to a CP 343-5 / CM PROFIBUS DP-V1 module.
- The CP 342-5 consumes 16 bytes of input and 16 bytes of output in the S7-300 process image regardless of the configured user data. These 16 bytes are the internal channel between the CP and the CPU and are not visible on the PROFIBUS segment.
- If the same S7-300 station is also a master on the same segment via a second CP 342-5, address the two CPs in different segments or with different addresses; the ALP111 cannot co-exist with a foreign master on the same physical bus without a repeater.
- The BF LED will also flash when the bus terminator is missing on a segment with more than two devices. Always enable termination on the physical end nodes only and switch it off on the middle nodes.
- When a Yokogawa CABA alarm is raised together with a Yokogawa STBY flag, the master has switched the slave to fail-safe output handling. The S7 application must accept that the Yokogawa holds the last valid output. Resetting the CABA does not require a CPU restart on the S7 side; the BF LED will clear within one master poll once the parameterisation is accepted.
- For S7-300 stations running STEP 7 V5.4 or earlier, the CP 342-5 GSD must be the one bundled with that STEP 7 version. Newer GSDs may declare slots not recognised by older SyCon-PB revisions.
13. Summary of the Fix Path
- Open HW Config online and clear all CP 342-5 diagnostics.
- Disable Test, Commissioning, Routing on the CP 342-5 operating mode tab.
- Confirm at least one input slot and one output slot are configured in the CP 342-5 DP-Slave properties.
- On the Yokogawa side, import the matching CP 342-5 GSD into SyCon-PB and align the slot I/O length byte-for-byte with the S7-300 configuration.
- Force DPV0 on the ALP111 master slot for the CP 342-5.
- Register a Yokogawa IOM data item whose size, offset, and data type match the slave announcement exactly.
- Verify: BF LED off, DP_SEND DONE = 1, CABA absent, live data round-trip OK.
If the BF LED still flashes after these steps, the remaining causes are usually a physical-layer issue (cable, connector, termination, baud rate mismatch) or a GSD file that does not match the part number printed on the module label. Capture a PROFIBUS trace and check the master's Set_Prm telegram against the slave's Get_Cfg reply to identify the exact disagreement.
FAQ
Why does the CP 342-5 BF LED keep flashing even though the CPU has no diagnostic entry?
The CP 342-5 buffers the slave diagnostics locally. Open HW Config in Online mode, double-click the CP 342-5, and read the DP-Slave Diagnostics tab and Special Diagnostics. A flashing BF means the master has not successfully parameterised the slave — typical causes are the Test, Commissioning, Routing option being ON, a wrong GSD in SyCon-PB, or a byte-length mismatch between the master slot and the slave configuration.
What does the Yokogawa CABA alarm mean when communicating with a CP 342-5?
CABA is "Communication Abnormal — Illegal Application Data." The ALP111 raises it when the I/O length or data type in the registered Yokogawa IOM item does not match what the CP 342-5 announces in its Chk_Cfg reply. Resize the IOM item to the exact byte count configured in the CP 342-5 slave slots and re-import the matching Siemens GSD into SyCon-PB / YOKO.
Do I need FC12 and FC13 on the S7-300 when the CP 342-5 is a DP-Slave?
Yes. Although the CP 342-5 is addressed by the ALP111 as a slave, the S7-300 application must still call FC12 (DP_SEND) and FC13 (DP_RECV) in OB1 to move data between a configured DB and the CP 342-5's internal buffer. Without these calls, the CP may not even report an error, but no cyclic data is exchanged and the Yokogawa side will hold outputs to the configured fail-safe state.
Can the CP 342-5 communicate with the ALP111 in DP-V1 mode?
Only if the part number is a DP-V1 capable CP 342-5 (e.g. 6GK7342-5DA03-0XE0) and the matching V1 GSD is imported. Otherwise force the ALP111 to DP-V0 for the CP 342-5 slot. DP-V1 acyclic services on the Yokogawa side will not be answered by a DP-V0 CP 342-5 and the master will eventually raise a CABA / parameterisation error.
What is the recommended fallback if the BF LED will not clear after all configuration checks?
Insert a Siemens DP/DP Coupler (6GK1571-0BA00-0AA0) between the ALP111 and the CP 342-5. The coupler isolates the two segments, exposes a fixed-length data block to the ALP111, and acts as a master to the CP 342-5. This converts the CABA into a clearly mapped status byte and is the standard fallback when the master and slave GSDs cannot be aligned.