A Servo Automatic Testing System and Method Based on Programmable Power Supply

The servo automatic testing system based on programmable power supply has realized the automated control and fault detection of servo product testing, solved the problems of high demand for human resources and low degree of automation, and improved the safety and accuracy of testing.

CN119439953BActive Publication Date: 2025-11-14贵州航天控制技术有限公司
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411540602.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2025-11-14
Estimated Expiration
2044-10-31

AI Technical Summary

Technical Problem

Existing servo product testing suffers from problems such as high demand for human resources, low automation, slow fault handling, and low safety and reliability.

Method used

A servo-based automatic testing system based on a programmable power supply is adopted, including a host computer module, an automatic power-on and test information setting module, an automatic power-on and power-off control module, an automatic command sending and feedback acquisition and processing module, and an automatic fault judgment and processing module, to achieve automated control and fault detection.

Benefits of technology

It improves the automation level of servo product testing, ensures test safety and reliability, reduces manual intervention, and improves test accuracy and speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119439953B_ABST
    Figure CN119439953B_ABST
Patent Text Reader

Abstract

This invention relates to an automatic servo testing system and method based on a programmable power supply. The testing system includes a host computer module providing a testing software interface; an automatic power supply start-up and test information setting module for reading and storing power supply and test setting information; an automatic power supply on / off control module for automatically controlling the power supply and control power supply; an automatic command sending and feedback acquisition and processing module for acquiring test command types and command cycles, sending test commands, and judging and extracting received feedback data; an automatic fault judgment and processing module for periodically querying the status of the control power supply and power supply, querying and judging feedback data in real time, and receiving and judging position feedback in real time; and an automatic process monitoring and processing module for automatic real-time monitoring. This invention solves the problems of high manpower requirements, low automation, slow fault handling, and low safety and reliability in existing servo product testing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of testing technology, and more specifically, to a servo automatic testing system and method based on a programmable power supply. Background Technology

[0002] Servo product testing technology emerged alongside the advent of servo products, and testing methods and items have continuously evolved and been updated. As a product combining motion and control, servo products not only need to achieve the required functions but also meet the corresponding performance indicators. Whether these functions and performance requirements are met needs to be measured through testing. Therefore, product testing is particularly important for servo products, especially military servo products.

[0003] Servo products, as control and drive components, are needed in almost every industrial sector. In recent years, the demand for servo products in both military and civilian applications in China has increased rapidly. However, testing, a necessary part of servo product development, is increasingly difficult to meet practical needs due to the inability to simultaneously improve human resources and costs, relying on traditional, entirely manual testing methods. Meanwhile, while significant development and innovation have been undertaken in servo product testing in China, these efforts have primarily focused on hardware and programming tools, with slow progress in improving the automation level of servo product testing through software improvements.

[0004] As one of the core components of servo product testing, testing software currently primarily relies on human-computer interaction interfaces. These interfaces only include functions such as command generation, data acquisition, dataset information display, and file processing. However, tasks such as setting the power supply for servo product control and power supply, power-on / power-off operations, command sending, power monitoring, fault diagnosis, and test time control are mainly performed manually. This results in drawbacks such as high demand for human resources in product testing, low automation, slow fault handling, and low safety and reliability. There is an urgent need to improve the automation level and safety and reliability of servo product testing. Summary of the Invention

[0005] To address the existing problems of high manpower requirements, low automation, slow fault handling, and low safety and reliability in servo product testing, this invention provides a servo automatic testing system and method based on a programmable power supply.

[0006] In a first aspect, the present invention provides a servo automatic testing system based on a programmable power supply, comprising:

[0007] The host computer module is an electronic computer configured with test software, which provides the test software interface for the test system;

[0008] The power supply automatic start and test information setting module is used to read and store power supply setting information and test setting information, establish communication with the power supply, start power supply program control, and then set the power supply and control power supply.

[0009] The power supply on / off automatic control module is used to automatically control the power supply and control the power supply on and off.

[0010] The automatic processing module for sending and receiving feedback is used to obtain the test command type and command cycle, send test commands according to the command cycle, and continuously query the received feedback data, and judge and extract the received feedback data.

[0011] The automatic fault diagnosis and handling module is used to periodically and automatically query the control power supply status, periodically and automatically query the power supply status, query and judge the feedback data in real time, and receive and judge the position feedback in real time. When at least one fault occurs, the test process is automatically terminated and the power is turned off.

[0012] The automatic process monitoring and processing module is used for automatic real-time monitoring.

