Abstract
Safety valves are widely used as the safety device in pressure systems, such as boilers and pressure pipes, to ensure the safe operation of pressure systems. At present, the inspection of safety valves is mainly carried out by manual operation or semi-automatic operation, and it requires a lot of manpower operation costs. Moreover, the measurement of different pressure ranges is performed using only a single pressure sensor such that the test precision is insufficient. In this study, a high-precision safety valve test architecture with three testing channels was proposed, and an automated testing system was developed. In this system, the user can define the test specifications through parameter setting. The system can automatically execute the complete test control process and judge whether the test was passed based on the measured data. In this article, for the low, middle, and high test pressures, the safety valves of four different states were tested respectively and the test reports were automatically generated. Finally, it statistically analyzed the test results for the diagnosis of the safety valve failure. Therefore, the results of this research may effectively solve the problems of current safety valve testing and improve its operational efficiency and test quality.
Keywords
Introduction
With industrial development and advance of science and technology, many industries (such as gasoline, natural gas, and power generation) are provided with different pressure equipments1–3 such as boilers and pressure vessels. As there is pressure accumulating in these pressure equipments or their pipelines, there may be explosion when the pressure is too high, endangering personal safety and damaging important equipments and pipelines. Therefore, these equipments under pressure must be equipped with a safety valve,4–8 so that when the internal gas pressure increases, the pressure can be relieved by releasing equipment or pipeline gas to avoid the pressure being too high or exceeding the specified safety value, so as to prevent the equipments and pipelines from exploding.
When the container pressure exceeds the design specification, the safety valve is turned on automatically, and the gas is discharged to reduce the excessive pressure in the container to avoid damaging the container or pipeline. The valve is turned off automatically when the pressure in the container drops to normal working pressure, so as to avoid discharging all gas due to container overpressure that results in waste and production break. The safety valve comprises valve seat, flap, and loading mechanism.6,9,10 Some of the valve seat and the valve body are taken as a whole, and some of it is assembled with the valve body, which is then connected to the equipment. The flap is often provided with a valve handle, and it is fastened to the valve seat. The loading mechanism is above the flap, and the load can be regulated. When the pressure in the equipment is in a certain working pressure range, the force applied by the internal gas to the flap is lower than the force applied by the loading mechanism to the flap; their difference forms the sealing force between the flap and the valve seat, so that the flap squeezes the valve seat, and the medium of equipment cannot be discharged.
When the pressure in the equipment exceeds the specified working pressure and reaches the safety valve opening pressure, the force applied by the internal gas to the flap is greater than the force applied by the loading mechanism to the flap, so the flap leaves the valve seat, the safety valve is turned on, and the gas in the equipment is discharged through the valve seat (known as spurt).6,11 If the discharge capacity of the safety valve is higher than the safety discharge quantity of the equipment, the pressure in the equipment drops gradually, and the pressure returns to normal working pressure after a short-term exhaust. At this point, the force applied by the internal pressure to the flap is lower than the force applied by the loading mechanism to the flap, so the flap squeezes the valve seat (known as reseat), the gas discharge stops, and the equipment maintains normal working pressure and continues running. Therefore, the safety valve is turned off or on automatically by increasing or reducing the gas-applied force and the loading-mechanism-applied force on the flap, so as to prevent equipment overpressure. As shown in Figure 1 (the relationship between safety valve pressure and flap lifting), when the channel pressure

