Disclosure of Invention
The invention aims to provide a method and a device for detecting gun lifting and moving of an oiling machine, which at least partially solve the technical problem.
In order to achieve the above object, an embodiment of the present invention provides a method for detecting a gun lifting motion of a fuel dispenser, including: acquiring a gun lifting signal of the oiling machine; and counting the oiling pulse signals received by the oiling machine within a fixed time after the gun lifting signals of the oiling machine are obtained, and if the number of the counted oiling pulse signals is greater than zero, judging that the gun lifting phenomenon of the oiling machine exists.
Optionally, the method for detecting gun lifting and moving of the fuel dispenser further comprises: acquiring the times of the continuous occurrence of the gun lifting and character moving phenomena; and if the gun lifting and character moving phenomena continuously occur for the set times, judging that the gun lifting and character moving faults exist in the oiling machine.
Optionally, the method for detecting gun lifting and moving of the fuel dispenser further comprises: and when the oiling machine has the gun lifting and moving fault, sending out an alarm prompt for maintaining the oiling machine.
Optionally, the method for detecting gun lifting and moving of the fuel dispenser further comprises: and when the phenomenon of gun lifting and moving is caused in the oiling machine, an alarm prompt for carrying out oiling machine zeroing operation on the oiling machine is sent.
Optionally, the fixed time is determined according to the time from the gun lifting to the opening of the main oil valve of the oil adding machine in the actual use process.
The invention also provides a detection device for the gun lifting and the word moving of the oiling machine, which comprises: the sampling module is used for acquiring a gun lifting signal of the oiling machine; and the main control module is used for counting the oiling pulse signals received by the oiling machine within a fixed time from the moment of acquiring the gun lifting signals of the oiling machine, and if the number of the counted oiling pulse signals is greater than zero, judging that the phenomenon of gun lifting and character moving exists in the oiling machine.
Optionally, the main control module is further configured to obtain the number of times that the gun lifting and character moving phenomenon continuously occurs; and if the number of times of the continuous gun lifting and character moving phenomenon reaches a set number of times, judging that the oiling machine has a gun lifting and character moving fault.
Optionally, the device for detecting gun lifting and moving of the fuel dispenser further comprises an alarm module, and is used for sending an alarm prompt for resetting to zero of the fuel dispenser when the gun lifting and moving phenomenon occurs in the fuel dispenser and/or sending an alarm prompt for repairing the fuel dispenser when the gun lifting and moving fault occurs in the fuel dispenser.
Optionally, the main control module is further configured to set the fixed time according to a time from the gun lifting of the refueling machine to the opening of the main fuel valve in an actual use process of the refueling machine.
Optionally, the sampling module includes a relay and a photoelectric coupler, wherein the relay is used for acquiring a gun lifting signal of the fuel dispenser and inputting the signal to the main control module; the photoelectric coupler is used for acquiring a refueling pulse signal of the refueling machine and inputting the refueling pulse signal into the main control module.
Through the technical scheme, whether the phenomenon of gun lifting and character moving exists in the oiling machine is judged according to whether the quantity of the oiling pulse signals received by the oiling machine within the fixed time from the gun lifting signal of the oiling machine is larger than zero. Namely, whether the phenomenon of gun lifting and character moving exists in the oiling machine is judged according to whether the oiling pulse signal is generated in the time interval from the gun lifting of the oiling machine to the opening of the main oil valve. The method has better real-time performance and high reliability. The influence of subjective factors on judgment of the phenomenon of filling oil and moving words by artificial participation modes such as daily equipment inspection by client supervision and gas station workers can be reduced, the problem that client complaints caused by untimely finding of the phenomenon of gun and moving words and adverse effects on the gas station are avoided, and normal operation of the gas station is guaranteed.
Additional features and advantages of embodiments of the invention will be set forth in the detailed description which follows.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating embodiments of the invention, are given by way of illustration and explanation only, not limitation.
Generally speaking, the working principle of the fuel dispenser walking is as follows: after the oiling gun is lifted, an oiling machine motor is started, an electromagnetic valve is opened, a main valve switch is opened, oil is pressurized by an oil pump and is subjected to oil-gas separation, a counter piston is pushed to reciprocate, the piston drives an encoder to work under the action of a distribution valve and a crank transmission shaft, a photoelectric coupler in the encoder generates pulse electric signals (namely oiling pulse signals) and inputs the pulse electric signals to an oiling machine mainboard, the mainboard performs operation display and transmits the pulse electric signals to a background management and control system, and metering and control of the oil delivery amount are achieved.
As mentioned above, the essence of the "gun lifting and moving" of the fuel dispenser is that after the gun lifting operation of the fuel dispenser, but without opening the main valve of the fuel gun, a fueling pulse signal is sent out in the encoder, and at this time, the display screen of the fuel dispenser starts to display the fueling ascending number and the amount value. By utilizing the principle, the embodiment of the invention provides a method for detecting the gun lifting and moving of an oiling machine, which comprises the following steps:
fig. 1 is a flowchart of a method for detecting gun lifting and moving of a fuel dispenser according to an embodiment of the present invention, as shown in fig. 1, the method may include the following steps:
and S101, acquiring a gun lifting signal of the oiling machine.
In the embodiment of the invention, the relay can be arranged on the fuel gun or at the position where the fuel gun is placed on the fuel dispenser, so that as long as a worker or a customer uses the fuel dispenser to fill fuel, the fuel gun needs to be lifted, and then a gun lifting signal of the fuel dispenser can be input into the control module through the relay, wherein the gun lifting signal of the fuel dispenser is a switching value signal (also called a step signal).
And S102, counting the oiling pulse signals received by the oiling machine.
Preferably, the fueling pulse signals received by the fuel dispenser are counted for a fixed time period from the acquisition of the gun lift signal for the fuel dispenser. The flow when normal refueling is normally as follows: inserting a card, lifting a gun, inserting the oil gun into an automobile oil tank, opening an oil gun switch to refuel, and hanging the gun and taking the card after refueling. Therefore, there is usually a certain time interval t from the gun lifting to the gun opening (i.e. opening the main fuel valve) for refueling. The fixed time in the step is determined according to the time from the gun lifting of the oiling machine to the opening of the main oil valve in the actual use process.
For example, a certain gas station is a worker who operates the fuel dispenser to fill fuel to a customer, the time from the gun lifting to the opening of the main fuel valve in the filling operation of the gas station filling worker is counted, and the average time from the gun lifting to the opening of the main fuel valve of the gas station filling worker is 10 seconds through calculation. The fixed time is set to 10 seconds.
S103, judging whether the number of the oiling pulse signals is larger than zero, if so, executing a step S104, otherwise, returning to the step S101.
Generally, if a fueling pulse signal is generated, the fueling machine has the possibility of generating a gun lifting and character moving phenomenon, so that in the embodiment of the invention, whether the number of the fueling pulse signals received by the fueling machine in a fixed time from the acquisition of the gun lifting signal of the fueling machine is greater than zero is taken as a standard for judging whether the gun lifting and character moving phenomenon exists in the fueling machine, so as to really avoid the gun lifting and character moving phenomenon of the fueling machine.
S104, the gun lifting and character moving phenomenon exists in the fuel dispenser.
If the counted number of the oiling pulse signals is larger than zero, judging that the gun lifting and character moving phenomenon exists in the oiling machine; and if the counted number of the oiling pulse signals is zero, counting the pulse signals received by the oiling machine again when gun lifting signals of the oiling machine appear again.
And S105, sending an alarm prompt for carrying out fuel dispenser zeroing operation on the fuel dispenser.
The step S105 is preferable for the method for detecting gun lifting and moving of a fuel dispenser according to the embodiment of the present invention, for example, if a fuel dispenser is a new device and the phenomenon of gun lifting and moving hardly occurs, an alarm reminding function may not be set temporarily, the probability of the phenomenon of gun lifting and moving becomes higher as the fuel dispenser ages gradually, and it is necessary to set an alarm reminding function for performing a zeroing operation on the fuel dispenser when a problem is found out easily in time by means of human participation. The invention comprehensively considers the existence of the following reasons:
1) when the oiling machine lifts the gun, the whole machine generates a resonance because the motor is started, and if the transmission shaft of the encoder is too sensitive, the phenomenon of moving words when lifting the gun is easy to occur.
2) When the gun is lifted for oiling and the oil gun is not opened, the rubber tube of the oiling machine is extruded by oil, the volume is easy to expand, the measuring transducer rotates for a few degrees at the moment, the encoder sends out corresponding pulses, and the phenomenon that the oiling machine lifts the gun and moves words occurs.
The phenomenon of gun lifting and moving of the oiling machine can be caused due to the reasons, if the phenomenon of gun lifting and moving of the oiling machine happens only by accident, no substantial fault occurs to the oiling machine, normal operation of the oiling machine can be ensured only by carrying out zero resetting operation on the oiling machine, the benefit of customers is ensured, the complaint of customers is reduced, and the image of the oiling station is maintained.
Therefore, when the phenomenon that the gun of the oiling machine is lifted and the character is moved exists, the alarm reminding for carrying out the zeroing operation on the oiling machine is sent out.
The manner of the alarm reminder may be one or more of the following: the method comprises the following steps of lightening an alarm lamp, starting an alarm, displaying screen subtitle reminding and voice broadcast reminding.
Further, the method for detecting gun lifting and moving of the fuel dispenser provided by the embodiment of the invention further comprises the following steps: and judging whether the oiling machine has the gun lifting and character moving fault according to the times of the continuous gun lifting and character moving phenomena of the oiling machine. Fig. 2 is a flowchart of a method for detecting gun lifting and moving of a fuel dispenser according to a preferred embodiment of the present invention, as shown in fig. 2, the method may include the following steps:
s201, recording the times of the gun lifting and character moving phenomena of the oiling machine.
In step S104, if the counted number of the fueling pulse signals is greater than zero, it is determined that the dispenser has the gun lifting and moving phenomenon, and at this time, the number of times that the dispenser has the gun lifting and moving phenomenon is continuously recorded, and if the dispenser has the gun lifting and moving phenomenon for a plurality of times, it is determined that the dispenser has the gun lifting and moving fault, and therefore, the number of times that the dispenser has the gun lifting and moving phenomenon for a plurality of times is recorded.
S202, judging whether the number of times of gun lifting and character moving of the oiling machine reaches a set number of times, if so, executing a step S203, otherwise, returning to the step S201.
The set times can be determined according to the experience of actually using the oiling machine, for example, the trial operation process of the oiling machine of a certain gas station is smooth, the oiling machine runs stably and reliably, the phenomenon of gun lifting and character moving of the oiling machine hardly occurs, and the gun lifting and character moving fault of the oiling machine can be determined to occur twice continuously. I.e., the set number of times is determined to be 2. For another example, if the running time of a certain oiling machine is long, the sealing performance of the whole oiling machine is reduced, and the motor of the oiling machine vibrates greatly, so that the phenomenon that the oiling machine lifts a gun and moves words often occurs, the oiling machine is comprehensively checked for many times to find that no oil leakage exists, and the set number can be determined as 5.
And S203, the oiling machine has the gun lifting and character moving fault.
If the number of times of the gun lifting and character moving phenomena of the oiling machine continuously occurs reaches the set number of times, judging that the gun lifting and character moving faults exist in the oiling machine; and if the gun lifting and character moving phenomena of the oiling machine continuously occur and the times of the gun lifting and character moving phenomena of the oiling machine do not reach the set times, the oiling machine returns to normal and does not perform the gun lifting and character moving phenomena, and the gun lifting and character moving phenomena of the oiling machine are counted again when the gun lifting and character moving phenomena occur again.
And S204, sending an alarm prompt for maintaining the oiling machine.
And when the gun lifting and moving fault exists in the fuel dispenser, sending an alarm prompt for maintaining the fuel dispenser, wherein the alarm prompt mode is synchronous in the step S105, and the details are not repeated here.
The invention also provides a device for detecting the gun lifting and moving of the oiling machine, and FIG. 3 is a block diagram of the device for detecting the gun lifting and moving of the oiling machine provided by the embodiment of the invention. As shown in fig. 3, the apparatus includes: the sampling module 10 is used for acquiring a gun lifting signal and a refueling pulse signal of the refueling machine; and the main control module 20 is used for counting the oiling pulse signals received by the oiling machine within a fixed time from the moment of acquiring the gun lifting signals of the oiling machine, and if the number of the counted oiling pulse signals is greater than zero, judging that the phenomenon of gun lifting and word moving of the oiling machine exists.
Preferably, the main control module is further configured to set the fixed time according to the time from the gun lifting to the opening of the main fuel valve of the fuel dispenser during the actual use of the fuel dispenser.
According to the preferred embodiment of the present invention, the main control module is further configured to obtain the number of times that the gun lifting and character moving phenomenon continuously occurs; and if the number of times of the continuous gun lifting and character moving phenomenon reaches a set number of times, judging that the oiling machine has a gun lifting and character moving fault.
According to the preferred embodiment of the invention, the device for detecting the gun lifting and the word moving of the fuel dispenser further comprises an alarm module, and the alarm module is used for sending out an alarm prompt for carrying out the zero setting operation of the fuel dispenser when the gun lifting and the word moving phenomenon exists in the fuel dispenser and/or sending out an alarm prompt for repairing the fuel dispenser when the gun lifting and the word moving fault exists in the fuel dispenser.
According to one embodiment of the invention, the sampling module comprises a relay and a photoelectric coupler, wherein the relay is used for acquiring a gun lifting signal of the oiling machine and inputting the signal into the main control module; the photoelectric coupler is used for acquiring a refueling pulse signal of the refueling machine and inputting the refueling pulse signal into the main control module.
For other implementation details of the device for detecting the gun lifting and moving of the fuel dispenser, reference may be made to the above-mentioned embodiments of the method for detecting the gun lifting and moving of the fuel dispenser, and further description is omitted here.
Fig. 4 is a schematic diagram of a detection device for detecting gun lifting and word moving of a fuel dispenser according to an embodiment of the invention. As shown in fig. 4: the device for detecting the advance of the gun of the oiling machine provided by the embodiment of the invention can comprise elements such as a relay 11, a photoelectric coupler 12, a singlechip 21, a power supply 22, a buzzer 31, an alarm lamp 32, a serial port 40 and the like.
The principle of the detection device for detecting gun lifting and word moving of the fuel dispenser provided by the embodiment of the invention is further described in the following by combining application examples:
as shown in fig. 4, firstly, a gun lifting signal of the oiling machine is input into the singlechip 21 through the relay 11; in order to prevent other equipment in a gas station from interfering with a refueling pulse signal of the refueling machine, the refueling pulse signal of the refueling machine is input into the singlechip 21 through the photoelectric coupler 12; the singlechip 21 is powered by a 5V power supply 22.
The gun lifting signal of the oiling machine is usually a switching value signal, when the oiling machine is operated by lifting the gun, the gun lifting signal of the oiling machine is input into the singlechip 21 through the relay 11, and after the singlechip 21 receives the gun lifting signal of the oiling machine, the oiling pulse signal of the oiling machine is counted. Because in the process of using the oiling machine during normal oiling, a certain time interval exists from gun lifting to opening of the main oil valve, and the time interval is set as the fixed time t through the singlechip 21. If the number of the oiling pulse signals received in the fixed time t from the moment that the singlechip 21 receives the gun lifting signal of the oiling machine is larger than zero, the oiling pulse signals are sent to the oiling machine. At this moment, singlechip 21 can judge that the tanker aircraft exists and carry the rifle and walk the word phenomenon, can send the warning of returning to zero the operation to the tanker aircraft through lighting the alarm lamp and/or drive bee calling organ, can also report to the police through the mode of display screen subtitle warning, voice broadcast in the practical application and remind.
If the phenomenon of gun lifting and moving of the oiling machine continuously occurs and reaches the set number n, the fact that the oiling machine has the gun lifting and moving fault can be judged, the oiling machine needs to be maintained, and at the moment, the oiling machine maintenance reminding is sent out in an alarm reminding mode similar to the gun lifting and moving. The set number of times n can be determined according to the experience of actually using the fuel dispenser and set in the single chip microcomputer 21. The experience of actually using the fuel dispenser is explained in the step S202 of the gun-lifting and wording detection method for the fuel dispenser, and is not described herein again.
According to the preferred embodiment of the invention, the detecting device for the gun lifting and character moving of the fuel dispenser can be further provided with a serial port 40, the detecting device can be connected with a client through the serial port 40, abnormal alarm data can be read through the client, the fault reason can be further analyzed, and the set times of the fixed time from the gun lifting signal of the fuel dispenser to the opening of the main fuel valve and the continuous occurrence of the gun lifting and character moving phenomena in the detecting method can be set and modified through the client. The client may be a PC terminal or a mobile terminal.
It should be noted that in the implementation process of the present invention, the relay, the photoelectric coupler, the single chip microcomputer, the buzzer, the alarm lamp, the power supply, etc. can be replaced by other elements with the same function, and the detection device for detecting the gun lifting and the moving of the fuel dispenser can be made into a separate detection device to be installed in the fuel dispenser, or can be integrated into the fuel dispenser controller. The fuel dispenser controller may be an ECM (Electronic Control Module), and has a function of continuously monitoring and controlling the normal operation of the fuel dispenser. According to the method for detecting the gun lifting and the word moving of the oiling machine, provided by the embodiment of the invention, whether the gun lifting and the word moving phenomenon and/or the gun lifting and the word moving fault exist in the oiling machine or not is judged, and a corresponding alarm prompt is sent out.
Although the embodiments of the present invention have been described in detail with reference to the accompanying drawings, the embodiments of the present invention are not limited to the details of the above embodiments, and various simple modifications can be made to the technical solutions of the embodiments of the present invention within the technical idea of the embodiments of the present invention, and the simple modifications all belong to the protection scope of the embodiments of the present invention.
It should be noted that the various features described in the above embodiments may be combined in any suitable manner without departing from the scope of the invention. In order to avoid unnecessary repetition, the embodiments of the present invention do not describe every possible combination.
In addition, any combination of various different implementation manners of the embodiments of the present invention is also possible, and the embodiments of the present invention should be considered as disclosed in the embodiments of the present invention as long as the combination does not depart from the spirit of the embodiments of the present invention.