Standard Diagnostic Trouble Codes reference book. A Diagnostic Trouble Code is set in a vehices onboard computer when a fault occurs in any monitored system. The code number corresponds to the type of fault, and can be used to diagnose the problem.