Method, device, system and equipment for automatic calibration of valve lock distance of oil unloading valve

By using the automatic calibration method of lock valve distance in the oil-discharge valve, the coordinated work of the motor module, screw module and the lock main plate automatically calibrate the position of the valve core, solving the problem of not being able to detect whether the valve core is tight in the prior art, and the accurate judgment of the valve sealed state and prevention of oil leakage are achieved.

CN119594228BActive Publication Date: 2025-05-02BEIJING WANJIAXIN TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510144192.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-02-10
Publication Date
2025-05-02
Estimated Expiration
2045-02-10

AI Technical Summary

Technical Problem

The existing oil discharge valve cannot detect whether the valve core is closed, which may lead to oil leakage.

Method used

It provides an automatic calibration method for lock valve distance for oil-removing valves. Through the coordinated work of the motor module, the screw module and the lock motherboard, the calibration process is automatically performed, the stroke value is obtained, and the non-discrete algorithm is used to determine whether the valve core is closed.

Benefits of technology

Accurate detection of whether the valve core is closed is achieved, the oil leakage caused by false locks is avoided, and the valve is effectively closed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119594228B_ABST
    Figure CN119594228B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a method, device, system and equipment for automatic calibration of the valve lock distance of an oil unloading valve, which relates to the field of valve lock calibration technology. The method comprises: according to a calibration instruction, automatically executing a calibration process to obtain a plurality of stroke values; if the stroke value satisfies a set non-discrete algorithm, taking an average value of the plurality of stroke values ​​as a calibration value and storing it on a main board inside the lock; if the stroke value does not satisfy the set non-discrete algorithm, prompting a calibration failure; when the calibration is completed, storing the calibration value; when receiving an execution unsealing / sealing instruction, comparing the current stroke value with the calibration value; if the difference between the current stroke value and the calibration value is less than a first set threshold value, determining that the unsealing / sealing instruction is correct and the current unsealing / sealing is normal; for different automatic calibration algorithms for valve lock distances, the calibration value that passes the calibration is a reliable valve closed mark, which serves as a standard for whether the subsequent switch lock is in place, thereby eliminating the oil leakage problem caused by false lock closure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of lock valve calibration, and in particular to a method, device, system and equipment for automatic calibration of a lock valve distance of an oil unloading valve. Background Art

[0002] The API unloading valve is a liquid valve, the valve face and the valve core are rigidly connected, that is, the distance between the valve face and the valve core is fixed. When the valve stem is moved, the valve face and the valve core will keep moving in the same direction and distance. If the valve core is supported to prevent it from moving, it is equivalent to ensuring that the position of the valve face remains unchanged. The existing lock schemes are based on this principle, using the lock rod to support the valve core to fix the valve core and the valve face. The existing technology can only ensure that the valve core is supported and some pre-tightening force is applied. If the position of the valve core is correctly closed at the moment of support, the valve face is flat, and the liquid cannot flow through, then the closed state of the valve can be guaranteed before subsequent actions; but if the position of the valve core is not correctly closed when it is supported, the valve face is not flat, and the liquid can flow through, but the existing technology and products cannot sense the closed state of the valve core and will misjudge that the valve is closed.

[0003] That is, the prior art only performs the locking action, but cannot accurately detect whether it is tightly closed. For liquid valves, a gap exceeding 1 mm may allow liquid to flow through (depending on the elasticity of the valve rubber ring), which greatly reduces the effect of the lock and may cause oil leakage. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a method, device, system and equipment for automatic calibration of the valve lock distance of an oil unloading valve, so as to solve the problem that the existing oil unloading valve cannot detect whether the valve core is tightly closed, which may cause oil leakage.

[0005] In a first aspect, an embodiment of the present application provides a method for automatically calibrating a locking valve distance of an oil unloading valve, which is applied to an oil unloading valve locking system, wherein the oil unloading valve locking system comprises: a motor module, a screw module, an oil unloading valve and a main board inside the lock, wherein the motor module comprises an encoder, a motor and a reducer, and the method comprises:

[0006] When the switch lock of the oil unloading valve is installed for the first time, receive the calibration instructions;

[0007] According to the calibration instructions, the calibration process is automatically executed to obtain several stroke values;

[0008] If the stroke value satisfies the set non-discrete algorithm, the average value of several stroke values ​​is taken as the calibration value and stored on the main board inside the lock;

[0009] If the stroke value does not meet the set non-discrete algorithm, it will prompt that the calibration has failed;

[0010] When the calibration is completed, the calibration value is stored;

[0011] When receiving the unsealing / sealing instruction, the current stroke value is obtained and the current stroke value is compared with the calibration value;

[0012] If the difference between the current stroke value and the calibration value is less than the first set threshold, it is determined that the unsealing / sealing instruction is correct and the current unsealing / sealing is normal;

[0013] If the difference between the current stroke value and the calibration value is greater than the first set threshold, an over-long alarm or a too-short alarm is prompted according to the difference.

[0014] In the above implementation process, when the switch lock of the oil unloading valve is installed for the first time, a calibration instruction is received; according to the calibration instruction, the calibration process is automatically executed to obtain several stroke values; if the stroke value satisfies the set non-discrete algorithm, the average value of several stroke values ​​is taken as the calibration value and stored on the main board in the lock; if the stroke value does not satisfy the set non-discrete algorithm, it is prompted that the calibration failed; when the calibration is completed, the calibration value is stored; when the execution unsealing / sealing instruction is received, the current stroke value is obtained, and the current stroke value is compared with the calibration value; if the difference between the current stroke value and the calibration value is less than the first set threshold value, it is determined that the unsealing / sealing instruction is correct and the unsealing / sealing is normal this time; if the difference between the current stroke value and the calibration value is greater than the first set threshold value, an overlong alarm or a too short alarm is prompted according to the difference; the automatic calibration algorithm can be used for different valve lock distances, and the calibration value that passes the calibration is a reliable valve closed mark, which can be used as a standard for whether the subsequent switch lock is in place, and the oil leakage problem caused by false lock is eliminated.

[0015] Furthermore, the calibration process is automatically executed according to the calibration instruction to obtain several stroke values, including:

[0016] When the main board in the lock receives the calibration instruction, it automatically executes the calibration process according to the calibration instruction, repeatedly executes the sealing action setting group, and each group will obtain two stroke values, and obtain several stroke values; among which, the stroke value represents the movable distance of the screw rod between the current lock and the valve.

[0017] In the above implementation process, the stroke value is obtained so as to determine the calibration according to the stroke value.

[0018] Furthermore, the travel value does not satisfy the set non-discrete algorithm, including:

[0019] Taking the median value of the stroke value sequence, calculating the mathematical mean difference of the stroke values, if the mathematical mean difference of the stroke values ​​is greater than or equal to the second set threshold, determining that the stroke value does not satisfy the set non-discrete algorithm;

[0020] The travel value satisfies the set non-discrete algorithm, including:

[0021] If the mathematical mean difference of the stroke values ​​is less than the second set threshold, it is determined that the stroke values ​​meet the set non-discrete algorithm.

[0022] In the above implementation process, whether the stroke value satisfies the non-discrete algorithm is used to determine whether it complies with the calibration process, thereby detecting whether the valve core is tightly closed.

[0023] Furthermore, before the calibration process is automatically executed according to the calibration instruction to obtain a plurality of stroke values, the method further includes:

[0024] Detect whether the valve is in a closed state. If the state value indicates that the valve is in a state where liquid cannot flow through, the valve is in a closed state.

[0025] Check whether the valve is in a rigid connection state. If the movable distance of the screw rod is fixed, the valve is in a rigid connection state.

[0026] In the above implementation process, the valve needs to be tested. The calibration process can be carried out only when the valve status is normal to avoid affecting the calibration process.

[0027] Furthermore, it also includes:

[0028] When receiving the unsealing command, the motor is controlled to rotate in the forward direction through the encoder, and the screw of the screw module is driven to rotate in the first direction through the reducer until the screw touches the fixed sleeve of the oil unloading valve and stops;

[0029] When receiving the sealing execution instruction, the motor is controlled to rotate in the reverse direction through the encoder, and the screw of the screw module is driven to rotate in the second direction through the reducer until the screw touches the valve core of the oil unloading valve and stops.

[0030] In the above implementation process, the motor with a reducer and an encoder drives the screw rod to rotate, thereby realizing the unsealing and sealing of the oil unloading valve.

[0031] In the second aspect, the embodiment of the present application provides an automatic calibration device for the lock valve distance of an oil unloading valve, which is integrated in an oil unloading valve lock system. The oil unloading valve lock system includes: a motor module, a screw module, an oil unloading valve and a main board inside the lock. The motor module includes an encoder, a motor and a reducer. The device includes:

[0032] An instruction receiving module, used for receiving a calibration instruction when the switch lock of the oil unloading valve is installed for the first time;

[0033] The automatic calibration module is used to automatically execute the calibration process according to the calibration instructions to obtain several stroke values;

[0034] The calibration success module is used to take the average value of several stroke values ​​as the calibration value and store it on the main board inside the lock if the stroke value meets the set non-discrete algorithm;

[0035] The calibration failure module is used to indicate calibration failure if the stroke value does not meet the set non-discrete algorithm;

[0036] The calibration storage module is used to store the calibration value when the calibration is completed;

[0037] A stroke comparison module, for obtaining a current stroke value and comparing the current stroke value with a calibration value when receiving an instruction to execute an unsealing / sealing operation;

[0038] A first determination module, configured to determine that the unsealing / sealing instruction is correct and the current unsealing / sealing is normal if the difference between the current stroke value and the calibration value is less than a first set threshold;

[0039] The second determination module is used to prompt an over-long alarm or a too-short alarm according to the difference if the difference between the current stroke value and the calibration value is greater than a first set threshold.

[0040] In the third aspect, an embodiment of the present application provides an automatic calibration system for a locking valve distance of an oil unloading valve, comprising: an oil unloading valve locking system, the oil unloading valve locking system comprising: a motor module, a screw module, an oil unloading valve and a lock inner main board, the motor module comprising an encoder, a motor and a reducer; the motor module, the screw module and the lock inner main board are all arranged in the oil unloading valve, the lock inner main board is connected to the motor module, the motor is connected to the encoder and the reducer, and the motor module is connected to the screw module.

[0041] In a fourth aspect, an embodiment of the present application provides an electronic device, including:

[0042] A processor, a memory and a bus, wherein the processor is connected to the memory via the bus, and the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, they are used to implement the automatic calibration method for the locking valve distance of the oil unloading valve as described above.

[0043] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a server, the automatic calibration method for the locking valve distance of the oil unloading valve as described above is implemented.

[0044] In a sixth aspect, an embodiment of the present application provides a computer program product, which includes instructions, and when the instructions are executed by a computer, the computer implements the method as described above. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0046] Figure 1 A schematic flow chart of a method for automatically calibrating the locking valve distance of an oil unloading valve provided in an embodiment of the present application;

[0047] Figure 2 It is a structural schematic diagram of an automatic calibration device for locking valve distance of an oil unloading valve provided in an embodiment of the present application;

[0048] Figure 3 It is a structural schematic diagram of an automatic calibration device for locking valve distance of an oil unloading valve provided in an embodiment of the present application;

[0049] Figure 4 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;

[0050] Among them, 10, housing; 11, encoder; 12, motor; 13, motor seat; 14, driving shaft; 15, main board inside the lock; 21, small gear; 22, large gear; 23, screw assembly; 24, screw; 25, fixing sleeve. DETAILED DESCRIPTION

[0051] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0052] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0053] Please see Figure 1 , Figure 1 A flow chart of an automatic calibration method for the lock valve distance of an oil unloading valve provided in an embodiment of the present application. The automatic calibration method for the lock valve distance of an oil unloading valve is applied to an oil unloading valve lock system, the oil unloading valve lock system comprising: a motor module, a screw rod module, an oil unloading valve and a main board inside the lock, the motor module comprising an encoder, a motor and a reducer, the method comprising:

[0054] 100. When installing the switch lock of the oil unloading valve for the first time, receive the calibration instruction.

[0055] It is understood that when installing the switch lock of the oil unloading valve, receiving the calibration instruction ensures that the oil unloading valve can work accurately and safely. Optionally, before installation, ensure that the oil unloading valve and its related equipment are intact.

[0056] It is understandable that the valve needs to be tested, and the calibration process can only be carried out when the valve status is normal to avoid affecting the calibration process. Specifically, check whether the valve is in a closed state. If the status value indicates that the valve is in a state where liquid cannot flow through, the valve is in a closed state; check whether the valve is in a rigid connection state. If the movable distance of the screw rod is fixed, the valve is in a rigid connection state.

[0057] 200. According to the calibration instruction, the calibration process is automatically executed to obtain a plurality of stroke values.

[0058] Specifically, when the main board in the lock receives the calibration instruction, it automatically executes the calibration process according to the calibration instruction, repeatedly executes the sealing action setting group, and each group will obtain two stroke values, and obtain several stroke values; among them, the stroke value represents the movable distance of the screw rod between the current lock and the valve.

[0059] For example, when the lock is first installed, a calibration command needs to be sent after authorization. After receiving the command, the main board in the lock will automatically execute the calibration process, that is, repeatedly perform three groups of sealing / unsealing actions, and each group will get two stroke values, a total of six. The stroke value represents the movable distance of the screw rod between the current lock and the valve. When the six values ​​meet the non-discrete algorithm, the average of the six values ​​is taken as the calibration value and stored on the main board in the lock (not lost when power is off). When the six values ​​do not meet the non-discrete algorithm, the calibration fails.

[0060] 300. If the stroke value satisfies the set non-discrete algorithm, the average value of several stroke values ​​is taken as the calibration value and stored on the main board inside the lock.

[0061] Optionally, it is determined whether the stroke value satisfies a set non-discrete algorithm. Specifically, if the mathematical mean difference of the stroke value is less than a second set threshold, it is determined that the stroke value satisfies the set non-discrete algorithm. Thus, it is determined whether the calibration process is met by determining whether the stroke value satisfies the non-discrete algorithm, so as to detect whether the valve core is closed tightly. Exemplarily, if the mean difference is less than the second set threshold, it is determined that the stroke value satisfies the set non-discrete algorithm.

[0062] 400. If the stroke value does not satisfy the set non-discrete algorithm, it will prompt that the calibration failed.

[0063] Optionally, when judging whether the stroke value satisfies the set non-discrete algorithm, specifically, the median value of the stroke value sequence is taken, and the mathematical mean difference of the stroke values ​​is calculated. If the mathematical mean difference of the stroke values ​​is greater than or equal to a second set threshold, it is judged that the stroke value does not satisfy the set non-discrete algorithm.

[0064] Exemplarily, the median value of the stroke value sequence is taken. Specifically, the stroke values ​​are first sorted, and the 4th of the 6 stroke values ​​is taken from small to large, and then the mathematical mean difference is calculated, that is, each stroke value is subtracted from the median value, the signs are removed and then the sum is calculated. If the mean difference is greater than or equal to the second set threshold, it is determined that the stroke value does not satisfy the set non-discrete algorithm; it can be understood that the specific value of the second set threshold can be set according to specific needs, and the embodiment of the present application is not limited to this.

[0065] 500. When the calibration is completed, the calibration value is stored.

[0066] 600. When receiving an unsealing / sealing instruction, obtain a current stroke value, and compare the current stroke value with a calibration value.

[0067] 700. If the difference between the current stroke value and the calibration value is less than the first set threshold, it is determined that the unsealing / sealing instruction is correct and the current unsealing / sealing is normal.

[0068] 800. If the difference between the current stroke value and the calibration value is greater than the first set threshold, an over-long alarm or a too-short alarm is prompted according to the difference.

[0069] For example, once the calibration is completed, the main board in the lock stores the calibration value. Each time the program executes the unsealing and sealing operation, it will compare the current stroke value with the calibration value. If the difference between the two is less than the first set threshold, it is determined that the unsealing and sealing operation is normal. If the difference between the two is greater than the first set threshold, an alarm for too long or too short stroke is prompted (there is a risk that liquid may flow through the valve).

[0070] As mentioned above, in the embodiment of the present application, when the switch lock of the oil unloading valve is installed for the first time, a calibration instruction is received; according to the calibration instruction, a calibration process is automatically executed to obtain several stroke values; if the stroke value satisfies the set non-discrete algorithm, the average value of several stroke values ​​is taken as the calibration value and stored on the main board in the lock; if the stroke value does not satisfy the set non-discrete algorithm, it is prompted that the calibration failed; when the calibration is completed, the calibration value is stored; when the execution unsealing / sealing instruction is received, the current stroke value is obtained, and the current stroke value is compared with the calibration value; if the difference between the current stroke value and the calibration value is less than the first set threshold value, it is determined that the unsealing / sealing instruction is correct and the unsealing / sealing is normal this time; if the difference between the current stroke value and the calibration value is greater than the first set threshold value, an overlong alarm or a too short alarm is prompted according to the difference; the automatic calibration algorithm can be used for different valve lock distances, and the calibration value that passes the calibration is a reliable valve closed mark, which can be used as a standard for whether the subsequent switch lock is in place, thereby eliminating the oil leakage problem caused by false lock.

[0071] On the basis of the above embodiment, the method for automatic calibration of the locking valve distance of the oil unloading valve can also be embodied as follows:

[0072] When an unsealing instruction is received, the motor is controlled to rotate in the forward direction through the encoder, and the screw of the screw module is driven to rotate in the first direction through the reducer until the screw touches the fixed sleeve of the oil unloading valve and stops; when an execution of sealing instruction is received, the motor is controlled to rotate in the reverse direction through the encoder, and the screw of the screw module is driven to rotate in the second direction through the reducer until the screw touches the valve core of the oil unloading valve and stops; thus, the screw is driven to rotate by the motor with the reducer and the encoder to realize the unsealing and sealing of the oil unloading valve.

[0073] Exemplarily, the oil unloading valve lock used in the embodiment of the present application is a structure of a motor with an encoder and a reducer combined with a screw. The horizontal displacement of the screw is set. The encoder counts one step for each rotation of the motor. Due to the action of the reducer, the horizontal displacement of the screw is only 0.045 mm, that is, the screw position detection accuracy of this lock structure is 0.045 mm. The distance that the screw moves from unsealing to sealing each time is stable, and the corresponding encoder steps do not exceed two steps, and the error does not exceed 0.09 mm.

[0074] The above steps are not to be performed in a strict order as described in the numbers, but should be understood as an overall solution.

[0075] In the second aspect, based on the above embodiments, Figure 2 This is a schematic diagram of the structure of an automatic calibration device for the locking valve distance of an oil unloading valve provided in an embodiment of the present application. Figure 2 The automatic calibration device for the locking valve distance of the oil unloading valve provided in this embodiment is integrated into the oil unloading valve locking system. The oil unloading valve locking system includes: a motor module, a screw module, an oil unloading valve and a main board inside the lock. The motor module includes an encoder, a motor and a reducer. The device includes: an instruction receiving module 201, an automatic calibration module 202, a calibration success module 203, a calibration failure module 204, a calibration storage module 205, a stroke comparison module 206, a first determination module 207 and a second determination module 208.

[0076] Among them, the instruction receiving module 201 is used to receive the calibration instruction when the switch lock of the oil unloading valve is installed for the first time; the automatic calibration module 202 is used to automatically execute the calibration process according to the calibration instruction to obtain a number of stroke values; the calibration success module 203 is used to take the average value of a number of stroke values ​​as the calibration value and store it on the main board inside the lock if the stroke value satisfies the set non-discrete algorithm; the calibration failure module 204 is used to prompt the calibration failure if the stroke value does not satisfy the set non-discrete algorithm; the calibration storage module 205 is used to store the calibration value when the calibration is completed; the stroke comparison module 206 is used to obtain the current stroke value when receiving the execution unsealing / sealing instruction, and compare the current stroke value with the calibration value; the first judgment module 207 is used to determine that the unsealing / sealing instruction is correct and the unsealing / sealing is normal this time if the difference between the current stroke value and the calibration value is less than the first set threshold; the second judgment module 208 is used to prompt an over-long alarm or a too-short alarm according to the difference situation if the difference between the current stroke value and the calibration value is greater than the first set threshold.

[0077] As mentioned above, in the embodiment of the present application, when the switch lock of the oil unloading valve is installed for the first time, a calibration instruction is received; according to the calibration instruction, a calibration process is automatically executed to obtain several stroke values; if the stroke value satisfies the set non-discrete algorithm, the average value of several stroke values ​​is taken as the calibration value and stored on the main board in the lock; if the stroke value does not satisfy the set non-discrete algorithm, it is prompted that the calibration failed; when the calibration is completed, the calibration value is stored; when the execution unsealing / sealing instruction is received, the current stroke value is obtained, and the current stroke value is compared with the calibration value; if the difference between the current stroke value and the calibration value is less than the first set threshold value, it is determined that the unsealing / sealing instruction is correct and the unsealing / sealing is normal this time; if the difference between the current stroke value and the calibration value is greater than the first set threshold value, an overlong alarm or a too short alarm is prompted according to the difference; the automatic calibration algorithm can be used for different valve lock distances, and the calibration value that passes the calibration is a reliable valve closed mark, which can be used as a standard for whether the subsequent switch lock is in place, thereby eliminating the oil leakage problem caused by false lock.

[0078] The automatic calibration device for the locking valve distance of an oil unloading valve provided in the embodiment of the present application can be used to execute the automatic calibration method for the locking valve distance of an oil unloading valve provided in the above-mentioned embodiment, and has corresponding functions and beneficial effects.

[0079] In the third aspect, based on the above embodiments, Figure 3 This is a schematic diagram of the structure of an automatic calibration system for the lock valve distance of an oil unloading valve provided in an embodiment of the present application. Figure 3The automatic calibration system for the locking valve distance of the oil unloading valve provided in this embodiment specifically includes: an oil unloading valve locking system, the oil unloading valve locking system includes: a motor module, a screw module, an oil unloading valve and a lock inner main board 15, the motor module includes an encoder 11, a motor 12 and a reducer; the motor module, the screw module and the lock inner main board are all arranged in the oil unloading valve, the lock inner main board 15 is connected to the motor module, the motor 12 is connected to the encoder 11 and the reducer, and the motor module is connected to the screw module.

[0080] In some embodiments, please refer to Figure 3 , the screw module includes a screw and a screw assembly; the motor module is arranged in the housing 10, the motor 12 is arranged on the motor seat 13, the encoder 11 is arranged on the motor 12, the pinion 21 is connected to the motor 12 through the driving shaft 14, the large gear 22 is connected to the pinion 21 and the screw 24, the screw assembly 23 is connected to the screw 24 and is used to assist the movement of the screw 24, and the screw module is arranged in the fixed sleeve 25. Specifically, for each rotation of the motor 12, the encoder 11 counts one step, and the speed of the transmission of the motor 12 to the screw module is controlled by the reducer. Specifically, the pinion 21, the large gear 22 and the screw 24 are driven to rotate in sequence through the driving shaft 14. When unsealing, the screw 24 moves in the first direction and finally stops when it hits the fixed sleeve 25; when sealing, the screw 24 moves to the right and finally stops when it hits the valve core of the oil unloading valve.

[0081] It can be understood that the various templates are connected by connecting components, for example, screw connections, bolt connections, etc.

