Valve limit switch margin measurement method and system, electronic device and storage medium
By automatically recording the travel and time of the valve limit switch, the problem of inaccurate measurement of valve limit switch margin in existing technologies is solved, realizing automated and accurate margin measurement, and improving equipment safety and efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA GENERAL NUCLEAR POWER OPERATION
- Filing Date
- 2023-06-20
- Publication Date
- 2026-06-12
AI Technical Summary
Existing technologies cannot accurately measure the operating margin of valve limit switches, leading to frequent malfunctions, affecting equipment safety and project schedule losses. There is a lack of effective automated measurement tools and methods.
A method for measuring the margin of a valve limit switch is provided. The method controls the valve movement by acquiring valve signals and records the stroke when the limit switch is activated or restored. The method automatically calculates the action and restoration margin and realizes automated measurement by using a signal acquisition module and a monitoring module.
It enables automated and accurate measurement of limit switch margins, improves measurement efficiency, reduces manpower input, and ensures equipment safety.
Smart Images

Figure CN116892648B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of instrument and control maintenance, and in particular to a method, system, electronic device, and storage medium for measuring the margin of valve limit switches. Background Technology
[0002] Linear-stroke valve limit switches are widely used in pneumatic control valves, pneumatic on / off valves, electric valves, and other valves. Some limit switches participate in important control and protection logic, and frequent occurrences of significant project delays and IOE (Input / Output Error) events due to limit switch failures are often related to unreasonable limit switch action margin settings. However, there are currently two main measurement methods: 1. Indirect counting method: the time from when the limit switch just actuates to when the valve stops moving, ensuring action margin with time margin; 2. Length measurement method: the distance from the point where the limit switch just actuates to the point where the valve is fully open / fully closed.
[0003] The above measurement methods all require manual judgment of the measurement points, and can only roughly measure the limit switch action margin. The error is large and cannot effectively guarantee equipment safety. Moreover, the method is not applicable to valves with small strokes and valves that cannot be stopped midway. Therefore, the main reason why power plants cannot make precise and standardized adjustments to the limit switch margin is the lack of effective tools and methods. Summary of the Invention
[0004] The technical problem to be solved by the present invention is to address at least one deficiency of the related technologies mentioned in the background: how to automate and accurately measure the operating margin of limit switches, and to provide a valve limit switch margin measurement method, system, electronic device and storage medium.
[0005] The technical solution adopted by this invention to solve its technical problem is: to provide a method for measuring the margin of a valve limit switch, comprising the following steps:
[0006] Step S1: Obtain the first valve closing signal input;
[0007] Step S2: Control the valve according to the first valve closing signal, and when the limit switch is detected to be activated, record the stroke at this moment as the first stroke;
[0008] Step S3: If the valve stroke stops changing, record the current stroke as the second stroke, and obtain the closing limit switch action margin based on the first and second strokes;
[0009] Step S4: Obtain the input valve opening signal;
[0010] Step S5: Control the valve according to the valve opening signal, and when the limit switch is detected to be restored, record the stroke at this moment as the third stroke, and obtain the limit switch restoration margin according to the second stroke and the third stroke;
[0011] Step S6: If the limit switch is detected to be activated, record the travel distance at this moment as the fourth travel distance;
[0012] Step S7: If the valve stroke stops changing again, record the current stroke as the fifth stroke, and obtain the opening limit switch action margin based on the fourth and fifth strokes;
[0013] Step S8: Obtain the input second valve closing signal;
[0014] Step S9: Control the valve according to the second valve closing signal, and when the open limit switch is detected to be restored, record the stroke at this moment as the sixth stroke, and obtain the open limit switch restoration margin according to the fifth stroke and the sixth stroke.
[0015] Preferably, after step S9, the method further includes:
[0016] Step S10: If the limit switch is detected to operate again, record the current travel distance as the seventh travel distance, and check the deviation based on the first travel distance and the seventh travel distance.
[0017] Preferably, step S2 further includes: when the limit switch is detected to be activated, recording the time at that moment as the first time;
[0018] Step S3 further includes: monitoring the valve stroke to remain stable within a preset time, recording this time as the second time, and obtaining the closing limit switch time margin based on the first time, the second time, and the preset time.
[0019] Preferably, step S6 further includes: when the limit switch is detected to be activated, recording the time at that moment as the fourth time.
[0020] Step S7 further includes: monitoring the valve stroke to remain stable within a preset time, recording this time as the fifth time, and obtaining the opening limit switch time margin based on the fourth time, the fifth time, and the preset time.
[0021] Preferably, before step S1, the method further includes: S01: powering on and resetting the internal circuit to complete information initialization.
[0022] Preferably, before step S1, the method further includes: S02: monitoring whether the acquired voltage signal is normal. If a voltage signal of 1-5VDC is acquired, then proceed to the subsequent steps.
[0023] The present invention also constructs a valve limit switch margin measurement system, comprising:
[0024] The first signal acquisition module is used to acquire the input first valve closing signal;
[0025] The first monitoring module is used to control the valve according to the first valve closing signal, and when the limit switch is detected to be activated, record the stroke at this moment as the first stroke;
[0026] The second monitoring module is used to record the current stroke as the second stroke if it detects that the stroke of the valve has stopped changing, and to obtain the closing limit switch action margin based on the first stroke and the second stroke.
[0027] The second signal acquisition module is used to acquire the input valve opening signal;
[0028] The third monitoring module is used to control the valve according to the valve opening signal, and when the limit switch is detected to be restored, record the stroke at this moment as the third stroke, and obtain the limit switch restoration margin according to the second stroke and the third stroke.
[0029] The fourth monitoring module is used to record the travel distance at this moment as the fourth travel distance if the limit switch is detected to be activated.
[0030] The fifth monitoring module is used to record the current stroke as the fifth stroke if the valve stroke stops changing again, and to obtain the opening limit switch action margin based on the fourth stroke and the fifth stroke.
[0031] The third signal acquisition module is used to acquire the input second valve closing signal;
[0032] The sixth monitoring module is used to control the valve according to the second valve closing signal, and when the open limit switch is detected to be restored, it records the stroke at this moment as the sixth stroke, and obtains the open limit switch restoration margin according to the fifth stroke and the sixth stroke.
[0033] Preferably, it further includes:
[0034] The seventh monitoring module is used to record the current travel as the seventh travel when the limit switch is detected to operate again, and to check the deviation based on the first travel and the seventh travel.
[0035] The present invention also constructs an electronic device comprising:
[0036] One or more processors;
[0037] A storage device for storing one or more programs that, when executed by one or more processors, cause the one or more processors to implement the valve limit switch margin measurement method as described in any of the preceding claims.
[0038] The present invention also provides a storage medium storing a computer program thereon, which, when executed by a processor, implements the valve limit switch margin measurement method as described in any of the preceding claims.
[0039] By implementing this invention, the following beneficial effects are achieved:
[0040] This invention discloses a method, system, electronic device, and storage medium for measuring the travel margin of a valve limit switch. By controlling two limit switches, the measurement starts sequentially from the closing of the electronic contacts of the limit switches, and ends at the automatically determined resting point and the opening of the electronic contacts. The system automatically records the position points of each stroke according to a preset program, obtaining the action margin and recovery margin of the limit switch to be measured. By implementing this invention, the process of measuring the action margin of the limit switch is automated, the measurement results are more accurate, efficiency is improved, and manpower is reduced. Attached Figure Description
[0041] The present invention will be further described below with reference to the accompanying drawings and embodiments. In the accompanying drawings:
[0042] Figure 1 This is a structural connection diagram of the detection device of the present invention;
[0043] Figure 2 This is a flowchart illustrating the valve limit switch margin measurement method of the present invention.
[0044] Figure 3 This is a schematic diagram of the valve stroke and time flow of the present invention;
[0045] Figure 4 This is a schematic flowchart of the first embodiment of the present invention;
[0046] Figure 5 This is a block diagram of the valve limit switch margin measurement system of the present invention;
[0047] The attached diagrams are labeled as follows: 1. Light shield; 2. Laser sensor; 3. Valve body; 4. Limit switch junction box; 5. Processor; 6. Test line. Detailed Implementation
[0048] To provide a clearer understanding of the technical features, objectives, and effects of the present invention, specific embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
[0049] It should be noted that the flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily need to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.
[0050] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0051] Before performing valve limit switch margin measurement, it is also necessary to... Figure 1 As shown, the relevant equipment is connected, the laser sensor 2 is installed near the yoke of the valve body 3, and the light shield 1 of the laser sensor 2 is installed at a position that can move freely with the valve stem (at the coupling or on the valve stem). The light shield 1 is initially adjusted to match the laser distance sensor 2 properly, so that the laser beam is parallel to the valve stem axis and the laser is perpendicular to the plane where the light shield 1 is located.
[0052] Connect the limit switch junction box 4, processor 5, and laser sensor 2 via test line 6. First, power on the laser sensor 2 via processor 5, which will power on and reset the internal circuitry of the laser sensor 2, completing the initialization.
[0053] The system automatically detects whether the output value from the laser sensor 2 to the processor 5 is normal. When the processor 5 detects a 1-5VDC standard voltage signal, it determines that the connection is normal; otherwise, it needs to check the laser sensor 2 and related wiring until the connection is normal.
[0054] The laser sensor 2 transmits the measured stroke value to the processor 5 for display. Based on the displayed value, the installation position of the laser sensor 2 or its matching light shield 1 is further adjusted to ensure that the valve remains within the optimal measurement range of the laser sensor 2 after it is activated (the valve activation range is symmetrically distributed on both sides of the measurement center distance of the laser sensor 2).
[0055] In this embodiment, as Figure 2 As shown, the present invention provides a method for measuring the margin of a valve limit switch, comprising the following steps:
[0056] Step S1: Obtain the first valve closing signal input;
[0057] Step S2: Control the valve according to the first valve closing signal, and when the limit switch is detected to be activated, record the stroke at this moment as the first stroke;
[0058] Step S3: If the valve stroke stops changing, record the current stroke as the second stroke, and obtain the closing limit switch action margin based on the first and second strokes;
[0059] Step S4: Obtain the input valve opening signal;
[0060] Step S5: Control the valve according to the valve opening signal, and when the limit switch is detected to be restored, record the stroke at this moment as the third stroke, and obtain the limit switch restoration margin according to the second stroke and the third stroke;
[0061] Step S6: If the limit switch is detected to be activated, record the travel distance at this moment as the fourth travel distance;
[0062] Step S7: If the valve stroke stops changing again, record the current stroke as the fifth stroke, and obtain the limit switch action margin based on the fourth and fifth strokes;
[0063] Step S8: Obtain the input second valve closing signal;
[0064] Step S9: Control the valve according to the second valve closing signal, and when the limit switch is detected to be restored, record the stroke at this moment as the sixth stroke, and obtain the limit switch restoration margin according to the fifth stroke and the sixth stroke.
[0065] Specifically:
[0066] like Figure 3 and Figure 4 As shown, in this embodiment, in order to control the complete process of the valve, control is carried out from the valve's open state to the closed state, and the travel distance of each point in the above steps and the corresponding time point of each travel distance are automatically recorded.
[0067] The recorded time includes: opening time (time required for the valve to go from fully closed to fully open); closing time (time required for the valve to go from fully open to fully closed); opening limit switch operating margin (displacement of valve stroke from the moment the opening limit switch is triggered until the valve is fully open); opening limit switch recovery margin (displacement of valve stroke from the moment the valve is fully open until it returns to the opening limit); closing limit switch operating margin (displacement of valve stroke from the moment the closing limit switch is triggered until the valve is fully closed); and closing limit switch recovery margin (displacement of valve stroke from the moment the valve is fully closed until it returns to the closing limit).
[0068] In this embodiment, before step S1, the method further includes: S01: Powering on and resetting the internal circuit to complete information initialization.
[0069] Furthermore, before step S1, step S02 is included: monitoring whether the acquired voltage signal is normal. If a voltage signal of 1-5VDC is acquired, then proceed to the subsequent steps.
[0070] In this embodiment, step S9 is followed by:
[0071] Step S10: If the limit switch is detected to operate again, record the current travel distance as the seventh travel distance, and check the deviation based on the first travel distance and the seventh travel distance.
[0072] Furthermore, in this embodiment, step S2 further includes: when the action of the limit switch is detected, recording the time at that moment as the first time;
[0073] Step S3 also includes: monitoring the valve stroke to remain stable within a preset time, recording this time as the second time, and obtaining the closing limit switch time margin based on the first time, the second time, and the preset time.
[0074] In this embodiment, step S2: control the valve according to the first valve closing signal, and when the limit switch is detected to be activated, record the stroke at this moment as the first stroke L1 and the first time T1 at this moment;
[0075] Step S3: Continuously monitor the change in valve stroke. When the valve stabilizes within 1000ms, record the time as the second stroke L2 and the second time T2. Output the closing limit switch action margin as |L1-L2| and the closing limit switch time action margin as |T2-T1-1000ms|.
[0076] Step S5: Control the valve according to the valve opening signal, and when the limit switch is detected to be restored, record the stroke at this moment as the third stroke L3 and the third time T3, and output the limit switch restoration margin as |L3-L2|.
[0077] In addition, in this embodiment, step S6 further includes: when the limit switch is detected to be activated, the time at that moment is recorded as the fourth time.
[0078] Step S7 also includes: monitoring the valve stroke to remain stable within a preset time, recording this time as the fifth time, and obtaining the opening limit switch time margin based on the fourth time, the fifth time, and the preset time.
[0079] In this embodiment, step S6: if the action of the limit switch is detected, the travel distance at this moment is recorded as the fourth travel distance L4 and the fourth time T4.
[0080] Step S7: Continuously monitor the valve stroke change. When the valve stabilizes within 1000ms, record the time as the fifth stroke L5 and the fifth time T5. Output the limit switch action margin as |L5-L4| and the limit switch time action margin as |T5-T4-1000ms|.
[0081] Step S9: Control the valve according to the second valve closing signal, and when the limit switch is detected to be restored, record the stroke at this moment as the sixth stroke L6 and the sixth time T6, and output the limit switch restoration margin as |L6-L5|.
[0082] Step S10: If the limit switch is detected to move again, record the current stroke as the seventh stroke L7 and the current time T7; and check the deviation between the first stroke and the seventh stroke according to |L7-L1| to check whether it has returned to the starting point of the valve switch.
[0083] In this embodiment, as Figure 5 As shown, the present invention also constructs a valve limit switch margin measurement system, comprising:
[0084] The first signal acquisition module is used to acquire the input first valve closing signal;
[0085] The first monitoring module is used to control the valve according to the first valve closing signal, and when the limit switch is detected to be activated, the stroke at this moment is recorded as the first stroke;
[0086] The second monitoring module is used to record the current stroke as the second stroke if it detects that the valve stroke has stopped changing, and to obtain the closing limit switch action margin based on the first stroke and the second stroke.
[0087] The second signal acquisition module is used to acquire the input valve opening signal;
[0088] The third monitoring module is used to control the valve according to the valve opening signal, and when the limit switch is detected to be restored, it records the stroke at this moment as the third stroke, and obtains the limit switch restoration margin according to the second stroke and the third stroke.
[0089] The fourth monitoring module is used to record the travel distance at this moment as the fourth travel distance if the limit switch is detected to be activated.
[0090] The fifth monitoring module is used to record the current stroke as the fifth stroke if the valve stroke stops changing again, and to obtain the opening limit switch action margin based on the fourth and fifth strokes.
[0091] The third signal acquisition module is used to acquire the input second valve closing signal;
[0092] The sixth monitoring module is used to control the valve according to the second valve closing signal, and when the open limit switch is detected to be restored, it records the stroke at this moment as the sixth stroke, and obtains the open limit switch restoration margin according to the fifth stroke and the sixth stroke.
[0093] In this embodiment, it also includes:
[0094] The seventh monitoring module is used to record the current travel as the seventh travel when the limit switch is detected to operate again, and to check the deviation based on the first travel and the seventh travel.
[0095] Specifically, the specific coordination and operation process between the modules in the valve limit switch margin measurement system can be referred to the valve limit switch margin measurement method described above, and will not be repeated here.
[0096] Furthermore, an electronic device according to the present invention includes a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program to implement the valve limit switch margin measurement method as described above. Specifically, according to embodiments of the present invention, the processes described above with reference to the flowchart can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowchart. In such embodiments, when the computer program is downloaded, installed, and executed by an electronic device, it performs the functions defined in the methods of the embodiments of the present invention. The electronic device in the present invention can be a terminal such as a laptop, desktop computer, tablet computer, or smartphone, or it can be a server.
[0097] Furthermore, one type of storage medium of the present invention stores a computer program thereon, which, when executed by a processor, implements the valve limit switch margin measurement method described above. Specifically, it should be noted that the storage medium described above in the present invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. The transmitted data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0098] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0099] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to the method section.
[0100] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0101] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0102] By implementing this invention, the following beneficial effects are achieved:
[0103] This invention discloses a method, system, electronic device, and storage medium for measuring the travel margin of a valve limit switch. By controlling two limit switches, the measurement starts sequentially from the closing of the electronic contacts of the limit switches, and ends at the automatically determined resting point and the opening of the electronic contacts. The system automatically records the position points of each stroke according to a preset program, obtaining the action margin and recovery margin of the limit switch to be measured. By implementing this invention, the process of measuring the action margin of the limit switch is automated, the measurement results are more accurate, efficiency is improved, and manpower is reduced.
[0104] It is understood that the above embodiments only illustrate preferred embodiments of the present invention, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art can freely combine the above technical features without departing from the concept of the present invention, and can also make several modifications and improvements, all of which fall within the protection scope of the present invention. Therefore, all equivalent transformations and modifications made with respect to the scope of the claims of the present invention should fall within the scope of the claims of the present invention.
Claims
1. A method for measuring the margin of a valve limit switch, characterized in that, Includes the following steps: Step S1: Obtain the first valve closing signal input; Step S2: Control the valve according to the first valve closing signal, and when the limit switch is detected to be activated, record the stroke at this moment as the first stroke; Step S3: If the valve stroke stops changing, record the current stroke as the second stroke, and obtain the closing limit switch action margin based on the first and second strokes; Step S4: Obtain the input valve opening signal; Step S5: Control the valve according to the valve opening signal, and when the limit switch is detected to be restored, record the stroke at this moment as the third stroke, and obtain the limit switch restoration margin according to the second stroke and the third stroke; Step S6: If the limit switch is detected to be activated, record the travel distance at this moment as the fourth travel distance; Step S7: If the valve stroke stops changing again, record the current stroke as the fifth stroke, and obtain the opening limit switch action margin based on the fourth and fifth strokes; Step S8: Obtain the input second valve closing signal; Step S9: Control the valve according to the second valve closing signal, and when the open limit switch is detected to be restored, record the stroke at this moment as the sixth stroke, and obtain the open limit switch restoration margin according to the fifth stroke and the sixth stroke.
2. The valve limit switch margin measurement method according to claim 1, characterized in that, Following step S9, the following is also included: Step S10: If the limit switch is detected to operate again, record the current travel distance as the seventh travel distance, and check the deviation based on the first travel distance and the seventh travel distance.
3. The valve limit switch margin measurement method according to claim 1, characterized in that, Step S2 further includes: when the action of the limit switch is detected, the time at that moment is recorded as the first time. Step S3 further includes: monitoring the valve stroke to remain stable within a preset time, recording this time as the second time, and obtaining the closing limit switch time margin based on the first time, the second time, and the preset time.
4. The valve limit switch margin measurement method according to claim 1, characterized in that, Step S6 further includes: when the action of the limit switch is detected, the time at this moment is recorded as the fourth time. Step S7 further includes: monitoring the valve stroke to remain stable within a preset time, recording this time as the fifth time, and obtaining the opening limit switch time margin based on the fourth time, the fifth time, and the preset time.
5. The valve limit switch margin measurement method according to claim 1, characterized in that, Before step S1, the following steps are included: S01: Power-on reset of the internal circuit to complete information initialization.
6. The valve limit switch margin measurement method according to claim 5, characterized in that, Before step S1, the method further includes: S02: monitoring whether the acquired voltage signal is normal. If a voltage signal of 1-5VDC is acquired, then proceed to the subsequent steps.
7. A valve limit switch margin measurement system, characterized in that, include: The first signal acquisition module is used to acquire the input first valve closing signal; The first monitoring module is used to control the valve according to the first valve closing signal, and when the limit switch is detected to be activated, record the stroke at this moment as the first stroke; The second monitoring module is used to record the current stroke as the second stroke if it detects that the stroke of the valve has stopped changing, and to obtain the closing limit switch action margin based on the first stroke and the second stroke. The second signal acquisition module is used to acquire the input valve opening signal; The third monitoring module is used to control the valve according to the valve opening signal, and when the limit switch is detected to be restored, record the stroke at this moment as the third stroke, and obtain the limit switch restoration margin according to the second stroke and the third stroke. The fourth monitoring module is used to record the travel distance at this moment as the fourth travel distance if the limit switch is detected to be activated. The fifth monitoring module is used to record the current stroke as the fifth stroke if the valve stroke stops changing again, and to obtain the opening limit switch action margin based on the fourth stroke and the fifth stroke. The third signal acquisition module is used to acquire the input second valve closing signal; The sixth monitoring module is used to control the valve according to the second valve closing signal, and when the open limit switch is detected to be restored, it records the stroke at this moment as the sixth stroke, and obtains the open limit switch restoration margin according to the fifth stroke and the sixth stroke.
8. The valve limit switch margin measurement system according to claim 7, characterized in that, Also includes: The seventh monitoring module is used to record the current travel as the seventh travel when the limit switch is detected to operate again, and to check the deviation based on the first travel and the seventh travel.
9. An electronic device, characterized in that, include: One or more processors; A storage device for storing one or more programs, which, when executed by one or more processors, cause the one or more processors to implement the valve limit switch margin measurement method as described in any one of claims 1-6.
10. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the valve limit switch margin measurement method as described in any one of claims 1-6.