The Safty functions Of An Alarm System