User event task (or...?)

Hi!
I need to schedule certain tasks differently (1 sec ↔ 1 min), alternating depending on a condition. Only the user event task call would have been included in the cyclic (1 sec, 1 min) tasks
My first idea would have been the user event task, but it seems there hasn’t been an officially documented solution for it for many years.
My other (forced, non-optimal) idea is to duplicate the necessary functions and enable/disable them as needed.
According to more experienced users, which path should I take?
Thank you in advance for all the tips and advice.


You could create a C++ realtime program and trigger that every second to check your conditions.
The C++ program can send the user events that trigger your IEC program(s).

Or schedule your IEC program every second and only act when needed. That may be simpler.

I made a picture for easier understanding:

user event task 300 dpi.jpg

All POU “A” is the same.
The question again: which ones are more practical/simpler?