Safety limit switch test method, system, equipment and medium

By obtaining model information, retrieving model parameters, controlling stepper motor movement, collecting action stability and on-resistance data in the safety limit switch test system, calculating switch performance indicators, the accuracy and accuracy problems of the existing test system when facing the differences in the characteristics of switches in different batches are solved, and more accurate and comprehensive test results are achieved.

CN120178019AActive Publication Date: 2025-06-20GUANGZHOU JINHONG ELECTRONICS CO LTD

Patent Information

Application Number
CN202510661661.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-22
Publication Date
2025-06-20
Estimated Expiration
2045-05-22

AI Technical Summary

Technical Problem

When facing the characteristics of different batches of switches, the existing safety limit switch testing system needs to manually adjust the test parameters, which easily introduce errors and affect the test accuracy; at the same time, the fixed sampling interval may miss the key action characteristic points, resulting in inaccurate test results.

Method used

By obtaining the model information of the switch to be tested, the test parameters are retrieved from the preset evaluation model to determine the appropriate reference action point and sampling frequency. The system controls the movement of the stepper motor to drive the limit switch, measure the actual action point, and conducts a reciprocating motion test at this point to obtain action stability data. Then, continuous sampling is performed in the switch-on state, time series changes of the on-resistance value are obtained, and finally the switch performance index is calculated.

Benefits of technology

It realizes automatic adjustment of test parameters according to the characteristics of different batches of switches, improves test accuracy and accuracy, and ensures a comprehensive evaluation of switch operation stability and on-resistance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120178019A_ABST
    Figure CN120178019A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of safety limit switch testing, in particular to a safety limit switch testing method, system and device and a medium. The method comprises the steps that firstly, model information of a to-be-tested switch is acquired, and test parameters are called from a preset evaluation model; by analyzing historical test data of elevator switches of the same batch, a test sequence of actual action point dispersion analysis and target interval dense sampling is established, and a reference action point and a sampling frequency are determined; the system drives the limit switch to move according to the called reference action point and the sampling frequency, the actual action point of the switch is measured, and the system carries out reciprocating motion test at the position of the actual action point to obtain action stability data; meanwhile, high-frequency continuous sampling is carried out in a switch on state to obtain time sequence changes of on-resistance values; and finally, according to the time sequence characteristics of the on-resistance and a preset calculation method, calculating a switch performance index, generating a test result and printing a unique SN label, thereby realizing whole-course tracing of the product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of safety limit switch testing, and in particular, to a safety limit switch testing method, system, device and medium. Background Art

[0002] The elevator safety limit switch is a key component to ensure the safe operation of the elevator end station, and is used to detect whether the elevator car reaches the extreme position of the end station and trigger corresponding safety protection. With the rapid development of the elevator industry and the continuous improvement of safety standards, higher requirements are put forward for the performance and reliability of the safety limit switch, and the accuracy and efficiency of its testing method are particularly important.

[0003] The existing safety limit switch testing system usually adopts a testing method with a fixed sampling interval, and measures the action characteristics and on-resistance of the switch by setting fixed test parameters and sampling points. The testing system judges whether the switch performance is qualified according to the preset standard value.

[0004] The existing testing system needs to manually adjust the test parameters of switches in different batches according to the characteristic differences of switches in different batches, which is easy to introduce errors and affect the testing accuracy; at the same time, the fixed sampling interval may miss key action characteristic points, resulting in inaccurate test results, and this situation needs to be further improved. Summary of the Invention

[0005] In order to solve the problems that the existing testing system needs to continuously adjust the test parameters according to the characteristic differences of switches in different batches, which affects the testing accuracy; at the same time, the fixed sampling interval may miss key action characteristic points, resulting in inaccurate test results, this application provides a safety limit switch testing method, system, device and medium, and adopts the following technical solutions: In a first aspect, this application provides a safety limit switch testing method, including the following steps: Obtain the model information of the safety limit switch to be tested, and retrieve the test parameters from a preset evaluation model according to the model information to obtain the corresponding reference action points and sampling frequencies. The preset evaluation model is established based on the test data of elevator switches in the same batch, and includes a test sequence for analyzing the dispersion of actual action points and dense sampling in the target interval; According to the reference action points and sampling frequencies, control the stepping motor to drive the safety limit switch to move, measure the actual action points, and perform reciprocating motion tests at the actual action points to obtain action stability data; Based on the action stability data, continuously sample in the switch-on state to obtain the on-resistance values of the time series; According to the time series of the on-resistance values and a preset calculation method, calculate the switch performance index, generate a test result and print a unique SN label.

[0006] By adopting the above technical solution, due to the manufacturing process and material deviations of limit switches in different batches, the action characteristics are discrete. The test method with a fixed sampling interval is likely to miss key action points and cannot effectively evaluate the long-term stability of the switch. In this application, the model information of the switch to be tested is first obtained, and the test parameters are retrieved from a preset evaluation model. The evaluation model analyzes the historical test data of elevator switches in the same batch, establishes a test sequence for analyzing the dispersion of actual action points and dense sampling in the target interval, and determines appropriate reference action points and sampling frequencies. The system controls the stepping motor to drive the limit switch to move according to the retrieved reference action points and sampling frequencies. By precisely controlling the movement process of the stepping motor, the actual action points of the switch are measured. To comprehensively evaluate the action stability of the switch, the system performs reciprocating movement tests at the positions of the actual action points to obtain action stability data. Based on these data, the system performs high-frequency continuous sampling when the switch is in the on state to obtain the time-series change of the on-resistance value. Finally, according to the time-series characteristics of the on-resistance and the preset calculation method, the system completes the calculation of the switch performance indicators, generates the test results and prints a unique SN label to achieve full traceability of the product.

[0007] Optionally, obtaining the model information of the safety limit switch to be tested and retrieving the test parameters from the preset evaluation model according to the model information specifically includes the following steps: Scan the QR code on the safety limit switch to obtain a unique identification code, and query the database according to the unique identification code to obtain the test data of the safety limit switches applied to the extreme positions of elevator landings in the same batch. Calculate the dispersion of the actual action points in the test data, and mark the target interval where the dispersion affecting the elevator leveling accuracy exceeds a preset threshold. The preset threshold is determined according to the elevator leveling accuracy standard and the actual operation data of elevators in the same batch. Densely sample points in the target interval according to a preset rule to generate a test sequence. The preset rule is centered on the reference action point. According to the target interval, the actual action points are measured through stepping movement, and the time-series sampling of the on-resistance is performed for a certain period of time at the actual action points to verify the stability of the switch on state. According to the test sequence, retrieve the corresponding holding time and sampling frequency parameters from the preset evaluation model.