Relationship between safety valve pressure and flap lifting.
There are many types of safety valves, including spring, lever, deadweight, and pilot safety valves, according to the overall structure and loading mode.11–13 The spring safety valve means the sealing of flap and valve seat depends on the acting force of the spring. The lever type depends on the acting force of the lever and weight. The deadweight type depends on the deadweight force applied by the weight above the valve body. The pilot safety valve comprises a main safety valve and an auxiliary valve, when the medium pressure inside the channel exceeds the specified pressure value, the auxiliary valve is turned on, the medium enters the main safety valve through the conduit, and the main safety valve is turned on, so as to reduce the increased medium pressure. The spring safety valves are most extensively used in current industries. According to the medium discharge modes, the safety valves are classified into fully enclosed, semi-enclosed, and open safety valves. 13 When the fully enclosed safety valve discharges gas, all the gas is discharged through the exhaust pipe, so the medium cannot leak out. It is mainly applied to the containers with medium as toxic or flammable gases. A part of the gas discharged by the semi-enclosed safety valve flows through the exhaust pipe, and the other part leaks from the clearance between the flap and the valve handle. It is mostly applied to the gas containers with medium which will not pollute the environment. The flap of open safety valve is open, so that the spring cavity is connected to the atmosphere, favorable for reducing the temperature of the spring. It is applicable to the containers with medium as steam or high-temperature gas which will not pollute the atmosphere.
The safety valve must conduct periodical test at least once a year. The inspection includes dynamic inspection and disintegration inspection. The steps of dynamic inspection are divided into assembly, boosting (to working pressure), holding pressure (maintaining for a period of time without discharge), boosting to activation (activate discharge while increasing to the opening pressure), depressurization to reseat, and maintaining pressure (maintaining for a period of time after reseat without discharge). Dynamic inspection must perform the pressure test of the safety valve and check the maximum spur pressure
In order to solve the above problems, a high-precision safety valve test architecture with three testing channels was proposed in this study, 8 and an automated safety valve testing system was also developed. This system can enable the user to define the test specifications and control parameters of the tested safety valve through parameter setting. The system can automatically open the corresponding testing channel according to the test pressure of the safety valve, so as to select the appropriate pressure sensor for precise measurement. In addition, this system can automatically perform the complete safety valve test operation, and it can automatically record the measured pressure data during the test process, thereby drawing its pressure curve, judging the test results, and outputting the test report. This article uses low, middle, and high test pressures to test the spring-type safety valves. In addition, it statistically analyzed the test results and judged whether the test was passed. And then, the test report was automatically generated. However, this system can also provide the user with reasons for analyzing the safety valve test failure and use them as the diagnosis basis for its fault or abnormality.
System design
System architecture
The three-channel safety valve testing system architecture proposed in this study is shown in Figure 2. In the figure, the blue full line represents the flow path of the gas, the green dotted lines represent the detection signal transmission paths, and the red dotted lines represent the control signal lines. The functions of each component are described as follows:

System architecture.
Hardware design
In the hardware design part, the P&ID (process and instrument diagram) of the safety valve testing system is shown in Figure 3. In this diagram, both F1 and F2 are filters, T1 is the high-pressure tank, PI-1 to PI-6 are pressure indicators, PS-1 is the pressure switch, and SV-1 to SV-4 are safety valve components for internal overpressure protection of the system. Both CP-1 and CP-2 are air compressors, PT-1 to PT-4 are pressure-detecting transducers (pressure sensors), and PVC-1 is the pressure-regulating valve. In addition, CV-1 to CV6 are control valves, EV-1 to EV-4 are electric valves, and LS is the limit switch. LSH and LSL are, respectively, used to detect the open (high) and closed (low) states of PCV-1. Each PT and PCV can transmit signals to the USB-4711A adapter card for monitoring host processing, and each EV and LS can be driven by the control signal sent by the monitoring host through the USB-4711A adapter card. Below the figure is the hydraulic control system of the safety valve test bench, in which HT is the hydraulic tank and C1 to C4 are the hydraulic cylinders. Among them, C1 to C3 can be driven by C4 at the same time, which can be locked and fixed to the test bench when the safety valve under test is installed.

Hardware design: P&ID.
Since different safety valves can have different pressure application ranges, when detecting the pressure of the safety valve, the corresponding pressure sensor should be used according to its applicable range. For example, for low-pressure safety valves, low-pressure sensors should be used. If middle- or high-pressure sensors are used, there may be insufficient accuracy. Conversely, for the high-pressure safety valve, only the high-pressure sensor can detect its high pressure. Therefore, this system has designed the testing channels controlled by three sets of electric valves, namely, EV-1, EV-2, and EV-3, for the tested safety valves of low-, middle-, and high-pressure ranges. What’s more, it uses low-, middle-, and high-pressure sensors (PT-1, PT-2, and PT-3, respectively) to detect the pressure of the corresponding channel respectively. The system can automatically activate the corresponding testing channel according to the set test pressure
Control planning table for safety valve testing channels.
The actual safety valve testing system developed in this study is shown in Figure 4. Figure 4(a) shows the control module consisting of the monitoring host and various detection and control component circuits. The front of Figure 4(b) shows the safety valve test bench of this system.

