PROFIBUS Fault Diagnosis

Fault Diagnosis

When the S7-1200 operates as a DP Master, the CPU does not stop and does not require downloading an organization block when a DP slave is lost.

There are several methods for diagnosing faults in PROFIBUS DP:

1. Through the Indicator Lights on the Module

The DIAG light on the front panel is green when normal and turns red to indicate errors and issues. The combination of the RUN/STOP, ERROR lights on the back cover, and the DIAG light on the front panel provides the module status:

PROFIBUS Fault Diagnosis

Figure 1. Fault indicator lights for early CM1243-5 firmware versions V1.0 & V1.1

PROFIBUS Fault Diagnosis

Figure 2. Fault indicator lights for CM1243-5 firmware versions V1.2 & V1.3

2. Diagnosing through Programming Software

  • For early CM1243-5 firmware versions V1.0 & V1.1, view the entries in the CPU diagnostic buffer in STEP 7 V11. PROFIBUS Fault Diagnosis View the module information in online status PROFIBUS Fault Diagnosis

  • For newer versions of CM1243-5, such as version V1.3, view the diagnostic buffer for information on lost slaves in TIA V13 SP1 as follows:

PROFIBUS Fault Diagnosis

3. Reading DP Slave Diagnostic Information through the Program

The CM1243-5 uses the DPNRM_DG instruction to read diagnostic data from PROFIBUS DP slaves. The parameters for the DPNRM_DG instruction are:

PROFIBUS Fault Diagnosis

REQ: Read request LADDR: Slave diagnostic address RECORD: Target address for storing the read diagnostic data RET_VAL: Error code returned when the instruction execution fails BUSY: Reading diagnostic data CM 1242-5 supports 6 bytes of standard diagnostics and 6 bytes of device-specific diagnostics, allowing the slave status to be obtained through standard diagnostics. Overview of standard diagnostic data:

PROFIBUS Fault Diagnosis

Standard diagnostic data information:

PROFIBUS Fault Diagnosis

Method for reading standard diagnostic data: In the main program OB1, call the S7-1200 “Extended Instructions/Distributed I/O/Others” DPNRM_DG instruction. Click on the block parameter LADDR to select the DP slave diagnostic address from the dropdown list, and the read diagnostic data will be stored in DB4.

PROFIBUS Fault Diagnosis

View diagnostic data through the monitoring table:

PROFIBUS Fault Diagnosis

Leave a Comment