[0008] By adopting the above technical solution, since the manufacturing characteristics of each batch of limit switches are different, it is difficult to adapt to the characteristics of different batches of products by using unified and fixed test parameters, which is easy to cause test blind spots; the system of this application first scans the QR code on the switch to obtain a unique identification code, and queries the database to obtain the test data of the same batch of switches at the extreme positions of the elevator floor station; then, the system calculates the discreteness of the actual action point, and marks the area exceeding the preset threshold as the target interval. This threshold is determined based on the elevator leveling accuracy standard and actual operation data; within the target interval, the system arranges dense sampling points according to preset rules centered on the reference action point to form a test sequence; through the precise control of the stepper motor, the system measures the actual action point at these sampling points, and maintains the position for a certain period of time to continuously sample the on-resistance to verify the stability of the switch on state; finally, the system retrieves the corresponding hold time and sampling frequency parameters from the evaluation model according to the generated test sequence; through discreteness analysis and dense sampling, the comprehensiveness and accuracy of the test are ensured.

[0009] Optionally, according to the reference action point and the sampling frequency, controlling the stepper motor to drive the safety limit switch to move and measuring the actual action point specifically includes the following steps: Acquire the initial position information of the stepper motor, and calculate the target motion stroke according to the initial position information and the reference action point; Controlling the movement of the stepper motor according to a preset speed curve, wherein the speed curve includes an acceleration interval, a uniform speed interval and a deceleration interval, and the speed and time parameters of each interval are determined according to the sampling frequency; In the uniform speed interval, the switch state signal and the position signal are collected in real time, and the corresponding position data when the switch state changes are recorded; Analyzing and processing the position data, determining the actual action point, and calculating the deviation value between the actual action point and the reference action point; It is determined whether the switch action characteristic meets the preset performance requirement according to the deviation value.

[0010] By adopting the above technical solution, in order to accurately measure the action point position of the switch, it is necessary to precisely control the movement process of the stepper motor while ensuring the synchronization and accuracy of data acquisition. Since the state changes near the switch action point are relatively sensitive, the traditional constant-speed movement method is likely to miss key state changes, and the sudden change in movement speed will introduce mechanical vibrations, affecting the measurement accuracy. The system of this application first obtains the initial position information of the stepper motor and calculates the required target movement stroke in combination with the reference action point. The motion control adopts a three-segment speed curve, including an acceleration interval, a constant-speed interval, and a deceleration interval. The speed and time parameters of these intervals are not fixed but are dynamically determined according to the sampling frequency set by the system, ensuring the sufficiency of data acquisition. During the constant-speed interval, the system continuously collects the state signal and position signal of the switch. When it detects that the switch state changes, it records the corresponding position data. By analyzing and processing the collected position data, the system can accurately determine the position of the actual action point and calculate the deviation value from the reference action point. Finally, based on this deviation value, the system determines whether the action characteristics of the switch meet the preset performance requirements. Through the speed curve and synchronous acquisition strategy, the influence of mechanical vibrations on the measurement is avoided, and the accuracy of the action point position measurement is improved.

[0011] Optionally, based on the action stability data, continuous sampling is performed in the switch-on state to obtain a time series of on-resistance values, which specifically includes the following steps: Determine the stable on-position and detection time window of the switch according to the action stability data; Apply a constant test current within the stable on-position and detection time window; Continuously collect the voltage values across the switch according to the sampling frequency, and calculate the time series of on-resistance values based on the test current and voltage values; Perform statistical analysis on the on-resistance, and calculate the mean value, standard deviation, and maximum fluctuation range; Compare the statistical analysis results with the preset threshold to judge the stability of the switch-on state.

[0012] By adopting the above technical solutions, the system of the present application first determines the stable connection position of the switch according to the action stability data obtained in the early stage, and sets a suitable detection time window; at this position and within this time window, the system applies a constant test current to ensure the consistency of the measurement conditions; according to the predetermined sampling frequency, the system continuously collects the voltage values at both ends of the switch, and combines the known test current to calculate a set of on-resistance values in a time series; through in-depth statistical analysis of this set of data, the system calculates characteristic parameters such as the mean value, standard deviation, and maximum fluctuation range of the on-resistance; finally, the system compares these statistical analysis results with the preset thresholds to comprehensively judge the stability of the switch conduction state; through continuous sampling and statistical analysis, a more comprehensive and reliable evaluation result of the conduction state is provided.

[0013] Optionally, according to the time series of the on-resistance values and the preset calculation method, calculate the switch performance indicators, which specifically include the following steps: Based on the on-resistance values in the time series, extract characteristic parameters, including the on-resistance mean value, fluctuation amplitude, and stabilization time; Calculate the deviations of the respective characteristic parameters from the preset standard values respectively; According to the preset weight coefficients, perform weighted calculation on each deviation to obtain a comprehensive performance score; Compare the comprehensive performance score with the grading standard to determine the switch performance level; Generate a test report including the characteristic parameters, deviation values, and performance level.

[0014] By adopting the above technical solutions, since the influence degrees of different performance parameters on the switch reliability are different, simply treating each parameter equally or only considering a single parameter is difficult to reflect the true performance level of the switch; the present application first extracts multiple characteristic parameters from the time series data of the on-resistance, including the mean value of the on-resistance, fluctuation amplitude, and the time required to reach the stable state; for each characteristic parameter, the system calculates the deviation between it and the preset standard value; considering that the influence weights of different parameters on the switch performance are different, the system performs weighted calculation on each deviation using the preset weight coefficients to obtain a score that can comprehensively reflect the switch performance; by comparing this comprehensive performance score with the grading standard, the system can accurately determine the performance level of the switch; finally, the system generates a complete test report, which details the characteristic parameters, deviation values, and the finally determined performance level.

[0015] Optionally, the method further includes the following steps: Detect the test process parameters to obtain abnormal state information; According to the abnormal state information, trigger an audible and visual alarm and display an abnormal interface; Based on the abnormal interface, perform a re-test to obtain new test data; According to the new test data, print the SN label and record the complete test process.

