Event frame hourly calculation

I want to write in PI point number 1 for each finished hour of the event frame, as long as the event frame lasts.

Does anyone have an idea how to do this?

Regards,

Igor