Actual safety valve testing system: (a) control module and (b) testing module.
Software development
This study developed the automatic monitoring software for this safety valve testing system with the LabVIEW graphical language.19–21 This software mainly includes three major functions: parameter setting, safety valve test, and report output. Before the safety valve test, the user can define the test specifications and control parameters through parameter setting. The parameter setting screens are shown in Figure 5, where the blue block is the menu for selection, the white blocks are the areas for input, and the yellow blocks are the areas that the system automatically generates or automatically displays. The parameters that can be set include the following: customer model, project No., valve No., pressure unit (selectable pressure units such as kg/cm2 or psig or bar), number of tests (

Parameter setting screen: (a) parameter setting for selecting kg/cm2 as the pressure unit and (b) parameter setting for selecting psig as the pressure unit.
The execution procedure of safety valve testing is shown in Figure 6. This procedure contains 3 stages and 10 steps. The first stage is the initial stage (steps 1 and 2), the second stage is test stage (steps 3–9), and the third stage is the output stage (step 10). The functions of various steps are described as follows:

Safety valve testing procedure.
The screen of executing the safety valve testing process in this system is shown in Figure 7. The relevant test parameters are displayed at the top of the screen, as well as the source gas pressure measured by PT-4 and the safety valve pressure measured by PT-3. The pressure curve of the tested safety valve is displayed in the middle of the screen, and the displayed range is 100–200 kg/cm2 (determined by the parameters in Figure 5(a)). The testing channel for the tested safety valve “ST-Valve-11” is the high-pressure channel controlled by EV-3. When the user presses the “START” button in the lower left of Figure 7, the system automatically executes the control actions from step 2 to step 9 of the test process in Figure 6 according to the parameters set by the user. These control actions include removing the residual gas from the pipe in step 2 and implementing the test actions from step 3 to step 9 repeatedly. The number

Safety valve testing screen.

State transition diagram for safety valve testing.
Testing results
The system can perform the testing process for different sizes and different types of safety valves. Figure 9(a) shows the various types of tested safety valves. Each safety valve can be installed on the test bench first through the hydraulically controlled clamp during the test, as shown in Figure 9(b). Then, it starts the automatic monitoring software to execute the testing procedure in Figure 6. Finally, based on the automatically measured and recorded test data, it carries out the analysis and judgment of the test results, as well as the output of the test report.

Installation and testing of the tested safety valve: (a) various types of tested safety valves and (b) tested safety valve installed on the test bench.
To generate the test report on each safety valve, the system establishes the average pressure curve
The average pressure curve
where

Automatically generated safety valve test reports: (a) exported report of test failure due to the spur error is too large; (b) exported report of passed test; (c) exported report of test failure due to the reseat error is too large; and (d) pressure curve of test failure due to the reseat error is too small.
If the test result is to be judged, it is necessary to consider both the spur error
where Δ
The high-, middle-, and low-pressure spring safety valves are tested in this study. The valves with high pressure and middle pressure are open safety valves, and the ones with low pressure are semi-enclosed safety valves. Four safety valves in different states are tested, the results are judged, and then the test reports are generated automatically. Figure 10(a)–(d) shows the test reports on four high-pressure safety valves. In each report, “Reading” indicates the test pressure, “Average value” is the average pressure, “Spur value” is the spur pressure, “Reseat value” is the reseat pressure, “Min. value” is the initial pressure, “Test result” may display the “Pass” or “Fail” testing results, and “Average STD” is the
The statistics of the four test experiments in Figure 10 are shown in Table 2. The pressure unit is kg/cm2. The test pressure
Statistics of the high-pressure safety valve test experiments.
According to the statistics of Table 2, for Test 1, the spur error is too large (|
Four middle-pressure safety valves in different states and four low-pressure safety valves in different states are tested, and the test data statistics are shown in Tables 3 and 4, respectively. The judgment parameters in these two tables are set as
Statistics of the middle-pressure safety valve test experiments.
Statistics of the low-pressure safety valve test experiments.
In order to validate that the test accuracy of the three-channel safety valve testing architecture proposed in this study can be better than single-channel test architecture, the high-, middle-, and low-pressure safety valves are tested in conventional single-channel test system and the developed three-channel test system, respectively. The former one only uses the high-pressure sensor PT-3, as listed in Table 1. The latter one uses PT-1, PT-2, and PT-3 sensors in low, middle, and high channels, respectively. Each safety valve is tested 10 times, and the standard deviation curve

Comparison of standard derivation curves for single test channel and three test channels. Standard derivation curves for (a) high-pressure safety valve, (b) middle-pressure safety valve, and (c) low-pressure safety valve.
According to the comparison result of three standard deviation curves in Figure 11, for the high-pressure safety valve, the three-channel
The high-, middle-, and low-pressure safety valves listed in Tables 2–4 are tested 10 times in the single-channel system and three-channel system, respectively, and then the standard deviation curve
Comparison of
Discussion
This research has developed an automated safety valve testing system with high-precision measurement function. This system has the following four characteristics:
It can be applied to the safety valve test requirements of different types and different specifications: users can define the test specifications of the tested safety valve through parameter setting in the monitoring software such as unit, number of tests, test time, test pressure, maximum pressure, and allowable error range. In the design of the test bench hardware, it provides a hydraulically controlled clamp that locks and fixes safety valves of different sizes to the test platform, so it can be used for the test of various types of safety valves.
According to the precise test requirements of different ranges for low, middle, and high pressure, three testing channels of low, middle, and high pressure have been built in this system. This system can automatically find out the corresponding testing channel according to the test pressure set by the user and carry out the pressure measurement with the most appropriate pressure sensor, thus meeting the precise testing requirements of the safety valves with different pressure ranges.
To improve the measurement quality of the pressure signal, this system eliminates the excessive external signal through the shielding technology in the hardware part and filters the high-frequency noise using the short-circuit filter capacitor. In the software part, it uses the method of mean value to remove the effects of a few surges. On one hand, the signals are captured 10 times consecutively within each sampling time, and the average value is calculated as the measured value, so as to obtain highly correct pressure measurement signals. On the other hand, this system can execute
It provides the automated safety valve testing procedure: this study has designed a complete and practical test control process with reference to the dynamic check procedure of the safety valve. When the user completes the setting of test pressure, the highest pressure, the sampling time, the test time, the pressure discharge time, and other related parameters, the system can automatically perform pressure discharging, pressure boosting, pressure maintaining, and other related control actions based on it. Therefore, the user only needs to install the tested safety valve on the test bench and complete the relevant test parameter setting, and then he or she can start the monitoring software to automatically complete the control process of the test.
It can judge the test result and automatically generate the test report: this system can automatically record all the measured pressure data during the execution of the whole test process, draw the pressure curve (according to the upper and lower limits of the display), and calculate the important information of the pressure curve according to the parameters set by the user such as the spur pressure, the reseat pressure, the spur error, and the reseat error and then judge whether the test result is Pass or Fail. Finally, it can automatically generate and output the report of the safety valve test.
It can be known from the above characteristics that the low-, middle-, and high-pressure testing channels built by Characteristic 2 can solve the problem of precision test that it is difficult to respond to different pressure ranges in the past using the single pressure sensor. Based on the masking technique and short-circuit filter capacitor design of hardware in Characteristic 3, as well as the mean technique of software, highly correct and highly accurate testing performance can be obtained effectively. Through the automatic safety valve test procedure provided by Characteristic 4, the problem of high labor cost of the current manual or semi-automatic operation can be solved. Through the pressure curve plotted by Characteristic 5, as well as the calculated spur pressure, reseat pressure, spur error, reseat error, and other information, when the safety valve test fails, it can provide the user with the diagnosis of the cause of the safety valve abnormality and judge whether the spur error is too large due to the wrong test pressure, whether the reseat pressure is too low because the safety valve cannot close the reseat, and whether the reseat pressure is too high because the safety valve cannot be relieved, and so on, using them as the reference for subsequent safety valve adjustment or maintenance.
In the design of the control system,22,23 the control mode of this system adopts sequential control combined with multi-condition logic control. In the state transition diagram of the control process, it mainly includes timing control (timing parameters based on test time or pressure discharge time, etc.) and multiple feature monitoring control (such as pressure, switch, and other control parameters). This system allows the user to set the target value of each parameter and performs multi-condition monitoring and logic control to determine the direction of execution. In this way, the control output of the multi-condition judgment can have high tolerance and stability to signal offsets and other external condition changes. Therefore, this control system can be highly robust.
Conclusion
During the current safety valve test through manual or semi-automated operation in industries, it may cost a lot of labor and the accuracy is not good. What’s more, the use of a single sensor is difficult to carry out precision tests in different pressure ranges. Therefore, an automated safety valve testing system with three testing channels has been developed in this study to cope with these problems. In this system, the user can define the test specifications and related control parameters of the tested safety valve through parameter setting. In addition, this system can automatically execute the complete test control process according to the set parameters, judge whether the test result is passed, and output the test report based on the recorded measurement data. In this article, test experiments on safety valves in four different states have been respectively tested for safety valves with three different test pressures (low, middle, and high). Through the statistical analysis of the test results and the judgment on whether the test is passed, the high-precision automated test function of this system has been verified. Therefore, the research results in this article may effectively solve the problems of current safety valve testing in the industries, improve its operational efficiency, and enhance its testing quality.
Footnotes
Handling Editor: James Baldwin
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) received no financial support for the research, authorship, and/or publication of this article.
