Redundancy proximity switch test system and test method

By designing the redundant proximity switch test system, using a linear mobile station and data acquisition device, automated testing of the redundant proximity switch performance is achieved, solving the problems of cumbersome and unreliable existing testing methods, and improving the testing efficiency and result reliability.

CN119596124AActive Publication Date: 2025-03-11AVIC SHAANXI HUAYAN AERO INSTR
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202411587081.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-08
Publication Date
2025-03-11
Estimated Expiration
2044-11-08

AI Technical Summary

Technical Problem

The existing test methods for redundant proximity switch performance are cumbersome, inefficient and unreliable, and the results are not effectively considered. The synchronization and repetition accuracy of redundant proximity switches in actual use are not effectively considered.

Method used

A redundant proximity switch test system is designed, including a linear mobile station, a target, a clamping device, a data acquisition and driving device and a host computer. By collecting and analyzing the level signals output by the redundant proximity switch and the position data of the linear displacement station in real time, automatic repeatability accuracy and synchronization analysis are achieved.

Benefits of technology

Improves the efficiency of redundant proximity switch performance testing, ensures the reliability of test results, is suitable for multiple models of redundant proximity switches, and supports automated testing and manual testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119596124A_ABST
    Figure CN119596124A_ABST
Patent Text Reader

Abstract

The invention provides a multi-redundancy proximity switch test system and method, and the system comprises a linear displacement table, a clamping device, targets, a data collection and drive device and an upper computer, the clamping device can be provided with a plurality of multi-redundancy proximity switches, the linear displacement table is provided with a plurality of targets aligned with the multi-redundancy proximity switches, and the targets are connected with the upper computer. The target is used for triggering the redundancy proximity switch to enable the redundancy proximity switch to output a level signal; the data acquisition and driving device can acquire position data of the linear displacement table and level data output by the multi-redundancy proximity switch in real time, and can control the pulse number of a stepping motor in the linear displacement table according to a control instruction of the upper computer so as to accurately control the movement of the linear displacement table; and the upper computer performs analysis according to jump data in the obtained position data and level data to obtain repeated precision and synchronism test results of the multiple redundancy proximity switches, and the test efficiency is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of electromechanical technology, and in particular relates to a redundant proximity switch testing system and a testing method. Background Art

[0002] Redundancy proximity switches are used in sensing tasks with redundancy requirements, and usually have high reliability, high performance and high durability requirements. Therefore, it is necessary to carry out corresponding tests on the redundancy proximity switch before use to ensure that the performance of the redundancy proximity switch meets the use requirements. The parameters that affect the performance of the redundancy proximity switch include the sensing distance, repeatability, synchronization and life of each redundancy channel, and synchronization and repeatability are important bases for judging the performance of the redundancy proximity switch. When the traditional test method detects the synchronization and repeatability of the redundancy proximity switch, it is generally to test, record and analyze the synchronization and repeatability of each redundancy one by one independently. The test process is cumbersome, and the test workload increases exponentially with the increase of redundancy, and the test efficiency is low; and this method tests each redundancy independently, without considering the situation that each redundancy needs to work at the same time when the redundancy proximity switch is actually used, resulting in unreliable test results of the redundancy proximity switch performance. Summary of the invention

[0003] The purpose of the present invention is to solve the problems of complicated process, low test efficiency and unreliable test results in the existing redundancy performance test method. The present invention provides a redundancy proximity switch test system and test method.

[0004] To achieve the above purpose, the technical solution provided by the present invention is:

[0005] A redundant proximity switch test system includes a linear moving platform, a target and a clamping device, a data acquisition and driving device and a host computer;

[0006] A plurality of said redundant proximity switches are mounted on said clamping device;

[0007] A plurality of the targets are mounted on the linear translation stage and are coaxial with the redundancy proximity switches respectively, and can move synchronously with the linear translation stage; the targets are used to trigger the redundancy proximity switches so that the redundancy proximity switches output different level signals;

[0008] The data acquisition and driving device is connected to the linear displacement stage and the redundancy proximity switch, and is used to collect the position data of the linear displacement stage and the level signal output by the redundancy proximity switch in real time and upload it to the host computer, and can control the movement of the linear displacement stage according to the control instruction of the host computer;

