Permanent magnet servo motor control panel function test method and system, medium and equipment

The functional testing method for permanent magnet servo motor control boards, which connects the test board to a PC, solves the shortcomings of existing technologies in evaluating the performance and quality of permanent magnet servo motor control boards. It achieves efficient and accurate testing, ensuring product quality and reliability.

CN120928808APending Publication Date: 2025-11-11MORINO TECHNOLOGY (GUANGDONG) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511152368.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-18
Publication Date
2025-11-11

AI Technical Summary

Technical Problem

Existing technologies cannot efficiently and accurately evaluate the performance and quality of permanent magnet servo motor control boards, especially in complex testing scenarios. The lack of standardized testing methods leads to insufficient product quality control and reliability.

Method used

A method and system for functional testing of a permanent magnet servo motor control board are provided. The test board is connected to a PC, and the functional testing platform provides multiple test items and clear test standards. The test board applies test signals according to instructions and obtains response signals. Finally, the test results are obtained by analyzing and processing the signals according to the standards.

Benefits of technology

It enables efficient and accurate testing of permanent magnet servo motor control boards, simulating complex testing scenarios, improving testing efficiency and accuracy, and ensuring product quality and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120928808A_ABST
    Figure CN120928808A_ABST
Patent Text Reader

Abstract

The invention discloses a permanent magnet servo motor control board function test method and system, a medium and equipment, and the method comprises the steps: providing a plurality of selectable test items for a user through the connection of a test board and a PC (Personal Computer) through a function test platform, and enabling the test items to correspond to clear test standards. And the test board determines a corresponding test strategy according to the received function test instruction, applies a test signal to the permanent magnet servo motor control board and obtains a response signal, and finally analyzes and processes the response signal according to a test standard to obtain an accurate test result. The method has the advantages of high test efficiency, high precision, high standardization degree, capability of simulating complex test scenes and the like, and can provide powerful support for quality control and performance evaluation of the permanent magnet servo motor control panel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of automated testing technology, and in particular to a method, system, medium, and equipment for functional testing of a permanent magnet servo motor control board. Background Technology

[0002] Permanent magnet servo motors, with their significant advantages such as high efficiency, high power density, and excellent dynamic response characteristics, have been widely used in numerous fields including industrial automation, robotics, CNC machine tools, and aerospace. In industrial production, robotic arms driven by permanent magnet servo motors can achieve high-precision material handling and assembly operations, greatly improving production efficiency and product quality. In the field of robotics, permanent magnet servo motors provide precise power support for the joint movements of robots, enabling them to complete complex and diverse tasks. In aerospace, where the requirements for high performance and reliability of motors are extremely high, permanent magnet servo motors have become one of the key components due to their excellent characteristics.

[0003] The permanent magnet servo motor control board, as the core control component of the permanent magnet servo motor system, undertakes important functions such as precise control and protection of the motor, as well as communication with external systems. It receives commands from the host computer and adjusts parameters such as motor speed, position, and torque in real time to ensure stable operation of the motor according to predetermined requirements. Simultaneously, the control board also has multiple protection functions such as overcurrent, overvoltage, and overheat protection, enabling timely measures to be taken when abnormal conditions occur in the motor, preventing equipment damage and safety accidents. Therefore, the performance and quality of the permanent magnet servo motor control board directly affect the operational efficiency and reliability of the entire permanent magnet servo motor system. Summary of the Invention

[0004] In view of this, this application provides a method, system, medium, and equipment for functional testing of permanent magnet servo motor control boards, which has the advantages of high testing efficiency, high accuracy, high standardization, and the ability to simulate complex test scenarios, and can provide strong support for the quality control and performance evaluation of permanent magnet servo motor control boards.

[0005] According to one aspect of this application, a method for functional testing of a permanent magnet servo motor control board is provided, applied to a test board connected to the permanent magnet servo motor control board to be functionally tested, the method comprising:

[0006] Receive functional test instructions, wherein the functional test instructions are triggered when the user selects test items for functional testing requirements through the functional test platform on the PC (Personal Computer), the test board is connected to the PC, the PC runs the functional test platform, the functional test platform has multiple test items that the user can select, and each test item corresponds to a test standard.

[0007] Based on the test items corresponding to the functional test instructions, a test strategy is determined for the permanent magnet servo motor control board to be functionally tested. The test strategy includes at least one of the test signal type, parameters, and test operation steps.

[0008] A test signal is applied to the permanent magnet servo motor control board based on the test strategy, and the response signal returned by the permanent magnet servo motor control board based on the test signal is obtained.

[0009] Based on the test standards corresponding to the test items, the response signals are analyzed and processed to obtain the test results of the permanent magnet servo motor control board under the test items.

[0010] According to another aspect of this application, a functional testing system for a permanent magnet servo motor control board is provided, the system comprising:

[0011] The test instruction receiving module is used to receive functional test instructions, wherein the functional test instructions are triggered when the user selects a test item for functional testing through the functional test platform on the PC (Personal Computer). The test board is connected to the PC, and the PC runs the functional test platform. The functional test platform has multiple test items that the user can select, and each test item corresponds to a test standard.

[0012] The test strategy determination module is used to determine the test strategy of the permanent magnet servo motor control board to be functionally tested based on the test items corresponding to the functional test instructions. The test strategy includes at least one of the test signal type, parameters, and test operation steps.

[0013] The functional testing module is used to apply test signals to the permanent magnet servo motor control board based on the test strategy, and to obtain the response signal returned by the permanent magnet servo motor control board based on the test signals.

[0014] The test result determination module is used to analyze and process the response signal according to the test standard corresponding to the test item, and obtain the test result of the permanent magnet servo motor control board under the test item.

