A kind of software implementation method of eliminating diesel engine stepper motor speed governing nonlinearity erron
Technical field
The invention belongs to internal combustion locomotive stepper motor speed regulating control field, be specifically related to a kind of software implementation method of eliminating diesel engine stepper motor speed governing nonlinearity erron.
Background technique
Stepper motor is widely used in the diesel speed control of internal combustion locomotive with its superior performance, by control inputs, arrive stepping amount and the rotating speed that the umber of pulse of stepper motor and pulse frequency can control step motors, thereby control the fuel injection quantity of diesel engine fuel injecting pipe, finally reach the object of controlling diesel engine speed.In the ideal case, the pulse setting value of the actual speed of diesel engine and stepper motor should be linear.But non-linear due to the individual difference of stepper motor and mechanical connecting element, will cause the diesel engine speed of the indivedual gears of locomotive to depart from setting value.Diesel engine of diesel locomotive adjusting speed accuracy is lower at present, and the elimination of speed governing nonlinearity erron is difficulty comparatively, and governing time is long, and speed governing validity is on the low side.
Summary of the invention
The object of the invention is to, a kind of software algorithm of effective elimination diesel engine of diesel locomotive speed governing nonlinearity erron is provided, and according to actual conditions, adopt mode flexibly dynamically to realize this algorithm, to overcome the deficiency that current adjusting speed accuracy is lower.
The object of the invention is to be achieved through the following technical solutions:
A kind of software implementation method of eliminating diesel engine stepper motor speed governing nonlinearity erron, its improvements are, eliminate the software implementation method of diesel engine stepper motor speed governing nonlinearity erron, be that every grade of required pulse number is revised during to the speed governing of diesel engine stepper motor, finally reach the object that reduces speed governing nonlinearity erron.
The provided by the invention second preferred technological scheme is: the software implementation method of eliminating diesel engine stepper motor speed governing nonlinearity erron, it focuses on the remainder of every gear required pulse number to process, and introduce a correction term simultaneously, under both actings in conjunction, reduce speed governing nonlinearity erron.
The provided by the invention the 3rd preferred technological scheme is: the software implementation method of eliminating diesel engine stepper motor speed governing nonlinearity erron, wherein the given of correction term is by Lonworks bus, to send to CPU again after setting on display device, after correction term being preserved by CPU, carry out again the correction of umber of pulse, finally the rotating speed of diesel engine stepper motor is regulated, thereby reach the object of eliminating speed governing nonlinearity erron, and increase work efficiency.
The present invention is owing to adopting technique scheme, thereby possesses following beneficial effect:
Compared with prior art, the present invention is by carrying out the processing of more refinement to every grade of given pulse remainder of CPU, introduce a correction term to every grade of umber of pulse simultaneously, regulate the value of correction term, greatly eliminated the nonlinearity erron of diesel engine stepper motor rotating speed, make diesel engine stepper motor rotating speed reach rapidly stable, its actual speed and given rotating speed approach, and every grade of rotating speed is met the demands substantially, and can realize dynamic speed adjustment, adjusting speed accuracy is high, speed is fast, successful.
Accompanying drawing explanation
Accompanying drawing is the schematic diagram of realizing of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in further detail, but not as any limitation of the invention.
Embodiment.The speed regulating control of 16 grades of diesel engine stepper motors of take below is specifically introduced the method for eliminating diesel engine stepper motor speed governing nonlinearity erron as example.
1, the present embodiment diesel engine stepper motor gear is divided into 16 grades, and the speed range of diesel engine stepper motor is 400~1000r/min.The corresponding relation of its gear and rotating speed is as shown in the table:
Gear |
Rotating speed (r/min) |
Gear |
Rotating speed (r/min) |
1 |
400 |
9 |
720 |
2 |
440 |
10 |
760 |
3 |
480 |
11 |
800 |
4 |
520 |
12 |
840 |
5 |
560 |
13 |
880 |
6 |
600 |
14 |
920 |
7 |
640 |
15 |
960 |
8 |
680 |
16 |
1000 |
If 2 ignore the non-linear of stepper motor and mechanical connecting element, the number of digital pulse and diesel engine speed should be linear correlations so, therefore by experiment, can first obtain locomotive required overall pulse of stepper motor when 16 grades (now diesel engine speed is 1000r/min) and count ω, with ω, divide exactly 15 again, just can obtain required umber of pulse of gear of every increase.On to the processing of remainder, the principle of taking each grade can only increase at the most a pulse is superimposed upon remainder in umber of pulse separately.Concrete control algorithm is as follows:
If stepper motor overall pulse number required when 16 grades (rotating speed is 1000r/min) is ω, a is that ω is divided exactly 15 business, and b is remainder.Each grade of required umber of pulse χ
ncan be expressed from the next:
χ
n=n×a+c(n=2、3、4、5…16)
χ wherein
nit is the needed umber of pulse of a certain gear, n is a grade item, c is the remainder (0≤c≤n-1 being added on each grade, c≤b), that is to say if b>0, one grade of every raising, a umber of pulse can only up add up, so just can well remainder be added in umber of pulse, thereby guarantee to reach reasonable control effect.
By above-mentioned algorithm, we find in debugging, although rotating speed conforms to imagination originally generally, but on individual other gear, rotating speed and the expected value of diesel engine reality have deviation, by analyzing, be because stepper motor is connected with mechanical part between Injection Pump and the Injection Pump of diesel engine is not strict linear device, so cause final diesel engine speed and expected value to have deviation.Because speed regulating control now can not meet client's requirement, thus must revise the umber of pulse of indivedual gears, so that it reaches best effect.In order to eliminate nonlinearity erron, we are the correction term δ that superposes again on the umber of pulse of each gear:
χ
n=n×a+c+δ(n=2、3、4、5.....16)
Wherein δ is the umber of pulse that the nonlinearity erron correction for each gear is superimposed with.Because fix for first two of equation for a certain diesel engine, to the correction of the different gear nonlinearity errons of control system, can only realize by changing δ.
3,, for easy to maintenance, error correction item δ takes the method for display operation to realize.Specific practice is on display device, again to open an interface, pass through display operation, shelves item and correction term that needs are revised are issued microcomputer by Lonworks bus, after microcomputer receives instruction, correction term is stored into the corresponding space persistence of battery RAM until need to again revise next time, and then correction term is added in the umber of pulse of corresponding gear, according to the pulse number Driving Stepping Motor after last stack, carry out rotating speed control.
Finally should be noted that: above embodiment is the restriction in order to technological scheme of the present invention to be described but not to its protection domain only; although the present invention is had been described in detail with reference to above-described embodiment; those of ordinary skill in the field are to be understood that: those skilled in the art still can carry out all changes, revise or be equal to replacement to its embodiment after reading the present invention; these change, revise or be equal to replacement, within the claim scope that it all awaits the reply in its invention.