[0009] The host computer includes a human-computer interaction module, a display module, a main cycle control module, a cycle initialization module and a cycle closing module; the human-computer interaction module is used to input test instructions, and the test instructions include initialization, closing, manual test, automatic test, displacement stage forward, displacement stage backward, displacement stage moving speed, distance and acceleration; the cycle initialization module is used to assign initial values ​​to the main cycle control module according to the received initialization instructions; the cycle closing module is used to end the cycle control between the units in the main cycle control module according to the received closing instructions;

[0010] The main cycle control module includes an event structure unit, a data acquisition drive state unit, a data acquisition drive control unit, a data acquisition communication state unit, a data recording state unit and a data storage unit;

[0011] The event structure unit is used to generate corresponding events according to the measurement and control instructions input by the human-computer interaction module, and classify the events and pass them to the corresponding state units to execute the corresponding instructions;

[0012] The data acquisition drive state unit is used to convert the parameter setting, displacement, position and manual displacement measurement and control instructions classified and output by the event structure unit into an instruction format recognizable by the data acquisition and drive device, and send it to the data acquisition drive control unit. The data acquisition drive control unit outputs corresponding control instructions to the data acquisition and drive device according to the received measurement and control instructions;

[0013] The data acquisition communication status unit is used to receive the position data of the linear displacement stage and the level data output by the redundant proximity switch uploaded by the data acquisition and driving device, parse the data according to the set instruction format, and transmit the parsed data to the display module for display;

[0014] The data recording status unit is used to detect the position data of the linear translation stage and the level data output by the redundancy proximity switch uploaded by the data acquisition and driving device received by the data acquisition communication status unit, and form corresponding array data of the position data of the linear translation stage and the level data output by the redundancy proximity switch when the redundancy proximity switch is turned on and off to transmit to the display module, and continuously store the obtained array data in the data storage unit.

[0015] Furthermore, the data acquisition and driving device includes a power supply, a stepper motor driving circuit, a DSP chip, an RS232 connector, an RS232 conversion interface, a plurality of comparator circuits, and a plurality of level interfaces correspondingly connected to the comparator circuits;

[0016] The output port of a single redundancy proximity switch is divided into two paths and connected to a first comparator circuit and a second comparator circuit respectively through a level interface, the first comparator circuit is used to judge the level signal output by the redundancy proximity switch and allow the output low-level signal to pass, and the second comparator circuit is used to judge the level signal output by the redundancy proximity switch and allow the output high-level signal to pass; the DSP chip has multiple signal acquisition ports, and the first comparator circuit and the second comparator circuit are connected to the same signal acquisition port of the DSP chip;

[0017] The input end and the output end of the stepper motor driving circuit are connected to the DSP chip and the linear displacement stage respectively, and are used to control the movement of the linear displacement stage according to the PWM control signal output by the DSP chip;

[0018] The DSP chip is connected to the serial port receiving port of the host computer through the RS232 connector and the RS232 conversion interface in turn, so as to realize data transmission and control signal transmission between the DSP chip and the host computer.

[0019] Further, the host computer further comprises an indication module, wherein the indication module comprises a plurality of first indicating lights for indicating that the redundancy proximity switch is turned on, and a plurality of second indicating lights for indicating that the redundancy proximity switch is turned off;

[0020] When the redundancy proximity switch is turned on and outputs a normal high level signal or a normal low level signal, the first indicator light is on and the second indicator light is off; when the redundancy proximity switch is turned off, the first indicator light is off and the second indicator light is on; when the redundancy proximity switch is turned on and outputs an abnormal high level signal or an abnormal low level signal, the first indicator light and the second indicator light are on at the same time;

[0021] The normal high level signal refers to the level signal output by the redundancy proximity switch being higher than the power supply voltage drop setting value, and the normal low level signal refers to the level signal output by the redundancy proximity switch being lower than the power supply voltage drop setting value;

