A method, device, equipment, and medium for diagnosing the installation direction of a valve positioner.
By using an automated valve positioner installation orientation diagnosis method, which utilizes position sensors and threshold calculations, the problems of inaccuracy and low efficiency of manual diagnosis are solved, achieving efficient and accurate installation orientation diagnosis and preventing equipment damage.
Patent Information
- Application Number
- CN202211468897.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-22
- Publication Date
- 2026-03-06
- Estimated Expiration
- 2042-11-22
AI Technical Summary
In the existing technology, the installation direction diagnosis of valve positioners relies on manual methods, which leads to inaccurate and inefficient diagnostic results and can easily damage the mechanical components of valve positioners or control valves due to incorrect installation.
By obtaining the current position of the valve positioner, determining the target value, and performing an absolute value calculation with a preset threshold, the direction difference is calculated, and the installation direction is automatically diagnosed, ensuring the accuracy and efficiency of the diagnostic results.
It enables automated diagnosis of the valve positioner's installation direction, improving diagnostic accuracy and efficiency, avoiding damage caused by installation errors, and ensuring the normal operation of the equipment.
Smart Images

Figure CN115823337B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of automated instrumentation and control technology, and in particular to a method, device, equipment, and medium for diagnosing the installation direction of a valve positioner. Background Technology
[0002] Valve positioners can be used in oil and gas, power, water and wastewater, chemical, food and other fields. They are usually installed on control valves and are one of the most critical accessories for control valves. They not only provide feedback on valve opening stroke, improving valve position accuracy and overcoming excessive media resistance, but also, when the control signal transmission distance is long and the signal weakens, the valve positioner can accelerate the actuator speed, changing the valve's action and mode.
[0003] However, there are many types of control valves, such as single-seat control valves, double-seat control valves, angle control valves, cage control valves, and spherical control valves. When installing a valve positioner on a control valve, it is crucial to control the installation direction of the proportional arm. This ensures that one valve positioner can be used with various control valves, preventing damage to the valve positioner or the control valve's mechanical components during installation. Therefore, when installing a valve positioner, the installation direction of the proportional arm must be diagnosed to ensure it is correct. Otherwise, it will affect the performance and may lead to malfunctions.
[0004] In related technologies, when installing a valve positioner onto a control valve, the installation direction of the proportional arm in the valve positioner is usually diagnosed manually to prevent incorrect installation. This method suffers from drawbacks such as inaccurate diagnostic results and low diagnostic efficiency. Summary of the Invention
[0005] In view of the shortcomings of the prior art described above, the purpose of this invention is to provide a method, device, equipment and medium for diagnosing the installation direction of a valve positioner, so as to realize automatic diagnosis of the installation direction of the valve positioner, prevent users from damaging the valve positioner due to incorrect installation, and avoid the problems of inaccurate results and low efficiency of manual diagnosis.
[0006] Other features and advantages of the invention will become apparent from the following detailed description, or may be learned in part by practice of the invention.
[0007] According to one aspect of the present invention, a method for diagnosing the installation direction of a valve positioner is provided, comprising: obtaining the current valve position of the valve positioner; determining a target value of the valve positioner based on the current valve position; performing an absolute value operation on the difference between the target value and a preset first threshold to determine a direction difference; and diagnosing the installation direction of the valve positioner based on the direction difference to determine the installation direction diagnosis result.
[0008] According to one aspect of the present invention, an installation direction diagnostic device for a valve positioner is provided, comprising: an acquisition module for acquiring the current valve position of the valve positioner; a determination module for determining a target value of the valve positioner based on the current valve position; a calculation module for performing an absolute value calculation on the difference between the target value and a preset first threshold to determine a direction difference; and a diagnostic module for diagnosing the installation direction of the valve positioner based on the direction difference to determine the installation direction diagnostic result.
[0009] In one embodiment of the present invention, based on the foregoing scheme, the diagnostic module is configured to include: an installation direction determination unit, configured to take the target value at the minimum limit position of the valve as the minimum target value; perform an absolute value operation on the difference between the current target value and the minimum target value to determine the minimum difference; compare the direction difference with the minimum difference; if the direction difference is greater than the minimum difference, an incorrect installation direction deviation has occurred, and an error count is performed; if the direction difference is less than or equal to the minimum difference, the installation direction is correct, and the error count is cleared.
[0010] In one embodiment of the present invention, based on the foregoing scheme, the calculation module includes: a stable state judgment unit, configured to perform an absolute value calculation on the difference between the current target value and the previous target value to determine a target difference; and to compare the target difference with a preset second threshold to determine the stable state of the valve.
[0011] In one embodiment of the present invention, based on the foregoing scheme, the stability determination unit is configured to: compare the target difference with a preset second threshold; if the target difference is greater than or equal to the preset second threshold, determine that the valve is in an unstable state; if the target difference is less than the preset second threshold, use the current target difference as the previous target difference and continue to compare it with the preset second threshold; until the number of comparisons reaches a preset number, determine that the valve is in a stable state.
[0012] In one embodiment of the present invention, based on the aforementioned scheme, the installation direction determination unit includes: an installation subunit configured to determine that if the number of consecutive error counts is not less than two, the installation direction is incorrect, the current position of the valve is maintained, an error record is generated, and an alarm is triggered.
[0013] In one embodiment of the present invention, based on the foregoing scheme, the installation subunit is configured to: reinstall the valve positioner and diagnose the installation direction of the valve positioner again.
[0014] In one embodiment of the present invention, based on the foregoing scheme, the acquisition module is configured to diagnose the installation rotation angle of the valve positioner at preset time intervals.
[0015] According to one aspect of the present invention, an electronic device is provided, comprising: one or more processors; and a storage device for storing one or more programs, which, when executed by the one or more processors, cause the one or more processors to implement the valve positioner installation orientation diagnosis method as described in the above embodiments.
[0016] According to one aspect of the present invention, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a computer processor, causes the computer to perform the steps in the valve positioner installation orientation diagnosis method as described in the above embodiments.
[0017] The beneficial effects of this invention are as follows: This invention proposes a method, apparatus, equipment, and medium for diagnosing the installation direction of a valve positioner. The method obtains the current valve position of the valve positioner and determines the target value corresponding to that position. It then performs an absolute value calculation on the difference between the target value and a preset first threshold to determine the direction variance. Based on this direction variance, it diagnoses the installation direction of the valve positioner, thereby determining the diagnostic result and achieving automatic diagnosis of the valve positioner's installation direction. This not only ensures the accuracy of the diagnostic results but also avoids damage to the valve positioner due to incorrect installation direction. Furthermore, compared to manual diagnosis, it improves both diagnostic efficiency and accuracy.
[0018] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit the invention. Attached Figure Description
[0019] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention. It is obvious that the drawings described below are merely some embodiments of the invention, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort. In the drawings:
[0020] Figure 1 This is a schematic diagram illustrating the structure of a regulating valve in an exemplary embodiment of the present invention;
[0021] Figure 2 This is a schematic diagram of the structure of the valve positioner proportional arm, as shown in an exemplary embodiment of the present invention;
[0022] Figure 3This is a flowchart illustrating an exemplary embodiment of the present invention of a method for diagnosing the installation direction of a valve positioner;
[0023] Figure 4 This is a schematic diagram of the upper and lower limits of the proportional arm of the valve positioner, illustrating an exemplary embodiment of the present invention.
[0024] Figure 5 This is a block diagram illustrating the installation direction diagnostic device for a valve positioner, as shown in an exemplary embodiment of the present invention.
[0025] Figure 6 A schematic diagram of a computer system suitable for implementing embodiments of the present invention is shown. Detailed Implementation
[0026] The embodiments of the present invention will be described below with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention and not for limiting the scope of protection of the present invention.
[0027] It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of the present invention. Therefore, the drawings only show the components related to the present invention and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.
[0028] In the following description, numerous details are explored to provide a more thorough explanation of embodiments of the invention. However, it will be apparent to those skilled in the art that embodiments of the invention may be practiced without these specific details. In other embodiments, well-known structures and devices are shown in block diagram form rather than in detail to avoid obscuring embodiments of the invention.
[0029] Figure 1 This is a schematic diagram illustrating the structure of a regulating valve in an exemplary embodiment of the present invention.
[0030] Reference Figure 1As shown, in one embodiment of the present invention, the regulating valve, also known as a control valve, generally consists of an actuator, valve stem, packing, valve body, and valve positioner. The actuator is the driving part of the regulating valve; it generates a corresponding output thrust according to control commands, causing the valve stem to displace accordingly and drive the valve body to move, significantly affecting the performance of the regulating valve. There is a packing chamber between the valve stem and the valve body, filled with packing to ensure sealing and prevent leakage from the connection between the valve stem and the valve body. The positioner, as a feedback accessory for the valve opening stroke, has both input and feedback operations. It receives the control signal given by the central control equipment and uses the control signal as a standard until balance is achieved. During the adjustment process, the valve opening is fed back to the valve positioner through the valve stem until the control signal and feedback signal are balanced. The central control equipment, also simply called the central controller, is used to output control signals to control the valve.
[0031] Continue to refer to Figure 1 In one embodiment of the present invention, the valve positioner can be an intelligent valve positioner. The intelligent valve positioner controls the valve opening in a closed-loop manner, mainly including a position sensor, a main board, and an I / P conversion unit (i.e., an electrical converter). First, the position sensor determines the valve opening position signal by measuring the position of the valve stem in real time, and then sends it to the main board along with the control signal given by the central control unit. The main board converts the received signals into percentages and compares the percentage of the position signal with the percentage of the control signal. Finally, based on the comparison result, it emits wavelengths of different lengths, causing the I / P conversion unit to output corresponding pressure signals, thereby controlling the actuator to intake or exhaust air. The main board also includes a display and valve position feedback functions. The display allows the user to observe the installation status of the valve positioner for related operations. The valve position feedback function is used to provide feedback on the current valve position. The valve position changes continuously during the installation of the valve positioner. When the actuator intakes or exhausts air, it pushes the valve stem down or up, causing the valve opening to decrease or increase. At this time, the valve opening is fed back to the position sensor through the valve stem, causing the position signal to change accordingly.
[0032] Figure 2 This is a schematic diagram of the proportioning arm shown in an exemplary embodiment of the present invention.
[0033] Reference Figure 2 As shown, the proportional arm of the valve positioner includes a lock nut and a sliding shaft. Adjust the sliding shaft on the proportional arm to the appropriate position according to the actual stroke of the valve, and then tighten the lock nut. A scale is printed on the proportional arm for easy adjustment of the sliding shaft's position. During the entire stroke adjustment of the valve, the proportional arm moves not only above or below 0 degrees horizontally, therefore, special attention must be paid to the direction of the proportional arm.
[0034] In one embodiment of the invention, a proportional arm is fixed to a position sensor. Since the position sensor is a rotating potentiometer, the proportional arm will drive the position sensor to rotate during movement. When the valve positioner is manufactured and the position sensor is installed, the position signal collected by the position sensor is displayed on a monitor and used as the target value. Then, the proportional arm is fixed at a horizontal 0-degree position, and the position sensor is rotated to adjust the target value collected by the proportional arm at the horizontal 0-degree position to a preset first threshold value, which is a fixed value.
[0035] Figure 3 This is a flowchart illustrating an exemplary embodiment of the present invention, showing a method for diagnosing the installation direction of a valve positioner.
[0036] Reference Figure 3 As shown, in an exemplary embodiment, the valve positioner installation orientation diagnosis method includes at least steps S310 to S340, which are described in detail below:
[0037] Step S310: Obtain the current valve position of the valve positioner.
[0038] In one embodiment of the present invention, the current position of the valve is obtained in real time by a position sensor in the valve positioner. Since the valve position may change, the acquisition process is continuous.
[0039] Step S320: Determine the target value of the valve positioner based on the current valve position.
[0040] In one embodiment of the present invention, the position sensor in the valve positioner collects the position signal corresponding to the current valve position and uses it as the target value.
[0041] In one embodiment of the present invention, after determining the target value of the valve positioner based on the current valve position, the installation direction of the valve positioner is diagnosed. During the diagnosis process, the installation rotation angle of the valve positioner is diagnosed at preset time intervals. The interval can be customized according to the actual situation, for example, it can be set to 50ms, 100ms, 200ms or other times. Generally, if the diagnosis result is normal, it is not necessary to diagnose the installation direction again, so usually only one diagnosis is needed.
[0042] Step S330: Perform absolute value calculation on the difference between the target value and the preset first threshold to determine the direction difference.
[0043] Before determining the direction difference by performing an absolute value operation on the difference between the target value and the preset first threshold, the method further includes: performing an absolute value operation on the difference between the current target value and the previous target value to determine the target difference; and comparing the target difference with the preset second threshold to determine the stable state of the valve.
[0044] In one embodiment of the present invention, diagnosing the installation direction of the valve positioner requires the valve to be in a stable state. Therefore, it is first necessary to determine whether the valve is in a stable state. This can be achieved by subtracting the current target value collected by the position sensor during valve positioning from the previous target value, and using the absolute value of the result as the direction difference. Then, based on the comparison between the direction difference and a preset second threshold, the stability of the valve can be detected. It should be noted that the preset second threshold is set to 15 by default, but can also be customized according to actual conditions.
[0045] In one embodiment of the present invention, before detecting whether the valve is in a stable state, the I / P conversion unit needs to be put into an exhaust state to control the compressed air inside the actuator of the regulating valve to be expelled, so that the valve returns to the fully open position and the fully closed position respectively. In this way, the accuracy of the target value collected by the position sensor after the valve starts to move can be guaranteed.
[0046] In one embodiment of the present invention, to detect whether the valve is in a stable state, a target difference can be compared with a preset second threshold; if the target difference is greater than or equal to the preset second threshold, the valve is determined to be in an unstable state; if the target difference is less than the preset second threshold, the current target difference is used as the previous target difference and compared with the preset second threshold again; until the number of comparisons reaches a preset number, the valve is determined to be in a stable state.
[0047] In one embodiment of the present invention, to detect whether the valve is in a stable state, it is first necessary to compare a target difference with a preset second threshold, determine whether the target difference is limited to the preset second threshold, and take the current target difference as the previous target difference for comparison each time the target difference and the preset second threshold are compared. If there is a target difference greater than or equal to the preset second threshold, the valve is determined to be in an unstable state, and the target value corresponding to the current valve position will be collected again by the position sensor to re-determine whether the valve is in a stable state. If the number of times the target difference is continuously less than the preset second threshold reaches a preset number, the valve is determined to be in a stable state. It should be noted that the preset number of times is set to 10 by default, but it can also be customized according to the actual situation. When the valve positioner is used in different scenarios, and thus the stability requirements of the valve are different, the third threshold and the preset number of times can be adjusted to adapt to different needs. For example, if the third threshold is set to 10 and the preset number of times is set to 5, then the requirements for detecting the valve's stable state are lower, fewer detection times are required, and the detection results are less accurate than the default settings.
[0048] In one embodiment of the present invention, after the valve is detected to be in a stable state, the position sensor collects the target value when the valve is in its minimum limit position, and uses this as the minimum target value. The main board then activates the I / P conversion unit to enter the air intake state, allowing compressed air to enter the actuator inside the regulating valve, causing the valve to begin moving in another direction.
[0049] Step S340: Diagnose the installation direction of the valve positioner based on the direction difference and determine the installation direction diagnosis result.
[0050] The installation direction of the valve positioner is diagnosed based on the directional difference, and the installation direction diagnosis result is determined. This includes: taking the target value at the valve's minimum limit position as the minimum target value; performing an absolute value calculation on the difference between the current target value and the minimum target value to determine the minimum difference; comparing the directional difference with the minimum difference; if the directional difference is greater than the minimum difference, an incorrect installation direction has occurred, and an error count is performed; if the directional difference is less than or equal to the minimum difference, the installation direction is correct, and the error count is cleared.
[0051] In one embodiment of the present invention, after the valve is detected to be in a stable state, the current target value collected by the position sensor is subtracted from the minimum target value, and the absolute value of the result is taken as the minimum difference. By comparing the direction difference and the minimum difference, it is determined whether the direction difference is less than the target difference, thereby diagnosing the installation direction of the proportional arm ratio on the valve positioner based on the comparison result. Each time a comparison is made, the current minimum difference is taken as the previous minimum difference, and the comparison with the direction difference continues. If the direction difference is greater than the minimum difference, the error count is incremented by one, indicating that there is a deviation in the installation direction of the proportional arm on the valve positioner; if the direction difference is less than or equal to the minimum difference, it indicates that the installation direction of the proportional arm on the valve positioner is correct, the previous error count is cleared to zero, and the direction difference is taken as the current minimum difference.
[0052] In one embodiment of the present invention, if the direction difference is greater than the minimum difference more than twice consecutively, i.e. the error count is greater than 2, then the installation direction is incorrect. The current valve position of the valve positioner is maintained, and the I / P conversion unit enters the holding state to prevent damage to the mechanical structure components of the valve positioner or regulating valve due to the installation direction error. The corresponding error record is displayed on the display to trigger an alarm, thereby prompting the user to check.
[0053] In one embodiment of the present invention, after diagnosing the installation direction of the valve positioner, the diagnosis result is that the installation direction is incorrect and the valve positioner needs to be reinstalled. Then the installation direction of the valve positioner is diagnosed again.
[0054] In one embodiment of the present invention, to adapt the valve positioner to various types of control valves, attention should be paid to the installation direction of the proportional arm when installing the valve positioner onto the control valve. Control valves can be divided into air-to-open and air-to-close types. When the valve positioner is initially installed on the control valve, all compressed air needs to be discharged from the actuator inside the control valve. In an air-to-open control valve, the valve is in the fully closed position, and the initial position of the proportional arm in the valve positioner should be close to the lower limit post. In an air-to-close control valve, the valve is in the fully open position, and the initial position of the proportional arm in the valve positioner should be close to the upper limit post.
[0055] Figure 4 This is a schematic diagram illustrating the upper and lower limits of the proportional arm of a valve positioner, as shown in an exemplary embodiment of the present invention.
[0056] Reference Figure 4As shown, in one embodiment of the present invention, the valve positioner is provided with an upper limit post and a lower limit post. When the valve positioner is initially installed on the air-to-open control valve, the valve returns to the fully closed position, and the valve stem moves upward, making it a reaction-acting actuator. The initial position of the proportional arm is close to the lower limit post, and its initial position range includes a 30-degree range, where the minimum lower limit angle is 40 degrees and the maximum lower limit angle is 10 degrees. When the valve positioner is initially installed on the air-to-close control valve, the valve returns to the fully open position, and the valve stem moves downward, making it a direct-acting actuator. The initial position of the proportional arm is close to the upper limit post, and its initial position range includes a 30-degree range, where the minimum upper limit angle is 10 degrees and the maximum upper limit angle is 40 degrees.
[0057] Figure 5 This is a block diagram illustrating an installation direction diagnostic device for a valve positioner, as shown in an exemplary embodiment of the present invention.
[0058] Reference Figure 5 As shown, the block diagram for diagnosing the installation direction of this exemplary valve positioner includes: a feature extraction module 501, a determination module 502, a calculation module 503, and a diagnosis module 504.
[0059] The module 501 is used to acquire the current valve position of the valve positioner; the module 502 is used to determine the target value of the valve positioner based on the current valve position; the module 503 is used to perform absolute value calculation on the difference between the target value and the preset first threshold to determine the direction difference; and the module 504 is used to diagnose the installation direction of the valve positioner based on the direction difference to determine the installation direction diagnosis result.
[0060] The determination module 502, the calculation module 503, and the diagnostic module 504 are configured in the motherboard processor by a computer program, and will not be described in detail here.
[0061] It should be noted that the valve positioner installation direction diagnostic device and the valve positioner installation direction diagnostic method provided in the above embodiments belong to the same concept. The specific operation methods of each module and unit have been described in detail in the method embodiments and will not be repeated here. In practical applications, the valve positioner installation direction diagnostic device provided in the above embodiments can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. This is not a limitation here.
[0062] Embodiments of the present invention also provide an electronic device, including: one or more processors; and a storage device for storing one or more programs, which, when executed by the one or more processors, cause the electronic device to implement the valve positioner installation direction diagnosis method provided in the above embodiments.
[0063] Figure 6 A schematic diagram of a computer system suitable for implementing embodiments of the present invention is shown. It should be noted that... Figure 6 The computer system 600 of the electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of the present invention.
[0064] like Figure 6 As shown, the computer system 6 includes a Central Processing Unit (CPU) 601, which can perform various appropriate actions and processes based on programs stored in Read-Only Memory (ROM) 602 or programs loaded from storage portion 608 into Random Access Memory (RAM) 603, such as performing the methods described in the above embodiments. The RAM 603 also stores various programs and data required for system operation. The CPU 601, ROM 602, and RAM 603 are interconnected via a bus 604. An Input / Output (I / O) interface 605 is also connected to the bus 604.
[0065] The following components are connected to I / O interface 605: an input section 606 including a keyboard, mouse, etc.; an output section 607 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN (Local Area Network) card, modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to I / O interface 605 as needed. A removable medium 611, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 610 as needed so that computer programs read from it can be installed into storage section 608 as needed.
[0066] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts 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 computer programs for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 609, and / or installed from removable medium 611. When the computer program is executed by central processing unit (CPU) 601, it performs various functions defined in the system of the present invention.
[0067] It should be noted that the computer-readable medium shown in the embodiments of 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, 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), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying a computer-readable computer program. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.
[0068] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0069] The units described in the embodiments of the present invention can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself.
[0070] Another aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a computer's processor, causes the computer to perform the method described above for logging into a vehicle system account based on a fingerprint. This computer-readable storage medium may be included in the electronic device described in the above embodiments, or it may exist independently and not incorporated into the electronic device.
[0071] Another aspect of the present invention provides a computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the valve positioner installation orientation diagnosis method provided in the various embodiments described above.
[0072] The above embodiments are merely illustrative of the principles and effects of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in the present invention should still be covered by the claims of the present invention.
Claims
1. A mounting direction diagnosis method of a valve positioner, characterized by, The method comprises: acquiring a current valve position of a valve positioner; determining a target value of the valve positioner according to the current valve position; performing absolute value operation on a difference between the target value and a preset first threshold value to determine a direction difference value; diagnosing an installation direction of the valve positioner based on the direction difference value to determine an installation direction diagnosis result; wherein, a target value at a minimum limit position of the valve is taken as a minimum target value; absolute value operation is performed on a difference between the current target value and the minimum target value to determine a minimum difference value; the direction difference value and the minimum difference value are compared; if the direction difference value is greater than the minimum difference value, an error offset occurs in the installation direction, and an error count is performed once; if the direction difference value is less than or equal to the minimum difference value, the installation direction is correct, and the error count is cleared.
2. The mounting direction diagnosis method of a valve positioner according to claim 1, characterized by, Before performing absolute value operation on a difference between the target value and a preset first threshold value to determine a direction difference value, the method comprises: performing absolute value operation on a difference between the current target value and a previous target value to determine a target difference value; comparing the target difference value with a preset second threshold value to determine a stable state of the valve.
3. The mounting direction diagnosis method of a valve positioner according to claim 2, characterized by, The comparison between the target difference value and the preset second threshold value to determine the stable state of the valve comprises: comparing the target difference value with the preset second threshold value; if the target difference value is greater than or equal to the preset second threshold value, determining that the valve is in an unstable state; if the target difference value is less than the preset second threshold value, taking the current target difference value as a previous target difference value to continue comparison with the preset second threshold value; until a preset number of comparison times is reached, determining that the valve is in a stable state.
4. The method of diagnosing the mounting direction of a valve positioner according to claim 1, characterized by, If the direction difference value is greater than the minimum difference value, an error offset occurs in the installation direction, and an error count is performed once, which comprises: if a number of times of continuous error count is not less than two, the installation direction is incorrect, the current position of the valve is maintained, an error record is generated, and an alarm is performed.
5. The mounting direction diagnosis method of a valve positioner according to claim 4, characterized by, If error count is performed twice continuously, after the installation direction is determined to be incorrect, the current position of the valve is maintained, an error record is generated, and an alarm is performed, the method further comprises: reinstalling the valve positioner and diagnosing the installation direction of the valve positioner again.
6. The mounting direction diagnosis method of a valve positioner according to any one of claims 1 to 4, characterized by, After determining the target value of the valve positioner according to the current valve position, the method further comprises: detecting the installation direction of the valve positioner at intervals of a preset time.
7. A valve positioner installation direction diagnosing device characterized by comprising: a valve positioner; a valve; a valve positioner installation direction diagnosing program; and a valve positioner installation direction diagnosing device. The device comprises: an acquisition module configured to acquire a current valve position of a valve positioner; a determination module configured to determine a target value of the valve positioner according to the current valve position; an operation module configured to perform absolute value operation on a difference between the target value and a preset first threshold value to determine a direction difference value; The diagnostic module diagnoses the installation direction of the valve positioner based on the direction difference value, and determines an installation direction diagnosis result; wherein the target value at the minimum limit position of the valve is taken as a minimum target value; an absolute value operation is performed on the difference value between the current target value and the minimum target value to determine a minimum difference value; the direction difference value and the minimum difference value are compared; if the direction difference value is greater than the minimum difference value, an error offset occurs in the installation direction, and an error count is performed once; if the direction difference value is less than or equal to the minimum difference value, the installation direction is correct, and the error count is cleared.
8. An electronic device, comprising: The apparatus includes: one or more processors; a storage device for storing one or more programs, which, when executed by the one or more processors, cause the one or more processors to implement the installation direction diagnosis method of the valve positioner as claimed in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, A computer program is stored on a storage medium, and the computer program is used to cause a computer to execute the installation direction diagnosis method of the valve positioner as claimed in any one of claims 1 to 6.
Citation Information
Patent Citations
Electronic wear state determination in a valve arrangement
CN101900152A
Return difference elimination method for lightning protection valve positioner and lightning protection valve positioner
CN111779870A