Locomotive horns are required to sound for 15-20 seconds before entering all public grade crossings, but not more than one-quarter mile in advance. The required pattern for blowing the horn is two long, one short and one long sounding horn, repeated as necessary until the locomotive clears the crossing.