While installing an engine on a Caterpillar 992G machine, our Field Service Technician was under the machine installing the drive shaft and hydraulic lines. While attempting to move from under the machine, our Technician hit hard hat on the step located on the side of the machine knocking off hard hat resulting in a scalp laceration requiring stitches.