[0016] By adopting the above technical solution, the system continuously monitors various parameters during the test process, including signals such as current, voltage, and position. Once an abnormal state is detected, the system immediately generates abnormal state information. To ensure that operators can discover problems in a timely manner, the system triggers an audible and visual alarm, and at the same time clearly displays the abnormal information on the display interface, including the type of abnormality, the occurrence time, and relevant parameters. Operators can judge the cause of the abnormality based on the information provided by the abnormal interface and take corresponding measures. The system will automatically perform a retest to obtain new test data. Only when the new test data meets the requirements will the system print the SN label of the product, improving the reliability of the test process.

[0017] Optionally, the method further includes the following steps: Receive the input of query conditions to obtain query parameters; Retrieve the test database according to the query parameters to obtain test records; Generate a test report based on the test records to determine the quality status of the switch.

[0018] By adopting the above technical solution, the system first receives the query conditions input by the user, which can include query parameters in multiple dimensions such as time range, batch number, and performance level. The system performs an accurate retrieval in the test database according to these parameters and quickly obtains the test records that meet the conditions. These records contain the complete test data of the switch, such as various indicators such as action characteristics, conduction resistance, and stability. The system automatically generates a test report in a standard format based on these test records and determines the overall quality status of the switch through data analysis, improving the efficiency of quality management.

[0019] In a second aspect, the present application provides a safety limit switch test system, including: A test parameter retrieval module for obtaining the model information of the safety limit switch to be tested and retrieving test parameters from a preset evaluation model according to the model information to obtain corresponding reference action points and sampling frequencies. The preset evaluation model is established based on the test data of switches in the same batch and includes a test sequence for analyzing the dispersion of actual action points and dense sampling in the target interval; An action stability acquisition module for controlling a stepper motor to drive the safety limit switch to move according to the reference action point and sampling frequency, measuring the actual action point, and performing a reciprocating motion test at the actual action point to obtain action stability data; A conduction resistance value sampling module for continuously sampling in the switch-on state based on the action stability data to obtain a time series of conduction resistance values; A test result generation module is configured to calculate switch performance indicators according to the time series of the on-resistance values and a preset calculation method, generate test results and print a unique SN label.

[0020] In a third aspect, the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the steps of the above-mentioned safety limit switch test method are implemented.

[0021] In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned safety limit switch test method are implemented.

[0022] In summary, the present application includes at least one of the following beneficial technical effects: The present application first obtains the model information of the switch to be tested and retrieves test parameters from a preset evaluation model. The evaluation model establishes a test sequence of actual action point dispersion analysis and target interval dense sampling by analyzing the historical test data of elevator switches in the same batch, and determines appropriate reference action points and sampling frequencies. The system controls the stepping motor to drive the limit switch to move according to the retrieved reference action points and sampling frequencies. By precisely controlling the movement process of the stepping motor, the actual action points of the switch are measured. To comprehensively evaluate the action stability of the switch, the system performs reciprocating motion tests at the position of the actual action point to obtain action stability data. Based on these data, the system performs high-frequency continuous sampling in the switch-on state to obtain the time series change of the on-resistance value. Finally, according to the time series characteristics of the on-resistance and a preset calculation method, the system completes the calculation of the switch performance indicators, generates test results and prints a unique SN label to achieve full traceability of the product. The system of the present application first scans the QR code on the switch to obtain a unique identification code, and queries the database based on this to obtain the test data of switches in the same batch at the extreme positions of elevator floors. Subsequently, the system calculates the dispersion of the actual action points and marks the area exceeding the preset threshold as the target interval, and this threshold is determined based on the elevator leveling accuracy standard and actual operation data. Within the target interval, the system arranges dense sampling points according to a preset rule centered on the reference action point to form a test sequence. Through precise control of the stepping motor, the system measures the actual action points at these sampling points and performs continuous sampling of the on-resistance at this position for a certain period of time to verify the stability of the switch-on state. Finally, the system retrieves the corresponding holding time and sampling frequency parameters from the evaluation model according to the generated test sequence. By means of dispersion analysis and dense sampling, the comprehensiveness and accuracy of the test are ensured. The system of the present application first obtains the initial position information of the stepper motor, and calculates the required target motion stroke in combination with the reference action point; the motion control adopts a three-segment speed curve, including an acceleration interval, a constant-speed interval, and a deceleration interval; the speed and time parameters of these intervals are not fixed, but are dynamically determined according to the sampling frequency set by the system, ensuring the sufficiency of data acquisition. In the constant-speed interval, the system real-time collects the state signal and position signal of the switch. When it detects that the switch state changes, it records the corresponding position data; by analyzing and processing the collected position data, the system can accurately determine the position of the actual action point and calculate the deviation value from the reference action point; finally, based on this deviation value, the system determines whether the action characteristics of the switch meet the preset performance requirements; through the speed curve and synchronous acquisition strategy, the influence of mechanical vibration on measurement is avoided, and the accuracy of action point position measurement is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 is a schematic flowchart of a method for testing a safety limit switch according to an embodiment of the present application; Figure 2 is a schematic diagram of the testing process in a method for testing a safety limit switch according to an embodiment of the present application; Figure 3 is a schematic flowchart of step S100 in a method for testing a safety limit switch according to an embodiment of the present application; Figure 4 is a schematic flowchart of step S200 in a method for testing a safety limit switch according to an embodiment of the present application; Figure 5 is a schematic flowchart of step S300 in a method for testing a safety limit switch according to an embodiment of the present application; Figure 6 is a schematic flowchart of step S400 in a method for testing a safety limit switch according to an embodiment of the present application; Figure 7 is a schematic flowchart of abnormal alarm in a method for testing a safety limit switch according to an embodiment of the present application; Figure 8 is a schematic flowchart of generating a test report in a method for testing a safety limit switch according to an embodiment of the present application; Figure 9 is a schematic diagram of the modules of a safety limit switch testing system according to an embodiment of the present application; Figure 10 is an internal structure diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0024] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. As used in the specification and appended claims of the present application, the singular forms "a", "an", "the", "above-mentioned", "said", and "this" are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term " / and" used in the present application refers to any or all possible combinations including one or more of the listed items.

[0025] Hereinafter, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as implying or suggesting relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the embodiments of the present application, unless otherwise specified, the meaning of "a plurality" is two or more.

[0026] The embodiments of the present application will be further described in detail below with reference to the accompanying drawings of the specification.

[0027] In a first aspect, the present application provides a method for testing a safety limit switch. Referring to Figure 1 , the method includes the following steps: S100: Obtain the model information of the safety limit switch to be tested, and retrieve test parameters from a preset evaluation model according to the model information to obtain corresponding reference action points and sampling frequencies.