[0022] The abnormally high level signal or the abnormally low level signal refers to a level signal output by the redundancy proximity switch that is higher or lower than the power supply voltage drop but exceeds the set value.

[0023] Furthermore, the linear translation stage includes a stepper motor, a reducer and a screw assembly, the input end of the stepper motor is connected to the data acquisition and drive device, and the output end is connected to the reducer and the screw assembly in sequence; the data acquisition and drive device drives the stepper motor to rotate by controlling the number of pulses of the stepper motor, thereby driving the screw assembly to reciprocate.

[0024] Furthermore, it also includes a support base, on which positioning and mounting holes are evenly distributed in multiple rows and columns; the linear displacement stage and the clamping device are fixedly mounted on the support base;

[0025] A support plate is vertically arranged on the linear displacement platform, and the target is mounted on the support plate;

[0026] The clamping device comprises a base plate horizontally fixed on the top surface of the support seat, and a clamping plate arranged perpendicular to the base plate. The clamping plate has a plurality of clamping holes, and the redundant proximity switches are embedded in the clamping holes.

[0027] A redundancy proximity switch testing method is implemented using the above-mentioned redundancy proximity switch testing system, and the testing method comprises the following steps:

[0028] Step 1: Install the target on the linear translation stage according to the number of redundant proximity switches to be tested; connect the redundant proximity switches to the data acquisition and drive device through cables;

[0029] Step 2: Set the number of tests and the linear stage step speed, step accuracy, moving distance, and moving time interval according to the test requirements;

[0030] Step 3: Start the linear translation stage, the host computer and the data acquisition and driving device. The linear translation stage moves back and forth. The data acquisition and driving device collects the level data output by the redundant proximity switch and the position data of the linear translation stage in real time and uploads them to the host computer.

[0031] During the movement of the linear stage, the redundant proximity switch is repeatedly turned on or off according to the set time interval;

[0032] Step 4: The host computer forms the corresponding level array and displacement array according to the received level data and the position data of the linear displacement stage, and performs repeatability analysis and synchronization analysis on the level array and displacement array:

[0033] The repeatability accuracy analysis process is as follows: the host computer calculates the difference between the maximum and minimum values ​​of the linear displacement stage position data when the redundancy proximity switch is repeatedly turned on or off based on the linear displacement stage position array and the level array output by the single-channel redundancy proximity switch, and obtains the repeatability accuracy analysis result;

[0034] The synchronization analysis process is as follows: the upper computer compares the linear displacement stage position array and the level array output by the multiple redundancy proximity switches at the same time, and calculates the difference between the maximum and minimum values ​​of the linear displacement stage position data when the level data output by the multiple redundancy proximity switches change at the same time; and obtains the synchronization analysis result;

[0035] Step 5: The host computer displays the repeatability analysis results and synchronization analysis results obtained in step 4.

[0036] Furthermore, in the process of repeatability analysis, according to the linear stage movement time interval set in step 2, multiple groups of linear stage position arrays and level arrays output by a single-channel redundancy proximity switch are selected for repeatability analysis.

[0037] The advantages of the present invention are:

[0038] 1. The present invention includes a linear translation stage, a clamping device, a target, a data acquisition and driving device and a host computer. A plurality of redundancy proximity switches can be installed on the clamping device. The data acquisition and driving device can collect the position data of the linear translation stage and the level data output by the redundancy proximity switch in real time, and can control the number of pulses of the stepping motor in the linear translation stage according to the control instructions of the host computer, so as to accurately control the movement of the linear translation stage; the host computer calculates and analyzes the jump data of each data acquisition channel of the multiple data acquisition and driving devices according to the obtained position data and level data, and obtains the repetition accuracy results and synchronization results of the plurality of redundancy proximity switches, so as to have high test efficiency.

[0039] 2. The present invention realizes the rapid installation of multiple redundant proximity switches by arranging multiple clamping holes on the clamping device, and is suitable for multiple types of redundant proximity switches. When testing different types of products, it is only necessary to replace the clamping device, and the test system has strong versatility.