[0015] According to another aspect of this application, a medium is provided having a computer program stored thereon, which, when executed by a processor, implements the above-described method for testing the function of a permanent magnet servo motor control board.

[0016] According to another aspect of this application, an apparatus is provided, including a medium, a processor, and a computer program stored on the medium and executable on the processor, wherein the processor executes the program to implement the above-described method for testing the function of a permanent magnet servo motor control board.

[0017] By utilizing the above technical solution, this application provides a functional testing method, system, medium, and equipment for a permanent magnet servo motor control board. Through the connection between the test board and a PC, a functional testing platform provides users with multiple selectable test items, each with clearly defined test standards. The test board determines the corresponding test strategy based on the received functional test instructions, applies test signals to the permanent magnet servo motor control board, and acquires the response signals. Finally, the response signals are analyzed and processed according to the test standards to obtain accurate test results. This method has advantages such as high testing efficiency, high accuracy, high standardization, and the ability to simulate complex test scenarios, providing strong support for the quality control and performance evaluation of permanent magnet servo motor control boards.

[0018] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description

[0019] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0020] Figure 1 A flowchart illustrating a functional testing method for a permanent magnet servo motor control board provided in an embodiment of this application is shown.

[0021] Figure 2 A flowchart illustrating another method for testing the function of a permanent magnet servo motor control board provided in an embodiment of this application is shown.

[0022] Figure 3 A schematic diagram of a test architecture system provided in an embodiment of this application is shown;

[0023] Figure 4 This illustration shows a schematic diagram of a test board structure provided in an embodiment of this application;

[0024] Figure 5 A schematic diagram of the structure of a functional testing system for a permanent magnet servo motor control board provided in an embodiment of this application is shown. Detailed Implementation

[0025] The present application will be described in detail below with reference to the accompanying drawings and embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in the embodiments of the present application can be combined with each other.

[0026] This embodiment provides a method for testing the function of a permanent magnet servo motor control board, such as... Figure 1 As shown, the method is applied to a test board, which is connected to a permanent magnet servo motor control board to be functionally tested. The method includes:

[0027] Step 101: Receive functional test instruction, wherein the functional test instruction is triggered when the user selects a test item for functional testing through a functional test platform on a PC (Personal Computer). The test board is connected to the PC, and the PC runs a functional test platform. The functional test platform has multiple test items that the user can select, and each test item corresponds to a test standard.

[0028] In the above embodiments of this application, a test board can be connected to the permanent magnet servo motor control board to be functionally tested, thereby realizing the functional testing of the permanent magnet servo motor control board. Specifically, the output-related functions of the test board are as follows:

[0029] 1. Four-channel digital input with configurable functions, including enable, emergency stop, alarm, overtravel, and return to zero functions, read back via Modbus.

[0030] 2. Ethernet communication, used to determine whether communication is normal.

[0031] 3. USB communication with the control board.

[0032] 4. Signals A and B from the signal grating ruler are transmitted to the control board, and the control board receives the corresponding data.

[0033] 5. Encoder interface (absolute type): Sends signals to the control board via the test board.

[0034] 6. Simulate the phase loss signal, i.e., the output of the comparator.

[0035] 7. Comparator output of the overcurrent protection sensor.

[0036] 8V, 5V, and 24V power supplies are transmitted to the control board.

[0037] 9. Control the voltage, status output, and DA output of the main power supply circuit.

[0038] 10. IPM temperature sensor output, motor temperature sensor output.

[0039] 11. Phase current detection involves the output signal stream of the AD chip, which raises the question of whether signals such as clock and enable can be detected.

[0040] 12. The test results are output and displayed using 6 digital tubes.

[0041] 13. Voltage conversion.

[0042] Specifically, the user selects test items through a functional testing platform running on a PC. The platform generates functional test commands based on the user's selection and sends them to the connected test board. The test board then performs functional tests on the permanent magnet servo motor control board according to the commands. Specifically, regarding the connection between the test board and the PC, the test board can be physically connected to the PC via a suitable interface (such as a USB interface) to ensure stable communication between the two. Simultaneously, the functional testing platform software is installed and run on the PC. This platform has a graphical interface for easy user operation. Next, the test board is initialized and set up to be in a standby state capable of receiving commands. After the functional testing platform starts, it displays several test items for the user to select. These items are designed for different functional modules of the permanent magnet servo motor control board. The user clicks on the corresponding test item on the functional testing platform interface according to the testing requirements of the permanent magnet servo motor control board.

[0043] After the user selects a test item, the functional testing platform generates detailed functional test instructions based on the corresponding test standards. These instructions include the specific test content, test parameters, and expected results. The functional testing platform then sends the generated functional test instructions to the test board via a communication interface (such as a USB or Ethernet interface). During transmission, the platform encodes and verifies the data to ensure accurate transmission of the instructions to the test board.

[0044] After receiving instructions from the functional testing platform through the corresponding communication interface, the test board parses them. The microcontroller or processor inside the test board reads the instruction content and identifies the specific test requirements and parameters. Based on the parsed instructions, the test board begins functional testing of the permanent magnet servo motor control board. After completing the test, the test board can organize and analyze the test results. If the test results meet the test standards, the test is considered passed; otherwise, the test is considered a failure, and specific error information is recorded. The test board feeds back the test results to the functional testing platform through the connection interface with the PC. The functional testing platform receives the results and displays them on its interface. Simultaneously, the test board can also display the test results using its own six digital tubes for quick viewing by on-site personnel. For example, the digital tubes can display "PASS" to indicate a passed test, "FAIL" to indicate a failed test, or display specific error codes.