[0028] Among them, the preset evaluation model is established based on the test data of the elevator switches of the same batch, and includes a test sequence for analyzing the dispersion of actual action points and dense sampling in the target interval.

[0029] In this embodiment, the model information includes basic information such as the specification model and manufacturing batch of the switch, which can be obtained by barcode scanning; the evaluation model refers to the parameter mapping relationship established according to historical test data, which is used to quickly determine test parameters; the reference action point refers to the expected action position of the switch, and the sampling frequency determines the time interval of data acquisition.

[0030] Specifically, the system first reads the two-dimensional code information on the surface of the switch through a barcode scanner to obtain complete model information. The system maintains a model-parameter mapping table, which is regularly updated according to the test data of the switches of the same batch and contains the reference action point ranges and recommended sampling frequencies corresponding to different model switches. For example, for the XX-01 type switch, its reference action point range is 15 ± 0.5 mm, and the sampling frequency is set to 1 kHz. In addition, the system also establishes a dispersion analysis method to determine the key test interval by calculating the standard deviation of the actual action points of the switches of the same batch. Within the key interval, the system will automatically increase the sampling frequency to achieve precise measurement of key parameters.

[0031] S200. Control the stepper motor to drive the safety limit switch to move according to the reference action point and sampling frequency, measure the actual action point, and perform a reciprocating motion test at the actual action point to obtain action stability data.

[0032] In this embodiment, as Figure 2 shown, the safety limit switch is of a single-sided cantilever ball pendulum rod type structure, including a switch body and a single-sided cantilever pendulum rod with a ball. The pendulum rod is installed on the switch body through a bearing and can swing freely within a certain angle range. The ball design reduces the friction when the pendulum rod moves and improves the sensitivity of the switch action. The switch is installed on the orange test platform, and its position and angle are precisely calibrated to ensure the accuracy of the test.

[0033] Specifically, the system uses a precision stepper motor to drive the test mechanism to drive the switch installed on the test platform to perform a controlled movement. During the test, the ball of the single-sided cantilever pendulum rod contacts the guiding mechanism on the test platform. As the platform moves structurally, the pendulum rod generates an angular change until the switch is triggered to act. The system adopts a segmented control strategy: first, move the switch at a speed of 2 mm / s. When approaching 3 mm before the reference action position (such as the expected 15 mm), reduce the speed to 0.5 mm / s. The switch status signal is monitored in real time during the test. When a status change is detected, record the current position as the actual action point. For example, for a switch with a rated action position of 18 mm, the system performs a precise scan within the range of 16 - 20 mm. After detecting the action point (such as 18.2 mm), perform 10 reciprocating motions within the range of ±1 mm from this position, and record the precise position when the pendulum rod is triggered each time to evaluate the repeatability and stability of the switch action. During the entire test process, continuously monitor the switch position through a high-precision displacement sensor to ensure the reliability of the measurement data.

[0034] S300. Based on the action stability data, perform continuous sampling in the switch-on state to obtain the on-resistance values of the time series.

[0035] In this embodiment, the action stability data includes the trigger position data of the switch during reciprocating motion; the on state refers to the working state where the switch contacts are closed; the on-resistance value reflects the contact quality of the contacts, and its time series data is used to evaluate the stability of the contact.

[0036] Specifically, after the system confirms that the switch has completed the stability test, it keeps the swing rod in the on position. The electrical characteristics of the switch contacts are tested using a four-wire measurement method. The system continuously collects contact voltage and current data through a high-precision data acquisition card within a certain period of time, and calculates a series of on-resistance values. To eliminate external interference, the system performs digital filtering on the original data to obtain a reliable on-resistance time series.

[0037] S400. According to the time series of the on-resistance values and a preset calculation method, calculate the switch performance indicators, generate the test results, and print a unique SN label.

[0038] In this embodiment, the switch performance indicators include statistical parameters such as the average value, maximum value, and standard deviation of the contact on-resistance; the preset calculation method defines the calculation rules and judgment criteria for each indicator; the unique SN label is the unique serial number label, which is used for product traceability and quality control.

[0039] Specifically, the system calculates performance indicators based on the on-resistance time series data, including the average on-resistance, standard deviation, and stabilization time, etc. Determine whether the switch is qualified according to the preset judgment rules. For qualified products, generate a unique serial number in the format of "product model - production date - serial number". Finally, print a certificate of conformity containing a QR code and save the test data to the quality management database.

[0040] In one embodiment, referring to Figure 3 , in step S100, obtain the model information of the safety limit switch to be tested, and retrieve the test parameters from a preset evaluation model according to the model information, which specifically includes the following steps: S110. Scan the QR code on the safety limit switch to obtain the unique identification code, and query the database according to the unique identification code to obtain the test data of the safety limit switches applied to the extreme positions of the elevator landings in the same batch.

[0041] In this embodiment, the unique identification code includes the basic product information and production batch information; the test data of the same batch refers to the historical test records obtained by the same model switches at the standard test stations during the same production cycle; the extreme position of the landing refers to the position where the elevator car makes mechanical contact with the safety limit switch when running to the end station.

[0042] Specifically, the system uses an industrial camera to collect the QR code image on the surface of the switch and parse it to obtain the unique identification code. The system maintains a basic database and establishes a mapping relationship between the product identification code and the test records. The database adopts a hierarchical architecture, where the basic layer stores the original test data, the middle layer contains batch statistical information, and the top layer saves the application data related to elevator operation. When querying, the system first locates the corresponding batch through the identification code, and then extracts the test records of the switches applied to the extreme positions of the landings in that batch.

[0043] S120. Calculate the dispersion of the actual action points in the test data, and mark the target intervals where the dispersion affecting the elevator leveling accuracy exceeds the preset threshold.

[0044] Wherein, the preset threshold is determined according to the elevator leveling accuracy standard and the actual operation data of the elevators in the same batch.