[0013] In some embodiments, the power supply setting information includes: power supply voltage, power supply maximum current limit, control power supply voltage, and control power supply maximum current limit;

[0014] The test settings include: single cycle power-on time, single cycle power-off time, total number of cycles, power supply serial port, and control power supply serial port.

[0015] In some embodiments, in the automatic power-on / off control module, at the start of the test, the control power supply is turned on first, and the power supply is turned on only after the control power supply is successfully turned on.

[0016] In some embodiments, the instruction sending and feedback acquisition automatic processing module receives feedback data by repeatedly querying it, judges and extracts the received feedback data, and displays it on the test interface in real time in a curve feedback mode and a text box feedback mode; a time limit is set for querying and receiving feedback data for each frame, and the value of the time limit is greater than the maximum time of the two feedback modes.

[0017] In some embodiments, the periodic automatic query of the control power supply status is as follows: when the control voltage / control current exceeds the required range, it is determined to be a control voltage / control current fault, the test process is automatically terminated and the power supply is turned off;

[0018] The periodic automatic query of power supply status is as follows: when the power voltage or current exceeds the requirements, it is judged as a power voltage / power current fault, the test process is automatically terminated and the power supply is turned off.

[0019] The real-time query and judgment of feedback data is as follows: if feedback data of a specified length is not received within a specified time, it is judged as a communication failure, the test process is automatically terminated and the power is turned off;

[0020] The real-time reception and judgment of position feedback is as follows: when the received position feedback exceeds the actual limit position of the servo product, it is judged as a feedback fault, the test process is automatically terminated and the power is turned off.

[0021] On the other hand, the present invention also provides a testing method for a servo automatic testing system based on a programmable power supply, the testing method comprising the following steps:

[0022] Step 1: Enter the power settings and test settings in the test software interface, and click Start Test;

[0023] Step 2: The program for the automatic power-on and test information setting module is initialized and run.

[0024] Step 3: Execute the power-on / off automatic control module's power-on procedure flow, which is initiated and executed by the instruction sending and feedback acquisition automatic processing module's procedure flow; and simultaneously execute Step 4.

[0025] Step 4: The automatic monitoring and processing module starts execution, starts the working time timer, and continuously monitors the current cycle power supply time / power outage time, total test process time, current cycle number, and test process status in real time.

[0026] Step 5: Determine if the current power supply cycle has ended; if yes, proceed to the next step; or, if no, return to step 4.

[0027] Step 6: Execute the power-off automatic control module's power-on / off automatic control procedure, and the program flow of the instruction sending and feedback acquisition automatic processing module will stop running;

[0028] Step 7: Determine if the entire testing process has ended or click "Stop Testing"; if so, automatically end the testing process of the testing software.

[0029] In some embodiments, step 2, the initialization process includes: reading and storing power setting information, establishing communication with the control power supply, starting control power supply program control, establishing communication with the power supply, starting power supply program control, and setting the control power supply voltage, setting the control power supply current limit, setting the power supply voltage, and setting the power supply current limit according to the power setting information.

[0030] In some embodiments, the power-on procedure of the automatic power-on / off control module in step 3 is as follows:

[0031] S1: Read the test identifier;

[0032] S2: Do you want to start the test? If yes, proceed to the next step; or, if no, proceed to the previous step.

[0033] S3: Controls power supply;

[0034] S4: Determine if the control power supply is on; if yes, proceed to the next step; or, if no, proceed to the previous step.

[0035] S5: Controls the power supply to turn on;

[0036] S6: Determine if the power supply is powered on; if yes, end; otherwise, proceed to the previous step.

[0037] In some embodiments, the program flow of the instruction sending and feedback acquisition automatic processing module in step 3 is as follows:

[0038] S11: Get instruction type and cycle;

[0039] S12: Test instructions are automatically generated;

[0040] S13: Test commands begin to be sent automatically;

[0041] S14: Initiate automatic reception of feedback data;

[0042] S15: Automatic judgment and processing of feedback data;

[0043] S16: Feedback and test information display;

[0044] S17: End.

[0045] In some embodiments, step 4 is followed by: initiating execution by the program flow of the automatic fault judgment and processing module;

[0046] The program flow of the automatic fault diagnosis and handling module is as follows:

[0047] If a control link fault is detected, and the control voltage / current exceeds the limit, the test process will be automatically terminated and the power supply will be turned off; or,

[0048] To determine if a power link fault exists, if the power voltage / current exceeds limits, the test process will automatically terminate and the power supply will be shut down; or,

