Fault Codes:Yanmar General P0340-4

What is Yanmar General Fault Code P0340-4?

Fault Code P0340-4 indicates a Camshaft Position Sensor "A" Circuit Malfunction with abnormal frequency, pulse width, or period detected by the Engine Control Module (ECM). This code means the ECM is receiving irregular or erratic signals from the camshaft position sensor (CMP), which monitors the exact position and timing of the camshaft for proper fuel injection and ignition timing coordination.

In Yanmar diesel engines, the CMP sensor works in conjunction with the crankshaft position sensor to ensure precise timing of fuel delivery and valve operation. When the ECM detects signal irregularities—such as intermittent dropouts, incorrect voltage patterns, or timing inconsistencies—it triggers P0340-4 and may enter a protective derate mode. This is critical because improper camshaft timing data can lead to incorrect fuel injection timing, reduced power output, increased emissions, and potential engine damage in severe cases.

Common Symptoms

  • Check Engine Light or malfunction indicator lamp (MIL) illuminated on the dashboard
  • Hard starting or extended cranking time, especially when the engine is cold
  • Rough idle with noticeable vibration or uneven running
  • Loss of power or engine hesitation during acceleration and under load
  • Engine stalling intermittently, particularly during low-speed operation or idle

Potential Causes

The most common technical causes for P0340-4 on used Yanmar excavators include:

  • Worn or failed camshaft position sensor due to heat exposure, vibration, or age-related deterioration
  • Damaged wiring harness or corroded connectors, especially at rub points near the engine block or valve cover where harnesses contact moving parts
  • Contaminated sensor face from oil leaks, metal debris, or carbon buildup interfering with magnetic signal generation
  • Timing gear wear or excessive camshaft end play causing actual mechanical timing variations
  • ECM software issues or corrupted calibration files (less common but possible in older machines)
  • Poor electrical ground connections at the sensor mounting point or ECM chassis ground

How to Troubleshoot and Fix Code P0340-4

Step 1: Visual Inspection and Connector Check Begin by visually inspecting the CMP sensor and its wiring harness for obvious damage, oil contamination, or corrosion. On used excavators, carefully examine harness routing for wear points where cables contact metal surfaces or moving components. Disconnect the sensor connector and inspect pins for corrosion, bent terminals, or moisture intrusion. Clean connectors with electrical contact cleaner and ensure proper seating.

Step 2: Test Sensor Resistance and Signal Using a digital multimeter, measure the resistance across the CMP sensor terminals (typically 200-900 ohms for most Yanmar sensors—consult your service manual for exact specifications). Check for continuity in the wiring harness from the sensor connector back to the ECM. With the engine running (if possible), use an oscilloscope or advanced diagnostic tool to verify the sensor is producing a clean, consistent square-wave signal pattern.

Step 3: Check Mechanical Components and Replace as Needed Remove the CMP sensor and inspect the sensor face for metal debris or oil buildup that could interfere with signal generation. Verify proper air gap between the sensor and timing gear (typically 0.5-1.5mm). Manually rotate the engine and observe the timing gear for wear, missing teeth, or excessive play. If mechanical components check out, replace the CMP sensor with an OEM or quality aftermarket unit, ensuring the new sensor is properly torqued and the connector is sealed against moisture.

Step 4: Clear Codes and Verify Repair After repairs, use Yanmar diagnostic software or a compatible scan tool to clear fault codes from the ECM memory. Perform a test run under load conditions to verify the code does not return and engine performance is restored.


Disclaimer: This guide provides general troubleshooting information. Always consult your Yanmar service manual and consider professional diagnostic assistance for complex electrical or mechanical issues, especially on used equipment with unknown service history.

Fault Description:

Fault of the speed sensor

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.

facebookyoutubeinstagramtiktoklinkedinreddit
Contact us
Contact us
faqsFAQsWhatsAppWhatsApp