Yes OB80 will do that. I should have known OB80 not FB80. The default scan tine is 150ms; you can go into CPU proprieties and change the default to a greater time. Look at CPU info to see what your actual time is.
Many of the OB’s are for error handling, when an error occurs like excessive scan time these OB are called. They allow the user to set up error handling, even though there may not be any logic in them they are still call much like an FB would. If they don’t exist the PLC won't know how to handle the error and Fault. We have often set up attribute to send messages or even counters to log such events.