You can take advantage of timeout events in the time structure.
When the time structure is first created, the default event is the timeout event, that is to say, when there is no set time for event triggering in the event structure, the timeout event is triggered and the corresponding code in the timeout event box is executed.
For the scheduled automatic command you requested, the interval set is actually a timeout. Of course, you can add other events to the event structure to send commands manually.
Timeout event Timeout input is located at the hourglass icon in the upper left corner of the event structure, and its data type is a signed 32-bit integer with the unit of milliseconds. When the timeout is set to-1, it means that the timeout event has never been executed and has been waiting, which can also be understood as disabling the timeout event.
It is worth noting that when you put the event structure in a while loop, the event structure will be executed in a loop, so if the timeout is set to a fixed value, the timeout event cannot be stopped, which is inconvenient to use. By controlling the timeout setting, it can be used as the switch of automatic transmission. It's a little complicated. I wrote a simple template. See the attachment. You will understand it after a look. Below is a screenshot of the program.