Drive return to zero test method, device, equipment, medium and computer program product
By receiving and processing the home mode, motion trajectory and detection position in the drive home test command, the test plan is generated and automatic or semi-automatic testing is performed, which solves the problem of missing tests in the EtherCAT drive home test and improves the accuracy and accuracy of the test. Comprehensiveness.
Patent Information
- Application Number
- CN202110992106.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-26
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-08-26
AI Technical Summary
In the field of industrial control technology, during the zero-return test of EtherCAT bus-type drives, due to the complex motion trajectories and many signal anomalies, it is difficult for testers to fully consider it, and it is easy to miss measurements, which in turn affects the accuracy of the zero-return test.
Provides a drive zero return test method. By receiving test instructions, it obtains the zero return mode, motion trajectory and detection position, generates a test plan, and performs the zero return test according to the test type (automatic or semi-automatic) to identify and feedback abnormal situations to avoid Missed tests from manual one-by-one testing.
The accuracy of the drive zero return test is improved, missed tests are reduced, and the comprehensiveness and reliability of the test are enhanced.
Smart Images

Figure CN113866535B
Abstract
Description
Technical Field
[0001] The present application relates to the field of industrial control technology, and in particular to a drive return-to-zero test method, device, equipment, medium and computer program product. Background Art
[0002] In the current field of industrial control technology, drive testers manually combine various return-to-zero modes with motion trajectories and signal anomalies to perform return-to-zero tests on the drive. However, the motion trajectory of EtherCAT (Ethernet Control Automation Technology) bus-type drives in return-to-zero mode is relatively complex and there are many signal anomalies. Therefore, during the return-to-zero test, testers often fail to consider everything carefully, and it is easy to miss tests during the drive testing phase, resulting in insufficient accuracy of the drive return-to-zero test, which is not conducive to the after-sales maintenance of the drive product. Summary of the invention
[0003] The main purpose of the present application is to provide a drive return-to-zero test method, device, equipment, medium and computer program product, aiming to solve the technical problem of insufficient accuracy of the drive return-to-zero test.
[0004] To achieve the above object, an embodiment of the present application provides a drive return to zero test method, the drive return to zero test method comprising:
[0005] Receive a drive return to zero test instruction, and obtain drive return to zero test information in the drive return to zero test instruction, wherein the drive return to zero test information includes a return to zero mode, a motion trajectory, and a detection position;
[0006] Generate a drive return to zero test scheme based on the return to zero mode, motion trajectory, and detection position in the drive return to zero test information;
[0007] A return-to-zero test is performed on the drive to be tested corresponding to the drive return-to-zero test instruction according to the drive return-to-zero test scheme.
[0008] Preferably, the step of performing a return-to-zero test on the drive to be tested corresponding to the drive return-to-zero test instruction according to the drive return-to-zero test scheme includes:
[0009] Identify the test type of the drive return to zero test instruction, the test type including automatic test and semi-automatic test;
[0010] If the test type is an automatic test, a return-to-zero test is performed on the drive to be tested corresponding to the drive return-to-zero test instruction based on the drive return-to-zero test scheme in combination with a preset switch signal.
[0011] Preferably, the step of performing a return-to-zero test on the drive to be tested corresponding to the drive return-to-zero test instruction based on the drive return-to-zero test scheme in combination with a preset switch signal comprises:
[0012] Based on the drive return to zero test scheme and a preset switch signal, a return to zero test is performed on the drive to be tested corresponding to the drive return to zero test instruction;
[0013] Detecting whether the drive to be tested has an abnormality during the return-to-zero test;
[0014] If the drive to be tested has an abnormality, an abnormality feedback is performed and the abnormality information of the drive to be tested is recorded.
[0015] Preferably, after the step of identifying the test type of the drive return to zero test instruction, the method further includes:
[0016] If the test type is a semi-automatic test, obtaining a switch signal instruction;
[0017] A return-to-zero test is performed on the drive to be tested corresponding to the drive return-to-zero test instruction according to the target switch signal in the switch signal instruction and in combination with the drive return-to-zero test scheme.
[0018] Preferably, before the step of receiving the drive return to zero test instruction, the method further includes:
[0019] The preset driving return to zero test information is displayed based on the preset human-computer interaction interface, so that the user can select corresponding driving return to zero test information from the preset driving return to zero test information and generate a driving return to zero test instruction.
[0020] Preferably, the return-to-zero mode is one of a plurality of preset return-to-zero modes.
[0021] To achieve the above object, the present application also provides a drive return to zero test device, the drive return to zero test device comprising:
[0022] A human-computer interaction unit, configured to receive a drive return to zero test instruction, and obtain drive return to zero test information in the drive return to zero test instruction, wherein the drive return to zero test information includes a return to zero mode, a motion trajectory, and a detection position;
[0023] A motion control unit, used for generating a driving return-to-zero test scheme based on the return-to-zero mode, the motion trajectory, and the detection position;
[0024] The motion control unit is further used to perform a return to zero test on the drive to be tested corresponding to the drive return to zero test instruction according to the drive return to zero test scheme.
[0025] Furthermore, to achieve the above-mentioned purpose, the present application also provides a drive return to zero test device, which includes a memory, a processor, and a drive return to zero test program stored in the memory and executable on the processor, and the drive return to zero test program implements the steps of the above-mentioned drive return to zero test method when executed by the processor.
[0026] Furthermore, to achieve the above-mentioned purpose, the present application also provides a medium, which is a computer-readable storage medium, on which a drive return to zero test program is stored, and when the drive return to zero test program is executed by a processor, the steps of the above-mentioned drive return to zero test method are implemented.
[0027] Furthermore, to achieve the above-mentioned purpose, the present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned drive return to zero test method when executed by a processor.
[0028] The embodiment of the present application provides a drive return to zero test method, device, equipment, medium and computer program product, which receives a drive return to zero test instruction, obtains the drive return to zero test information in the drive return to zero test instruction, and the drive return to zero test information includes a return to zero mode, a motion trajectory, and a detection position; generates a drive return to zero test scheme based on the return to zero mode, motion trajectory, and detection position in the drive return to zero test information; and performs a return to zero test on the drive to be tested corresponding to the drive return to zero test instruction according to the drive return to zero test scheme. The present application can generate a drive return to zero test scheme based on the drive return to zero test information such as the return to zero mode, motion trajectory, and detection position in the drive return to zero test instruction sent by the user, and perform a return to zero test on the drive to be tested by generating a drive return to zero test scheme, thereby avoiding the situation where missed tests occur due to manually combining various return to zero modes with motion trajectories and signal abnormal points to perform return to zero tests on the drive one by one, and can improve the accuracy of the drive return to zero test. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 This is a schematic diagram of the structure of the hardware operating environment involved in the embodiment of the drive return to zero test method of the present application;
[0030] Figure 2 This is a flow chart of the first embodiment of the drive return to zero test method of the present application;
[0031] Figure 3 This is a flow chart of a second embodiment of the drive return-to-zero test method of the present application;
[0032] Figure 4 This is a functional module diagram of a preferred embodiment of the drive return to zero test device of the present application.
[0033] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0034] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0035] The embodiment of the present application provides a drive return to zero test method, device, equipment, medium and computer program product, which receives a drive return to zero test instruction, obtains the drive return to zero test information in the drive return to zero test instruction, and the drive return to zero test information includes a return to zero mode, a motion trajectory, and a detection position; generates a drive return to zero test scheme based on the return to zero mode, motion trajectory, and detection position in the drive return to zero test information; and performs a return to zero test on the drive to be tested corresponding to the drive return to zero test instruction according to the drive return to zero test scheme. The present application can generate a drive return to zero test scheme based on the drive return to zero test information such as the return to zero mode, motion trajectory, and detection position in the drive return to zero test instruction sent by the user, and perform a return to zero test on the drive to be tested by generating a drive return to zero test scheme, thereby avoiding the situation where missed tests occur due to manually combining various return to zero modes with motion trajectories and signal abnormal points to perform return to zero tests on the drive one by one, and can improve the accuracy of the drive return to zero test.
[0036] like Figure 1 As shown, Figure 1 It is a schematic diagram of the structure of the drive return to zero test equipment in the hardware operating environment involved in the embodiment of the present application.
[0037] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present application, and have no specific meanings. Therefore, "module", "component" or "unit" can be used in a mixed manner.
[0038] The drive return-to-zero test device in the embodiment of the present application may be a PC, or may be a portable terminal device such as a tablet computer or a portable computer.
[0039] like Figure 1As shown, the drive return to zero test device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0040] Those skilled in the art will understand that Figure 1 The structure of the drive return to zero test device shown in the figure does not constitute a limitation of the drive return to zero test device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0041] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a drive return-to-zero test program.
[0042] exist Figure 1 In the device shown, the network interface 1004 is mainly used to connect to the backend server and perform data communication with the backend server; the user interface 1003 is mainly used to connect to the client (user end) and perform data communication with the client; and the processor 1001 can be used to call the drive return to zero test program stored in the memory 1005 and perform the following operations:
[0043] Receive a drive return to zero test instruction, and obtain drive return to zero test information in the drive return to zero test instruction, wherein the drive return to zero test information includes a return to zero mode, a motion trajectory, and a detection position;
[0044] Generate a drive return to zero test scheme based on the return to zero mode, motion trajectory, and detection position in the drive return to zero test information;
[0045] A return-to-zero test is performed on the drive to be tested corresponding to the drive return-to-zero test instruction according to the drive return-to-zero test scheme.
[0046] Further, the step of performing a return-to-zero test on the drive to be tested corresponding to the drive return-to-zero test instruction according to the drive return-to-zero test scheme includes:
[0047] Identify the test type of the drive return to zero test instruction, the test type including automatic test and semi-automatic test;
[0048] If the test type is an automatic test, a return-to-zero test is performed on the drive to be tested corresponding to the drive return-to-zero test instruction based on the drive return-to-zero test scheme in combination with a preset switch signal.
[0049] Furthermore, the step of performing a return-to-zero test on the drive to be tested corresponding to the drive return-to-zero test instruction based on the drive return-to-zero test scheme in combination with a preset switch signal includes:
[0050] Based on the drive return to zero test scheme and a preset switch signal, a return to zero test is performed on the drive to be tested corresponding to the drive return to zero test instruction;
[0051] Detecting whether the drive to be tested has an abnormality during the return-to-zero test;
[0052] If the drive to be tested has an abnormality, an abnormality feedback is performed and the abnormality information of the drive to be tested is recorded.
[0053] Further, after the step of identifying the test type of the drive return to zero test instruction, the processor 1001 may be used to call the drive return to zero test program stored in the memory 1005, and perform the following operations:
[0054] If the test type is a semi-automatic test, obtaining a switch signal instruction;
[0055] A return-to-zero test is performed on the drive to be tested corresponding to the drive return-to-zero test instruction according to the target switch signal in the switch signal instruction and in combination with the drive return-to-zero test scheme.
[0056] Furthermore, before the step of receiving the drive return to zero test instruction, the processor 1001 may be used to call the drive return to zero test program stored in the memory 1005 and perform the following operations:
[0057] The preset driving return to zero test information is displayed based on the preset human-computer interaction interface, so that the user can select corresponding driving return to zero test information from the preset driving return to zero test information and generate a driving return to zero test instruction.
[0058] Furthermore, the return-to-zero mode is one of a plurality of preset return-to-zero modes.
[0059] In order to better understand the above technical solution, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0060] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0061] Reference Figure 2 The first embodiment of the present application provides a flow chart of a drive return to zero test method. In this embodiment, the drive return to zero test method includes the following steps:
[0062] Step S10, receiving a drive return to zero test instruction, and acquiring drive return to zero test information in the drive return to zero test instruction, wherein the drive return to zero test information includes a return to zero mode, a motion trajectory, and a detection position;
[0063] In this embodiment, the drive return to zero test method is applied to the drive return to zero test system. For the convenience of description, the drive return to zero test system will be referred to as the system in the following. Furthermore, in this embodiment, the system includes a human-computer interaction unit and a motion control unit, and the human-computer interaction unit and the motion control unit are connected in communication to perform data interaction, wherein the human-computer interaction unit is used to interact with the user by providing a human-computer interaction interface to meet the user's test needs, and the motion control unit in this embodiment can be a positive motion control unit, which is used to receive the test information transmitted by the human-computer interaction unit as a master station and generate a test plan according to the received test information to perform a return to zero test on the drive as a slave station, wherein the motion control unit as the master station can be connected to the drive as a slave station through Ethernet.
[0064] It can be understood that before step S10, the following steps are also included:
[0065] Step A: displaying preset drive return to zero test information based on a preset human-computer interaction interface, so that the user can select corresponding drive return to zero test information from the preset drive return to zero test information and generate a drive return to zero test instruction.
[0066] In this embodiment, the system displays a preset human-machine interaction interface through a preset human-machine interaction unit, wherein the preset human-machine interaction interface displays preset drive return to zero test information. Specifically, the preset drive return to zero test information in this embodiment includes multiple preset return to zero modes, multiple motion trajectories, multiple detection positions, return to original speed, query speed, return to original acceleration and deceleration, origin compensation, etc. In this embodiment, the existing 32 return to zero modes and 3 motion trajectories can be included, specifically including return to zero modes 1-14, 17-30, 33-35, 37, etc., and motion trajectories A, B, C, etc. The detection position is located in the running path of the driven motor. Specifically, the running path of the motor can be divided into multiple distances, and a position number is assigned to each distance to detect the state of the drive when an abnormal signal appears at the position. Among the 32 return-to-zero modes in this embodiment, return-to-zero modes 1-14, return-to-zero mode 33, return-to-zero mode 34 and other return-to-zero modes contain Z-phase signals. The Z-phase signal refers to an encoder for measuring the motor speed in the servo motor. The encoder generally outputs A phase, B phase, Z phase, U phase, V phase, W phase and their reverse signals. When the motor shaft rotates a full circle, the Z-phase signal outputs a pulse, which is often used to indicate the origin of the shaft rotation. The return-to-origin speed is the speed at which the driven motor starts to run to the origin signal position, the query speed is the second speed of the driven motor after reaching the origin signal position, the return-to-origin acceleration and deceleration is the speed of deceleration when reaching the return-to-origin signal position and the speed of acceleration when leaving the return-to-origin signal position, and the origin compensation is to compensate a distance at the origin signal position when the motor stops as the final origin position. The preset human-computer interaction interface also includes the corresponding icons of each return to zero mode, so that the user can determine the return to zero mode to be selected according to the icons. The preset human-computer interaction interface also includes information such as control word, status word, control mode, current mode, current position and current speed, so that the user can intuitively view the operating status of the drive. The running direction and running rules of the motor to be tested in different return to zero modes are different, and different motion trajectories require different starting positions of the motor.
[0067] In the system of this embodiment, at least 32 return-to-zero modes and 3 motion trajectories are provided, wherein different return-to-zero modes may correspond to different drive products. Therefore, the user may select a corresponding return-to-zero mode from a plurality of return-to-zero modes and a corresponding motion trajectory from a plurality of motion trajectories according to the drive product to be tested to perform a return-to-zero test on the drive product, thereby improving the test compatibility of the system with different drive products.
[0068] According to the actual return to zero test requirements and test points, the user can select the corresponding return to zero mode, motion trajectory and detection position in the preset drive return to zero test information displayed in the preset human-computer interaction interface, and set the return to original speed, query speed, return to original acceleration and deceleration, origin compensation and other information. After completing the selection and setting of the drive return to zero test information, the user can switch the test mode to "manual test" by clicking the "automatic test" button in the human-computer interaction interface, or click the "manual test" button to switch the test mode to "automatic test". After confirming the test mode, the preset "return to original start" button sends the drive return to zero test instruction to the system, so that when the system receives the drive return to zero test instruction, it automatically generates a drive return to zero test plan according to the drive return to zero test information in the drive return to zero test instruction, and performs a return to zero test on the drive to be tested according to the drive return to zero test plan. Among them, if the user selects the "manual test" test mode and then clicks the "return to original start" button to send the drive return to zero test instruction to the system, it means that the user selects semi-automatic test, and the user needs to send the corresponding switch signal instruction through the signal switch button or external sensor signal during the return to zero test so that the drive to be tested can smoothly perform the return to zero test; if the user selects the "automatic test" test mode and then clicks the "return to original start" button to send the drive return to zero test instruction to the system, it means that the user selects automatic test, and there is no need to send the signal switch instruction, and the system can automatically trigger the reversal of the input signal level to complete the return to zero test of the drive to be tested. The signal switch button in this embodiment can include an origin signal button, a positive limit signal button and / or a negative limit signal button.
[0069] Further, in step S10, the system receives the drive return to zero test instruction sent by the user through the human-computer interaction unit, and parses the drive return to zero test instruction through the human-computer interaction unit to obtain the drive return to zero test information in the drive return to zero test instruction, wherein the parsed drive return to zero test information at least includes information such as return to zero mode, motion trajectory, detection position, and return to original speed, query speed, return to original acceleration and deceleration, origin compensation, and other information. In this embodiment, the return to original mode is one of a plurality of preset return to original modes, for example, it can be return to original mode 24 among 32 return to original modes; in this embodiment, the motion trajectory can be one of motion trajectories A, B, and C; in this embodiment, the detection position can be one of a plurality of detection positions, and it can be understood that the user can also choose not to detect the position, that is, it is not necessary to detect abnormal signal points. By obtaining the drive return to zero test information in the drive return to zero test instruction, it is convenient to automatically generate a drive return to zero test scheme according to the drive return to zero test information and perform a return to zero test on the drive to be tested, so as to avoid the situation that the drive return to zero test is missed due to the manual combination of various return to zero modes with motion trajectories and signal abnormal points, and the accuracy of the drive return to zero test can be improved.
[0070] Step S20, generating a driving return to zero test scheme based on the return to zero mode, motion trajectory, and detection position in the driving return to zero test information;
[0071] In step S20, after the drive return to zero test information is acquired, the system transmits the drive return to zero test information to the motion control unit through the human-computer interaction unit, and generates a drive return to zero test scheme based on the return to zero mode, motion trajectory, and detection position in the drive return to zero test information through the motion control unit. Specifically, the system generates a drive return to zero test scheme based on the return to zero mode, motion trajectory, detection position and other drive return to zero test information selected by the user and combined with the return to original speed, query speed, return to original acceleration and deceleration, origin compensation and other drive return to zero test information set by the user through the motion control unit. For example: the system generates a drive return to zero test scheme based on the return to zero mode 24, motion trajectory A, detection position No. 1 selected by the user and the return to original speed 60, query speed 30, return to original acceleration and deceleration 20 and origin compensation 0.1 and other drive return to zero test information set by the user, so that the drive to be tested is automatically returned to zero according to the drive return to zero test scheme in the future, avoiding the situation of missing test caused by manually combining various return to zero modes with motion trajectories and signal abnormal points to return to zero test the drive one by one, which can improve the accuracy of the drive return to zero test.
[0072] Step S30 , performing a return-to-zero test on the drive to be tested corresponding to the drive return-to-zero test instruction according to the drive return-to-zero test scheme.
[0073] After generating the drive return to zero test scheme, the system performs a return to zero test on the drive to be tested according to the generated drive return to zero test scheme through the motion control unit through the communication relationship between the motion control unit and the drive to be tested corresponding to the drive return to zero test instruction. Specifically, when performing a return to zero test on the drive to be tested according to the drive return to zero test scheme, two test types are included: automatic test and semi-automatic test. The automatic test is to perform a return to zero test on the drive to be tested according to a pre-set switch signal in the return to zero test process in cooperation with the drive return to zero test scheme, while the semi-automatic test requires the user to give a corresponding switch signal according to the actual situation in cooperation with the drive return to zero test scheme to perform a return to zero test on the drive to be tested during the return to zero test process. After the return to zero test is completed, the test result is displayed, and the test result includes abnormality and no abnormality. No abnormality means that the operating information of the drive to be tested during the return to zero test process is consistent with the operating information specified in the drive return to zero test scheme, and abnormality means that the operating information of the drive to be tested during the return to zero test process is inconsistent with the operating information specified in the drive return to zero test scheme. By generating a drive return-to-zero test plan to perform a return-to-zero test on the drive to be tested, the accuracy of the drive return-to-zero test can be improved by avoiding missed tests caused by manually combining various return-to-zero modes with motion trajectories and signal abnormal points to perform return-to-zero tests on the drive one by one.
[0074] The present embodiment provides a drive return to zero test method, device, equipment, medium and computer program product, which receive a drive return to zero test instruction, obtain the drive return to zero test information in the drive return to zero test instruction, and the drive return to zero test information includes a return to zero mode, a motion trajectory, and a detection position; generate a drive return to zero test scheme based on the return to zero mode, motion trajectory, and detection position in the drive return to zero test information; and perform a return to zero test on the drive to be tested corresponding to the drive return to zero test instruction according to the drive return to zero test scheme. The present application can generate a drive return to zero test scheme based on the drive return to zero test information such as the return to zero mode, motion trajectory, and detection position in the drive return to zero test instruction sent by the user, and perform a return to zero test on the drive to be tested by generating a drive return to zero test scheme, thereby avoiding the situation where missed tests occur due to manually combining various return to zero modes with motion trajectories and signal abnormal points to perform return to zero tests on the drive one by one, and can improve the accuracy of the drive return to zero test.
[0075] Further, refer to Figure 3 Based on the first embodiment of the drive return to zero test method of the present application, a second embodiment of the drive return to zero test method of the present application is proposed. In the second embodiment, the step of performing a return to zero test on the drive to be tested corresponding to the drive return to zero test instruction according to the drive return to zero test scheme includes:
[0076] Step S31, identifying the test type of the drive return to zero test instruction;
[0077] Step S32: If the test type is an automatic test, a return-to-zero test is performed on the drive to be tested corresponding to the drive return-to-zero test instruction based on the drive return-to-zero test scheme in combination with a preset switch signal.
[0078] Further, when the drive to be tested corresponding to the drive return to zero test instruction is subjected to a return to zero test according to the drive return to zero test scheme, since the user triggers the drive return to zero test instruction by selecting the corresponding button when sending the drive return to zero test instruction, the drive return to zero test instruction contains the test type of the return to zero test. Further, the system can determine the test type of the drive return to zero test instruction by identifying the information obtained by parsing the drive return to zero test instruction, wherein the test type includes automatic test and semi-automatic test in this embodiment. Further, if the test type of the drive return to zero test instruction is identified as an automatic test type, the system performs a return to zero test on the drive to be tested corresponding to the drive return to zero test instruction based on the drive return to zero test scheme in combination with a preset switch signal according to the communication connection relationship between the motion control unit and the drive to be tested, thereby realizing an automatic return to zero test on the drive to be tested, avoiding the situation of missing test caused by manually combining various return to zero modes with motion trajectories and signal abnormal points to perform return to zero test on the drive one by one, and improving the accuracy of the return to zero test of the drive, wherein the preset switch signal includes an origin signal, a positive limit signal and / or a negative limit signal.
[0079] Furthermore, the step of performing a return-to-zero test on the drive to be tested corresponding to the drive return-to-zero test instruction based on the drive return-to-zero test scheme in combination with a preset switch signal includes:
[0080] Step S321, performing a return-to-zero test on the drive to be tested corresponding to the drive return-to-zero test instruction based on the drive return-to-zero test scheme in combination with a preset switch signal;
[0081] Step S322, detecting whether the drive to be tested has an abnormality in the return-to-zero test;
[0082] Step S323: If the driver to be tested has an abnormality, abnormality feedback is performed and abnormal information of the driver to be tested is recorded.
[0083] Furthermore, the system performs a return to zero test on the drive to be tested corresponding to the drive return to zero test instruction based on the drive return to zero test scheme combined with a preset switch signal through the motion control unit according to the communication connection relationship between the motion control unit and the drive to be tested. Furthermore, the automatic test is divided into a conventional return to zero test and an abnormal return to zero test according to the detection position, wherein the conventional return to zero test is a return to zero test mode when the detection position is not detected, and the abnormal return to zero test is a return to zero test mode when the detection position is not detected. For example, when performing a conventional return to zero test, if the user selects return to zero mode 24, motion trajectory A and non-detection position, at this time, motion trajectory A requires that the starting position of the driven motor is between the origin signal and the negative limit signal. When the user selects "automatic test" and clicks the "return to origin start" button, the system generates a drive return to zero test plan based on return to zero mode 24, motion trajectory A, non-detection position and other set information, and controls the drive to be tested according to the drive return to zero test plan through the motion control unit. The motor to be tested then moves in the positive direction at the return to origin speed. During the movement, the motor will pass the origin signal position. At the moment of touching the origin signal, the motor will immediately decelerate and reverse at the query speed to leave the origin signal. At the moment of leaving the origin signal, it will decelerate again and reverse at the query speed to the moment the origin signal is triggered. If the motor mechanical origin position deviates from the origin signal by a certain distance, the origin compensation can be set before the return to origin start to stop the motor at the required distance position. After moving the origin compensation value, the drive to be tested will feedback the return to origin completion signal to the motion control unit, and the "return to origin start" button will reset and pop up. During the return to zero test, the system also needs to detect whether there is an abnormality in the drive to be tested. If the "return to original start" button is reset and pops up during the test, it means that there is no abnormality during the return to zero test, that is, the return to zero test of the drive to be tested is completed. If the "return to original start" button is always pressed during the return to zero test, it means that there is an abnormality in the logic of the drive to be tested. The pressed "auto test" button is used as an abnormal feedback indication, and the abnormal information of the drive to be tested is recorded. In this embodiment, the motion trajectory of the drive to be tested is recorded to feedback the abnormal motion trajectory to the R&D personnel for abnormality investigation.
[0084] For another example, when performing a conventional return to zero test, if the user selects return to zero mode 24, motion trajectory A and detection position No. 1, at this time, motion trajectory A requires that the starting position of the motor of the drive to be tested is between the origin signal and the negative limit signal. When the user clicks the "return to original start" button, the system generates a drive return to zero test plan based on return to zero mode 24, motion trajectory A, detection position No. 1 and other set information, and controls the drive to be tested according to the drive return to zero test plan through the motion control unit. The motor of the drive to be tested then moves in the positive direction at the return to original speed. During the movement, the motor will pass the origin signal position. At the moment of touching the origin signal, the motor will immediately decelerate and reverse to leave the origin signal at the query speed. Before leaving the origin signal, the abnormal signal (negative limit signal) is triggered. At this time, the motor needs to stop moving, and the drive to be tested does not feedback the original completion signal to the motion control unit. The "automatic test" button remains pressed, indicating that when there is an abnormal signal at detection position No. 1, the logic of the drive to be tested cannot process the abnormal signal, resulting in an abnormality in the running trajectory. At this time, the abnormal information of the drive to be tested is recorded.
[0085] Further, after the step of identifying the test type of the drive return to zero test instruction, the method further includes:
[0086] Step S33, if the test type is a semi-automatic test, obtaining a switch signal instruction;
[0087] Step S34 , performing a return-to-zero test on the drive to be tested corresponding to the drive return-to-zero test instruction according to the target switch signal in the switch signal instruction and the drive return-to-zero test scheme.
[0088] Further, the test type of the return to zero test also includes a semi-automatic test. If the test type is identified as a semi-automatic test, the system detects in real time whether there is a switch signal instruction triggered by a user selecting a signal switch button such as an origin signal button, a positive limit signal button, and / or a negative limit signal button through a human-computer interaction unit, or the system detects in real time whether there is a switch signal instruction triggered by a user using an origin signal sensor, a positive limit signal sensor, and / or a negative limit signal sensor through an external wiring. If there is, the origin signal, positive limit signal, and / or negative limit signal as the target switch signal in the switch signal instruction are obtained, and when the motor corresponding to the drive to be tested is controlled by the motion control unit according to the drive return to zero test scheme, the drive to be tested is tested by outputting the corresponding origin signal, positive limit signal, and / or negative limit signal to determine whether there is an abnormality in the drive to be tested. If there is no abnormality, the original completion signal is fed back to the motion control unit, and the "return to original start" button is reset and popped up to complete the abnormal return to zero test. If there is an abnormality, the original completion signal is not fed back to the motion control unit, the "return to original start" button is kept pressed, and the abnormal information of the drive to be tested is recorded.
[0089] This embodiment identifies the test type of the drive return to zero test instruction. If the test type is an automatic test, a return to zero test is performed on the drive to be tested corresponding to the drive return to zero test instruction based on the drive return to zero test scheme combined with a preset switch signal; if the test type is a semi-automatic test, a switch signal instruction is obtained; a return to zero test is performed on the drive to be tested corresponding to the drive return to zero test instruction according to the target switch signal in the switch signal instruction combined with the drive return to zero test scheme. By performing a return to zero test on the drive to be tested through automatic or semi-automatic testing, it is possible to avoid missed tests caused by manually combining various return to zero modes with motion trajectories and signal abnormal points to perform return to zero tests on the drive one by one, thereby improving the accuracy of the return to zero test of the drive.
[0090] Furthermore, the present application also provides a drive return to zero test device.
[0091] Reference Figure 4 , Figure 4 This is a functional module diagram of the first embodiment of the drive return to zero test device of the present application.
[0092] The drive return to zero test device comprises:
[0093] The human-computer interaction unit 10 is used to receive a drive return to zero test instruction and obtain drive return to zero test information in the drive return to zero test instruction, wherein the drive return to zero test information includes a return to zero mode, a motion trajectory, and a detection position;
[0094] A motion control unit 20, configured to generate a driving return-to-zero test scheme based on the return-to-zero mode, the motion trajectory, and the detection position;
[0095] The motion control unit 20 is further configured to perform a return-to-zero test on the drive to be tested corresponding to the drive return-to-zero test instruction according to the drive return-to-zero test scheme.
[0096] Furthermore, the human-computer interaction unit 10 includes:
[0097] The display module is used to display preset drive return to zero test information based on a preset human-computer interaction interface, so that the user can select corresponding drive return to zero test information from the preset drive return to zero test information and generate a drive return to zero test instruction.
[0098] Furthermore, the motion control unit 20 includes:
[0099] An identification module, used for identifying the test type of the drive return to zero test instruction, wherein the test type includes an automatic test and a semi-automatic test;
[0100] The first test module is used to perform a return to zero test on the drive to be tested corresponding to the drive return to zero test instruction based on the drive return to zero test scheme in combination with a preset switch signal if the test type is an automatic test.
[0101] Furthermore, the motion control unit 20 further includes:
[0102] A second test module, configured to perform a return-to-zero test on the drive to be tested corresponding to the drive return-to-zero test instruction based on the drive return-to-zero test scheme in combination with a preset switch signal;
[0103] A detection module, used for detecting whether the drive to be tested has an abnormality in the return-to-zero test;
[0104] The feedback module is used for providing abnormal feedback and recording abnormal information of the drive to be tested if the drive to be tested is abnormal.
[0105] Furthermore, the motion control unit 20 further includes:
[0106] An acquisition module, used for acquiring a switch signal instruction if the test type is a semi-automatic test;
[0107] The third test module is used to perform a return to zero test on the drive to be tested corresponding to the drive return to zero test instruction according to the target switch signal in the switch signal instruction and the drive return to zero test scheme.
[0108] In addition, the present application also provides a medium, which is preferably a computer-readable storage medium, on which a drive return to zero test program is stored. When the drive return to zero test program is executed by a processor, the steps of each embodiment of the above-mentioned drive return to zero test method are implemented.
[0109] In addition, the present application also provides a computer program product, including a computer program, which implements the steps of each embodiment of the above-mentioned drive return to zero test method when executed by a processor.
[0110] In the embodiments of the drive return to zero test device, computer readable medium and computer program product of the present application, all technical features of the above-mentioned drive return to zero test method embodiments are included, and the description and explanation content are basically the same as those of the above-mentioned drive return to zero test method embodiments, so they will not be repeated here.
[0111] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0112] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0113] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD), and includes several instructions to enable a terminal device (which can be a fixed terminal, such as an IoT smart device, including smart air conditioners, smart lights, smart power supplies, smart routers and other smart homes; it can also be a mobile terminal, including smart phones, wearable networked AR / VR devices, smart speakers, self-driving cars and many other networked devices) to execute the methods described in the various embodiments of the present application.
[0114] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A drive return to zero test method, characterized in that: The driving return to zero test method comprises: Receive a drive return to zero test instruction, and obtain drive return to zero test information in the drive return to zero test instruction, wherein the drive return to zero test information includes a return to zero mode, a motion trajectory, and a detection position; Generate a drive return to zero test scheme based on the return to zero mode, motion trajectory, and detection position in the drive return to zero test information; Performing a return-to-zero test on the drive to be tested corresponding to the drive return-to-zero test instruction according to the drive return-to-zero test scheme; The step of performing a return-to-zero test on the drive to be tested corresponding to the drive return-to-zero test instruction according to the drive return-to-zero test scheme comprises: Identify the test type of the drive return to zero test instruction, the test type including automatic test and semi-automatic test; If the test type is an automatic test, performing a return-to-zero test on the drive to be tested corresponding to the drive return-to-zero test instruction based on the drive return-to-zero test scheme in combination with a preset switch signal; The step of performing a return-to-zero test on the drive to be tested corresponding to the drive return-to-zero test instruction based on the drive return-to-zero test scheme in combination with a preset switch signal comprises: Based on the drive return to zero test scheme and a preset switch signal, a return to zero test is performed on the drive to be tested corresponding to the drive return to zero test instruction; Detecting whether the drive to be tested has an abnormality during the return-to-zero test; If the drive to be tested has an abnormality, an abnormality feedback is performed and abnormal information of the drive to be tested is recorded.
2. The drive return to zero test method according to claim 1, characterized in that: After the step of identifying the test type of the drive return to zero test instruction, the method further includes: If the test type is a semi-automatic test, obtaining a switch signal instruction; A return-to-zero test is performed on the drive to be tested corresponding to the drive return-to-zero test instruction according to the target switch signal in the switch signal instruction and the drive return-to-zero test scheme.
3. The drive return to zero test method according to claim 1, characterized in that: Before the step of receiving the driving return to zero test instruction, the method further includes: The preset driving return to zero test information is displayed based on the preset human-computer interaction interface, so that the user can select corresponding driving return to zero test information from the preset driving return to zero test information and generate a driving return to zero test instruction.
4. The drive return to zero test method according to claim 1, characterized in that: The return-to-zero mode is one of a plurality of preset return-to-zero modes.
5. A drive return to zero test device, characterized in that: The drive return to zero test device comprises: A human-computer interaction unit, configured to receive a drive return to zero test instruction, and obtain drive return to zero test information in the drive return to zero test instruction, wherein the drive return to zero test information includes a return to zero mode, a motion trajectory, and a detection position; A motion control unit, used for generating a driving return-to-zero test scheme based on the return-to-zero mode, the motion trajectory, and the detection position; The motion control unit is further used to perform a return-to-zero test on the drive to be tested corresponding to the drive return-to-zero test instruction according to the drive return-to-zero test scheme; The human-computer interaction unit includes a display module, and the display module is used to display preset drive return to zero test information based on a preset human-computer interaction interface, so that the user can select corresponding drive return to zero test information from the preset drive return to zero test information and generate a drive return to zero test instruction; The motion control unit includes an identification module, a first test module, a second test module, a detection module and a feedback module, wherein the identification module is used to identify the test type of the drive return to zero test instruction, and the test type includes automatic test and semi-automatic test; the first test module is used to perform a return to zero test on the drive to be tested corresponding to the drive return to zero test instruction based on the drive return to zero test scheme in combination with a preset switch signal if the test type is an automatic test; the second test module is used to perform a return to zero test on the drive to be tested corresponding to the drive return to zero test instruction based on the drive return to zero test scheme in combination with a preset switch signal; the detection module is used to detect whether the drive to be tested has an abnormality in the return to zero test; and the feedback module is used to perform abnormal feedback and record the abnormal information of the drive to be tested if the drive to be tested has an abnormality.
6. A drive return to zero test device, characterized in that: The drive return to zero test device includes a memory, a processor, and a drive return to zero test program stored in the memory and executable on the processor. When the drive return to zero test program is executed by the processor, the steps of the drive return to zero test method as described in any one of claims 1 to 4 are implemented.
7. A medium, the medium being a computer-readable storage medium, characterized in that: The computer-readable storage medium stores a drive return to zero test program, and when the drive return to zero test program is executed by a processor, the steps of the drive return to zero test method according to any one of claims 1 to 4 are implemented.
8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the drive return to zero test method as described in any one of claims 1 to 4 are implemented.
