Use one of the special OB's. Go to the HW-configuration and activate the OB, think it is called 'time-of-day'. Sorry, but I do not remember the OB-number.
Then program the reaction of the OB. The OB will run automatically, no need to call it in OB1. Send it to the cpu. But watch out the 'time-of-day'-OB is only one cyclus active.