[0040] 3. The host computer in the present invention has a multi-module design, which can automatically realize the life test and durability test of a single or multiple redundant proximity switches, realize automatic recording and analysis, reduce the workload of operators, and improve test efficiency; the present invention can also perform manual testing according to test needs, and has strong practicality.

[0041] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0043] Figure 1 It is a composition diagram of the redundant proximity switch test system of the present invention;

[0044] Figure 2 It is a test flow chart of the redundant proximity switch test system in the present invention;

[0045] Figure 3 This is a diagram of the components of some modules in the host computer;

[0046] Figure 4 It is a composition diagram of the acquisition device in the present invention;

[0047] Explanation of the accompanying drawings: 1-linear translation stage, 2-clamping device, 3-target, 4-support seat, 5-data acquisition and driving device, 6-host computer. DETAILED DESCRIPTION

[0048] Embodiments of the present invention are described in detail below. The embodiments are exemplary and intended to be used to explain the present invention, but should not be construed as limiting the present invention.

[0049] Reference Figure 1 and Figure 2 , a redundancy proximity switch test system, including a host computer 6, a data acquisition and drive device 5, a support seat 4, a target 3, a clamping device 2 and a linear displacement stage 11. The linear displacement stage 1 and the clamping device 2 are installed on the top surface of the support seat 4, and the clamping device is installed with a redundancy proximity switch to be detected; the target 3 is installed on the linear displacement stage 1, and can slide along the axial direction of the redundancy switch to be detected on the linear displacement stage. The data acquisition and drive device has multiple data acquisition ports, which are respectively connected to the output ends of the redundancy proximity switch to be detected, and are used to collect the level signal output by the redundancy proximity switch to be detected when the linear displacement stage moves and transmit it to the host computer 6. The data acquisition and drive device 5 is connected to the linear displacement stage, and is used to drive the linear displacement stage to move according to the control instructions of the host computer and obtain the position of the linear displacement stage in real time. The target is used to trigger the redundancy proximity switch to output different level signals.

[0050] Specifically, the support seat is provided with multiple rows and columns of positioning and mounting holes; the linear displacement stage and the clamping device are fixedly mounted on the support seat. A support plate is vertically arranged on the linear displacement stage, and the target is mounted on the support plate. The clamping device includes a base plate horizontally fixed to the top surface of the support seat, and a clamping plate vertically arranged on the base plate, the clamping plate has multiple clamping holes, and the redundant proximity switch is embedded in the clamping hole.

[0051] The linear displacement stage 1 is composed of a stepper motor, a reducer and a lead screw. The input end of the stepper motor is connected to the data acquisition and drive device, and the output end is connected to the reducer and the lead screw assembly in turn. The data acquisition and drive device drives the stepper motor to rotate by controlling the pulse number of the stepper motor, thereby driving the lead screw assembly to move. The data acquisition and drive device achieves a stepping accuracy of 0.005 mm in linear displacement by controlling the pulse number of the stepper motor of the linear displacement stage.

[0052] The host computer 6 includes a human-computer interaction module, a display module, a main cycle control module, a cycle initialization module and a cycle closing module; the human-computer interaction module is used to input test instructions, and the test instructions include initialization, closing, manual test, automatic test, displacement stage forward, displacement stage backward, displacement stage moving speed, distance and acceleration. The cycle initialization module is used to assign initial values ​​to the main cycle control module according to the received initialization instructions. The cycle closing module is used to close each task and end the cycle between each unit in the main cycle control module according to the received closing instructions.

[0053] Reference Figure 3 The main cycle control module includes an event structure unit, a data acquisition drive state unit, a data acquisition drive control unit, a data acquisition communication state unit, a data recording state unit and a data storage unit. The event structure unit is used to generate corresponding events according to the measurement and control instructions transmitted by the human-computer interaction module, and classify the events and pass them to the corresponding state unit to execute the corresponding control instructions. The control instructions include opening the serial port, moving the stage forward, moving the stage backward, parameter application, closing the software and clearing the position.

