Construction and repair of rotary gear excavators and cranes