[0049] If a communication link failure is detected, the test process will automatically terminate and the power will be turned off if a communication timeout occurs; or,

[0050] If a location feedback fault is detected, and the feedback is out of range, the test process will be automatically terminated and the power will be turned off.

[0051] In some embodiments, the power-off procedure of the automatic power-on / off control module in step 6 is as follows:

[0052] S31: Read the test identifier;

[0053] S32: Should we stop the test? If yes, proceed to the next step; or, if no, proceed to the previous step.

[0054] S33: Control power supply to disconnect;

[0055] S34: Determine if the power supply is off; if yes, proceed to the next step; or, if no, proceed to the previous step.

[0056] S35: Control power supply to disconnect;

[0057] S36: Determine if the control power supply is off; if yes, end; otherwise, execute the previous step.

[0058] In some embodiments, step 7 further includes: if not, then proceed to step 8;

[0059] Step 8 includes: determining whether the current cycle power outage time has ended; if yes, proceed to the next cycle, i.e., execute step 3 again; or, if no, return to execute step 4.

[0060] To address the existing problems of high manpower requirements, low automation, slow fault handling, and low safety and reliability in servo product testing, this invention has the following advantages:

[0061] Through the technical solution of the present invention, the testing system has software logic for automatic power on / off control, automatic command sending and feedback acquisition and processing, automatic monitoring of the testing process, and automatic fault detection and handling.

[0062] Through the technical solution of this invention, the testing system automatically judges possible fault states during servo product testing through software, and quickly and automatically performs processing such as power-off and information storage when a fault occurs, thereby improving the safety of products and personnel and the comprehensiveness of test information during servo product testing.

[0063] Through the technical solution of this invention, the testing system automatically controls the power on / off, testing time, and testing cycle during the test via software, which improves the accuracy and speed of servo product testing and avoids the adverse effects of insufficient time accuracy and untimely response that may be caused by manual intervention. Attached Figure Description

[0064] Figure 1 A schematic diagram of a servo automatic testing system based on a programmable power supply is shown.

[0065] Figure 2A schematic diagram illustrating the power-on and power supply setup process is shown;

[0066] Figure 3 A schematic diagram of the power-on procedure flow of the automatic power-on / off control module is shown;

[0067] Figure 4 A schematic diagram of the power-off procedure flow of the automatic power-on / off control module is shown;

[0068] Figure 5 A schematic diagram of the program flow of the automatic processing module for command sending and feedback acquisition is shown;

[0069] Figure 6 A schematic diagram of the program flow of the automatic fault diagnosis and handling module is shown;

[0070] Figure 7 A schematic diagram of the automated monitoring and processing flow of the test process is shown;

[0071] Figure 8 A flowchart illustrating a test method for a servo automatic test system based on a programmable power supply is shown. Detailed Implementation

[0072] The present disclosure will now be discussed with reference to several exemplary embodiments. It should be understood that these embodiments are discussed only to enable those skilled in the art to better understand and thus implement the present disclosure, and are not intended to imply any limitation on the scope of the disclosure.

[0073] As used herein, the term "comprising" and its variations are to be interpreted as open-ended terms meaning "including but not limited to". The term "based on" is to be interpreted as "at least partially based on". The terms "one embodiment" and "an embodiment" are to be interpreted as "at least one embodiment". The term "another embodiment" is to be interpreted as "at least one other embodiment". The terms "upper", "lower", "left", "right", "front", "rear", "top", "bottom", "inner", "outer", "vertical", "horizontal", "lateral", "longitudinal", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings. These terms are primarily for the purpose of better describing this application and its embodiments and are not intended to limit the indicated devices, elements, or components to having a specific orientation or being constructed and operated in a specific orientation. Furthermore, some of the above terms may be used to indicate other meanings besides orientations or positional relationships; for example, the term "upper" may in some cases indicate a dependency or connection relationship. Those skilled in the art can understand the specific meaning of these terms in this application according to the specific circumstances. In addition, the terms "installed", "set up", "equipped with", "connected", and "linked" should be interpreted broadly. For example, it can be a fixed connection, a detachable connection, or an integral structure; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or an internal connection between two devices, elements, or components. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances. Furthermore, the terms "first," "second," etc., are mainly used to distinguish different devices, elements, or components (the specific types and structures may be the same or different), and are not used to indicate or imply the relative importance or quantity of the indicated devices, elements, or components. Unless otherwise stated, "a plurality of" means two or more.

[0074] This embodiment discloses a servo automatic testing system based on a programmable power supply, such as... Figure 1 As shown, it includes:

