Fifteen to twenty seconds before entering a level crossing, federal law requires locomotives to sound their horns in a standard warning sequence. This succession consists of two long, one short, and one long horn sounding repeated as necessary until the locomotive clears the crossing. Exceptions to federal law occur in locations with established quiet zone ordinances that prohibit sounding locomotive horns.