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:
Figure 1. Fault indicator lights for early CM1243-5 firmware versions V1.0 & V1.1
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.
View the module information in online status
-
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:
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:
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:
Standard diagnostic data information:
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.
View diagnostic data through the monitoring table: