My excavator a KOMATSU PC 300-6 is not swinging left or right and it is shutting off the engine?
And your question is? you've told me what its doing but I'd really need to physically diagnose your machine to determine what is causing your problem, your talking about a piece of very complex heavy equipment here, not a common motor vehicle, this thing makes your Lexus look like a tinker toy, Dont try and fix this yourself, Bad Things Will Happen if you dont know what your doing, Yes there is a reason Heavy equipment mechanics make more than other mechanics, they have to know a lot more,
Well ... your excavator's hydraulic system runs psi in excess of 5,000 lbs. This excavator has built in safety switches designed to turn systems off-line if it detects trouble. This avoids a catastrophic leakage that could be lethal to driver and/or nearby personnel. Any number of reasons temp, hydraulic,or mechanical breakage. Sounds like foreign matter/dirt entered this system keeping the system relief valves from operating?