Hi,
You can use Trg input of Mqtt Config Block,
This input publishes messages when it sense raise edge, so you can connect Real Time Pulse Generator and set time of RTPG.
Have a good day.