Alarm Input Management

PaulS, I've no problems on the hardware side to read an input or write to an output.
Understand this part of the Forum is dedicated to Programming Questions, and my post is asking for a programming hint.
So far none line of code has been written.
About your comment, fast and slow means a visual difference in such a way we can understand witch alarm/switch arrived first.