[0075] The host computer module is an electronic computer configured with test software, which provides the test software interface for the test system;

[0076] The power supply automatic start and test information setting module is used to read and store power supply setting information and test setting information, establish communication with the power supply, start power supply program control, and then set the power supply and control power supply.

[0077] The power supply on / off automatic control module is used to automatically control the power supply and control the power supply on and off.

[0078] The automatic processing module for sending and receiving feedback is used to obtain the test command type and command cycle, send test commands according to the command cycle, and continuously query the received feedback data, and judge and extract the received feedback data.

[0079] The automatic fault diagnosis and handling module is used to periodically and automatically query the control power supply status, periodically and automatically query the power supply status, query and judge the feedback data in real time, and receive and judge the position feedback in real time. When at least one fault occurs, the test process is automatically terminated and the power is turned off.

[0080] The automatic process monitoring and processing module is used for automatic real-time monitoring.

[0081] Furthermore, the power supply setting information includes: power supply voltage, power supply maximum current limit, control power supply voltage, and control power supply maximum current limit;

[0082] The test settings include: single cycle power-on time, single cycle power-off time, total number of cycles, power supply serial port, and control power supply serial port.

[0083] Furthermore, in the power on / off automatic control module, at the start of the test, the control power supply is turned on first, and the power supply is turned on only after the control power supply is successfully turned on.

[0084] Furthermore, in the instruction sending and feedback acquisition automatic processing module, feedback data is received through cyclic querying, the received feedback data is judged and extracted, and displayed on the test interface in real time in the feedback mode of curves and the feedback mode of text boxes; a time limit is set for querying and receiving feedback data for each frame, and the value of the time limit is greater than the maximum time of the two feedback modes.

[0085] Furthermore, the periodic automatic query control power status is as follows: when the control voltage / control current exceeds the required range, it is determined to be a control voltage / control current fault, the test process is automatically terminated and the power is turned off;

[0086] The periodic automatic query of power supply status is as follows: when the power voltage or current exceeds the requirements, it is judged as a control voltage / control current fault, the test process is automatically terminated and the power supply is turned off;

[0087] The real-time query and judgment of feedback data is as follows: if feedback data of a specified length is not received within a specified time, it is judged as a communication failure, the test process is automatically terminated and the power is turned off;

[0088] The real-time reception and judgment of position feedback is as follows: when the received position feedback exceeds the actual limit position of the servo product, it is judged as a feedback fault, the test process is automatically terminated and the power is turned off.

[0089] In this embodiment, a servo automatic testing system based on a programmable power supply is provided. Based on the SCPI protocol and using the CVI general-purpose test system development tool, it is implemented through the following innovative software module designs:

[0090] The host computer module is an electronic computer equipped with testing software. It provides the testing software interface for the testing system, allowing the application code of the testing software to be edited into the electronic computer. This enables the computer's display interface to provide the testing software interface, facilitating the input of power and test settings information from the testing software interface into the testing software. After the operator enters the power and test settings information into the testing system, clicking the "Start Test" button on the testing software interface will automatically perform testing on the servo product. The power settings information includes power supply voltage, maximum power supply current limit, control power supply voltage, and maximum control power supply current limit. The test settings information includes single-cycle power-on time, single-cycle power-off time, total number of cycles, power supply serial port, and control power supply serial port.

[0091] The power supply automatic startup and test information setting module is used to initialize the test software's runtime program. During initialization, the test software reads and stores power supply and test information settings. Once the test process starts, it first establishes communication with the power supply and starts the power supply according to this information, then sets the power supply and control power supply. The power supply startup and power setting process is as follows: Figure 2 As shown.

[0092] Specifically, the power supply startup and power setting process is as follows: First, establish communication with the power supply and start the power supply program control. Then, configure the power supply and control power supply. During the configuration of the power supply and control power supply, the program of the power automatic startup and test information setting module sets the control power supply voltage, control power supply current limit, power supply voltage, and power supply current limit, etc., based on the power setting information entered by the operator in the host computer module.