[0054] The data acquisition drive state unit is used to convert the parameter setting, displacement position, manual displacement and other measurement and control instructions classified and output by the event structure unit into the motor drive instruction format of the data acquisition and drive device, and send it to the data acquisition drive control unit through the serial port. The data acquisition drive control unit outputs corresponding control instructions to the data acquisition and drive device 5 according to the received measurement and control instructions. The data acquisition drive state unit is also used to configure and initialize the data acquisition drive control unit.

[0055] The data acquisition communication status unit is used to configure and initialize the serial port of the data acquisition and drive device, and is also used to receive the position data of the linear translation stage uploaded by the data acquisition and drive device and the level data output by the redundancy proximity switch, and parse the data according to the required instruction format, and transmit the parsed data to the display module for display.

[0056] The data recording status unit is used to detect the data uploaded by the data acquisition and driving device received by the data acquisition communication status unit, and to form corresponding array data of the position data of the linear translation stage when the redundancy proximity switch is turned on and off and the level data output by the redundancy proximity switch to transmit to the display module, and continuously store the obtained array data in the data storage unit.

[0057] The host computer has manual stepping function, recording function and automatic testing function. The stage forward and stage backward instructions received by the event structure module can realize the manual stepping function. The parameter application instruction can set the displacement speed, distance, acceleration and other parameters for manual stepping and automatic displacement at the same time. The manual stepping function can be completed by sending the instruction to the data acquisition drive state unit. The automatic displacement function is based on the manual stepping function. After turning on the automatic displacement enable, if the host computer does not receive other instructions, a manual stepping instruction is issued every time it times out, and the time interval of the timeout is adjustable. After receiving the instruction, the data acquisition drive state unit first determines whether the current linear displacement stage is moving (only the static state can execute new movement instructions), and then determines the direction of the last movement to ensure that the linear displacement stage will not move in only one direction. Finally, the data acquisition drive state unit writes a stage forward or stage backward instruction to itself to complete the automatic displacement. Regardless of the instruction, the main loop control module continuously inquires the linear stage position data and the level data output by the redundant proximity switch received by the data acquisition communication status unit at a speed of 20 frames per second during the movement of the linear stage, and packages them for display or record to realize the recording function. The recording function is used in combination with the automatic displacement function to record the level data output by the redundant proximity switch and the stage position data uploaded by the data acquisition and drive device at each displacement of the linear stage, and package them into the record table to realize automatic testing.

[0058] Reference Figure 4The data acquisition and driving device 5 includes a power supply, a stepper motor driving circuit, a DSP chip, an RS232 connector, an RS232 conversion interface, a plurality of comparator circuits, and a plurality of level interfaces correspondingly connected to the comparator circuits. The power supply is used to charge the data acquisition and driving device 5. The DSP chip has a plurality of signal acquisition ports. The output end of a single redundancy proximity switch is externally connected to two level interfaces, and the two level interfaces are respectively connected to two comparator circuits, which are a first comparator circuit and a second comparator circuit. The first comparator circuit is used to judge the level signal output by the redundancy proximity switch and allow the output low-level signal to pass, and the second comparator circuit is used to judge the level signal output by the redundancy proximity switch and allow the output high-level signal to pass. When the redundancy proximity switch outputs a high level (higher than the power supply voltage drop by 1.8V), the comparator output port HD outputs 01; when the redundancy proximity switch outputs a low level (lower than the power supply voltage drop by 1.8V), the comparator output port HD outputs 10; when the redundancy proximity switch output voltage is lower than the power supply voltage drop or higher than the power supply voltage drop but exceeds 1.8V, the level value cannot be recognized by the DSP chip, and is a fuzzy intermediate state, which is not allowed to appear in practical applications, and is an abnormally high level or abnormally low level. At this time, the comparator circuit output port HD outputs 11. The output port HD of each comparator is connected to the same signal acquisition port ADC of the DSP chip. The DSP chip is connected to the serial port receiving port of the host computer through the RS232 connector and the RS232 conversion interface in turn, so as to realize data transmission and control signal transmission between the DSP chip and the host computer.