[0045] In this embodiment, the dispersion includes the deviation distribution of the switch action position relative to the nominal value and the actual docking error distribution during the elevator floor positioning; the preset threshold is jointly determined by the elevator leveling accuracy grade and the actual operation data; the target interval determines the test focus by considering not only the action characteristics of the switch itself but also the compensation ability of the elevator floor positioning system. This solution is mainly for high-speed elevators in high-rise buildings and special elevators with high requirements for leveling accuracy (such as medical elevators, high-precision industrial elevators, etc.). The system establishes an elevator compensation characteristic database to record the compensation ability of the positioning system under different working conditions. Taking the high-speed elevator in a certain super high-rise building as an example, for the case of mechanical compensation, the deviation of the switch action position can be compensated by adjusting the position of the switch bracket, and the repeatability of the switch action is focused on; for the case of control compensation, the system can control the elevator deceleration point in advance according to the switch action position, and the timeliness of the switch action is focused on. When the switch is installed at the top limit position above the 80th floor, due to limited mechanical compensation and high braking accuracy requirements, the system will reduce the allowable threshold of the action position deviation to ±2 mm, and correspondingly increase the test density in this interval. If the switch is used for ordinary floors and the control system has strong compensation ability, the threshold can be relaxed to ±5 mm. The system analyzes the matching relationship between the switch action characteristics and the compensation ability, and establishes a two-dimensional decision matrix, with the horizontal axis being the switch action deviation and the vertical axis being the compensation margin, to quickly determine the range of the target interval and the test requirements. For special elevators such as medical elevators, the system will select a more stringent decision criterion according to the actual application scenario to ensure the smooth operation and positioning accuracy of the elevator.

[0046] Specifically, the system evaluates the dispersion in two dimensions: First, analyze the switch batch data, calculate the average value and standard deviation of the action position, and identify the abnormal points exceeding ±2σ; second, introduce the elevator operation data and conduct a correlation analysis between the switch action characteristics and the floor positioning error. For example, a certain type of switch is used at the top limit position of a 10-story building. The system will focus on the action consistency of the switch during the elevator deceleration process because this directly affects the terminal positioning accuracy of the elevator. The system maintains a hierarchical threshold decision table. The basic layer contains the technical requirements of the switch body, the middle layer contains the compensation parameters under different floor heights, and the top layer contains the dynamic characteristic requirements corresponding to the elevator speed grade. When there is a significant correlation between the dispersion of the switch action position and the elevator positioning error, the system marks the corresponding interval as the key test target and adjusts the subsequent test parameters accordingly.

[0047] S130. Densely sample points within the target interval according to a preset rule to generate a test sequence.

[0048] Among them, the preset rule is centered on a reference action point. According to the target interval, the actual action point is measured through a stepping motion. At the actual action point, a time series sampling of the on-resistance is performed for a period of time to verify the stability of the switch-on state.

[0049] In this embodiment, the preset rule defines the distribution mode and density of the sampling points; dense sampling means increasing the number of test points within the target interval; the test sequence is a set of sampling positions arranged in chronological order.

[0050] Specifically, the system uses a linear interpolation method to generate a test sequence within the target interval. Centered on the reference action point, basic sampling points are arranged on both sides of it according to the equal-spacing principle. For the marked target interval, the system automatically densifies the sampling interval, and the sampling density gradually decreases as it moves away from the central position. The test sequence includes both motion parameters and hold time parameters, which are used to control the switch test process.

[0051] S140. According to the test sequence, retrieve the corresponding hold time and sampling frequency parameters from a preset evaluation model.

[0052] In this embodiment, the hold time refers to the time length of staying at each sampling position for stability testing; the sampling frequency parameter determines the time resolution of data acquisition; the evaluation model is used to determine the optimal combination of test parameters.

[0053] Specifically, the system establishes a parameter look-up table to establish a correspondence between the test sequence features and the test parameters. The table contains recommended parameter values for different test scenarios. The system selects a suitable parameter combination according to the position and range of the target interval. For special application scenarios, the system will call a dedicated evaluation model for parameter optimization to ensure the reliability of the test.

[0054] In one embodiment, referring to Figure 4 , in step S200, according to the reference action point and the sampling frequency, control the stepping motor to drive the safety limit switch to move, and measure the actual action point, which specifically includes the following steps: S210. Obtain the initial position information of the stepping motor, and calculate the target motion stroke according to the initial position information and the reference action point.

[0055] In this embodiment, the initial position information includes the zero position mark and the mechanical origin position of the stepping motor; the target motion stroke refers to the actual moving distance from the initial position to the reference action point; considering the mechanical characteristic differences of different test stations, the system needs to perform position calibration and compensation.

[0056] Specifically, the system uses a position mapping table to record the characteristic parameters of each test station. First, the zero position of the stepper motor is detected by a Hall sensor, and then the mechanical origin is determined by a mechanical limit switch. The system queries the corresponding position compensation value from the mapping table according to the station number, and converts the mechanical coordinates into standard test coordinates. For example, if the reference position of a certain test station is offset by 0.2 mm due to mechanical wear, the system will automatically compensate for this deviation when calculating the target stroke.

[0057] S220. Control the movement of the stepper motor according to a preset speed curve. The speed curve includes an acceleration interval, a constant-speed interval, and a deceleration interval. The speed and time parameters of each interval are determined according to the sampling frequency.

[0058] In this embodiment, the speed curve refers to the variation law of the speed of the stepper motor during the movement process. The S-shaped curve is adopted for the acceleration interval and the deceleration interval to ensure a smooth transition. The speed of the constant-speed interval needs to match the sampling frequency to ensure the accuracy of data acquisition.

[0059] Specifically, the system establishes a speed planning template and selects appropriate motion parameters according to the test requirements. The acceleration and deceleration times and the curve shape are determined by looking up a table. For example, when the sampling frequency is set to 1 kHz, the speed in the constant-speed section is controlled at 5 mm / s to ensure that the displacement increment between adjacent sampling points does not exceed 5 μm. The system realizes speed control through timer interruption and generates motor control pulses by means of table lookup and interpolation.

[0060] S230. During the constant-speed interval, the switch state signal and the position signal are collected in real time, and the position data corresponding to the change of the switch state is recorded.

[0061] In this embodiment, the switch state signal includes the on / off state of the normally open / normally closed contact and the conduction resistance value. The position signal comes from the stepper motor encoder and the linear grating scale. The requirement for real-time collection is not to affect the motor motion control on the premise of ensuring the sampling accuracy.

[0062] Specifically, the system adopts a double-buffer data acquisition structure, separates the state detection and the position recording for processing. The state detection circuit uses opto-isolation and captures the moment of state change through hardware triggering. The position signal is recorded by means of timed sampling, and the exact position at the moment of state change is calculated by linear interpolation. For example, when it is detected that the switch state changes from off to on, the system records the position data points before and after the current moment and calculates the actual action position through interpolation.

[0063] S240. Analyze and process the position data to determine the actual action point and calculate the deviation value between the actual action point and the reference action point.

