Caterpillar uses a standardized color code. Memorize these from the 3412 diagram:

Many older 3412s are being retrofitted with electronic monitoring systems (EMS) or GPS telematics. When adding these, you must tap into the at the correct points:

The Caterpillar 3412 wiring diagram is not just a picture; it is a legal document of the engine's electrical architecture. Using a generic diagram can destroy a $2,500 ECM. If you are troubleshooting a fault code (e.g., CID 190 - Engine Speed Sensor), do not just replace the sensor. Open the schematic, find the two wires from the sensor back to the ECM, and perform a resistance check.

On a mechanical 3412, the issue is often the fuel solenoid. 1