[0059] One end of the stepper motor drive circuit is connected to the DSP chip, and the other end is connected to the stepper motor of the linear displacement stage. The stepper motor drive circuit is controlled by the pwm wave output by the DSP chip, and is used to control the movement of the stepper motor in the linear displacement stage. One end of the RS232 connector is connected to the DSP chip through a serial port, and the other end is connected to the serial port receiving port of the host computer through an RS232 conversion port, so as to convert the signal output by the DSP chip into a serial port form and transmit it to the host computer, and receive the control signal sent by the host computer.

[0060] When the data acquisition and drive device receives the driving signal from the host computer, the DSP chip of the data acquisition and drive device parses the driving signal into the number of pulses, and the DSP chip outputs PWM pulses and sends them to the stepper motor drive circuit to realize the driving of the linear translation stage; according to the number of output pulses, the DSP chip generates the translation stage displacement distance information in real time and stores it in the translation stage position array.

[0061] Optimized, the host computer also includes a plurality of first indicator lights for indicating that the redundancy proximity switch is turned on and a plurality of second indicator lights for indicating that the redundancy proximity switch is turned off. When the redundancy proximity switch is turned on and the output is a normal high level signal or a normal low level signal, the first indicator light is on and is green, and the second indicator light is off; when the redundancy proximity switch is turned off, the first indicator light is off, and the second indicator light is on and is red; when the redundancy proximity switch is turned on and outputs an abnormal high level signal or an abnormal low level signal, the comparator circuit output port HD outputs 11, and the first indicator light and the second indicator light are lit at the same time. Among them, the normal high level signal refers to the level signal output by the redundancy proximity switch being higher than the power supply voltage drop setting value, and the normal low level signal refers to the level signal output by the redundancy proximity switch being lower than the power supply voltage drop setting value; the abnormal high level signal or abnormal low level signal refers to the level signal output by the redundancy proximity switch being higher or lower than the power supply voltage drop but exceeding the setting value. As described above, the setting value in this embodiment is 1.8V.

[0062] The present invention uses a plurality of designed comparator circuits to detect the output function of the redundancy proximity switch while taking into account the inspection of the voltage drop performance, and the detection result is encoded into a two-bit binary code. The DSP chip of the data acquisition and driving device reads the data register of the ADC peripheral of its signal acquisition port, shifts the register result right by 4 bits, converts the 12-bit data into 8 bits, and finally writes it into the acquisition array. At the same time, the position data of the displacement stage and the level data of the redundancy switch output are combined into an array, and uploaded to the data acquisition communication status unit of the host computer according to the host computer instruction.

[0063] The process of testing using the redundant proximity switch testing system of the present invention is as follows:

[0064] Step 1: Install a plurality of redundancy proximity switches to be tested on the clamping device 4, and connect them to the data acquisition ports of the data acquisition and driving device through cables respectively.

[0065] According to the number of redundant proximity switches to be measured, the target is installed on the linear translation stage.

[0066] Step 2: Set the number of tests, the stepping speed, stepping accuracy, moving distance and moving time interval of the linear translation stage according to the test requirements;

[0067] Step 3: Start the linear displacement stage, the host computer and the data acquisition and driving device to make the linear displacement stage reciprocate. The data acquisition and driving device collects the level data output by the redundant proximity switch and the position data of the linear displacement stage in real time, and uploads them to the host computer accordingly.

[0068] During the movement of the linear translation stage, the measured redundancy proximity switch is repeatedly turned on or off according to the set time interval.

[0069] Step 4: The host computer forms a corresponding level array and displacement array according to the received level data and the position data of the linear displacement stage, and performs repetitive accuracy analysis and synchronization analysis on the level array and the displacement array:

[0070] Repeatability analysis process: The host computer selects multiple sets of data based on the linear stage position array and the level array output by the single-channel redundancy proximity switch, calculates the difference between the maximum and minimum values ​​of the linear stage position data when the redundancy proximity switch is repeatedly turned on or off, and obtains the repeatability analysis result. In the embodiment of the present invention, the analysis and calculation are performed once for every ten sets of data.

[0071] Synchronicity analysis process: The host computer compares the linear stage position array and the level array output by the multiple redundancy proximity switches at the same time, and calculates the difference between the maximum and minimum values ​​of the linear stage position data when the level data output by the multiple redundancy proximity switches change at the same time, and obtains the synchronization analysis result;