[0064] In this embodiment, the analysis and processing include data filtering, validity verification, and statistical calculation; the actual action point is defined as the position where the switch state changes stably; the deviation value is used to evaluate the accuracy of the switch action characteristics.

[0065] Specifically, the system preprocesses the original data using the sliding window method. First, median filtering is applied to the position data to remove outliers, and then the effective action intervals are identified according to the change characteristics of the status signal. The system maintains a deviation statistical table to record the typical deviation values under different working conditions, which is used to quickly judge the rationality of the test results.

[0066] S250. Judge whether the switch action characteristics meet the preset performance requirements according to the deviation value.

[0067] In this embodiment, the performance requirements include indicators such as action position deviation, contact feedback time, and switch state stability; the preset requirements are determined according to the switch application scenario and safety level.

[0068] Specifically, the system uses a hierarchical decision table to evaluate the switch performance. A three-level decision-making mechanism is established: first, check whether the deviation value is within the allowable range; second, verify the stability of the switch action; finally, evaluate the overall performance indicators.

[0069] In one embodiment, referring to Figure 5 , in step S300, based on the action stability data, continuous sampling is performed in the switch on state to obtain the on-resistance values of the time series, which specifically includes the following steps: S310. Determine the stable on position and detection time window of the switch according to the action stability data.

[0070] In this embodiment, the stable on position refers to the position point where the switch contacts are fully closed and the mechanical vibration has been sufficiently attenuated; the detection time window refers to the test duration maintained at this position point; these parameters need to be dynamically adjusted according to the switch type and working environment.

[0071] Specifically, the system maintains a parameter configuration table based on the switch model. The table records the mechanical stability time and recommended test duration of different types of switches, and the test parameters are quickly determined by looking up the table. For example, for a certain type of micro switch, the system starts the test 50 ms after the contacts are closed, and the test time window is set to 500 ms to ensure that the mechanical vibration is sufficiently attenuated.

[0072] S320. Apply a constant test current within the stable on position and detection time window.

[0073] In this embodiment, the selection of the test current needs to consider the switch rating and the requirements for test accuracy; the constant current source adopts a precision control circuit based on an operational amplifier; the system ensures the stability of the test current through real-time monitoring.

[0074] Specifically, the system adopts a stepped current source design and establishes a test current lookup table. According to the switch contact material and the rated current, a suitable test current value is selected from the table.

[0075] S330. Continuously collect the voltage values at both ends of the switch according to the sampling frequency, and calculate the on-resistance values of the time series based on the test current and the voltage values.

[0076] In this embodiment, high-precision ADC is used for voltage sampling, which supports multi-channel synchronous sampling; the calculation of the on-resistance takes into account the compensation of the test circuit; the time series data is used to analyze the dynamic changes of the contact on characteristics.

[0077] Specifically, the system establishes a test compensation calibration table to record the line resistance and offset voltage of each test channel. During the sampling process, the compensation value is obtained by looking up the table, and the actual contact resistance is calculated in real time.

[0078] S340. Conduct statistical analysis on the on-resistance, and calculate the mean value, standard deviation, and maximum fluctuation range.

[0079] In this embodiment, data processing methods are used for statistical analysis; the mean value reflects the basic level of the contact on-resistance; the standard deviation and the fluctuation range are used to evaluate the on-stability; the system automatically identifies and processes outliers.

[0080] Specifically, the system uses the sliding window method for real-time statistical calculation and maintains a typical value range table. First, the significantly abnormal sampling points are removed, and then the statistical characteristics of the valid data are calculated.

[0081] S350. Compare the statistical analysis results with the preset threshold to judge the stability of the switch on-state.

[0082] In this embodiment, the preset threshold includes judgment criteria in two dimensions: static and dynamic; the static criterion focuses on the absolute value of the on-resistance; the dynamic criterion evaluates the fluctuation characteristics of the resistance value; the judgment result is used for switch performance grading.

[0083] Specifically, the system uses a hierarchical judgment table for result evaluation. The table stipulates the judgment criteria under different application scenarios, including the upper limit of the on-resistance, the volatility limit, etc.

[0084] In one embodiment, referring to Figure 6 , in step S400, according to the time series of the on-resistance values and the preset calculation method, calculate the switch performance indicators, which specifically include the following steps: S410. Extract characteristic parameters based on the on-resistance values in the time series, including the average on-resistance, the fluctuation amplitude, and the stabilization time.

[0085] In this embodiment, the characteristic parameters reflect the key performance indicators of the switch on-state; the average on-resistance characterizes the contact quality of the contact points; the fluctuation amplitude reflects the stability of the contact; and the stabilization time describes the time required for the resistance value to stabilize from the moment of contact of the contact points.

[0086] Specifically, the system uses a characteristic parameter extraction table for data processing. The calculation windows and extraction methods of different parameters are defined in the table, avoiding complex signal processing algorithms. For example, within a 1-second time window, the system calculates the local average every 20 ms and takes the average of the last 10 points as the average on-resistance; determines the fluctuation amplitude by the difference between the maximum value and the minimum value; and takes the moment when the resistance value enters the ±5% range as the stabilization time point.

[0087] S420. Calculate the deviations of the characteristic parameters from the preset standard values respectively.

[0088] In this embodiment, the preset standard values are derived from product specification requirements and historical test data; the deviation calculation uses a standardization processing method; the deviation calculation methods of different parameters are determined according to their physical meanings.

[0089] Specifically, the system establishes a classification standard value table and selects the corresponding standard values according to the switch model and application scenario. The typical values and allowable deviation ranges of each type of switch are recorded in the table.

[0090] S430. Perform weighted calculations on the deviations according to the preset weight coefficients to obtain the comprehensive performance score.

[0091] In this embodiment, the weight coefficients indicate the influence degrees of the parameters on the switch performance; the weighted calculation uses a normalization process; and the comprehensive performance score is represented in percentage system.

[0092] Specifically, the system uses a weight configuration table to manage the weights of the parameters. Select the corresponding weight configuration scheme according to the application requirements.

[0093] S440. Compare the comprehensive performance score with the grading standard to determine the switch performance level.

[0094] In this embodiment, the grading standard is formulated according to the product application level; the performance level is used for product screening and quality traceability; and the determination of the performance level needs to consider the influence of test errors.

[0095] Specifically, the system maintains a grading determination table and adopts a gradient grading scheme. The performance levels and determination rules corresponding to different score ranges are specified in the table.

[0096] S450. Generate a test report including the characteristic parameters, deviation values, and performance levels.

