This sub-function stores all the diagnostic trouble codes on an EPROM so that they are available even when the power supply to the main relay has been shut off.
If a diagnostic cycle is running, it will be allowed to finish before the next afterrunning sub-function, checking the main relay, is activated.