[0082] In a fourth aspect, an embodiment of the present application further provides an electronic device, which can integrate the automatic calibration device for the locking valve distance of the oil unloading valve provided in the embodiment of the present application. Figure 4 Schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 4 The electronic device includes: an input device 43, an output device 44, a memory 42 and one or more processors 41; the memory 42 is used to store one or more programs; when the one or more programs are executed by the one or more processors 41, the one or more processors 41 implement the automatic calibration method for the lock valve distance of the oil unloading valve provided in the above embodiment. The input device 43, the output device 44, the memory 42 and the processor 41 can be connected by a bus or other means. Figure 4 The example of connecting through bus is taken in the following.

[0083] The processor 41 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 42, that is, realizes the above-mentioned automatic calibration method of the locking valve distance for the oil unloading valve.

[0084] The electronic device provided above can be used to execute the automatic calibration method for the locking valve distance of the oil unloading valve provided in the above embodiment, and has corresponding functions and beneficial effects.

[0085] In the fifth aspect, an embodiment of the present application also provides a computer-readable storage medium, which includes a stored computer program; wherein, when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the automatic calibration method of the locking valve distance for the oil unloading valve as described above, and can achieve the same beneficial effects.

[0086] Of course, the storage medium containing computer executable instructions provided in an embodiment of the present application, whose computer executable instructions are not limited to the automatic calibration method for the locking valve distance of the oil unloading valve as described above, can also execute related operations in the automatic calibration method for the locking valve distance of the oil unloading valve provided in any embodiment of the present application.

[0087] In a sixth aspect, the embodiments of the present application also provide a computer program product, and the methods described in the various embodiments of the present application can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed on a computer, the processes or functions described in the various embodiments of the present application are executed in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device, a core network device, an OAM (Open Application Model) or other programmable device.

[0088] The computer program or instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; it may also be an optical medium, such as a digital video disk; it may also be a semiconductor medium, such as a solid-state drive. The computer-readable storage medium may be a volatile or non-volatile storage medium, or may include both volatile and non-volatile types of storage media.

[0089] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0090] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0091] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for enabling an electronic device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.

[0092] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.

[0093] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0094] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

Claims

1. A method for automatically calibrating the locking valve distance of an oil unloading valve, characterized in that: Applied to an oil unloading valve lock system, the oil unloading valve lock system comprises: a motor module, a screw module, an oil unloading valve and a main board inside the lock, the motor module comprises an encoder, a motor and a reducer, and the method comprises: When the switch lock of the oil unloading valve is installed for the first time, receive the calibration instructions; According to the calibration instructions, the calibration process is automatically executed to obtain several stroke values; If the stroke value satisfies the set non-discrete algorithm, the average value of several stroke values ​​is taken as the calibration value and stored on the main board inside the lock; If the stroke value does not meet the set non-discrete algorithm, it will prompt that the calibration has failed; When the calibration is completed, the calibration value is stored; When receiving the unsealing / sealing instruction, the current stroke value is obtained and the current stroke value is compared with the calibration value; If the difference between the current stroke value and the calibration value is less than the first set threshold, it is determined that the unsealing / sealing instruction is correct and the current unsealing / sealing is normal; If the difference between the current stroke value and the calibration value is greater than the first set threshold, an over-long alarm or a too-short alarm is prompted according to the difference; The travel value does not satisfy the set non-discrete algorithm, including: Taking the median value of the stroke value sequence, calculating the mathematical mean difference of the stroke values, if the mathematical mean difference of the stroke values ​​is greater than or equal to the second set threshold, determining that the stroke value does not satisfy the set non-discrete algorithm; The travel value satisfies the set non-discrete algorithm, including: If the mathematical mean difference of the stroke values ​​is less than the second set threshold, it is determined that the stroke values ​​meet the set non-discrete algorithm.

2. The automatic calibration method for locking valve distance of an oil unloading valve according to claim 1 is characterized in that: According to the calibration instruction, the calibration process is automatically executed to obtain several stroke values, including: When the main board in the lock receives the calibration instruction, it automatically executes the calibration process according to the calibration instruction, repeatedly executes the sealing action setting group, and each group will obtain two stroke values, and obtain several stroke values; among which, the stroke value represents the movable distance of the screw rod between the current lock and the valve.