[0097] In this embodiment, the test report includes quantitative data and qualitative evaluations; the characteristic parameters are presented in numerical form; the deviation values are shown in the form of charts; and the performance levels serve as the basis for quality assessment.

[0098] Specifically, the system adopts a templated report generation scheme and establishes a test report template library. Selects a suitable report template according to the test type and automatically fills in the test data and evaluation results. For example, a regular test report includes a basic parameter table, a deviation analysis chart, and a rating result; a detailed report additionally includes a time series data chart and an abnormal analysis description.

[0099] In one embodiment, referring to Figure 7 , the method further includes the following steps: S710. Detect the process parameters of the test to obtain abnormal status information.

[0100] In this embodiment, the process parameters include working conditions such as ambient temperature, test current, and supply voltage; the abnormal status information includes types such as parameter overlimit, data anomaly, and equipment failure; and the system monitors and records these parameters in real time.

[0101] Specifically, the system establishes a process parameter monitoring table and sets the normal working range and alarm thresholds for key parameters. Adopts a simple state machine method for anomaly detection and compares the parameter values with the preset range.

[0102] S720. Trigger an audible and visual alarm and display an abnormal interface according to the abnormal status information.

[0103] In this embodiment, the audible and visual alarm adopts a multi-level alarm mechanism; the abnormal interface includes a fault code and a handling suggestion; and the system selects different prompting methods according to the type of anomaly.

[0104] Specifically, the system uses an alarm level configuration table to manage the prompting methods for different abnormal statuses. Establishes a set of simple alarm rules: a yellow indicator light indicates parameter fluctuations, and a red indicator light indicates a serious fault; the buzzer uses different interval modes to distinguish the anomaly levels. For example, when the test current fluctuates, a yellow light is displayed and the buzzer sounds intermittently; when the supply voltage is abnormal, a red light is displayed and the alarm sounds continuously. The fault description and recommended operations are displayed on the interface by looking up the table.

[0105] S730. Based on the abnormal interface, perform a retest to obtain new test data.

[0106] In this embodiment, the retest selects different test schemes based on the cause of the anomaly; the new test data needs to be compared and analyzed with the original data; and the system automatically determines whether manual intervention is required.

[0107] Specifically, the system maintains an exception handling process table and selects corresponding retest strategies according to the exception types. A simple decision tree structure is used to determine the handling solutions. For example, for exceptions caused by parameter fluctuations, the system automatically retests after the parameters return to normal; for equipment failures, the system requires the operator to confirm before continuing the test. When the difference between the retest data and the original data exceeds the set threshold, the system will mark that manual re-inspection is required.

[0108] S740. Print the SN label and record the complete test process according to the new test data.

[0109] In this embodiment, the SN label contains the product serial number and test result information; the complete test process record includes the original data, exception information, and handling process; this information is used for product traceability and quality analysis.

[0110] Specifically, the system uses a hierarchical storage scheme to manage the test data. A test record template is established, and different record formats are selected according to the product type. For example, ordinary products only record the final test results and key parameters; products with exceptions additionally save the complete process data and exception handling records. The label printing adopts a templatized design, and the printing content is generated through text replacement. The system supports the data export function and can query historical records according to conditions such as time and batch.

[0111] In one embodiment, referring to Figure 8 , the method further includes the following steps: S810. Receive the input of query conditions to obtain query parameters.

[0112] In this embodiment, the query conditions include screening options such as time range, production batch, and product model; the query parameters are stored in a structured format; the system supports multi-condition combination queries and fuzzy matching.

[0113] Specifically, the system establishes a query template table and presets common query condition combinations. The operation interface selects the query items through a drop-down menu to avoid complex condition input.

[0114] S820. Retrieve the test database according to the query parameters to obtain test records.

[0115] In this embodiment, the test database adopts a hierarchical storage structure; the test records include two levels of basic information and detailed data; the retrieval process needs to consider the balance between data access efficiency and storage space.

[0116] Specifically, the system manages test records using an index table. The table contains quick retrieval fields such as record ID, timestamp, and key parameters. First, the record ID that meets the conditions is located through the index table, and then the detailed data is loaded as needed. For example, when querying the pass rate for a certain time period, only the statistical data in the index table needs to be accessed; when viewing specific test records, the complete test data is loaded. The system archives historical data regularly to maintain the retrieval efficiency of the main database.

[0117] S830. Generate a test report based on the test records to determine the quality status of the switch.

[0118] In this embodiment, the test report is divided into a statistical report and an analysis report according to the usage scenario; the quality status includes batch level and trend changes; the system supports the customized generation of reports.

[0119] Specifically, the system maintains a report template library containing different types of report formats. A simple data analysis rule table is established for quality status evaluation. For example, the daily production report uses a fixed format to display basic indicators such as production volume and pass rate; the quality analysis report adds detailed content such as a defective distribution map and a parameter trend graph. The system judges the quality trend based on continuous sampling inspection data, and when a certain indicator is close to the warning line three times in a row, an early warning prompt is automatically generated.

[0120] It should be understood that the magnitudes of the sequence numbers of the steps in the above embodiments do not mean the order of execution. The execution order of each process should be determined according to its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.

[0121] In a second aspect, the present application provides a safety limit switch test system. The safety limit switch test system of the present application will be described below in combination with the above safety limit switch test method.

[0122] Refer to Figure 9 , a safety limit switch test system, comprising: A test parameter retrieval module, configured to obtain the model information of the safety limit switch to be tested, and retrieve test parameters from a preset evaluation model according to the model information to obtain corresponding reference action points and sampling frequencies. The preset evaluation model is established based on the test data of switches in the same batch and includes a test sequence for analyzing the dispersion of actual action points and dense sampling in a target interval; An action stability acquisition module, configured to control a stepper motor to drive the safety limit switch to move according to the reference action point and sampling frequency, measure the actual action point, and perform a reciprocating motion test at the actual action point to obtain action stability data; A conduction resistance value sampling module, configured to perform continuous sampling in the switch-on state based on the action stability data to obtain a time series of conduction resistance values; A test result generation module, configured to calculate a switch performance index according to the time series of the on-resistance value and a preset calculation method, generate a test result, and print a unique SN label.

[0123] In one embodiment, the present application provides an electronic device, which may be a server, and its internal structure diagram may be as Figure 10 shown. The electronic device includes a processor, a memory, and a network interface connected through a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the electronic device is used to store data. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it implements a method for testing a safety limit switch.

[0124] Those skilled in the art can understand that Figure 10 the structure shown in

