Ok so the 0340 code calls out both the Crank Sensor and the Camshaft sensor...hope the Cam sensor is OK!
You need to look at the "2.5_2.8 export diesel" section from the download at:
www.colorado4wheel.com/manuals/Jeep/KJ/
Find the section that gives all of the codes....go to the advice on what to do as regards the 0340 code.
They will tell you to disconnect wires and measure from certain wires to +12 volts, measure through to ground etc. Do all you can do with a digital multimeter.
Best is to tape small needles or pins to the ends of the meter leads so that you can piece insulation if needed to make measurements....the holes in the insulation can be sealed up later with glue or melted closed. To measure the pins on the C1 connector on the ECM you will need a small needle end as the female contacts are extremely small.
You can remove the ECM C1 connector...top of the ECM..without disconnecting the battery. You are sometimes required to make some measurement on the connector with the connector disconnected and while ignition is ON.
Make sure you do not touch the meter ends with bare hands while measuring as your internal resistance screws up the meter readings.
So you follow the instructions on what to measure. At the same time go to Section 8W of the 2003 Jeep KJ Service Manual for the Wiring Diagram.
The Index Section gives you a Component location menu so you can type in Crank Sensor and it directs you to the relevant Wiring Diagram...make sure you are looking at the diagram for Diesel, Automatic.
At the end of the Menu section is a connector pinout that will for instance show you how to read the pins on the C1 connector on the ECM. On the ECM C1 connector check the wiring colors at the rear of the plug to confirm you are looking at the correct wire.
You remove the C1 connector by pulling up a tab at the top of the connector...the connector then slides outwards.
The instructions for the 0340 code also tells you to check for firm/clean cogs on the crankshaft and the camshaft when the sensors are removed. They also tell you check for a tight Cam Belt
![Eek! :eek: :eek:](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Not sure how your problem when hot could be related to the timing belt but they are not referring to a fails-when-hot issue.
The fact that the Jeep fails to start when hot generally points to the Cam or Crank sensor...not really wiring!
You may have to take the Wiring Diagrams and the Code descriptions to an Auto Electrician to do the tracing of the wires.
So for example print out Page 8W-30-28....Fuel/Ignition System Diesel A/T
Pull off connector C1 on the ECM....leave battery connected.
The wiring diagram has a small error...not unusual!
The Crankshaft Position Sensor Signal 1 is Pin 1, Signal 2 is Pin 2 and Sensor Shield is Pin 3. Physically trace these three wires from the sensor to the C1 plug looking for any scraping of insulation to chassis/engine and measure for continuity from end to end.
Do the same as above for the Camshaft sensor.
There have been some owners who have measured the Cam and Crank sensors when removed. At room temperature you get certain resistance...heat sensor up with a Hair Dryer and a faulty sensor gives you different readings!
Have fun!
![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)