[0045] Step 102: Based on the test items corresponding to the functional test instructions, determine the test strategy for the permanent magnet servo motor control board to be functionally tested. The test strategy includes at least one of the following: test signal type, parameters, and test operation steps.

[0046] Strategies are developed for various functional testing projects, including communication, signaling, control and protection, and power supply, covering the multi-dimensional functions of the permanent magnet servo motor control board to ensure comprehensive testing and a complete evaluation of its performance and reliability. Based on the characteristics of each test project, specific test signals, commands, and testing content are clearly defined. For example, in communication function testing, signals are precisely sent to and received from the communication interface; in control and protection function testing, targeted enable commands and simulated protection scenarios are sent, making the testing more targeted and accurately identifying potential problems. Planning test strategies in advance avoids blind and repetitive operations during testing, improving testing efficiency, shortening the testing cycle, and reducing testing costs. Clear testing standards, such as specifying in power supply function testing whether power can be normally acquired and accurately output main circuit information, help accurately determine whether the control board meets the requirements, ensuring accurate and reliable test results and providing a strong basis for product quality control.

[0047] In particular, the testing strategy can also consider combinations of different signal types and parameters to verify the compatibility of the control board with other system components. For example, when testing USB communication with the control board (permanent magnet servo motor control board), different formats and sizes of data can be sent to check whether the control board can correctly receive and process the data.

[0048] Step 103: Apply a test signal to the permanent magnet servo motor control board based on the test strategy, and obtain the response signal returned by the permanent magnet servo motor control board based on the test signal.

[0049] In the embodiments described above, specific test signals are applied for different test items. For example, communication function testing sends test signals to the communication interface, which can accurately locate communication module faults; signal function testing transmits sensor signals, which can clearly identify problems in the sensor signal receiving and processing stage and quickly pinpoint the fault point. By covering communication, signal, control and protection, and power functions with various test signals, the performance of the control board is comprehensively evaluated. For example, control and protection function testing simulates phase loss and overcurrent protection scenarios to check whether the control board's protection functions are normal, ensuring stable and reliable product performance. Signals are applied in an orderly manner according to a pre-defined test strategy, avoiding blind testing, reducing repetitive operations, and saving time and manpower costs. For example, power function testing connects the power supply and sends test commands according to a strategy, efficiently completing power-related performance tests. Accurate response signals are obtained, and the control board's qualification is judged according to standards, effectively screening out unqualified products, preventing defective products from entering the market, and ensuring product quality and user safety.

[0050] Optionally, the test items include communication function tests, signal function tests, control and protection function tests, and power supply function tests. The communication function test category includes Ethernet communication function sub-tests and USB communication function sub-tests. The signal function test category includes scale signal function sub-tests, encoder signal function sub-tests, temperature signal function sub-tests, and phase current function sub-tests. The control and protection function test category includes configurable digital output function sub-tests and system protection function sub-tests. The power supply function test category includes power supply function sub-tests and control power supply main circuit status output function sub-tests, such as... Figure 2 As shown, in step 103, the step of applying a test signal to the permanent magnet servo motor control board based on the test strategy and obtaining the response signal returned by the permanent magnet servo motor control board based on the test signal specifically includes:

[0051] Step 1031: When the test item is a communication function test, the test board sends a test signal to the communication interface of the permanent magnet servo motor control board and obtains the response signal returned by the permanent magnet servo motor control board based on the same communication interface. The permanent magnet servo motor control board has a corresponding communication interface, which includes Ethernet and USB.

[0052] Step 1032: When the test item is a signal function test, the sensor signal is transmitted to the permanent magnet servo motor control board based on the test board, and the permanent magnet servo motor control board's ability to receive and process the sensor signal is detected. The sensor signal includes grating scale signal, encoder signal, temperature signal and phase current signal.

[0053] Step 1033: When the test item is a control and protection function test, the test board sends function setting and data reading commands to the permanent magnet servo motor control board, and reads the response data returned by the permanent magnet servo motor control board based on the function setting and data reading commands through the Modbus protocol. Alternatively, the test board simulates the permanent magnet servo motor control board in a phase loss and overcurrent protection scenario, and detects whether the permanent magnet servo motor control board can normally output the comparator output of the simulated phase loss signal and overcurrent protection sensor. The function setting and data reading commands include at least one of the following: enable, emergency stop, alarm, overtravel, and return to zero commands.

[0054] Step 1034: When the test item is a power function test, connect the 5V and 24V power supplies to the permanent magnet servo motor control board based on the test board, and check whether the permanent magnet servo motor control board can obtain power normally, or send a main circuit status detection command to the permanent magnet servo motor control board. Based on the main circuit status detection command, check whether the permanent magnet servo motor control board can accurately output the voltage, status and DA (Digital to Analog) output information of the main circuit.

[0055] In the above embodiments of this application, for communication function testing, when the test items focus on communication functions, the testing can mainly target the Ethernet and USB communication interfaces of the permanent magnet servo motor control board to determine whether the communication is normal. Specifically:

[0056] Ethernet Communication Test: The test board constructs specific test data packets according to standard network communication protocols (such as TCP / IP) through its Ethernet interface. For example, it sends a data frame containing a specific identifier and checksum, the size and format of which conform to pre-defined test specifications. This data packet is sent to the Ethernet communication interface of the permanent magnet servo motor control board. After receiving the Ethernet data packet from the test board, the control board parses and processes it according to the protocol, and then generates a response data packet (equivalent to a response signal). The response data packet contains response information to the test data and possible error codes (if an exception occurs during processing). The test board continuously listens to the Ethernet interface, and upon receiving the response data packet, parses it to check whether the data is correct, complete, and conforms to the expected response format.