[0125] is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the electronic device to which the solution of the present application is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.

[0126] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The above computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above various methods. Among them, any reference to a memory, storage, database, or other medium used in the various embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.

[0127] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereby. Therefore, all equivalent changes made according to the structure, shape, and principle of the present application should be covered within the protection scope of the present application.

Claims

1. A safety limit switch testing method, characterized in that, The method includes the following steps: Obtain the model information of the safety limit switch to be tested, and retrieve test parameters from a preset evaluation model according to the model information to obtain corresponding reference action points and sampling frequencies. The preset evaluation model is established based on the test data of elevator switches in the same batch, and includes a test sequence for analyzing the dispersion of actual action points and dense sampling in the target interval; According to the reference action point and sampling frequency, control the stepping motor to drive the safety limit switch to move, measure the actual action point, and conduct a reciprocating motion test at the actual action point to obtain action stability data; Based on the action stability data, continuously sample in the switch-on state to obtain a time series of on-resistance values; According to the time series of the on-resistance values and a preset calculation method, calculate the switch performance index, generate a test result, and print a unique SN label.

2. The safety limit switch testing method according to claim 1, characterized in that, Obtain the model information of the safety limit switch to be tested, and retrieve test parameters from a preset evaluation model according to the model information. Specifically, it includes the following steps: Scan the QR code on the safety limit switch to obtain a unique identification code, and query the database according to the unique identification code to obtain the test data of the safety limit switches applied to the extreme positions of elevator landings in the same batch; Calculate the dispersion of the actual action points in the test data, and mark the target interval where the dispersion affecting the elevator leveling accuracy exceeds a preset threshold. The preset threshold is determined according to the elevator leveling accuracy standard and the actual operation data of the elevators in the same batch; Densely sample points in the target interval according to a preset rule to generate a test sequence. The preset rule takes the reference action point as the center, and according to the target interval, measures the actual action point through stepping motion, maintains for a period of time at the actual action point to perform time series sampling of the on-resistance, and verifies the stability of the switch-on state; According to the test sequence, retrieve the corresponding holding time and sampling frequency parameters from a preset evaluation model.

3. The safety limit switch testing method according to claim 1, characterized in that, According to the reference action point and sampling frequency, control the stepping motor to drive the safety limit switch to move, measure the actual action point. Specifically, it includes the following steps: Obtain the initial position information of the stepping motor, and calculate the target movement stroke according to the initial position information and the reference action point; Control the stepping motor to move according to a preset speed curve. The speed curve includes an acceleration interval, a constant-speed interval, and a deceleration interval. The speed and time parameters of each interval are determined according to the sampling frequency; During the constant-speed interval, continuously collect the switch state signal and position signal, and record the position data corresponding to the change of the switch state; Analyze and process the position data to determine the actual action point, and calculate the deviation value between the actual action point and the reference action point; Judge whether the switch action characteristics meet the preset performance requirements according to the deviation value.

4. The safety limit switch testing method according to claim 1, characterized in that, Based on the action stability data, continuously sample in the switch-on state to obtain a time series of on-resistance values. Specifically, it includes the following steps: Determine the stable switch-on position and detection time window of the switch according to the action stability data; Apply a constant test current within the stable switch-on position and detection time window; Continuously collect the voltage values at both ends of the switch according to the sampling frequency, and calculate the on-resistance values of the time series based on the measured current and voltage values; Conduct statistical analysis on the on-resistance, and calculate the mean value, standard deviation and maximum fluctuation range; Compare the statistical analysis results with the preset threshold values to judge the stability of the switch on-state.

5. The safety limit switch testing method according to claim 4, characterized in that, According to the time series of the on-resistance values and the preset calculation method, calculate the switch performance indicators, which specifically include the following steps: Based on the on-resistance values of the time series, extract characteristic parameters, including the on-resistance mean value, fluctuation amplitude and stable time; Calculate the deviations of the characteristic parameters from the preset standard values respectively; Perform weighted calculation on each deviation according to the preset weight coefficients to obtain the comprehensive performance score; Compare the comprehensive performance score with the grading standard to determine the switch performance level; Generate a test report including the characteristic parameters, deviation values and performance level.

6. The safety limit switch testing method according to claim 1, characterized in that, The method further includes the following steps: Detect the test process parameters to obtain abnormal state information; According to the abnormal state information, trigger an audible and visual alarm and display an abnormal interface; Based on the abnormal interface, perform a re-test to obtain new test data; According to the new test data, print the SN label and record the complete test process.

7. The safety limit switch testing method according to claim 1, wherein The method further includes the following steps: Receive the input of query conditions to obtain query parameters; According to the query parameters, retrieve the test database to obtain test records; Based on the test records, generate a test report and determine the switch quality status.

8. A safety limit switch testing system, wherein Including: A test parameter retrieval module, configured to obtain the model information of the safety limit switch to be tested, and retrieve test parameters from a preset evaluation model according to the model information to obtain corresponding reference action points and sampling frequencies. The preset evaluation model is established based on the test data of the same batch of switches and includes a test sequence for analyzing the actual action point dispersion and dense sampling in the target interval; An action stability acquisition module, configured to control a stepping motor to drive the safety limit switch to move according to the reference action point and sampling frequency, measure the actual action point, and perform a reciprocating motion test at the actual action point to obtain action stability data; An on-resistance value sampling module, configured to continuously sample based on the action stability data in the switch-on state to obtain the on-resistance values of the time series; A test result generation module, configured to calculate the switch performance indicators according to the time series of the on-resistance values and the preset calculation method, generate a test result and print a unique SN label.

9. An electronic device, wherein Including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the steps of the safety limit switch test method according to any one of claims 1-7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, wherein When the computer program is executed by the processor, the steps of the safety limit switch test method according to any one of claims 1-7 are implemented.

Citation Information

Patent Citations

  • Optocoupler relay operation state detection method and device

    CN113933694A

  • Automobile glass lifter switch quality detection method, system and equipment

    CN118603596A

  • Test bench suitable for electric parameter acquisition of polymorphic type travel switch

    CN205941815U

  • Tester for protective relay

    JP1998002921A

  • Nonlinear autoregressive exogenous (NARX) modelling for power electronic device modelling

    US20230104896A1

Cited By

  • Method and system for testing product with non-detachable battery and electronic equipment

    CN120559506A

  • Key life test method, automatic test system and computer readable storage medium

    CN121632569A

  • Key life test method, automated test system, and computer-readable storage medium

    CN121632569B