5.9.3 Diagnostic interruptAn interrupt for the corresponding channel operating mode can only betriggered if you have additionally parameterized ‘Diagnostics+Process’ at‘Select interrupt’ of the ‘Basic parameters’ .Via the parameterization (record set 7Fh) you may activate a global diagnostic interruptfor the module. A diagnostic interrupt occurs when during a process interrupt execution inOB 40 another process interrupt is thrown for the same event. The initialization of a diag-nostic interrupt interrupts the recent process interrupt execution in OB 40 and branches inOB 82 to diagnostic interrupt processingincoming. If during the diagnostic interrupt pro-cessing other events are occurring at other channels that may also cause a process res.diagnostic interrupt, these are interim stored. After the end of the diagnostic interrupt pro-cessing at first all interim stored diagnostic interrupts are processed in the sequence oftheir occurrence and then all process interrupts. If a channel where currently a diagnosticinterruptincoming is processed res. interim stored initializes further process interrupts, theseget lost. When a process interrupt for which a diagnostic interruptincoming has beenreleased is ready, the diagnostic interrupt processing is called again as diagnostic inter-ruptoutgoing. All events of a channel between diagnostic interruptincoming and diagnostic inter-ruptoutgoing are not stored and get lost. Within this time window (1. diagnostic inter-ruptincoming until last diagnostic interruptoutgoing) the SF-LED of the CPU is on. Additionallyfor every diagnostic interruptincoming/outgoing an entry in the diagnostic buffer of the CPUoccurs.Every OB 82 call causes an entry in the diagnostic buffer of the CPU containing errorcause and module address. By using the SFC 59 you may read the diagnostic bytes. Atde-activated diagnostic interrupt you have access to the last recent diagnostic event. Ifyou've activated the diagnostic function in your hardware configuration, the contents ofrecord set 0 are already in the local double word 8 when calling the OB 82. The SFC 59allows you to also read the record set 1 that contains additional information. After leavingthe OB 82 a clear assignment of the data to the last diagnostic interrupt is not longer pos-sible. The record sets of the diagnostic range have the following structure:FunctionExample:Diagnostic interrupt pro-cessingVIPA System MICRO Deployment I/O peripheryDiagnostic and interrupt > Diagnostic interruptHB400 | CPU | M13-CCF0000 | en | 16-47 131