1. DTC P0340 description
The CMP sensor is installed to the left side of the rear of the cylinder head. The sensor rotor is fixed on the inlet camshaft gear. The sensor rotor has 4 projections evenly spaced 90° apart and 1 reference projection. The CMP sensor detects 5 projections in total per 1 engine cycle. The CMP sensor is a magnetic resistance element type sensor, and generates a square wave signal pulse. The sensor has the following circuits.
- 5 V reference circuit
- Low reference circuit
- CMP sensor signal circuit
The ECM monitors the signal pulses of the CKP sensor and the CMP sensor to make sure they correlate with each other. If the ECM receives a certain amount of CKP sensor signal pulses with no CMP sensor signal pulses detected, the DTC is set.
Each sensor signal waveform (When idling)

2. Condition for setting DTC P0340
Condition for running the DTC
- The battery voltage is 9 to 16 V.
- The ignition voltage is 9 to 16 V.
- The ignition switch is ON.
- The CKP sensor signal pulses are detected.
- DTCs P0335 and P0336 are not set.
Refer to "51.Engine Control 1A.Troubleshooting(RZ4E-TC) DTC P0335 (Flash Code 15) Crankshaft Position Sensor Circuit".
Refer to "51.Engine Control 1A.Troubleshooting(RZ4E-TC) DTC P0336 (Flash Code 15) Crankshaft Position Sensor Circuit Range/Performance".
Condition for setting the DTC
- The ECM detects that no CMP sensor signal pulse is generated while the engine is running.
3. Action taken when DTC P0340 sets
- Euro4: The ECM illuminates the MIL. Refer to Action taken when DTC sets - Type A (Euro4).
- Except Euro4: The ECM illuminates the check engine warning light. Refer to Action taken when DTC sets - Type A (Except Euro4).
Refer to "51.Engine Control 1A.Troubleshooting(RZ4E-TC) DTC type definitions".
- The ECM inhibits engine startup.
- The ECM inhibits the cruise control.
4. Condition for clearing DTC P0340
- Euro4: Refer to Condition for clearing the MIL/DTC - Type A or Type B (Euro4).
- Except Euro4: Refer to Condition for clearing the check engine warning light/DTC - Type A or Type B (Except Euro4).
Refer to "51.Engine Control 1A.Troubleshooting(RZ4E-TC) DTC type definitions".