Self-checking method and device of servo drive controller
By using a self-testing device and method for the servo drive controller, the hardware and software of the servo system can be self-tested, solving the problem of long testing time in the prior art, quickly locating faults, and improving the maintenance efficiency and testability of the system.
Patent Information
- Application Number
- CN202310714153.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-15
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-06-15
AI Technical Summary
Existing servo systems require opening up the internal structure for troubleshooting, resulting in long detection times and failing to meet the high-efficiency requirements of scenarios such as competitive bidding and practical exercises.
Design a self-testing device for a servo drive controller. Through hardware self-testing circuits and software self-testing strategies, achieve real-time self-testing in the background and provide feedback on the self-testing status. Utilize a 422 serial port chip and processor for signal transmission and reception comparison, covering all channels and chips.
Quickly locate system faults down to the smallest replaceable unit, reduce troubleshooting time, improve system maintenance accessibility and testability, and ensure that all chips on the controller are working properly.
Smart Images

Figure CN117130340B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of servo drive technology, and in particular to a self-testing method and apparatus for a servo drive controller. Background Technology
[0002] When a servo system malfunctions, maintenance personnel need to complete a series of repair activities, including fault detection, isolation, disassembly, replacement or repair of components, installation, debugging, and inspection, as a complete maintenance operation. By testing each system, fault information can be located, and the fault can be quickly isolated to several smallest replaceable unit fault locations, satisfying a certain level of testability.
[0003] Servo systems are typically integrated inside the equipment. Troubleshooting requires opening the internal structure and systematically checking each component to quickly pinpoint the problem. In competitive bidding, real-world drills, and other scenarios, there are high demands on the system's fault detection and troubleshooting speed; therefore, the system must possess good testability. Summary of the Invention
[0004] This application provides a self-testing method and apparatus for a servo drive controller. The self-testing circuit is designed in hardware and the self-testing strategy is implemented in software, which can meet the requirements of real-time self-testing in the background and provide feedback on the self-testing status.
[0005] This application provides a self-testing device for a servo drive controller, comprising:
[0006] The first 422 serial port chip and its peripheral circuit, wherein the A and Y channels of the first 422 serial port chip are shorted as positive for transmission or positive for reception, and the B and Z channels are shorted as negative for transmission or negative for reception, so as to be used as a 485 function circuit.
[0007] The second 422 serial port chip and its peripheral circuit, wherein the A and Y channels of the second 422 serial port chip are shorted as positive for receiving or positive for transmitting, and its B and Z channels are shorted as negative for receiving or negative for transmitting, so as to be used as a 485 function circuit.
[0008] During the self-test process, the first 422 serial port chip and its peripheral circuit and the second 422 serial port chip and its peripheral circuit are short-circuited and then used to send or receive independently, so as to construct a self-test path with 422 serial port communication function.
[0009] The processor is used to send detection signals to the servo drive controller under test based on the constructed self-test path, and to receive detection signals fed back by the servo drive controller under test. The sent self-test signals are compared with the received detection signals to complete the self-test.
[0010] Optionally, for the self-test of the driver module interface, the processor is further configured to: determine the required given duty cycle, generate the logic terminal control signal required by the driver chip based on the given duty cycle, send the control signal to the driver chip, sample the power output of the driver chip, calculate the duty cycle of the sampled signal, and compare the calculated duty cycle with the given duty cycle to complete the self-test.
[0011] This application also proposes a self-testing method for a servo drive controller, which utilizes the aforementioned self-testing device for the servo drive controller and employs the following steps to achieve self-testing of the servo drive controller:
[0012] Using the first 422 serial port chip and its peripheral circuit or the second 422 serial port chip and its peripheral circuit of the self-test device of the servo drive controller, a preset self-test signal is sent to the servo drive controller to be tested.
[0013] The detection signal fed back by the servo drive controller under test is received by the second 422 serial port chip and its peripheral circuit or the first 422 serial port chip and its peripheral circuit of the self-test device of the servo drive controller.
[0014] The processor compares the sent self-test signal with the received detection signal to complete the self-test.
[0015] Optionally, for driver module interface self-testing, the following also includes:
[0016] Using a processor, the required given duty cycle is determined, and the logic control signals required by the driver chip are generated based on the given duty cycle. The control signals are then sent to the driver chip, and the power output of the driver chip is sampled. The duty cycle of the sampled signal is calculated, and the calculated duty cycle is compared with the given duty cycle to complete the self-test.
[0017] Optional, also includes:
[0018] For ordinary interface self-test, the receiving channel is immediately self-tested when the external control and debugging interface has just received or sent an instruction.
[0019] For sensor interface self-test, the processor's internal sensor is used to perform timed sampling. When the internal sensor interface completes an information query, a reception completion pulse is generated, and the self-test of the interface is triggered based on the reception completion pulse.
[0020] Optional, also includes:
[0021] If the servo drive system does not send or receive commands within a preset time, a timed self-test will be initiated.
[0022] Upon the arrival of a new instruction, the timed self-test is deactivated, and a routine self-test is performed during the instruction transmission and reception process.
[0023] This application also proposes a servo drive control system, including a processor. The processor needs to be embedded software programmed, and when the embedded software program is executed by the processor, it implements the steps of the self-test method of the servo drive controller as described above.
[0024] This application embodiment designs a self-test circuit in hardware and implements a self-test strategy in software, which can meet the requirements of real-time self-testing in the background and provide feedback on the self-test status.
[0025] 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
[0026] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:
[0027] Figure 1 This is a block diagram of the communication self-test circuit of the self-test device according to an embodiment of this application;
[0028] Figure 2 This is a schematic diagram of the self-test circuit of the self-test device according to an embodiment of this application;
[0029] Figure 3 This is a block diagram illustrating the self-testing principle of the self-testing device according to an embodiment of this application.
[0030] Figure 4 This is a block diagram of the driving self-test circuit of the self-test device according to an embodiment of this application. Detailed Implementation
[0031] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
[0032] The servo system in this application generally comprises a servo drive controller, an actuator, a detection element, and a controlled object, which are connected to each other by electrical cables, mechanical structures, etc. The actuator generally refers to a motor, and the detection element generally refers to a sensor, which can detect angles, angular velocities, etc.
[0033] As the core of a servo system, the servo controller has functions such as sensor information acquisition, motor drive control, and command interaction with the host computer user.
[0034] On the one hand, when the system uses the servo drive controller as the smallest replaceable unit in the field, the controller itself needs to have a certain self-testing capability so that it can quickly and effectively locate whether the system fault is in the controller itself and complete the replacement.
[0035] On the other hand, once the servo drive controller itself has such self-testing capability, the system needs to quickly locate the fault location on the controller by querying the self-test status, which can pinpoint a specific circuit function.
[0036] Based on this, embodiments of this application provide a self-testing device for a servo drive controller, such as... Figure 1 , Figure 2 As shown, it includes:
[0037] The first 422 serial port chip and its peripheral circuit, wherein the A and Y channels of the first 422 serial port chip are shorted as positive for transmitting or positive for receiving, and the B and Z channels are shorted as negative for transmitting or negative for receiving, so as to be used as a 485 function circuit, and the circuit can also have the function of self-transmission and self-reception.
[0038] The second 422 serial port chip and its peripheral circuit, wherein the A and Y channels of the second 422 serial port chip are shorted as positive for receiving or positive for transmitting, and the B and Z channels are shorted as negative for receiving or negative for transmitting, so as to be used as a 485 function circuit, and the circuit can also have the function of self-transmission and self-reception.
[0039] During the self-test process, the first 422 serial port chip and its peripheral circuit and the second 422 serial port chip and its peripheral circuit are short-circuited and then used to send or receive independently. When used together, they reconstruct a self-test path with 422 serial port communication function.
[0040] The processor is used to send detection signals to the servo drive controller under test based on the constructed self-test path, and to receive detection signals fed back by the servo drive controller under test. The sent self-test signals are compared with the received detection signals to complete the self-test.
[0041] Specifically, the self-test circuit design for general communication interfaces is suitable for 422 or 485 serial communication interfaces. The overall principle block diagram is as follows: Figure 3As shown, this embodiment utilizes two 422 serial port chips in combination. The A and Y channels (positive for receiving and positive for transmitting) and the B and Z channels (negative for receiving and negative for transmitting) of each 422 serial port chip are shorted together. This transforms the 422 chip and its peripheral circuitry into a new 485 serial port circuit (hereinafter referred to as the "485 functional circuit"). The two 485 functional circuits are used together, one for transmitting and the other for receiving, operating independently to achieve full-duplex operation. Their combined use reconstructs the functionality of 422 serial communication.
[0042] This application's sensor interface self-test circuit design is suitable for angle sensors using the 485 serial communication protocol. This embodiment of the application implements a self-test circuit in hardware and a self-test strategy in software, enabling real-time background self-testing and feedback of the self-test status.
[0043] In some embodiments, for the self-test of the drive module interface, the processor is further configured to, during motor control, determine the required given duty cycle based on internal control calculations, and generate the logic terminal control signals required by the drive chip based on the given duty cycle. For example... Figure 4 As shown, the signal passes through an optocoupler isolation circuit and then enters the driver chip to drive the motor. The power output of the driver chip is sampled, and then fed back to the processor through another optocoupler isolation circuit. The processor internally measures the duty cycle of this signal, compares the obtained duty cycle feedback value with the duty cycle setpoint, and completes a self-test.
[0044] like Figure 1 As shown, the self-test loop of this application is located at the outermost end of the drive controller, and the self-test range covers all channels, ensuring 100% coverage of all chips. That is, as long as the self-test circuit succeeds, it ensures that all chips on the controller, including the power supply, are functioning correctly. Using the self-test device of this application in complex systems, it is possible to quickly and effectively locate whether a system fault occurs in the controller itself, and complete the replacement.
[0045] This application also proposes a self-testing method for a servo drive controller, which utilizes the aforementioned self-testing device for the servo drive controller and employs the following steps to achieve self-testing of the servo drive controller:
[0046] Using the first 422 serial port chip and its peripheral circuit or the second 422 serial port chip and its peripheral circuit of the self-test device of the servo drive controller, a preset self-test signal is sent to the servo drive controller to be tested.
[0047] The detection signal fed back by the servo drive controller under test is received by the second 422 serial port chip and its peripheral circuit or the first 422 serial port chip and its peripheral circuit of the self-test device of the servo drive controller.
[0048] The processor compares the sent self-test signal with the received detection signal to complete the self-test.
[0049] In some embodiments, the driver module interface self-test further includes:
[0050] Using a processor, the required given duty cycle is determined, and the logic control signals required by the driver chip are generated based on the given duty cycle. The control signals are then sent to the driver chip, and the power output of the driver chip is sampled. The duty cycle of the sampled signal is calculated, and the calculated duty cycle is compared with the given duty cycle to complete the self-test.
[0051] In some embodiments, it also includes:
[0052] For standard interface self-tests, the receiving channel performs a self-test immediately after the external control and debugging interface receives or sends a command. When the external control and debugging interface receives a command, the receiving channel performs a self-test immediately, without affecting the controller's data feedback. Similarly, when it sends a feedback message, the transmitting channel also performs a self-test immediately, without affecting the reception of the next command.
[0053] For sensor interface self-testing, the processor's internal sensor is used to perform timed sampling, such as 1ms timed sampling. When the internal sensor interface completes an information query, a reception completion pulse is generated. Based on the reception completion pulse, the self-test of the interface is triggered. This method does not affect the next sensor sampling communication.
[0054] In some embodiments, it also includes:
[0055] If the servo drive system does not send or receive commands within a preset time, such as 10 seconds, a timed self-test will be initiated.
[0056] Upon the arrival of a new command, the timed self-check is deactivated, and the routine self-check is completed during the command transmission and reception process. When a new command arrives, the timed self-check is automatically deactivated, and the routine self-check is completed during the command transmission and reception process, with higher priority.
[0057] The self-testing device of this application features a hardware-based self-testing circuit design, while the self-testing method implements the self-testing strategy in software. This enables real-time self-testing in the background and provides feedback on the self-testing status. The self-testing method comprehensively covers all signal paths and every component on the drive controller. In other words, as long as the self-testing circuit succeeds, it ensures that all chips on the controller, including the power supply, are functioning correctly.
[0058] The self-testing method described in this application allows the system to quickly pinpoint the fault to the smallest replaceable unit (the drive controller itself) once the controller sends a fault report. This effectively reduces system troubleshooting time and improves system maintainability and testability. Furthermore, by querying the self-test status feedback, the fault in the controller can be located to a specific module or stage in the hardware circuit design.
[0059] This application also proposes a servo drive control system, including a processor that requires embedded software programming. When the embedded software program is executed by the processor, it implements the steps of the self-test method for the servo drive controller as described above.
[0060] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0061] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0062] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0063] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims. All of these forms are within the protection scope of this application.
Claims
1. A self-checking device for a servo drive controller, characterized by, include: The first 422 serial port chip and its peripheral circuit, wherein the A and Y channels of the first 422 serial port chip are shorted as positive for transmission or positive for reception, and the B and Z channels are shorted as negative for transmission or negative for reception, so as to be used as a 485 function circuit. The second 422 serial port chip and its peripheral circuit, wherein the A and Y channels of the second 422 serial port chip are shorted as positive for receiving or positive for transmitting, and its B and Z channels are shorted as negative for receiving or negative for transmitting, so as to be used as a 485 function circuit. During the self-test process, the first 422 serial port chip and its peripheral circuit and the second 422 serial port chip and its peripheral circuit are short-circuited and then used to send or receive independently, so as to construct a self-test path with 422 serial port communication function. The processor is used to send detection signals to the servo drive controller under test based on the constructed self-test path, and to receive detection signals fed back by the servo drive controller under test. The sent self-test signals are compared with the received detection signals to complete the self-test. For the self-test of the driver module interface, the processor is further configured to: determine the required given duty cycle, generate the logic terminal control signal required by the driver chip based on the given duty cycle, send the control signal to the driver chip, sample the power output of the driver chip, calculate the duty cycle of the sampled signal, and compare the calculated duty cycle with the given duty cycle to complete the self-test.
2. A method of self-checking a servo drive controller, characterized by, Using the self-testing device of the servo drive controller as described in claim 1, the self-testing of the servo drive controller is achieved through the following steps: Using the first 422 serial port chip and its peripheral circuit or the second 422 serial port chip and its peripheral circuit of the self-test device of the servo drive controller, a preset self-test signal is sent to the servo drive controller to be tested. The detection signal fed back by the servo drive controller under test is received by the second 422 serial port chip and its peripheral circuit or the first 422 serial port chip and its peripheral circuit of the self-test device of the servo drive controller. The processor compares the sent self-test signal with the received detection signal to complete the self-test. For driver module interface self-test, it also includes: Using a processor, the required given duty cycle is determined, and the logic control signals required by the driver chip are generated based on the given duty cycle. The control signals are then sent to the driver chip, and the power output of the driver chip is sampled. The duty cycle of the sampled signal is calculated, and the calculated duty cycle is compared with the given duty cycle to complete the self-test.
3. The self-test method for the servo drive controller as described in claim 2, characterized in that, Also includes: For ordinary interface self-test, the receiving channel is immediately self-tested when the external control and debugging interface has just received or sent an instruction. For sensor interface self-test, the processor's internal sensor is used to perform timed sampling. When the internal sensor interface completes an information query, a reception completion pulse is generated, and the self-test of the interface is triggered based on the reception completion pulse.
4. The self-testing method for the servo drive controller as described in claim 2, characterized in that, Also includes: If the servo drive system does not send or receive commands within a preset time, a timed self-test will be initiated. Upon the arrival of a new instruction, the timed self-test is deactivated, and a routine self-test is performed during the instruction transmission and reception process.
5. A servo drive control system, characterized in that, Includes a processor, which requires embedded software programming, wherein the embedded software program, when executed by the processor, implements the steps of the self-test method for the servo drive controller as described in any one of claims 2 to 4.
Citation Information
Patent Citations
Self-checking serial communication system and self-checking method thereof
CN101520744A
Servo loop builtin test who adopts optical coupling isolation surveys device
CN208156463U
Programmable controller programming communication interface device
CN212846475U
