The definition of Diagnostics.
Diagnostics: A function used to detect and diagnose faults in a PLC system.