[0057] USB Communication Test: After establishing a connection with the control board via the USB interface, the test board generates test commands according to the USB communication protocol. For example, it sends a command requesting the control board to return its device information. This command is encapsulated in a specific data format and transmitted to the control board's USB communication interface via the USB cable. Upon receiving the USB test command, the control board performs the corresponding operation (such as querying device information) and encapsulates the result into response data, returning it to the test board via the USB interface. The test board reads the data from the USB interface, parses the response content, and verifies whether the control board correctly understood and executed the command, and whether the returned information is accurate.

[0058] For signal function tests, this test item aims to verify the permanent magnet servo motor control board's ability to receive and process various sensor signals. The sensor signals involved include scale signals, encoder signals, temperature signals, and phase current signals. Specifically:

[0059] Grid scale signal transmission: The test board generates A and B signals for the signal grid scale, which have specific frequency, phase, and amplitude characteristics. For example, there is a fixed phase difference between the A and B signals to represent different position information. The test board transmits the generated A and B signals to the signal input interface of the permanent magnet servo motor control board through corresponding lines.

[0060] Encoder signal transmission: For the encoder interface (absolute type), the test board generates signals according to the encoding rules of the absolute encoder. These signals contain precise position information and are sent to the control board through the encoder interface in a specific encoding format (such as binary encoding).