[0093] In this application, establishing communication with the power supply and initiating power supply program control includes: establishing communication with the control power supply; the running program of the power supply automatic start and test information setting module will detect whether the communication has been established successfully. If the running program determines "no", it will re-execute the process of establishing communication with the control power supply; if it determines "yes", the running program will proceed to the next step, namely, initiating the power supply program control of the power supply automatic power-on / off control module. At this time, the initiation only activates the control power supply program control function, not directly powering on, so as to automatically control the power supply's power-on / off after the test starts, and then execute the process of establishing communication with the power supply. After the communication with the power supply is established, the running program of the power supply automatic start and test information setting module will detect whether the communication has been established successfully. If the running program determines "no", it will re-execute the process of establishing communication with the power supply; if it determines "yes", the running program will proceed to the next step, namely, initiating the power supply program control of the power supply automatic power-on / off control module. At this time, the initiation only activates the power supply program control function, not directly powering on, so as to automatically control the power supply's power-on / off after the test starts. In addition, the control power supply control channel and the power supply control channel are each used as independent control channels. Some servo products only have one power supply, which can also be used as two independent power supply control channels.

[0094] The automatic power-on / off control module is used to automatically control the power supply and control power supply's power-on and power-off. After the test process is initiated, the test software replaces traditional manual control, automatically controlling the power supply and control power supply's power-on and power-off. At the start of the test, the test software will first turn on the control power supply; only after the control power supply is successfully turned on will the power power supply be turned on, ensuring the product's electrical safety. The power-off process is the reverse.

[0095] In this application, the operating program of the automatic power-on / off control module executes the power-on time, power-off time, and number of cycles according to the power single-cycle power-on time, single-cycle power-off time, and total number of cycles read during the initialization process, until all processes are completed. The power-on program flow of the automatic power-on / off control module is as follows: Figure 3 As shown, the power-off procedure flow of the automatic power-on / off control module is as follows: Figure 4 As shown.

[0096] The power-on procedure of the automatic power-on / off control module is as follows:

[0097] S1: Read the test identifier;

[0098] S2: Do you want to start the test? If yes, proceed to the next step; or, if no, proceed to the previous step.

[0099] S3: Controls power supply;

[0100] S4: Determine if the control power supply is on; if yes, proceed to the next step; or, if no, proceed to the previous step.

[0101] S5: Controls the power supply to turn on;

[0102] S6: Determine if the power supply is powered on; if yes, end; otherwise, proceed to the previous step.

[0103] The power-off procedure of the automatic power-on / off control module is as follows:

[0104] S31: Read the test identifier;

[0105] S32: Should we stop the test? If yes, proceed to the next step; or, if no, proceed to the previous step.

[0106] S33: Control power supply to disconnect;

[0107] S34: Determine if the power supply is off; if yes, proceed to the next step; or, if no, proceed to the previous step.

[0108] S35: Control power supply to disconnect;

[0109] S36: Determine if the control power supply is off; if yes, end; otherwise, execute the previous step.

[0110] The automatic processing module for command sending and feedback acquisition is used to obtain the test command type and command cycle, send test commands according to the command cycle, and continuously query the received feedback data, and judge and extract the received feedback data.

[0111] Once the testing software completes the testing process and the control power supply and power supply are both set and started normally, it will automatically enter the command sending and feedback acquisition process.

[0112] First, the program of the automatic processing module for sending and receiving feedback will obtain the test command type and command cycle from the test interface, and then send the test command to the servo product (or forwarding test equipment) according to the command cycle. The test command is generated in real time by the test software according to the command type and sent frame by frame according to the cycle until the command is sent or the test flag changes to stop test. The command duration corresponds to the power-on time set on the interface.

[0113] After the command is sent, the automatic command sending and feedback acquisition module will immediately enter the feedback data receiving and processing flow. It will continuously query the received feedback data, judge and extract the received feedback data, and display it in real-time on the test interface in both curve and text box modes. To accommodate both periodic sending and command response modes of servo feedback, a time limit is set for the query and reception of each frame of feedback data. This time limit covers the maximum time for both feedback modes and the maximum time for dual-mode feedback display, with a certain time margin. If no feedback data is received after exceeding this time limit, it is considered a feedback reception failure. In this application, the program flow of the automatic command sending and feedback acquisition module is as follows: Figure 5 As shown.

[0114] The program flow of the automatic processing module for command sending and feedback acquisition is as follows:

[0115] S11: Get instruction type and cycle;

[0116] S12: Test instructions are automatically generated;

[0117] S13: Test commands begin to be sent automatically;

[0118] S14: Initiate automatic reception of feedback data;

[0119] S15: Automatic judgment and processing of feedback data;

[0120] S16: Feedback and test information display;

[0121] S17: End.

[0122] The automatic fault diagnosis and handling module is used to periodically and automatically query the control power supply status, periodically and automatically query the power supply status, query and judge feedback data in real time, and receive and judge position feedback in real time. When at least one fault occurs, the test process is automatically terminated and the power is turned off. In this application, the objects of automatic fault diagnosis mainly include control voltage, control current, power voltage, power current, communication status, and feedback status.