3. The automatic calibration method for locking valve distance of an oil unloading valve according to claim 1, characterized in that: Before the calibration process is automatically executed according to the calibration instruction to obtain a plurality of stroke values, the method further includes: Detect whether the valve is in a closed state. If the state value indicates that the valve is in a state where liquid cannot flow through, the valve is in a closed state. Check whether the valve is in a rigid connection state. If the movable distance of the screw rod is fixed, the valve is in a rigid connection state.

4. The automatic calibration method for locking valve distance of an oil unloading valve according to claim 1, characterized in that: Also includes: When receiving the unsealing command, the motor is controlled to rotate in the forward direction through the encoder, and the screw of the screw module is driven to rotate in the first direction through the reducer until the screw touches the fixed sleeve of the oil unloading valve and stops; When receiving the sealing execution instruction, the motor is controlled to rotate in the reverse direction through the encoder, and the screw of the screw module is driven to rotate in the second direction through the reducer until the screw touches the valve core of the oil unloading valve and stops.

5. An automatic calibration device for the locking valve distance of an oil unloading valve, characterized in that: Integrated in the oil unloading valve lock system, the oil unloading valve lock system includes: a motor module, a screw module, an oil unloading valve and a main board in the lock, the motor module includes an encoder, a motor and a reducer, and the device includes: An instruction receiving module, used for receiving a calibration instruction when the switch lock of the oil unloading valve is installed for the first time; The automatic calibration module is used to automatically execute the calibration process according to the calibration instructions to obtain several stroke values; The calibration success module is used to take the average value of several stroke values ​​as the calibration value and store it on the main board inside the lock if the stroke value meets the set non-discrete algorithm; The calibration failure module is used to indicate calibration failure if the stroke value does not meet the set non-discrete algorithm; The calibration storage module is used to store the calibration value when the calibration is completed; A stroke comparison module, for obtaining a current stroke value and comparing the current stroke value with a calibration value when receiving an instruction to execute an unsealing / sealing operation; A first determination module, configured to determine that the unsealing / sealing instruction is correct and the current unsealing / sealing is normal if the difference between the current stroke value and the calibration value is less than a first set threshold; The second determination module is used to prompt an over-long alarm or a too-short alarm according to the difference if the difference between the current stroke value and the calibration value is greater than a first set threshold; The travel value does not satisfy the set non-discrete algorithm, including: Taking the median value of the stroke value sequence, calculating the mathematical mean difference of the stroke values, if the mathematical mean difference of the stroke values ​​is greater than or equal to the second set threshold, determining that the stroke value does not satisfy the set non-discrete algorithm; The travel value satisfies the set non-discrete algorithm, including: If the mathematical mean difference of the stroke values ​​is less than the second set threshold, it is determined that the stroke values ​​meet the set non-discrete algorithm.

6. An automatic calibration system for the locking valve distance of an oil unloading valve, characterized in that: The automatic calibration device for the locking valve distance of the oil unloading valve according to claim 5 is adopted, and the system includes: an oil unloading valve locking system, and the oil unloading valve locking system includes: a motor module, a screw module, an oil unloading valve and a lock inner main board, and the motor module includes an encoder, a motor and a reducer; the motor module, the screw module and the lock inner main board are all arranged in the oil unloading valve, the lock inner main board is connected to the motor module, the motor is connected to the encoder and the reducer, and the motor module is connected to the screw module.

7. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the processor is connected to the memory via the bus, and the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, they are used to implement the automatic calibration method for the locking valve distance of an oil unloading valve as described in any one of claims 1 to 4.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a server, implements the automatic calibration method for the locking valve distance of an oil unloading valve as described in any one of claims 1-4.

9. A computer program product, characterized in that The computer program product comprises instructions, which, when executed by a computer, enable the computer to implement the method for automatic calibration of the locking valve distance of an oil unloading valve according to any one of claims 1-4.

Citation Information

Patent Citations

  • A intelligent actuating mechanism for adjusting dilute water valve

    CN204644770U

  • Flame -proof type unloading valve controls lock

    CN208535297U