[0061] Temperature signal transmission: The test board simulates the output signals of the IPM temperature sensor and the motor temperature sensor. Based on the preset temperature value, it generates a corresponding voltage or current signal (depending on the sensor's output type) and transmits it to the temperature signal input interface of the control board.

[0062] Phase current signal transmission: The test board outputs a phase current detection signal stream through an AD chip. During the output process, the clock signal and enable signal are ensured to work normally, and the phase current analog signal is transmitted to the control board according to a certain time sequence and level requirements.

[0063] After receiving the various sensor signals mentioned above, the control board performs internal processing. The test board can interact with the control board through other interfaces (such as serial communication) to read the results processed by the control board. For example, for scale and encoder signals, it checks whether the position information calculated by the control board is accurate; for temperature signals, it verifies whether the temperature value detected by the control board is consistent with the temperature simulated by the test board; for phase current signals, it checks whether the control board's detection and analysis of the current are correct.

[0064] For the control and protection function test category, this test item mainly involves the function settings, data reading, and phase loss and overcurrent protection function detection of the permanent magnet servo motor control board. Specifically:

[0065] Functional Setting and Data Reading Command Test: The test board constructs functional setting and data reading commands according to the Modbus protocol format through the communication interface (such as a serial port) with the control board. For example, when sending an enable command, the command includes an identifier for the enabled function and corresponding parameters (such as whether the enable state is on or off); when sending an emergency stop command, the triggering conditions and priority of the emergency stop signal are specified. After receiving the command, the control board executes the corresponding operation and returns the response data to the test board via the Modbus protocol. The test board parses the response data to check whether the control board has correctly executed the command and whether the returned data meets expectations. For example, for the enable command, it verifies whether the control board has entered the enabled or disabled state as required by the command; for the data reading command (such as reading the alarm status), it checks whether the returned alarm information is accurate.

[0066] Phase loss and overcurrent protection scenario simulation test: The test board simulates a phase loss state for the magnetic servo motor control board. By adjusting the output signal, it causes one or more phases of the voltage or current signal to become abnormal (e.g., drop to zero or deviate from the normal value). Simultaneously, the test board outputs a simulated phase loss signal (comparator output) and sends it to the control board. The test board simulates an overcurrent situation by increasing the current signal output to the control board, exceeding the preset overcurrent threshold. At this time, the test board outputs the comparator output signal of the overcurrent protection sensor and transmits it to the control board. Upon receiving the simulated phase loss and overcurrent protection signals, the control board should respond according to the preset protection logic. The test board checks whether the control board can normally output the simulated phase loss signal and the comparator output of the overcurrent protection sensor, verifying the effectiveness of the protection function.

[0067] For power function tests: This test item mainly examines the permanent magnet servo motor control board's ability to acquire power, as well as the accuracy of the main circuit status and DA output. Specifically, it may include:

[0068] Power Connection Test: The test board connects 5V and 24V power supplies to the power input interface of the permanent magnet servo motor control board via their respective power lines. During connection, ensure the correct polarity and stable voltage within the specified range. After power is connected to the control board, the test board can monitor the power indicator light status (if present) or read the status information of its internal power management module through communication with the control board to check whether the control board can obtain power normally. For example, check whether the voltage value fed back by the power management module is consistent with the connected power supply voltage, and whether the control board can start and run normally.

[0069] Main circuit status detection: The test board sends a main circuit status detection command to the control board via the communication interface. The command explicitly requires the control board to detect and return the voltage, status, and DA output information of the main circuit. After receiving the command, the control board detects the main circuit and returns the detection results to the test board via the communication interface. The test board parses the returned data, checks whether the main circuit voltage is within the normal range, whether the status information (such as whether there is overvoltage, undervoltage, short circuit, etc.) is accurate, and whether the DA output information meets the expected values ​​and accuracy requirements.

[0070] Step 104: Analyze and process the response signal according to the test standard corresponding to the test item to obtain the test results of the permanent magnet servo motor control board under the test item.

[0071] Next, different test items correspond to different functions and performance indicators of the control board. Taking communication function testing as an example, by analyzing the response signals according to the communication protocol standard, if the data transmission error rate exceeds the standard range or the communication delay time is too long, it is possible to accurately locate potential hardware faults (such as chip damage or poor line contact) or software problems (such as errors in the communication protocol stack implementation) in the communication module. In signal function testing, if the response value of the temperature sensor signal deviates too much from the actual simulated temperature, it can be determined that there is a defect in the temperature acquisition circuit or related algorithm. This precise location helps to quickly repair quality problems and improve the overall product quality.

[0072] By combining the test results of various items, a comprehensive evaluation of the quality of the permanent magnet servo motor control board can be achieved. For example, by combining the test results of communication functions, signal functions, control and protection functions, and power supply functions, the stability and reliability of the control board under different operating conditions can be determined. If the results of most test items meet the standards, with only a few items showing slight deviations, it indicates that the overall product quality is high, but improvements are still needed to address individual issues. If the results of multiple key test items fail to meet the standards, it indicates serious product quality problems, requiring a comprehensive review of the design and production process.

[0073] Optionally, step 104 analyzes and processes the response signal according to the test standard corresponding to the test item to obtain the test results of the permanent magnet servo motor control board under the test item, specifically including:

[0074] Step 1041: When the response signal meets the test standard corresponding to the test item, the test result of the permanent magnet servo motor control board under the test item is passed.

[0075] Step 1042: When the response signal does not meet the test standard corresponding to the test item, the test result of the permanent magnet servo motor control board under the test item is "fail".

[0076] In the above embodiments of this application, in the communication function test class:

[0077] Ethernet communication requires a successful connection establishment within a specified time (e.g., within 1 second), accurate and error-free data transmission without packet loss or errors, and the ability to complete specific data interaction tasks. For example, sending a data packet containing a specific identifier should prompt the control board to return a corresponding response packet within a specified time, with the response packet content matching the preset values. A network testing tool is used to send test data packets and monitor the control board's response. If a correct response packet is received within the specified time, and subsequent data transmission proceeds without packet loss or errors, the response signal meets the standard, and the test result is passed. If no response packet is received, the response packet content is incorrect, or there is packet loss or errors, the response signal does not meet the standard, and the test result is failed.

[0078] USB communication must complete data transmission and reception within a specified time (e.g., 500 milliseconds) to ensure reliable data transmission and guarantee data integrity and accuracy. For example, when sending a data file in a specific format via USB, the control board should be able to correctly receive it and return a confirmation message indicating successful reception. Test data is sent using USB testing software, and the control board's reception and return information are observed. If the control board correctly receives the data and returns a confirmation message, and the data transmission time is within the specified range, the response signal meets the standard, and the test result is passed. If the control board fails to receive data correctly, does not return a confirmation message, or the data transmission time exceeds the specified range, the response signal does not meet the standard, and the test result is failed.

[0079] In the signal function test class:

[0080] Grid ruler signal: The control board should accurately receive the A and B signals from the grid ruler and process the signals within a specified time (e.g., 10 milliseconds) to output correct position information. A signal generator is used to simulate the grid ruler signal input to the control board, and the position information output by the control board is read through the host computer software. If the position information is accurate and output within the specified time, the response signal meets the standard, and the test result is passed; if the position information is incorrect or the output time exceeds the specified range, the response signal does not meet the standard, and the test result is failed.

[0081] Encoder Signal (Absolute): The encoder signal sent by the test board must be received correctly, signal parsing completed within a specified time, and accurate absolute position data output with an error within the allowable range (e.g., ±0.1%). The encoder signal is sent by the test board to check the absolute position data output by the control board. If the data is accurate and the error is within the allowable range, the response signal meets the standard, and the test result is passed; if the data is incorrect or the error exceeds the range, the response signal does not meet the standard, and the test result is failed.

[0082] Temperature Signal: For both IPM and motor temperature sensor outputs, the control board must accurately receive the signal within a specified time (e.g., 20 milliseconds) and output the correct temperature value or corresponding control signal based on the preset temperature-output relationship. Use a temperature simulator to simulate the temperature sensor output and observe the temperature value or control signal output by the control board. If the output is accurate and completed within the specified time, the response signal meets the standard, and the test result is passed; if the output is incorrect or the time exceeds the specified limit, the response signal does not meet the standard, and the test result is failed.

[0083] Phase current signal: This signal can detect the signal flow output by the AD chip, including clock and enable signals, and accurately acquire the phase current value within a specified time (e.g., 15 milliseconds) with an error not exceeding a specified range (e.g., ±2%). The signal source simulates the AD chip's output signal to detect the phase current value acquired by the control board. If the phase current value is accurate and the error is within the specified range, the response signal meets the standard, and the test result is passed; if the phase current value is incorrect or the error exceeds the range, the response signal does not meet the standard, and the test result is failed.

[0084] In the control and protection function test class:

[0085] Function Setting and Data Reading Commands: For enable, emergency stop, alarm, overtravel, and return-to-zero commands, the control board should respond correctly within a specified time (e.g., 50 milliseconds) and return accurate data via the Modbus protocol. For example, after issuing an enable command, the control board should enter the enable state and return the corresponding status information. Function setting and data reading commands are sent to the host computer software to read the data returned by the control board. If the returned data is accurate and the control board responds correctly within the specified time, the response signal meets the standard, and the test result is passed. If the returned data is incorrect or the control board's response time exceeds the specified range, the response signal does not meet the standard, and the test result is failed.

[0086] Phase loss and overcurrent protection scenarios: When simulating phase loss and overcurrent protection scenarios, the control board should be able to output the simulated phase loss signal and the comparator output of the overcurrent protection sensor normally, and the timing and level of the output signals should meet the preset requirements. Use test equipment to simulate phase loss and overcurrent protection scenarios and test the signals output by the control board. If the timing and level of the output signals meet the preset requirements, it indicates that the response signal meets the standard, and the test result is pass; if the output signal does not meet the requirements, the response signal does not meet the standard, and the test result is fail.

[0087] In the power function test category:

[0088] Power Connection: When connecting 5V and 24V power supplies to the permanent magnet servo motor control board, the control board should receive power normally within a specified time (e.g., 100 milliseconds), and the power supply should be stable with no significant voltage fluctuations (voltage fluctuation range within ±5%). Use a power supply tester to monitor the 5V and 24V power supplies connected to the control board and observe the board's operating status. If the control board operates normally and the power supply voltage fluctuation is within the allowable range, the response signal meets the standard, and the test result is passed; if the control board fails to operate normally or the power supply voltage fluctuation exceeds the range, the response signal does not meet the standard, and the test result is failed.

[0089] Main circuit status detection: After sending the main circuit status detection command to the control board, the control board should accurately output the voltage, status, and DA output information of the main circuit within a specified time (e.g., 30 milliseconds), and the error of the output data should be within the allowable range (e.g., voltage error ±1%, status information accurate). The host computer software sends the main circuit status detection command and reads the information output by the control board. If the output data is accurate and the error is within the allowable range, it indicates that the response signal meets the standard, and the test result is passed; if the output data is incorrect or the error exceeds the range, the response signal does not meet the standard, and the test result is failed.

[0090] Optionally, the test board has a corresponding display screen. In step 104, after obtaining the test results of the permanent magnet servo motor control board under the test item, the method further includes:

[0091] Step 105: The test results of the permanent magnet servo motor control board under the test item are output and displayed on the display screen through 6 digital tubes.

[0092] In the above embodiments of this application, since there are only 6 digital tubes, in order to clearly display different test items and results, the test items, test sub-items, and test results can be encoded, specifically:

[0093] Two-digit LED displays can be used to represent different test items. For example, "01" represents communication function test; "02" represents signal function test; "03" represents control and protection function test; and "04" represents power supply function test.

[0094] Each test item can be represented by a two-digit LED display. For example, in the communication function test category: "01" represents Ethernet communication test, and "02" represents USB communication test. In the signal function test category: "01" represents scale signal test, "02" represents encoder signal test, "03" represents temperature signal test, and "04" represents phase current signal test. In the control and protection function test category: "01" represents function setting and data reading command test, "02" represents phase loss protection scenario test, and "03" represents overcurrent protection scenario test. In the power supply function test category: "01" represents power supply connection test, and "02" represents main circuit status detection test.

[0095] The test result can be represented by a single digit, where "1" represents a pass and "0" represents a fail. The remaining digit can be used to display the check digit or other auxiliary information.

[0096] Next, a dynamic scanning method can be used for display, that is, lighting up each digital tube sequentially, utilizing the persistence of vision in the human eye to make it appear as if all digital tubes are lit simultaneously. The six digital tubes can be connected using either a common cathode or a common anode configuration. Taking a common cathode configuration as an example, the cathodes of all digital tubes are connected together and grounded. The anode of each digital tube is connected to the I / O port of the test board through a current-limiting resistor to control the on / off state of each segment. Simultaneously, six I / O ports are used to control the digit selection of each of the six digital tubes, using high and low voltage levels to select the digital tube to be displayed.

[0097] The seven segments (a, b, c, d, e, f, g) and the decimal point (dp) of the digital tube are connected to the I / O port of the test board via latches (such as 74HC573). The test board outputs the segment selection codes corresponding to the numbers or characters to be displayed to the latches, which then transmit signals to each segment of the digital tube, thereby controlling the display content. For example, to display the number "1", the segment selection codes corresponding to segments b and c need to be output to the latch. Another latch is used to control the digit selection signals. The test board selects the digital tube to be displayed by outputting different digit selection codes to this latch. For example, to display the first digital tube, the first digit selection signal is set to active (low level, common cathode), and the other digit selection signals are set to inactive (high level).

[0098] For example, for the Ethernet communication test (a communication function test), assuming the test result is "pass", the encoding could be "01011". When displayed, the first two "01"s are shown on the first and second digits, representing the communication function test; the middle two "01"s are shown on the third and fourth digits, representing the Ethernet communication test; and the last "1" is shown on the fifth digit, indicating a pass. The sixth digit can display a check digit (such as "0") or other specific symbols.

[0099] Specifically, the process is as follows: the segment selection code corresponding to "010110" is sequentially input into the latch controlling the segment selection, and simultaneously, the first to sixth digital tubes are selected sequentially for display via the bit selection signal. Only one digital tube is lit at a time, and the rapid cyclic scanning ensures a stable display effect for the human eye.

[0100] Optionally, the test board has a voltage conversion function, which enables the conversion of voltage requirements for different parts.

[0101] In the embodiments described above, the system can be adapted to various testing scenarios. During testing, different test items and modules of the permanent magnet servo motor control board have varying voltage requirements. For example, in communication function testing, its communication interface (such as Ethernet and USB) may only require a specific low voltage to ensure stable signal transmission; while in power function testing, it is necessary to simulate 5V and 24V power supply inputs to test the control board's ability to acquire and process power at different voltage levels. The test board has a voltage conversion function, which can accurately output the corresponding voltage according to the needs of different testing scenarios, ensuring that each test step can be performed under appropriate voltage conditions, thereby comprehensively and accurately evaluating the various performance aspects of the control board.

[0102] By applying the technical solution of this embodiment, strong support can be provided for the quality control and performance evaluation of permanent magnet servo motor control boards.

[0103] In one specific embodiment, the system architecture of this application between the PC, the test board, and the permanent magnet servo motor control board to be functionally tested is, for example... Figure 3 As shown, Figure 3In this system, PC stands for Personal Computer, which is the control terminal for the entire system, used to send commands and receive data. I / O: Input / Output, representing the input and output interfaces for data or signals. Ethernet: Ethernet, a computer local area network technology used for network communication between devices. PWM (Pulse Width Modulation), a technique that controls analog signal levels by adjusting the pulse width, commonly used in motor control and other fields. Test board: A circuit board used to test relevant signals or functions. Permanent magnet servo motor control board: A circuit board specifically designed to control permanent magnet servo motors. Power supply: A device that provides electrical energy to the entire system. Therefore, the PC communicates and controls the permanent magnet servo motor control board through the test board. On one hand, the PC can send control commands to the permanent magnet servo motor control board to precisely control the permanent magnet servo motor through PWM signals; on the other hand, the permanent magnet servo motor control board can feed back information such as the motor's operating status to the PC via Ethernet, realizing data interaction and monitoring. Meanwhile, the test board can be used to test and debug communication signals or control signals to ensure the normal operation of the system.

[0104] Specifically, regarding the internal structure of the test board, such as Figure 4 As shown, Figure 4 In the diagram, the rectangle represents the test board. The test board includes interface modules such as "24V Power Supply," "5V Power Supply," "I / O," "Ethernet," "USB," "Raster Interface," "Encoder Interface," "Temperature Interface," and "Phase Current Interface." It can be configured with digital modules to "read back via Modbus" and connect to external "I / O" interfaces. The "Ethernet" interface is used to determine if communication is normal. The "USB" interface demonstrates USB communication functionality. The "Raster Interface" is used to transmit "signal grid A and B signals to the control board," and the "Encoder Interface" is used to send signals to the control board.

[0105] Furthermore, as Figure 1 To specifically implement the method, this application provides a functional testing system for a permanent magnet servo motor control board, such as... Figure 5 As shown, the system includes:

[0106] The test instruction receiving module 201 is used to receive functional test instructions, wherein the functional test instructions are triggered when the user selects a test item for functional testing through the functional test platform on the PC (Personal Computer). The test board is connected to the PC, and the PC runs the functional test platform. The functional test platform has multiple test items that the user can select, and each test item corresponds to a test standard.

[0107] The test strategy determination module 202 is used to determine the test strategy of the permanent magnet servo motor control board to be functionally tested based on the test items corresponding to the functional test instructions. The test strategy includes at least one of the test signal type, parameters, and test operation steps.

[0108] The functional test module 203 is used to apply test signals to the permanent magnet servo motor control board based on the test strategy, and to obtain the response signal returned by the permanent magnet servo motor control board based on the test signals.

[0109] The test result determination module 204 is used to analyze and process the response signal according to the test standard corresponding to the test item, and obtain the test result of the permanent magnet servo motor control board under the test item.

[0110] It should be noted that other corresponding descriptions of the functional units involved in the functional testing system for a permanent magnet servo motor control board provided in this application embodiment can be found in the following references. Figures 1 to 2 The corresponding descriptions in the method will not be repeated here.

[0111] Based on the above, Figures 1 to 2 Accordingly, this application also provides a medium on which a computer program is stored, which, when executed by a processor, implements the above-described method. Figures 1 to 2 The method for testing the function of the permanent magnet servo motor control board is shown.

[0112] Based on this understanding, the technical solution of this application can be embodied in the form of a software product, which can be stored in a non-volatile medium (such as a CD-ROM, USB flash drive, or portable hard drive) and includes several instructions to cause a device (such as a personal computer, server, or network device) to execute the methods described in the various implementation scenarios of this application.

[0113] Based on the above, Figures 1 to 2 The method shown, and Figure 5To achieve the above objectives, the virtual system embodiment shown in this application also provides a device, which may be a personal computer, server, network device, etc. This device includes a medium and a processor; the medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-described objectives. Figures 1 to 2 The method for testing the function of the permanent magnet servo motor control board is shown.

[0114] Optionally, the device may also include a user interface, a network interface, a camera, radio frequency (RF) circuitry, sensors, audio circuitry, a Wi-Fi module, etc. The user interface may include a display screen, input units such as a keyboard, etc., and optional user interfaces may also include USB interfaces, card reader interfaces, etc. The network interface may optionally include standard wired interfaces, wireless interfaces (such as Bluetooth interfaces, Wi-Fi interfaces), etc.

[0115] Those skilled in the art will understand that the device structure provided in this embodiment does not constitute a limitation on the device, and may include more or fewer components, or combine certain components, or have different component arrangements.

[0116] The medium may also include an operating system and a network communication module. The operating system is a program that manages and stores the device's hardware and software resources, supporting the operation of information processing programs and other software and / or programs. The network communication module is used to enable communication between the various components within the medium, as well as communication with other hardware and software within the physical device.

[0117] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented using software plus necessary general-purpose hardware platforms, or it can be implemented through hardware by connecting the test board to a PC. The functional testing platform provides users with multiple selectable test items, each with corresponding clear test standards. The test board determines the corresponding test strategy based on the received functional test instructions, applies test signals to the permanent magnet servo motor control board and acquires response signals. Finally, it analyzes and processes the response signals according to the test standards to obtain accurate test results. This method has advantages such as high testing efficiency, high accuracy, high standardization, and the ability to simulate complex test scenarios, providing strong support for the quality control and performance evaluation of permanent magnet servo motor control boards.

[0118] Those skilled in the art will understand that the accompanying drawings are merely schematic diagrams of a preferred embodiment, and the modules or processes shown in the drawings are not necessarily essential for implementing this application. Those skilled in the art will understand that the modules in the system of the embodiment scenario can be distributed throughout the system of the embodiment scenario as described, or they can be modified to reside in one or more systems different from this embodiment scenario. The modules of the above-described embodiment scenario can be combined into one module, or further divided into multiple sub-modules.

[0119] The serial numbers in this application are for descriptive purposes only and do not represent the superiority or inferiority of any particular implementation scenario. The above disclosures are merely a few specific implementation scenarios of this application; however, this application is not limited thereto, and any modifications that can be made by those skilled in the art should fall within the protection scope of this application.

Claims

1. A method for testing the function of a permanent magnet servo motor control board, characterized in that, The method is applied to a test board connected to a permanent magnet servo motor control board to be functionally tested, and includes: Receive functional test instructions, wherein the functional test instructions are triggered when the user selects test items for functional testing requirements through the functional test platform on a PC (Personal Computer), the test board is connected to the PC, the PC runs the functional test platform, the functional test platform has multiple test items that the user can select, and each test item corresponds to a test standard. Based on the test items corresponding to the functional test instructions, a test strategy is determined for the permanent magnet servo motor control board to be functionally tested. The test strategy includes at least one of the test signal type, parameters, and test operation steps. A test signal is applied to the permanent magnet servo motor control board based on the test strategy, and the response signal returned by the permanent magnet servo motor control board based on the test signal is obtained. Based on the test standards corresponding to the test items, the response signals are analyzed and processed to obtain the test results of the permanent magnet servo motor control board under the test items.

2. The method according to claim 1, characterized in that, The test items include communication function tests, signal function tests, control and protection function tests, and power supply function tests.

3. The method according to claim 2, characterized in that, The step of applying a test signal to the permanent magnet servo motor control board based on the test strategy and obtaining the response signal returned by the permanent magnet servo motor control board based on the test signal includes: When the test item is a communication function test, the test board sends a test signal to the communication interface of the permanent magnet servo motor control board and obtains the response signal returned by the permanent magnet servo motor control board based on the same communication interface. The permanent magnet servo motor control board has a corresponding communication interface, which includes Ethernet and USB. When the test item is a signal function test, the sensor signal is transmitted to the permanent magnet servo motor control board based on the test board, and the permanent magnet servo motor control board's ability to receive and process the sensor signal is tested. The sensor signal includes grid scale signal, encoder signal, temperature signal and phase current signal. When the test item is a control and protection function test, the test board sends function setting and data reading commands to the permanent magnet servo motor control board, and reads the response data returned by the permanent magnet servo motor control board based on the function setting and data reading commands through the Modbus protocol. Alternatively, the test board can simulate the permanent magnet servo motor control board in a phase loss and overcurrent protection scenario, and detect whether the permanent magnet servo motor control board can normally output the comparator output of the simulated phase loss signal and overcurrent protection sensor. The function setting and data reading commands include at least one of the following: enable, emergency stop, alarm, overtravel, and return to zero commands. When the test item is a power function test, the 5V and 24V power supplies are connected to the permanent magnet servo motor control board based on the test board. The test board is used to check whether the permanent magnet servo motor control board can obtain power normally, or to send a main circuit status detection command to the permanent magnet servo motor control board. Based on the main circuit status detection command, the test board is used to check whether the permanent magnet servo motor control board can accurately output the voltage, status and DA (Digital to Analog) output information of the main circuit.

4. The method according to claim 2, characterized in that, The communication function test category includes Ethernet communication function sub-test items and USB communication function sub-test items. The signal function test category includes grating scale signal function sub-test items, encoder signal function sub-test items, temperature signal function sub-test items, and phase current function sub-test items. The control and protection function test category includes configurable digital output function sub-test items and system protection function sub-test items. The power supply function test category includes power supply function sub-test items and control power supply main circuit status output function sub-test items.

5. The method according to claim 1, characterized in that, The step of analyzing and processing the response signal according to the test standard corresponding to the test item to obtain the test results of the permanent magnet servo motor control board under the test item includes: When the response signal meets the test standard corresponding to the test item, the test result of the permanent magnet servo motor control board under the test item is passed. When the response signal does not meet the test standard corresponding to the test item, the test result of the permanent magnet servo motor control board under the test item is "fail".

6. The method according to any one of claims 1 to 5, characterized in that, The test board has a corresponding display screen. After obtaining the test results of the permanent magnet servo motor control board under the test item, the method further includes: The test results of the permanent magnet servo motor control board under the above test items are output and displayed on the screen through 6 digital tubes.

7. The method according to claim 6, characterized in that, The test board has a voltage conversion function, which enables the conversion of voltage requirements for different parts.

8. A functional testing system for a permanent magnet servo motor control board, characterized in that, The system, applied to the method of any one of claims 1 to 7, comprises: The test instruction receiving module is used to receive functional test instructions, wherein the functional test instructions are triggered when the user selects a test item for functional testing through the functional test platform on the PC (Personal Computer). The test board is connected to the PC, and the PC runs the functional test platform. The functional test platform has multiple test items that the user can select, and each test item corresponds to a test standard. The test strategy determination module is used to determine the test strategy of the permanent magnet servo motor control board to be functionally tested based on the test items corresponding to the functional test instructions. The test strategy includes at least one of the test signal type, parameters, and test operation steps. The functional testing module is used to apply test signals to the permanent magnet servo motor control board based on the test strategy, and to obtain the response signal returned by the permanent magnet servo motor control board based on the test signals. The test result determination module is used to analyze and process the response signal according to the test standard corresponding to the test item, and obtain the test result of the permanent magnet servo motor control board under the test item.

9. A medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the method for testing the function of the permanent magnet servo motor control board according to any one of claims 1 to 7.

10. An apparatus comprising a medium, a processor, and a computer program stored on the medium and executable on the processor, characterized in that, When the processor executes the computer program, it implements a method for testing the function of the permanent magnet servo motor control board according to any one of claims 1 to 7.