[0072] Step 5: The host computer displays the repeatability analysis results and synchronization analysis results obtained in step 4.

[0073] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should be included in the protection scope of the present invention.

Claims

1. A redundant proximity switch test system, characterized in that: It includes a linear moving stage, a target and a clamping device, as well as a data acquisition and driving device and a host computer; A plurality of said redundant proximity switches are mounted on said clamping device; A plurality of the targets are mounted on the linear translation stage and are coaxial with the redundancy proximity switches respectively, and can move synchronously with the linear translation stage; the targets are used to trigger the redundancy proximity switches so that the redundancy proximity switches output different level signals; The data acquisition and driving device is connected to the linear displacement stage and the redundancy proximity switch, and is used to collect the position data of the linear displacement stage and the level signal output by the redundancy proximity switch in real time and upload it to the host computer, and can control the movement of the linear displacement stage according to the control instruction of the host computer; The host computer includes a human-computer interaction module, a display module, a main cycle control module, a cycle initialization module and a cycle closing module; the human-computer interaction module is used to input test instructions, and the test instructions include initialization, closing, manual test, automatic test, displacement stage forward, displacement stage backward, displacement stage moving speed, distance and acceleration; The loop initialization module is used to assign initial values ​​to the main loop control module according to the received initialization instruction; the loop closing module is used to end the loop control between the units in the main loop control module according to the received closing instruction; The main cycle control module includes an event structure unit, a data acquisition drive state unit, a data acquisition drive control unit, a data acquisition communication state unit, a data recording state unit and a data storage unit; The event structure unit is used to generate corresponding events according to the measurement and control instructions input by the human-computer interaction module, and classify the events and pass them to the corresponding state units to execute the corresponding instructions; The data acquisition drive state unit is used to convert the parameter setting, displacement, position and manual displacement measurement and control instructions classified and output by the event structure unit into an instruction format recognizable by the data acquisition and drive device, and send it to the data acquisition drive control unit. The data acquisition drive control unit outputs corresponding control instructions to the data acquisition and drive device according to the received measurement and control instructions; The data acquisition communication status unit is used to receive the position data of the linear displacement stage and the level data output by the redundant proximity switch uploaded by the data acquisition and driving device, parse the data according to the set instruction format, and transmit the parsed data to the display module for display; The data recording status unit is used to detect the position data of the linear translation stage and the level data output by the redundancy proximity switch uploaded by the data acquisition and driving device received by the data acquisition communication status unit, and form corresponding array data of the position data of the linear translation stage and the level data output by the redundancy proximity switch when the redundancy proximity switch is turned on and off to transmit to the display module, and continuously store the obtained array data in the data storage unit.

2. A redundant proximity switch testing system according to claim 1, characterized in that: The data acquisition and driving device includes a power supply, a stepper motor driving circuit, a DSP chip, an RS232 connector, an RS232 conversion interface, a plurality of comparator circuits, and a plurality of level interfaces correspondingly connected to the comparator circuits; The output port of a single redundancy proximity switch is divided into two paths and connected to a first comparator circuit and a second comparator circuit respectively through a level interface, the first comparator circuit is used to judge the level signal output by the redundancy proximity switch and allow the output low-level signal to pass, and the second comparator circuit is used to judge the level signal output by the redundancy proximity switch and allow the output high-level signal to pass; the DSP chip has multiple signal acquisition ports, and the first comparator circuit and the second comparator circuit are connected to the same signal acquisition port of the DSP chip; The input end and the output end of the stepper motor driving circuit are respectively connected to the DSP chip and the linear displacement stage, and are used to control the movement of the linear displacement stage according to the PWM control signal output by the DSP chip; The DSP chip is connected to the serial receiving port of the host computer through the RS232 connector and the RS232 conversion interface in turn, so as to realize data transmission and control signal transmission between the DSP chip and the host computer.