[0123] The control power supply typically powers the digital and communication circuits of servo products. Under normal conditions, the voltage and current are relatively stable. For a specific model, there are specific requirements for its control power supply characteristics, including its normal operating voltage and current range. The test software periodically checks the control power supply status. When the control voltage / current exceeds the required range, it is judged as a control voltage / current fault, and the test process is automatically terminated and the power is turned off. The power supply drives the servo mechanism. The power voltage and current change significantly in real time. However, for a specific servo product model, there are specific requirements for its power supply characteristics, including its normal operating voltage range and current carrying capacity. The test software periodically checks the power supply status. When the power voltage or current exceeds the requirements, it is judged as a control voltage / current fault, and the test process is automatically terminated and the power is turned off.

[0124] Before stopping the command test, the test software will send commands according to the communication cycle. For servo products, whether the response is active or passive after receiving a command, feedback will be continuously sent. The test software queries and judges the feedback data in real time. If the specified length of feedback data is not received within the specified time, it will be judged as a communication failure, and the test process will be automatically terminated and the power will be turned off.

[0125] For servo products, the range of motion is typically limited. The testing software receives and judges position feedback in real time. When the received position feedback exceeds the actual limit position of the servo product, it is judged as a feedback fault, automatically terminating the test process and shutting down the power. On the other hand, the testing software automatically calculates indicators based on the real-time received feedback data and provides corresponding information prompts when the indicators deviate from the requirements. The program flow of the automatic fault judgment and handling module is as follows: Figure 6 As shown.

[0126] The program flow for the automatic fault diagnosis and handling module is as follows:

[0127] If a control link fault is detected, and the control voltage / current exceeds the limit, the test process will be automatically terminated and the power supply will be turned off; or,

[0128] To determine if a power link fault exists, if the power voltage / current exceeds limits, the test process will automatically terminate and the power supply will be shut down; or,

[0129] If a communication link failure is detected, the test process will automatically terminate and the power will be turned off if a communication timeout occurs; or,

[0130] If a location feedback fault is detected, and the feedback is out of range, the test process will be automatically terminated and the power will be turned off.

[0131] The automatic monitoring and processing module is used for automatic real-time monitoring. In this application, after the test software starts the test process, it will start the working time timer and continuously monitor the current cycle power supply time / power outage time, total test process time, current cycle, test process status, etc., to ensure that the test is carried out automatically according to the set procedures.

[0132] After starting the test, the test software will set the test process status to "Start Test," automatically controlling the power supply and power source to power on sequentially. It will then automatically record the current cycle number, current power-on time, and total test process time, and enter the command sending and feedback data receiving process. When the current cycle power-on time ends or a manual stop is detected, the software will automatically control the power supply and power supply to power off sequentially, automatically recording the current power-off time and total test process time, waiting for the next cycle to begin or ending the test process. When the entire test process ends or is manually terminated, the test software will set the test process status to "Stop Test," and the test process will terminate. The automatic monitoring and processing flow of the test process is as follows: Figure 7 As shown.

[0133] Through the technical solution of this invention, the testing system has software logic for automatic power-on / off control, automatic command sending and feedback acquisition and processing, automatic monitoring of the testing process, and automatic fault detection and handling. The testing system automatically judges possible fault states during servo product testing through software, and quickly and automatically performs actions such as power-off and information storage when a fault occurs, improving the safety of products and personnel and the comprehensiveness of test information during servo product testing. The testing system automatically controls power-on / off, test time, and test cycles during testing through software, improving the accuracy and speed of servo product testing and avoiding the adverse effects of insufficient time accuracy and untimely response that may be caused by manual intervention.

[0134] On the other hand, the present invention also provides a testing method for a servo automatic testing system based on a programmable power supply, such as... Figure 8 As shown. The test method includes the following steps:

[0135] Step 1: Enter the power settings and test settings in the test software interface, and click Start Test;

[0136] Step 2: The program for the automatic power-on and test information setting module is initialized and run.

[0137] Step 3: Execute the power-on / off automatic control module's power-on procedure flow, which is initiated and executed by the instruction sending and feedback acquisition automatic processing module's procedure flow; and simultaneously execute Step 4.

[0138] Step 4: The automatic monitoring and processing module starts execution, starts the working time timer, and continuously monitors the current cycle power supply time / power outage time, total test process time, current cycle number, and test process status in real time.

