Software Design of Ration Oil Distribution Unit Basing on Hardware Hot Backup
Abstract
Oil as an important strategic resources in every field of modern life plays an irreplaceable role in petroleum resources, service object use efficiency of oil depot, also become increasingly important as crude oil production and the coordination of the transport link, its business operation efficiency, will directly affect the overall efficiency of oil companies. However the current construction of oil in an automated backwardness, domestic medium and small there are still a lot of elevated oil tank storing oil, through the electromagnetic valve opens, rely on fuel oil of realizing oils. Because this kind of working style makes the oil of inertia is larger, more material overshoot and electromagnetic valve kai, stop by manual operation flow measurement accuracy, mechanical, oil density influenced by factors such as temperature measurement precision, oils, operation, easy happening electrostatic, red water wait for an accident, also give oils, data record invoice checking, financial management related links large difficulty.
This paper mainly introduces the design of the software quantitative oils unit, including the initialization, keyboard scan module, hair oil temperature control module, analog acquisition module, impulse calculation module, thecan bus communication module, dot-matrix LCD module, temperature compensation calculation module, etc. The whole software using structured programming method, with each module design as the center, the unit will be divided into several independent software module, this one module in design, not by other modules, and make the involvement of software and hardware upgrades perfect more convenient.