Control device for internal combustion engines
FIELD OF THE INVENTION 
     The present invention relates to a control device for an internal combustion engine. The control device includes a computer which contains a first datablock for operation under one operating condition, a second datablock for operation under another operating condition and a processor for processing engine operating parameters in accordance with the data from the first or second datablock. The processor includes a switching device responsive to at least one operating parameter for selecting the datablock to be used. 
     BACKGROUND OF THE INVENTION 
     Such a control device is known from U.S. Pat. No. 4,398,520. This known control device controls fuel injection and spark ignition in a multi-cylinder internal combustion engine. A processor or computer includes two datablocks containing respective programs for two modes of operation and an arithmetic unit or central processing unit for controlling the injection and ignition in accordance with engine operating parameters and in accordance with a selected one of the programs. The arithmetic unit contains a switching logic or partial load recognition stage which switches from the first datablock to the second responsively to engine load. The switching logic also switches off some of the injection valves so that not all the cylinders produce power. The first and second datablocks are programmed for optimal performance in respective modes in which all cylinders are producing power or only some cylinders are producing power, the latter mode being used under low load. 
     This known control device, however, does not deal with the problem that it is often necessary or advantageous to operate in accordance with one program when the engine of cold and in accordance with another program when the engine is hot. In particular, it is desirable to be above to operate in a &#34;lambda control&#34; mode in order to minimize emission of noxious or toxic fumes in the exhaust, but this is not possible when the enigine is cold, i.e. when starting the engine. 
     DE-A- No. 32 33 791 describes a device for calling up and/or optimizing stored data which can be used for testing which of several stored programs, e.g, starting programs, is the best for a control device of an internal combustion engine. It is possible, using an input keyboard, to select different programs and to try out each program to check which is the best during an actual test run of the vehicle. However, there is no suggestion of a changeover from one program to another responsively to an engine operating parameter. 
     SUMMARY OF THE INVENTION 
     It is an object of the invention to provide a control device for an internal combustion engine which changes over from one control mode, which is used on starting with the engine cold, to another normal control mode (e.g. lambda control) which, however, is unsuitable for use with a cold engine. 
     This object is achieved by the control device according to the invention. According to a feature of the control device of the invention, the switching device of the processor is responsive to temperature, more particularly the cooling temperature (T), and switches over from the first datablock, which is programmed for operation under starting conditions, to the second datablock, which is programmed for normal operating conditions, when a predetermined temperature (T 2 ) is exceeded. This has the advantage that optimum performance of the engine in accordance with engine operating parameters can be obtained when the engine is cold and that optimum combustion conditions can be maintained by the use of lambda control as soon as the engine has warmed up. 
     The air number lambda is the actual air-to-fuel ratio divided by the stoichiometric air-to-fuel ratio. A measure of the air number lambda can be obtained by means of a lambda probe which is an oxygen sensor and is placed in the exhaust system so as to detect residual oxygen in the exhaust. It comprises a solid electrolyte which is only effective when hot. The output of the lambda probe is used to provide a feedback signal for the control device when operating in the lambda control mode. Lambda control implies a lean mixture whereas a rich mixture is required when the engine is cold. Thus the control device of the invention can operate without lambda control when the engine is cold and the lambda control is brought into use as soon as the engine has warmed sufficiently. The various engine operating parameters (intake vacuum, air intake quantity, engine speed, engine temperature) can be used as necessary and as appropriate to obtain optimum operation in each of the two modes. 
     If the engine is already warm on starting (e.g. upon re-starting before the engine has cooled), the lambda control mode can be brought in immediately upon starting so long as the engine temperature exceeds a lower threshold value by adopting the feature that the switching device switches to the first datablock when the engine is started with the sensed temperature below a lower predetermined temperature (T 1 ) and only switches to the second datablock when the sensed temperature exceeds the upper predetermined temperature (T 2 ), and the further feature that the switching device switches directly to the second datablock when the engine is started with the sensed temperature above the lower predetermined temperature (T 1 ). 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     The invention is further described, by way of example, with reference to the accompanying drawings, in which: 
     FIG. 1 is a block circuit diagram of a control device for an internal combustion engine in accordance with the invention, and 
     FIG. 2 is a flow diagram illustrating the operation of a switching logic in the control device. 
    
    
     DESCRIPTION OF THE PREFERRED EMBODIMENT OF THE INVENTION 
     FIG. 1 shows diagrammatically an internal combustion engine 10 operating with spark ignition and electronically controlled fuel injection. The latter includes injection valves 12 which may be of a kind opened intermittently synchronism with rotation of the engine crankshaft, the opening duration determining the injected fuel quantity, to of a kind held open continuously to an adjustable extent so that the fuel quantity is determined by the degree of throttling by the injection valves. The injection valves 12 are controlled by a computer 14, preferably a microprocessor. The computer 14 contains two datablocks 16, 18 in which are stored programs in accordance with which a processor 20 operates the injection valves 12 when the engine is cold and when it is hot, respectively. The processor 20 receives engine operating parameters which are processed in accordance with the selected program to determine the fuel quantity to be injected. These parameters include the air intake vacuum P, the air intake quantity (throttle flap position) L, the engine speed n and the engine coolant temperature T. They also include a reference mark BM drived from a pulse generator on the engine crankshaft and used for timing the injection operations and the air number λ derived from a lambda probe 22 in the exhaust system of the engine 24. 
     The processor 20 includes a switching logic 26 for determining which of the datablocks 16, 18 is selected. For this purpose, the switching logic receives the temperature signal T and signals from two reference temperature sources 28 and 30 may be incorporated in the computer 14. The switching logic 26 also receives a start signal indicative of when the engine 10 is being started. It may be derived from the starting switch for the starter motor. 
     The control device operates as follows: 
     when the ignition is switched on and the starter switch is operated, the switching logic 26 receives the start signal and the temperature signals T, T 1  and T 2 . Referring now to FIG. 2, if the engine is cold the sensed temperature T is below a lower threshold T 1  set by the reference source 28, datablock 1 for operation under starting conditions is selected. The processor 20 controls the injection valves 12 without reference to the air number λ (lambda control switched off). As the engine warms up, the datablock 1 for operation under starting conditions remains in use until the sensed temperature T exceeds a second higher threshold T 2  determined by the reference source 30. The switching logic 26 then changes over from the first datablock 16 to the second datablock 18, as indicated diagrammatically in FIG. 1. The second datablock 18 stores the program for the processor 20 to operate the injection valves 12 with lambda control. Should the engine be started warm, in that the sensed temperature T already exceeds the lower threshold T 1  when the starter switch is operated, the switching logic immediately selects datablock 2 for operation with lambda control, as shown in FIG. 2. 
     As indicated by broken lines 32, the processor 20 may also operate the engine ignition system, the programs in the datablocks 16, 18 being adapted for this purpose.