A quick snippet to deomstrate how to do alarm latching, bypass and reset. The ladder logic is very self explanatory.

Xybernetics Telepace SCADAPack - Alarm Latching, Bypass, Reset and Debounce Logic