[0139] Step 5: Determine if the current cycle power supply time has ended; if yes, proceed to the next step; or, if no, return to step 4. In this application, if the current cycle power supply time has not ended, the current test process has not ended. Therefore, the running program of the automatic process monitoring and processing module needs to continue to detect the current cycle power supply time until the current cycle power supply time ends.

[0140] Step 6: Execute the power-off automatic control module's power-on / off automatic control procedure, and the program flow of the instruction sending and feedback acquisition automatic processing module will stop running;

[0141] Step 7: Determine if the entire testing process has ended or click "Stop Testing"; if so, automatically end the testing process of the testing software.

[0142] Specifically, after step 4, the process further includes: starting execution by the program flow of the automatic fault judgment and handling module;

[0143] The program flow of the automatic fault diagnosis and handling module is as follows:

[0144] If a control link fault is detected, and the control voltage / current exceeds the limit, the test process will be automatically terminated and the power supply will be turned off; or,

[0145] To determine if a power link fault exists, if the power voltage / current exceeds limits, the test process will automatically terminate and the power supply will be shut down; or,

[0146] If a communication link failure is detected, the test process will automatically terminate and the power will be turned off if a communication timeout occurs; or,

[0147] If a location feedback fault is detected, and the feedback is out of range, the test process will be automatically terminated and the power will be turned off.

[0148] If the program of the automatic fault judgment and processing module determines that no fault has occurred, then step 7 is executed.

[0149] Specifically, step 7 further includes: if not, proceed to step 8;

[0150] Step 8 includes: determining whether the current cycle power-off time has ended; if yes, proceeding to the next cycle, i.e., executing step 3 again; or, if no, returning to step 4; until the test process of the test software automatically ends. In this application, if the current cycle power-off time has not ended, the current test process has not ended. Therefore, the running program of the automatic process monitoring and processing module needs to continue to detect the current cycle power-off time until the current cycle power-off time ends, and then control the test software to jump to the next cycle stage, i.e., execute the power-on procedure of the power-on and power-off automatic control module again, and continue to perform another test.

[0151] In this embodiment, the present invention provides a testing method for a servo automatic testing system based on a programmable power supply. This testing method enables the use of such a programmable power supply-based servo automatic testing system to complete unmanned automated servo product testing, saving a significant amount of human resources for the periodic, long-term testing of servo products.

[0152] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the invention. Therefore, the embodiments should be considered in all respects as exemplary and non-limiting, and the scope of the invention is defined by the appended claims rather than the foregoing description. Thus, it is intended that all variations falling within the meaning and scope of equivalents of the claims be included within the present invention.

[0153] Furthermore, it should be understood that although this specification describes embodiments, not every embodiment contains only one independent technical solution. This narrative style of the specification is merely for clarity. Those skilled in the art should regard the specification as a whole, and the technical solutions in each embodiment can also be appropriately combined to form other implementation methods that can be understood by those skilled in the art.

Claims

1. A testing method applied to a servo automatic testing system for programmable power supplies, characterized in that, include: The host computer module is an electronic computer configured with test software, which provides the test software interface for the test system; The power supply automatic start and test information setting module is used to read and store power supply setting information and test setting information, establish communication with the power supply, start power supply program control, and then set the power supply and control power supply. The power supply on / off automatic control module is used to automatically control the power supply and control the power supply on and off. The automatic processing module for sending and receiving feedback is used to obtain the test command type and command cycle, send test commands according to the command cycle, and continuously query the received feedback data, and judge and extract the received feedback data. The automatic fault diagnosis and handling module is used to periodically and automatically query the control power supply status, periodically and automatically query the power supply status, query and judge the feedback data in real time, and receive and judge the position feedback in real time. When at least one fault occurs, the test process is automatically terminated and the power is turned off. The automatic process monitoring and processing module is used for automatic real-time monitoring. The testing method includes the following steps: Step 1: Enter the power settings and test settings in the test software interface, and click Start Test; Step 2: The program for the automatic power-on and test information setting module is initialized and run. Step 3: Execute the power-on / off automatic control module's power-on procedure flow, which is initiated and executed by the instruction sending and feedback acquisition automatic processing module's procedure flow; and simultaneously execute Step 4. Step 4: The automatic monitoring and processing module starts execution, starts the working time timer, and continuously monitors the current cycle power supply time / power outage time, total test process time, current cycle number, and test process status in real time. Step 5: Determine if the current power supply cycle has ended; if yes, proceed to the next step; or, if no, return to step 4. Step 6: Execute the power-off automatic control module's power-on / off automatic control procedure, and the program flow of the instruction sending and feedback acquisition automatic processing module will stop running; Step 7: Determine if the entire testing process has ended or click "Stop Testing"; if so, automatically end the testing process of the testing software.

