PROFIBUS Fault Diagnosis

Fault Diagnosis

When S7-1200 communicates as a DP Master, the CPU does not stop and does not require downloading the 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 under normal conditions, and turns red when there are errors or 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. Diagnosis 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 DiagnosisView module information in online statusPROFIBUS Fault Diagnosis

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

PROFIBUS Fault Diagnosis

3. Reading DP Slave Diagnostic Information Through the Program

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

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. Standard diagnostics can provide the status of the slave. 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. 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