Every OB 82 call causes an entry in the diagnostic buffer of the CPU containing error
cause and module address. By using the SFC 59 you may read the diagnostic bytes. At
de-activated diagnostic interrupt you have access to the last recent diagnostic event. If
you've activated the diagnostic function in your hardware configuration, the contents of
record set 0 are already in the local double word 8 when calling the OB 82. The SFC 59
allows you to also read the record set 1 that contains additional information. After leaving
the 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:
Example:
Diagnostic interrupt pro-
cessing
VIPA System SLIO
Deployment I/O periphery
Diagnostic and interrupt > Diagnostic interrupt
HB300 | CPU | 013-CCF0R00 | en | 16-40
149