Extended instructions
8.5 Diagnostics (PROFINET or PROFIBUS)
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
345
Diagnostics (PROFINET or PROFIBUS)
8.5.1
The following diagnostic instructions can be used with either PROFINET or PROFIBUS:
● GET_DIAG instruction (Page 358): You can read the diagnostic information from a
specified device.
● DeviceStates instruction (Page 347): You can retrieve the operational states for a
distributed I/O device within an I/O subsystem.
● ModuleStates instruction (Page 353): You can retrieve the operational states for the
modules in a distributed I/O device.
● LED instruction (Page 346): You can read the state of the LEDs for a distributed I/O
device.
Diagnostic events for distributed I/O
IO system, after a download or power cycle, the CPU will go to RUN
mode unless the hardware compatibility is set to allow
acceptable substitute modules
142) and one or more modules is missing or is not an acceptable substitute for the
As shown in the following table, the CPU supports diagnostics that can be configured for the
components of the distributed I/O system. Each of these errors generates a log entry in the
diagnostic buffer.
Table 8- 114 Handling of diagnostic events for PROFINET and PROFIBUS
Diagnostic information for
the station?
Entry in the diagnostic
buffer?
1
2
I/O access error example cause: A module that has been removed.
2
Peripheral access error example cause: Acyclic communication to a submodule that is not communicating.
Use the GET_DIAG instruction (Page 358) for each station to obtain the diagnostic
information. This will allow you to programmatically handle the errors encountered on the
device and if desired take the CPU to STOP mode. This method requires you to specify the
hardware device from which to read the status information.