Fault Codes:Yanmar General P0340
What is Yanmar General Fault Code P0340?
Fault Code P0340 indicates a Camshaft Position Sensor "A" Circuit Malfunction in Yanmar diesel engines. This diagnostic trouble code (DTC) means the Engine Control Module (ECM) has detected an irregular, intermittent, or absent signal from the camshaft position sensor (CMP sensor) circuit.
The camshaft position sensor works in conjunction with the crankshaft position sensor to provide critical timing information to the ECM. This data allows the ECM to precisely control fuel injection timing and engine synchronization. In Yanmar excavators, this sensor is essential for maintaining optimal combustion efficiency, cold-start performance, and overall engine power delivery. When the ECM cannot reliably read camshaft position, it may default to limp mode or prevent starting altogether, significantly impacting machine productivity.
Common Symptoms
Operators and mechanics may experience the following when P0340 is active:
- Hard starting or no-start condition, especially during cold starts when precise timing is critical
- Check Engine Light (CEL) or malfunction indicator lamp illuminated on the instrument cluster
- Rough idling, misfiring, or hesitation during acceleration due to incorrect fuel injection timing
- Engine stalling at idle or under load, particularly in older machines with worn components
- Reduced engine power or derate mode activated to protect the engine from timing-related damage
Potential Causes
Several technical factors can trigger P0340 in used Yanmar excavators:
- Faulty or failed camshaft position sensor due to heat exposure, vibration, or internal component degradation common in high-hour machines
- Damaged or corroded wiring harness and connectors, especially at rub points near the engine block or valve cover where movement and heat cause wear
- Broken or stretched timing belt/chain causing actual camshaft position errors that the sensor correctly reports
- Low battery voltage or poor ground connections affecting sensor signal quality and ECM communication
- ECM software issues or internal ECM failure, though less common than sensor/wiring problems
- Oil contamination on the sensor from leaking valve cover gaskets, affecting magnetic pickup in used equipment
How to Troubleshoot and Fix Code P0340
Step 1: Visual Inspection Begin by inspecting the camshaft position sensor location (typically near the timing cover or cylinder head). Check for physical damage, oil contamination, or loose mounting. Examine the wiring harness from sensor to ECM for abrasion, pinching, or connector corrosion—critical checkpoints on used excavators with thousands of operating hours.
Step 2: Electrical Testing Using a digital multimeter, test the sensor's resistance (typically 200-900 ohms for Yanmar sensors, but consult your service manual). Check for 5-volt reference voltage at the sensor connector with the key on, engine off. Verify ground circuit continuity and inspect for voltage drops exceeding 0.1V that indicate corrosion or poor connections.
Step 3: Signal Testing and Component Replacement If available, use Yanmar diagnostic software to monitor the CMP sensor signal in real-time during cranking. An erratic or absent waveform confirms sensor failure. Before replacing the sensor, inspect the timing belt/chain condition and verify proper camshaft timing marks. Replace worn connectors and repair damaged harnesses before installing new sensors to prevent repeat failures.
Step 4: Post-Repair Verification After repairs, clear the fault code, perform a complete engine cycle, and road-test under load. Monitor for code recurrence, which may indicate deeper ECM or mechanical timing issues.
Disclaimer: This guide provides general troubleshooting information for Yanmar excavators. Always consult the manufacturer's service manual and consider professional diagnostic assistance for complex electrical or timing system repairs, especially on used equipment with unknown maintenance history.
Fault Description:
Engine fuel injection pump speed sensor: Short circuit to low-voltage power supply
FairTradeMachinery
You Design the Vision. We Handle the Hard Parts.
Helping Global Buyers Access Better-Value Machinery and After-Sales Solutions.
As China's Leading Global Used Machinery Exchange Platform, we sits at the intersection of IoT technology and B2B commerce. That means real-time inventory data, verified seller profiles, and a transaction process designed for cross-border buyers who can't always inspect machines in person. Our users in China have exceeded 1.5 millions meaning we have the first source of excavator owners and the equivalent number of machines. This means we can cover all the popular models and even specific needs, no matter of the status.







FAQs
WhatsApp