Thank you Tweety, but i don't really understand what you mean.
I am still a beginner in using TIA portal, can you tell me about your solution with some more details?
if i make a discrete alarm, how i can create the event ? there is also a trigger to set for the alarm, but it accepts only int type tags.