ENGINE CONTROL

Abstract: A difference between a desired rate-of-change (300, 304, 312) and a measured actual rate-of-change in engine speed is used to correspondingly change an engine control (36), for example, a fuel control rack (54) in a diesel engine fuel pump (34), a throttle valve in a carburetor (not shown), a timer for a fuel injection valve (not shown), a fuel valve to a turbine (not shown), or other control. The desired rate-of-change in engine speed may be critically damped (316), for example, by multiplying by a percent or other fraction of a difference between a desired fuel flow and a present fuel flow, so as to avoid overshoot. The fuel rack (54) has a stop (69) defining a recalibration position where a computer program (332) when permitted resets a stepping motor count. A rotary spring (70) returns the stepping motor (56) and rack (54) when power is cut off. Speed wheel marks or teeth (74) pass a sensor (72) with the same integer count between successive cylinder firings, and the program (422, 424, 426) utilizes variable counts at different speeds to determine engine speed. Additionally, selectable idle speeds (118), and initial starting voltage drop (146) reset are provided.

Description: ENGINE CONTROL Background of the Invention Field of the Invention The present invention relates to controls for prime movers or engines, and particularly to electronic controls for engines employed in vehicles or other applications where powe and speed are to be managed in accordance with one or more factors such as operator demand, emission requirements, temperature, load and/or other conditions. Description of the Prior Art One type of prior art control for controlling fuel flow, speed, torque and emissions of a diesel engine employs a fuel pump having a cam shaft driven by the engine for operating a plurality of injection pumps feeding fuel to the corresponding cylinders of the engine. The accelerator pedal is connected by linkage to a rack in the fuel pump which controls valves or port members associated with the. injection pumps for controlling the quantity of fuel delivered by the injection pumps to the engine cylinders. A mechanicl governor with a flyweight is driven by the injection pump cam shaft to control the positioning of a governor lever with a specially contoured limiting cam or cams in accordance with engine speed or rpm to limit the maximum rack position and thus the maximum fuel delivered to the engine; these governor cams are designed to produce selected maximum torque, power and emission characteristics. Additionally, the governor, upon engine speed or rpm exceeding a maximum safe speed, will move the lever to retract the rack to terminate or greatly reduce fuel flow to prevent damage to the- ' engine. Fuel pumps with different governor cams must be &> l manufactured and stockpiled in order to produce a desired variety of engines with different torque and power characteristics. Variations in dimensions and characteristics of cams, governors and fuel pumps under normal manufacturing techniques result in the requirement of extensive adjustments in the positioning of the levers and cams during final engine testing at several engine speeds in order to produce the desired engine characteristics and compensate for engine variations in manufacturing; adjustment of lever angle or position, for example, in a later step may necessitate repositioning of a cam or cams set in an earlier step. Additionally, these adjustments must also be done on governor replacements made in the field, i.e. when a new or reconditioned governor is installed on a pump. Concern about pollution of the environment has resulted in requirements for engines to limit emissions of certain substances including incompletely burnt fuel which can be produced by sudden depression of an accelerator pedal and a large sudden increase in fuel delivery exceeding the fuel to air ratio necessary for complete combustion. In the above-mentioned type of diesel engine employing a rack controlling fuel delivery, one prior art emission control utilizes dampening facilities to prevent rapid advance of the rack. This necessarily reduces the maximum acceleration of the engine. Manufacturing tolerances needed to insure compliance with emission requirements result in a further reduction in maximum acceleration. Tampering with the governor or its settings and/or emission controls in order to increase the maximum power speed and/or acceleration characteristics of the engine continues to be a problem in spite of sealing of the governor and providing warnings of dire consequences of tampering. Truck fleet companies select engine power characteristics designed to prevent or limit operation of the trucks at excessive speeds. Tampering with the governor and/or its settings and/or alteration or removal of pollution controls enables operation at higher speeds and acceleration to reach destinations sooner, but resulting in possible engine damage, more fuel consumption, violation of speed laws, and greater likelihood of accidents causing severe injury and death. Operation of engines at higher altitudes requires lesser quantities of fuel to avoid exceeding the desired fuel to air ratio. The prior art includes devices for sensing an excessive exhaust temperature, which indicates an excessive fuel to air ratio, to operate devices ■ mechanically limiting the maximum position and/or forcing retraction of a fuel pump rack to a position insuring a reduced fuel to air ratio. Cruise controls, i.e. ' devices which will automatically maintain a set road speed to relieve the operator of the necessity to maintain a steady speed by means of the accelerator pedal, are available in the prior art. Such devices for the above-mentioned type of diesel engine are generally relatively expensive and require installation of additional equipment, e.g. devices to automatically operate the linkage from the accelerator pedal to the fuel pump in response to sensed vehicle road speed. Emission control and fuel economy requirements, principally in gasoline operated automobiles, have resulted in the extensive development of electronic controls for engines, including computerized controls. Typically these systems regulate the air to fuel ratio to achieve optimum emission control and/or economy. Generally the computerized systems employ memory tables, and measured ,. values such as engine speed and manifold pressure or throttle position, which correspond to air intake, to select a value corresponding to fuel quantity from a table. These looked-up values are typically used to determine the length of injection pulses applied ' to electrically operated fuel injection valves associated with corresponding cylinders of an engine. Other detected values, such as engine water or oil temperature, catalytic convertor temperature, altitude, air temperature, acceleration, deceleration, cranking voltage, and exhaust gas composition, have been suggested for use in modifying the values read from the tables or to define an additional table matrix or dimension. Interpolation between stored values has been employed in order to permit reduction in the size of tables. Also the prior art often selects spark ignition timing based upon stored table values and/or calculations made from various parameters. These prior " art electronic control systems generally may be characterized as having one or more deficiencies such as being unstable or subject to periodic speed variation or hunting under certain speed,- demand or load conditions; inability to reliably or promptly respond to varying demand or load conditions; requiring extensive memories to store multidimensional tables; requiring extensive data generation efforts; and/or other deficiencies. Fuel controls for engines can generally be categorized as either "min-max" or "all-speed" systems. In min-max systems, such as in the above-mentioned prior art mechanical governor control system, the accelerator pedal controls the quantity of fuel delivery, or fuel pump rack position, between minimum (idle) and maximum levels which are determined by the governor in response to engine speed. In all-speed systems the accelerator pedal position corresponds to an engine speed and fuel delivery is varied to achieve that engine speed. For most vehicles such as automobile or truck applications, the min-max systems are preferred. Prior art attempts to implement electronic or computerized controls for fuel controlled engines, such as diesel engines, and which provide acceptable vehicle driveability throughout the necessary entire wide range of driver and traffic requirements and within the constraints imposed by the engine design and the government emission requirements have generally been unsatisfactory. These OMPI prior art control systems generally have been subject to one or more deficiencies such as requiring an impractical large amount of expensive electronic equipment often too large, to readily fit in available space within the truck, not being able to provide acceptable speed control throughout all of the many transient operating modes common to the operation of a truck, producing periodic speed variation (hunting) or surging in speed particularly at low speeds, resulting in engine stalling due to speed undershoot at low speeds, resulting in engine damage due to overspeeding such as that caused by overshoot, being undesired all-speed systems, being unsuitable for high pressure injection systems, etc. Also, the prior art electronic or computerized controls wherein an engine is controlled by movement of a control member, for example the movement of a fuel control rack in a fuel pump, generally require sensing facilities for determining the positions of the control members to provide feedback to control movement. Where accurate positioning is required, such as is needed to control maximum power or torque in a diesel engine, the feedback systems generally must be relatively expensive high precision systems and/or require extensive calibration procedures during engine testing. Fuel economy in prior art fuel control systems has been maximized by electrical, pneumatic and/or mechanical controls on the fuel pump governor operated by switches sensing gear shift position to limit fuel flow in one or more gear positions. Such prior art fuel maximizing systems have been relatively expensive as well as being susceptible to disablement and unreliability. Summary of the Invention The invention is summarized in an electronic control which provides substantial improvements in * management or control of prime movers or engines by including one or more features or aspects such as controlling the engine in OMPI accordance with a computed rate-of-change in engine speed; employing zero position control member recalibration; automatically returning a control member to zero position upon power failure or cutoff; using different maximum power curves for different conditions; using multiple ranges in sensing speed wheel slots or teeth; measuring speed wheel movement through an angle of rotation corresponding to an integer multiple of the angle of engine rotation between cylinder firings; using an extended speed measuring time for slow engine speeds; critically dampening control member •movement by reducing a proposed movement parameter ijα accordance with a fraction derived from a difference between a previous condition value and a present condition value; recording critical events such as excessive overspeeding, tampering, or other event; providing manually selectable low idle speed adjustment; restricting operation to a lower torque and power upon sensing of an attempt to tamper with set parameters; and/or other features as described in the following description. An object of the invention is to construct an electronic control for engines and the like providing improved reliability, response, and flexibility. It is also an object of the invention to eliminate the requirement to stockpile many different controls, such as governors and fuel pumps, in order to meet the demand for engines with different operating characteristics. Another object of the invention is to eliminate tendencies of electronic controls to overrun demanded engine speed,- fuel flow or air flow conditions. ^ Still another object of the invention is to substantially reduce costs by substituting inexpensive and reliable electronic control components for more expensive mechanical controls. One advantage of the invention is that a single standard electronic or computer control can be substituted for multiple different mechanical controls required in the prior art. OMPI Another advantage of the invention is that substantially less adjustment and testing is required to order to manufacture an engine of desired operating parameters. A further advantage of the invention is that pollution emission control can be achieved, for example by controlling the rate of fuel increase, by computer memory parameters which are relatively insusceptible to being removed or disabled and which require less manufacturing tolerance enabling greater maximum acceleration. In accordance with ne aspect of the invention, an electronic control for an engine utilizes rate of change values in order to control operation of an engine. An actual measured rate of change in engine operation may be substracted from a desired rate of change in order to produce a to be effected rate of change which can then be readily translated into a change in engine operating conditions necessary to bring about a desired future engine condition. This, for example, prevents increase in fuel supply to an engine which is already accelerating at a maximum acceleration rate to reduce any overshoot tendency. In a second aspect of the invention, the lesser of a desired fuel flow value, as produced from a demand such as accelerator pedal position, and a maximum fuel flow value, as read from stored maximum power parameters is utilized to limit any increase in fuel flow in accordance with a desired acceleration in engine speed. In a third aspect of the invention, a rate of change value selected from parameters stored in a computer memory is critically damped by multiplying the rate of change value by a fraction which is proportional to the difference between a desired engine condition and a present engine condition within a predetermined range of differences. This * substantially prevents overshoot and results in dampening when engine conditions, such as speed, near the desired value. O PI In a fourth aspect of the invention, a control member is limited by a stop at a calibration position, and a computer program operating a computer provides for return of the control member to the stop and calibration position, when acceptable, to bring about recalibration of the control member position. This automatic recalibration eliminates the need for relatively expensive feedback systems and the like necessary in the prior art to operate control members, and makes possible the computer operation of a simple stepping motor combined with random access memory for storing a value corresponding to a number of forward pulses minus the number of reverse pulses applied to the stepping motor. This new control depending only on countable pulses for positioning a stepping motor relative to a mechanical stop in the pump to which the pump flow rates have become referenced in a calibrating procedure does not require further adjustments to compensate for manufacturing variations in governor components or to obtain specific fuel flows for different engine speeds. In accordance with a fifth aspect of the invention, an electronic engine control has a plurality of different sets of stored maximum power parameters within a memory. The computer selects one of the sets of maximum power parameters in accordance with a sensed parameter, for example in accordance with a particular engine identifying code, a sensed gear position of a transmission, or a condition indicating that someone has been tampering with the electronic control. In accordance with a sixth aspect of the invention, an electronic control for an engine provides for sensing the speed of the engine by a rotating member wheel having angularly spaced indications such as teeth or slots which are sensed by a computer counting a selected number of pulses, the number of pulses being counted being selected in accordance with a previous reading of the engine speed. Counting of less pulses is necessary for obtaining readings of speed at low engine speeds within allocated computer O./IPI time, and sensing of larger numbers of pulses at higher engine speeds obtains greater accuracy necessary at the higher speeds. In a seventh aspect of the invention, an electronic control for controlling an internal combustion engine having a plurality of cylinders which are successively fired includes a rotating disc with angularly spaced markers, such as teeth or slots, which are spaced so that an exact integer number of slots pass sensing means in each interval between successive cylinder firings, and pulses from -the sensing means are counted in numbers selected to correspond to an integer number of successive cylinder firings. Such correspondence between engine speed sensing and cylinder firing eliminates errors resulting from variations in instantaneous engine speed at each firing. In accordance with an eighth aspect of the invention, an electronic controller for an engine provides for engine speed measuring by counting a predetermined number of pulses from a sensor sensing the passing of indicating means such as teeth or slots or a rotating wheel wherein the pulses are counted by an interrupt procedure in a computer program called by a timer interrupt. The interrupt routine resets the timer and proceeds to count the pulses. If the selected number of pulses are not counted prior to a second interrupt, the counting period is extended. If a third interrupt occurs prior to completion of the counting, engine speed is determined by the number of pulses and pulse edges counted. This procedure ensures accurate and reliable engine speed data necessary for proper control of the engine. In accordance with a ninth aspect of the invention, engine operation is controlled by a computer sensing the position of accelerator means. Engine speed is controlled between a low idle speed which is manually selected from a plurality of possible low idle speed settings and a high idle speed preventing engine damage. In accordance with a tenth aspect of the invention, the reset of a computer controlling the operation of an engine and an initializing procedure is brought about by the sensing of a battery voltage below a predetermined value selected to be above battery voltage during initial starter motor energization but to be below battery voltage during subsequent engine rotation during starting. This has the added advantage of ensuring resetting and initializing of the controller in the event of power loss as well as at the initiation of a starting procedure. In accordance with an eleventh aspect of the invention, an engine control member is operated by an electrical rotary stepping motor driving a screw and a rotary return spring biases the stepping motor to retract the control member to a zero position. An electrical drive circuit applies electrical bias to the stepping motor to hold the stepping motor against the spring bias so that upon loss of electrical power the control member is returned to the zero position. Disablement of the electronic control is discouraged by the automatic return of the control member to the zero position. In accordance with a twelveth aspect of the invention, an electronic computer control includes an electrically eraseable programmable read only memory device together with a program for recording a significant engine event in the device. Significant engine events may include a sensed tampering, an engine damaging overspeed condition, engine run time, or other condition or event. In accordance with a thirteenth aspect of the invention, stored memory parameters corresponding to advance and retard control rates are selected in accordance with a demand value being greater or less, respectively, of an existing engine operating value, for example an accelerater pedal position being greater or less than a corresponding fuel pump rack position. The use of separate advance control rate parameters and retard control rate parameters enables proper advancement or retraction of an engine operating parameter, such as fuel flow, by the appropriate value, and enables limits such as high and low idle limits on the corresponding advancement and retraction. Additional features of the invention include the automatic cutoff of fuel during loss of electrical power or excessive engine speed, the inexpensive incorporation of automatic engine speed or cruise control without requiring additional control devices, maximum fuel cutback for operation at higher altitudes, critically dampening rate of fuel change at minimum and maximum engine speeds, and electronic control for special functions such as engine braking, power takeoff, or turbo unload. Other objects, aspects, advantages and features of the invention will be apparent from the following description of the preferred embodiment taken in conjunction with the accompanying drawings. Brief Description of the Drawings Fig. 1 is a diagramatical, sectional illustration of a portion of a truck with a diesel engine and electronic control in accordance with the invention. Fig. 2 is a graph of the battery voltage during starting of the engine of Fig. 1. Fig. 3 is a sectional view of an assembly for replacing the governor on a diesel injection pump. . Fig. 4 is a schematic diagram of an electronic control system for a diesel engine in accordance with the invention. Fig. 5 is a detailed diagram of a portion of the electronic control shown in Fig. 4. Fig. 6 is a logic flow diagram for a first portion of a computer program for controlling the electronic fuel control in accordance with the invention. Fig. 7 is a logic flow diagram of a second portion of the program for controlling the electronic fuel control. -flJRE OMPI Fig. 8 is a logic flow diagram of a third portion of the computer program for controlling the electronic fuel control_, Fig. 9 is a logic flow diagram of a diagnostic portion of the computer program for controlling the electronic fuel control. Fig. 10 is a logic flow diagram of a first portion of a computer program subroutine for obtaining engine speed and accelerator pedal position. Fig. 11 is a logic flow diagram of a second portion of the computer program subroutine for obtaining engine speed and accelerator pedal position. Fig. 12 is a logic flow diagram of a computer program subroutine for detecting a negative voltage edge from a speed sensor. Fig. 13 is a logic flow diagram of a computer program subroutine for detecting a positive voltage edge from a speed sensor. Fig. 14 is a logic flow diagram of a modified portion of the- computer program in Fig. 6. Fig. 15 is a logic flow diagram of a modified portion of the computer program in Fig. 8. Fig. 16 is a graph with four curves illustrating stored data of maximum permissible rack advancement under respective different operating conditions for varying engine speed. Fig. 17 is a graph illustrating stored data of speed control rate of change in engine speed relative to a special or set engine speed. Fig. 18 is a graph of stored data corresponding to permissible rate of change in rack position within a defined range of rack positions to maintain acceptable exhaust emission levels. Fig. 19 is a graph illustrating stored data of permissible rate of change in rack position within a defined range of rack positions and relative to boost air pressure which may be used as an alternative to the data of Fig. 16. Fig. 20 is a graph illustrating stored data of requested rack position corresponding to detected accelerator position. Fig. 21 is a graph illustrating stored data of permissible advance control rate relative to existing engine speed. Fig. 22 is. a graph illustrating stored computer data of permissible retard control rate relative to existing engine speed. Fig. 23 is a graph illustrating stored computer data of permissible rack steps per program cycle for the difference between desired rate of change of engine speed and the measured actual rate of change of engine speed. Fig. 24 is a graph with four curves, two curves of maximum horsepower of respective engines and two curves of maximum torque of the respective engines. Fig- 25 is a graph with two modified curves, one of a modified maximum horsepower range and one of a modified maximum torque range of an engine. Description of the Preferred Embodiment As illustrated in Fig. 1, one embodiment of the present invention includes a truck indicated generally at 30 having a diesel engine 32 with a fuel pump 34 which directs diesel fuel to the respective cylinders of the engine 32. The conventional governor of the pump 34 is replaced by a fuel control unit 36 which is connected by a multiple conductor cable 38 to an electronic unit 40. An accelerator pedal 42 is suitably linked to a potentiometer 44 which is connected to the electronic unit 40 along with a control panel 46 mounted on the dash within the cab of the truck. Additionally, a temperature sensor 48 is mounted in the exhaust pipe 50 of the engine 32, an air pressure sensor 49 is mounted in the engine intake manifold 51 charged by turbo charger 52, a fuel temperature sensor 53 is suitably mounted in the pump unit 34 for sensing fuel temperature, and an electrically controlled timing advance control unit 52 is included in the drive for the pump 34, all connected to the electronic unit 40. The electronic unit 40 in response to sensing the position of the accelerator pedal 42 and other operating conditions operates the fuel control unit 36 to control the quantity of fuel dispensed by the pump 34 to the cylinders of the diesel engine 32 to control the engine. As shown in Fig. 3, the fuel pump 34 contains a rack member 54 extending into the control unit 36 and which is movable in an advance direction, to the right as viewed in Fig. 3, to rotate helix sleeve members (not shown) variably closing side ports of piston pumps (not shown) for supplying corresponding variable quantities of fuel to the corresponding cylinders of the diesel engine in a conventional manner. When the pump rack 54 is moved to the extreme left as viewed in Fig. 3, the pump helix members are rotated to expose the piston side ports for the full piston stroke to terminate fuel flow to the engine. A stepping motor 56 mounted in the unit 36 rotatingly drives a screw 58 on which a arm member 60 is threaded. A shaft 62 has one end fastened to the protruding end of the rack 54 and has its other end slidingly passing through a bore in the arm member 60. A compression spring 64 extending around the shaft 62 engages the arm 60 at one end and engages a collar 66, which is mounted on the shaft 62 for urging a stop member 68 mounted on the end of the shaft 62 protruding from the rear of the arm 60, into engagement with the arm 60. A return rotary spring assembly such as a spiral clock spring 70 has its spring attached at one end to the shaft 63 of the motor 56 and has its other spring end attached to the spring housing which is secured against rotation, for example by pin 65. The spring 70 is wound to bias the shaft 69 to return screw 58 and arm 60 to the retracted position to retract the pump rack 54 when electrical power is removed or lost from the motor 56. f C PI A housing wall 67 separates and seals off the area containing the member 60 and screw 58 to prevent oil from bathing the electrical components. The member 60 and screw 58 are preferable formed from a non-magnetic material, such as aluminum and/or non-magnetic stainless steel, to prevent attraction of iron filings and the like which could cause the member 60 to bind on the screw 58. A screw 69 is secured in a suitable threaded bore in the pump housing and has a pin end which extends into a slot 71 formed in the rack 54 for limiting rack movement between zero and maximum fuel flow positions. The pin 69 and slot 71 are conventional features on prior art fuel pumps; however prior art mechanical governors generally employ a separate stop and/or cams for limiting rack movement between low idle and high idle fuel flows. These prior art stops and/or cams require extensive adjustment procedures during final engine testing and which are eliminated by the present electronic control which utilizes the conventional rack stop 69 as a reference point for rack movement and calibration. The spring return 70 ensures that the rack 54 returns to the stop 69 and zero fuel flow upon engine shutdown or upon any loss of electrical power since the stepping motor 56 must be maintained in an energized condition in order to overcome the bias of the spring 70 and hold the rack 54 in a fuel flow condition. Prior art fuel flow cutoff to cause engine shutdown generally required separate facilities such as a pull wire or an electrical or pneumatic control to override the governor and return the rack to its zero fuel flow position. The unit 36 also contains a sensor such as a Hall effect sensor 72 which generates a magnetic field and detects changes in field strength from angularly spaced markers or slots in a disk 74 to produce corresponding voltage changes in a signal produced by the sensor 72. The disk 74 is mounted on the end of the cam shaft 76 which operates the pumps in the pump unit 34. The cam shaft 76 is normally driven by the crank shaft of the diesel engine 32 to operate the pump 34 and pump fuel to the engine cylinders in synchronism with rotation of the engine crank shaft (not shown), the relative timing of cam shaft 76 is adjusted by the advance mechanism 52 of Fig. 1. The number of markers or slots in the disk 74 is selected to produce the same integer number of pulses from the sensor during the interval from each cylinder firing to the next cylinder firing. This number is particularly selected to be an integer multiple of the number of cylinders; e.g. for a six cylinder engine the disc 74 has 6, 12, 18, 24, or nx6 evenly angularly spaced slots or land areas between slots so that an integer number of teeth or slots pass the sensor between successive cylinder firings. Larger numbers of slots or teeth reduce RPM measurement latency in engine speed readings, but the number of slots is limited by the .ability of the sensor 72 to detect the slots or teeth. In one embodiment, a disk about 4.2 inches (105 mm) in diameter having 18 slots or teeth has been found suitable. Producing the same integer number of pulses over each interval between cylinder firings enables counting of a corresponding integer number of pulses to avoid speed measurement variations due to instantaneous acceleration during each cylinder firing. Additionally the unit 36 contains a circuit board 80 which includes suitable electronic circuitry including a read only memory (ROM) 82, Fig. 4, which contains data regarding the engine type and, additionally if needed, calibration data of the particular fuel pump 34. The circuit board 80 further includes conventional circuitry (not shown) for reading the data from ROM 82, for example a register for reading the ROM and serially outputting the data in response to clock pulses. The electronic fuel control, as shown in Fig. 4, includes a computer facility 84 adapted to read the information from the ROM 82 and additional ROM 86 containing additional data for operating the fuel control. The potentiometer 44 sensing the position of the foot throttle 42, the thermocouple 48 sensing the exhaust temperature, and the fuel temperature sensor 53 are joined by analog signal conditioning circuitry 90 to the computer unit 84. Similarly the Hall effect pickup 72 for sensing engine speed is connected by digital signal circuitry 92 to the computer unit 84. Additionally analog sensing devices connected by the circuitry 90 to the computer 84 include a booster pressure sensing facility 94, a barometric pressure sensing facility 96, and an ambient temperature sensing facility 98. Additional digital inputs include a cruise set switch 100, a cruise cancel switch 102, an engine- brake mode set switch 104, a start switch 106, a stop switch 108, a brake pedal switch 110, and a clutch pedal switch 112 connected by the digital signal conditioning circuitry 92 to the computer circuitry 84. A pickup device 114 may be included to detect road speed, for example, a timing disc or gear 116 driven by the output of the transmission. A switching facility, such as a thumb wheel switch 118 or the like, is connected to the digital circuitry 92 enabling the idle speed to be set for the engine; this enables selection of the optimum or desired engine idle speed. An output of the computer circuitry 84 operates a driver circuit 122 which drives the stepper motor 56; the driver 122 supplies sufficient electrical holding current to the stepping motor 56 to hold the motor 56 against the bias of the spring 70 until power is cut off. Additional computer outputs may be connected to an engine brake solenoid driver 124 which drives a solenoid valve 126 operating a conventional engine brake facility such as DYNATARD™ system from Mack Trucks, Inc. A timing actuator driver 128 operates a stepper motor 130 which controls the advance mechanism or timing actuator 52. The output of the computer circuitry 84 also is applied by communications interface circuitry 136 generating serial outputs which go to receiver-driver circuitry 138 operating the dashboard display 140 and to a diagnostic monitor 142 which is only connected to the unit during diagnostic testing or setup of the system. Optionally the serial output to the diagnostic monitor 142 from the interface 136 may be connected to the transmission 144 for sensing its operation and/or for controlling the operation thereof. When the diagnostic monitor is connected to the system a connection is also provided to the digital circuitry 92 for appropriately indicating the diagnostic condition to the computer circuitry 84. Starting voltage detection facilities such as a voltage comparator 146 is connected between the 12 volt battery and reset circuitry for the computer circuitry 84 to initialize operation thereof. Referring to Fig. 2, the battery voltage, as illustrated by the curve 148, initially drops to a low voltage of about 5 volts during a starting cycle. After cranking movement of the engine has been initiated, the battery voltage will increase above the initial low level value until the engine starts. The reference voltage to the voltage comparator 146 is set to detect the initial low voltage during the beginning of cranking to operate the reset of the computer circuitry 84. Additionally the computer will be reset every time the 12 volt voltage is turned off by the operator key. Thus every time the engine is started the computer circuitry 84 is reset. Operation of the stop switch 108 initiates a stop procedure for the control. In addition to, or in place of, the stop switch 108, switch 12v power from the key switch 149 connected to the digital conditioning circuitry 92 is used to indicate a stop condition to the computer circuitry 84. Power conditioning circuitry 150 is operated by the computer circuitry 84 when the stop condition is sensed, to turn off power to various circuits to conserve battery power. The spring return 70, Fig. 3, returns the rack 54 to the zero position to terminate fuel flow and to stop the engine. A detailed diagram of the circuitry of the processing computer 84 as well as the analog circuitry 90 and digital circuitry 92 is illustrated in Fig. 5. The computer includes a microprocessor 152 such as Intel 8051 which has 5 address outputs connected to an address bus 154 and input/output lines connected to data bus 156. The address lines 154 are connected to address inputs of the eraseable programmable read only memory (EPROM) 86, system ROM 158, random access memory (RAM) 160 for stack and scratch pad 10 purposes, electrically eraseable programmable read only memory (EEPROM) 163 and a decoder chip 162 utilized for enabling various components. The data bus 156 is connected to data inputs and/or outputs of the EPROM 86, the ROM 158, the RAM 160, EEPROM 163, command register 164, status 15 registers 166 and 168, eight-digit analog to digital converter 170, universal asynchronous receiver/transmitter (UART) 172, and digital input/output port chip 174. Outputs of the decoder chip 162 are connected to enable inputs of the EPROM 86, ROM 158, RAM 160, command register 20. 164, status registers 166 and 168, the UART 172 and the digital input/output port chip 174. An analog multiplexing chip 176 has inputs from the throttle potentiometer 44, the boost pressure sensor 94, the exhaust temperature sensor 48, a fuel temperature sensor 53, ambient temperature 25 sensor 98, barometric pressure sensor 96 and the battery voltage. Address inputs of the analog multiplexer 176 are controlled by the command register 164 to apply the corresponding input to an output line connected to the analog-to-digital converter 170. The status digital output 0 ' of the analog-to-digital converter 170 is connected to data inputs of the status register 166. The serial input/output of the UART 172 is connected by multiplexer 180 to the monitor 142 or transmission 144, and the dashboard 140. One output of the digital input/output device 174 controls 5 communication port selection by multiplexer 180 to the UART 172. Additionally digital outputs of the UART 172 are connected to data inputs of a status register 168. The inputs from the engine speed sensor 72, road speed sensor 114, start switch 106, stop switch 108, cruise set switch 100, clutch pedal switch 112, brake pedal switch 110, engine brake mode switch 104 and diagnostic mode switch 142 along with a serial calibrating word generator 184 are connected by the digital input output ports 174 to the data bus 156 for use by the CPU 152. A program for operating the fuel control system is illustrated in Figs. 6, 7, 8, 9, 10, 11, 12 and 13. Initially with the power off, the microprocessor 152 is stopped by the signal applied from voltage comparator 146, - Fig. 4 to the reset input of the processor. When the power is turned on, the microprocessor resets to point A, Fig. 6, in the program which is the power-on step 202. From power on, the program proceeds to an initializing system step 204 where various initializing procedures are performed. These initializing procedures include the turning of the power conditioning circuit 150 on, the resetting or zeroing of various parameters stored in RAM, resetting digital input and output ports and UART devices, setting up a timer and timer interrupt for a 50 millisecond cycle, and applying a series of retract pulses to the stepping motor 56 to ensure that no fuel is being pumped to avoid any runaway condition of the diesel engine. After the system has been initialized, the program proceeds to step 206 where the data in the ROM 82 containing calibration factors and the engine type are read by the microprocessor and used to establish data tables in RAM 160 or to set up pointers to the appropriate tables. The tables for various engine types are found in EPROM 86, and the appropriate data corresponding to the engine type identified by the ROM 82 is utilized in setting up or identifying the appropriate data tables. In one embodiment which does not include the EEPROM 163, the appropriate tables for the identified engine are read from EPROM 86 and stored in a base file in RAM 160 each time that the program passes through step 206. These include data tables ^T E Λ OMPI represented by one or more maximum power curves 220 (Fig. 16), speed control curve 312 (Fig. 17), advance rate control curve 300 (Fig. 21), retard rate control curve 304 (Fig. 22) and allowable steps curve 320 (Fig. 23) as well as other data. The copying can include two or more maximum power curves 220 for operating a vehicle in corresponding different gear ranges. The calibration factors stored in the ROM 82 are utilized to adjust one or more of these data tables in RAM in accordance with the particular characteristics of engine 32 and the pump 34 as determined in calibrating and testing of the engine and pump during manufacture. For example the maximum rack positions of curve 220 in the base file may be adjusted up or down by a small factor, such as one or two percent, where the calibration factors indicate such adjustment is to be made. Additionally the system will read the idle set word facility 118 to set the low idle speed information in the tables, for example the speed values in the table represented by curve 304 in Fig. 22 are adjusted so that the low idle RPM 305 will be in accordance with the idle word read from device 118. In another embodiment utilizing the EEPROM 163, the sensing of a zero state in the EEPROM corresponding to the absence of a stored engine identification code causes the program, on a first use or test of the control, to read the appropriate tables from EPROM 86 and write them in a base file in EEPROM 163 along with the engine identifying code. On subsequent runs or startups, the program compares the engine identification code in EEPROM 163 with the engine identification code in ROM 82, and if they do not coincide, the program rewrites the EEPROM 163 with the tables relating to the lowest power curves as well as recording an indication in EEPROM 163 that there has been tampering. This is designed to discourage tampering by changing the engine identifying code in ROM 82. The storage of different data tables in EPROM 86 for the different engines enables use of a single computerized ξjRΪ OMPI circuit for different engine types and different pump types. The only difference between control systems for the different types of engines and different types of pumps will be the information which is stored within the ROM 82 which may be preset or set during final engine test. After the data tables have been set up in step 206, the " program proceeds to 208 where the presence of a valid engine speed reading, for example by means of a flag, is detected. If an engine speed reading has not been made since initialization of the system, the program recycles through step 208 until such a reading is made. A subroutine for determining engine speed is illustrated in Figures 10 and 11, and is called by means of an interrupt generated by the computer timer every 50 milliseconds. The subroutine starts at 402 proceeding to step 404 where the computer timer is reset to count down for another 50 second period. In step 406 a one byte memory location is incremented to keep count of the number of 50 second intervals which have been called. If a stepping motor busy flag is set indicating that the computer is advancing or retracting the stepper motor 56, the program in step 408 will return to the stepping motor operating procedure. In the next step 410, an RPM busy flag is sensed; the RPM busy flag indicates that the computer is in the present subroutine doing a reading of the engine speed which can take longer than the 50 millisecond period of the computer timer. When the RPM busy flag is clear, the program proceeds from step 410 to step 412 where the program reads the accelerator pedal position. In the next step 414, the RPM busy flag is set, and timer read, timer up, dual cycle and retime flags are cleared. The elapsed time from the last RPM reading as indicated by the last recorded setting of the RAM counter of step 406 and the present reading of the counter of 406 is calculated in step 416 for later use in determining an acceleration value. Steps 418 and 420 are employed to selectively branch to step 422, 424 r or 426 depending upon whether the last RPM reading was less than 1200, between 1200 and 1800 or greater than 1800, respectively. The slots in the disk 74 of Fig. 3 pass the sensor 72 at different rates for different RPM, and it is desirable to count more slots in order to obtain more accurate speed readings, but at lower speeds the counting of a larger number of slots cannot be performed within allocated computer time, i.e. within the 50 ms time period leaving sufficient time to proceed through the main program. Thus at higher RPM, step 426 sets the count at 9 slots or teeth, at RPM between 1200 and 1800, step 424 will ' set the program to count only 6 slots, and in step 422 the program is set to count only 3 slots. The number of teeth to be counted is selected to correspond to an integer number of cylinder firings so that each counting period will extend over the same corresponding number of cylinder firings. For example in a six cylinder engine with a timing disk having 18 slots, the count must be an integer multiple of 3, i.e. 3, 6, 9, etc. This prevents the speed readings from varying due to acceleration and deceleration occuring during and before each cylinder firing. From steps 422, 424 or 426 the program proceeds to step 428 where the RPM count and edge indications are cleared. In step 430, the presence of a relative negative signal from the sensor 72 of Fig. 3 results in the program proceeding to step 432 and the presence of a positive signal from sensor 72 results in branching to the step 434. In steps 432 and 434 the program detects positive and negative edges of voltage change, respectively. Subroutine procedures for detecting the negative and positive edges of voltage from the sensor 72 are illustrated in Figs. 12 and 13, respectively. In step 436, the program continuously recycles until the voltage becomes positive whereupon the program then proceeds to cycle through steps 438 and 440. In step 438 the passage of a time of less than 48 microseconds from the detection made in step 436 results in the program proceeding to step 440 where the existence of positive signal from the sensor 72 is detected to return the program to step 438. If the positive signal is not detected in step 440, the program reverts to step 436 indicating that the positive signal was due to spurious noise or signals picked up in the leads or other equipment. If the positive signal is maintained for more than 48 microseconds, the program proceeds from step 438 to step 442 where the edge is set and the program returns to the calling procedure. The steps 444, 446, 448 and 450 of the subroutine- of Figure 13 are substantially similar to the corresponding steps 436, 438, 440 and 442 of Fig. 12 except that in steps 444 and 448 a negative voltage is detected rather than the positive voltage of steps 436 and 440. The procedures of Figs. 12 and 13 substantially reduce false RPM readings due to spurious voltage signals. The branching from step 430 enables use of alternative procedures for using either the leading or trailing edge of timing wheel slots or teeth to count the slots or teeth. Positive going pulse edges will be used if the next edge to be sensed is a positive going edge, and negative going pulse edges will be used if the next edge to be sensed is a negative going edge. At low engine speeds, there is a large time period between negative and positive going pulse edges. The use of alternative procedures reduces the time needed for speed measurement by eliminating the need to wait past the next pulse edge if it is the wrong polarity to begin the count. From step 432 of Fig. 10, the program proceeds to step 452 where the start time of the edge or slot counting procedure is stored. In the next step 454, a true retime flag recycles the program through step 452; the retime flag indicates that the program was interrupted while in the process of reading the time in step 452 thus necessitating that the start time be reread. If the retime flag is clear, the program proceeds to step 460 where the subroutine of Fig. 12 is called to detect a negative edge and then to step 462 where the subroutine of Fig. 13 is called to detect a positive edge. From step 462, the program goes to step 464 where the RPM count is incremented and the number of counts to be made is decremented. In the following step 466 if the number of counts to be taken is greater than zero, the program proceeds back to step 460 to detect another count. The procedure from step 434 of Fig. 10 includes steps 468, 470, 472, 474, 478 and 480 substantially similar to the corresponding steps 452, 454, 460, 462, 464 and 466 except that the steps 472 and 474 detect positive and negative edges respectively rather than the negative and positive edges of the steps 460 and 462. After the program has completed the count, it proceeds from step 466 or step 480 to step 482 where the elapsed time is calculated by the stop time minus the start time plus the time represented by the number of 50 millisecond cycles that have transpired from the beginning of the read cycle. In step 484 the computer calculates the RPM based upon the count and the elapsed time. The following steps 486 and 488 detect an RPM reading between 400 and 2500 RPM to branch to step 490 where the present RPM reading is averaged with a value corresponding to a last RPM calculation. This previous RPM value is multiplied by a value RPM avg in order to reduce the weight given to the present reading and to reduce variations in RPM readings resulting from slight dimensional variations of the slotted disk 74. If the RPM reading is less than 400, the engine is in a starting mode accelerating rapidly so that the RPM need not be averaged, and if the RPM is greater than 2500, the RPM is above the maximum speed limit at which the engine can be operated without damage and averaging should not occur to lower the RPM reading and prevent immediate remedial action by the program. From step 490 or steps 486 and 488, if the RPM is less than 400 or greater than 2500, the program proceeds to step 492 where acceleration is calculated based upon dividing the difference between the current RPM and the previously calculated RPM by the elapsed time determined in step 416, i.e. the sum of the 50 ms time periods that have elapsed between the start of the previous and present readings. From step 492 the program proceeds to step 494 where the RPM busy flag is cleared and the program returns to the calling procedure. Referring back to Fig. 10, the program in step 410 will detect a busy flag as set by step 414 indicating that the program was in the process of conducting an RPM reading when the timer interrupt occurred*. This occurs at low RPM rates less than about 400. If the RPM flag is busy the program proceeds to step 500 where the presence of a dual cycle flag set in step 422 is detected. When the dual cycle flag is true, the program proceeds to step 502 where this flag is cleared and then to step 504 where a RPM timer read flag is detected. The timer read flag is set after completion of successful read of the clock in step 452 or 468. If the program had proceeded past steps 452 or 468 during the initial read, the program returns to the point of interrupt to allow the detection of additional edges for an additional 50 millisecond period. This enables a reading over a 100 millisecond period at low RPMs to obtain a more accurate RPM reading. If the timer read flag is found false in step 404, the program proceeds to step 506 where a timer in progress flag is detected. The timer in progress flag is set at the beginning of the steps 452 and 468 indicating that the program is reading the start time. If an interrupt occurs in the middle of one of the timer reading cycles 452 and 468, the reading or start time can be false thus giving an erroneous RPM reading. Thus if the timer in progress flag of step 506 is true, the program proceeds through step 508 where the retime flag is set causing the program in steps 454 and 470 to return to steps 452 and 468 to reread the start time prior to continuing with the sensing of additional edges. From step 506 or 508 the program proceeds to step 510 where elapsed time is set to 50 milliseconds and the start time is set to zero prior to executing a return to the program at the point of interrupt. If another interrupt occurs prior to the program passing the step 494 where the RPM busy signal is cleared, the program in step 500 will branch to step 512 where a calculation of RPM is made by any count which may have been read and any edges that may have been sensed. This calculation will represent a rough estimate of a very low RPM. Actual rate-of-change or acceleration will also be set to zero since at low RPM wide inaccuracies in the acceleration values would result in incorrect to-be-effected rate-of-change values. In step 512 it is also necessary for the program to pull the stored interrupt data from the stack so that upon passing from step 512 to a return from interrupt the program may exit from the subroutine of Figs. 10-13 and return to the point of the original interrupt in the main program. Referring back to Fig. 6, the sensing of a valid RPM reading in step 208 permits the program to proceed to step 210 where the program recycles to step 208 until engine speed is greater than zero. Once the engine begins to rotate during starting or cranking and an engine speed greater than zero is detected, the program proceeds to step 212 where a number of pulses, previously determined in accordance with data established from step 206, are applied to advance the stepping motor 56 and the rack 54 to initially begin feeding fuel from the fuel pump to the en ine. With fuel being supplied to the engine, the program has reached point B which is the point at which the program begins recycling through normal operating procedures. The first step 216 in the normal operating cycle is to test for a valid RPM or engine speed reading. Normally this reading will be valid, but at later steps in the program, the valid RPM reading flag may be invalidated to force a new RPM reading prior to cycling through the program. OMPI In step 218 the operating parameters of the program are set up. The engine operation is controlled under maximum rack or fuel characteristics found in a working or second file in RAM. This maximum fuel working file is set up initially by copying data as represented by curve 220 from the base file established in step 206, and is similarly set up again in subsequent passes through step 218 when an indicator or flag is sensed that the working file has.been changed and/or it is necessary to again set up the working file. Additionally where ' separate power curves are utilized for corresponding different gear ranges, the particular gear will be identified, such as from the road speed and engine speed readings (with a road speed greater than zero the ratio of road speed to engine speed can be used to determine the gear in accordance with stored parameters for the particular vehicle), and the appropriate maximum fuel data will be set up in the working file. Further requests for cancellation of a special speed mode, such as by sensing the operation of an appropriate switch (for example, operation of the cancel switch 102, the brake pedal switch 110 or the clutch pedal switch 112 requesting cancellation of the cruise control mode) cause resetting of the corresponding special speed mode flags. Referring to Fig. 24, there are illustrated a horsepower curve 520 and a torque curve 522 for an engine rated at 350 horsepower, and a horsepower curve 524 and a torque curve 526 for an engine rated at 285 horsepower. The two engines are identical except for the maximum fuel flow rates for different engine speeds programmed or stored in the memory of the electronic control. Utilization of engines in different applications, such as in different trucks, requires different horsepower and torque characteristics in order to produce the desired operating characteristics and fuel economy in the different applications. The maximum horsepower and torque of the engines are primarily determined by the maximum fuel quantity for different engine speeds as found in the working file data represented by the curves in Fig. 16. In the prior art this maximum fuel was controlled by the contour of the cam or cams limiting rack movement, but in the present control the maximum fuel is controlled by the stored data for different engine speeds. Some prior art truck applications require more complex and expensive transmissions such as ten-speed, twelve-speed or even eighteen-speed transmissions rather than the simpler five-speed transmissions due to a narrower range of engine RPM over which the higher torque and horsepower characteristics can be obtained within governmental emission standards and with desired fuel economy. At engine RPM below this range, the air supply rate from the turbo charger is insufficient to enable operation at higher fuel flow rates without violating emission standards, and at engine RPM above this range the engine resistance to higher air flow rates results in substantially increased fuel economy losses. The need to comply with government regulations and the desire to obtain greater fuel economy have resulted in restriction of engine operation to a narrower range of speeds necessitating employment of the more complex and expensive transmissions which also require considerably more operator effort or gear shifting during increase or decrease of road speed. The present employment of maximum fuel flow data in working memory which can be easily changed for different operating characteristics, such as different gears, enables the employment of a simpler, less expensive transmission, such as a five-speed transmission, in applications where more complex transmissions were previously required. Maxi¬ mum fuel flow data producing permissible extended ranges of engine operation can be used in the lower gears (first through fourth) during increase or decrease of road speed. OMPI and different maximum fuel flow data with a narrower permissible range of engine speed can be used for the highest gear (fifth) to permit high road speed operation at maximum rated horsepower and/or at maximum fuel economy. Additionally power and torque characteristics which could not be practically produced by prior art cam controls can be produced easily by appropriate stored data files. One such set of power and torque characteristics is shown in Fig. 25 made by combining acceptable point ratings from higher and lower horsepower and torque characteristics for the same engine to better exploit the maximum power and fuel economy capabilities of the basic 'engine when using the five-speed transmission. These particular characteristics are readily obtainable with the electronic control and extremely difficult or practically impossible with mechanical cam controls. The next step 222 in Fig. 6 reads the temperature set by the exhaust temperature sensor 48 and if the temperature is below a temperature of about 300 β F (150°C) the program proceeds to step 224 where maximum rack advancement data in the working file (curve 220) is readjusted in accordance with curve 226 of Fig. 16. During cold operating conditions more fuel is required to bring about increase in engine speed, and a greater maximum rack position must be obtainable to enable operation without stalling. If the engine is warm, the program proceeds to step 228 where a request for road speed governor is detected or sensed. In the event that the governing of road speed is requested, the program proceeds to step 230 where the maximum rack position data (curve 220) in the working file is changed in accordance with curve 232 to limit road speed of the vehicle; this change may also be dependent upon obtaining the highest gear. The program proceeds to step 234 from step 224, 228 or 230 and sensing whether a diagnostic testing procedure is being done by the diagnostic request from terminal 142. If a diagnostic procedure is being followed, the program jumps to program point G and if no diagnostic procedure is being performed, the program proceeds to step 236 where the coincidence of an RPM reading of zero and an accelerator pedal position reading of zero are detected to proceed to point C in the program. In the event that either RPM or accelerator pedal are greater than zero, the program proceeds to step 238 where the engine speed is compared to an RPM of 2500 and if the RPM is greater than 2500, the program diverts to point C. At point C the program operates in the step 240 to zero the rack by applying a number of stepping pulses, i.e. present position +10 to the stepping motor 56 to retract the stepping motor and the rack 54 at the largest or fastest possible rate. This ensures that fuel flow to the engine is cut off in the event that the engine has stopped and there is no demand for fuel, or the engine is in a runaway mode where the RPM is greater than a safe level. From step 238 when the engine speed is within safe limits, the program proceeds to step 242 where a demand for shifting of gears is determined. If the accelerator pedal position is detected at zero, this is interpreted as a shift request and the program proceeds to step 244 where a determination is made of whether the rack can be set to zero. If the engine speed is above a minimum value (e.g. 800 RPM) and the rack is at a large enough dimension (e.g. 300 steps), then the program proceeds to point C in step 240 where the rack is moved to the zero position. Zeroing of the rack also brings about recalibration of the control. In one embodiment, the fuel control rack is movable through a range of about 0.7 inches (18 mm) in steps of about 0.001 inches (0.025 mm) for each step of the stepping motor. The position of the rack is indicated by a value stored in RAM, and this value is updated by adding the pulses applied to the stepping motor to advance the rack and subtracting the pulses applied to the stepping motor to retract the rack. Since the stepping motor may occasionally miss a step, the actual position of the rack may become out of correspondence to the position value stored in RAM. Thus by occasionally zeroing the rack, when permitted, with an excess of retract pulses (the rack is limited by stop 69 so that it cannot retract past zero position) and resetting the position value to zero, the position value will be automatically recalibrated. This enables the elimination of expensive position sensing and feedback systems from the present invention. If there is no shift request detected in step 242 or the engine speed is not above a minimum RPM, the program proceeds to step 246 where there is determined if the engine control is operating in an all-speed mode. The program can operate in either an all-speed mode, or a minimum-ma imum mode which are selected by the operator, for example by means of a minmax-all speed toggle switch (not shown) . Alternatively the all-speed mode may be selected by a flag or data bit stored in the data concerning the particular engine or may be called by a push button switch sensed to set an all speed flag. In the all-speed mode, the position of the accelerator pedal is interpreted as a demand for a special engine speed which is calculated in step 246 in accordance with the formula: selected speed = throttle percent times (high idle speed minus low idle speed) +- low idle speed. This special engine speed is used in a special speed mode by the program In the minimum-maximum mode, the position of the accelerator pedal is interpreted in later steps as a requested rack position setting and the program will operate to bring about or maintain the requested particular rack position setting as limited by other parameters. The minimum-maximum mode is similar to existing mechanical operated fuel control systems where the accelerator pedal is connected by linkage to the rack and the position of the pedal will thus determine the position of the rack. In step 248, the determination of a special speed mode request, such as an all-speed mode, a cruise control mode, a turbo unload mode, or a power takeoff mode, is made by sensing the operation of the corresponding switch or possibly flag in case of the all-speed mode, (only the cruise control set push button switch 100 is illustrated in Fig. 4). If there is a request for a special speed mode, the program will branch to step 250; this branching occurs during each program cycle in the all-speed mode and during initial requests in the cruise control mode, the turbo unload mode, or the power takeoff mode. In step 250 appropriate flags are set for the cruise control mode, the turbo unload mode and the power takeoff mode, and a corresponding special engine speed is determined and saved in memory for these modes. In the cruise control mode, the special speed is the present engine speed, and in the turbo unload and power takeoff modes, the special speed is found in the corresponding stored data for the particular engine. Additionally the-working file maximum rack position is adjusted for turbo unload and power takeoff modes in accordance with the curve 249, Fig. 16; generally less power is needed in these special modes. In step 252 following the step 250 the program sets up a special speed control rate working file based upon the special speed rate data (curve 312) in the base file. The special speed rate data in the working file is adjusted so that the zero rate (point 313, Fig. 17) corresponds to the special speed which was saved in memory in ' step 246 or step 250. The program will maintain the engine speed at this special speed. The program proceeds to point D, Fig. 7, from step 252 or from step 248 if there is no special speed control request. Steps 254, 256, 258, 260 and 262 concern operation of the engine brake mode and system, such as DYNATARD from Mack Trucks, Inc. In steps 254, 256, 258, and 260, the engine brake switch 104 must be detected as being closed, the throttle 42 must be in the zero position, the rack 54 must be in the retracted position, and the engine speed must be greater than 1000 RPM in order for the program to proceed to step 262 where the engine brake system is activated by energization of solenoid valve 126. The program proceeds to step 264 from step 262 or from any of the steps 254, 256, 258 or 260 if the conditions of such steps are not met. In step 264 a maximum rack position is calculated from the working file maximum rack data (curve 220 as may have been modified in accordance with curve 226, 232, or 249). This position determines the maximum fuel corresponding to maximum power or torque of the engine for the current engine speed. From step 264 the " program proceeds to step 266 where the present maximum rack position for the cycle RPM is - compared to a puff or emissions control limit dimension. When the rack is at a position greater than the puff limit, rapid increases in fuel, or advances in rack position, at a maximum permissible rate can result in the diesel engine producing excessive smoke emissions. This maximum rate is set by stored parameters, for example curve values for curve 320 in Fig. 23 where maximum steps allowed for the stepping motor are set at one hundred twenty-eight steps. At rack positions less than the puff limit, increases in fuel at the maximum rate may be required to bring about engine acceleration for minimum starting and shifting power, to avoid stalling and to enable truck operation. Also excessive smoke emissions are not produced at normal engine speeds when the rack position or fuel flow is increased at the maximum rate. If the maximum rack dimension is above the puff limit, the program proceeds to step 268 where the flags are sensed for special speed control operation. In special speed control operation the maximum rate of increase in fuel is already limited by a low stepping motor rate used during a special speed control mode, and thus there is no need to set limits for rack advancement. If the maximum rack position is below the puff limit in step 266 or a special speed control is detected in step 268 the program proceeds to step 270 where the maximum rack extension rate or normal stepping motor OMPI rate is set at the maximum. In the event that the step 268 does not detect a special speed request, the program proceeds to step 272 where a map for the rate of change of the rack position is set up for operation of the stepper motor 56. The possible maps are represented by the family of curves 274 of Fig. 18, these different curves being formed by adjusting a base curve or data in accordance with empirically derived formulas corresponding to engine types: Ri = τ- * £** (S, C, P, X, T T 2 , T 3 ) for d 0 -d d- ] R 2 = r 2 * f -\ (S, C, P, X, T 1 r T 2 , T 3 ) for d- j - d d 2 where d = Rack Position S = Current RPM C = Road Speed P = Boost Pressure X = RPM T- | = Exhaust Temperature T = Fuel Temperature T3 = Timing Advance Setting The base data includes maximum permissible steps of rack advancement for present rack position per program cycle, resulting in permissible rates of advancement of the rack within emission standards. This base data is adjusted in accordance with the above formulas where applicable. Alternatively rack advancement under puff limit controls can be set in accordance with the boost pressure sensor 94, or, for greater accuracy, the difference between the boost pressure sensor 94 and barametric pressure sensor 96, rather than engine speed. Maximum advancement for rack in accordance with puff limits are set in accordance with boost pressure as shown in curve 276 of Fig. 19 which may be a family similar to Fig. 18. In a further alternative the roadspeed from sensor 114 can be used to define a curve limiting rate of rack advancement. From step 270 or 272, the program proceeds to step 278 where the present exhaust temperature read from the thermocouple 48 is compared with a set point temperature, for example 1150°F (620 β C). Under heavily loaded conditions at high altitudes, the engine becomes excessively hot due to high fuel/air ratios so altitude compensation for avoiding overheating of the exhaust valves and turbocharger is necessary. ' If the temperature is greater than the set point, the maximum permissible position for the rack is readjusted in step 280 in accordance with the temperature to permit the engine to run at a lower fuel flow to cool the engine. In the next step 282 the value of the maximum rack position as adjusted for temperature is compared to a lower limit, which conveniently is the puff limit level, and if the maximum rack position is less than the lower limit level, the maximum value is set back up to the lower limit level in step 284. Thus the maximum rack position at excessive exhaust temperatures is linearly reduced, according to the amount by which the exhaust temperature exceeds the set point temperature, except that the maximum rack position cannot be reduced below the lower limit level, which in this example is the puff limit level. From the temperature compensation procedure, the program proceeds to the step 286 where a value of requested rack position is determined in accordance with the reading from the potentiometer 44 of the accelerator pedal. The requested rack position is a nonlinear function selected in accordance with the curve 287 as shown in Fig. 20. This curve is generally parabolic so as to permit greater operator control at low engine RPM to avoid hunting and oscillation by slight changes in accelerator pedal position. From step 286 the program proceeds to point E of Fig. 8. At point E in step 288 the special speed control flags are detected and if there are no special speed control requests, the program proceeds to step 290. In step 290 the requested rack position is compared with the present rack position. And if the requested rack position is less than or equal to the present position, the program proceeds to step 292. In step 292 the program advances to step 294 if the requested position is equal to the present position. In step 294 the present engine speed is compared to the low idle speed limit and if the present engine speed is greater, the program proceeds to step 296 where the present engine speed is compared to the hi-idle or normal maximum engine speed limit. If the requested position is greater than the present position or if the requested position is equal to the present position and the present engine speed is greater than the maximum or high idle speed, the program proceeds to step 298 where a advance speed control rate is selected from the data tables in accordance with curve 300 in Fig. 21. If the requested position is less than the present rack position, or if the requested rack position is equal to the present position and the engine speed is more than the low idle speed or less than the high idle speed, the program proceeds to step 302 where a retard speed control rate is determined from data in accordance with curve 304 in Fig. 22. Back in step 288, if a special speed control rate is determined, the program proceeds to step 306 where a test is made to determine if there is a cruise control condition and if so, the program advances to step 308. In the cruise control mode, the operator may depress the accelerator pedal to pass another vehicle. Such a request for passing is detected in step 308 and if so, the program proceeds to step 298 from step 308. If neither a cruise control condition exists in step 306 nor or a reques for passing exists in step 308, the program proceeds to ste 310 from step 306 or 308. In step 310 a special speed control rate is selected in accordance with the working file special speed rate data as set up in step 252 and as illustrated in curve 312 of Fig. 16. The datum as represented in curves 300, 304 and 312 are used to calculate a desired rate of change in speed of the engine in accordance with the present engine speed. The value of the rate of change may be positive indicating a desire to increase the present engine speed, may be negative indicating a desire to decrease engine speed, or may be zero indicating a desire to maintain the present engine speed. The zero rate on the special speed curve 312 is set at the special speed determined ' in step 246 or ' step 252, and ' a decrease or increase in present engine speed from the special speed results in a corresponding positive or negative desired rate of change in engine speed. For a requested advance in rack position or increase in fuel from either steps 290 or 308, a positive desired rate of change will be determined in accordance with curve 300 in step 298 except if the present speed is equal to or greater than the high idle speed which results in a zero or negative rate of change, respectively. For a requested retraction of the rack or decrease in fuel from step 292, a negative desired rate of change in engine speed will be determined in accordance with curve 304 in step 302 except that, if the present engine speed is equal to or less than the low idle speed, a zero or positive desired rate of change will result. Where no requested change in rack position is found, the rate of change will be selected from curve 304 in step 302 except, when the present engine speed is greater than the high idle speed, the rate of change is selected to be negative from curve 300 in step 298. The zero difference between requested and present rack positions will subsequently in step 316 result in a zero rate of change when the present engine speed is between the low and high idle speeds. From steps 298, 302 and 310 the program proceeds to step 314 where a. determination of a need to dampen the desired rate of change is made. The absolute value of the difference between the requested rack position and the present rack position is determined. If this absolute value is less than 100, the program proceeds to step 316 where the rate determined in step 298, 302 or 310 is multiplied by the absolute value divided by 100 to produce a dampened desired rate of change of RPM. This multiplication serves to critically dampen the rate of fuel change to avoid overshoot. An exception to this is in the event that the absolute value is zero and the engine speed is less than low idle or higher than high idle; then a false is found in step 314. From step 316 or from step 314 if false or the absolute value of the requested change in rack position is greater than 100, the program proceeds to step 318 where the speed control rate or desired rate of change in engine speed " and the actual measured rate of change in speed as determined in step 492 of Fig. 11 are utilized to select the steps to be moved-by the rack 54 in accordance with data as illustrated by curve 320 in Fig. 23. The determination of the number of steps to be made by the stepping motor in accordance with Fig. 23 is based upon the result of subtraction of the measured actual rate of change in engine speed from the desired rate of change in engine speed. This result or remainder may be positive or negative and may be larger or smaller than the desired and actual rates depending upon the magnitude of the desired and actual rates and whether they are positive or negative. Thus the result in step 318 could be a retraction of rack even though the desired rate of change in engine speed is positive in the event that the measured acceleration exceeds the desired acceleration, and vice versa for measured deceleration exceeding desired deceleration. Also the result value could have a magnitude equal to the sum of magnitudes of the desired and actual rates where these rates have opposite signs. This results, in effect, in the prediction and adjustment for future changes in engine speed to substantially reduce any tendency to overshoot a OMPI desired engine speed and to substantially stabilize the response of the electronic control to the demands made by accelerator pedal movement. Thus there is substantially eliminated any periodic change in engine speed due to hunting or unstable operation at all ranges of operation. Typical maximum steps are set forth in Table I. TABLE I Difference Steps (RPM/SEC) 0-60 1 60-119 2 120-239 4 240-349 8 350-499 16 500-749 32 750-999 64 1000+ 128 From the steps to be advanced or retracted determined in step 318, the program determines a new possible position L from the addition of the present position plus the steps determined in 318 within the step 322. The program proceeds to step 324, where the test used in step 290 is applied to determine if there is a requested rack advance or not. If there is a desired rack advance, the program proceeds to step 326 where the proposed rack position is selected to be the minimum of the value calculated in step 322, the value calculated in step 286 or the value selected in step 264 as may have been modified by step 280 or 284. In the event that there is no desired rack advance the program proceeds to step 328 where the proposed position of the rack is selected to be the maximum value of the values calculated in steps 322 or 286. From step 328 the program proceeds to step 330 where a determination is made if a zero rack position is permissible. A zero rack position will be permissible if the new rack position from step 328 is sufficiently low and the engine speed is above a minimum necessary to maintain engine operation. If the zero position is acceptable the program proceeds with step 332 where the proposed rack position is set at zero; the number of retract pulses to be set greater than the position value to bring about recalibration of the rack position. From any of the steps 326, 330 or 332, the program moves to step 334 where the least of the maximum number of pulses determined in step 272 or the required number of pulses to advance or retract the rack 54. to the proposed position are applied in the proper polarity to the stepping motor driver 122 and stepper motor 56. In a special speed mode, the maximum number of steps is limited by the program to a number below the minimum puff limit number from step 272. The new position is then stored in memory by adding or subtracting the corresponding number of advance or retract pulses from the present stored position, or by resetting the position value to zero if the rack was returned to the zero position by an excess of retract pulses causing recalibration. From step 334 the program proceeds to step 335 where a determination of the need to adjust timing is made. If true the timing or advance mechanism 52, Figs. 1 and 3, is operated in step 337. From step 335 or step 337, the program proceeds to step 336 where the displays, if present in the console 140 are updated or changed in accordance with current data. Then the program recycles to point B to begin another cycle. The stored parameters for the data of the various curves 220, 226, 232, 312, 274, 276, 287, 300, 304 and 320 require a relatively small number of stored values, particularly when compared with stored multidimensional tables utilized in prior art computerized control circuits. Only a point where a change occurs in a curve value need be identified by location and value. Linear interpolation is used to derive values between stored points. For example for a reading of maximum rack position or fuel flow corresponding to maximum power from curve 220 in Fig. 16 for an RPM of about 1000, the program begins at stored data point 450 comparing the associated stored RPM with the present RPM and proceeding to the next point 452 when the present RPM is less. This is repeated for points 452, 454 and 456 until point 458 is reached which is less than 1000 RPM. The ratio derived by the difference between the present RPM (1000) and the RPM at point 458 divided by the difference between RPM's at points 456 and 458 is multiplied by the difference between maximum rack positions at points 456 and 458 with the product being added to the maximum rack position of point 458 to derive the maximum rack position for 1000 RPM. The rack position curve as shown in Fig. 10 is represented by data stored for only eight points. Similar relatively small tables form the other data curves. This also makes possible the storage of a number of curves such as different maximum power curves which can be pointed to or transferred to a working area of RAM during running of the program. The diagnostic procedures are illustrated in Fig. 9. Instructions are entered into the program by the terminal 142 and after each instruction has been entered, the program proceeds to run serially through a series of steps as follows: Step 340 to test if diagnostic procedure is to be ended. Step 342 to determine if the stepper 56 operating characteristics are to be changed. Step 344 to determine if the advance speed control is to be changed. Step 346 to determine if the deceleration speed control should be changed. Step 348 to determine if the actuator 132 is to be oscillated or positioned. Step 350 to determine if operating parameters are to be displayed and step 352 to determine if any of the system - J l OMPI parameters or data within the RAM are to be changed and displayed. In the event that any of the steps 342, 344, 346, 348, 350 or 352 are called by the entered instruction, the diagnostic program proceeds with step 354, 356, 358, 360, 362 or 364 to perform the corresponding procedure called for. At the end of the diagnostic period as detected by the entered instruction to end the diagnostic period, the program proceeds to point A or a reset of the program. In modifications to the program as illustrated in Figs. 14 and 15 there is included a step 600 between the steps 238 and 240 wherein an excessive engine speed is recorded in the EEPROM 163. Operation of the engine at an excessive speed, such as can occur on a steep downgrade with a truck in an improper gear, can cause engine damage. Such excessive speed operation generally voids warranties of manufacturer regarding the engine, but excessive speed operation is difficult to prove. By making a record of such excessive speed operation, it can be readily determined if the engine was operated at an excessive speed. Steps 602 and 604 in Fig. 14 replace steps 242 and 244 of Fig. 6 when a transmission employing facilities for automatic shifting is employed in the vehicle, such as the transmission 144, Fig. 4. This transmission is conventional and can include its own electronic operating control to bring about the shifting operations. In step 602, the need for a transmission shift is determined, and if true, the program proceeds to step 604 where the engine control instructs the transmission control for the shift. Alternatively the program in step 604 may operate the transmission in a conventional manner without the aid of an electronic transmission control. The step 602 includes the necessary procedures for changing engine speed which can be in response to requests from the transmission control. In one embodiment of the electronic control, the engine is stopped by removing power from the control which results in loss of holding power for the stepping motor 56, Fig. 3. to permit the spring 70 to return the fuel control rack 54 to the zero position to terminate fuel flow causing the engine to stop. As an alternative, step 610 in Fig. 15 senses the operation of the stop switch 108, Fig. 4, or the turnoff of power by key switch 149 to branch to step 612 where the rack is returned to the zero position. From step 612, the program proceeds to step 614 where the engine run time is updated in EEPROM 163; the step 406 in Fig. 10 is modified to count an extended time period while the engine RPM is greater than zero. After updating the engine run time in EEPROM 163, the program advances to step 616 where the engine speed is monitored until it drops below a low value, for example 150 RPM whereupon the program in step 618 turns the electrical power off by means of the power conditioning circuit 150. In the above embodiments, a control for a particular type of diesel engine has been described in detail. However, the described control could be readily applied to other types of engines or prime movers including internal combustion engines and turbines. Instead of controlling a rack in a fuel pump, the control could operate a throttle valve in a carburetor, timers for fuel injection valves, fuel flow value or other engine speed control devices. The attached microfiche appendix is a computer assembly language and HEX machine language listing for a prototype electronic control utilizing an Intel 8031 processor in accordance with the invention. The operating program is formed in two listings for writing in an EPROM (see ROM 158 Fig. 5). A third listing is of data tables (polygons) for engine characteristics for being written in another EPROM (see EPROM 86 Fig. 5). A portion of one of the two operating program listings is written in the EPROM containing the data tables. Since many modifications, variations or changes in detail may be made to the above described embodiment, it is intended that all matter in the foregoing description and shown in the accompanying drawings be interpreted as illustrative and not in a limiting sense.

