Without more information, it seems that your setup is similar to mine, so here is some information based on how mine is laid out and the problem that I encountered.
Starting at the fuel injector pump, find the throttle linkage. Attached to that linkage should be a cable that leads to the throttle position sensor which is a totally enclosed electronic box about 6X6X6 inches. In my case this is mounted at the transmission end of the engine and up at valve cover height.
Before going any further check that the the throttle position sensor mounting bracket is OK. This bracket is a metal piece about 1X1X2 inches mounted near the injector pump. This bracket has a pin that connects to the above mentioned cable via a slotted metal cable end. In my case the pin was worn to about half the diameter because the slotted cable end was wearing thru the pin. This will produce errors in the feedback that the cable connection gives to the sensor. This part is available thru Cummins dealers or at RV Chassis Parts. Hope the problem is as simple as this.
John & Sharon, 2 Daughters, 2 Sons-in-law, 5 GK, 1GGK
Rat Terriers (Twiggy, Annie)
1997 HR Imp., 38CDS, 1 Slide
325 Cummins C8.3Mech., MD3060, EBw/Coast.Sw.,
Toad-2003 GMC Envoy 4X4, Excallibar TB, Pressure Pro TPMS, Henderson Mot. Ctrl. Units