Thanks for your answer. Is exactly what I was thinking, but my issue is that I am not able to put this expression in a ladder. I tried to put a button on HMI, I assigned a (mouse click) MB30, I continued in the net with a timer (Store>Load TimerCounter Preset), and finished with a coil (for Output), but nothing.
There is a tool somewhere to debug the code line by line? Basically to see the output for the ladder ...
As I said in my previous post, with the Toggle option, I can assert the Output, but I have to press again the button to deassert the output, which is not exactly what I need.
Any help is much appreciated.
Cheers,
Marius