Claims: CLAIMS ; 1. An electronic engine control having an engine speed detector (72, 74) for producing an electrical engine speed signal, a demand device (44, 100) for producing an electrical demand signal, and an engine control device (34, 36) for controlling the engine in accordance with the speed and demand signals; characterized by actual rate-of-change determining means (84, 492) for deriving actual rate-of-change values from the engine speed signal corresponding to both increases and decreases in engine speed, desired rate-of-change determining means (84, 298, 302, 310) for deriving desired rate of change values in response to the demand signal, to-be-effected rate-of-change means (84, 318, 320) for deriving to-be-effected rate-of-change values corresponding to subtraction of the actual rate-of-change values from the respective desired rate-of-change values, and means (84, 334) responsive to the to-be-effected rate-of-change values for operating the engine control device. 2. An electronic control as claimed in claim 1 wherein the engine control device controls the fuel flow to the engine, and the demand device detects the position of ah accelerator member (42); charaterized by the desired rate of change determining means including means (286) for deriving desired fuel flow values in accordance with detected positions of the accelerator member, and means (290, 292, 298, 302) for deriving the desired rate of change values at least partly based upon the difference between the desired fuel flow values and actual fuel flow values. 3. An electronic control as claimed in claim 1 wherein the engine control device controls the speed of Q-.. oo -~ι oι π *. ω t -» ui ιt ω N -' uι *. ω w - ϋθ i (n ui ιi> 8. An electronic control as claimed in claim 6 characterized by the computer means including engine pollution control operating parameters (274, 276) in memory means and means (284) responsive to the parameters for controlling the speed of operation of the engine controlling means to limit the rate at which the engine is controlled to prevent pollution emissions. 9. An electronic control as claimed in claim 7 for managing fuel flow to a diesel engine which includes a fuel pump (34) having a stepping motor (56) operated by pulses from the computer to operate a movable pump control member (54) to control the quantity of fuel delivered by the pump to the engine, characterized by the computer including means (326, 328) storing the present position of the pump control member as represented by the difference between advance and retreat pulses applied to the stepping motor, the desired fuel flow values representing requested pump control member positions, the desired rate of change determining means including means (290, 292) for selecting an advance rate of change value (298) or a retract rate-of-change value (302) from respective stored data (300, 304) of maximum advance and retract rates of change for different engine speeds in accordance with the requested pump control member position being greater or less than the present pump control member position, means (316) for multiplying the maximum rate of change by a fraction having a numerator of the difference between the requested and present pump control member position if this difference is less than the denominator of the fraction to derive the desired rate of change values, means (318, 322) for selecting a new possible pump control member position from stored data (320) of permissible advance and retract pulses for O PI to-be-effected rate-of-change values, and means (328, 326, 334) for applying pulses to the stepping motor to move the pump control member to the lesser of the requested and new possible pump control member positions or to the greater of the requested and new possible pump control member positions in accordance with the requested pump control member position being greater or less than, respectively, the present pump control member position. 10. An electronic control as claimed in claim 9 characterized by the computer means including stored maximum power data values (220) corresponding to maximum control member positions at corresponding engine speeds, and the means (326) for applying pulses to the stepping motor limits advance of the control member to the lesser of maximum, requested and new possible pump control member positions. 11. An electronic control for managing fuel flow to control an engine, including demand means (44) for generating an electrical signal corresponding to a demand fuel flow; engine speed detecting means (72) for generating an electrical signal corresponding to engine speed; computer means (84) for receiving said demand fuel flow signal and said engine speed signal, and electrically operated fuel control means (54, 56) operated by the computer for controlling the supply of fuel to the engine; characterized by said computer means including stored memory means containing a plurality of stored parameters having maximum fuel flow parameters (220) and rate-of-change in engine speed parameters (300, 304) corresponding to selected engine speeds, means (286) for determining a demand fuel flow value in accordance with the demand fuel flow signal, means for determining an engine speed value (484) from the engine speed signal, means (264) for determining a maximum fuel flow value from said parameters in accordance with the engine speed value, means (298, 302) for determining a desired rate of change in engine speed from said rate of change in engine speed parameters in accordance with the engine speed value, and means (328, 326, 334) for setting said fuel control means in accordance with said desired rate of change in engine speed limited by the lesser of the demand fuel flow and the maximum fuel flow value. 12. An electronic control as claimed in claim 11 characterized by said desired rate of change determining means including stored maximum permissible advance rate- of-change parameters (300), stored maximum permissible retard rate of change parameters (304), means (326, 328, 334) for determining a present fuel flow value, and means (290, 292, 298, 302) responsive to the demand fuel flow value being greater than or less than the actual fuel flow value for selecting a desired rate of change value from the stored maximum permissible advance rate of change parameters or stored maximum permissible retard rate of change parameters respectively. 13. An electronic control as claimed in claim 12 characterized by said means for setting said fuel control means including means (318, 322) for determining a permissible control means position value from the desired rate-of-change in engine speed, annd means (326, 334) for operating the fuel control means to advance the fuel control means to a position corresponding to a value not exceeding the minimum of the demand fuel flow value and the permissible control means position value if the demand fuel flow value exceeds the actual fuel flow value. 14. An electronic control as claimed in claim 13 characterized by said fuel control setting means including means (328, 334) for operating the fuel control means to retract the control means to a position corresponding to a value not less than the maximum of the demand fuel flow value and the permissible fuel flow value if the demand fuel flow value is equal to or less than the actual fuel flow value. 15. An electronic control as claimed in claim 11, characterized by the computer means including means (326, 328) for determining a present fuel flow value, and means (316) for dampening the desired rate of change in engine speed in accordance with the difference between the demand fuel flow value and the present fuel flow value. 16. An electronic control as claimed in claim 15 wherein the dampening means includes means for multiplying the magnitude of the desired rate of change in engine speed by a fraction having a numerator proportional to the difference between the demand fuel flow value and the present fuel flow value. 17. An electronic control as claimed in claims 11 , 12, 13, 14, 15 or 16 characterized by said rate of change in engine speed parameters (300, 304) including parameters of positive and negative rates of change - for corresponding engine speed values. 18. An electronic control as claimed in claim 17 characterized by the rate of change in engine speed parameters including retard rates of change parameters (304) and advance rate of change parameters (300); said retard rate of change parameters having a zero rate of change value at a low idle engine speed (304), negative rate of change values at engine speeds greater than the low idle speed, and positive rate of change values at engine speeds less than the low idle speed, said advance rate of change parameters having a zero rate of change value at a high idle engine speed, positive rate of change values at engine speeds less than the high idle speed, and negative rate of change values at engine speeds greater than the high idle speeds. 19. An electronic control as claimed in claim 18 characterized by cruise control selecting means (100), stored speed control parameters (312) including a zero rate of change value at a desired engine speed, positive rate of change values at engine speeds less than the desired engine speed, and negative rate of change values at engine speeds greater than the desired engine speed, and means (306) responsive to the cruise control selecting means for selecting said desired rate of change in engine speed from the stored speed control parameters. 20. An electronic control as claimed in claim 11 characterized by said computer means including stored memory means (158) containing a plurality of sets of stored maximum power parameters (220) wherein each set of stored maximum power parameters corresponds to maximum fuel flows producing a maximum permissible power output of the engine at corresponding engine speeds; and means (206, 218) responsive to a sensed parameter for selecting one set of the plurality of sets of stored parameters and for computing maximum fuel flow values . therefrom at corresponding engine speed values. 21. An electronic control as claimed in claim 20 characerized by the selecting and computing means including programmable read only memory means (86) with an engine type identifying parameter stored therein, and means for selecting the set of stored parameters in ' accordance with the engine identifying parameter stored in the programmable read only memory means. 22. An electronic control as claimed in claim 20 characterized by the selecting and computing means (218) selecting the set of stored parameters in accordance with a sensed gear position of a transmission. 23. An electronic control as claimed in claim 20 characterized by the selecting and computing means (218) including means for detecting a tampering with the electronic control, and means for selecting a set of stored parameters corresponding to a lower power output if tampering is detected. 24. An electronic control as claimed in claim 23 characterized by the tampering detecting means including first programmable read only memory means (86) with a first engine identifying parameter stored therein; the selecting and computing means including second programmable read only memory means (163) with a second engine identifying parameter stored therein; and said tampering detecting means including means for comparing the first engine identifying parameter with the second engine identifying parameter to detect a tampering. 25. An electronic control as claimed in claim 20 characterized by the computer means including electrically programmable read only memory means (163), and said set of stored parameters selecting means including means responsive to an engine identifying means on a first operation of the control for reading the selected set of plurality of sets of stored parameters and for storing said selected set in the electrically programmable read only memory means. 26. An electronic control for controlling an engine including a movable control member (54) for controlling an operating condition of the engine, stop O PΓ means (69) for engaging the control member to prevent movement of the control member in a reverse direction past the stop means, electrical stepping motor means (56, 58, 60) for moving the control member in the forward and reverse directions in response to forward and reverse pulses, demand means (44) for producing demand signals for desired engine control, and means responsive to the demand means including computer means (84) with program means (334) for applying forward and reverse pulses to the stepping motor; characterized by said stop means defining a recalibrate position for the control member; said computer means including memory means for storing a control member position value corresponding to the number of forward pulses applied to the stepping motor minus the number of reverse pulses applied to the stepping motor, and said program means including means (330) for determining when a recalibrate position is acceptable, and means (332, 334) for applying a number of reverse pulses to the stepping motor exceeding the control member position value and for resetting the control member position value to a recalibrate value. 27. An electronic control for controlling an engine as claimed in claim 26 characterized by the control member controlling fuel flow to the engine, the recalibrate position defined by the stop means corresponding to a zero fuel flow condition, and the recalibrate value being equal to zero. 28. An electronic control as claimed in claim 26 or 27 wherein the engine includes a fuel pump (34) and the control member (54) controls the quantity of fuel delivered to the engine by the fuel pump. 29. An electronic control for controlling an engine, including a movable control member (54) for OMPI 3 controlling an operating condition of the engine, said 4 control member having a zero control position (69), an 5 electrical rotary stepping motor (65) including 6 rotatable drive means, a rotatable screw (58) driven by 7 rotatable drive means of the motor, threaded means (60) 8 operated by the screw for advancing and retracting the 9 control member, demand means (44) for producing demand 10 signals for desired engine operation, and electrical 11 means responsive to the demand means including computer 12 means (84, 122) with program means (334) for applying 13. forward and reverse pulses to the stepping motor to 14 control operation of the engine; characterized by rotary 15 spring means (70) attached to the rotatable drive means 16 of the stepping motor for biasing the drive means to 17 return the stepping motor and movable control member to 18 the zero control position, and said electrical means 9 (122) designed to hold the stepping motor in an advanced 0 position against the spring bias. 1 30. An electronic control as claimed in claim 32 2 characterized by the movable control member (54) 3 controlling the flow of fuel to the engine. 1 31. An electronic control as claimed in claim 33 2 characterized by the engine including a fuel pump (34), 3 and the control member (54) controls the fuel delivered 4 by the fuel pump. 1 32. An electronic control as claimed in claim 31 2 wherein the engine is a diesel engine, and the control 3 member (54) is rack for controlling valve members in a 4 fuel pump for the diesel engine. 1 33. An electronic control for controlling an 2 internal combustion engine having a plurality of 3 , ' cylinders which are successively fired, including demand 4 means (44) for generating an electrical engine control 5 signal, engine speed detecting means including a " rotating member (74) with angularly spaced indicating means driven by the engine, and sensing means (72) for sensing the passing of the indicating means past a sensing point to produce an electrical engine speed signal having pulses with a frequency corresponding to engine speed; electrically operated engine control means (54, 56) for controlling operation of the engine; and computer means (84) including means (90, 92) for receiving the engine control signal and the engine speed signal, means (464, 478) for counting a predetermined number of pulses in the engine speed signal, timing means (404), means (484) for computing an engine speed value from the number of pulses counted and the difference between a value of the timing means at the beginning of the counting and a value of the timing means at the termination of the counting, means containing stored engine operating parameters (158) and means (334) responsive to the engine control signal, the engine speed value and the stored engine operating parameters for operating the engine control means; characterized by said rotating member (74) and indicating means being such that the same integer number of indicating means pass the sensing point between each successive pair of cylinder firings, said predetermined number of pulses being selected to correspond to an integer number of intervals between successive cylinder firings. 34. An electronic control as claimed in claim 33 characterized by the counting means of the computer means including first means (422) responsive to a previously recorded engine speed value being less than a predetermined value for terminating the counting after a first predetermined number of counts, and second means (424) responsive to the previously recorded engine speed value being greater than the predetermined value for terminating the counting after a second predetermined number of counts greater than the first predetermined number of counts. 35. An electronic control as claimed in claim 34 characterized by the second means (424) being limited by a previously recorded engine speed value greater than a second predetermined value greater than the first predetermined value, and the computer means includes third means (426) responsive to the previously recorded engine speed value being greater than the second predetermined value for terminating the counting after a third predetermined number of counts greater than the second predetermined number of counts. 36. An electronic control as claimed in claim 33, 34 or 35 wherein the counting means includes interrupt means initiated after expiration of a selected duration of the timing means for counting the predetermined number of pulses, means to restart the timing means after an interrupt, means for extending the elapsed counting time and for continuing the count if a second interrupt occurs prior to completion of the count of the predetermined number of pulses, and means for computing an engine speed value from a number of pulse edges counted if a third interrupt occurs prior to the completion of the counting of the selected number of pulses. 37. An electronic control for an engine including accelerator means (42, 44) for generating an electrical engine control signal; engine speed detecting means (72, 74) for generating an electrical engine speed signal corresponding to engine speed; electrically operated engine control means (54, 56) for controlling operation of the engine; and computer means (84) including means O PI v WIPO (90, 92) for receiving the engine control signal and the engine speed signal, means containing stored engine operator parameters (300, 304), and means (298, 302, 334) responsive to the engine control signal for operating the engine control means to correspondingly increase and decrease engine speed between low idle and high idle engine speed values in accordance with the engine control signals and the stored engine operating parameters; characterized by low idle selecting means (118) including a plurality of settings corresponding to different low idle speeds which may be selected for determining the low idle engine speed value. 38. An electronic control for controlling an engine in a vehicle having a battery and engine starting means including an electrical starter motor operated by a substantial current from the battery to cause a substantial voltage drop across the battery, the control including accelerator means. (42, 44) for generating an electrical engine control signal; engine speed detecting means (72, 74)for generating an electrical engine speed signal corresponding to engine speed; electrically operated engine control means (54, 56) for controlling operation of the engine; and computer means (84) including reset and initializing means responsive to a reset signal, means (90, 92) for receiving the engine control signal and the engine speed signal, means (158) containing stored engine operating parameters, and means (334) responsive to the engine control signal for operating the engine control means in accordance with the stored engine operating parameters; characterized by means (146) for sensing a battery voltage below a predetermined voltage to apply a reset signal to the computer means wherein the predetermined voltage is greater than a battery voltage during an initial energization of the starting motor but less than battery voltage after the engine begins to rotate. 39. An electronic control as claimed in claim 1 , 11 , 26, 29, 33, 37 or 38 characterized by electrically erasable programmable read only memory (163); means (238, 600) for deter ing a significant event in operation of the engine; and means (614) responsive to the determination of a significant event in engine operation for recording an indication thereof in the electrically erasable programmable read only memory • means. 40. An electronic control as claimed in claim 39 wherein the means for determining a significant event includes means (206) for determining a tampering with the engine control. 41. An electronic control as claimed in claim 39 wherein the means for determining a significant event includes means (238) for determining an overspeed condition of the engine. 42. An electronic control as claimed in claim 39 wherein the means for determining a significant event includes means for determining operating time of the engine during engine operation, and the means for recording an indication includes means for updating an operating time in the electrically erasable programmable read only memory means upon power turn off of the control.

Inventors: HICKERSON RICHARD A, JENKINS HAROLD E, THOMPSON LIONEL D, WEAVER RUSSELL E, HICKERSON, RICHARD, A., JENKINS, HAROLD, E., THOMPSON, LIONEL, D., WEAVER, RUSSELL, E.
Applicants: MACK TRUCKS, MACK TRUCKS, INC.
Application year: 1984
Main classification: F02D31
IPC codes: F02B3, F02D41, F02D43