3. A redundant proximity switch testing system according to claim 2, characterized in that: The host computer further comprises an indication module, wherein the indication module comprises a plurality of first indicating lights for indicating that the redundancy proximity switch is turned on, and a plurality of second indicating lights for indicating that the redundancy proximity switch is turned off; When the redundancy proximity switch is turned on and outputs a normal high level signal or a normal low level signal, the first indicator light is on and the second indicator light is off; when the redundancy proximity switch is turned off, the first indicator light is off and the second indicator light is on; when the redundancy proximity switch is turned on and outputs an abnormal high level signal or an abnormal low level signal, the first indicator light and the second indicator light are on at the same time; The normal high level signal refers to the level signal output by the redundancy proximity switch being higher than the power supply voltage drop setting value, and the normal low level signal refers to the level signal output by the redundancy proximity switch being lower than the power supply voltage drop setting value; The abnormally high level signal or the abnormally low level signal refers to a level signal output by the redundancy proximity switch that is higher or lower than the power supply voltage drop but exceeds the set value.

4. The redundant proximity switch testing system according to claim 1, characterized in that: The linear translation stage includes a stepper motor, a reducer and a lead screw assembly. The input end of the stepper motor is connected to the data acquisition and drive device, and the output end is connected to the reducer and the lead screw assembly in sequence. The data acquisition and drive device drives the stepper motor to rotate by controlling the number of pulses of the stepper motor, thereby driving the lead screw assembly to reciprocate.

5. The redundant proximity switch testing system according to claim 1, characterized in that: It also includes a support base, on which a plurality of rows and columns of positioning and mounting holes are evenly distributed; the linear displacement stage and the clamping device are fixedly mounted on the support base; A support plate is vertically arranged on the linear displacement platform, and the target is mounted on the support plate; The clamping device comprises a base plate horizontally fixed on the top surface of the support seat, and a clamping plate arranged perpendicular to the base plate. The clamping plate has a plurality of clamping holes, and the redundant proximity switches are embedded in the clamping holes.

6. A method for testing a redundancy proximity switch, characterized in that: The redundant proximity switch test system according to any one of claims 1 to 5 is used to implement the test method, and the test method comprises the following steps: Step 1: Install the target on the linear translation stage according to the number of redundant proximity switches to be tested; connect the redundant proximity switches to the data acquisition and drive device through cables; Step 2: Set the number of tests and the linear stage step speed, step accuracy, moving distance, and moving time interval according to the test requirements; Step 3: Start the linear translation stage, the host computer and the data acquisition and driving device. The linear translation stage moves back and forth. The data acquisition and driving device collects the level data output by the redundant proximity switch and the position data of the linear translation stage in real time and uploads them to the host computer. During the movement of the linear stage, the redundant proximity switch is repeatedly turned on or off according to the set time interval; Step 4: The host computer forms the corresponding level array and displacement array according to the received level data and the position data of the linear displacement stage, and performs repeatability analysis and synchronization analysis on the level array and displacement array: The repeatability accuracy analysis process is as follows: the host computer calculates the difference between the maximum and minimum values ​​of the linear displacement stage position data when the redundancy proximity switch is repeatedly turned on or off based on the linear displacement stage position array and the level array output by the single-channel redundancy proximity switch, and obtains the repeatability accuracy analysis result; The synchronization analysis process is as follows: the upper computer compares the linear displacement stage position array and the level array output by the multiple redundancy proximity switches at the same time, and calculates the difference between the maximum and minimum values ​​of the linear displacement stage position data when the level data output by the multiple redundancy proximity switches change at the same time; and obtains the synchronization analysis result; Step 5: The host computer displays the repeatability analysis results and synchronization analysis results obtained in step 4.

7. The testing method according to claim 6, characterized in that: In step 4, during the repeatability analysis, according to the linear stage movement time interval set in step 2, multiple groups of linear stage position arrays and single-channel redundancy proximity switch output level arrays are selected for repeatability analysis.

Citation Information

Patent Citations

  • Proximity switch sensor tester

    CN102680015A

  • Automatic detection system of proximity switch

    CN109298324A

  • Synchronous output method for multiple redundancy program control proximity switch

    CN113726324A

  • Proximity switch surge test device and method

    CN116500429A

  • Capacitance proximity switch tester

    CN203519789U