2. The test method as described in claim 1, characterized in that, The power supply settings information includes: power supply voltage, power supply maximum current limit, control power supply voltage, and control power supply maximum current limit. The test settings include: single cycle power-on time, single cycle power-off time, total number of cycles, power supply serial port, and control power supply serial port.

3. The test method as described in claim 1, characterized in that, In the power on / off automatic control module, at the start of the test, the control power supply is turned on first, and the power supply is turned on only after the control power supply is successfully turned on.

4. The test method as described in claim 1, characterized in that, In the automatic processing module for sending instructions and collecting feedback, the received feedback data is cyclically queried, the received feedback data is judged and extracted, and displayed on the test interface in real time in the feedback mode of curves and the feedback mode of text boxes. A time limit is set for querying and receiving feedback data for each frame, and the value of the time limit is greater than the maximum time for both feedback modes.

5. The test method as described in claim 1, characterized in that, The periodic automatic query control power status is as follows: when the control voltage / control current exceeds the required range, it is judged as a control voltage / control current fault, the test process is automatically terminated and the power is turned off; The periodic automatic query of power supply status is as follows: when the power voltage or current exceeds the requirements, it is judged as a power voltage / power current fault, the test process is automatically terminated and the power supply is turned off. The real-time query and judgment of feedback data is as follows: if feedback data of a specified length is not received within a specified time, it is judged as a communication failure, the test process is automatically terminated and the power is turned off; The real-time reception and judgment of position feedback is as follows: when the received position feedback exceeds the actual limit position of the servo product, it is judged as a feedback fault, the test process is automatically terminated and the power is turned off.

6. The test method as described in claim 1, characterized in that, In step 2, the initialization process is as follows: read and store the power setting information, establish communication with the control power supply, start the control power supply program, establish communication with the power supply, start the power supply program, and set the control power supply voltage, control power supply current limit, power supply voltage, and power supply current limit according to the power setting information.

7. The test method as described in claim 1, characterized in that, In step 3, the power-on procedure of the automatic power-on / off control module is as follows: S1: Read the test identifier; S2: Do you want to start the test? If yes, proceed to the next step; or, if no, proceed to the previous step. S3: Controls power supply; S4: Determine if the control power supply is on; if yes, proceed to the next step; or, if no, proceed to the previous step. S5: Controls the power supply to turn on; S6: Determine if the power supply is powered on; if yes, end; otherwise, proceed to the previous step.

8. The test method as described in claim 1, characterized in that, In step 3, the program flow of the automatic processing module for command sending and feedback acquisition is as follows: S11: Get instruction type and cycle; S12: Test instructions are automatically generated; S13: Test commands begin to be sent automatically; S14: Initiate automatic reception of feedback data; S15: Automatic judgment and processing of feedback data; S16: Feedback and test information display; S17: End.

9. The test method as described in claim 1, characterized in that, Step 4 is followed by: the program flow of the automatic fault judgment and handling module is started and executed; The program flow of the automatic fault diagnosis and handling module is as follows: If a control link fault is detected, and the control voltage / current exceeds the limit, the test process will be automatically terminated and the power supply will be turned off; or, To determine if a power link fault exists, if the power voltage / current exceeds limits, the test process will automatically terminate and the power supply will be shut down; or, If a communication link failure is detected, the test process will automatically terminate and the power will be turned off if a communication timeout occurs; or, If a location feedback fault is detected, and the feedback is out of range, the test process will be automatically terminated and the power will be turned off.

10. The test method as described in claim 1, characterized in that, In step 6, the power-off procedure of the automatic power-on / off control module is as follows: S31: Read the test identifier; S32: Should we stop the test? If yes, proceed to the next step; or, if no, proceed to the previous step. S33: Control power supply to disconnect; S34: Determine if the power supply is off; if yes, proceed to the next step; or, if no, proceed to the previous step. S35: Control power supply to disconnect; S36: Determine if the control power supply is off; if yes, end; otherwise, execute the previous step.

11. The test method as described in claim 1, characterized in that, Step 7 further includes: if not, proceed to step 8; Step 8 includes: determining whether the current cycle power outage time has ended; if yes, proceeding to the next cycle, i.e., executing step 3 again; or, if no, returning to execute step 4.

Citation Information

Patent Citations

  • Detection device and detection method for electromechanical servo system

    CN104635092A