Adjusting and testing method and device for two-axis stepping drive controller system
By obtaining technical indicator parameters, selecting optimized equipment, building a model and performing inverse analysis, the equipment selection and fault diagnosis problems of the two-axis stepper drive controller system were solved, the debugging efficiency was improved and the cost was reduced.
Patent Information
- Application Number
- CN202510997789.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-19
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2045-07-19
AI Technical Summary
In the existing technology, when building a two-axis stepper drive controller system based on the technical indicator parameters provided by the enterprise, it is inconvenient to select equipment accessories, resulting in low debugging efficiency and difficulty, and difficult fault diagnosis.
By obtaining technical indicator parameters, selecting optimized equipment, building a two-axis stepper drive controller model, generating a control strategy, comparing simulation and actual execution results, and adding fault models for inverse analysis, the optimal debugging solution is obtained.
Improves the on-site debugging efficiency of the two-axis stepper drive controller system and reduces time and labor costs.
Smart Images

Figure CN120686797A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of motor control, and in particular to a debugging method and device for a two-axis stepping drive controller system. Background Art
[0002] With the steady increase in demand for automated equipment and robotics, the demand for stepper motor drivers and pulse controllers, key drive components, has also increased accordingly. A two-axis stepper drive controller, integrating both the controller and driver, can effectively improve the operating performance of stepper motors. Furthermore, single-chip microcontrollers offer advantages such as low cost and a compact footprint. Typically, a two-axis stepper drive controller includes a stepper motor, stepper motor driver, encoder, reducer, sprocket, positioning code disc, positioning pins, and a cylinder.
[0003] When building a two-axis stepper drive controller system based on the technical indicator parameters provided by the enterprise, it is not convenient to select equipment accessories for the two-axis stepper drive controller system, and it is also not conducive to fault diagnosis during testing based on equipment accessories, which leads to reduced debugging efficiency and increased debugging difficulty of the two-axis stepper drive controller system. Summary of the Invention
[0004] In view of the shortcomings of the prior art described above, the purpose of the present invention is to provide a debugging method and device for a two-axis stepper drive controller system, which is used to solve the problem in the prior art that when building a two-axis stepper drive controller system based on the technical indicator parameters provided by the enterprise, it is not convenient to select equipment accessories for the two-axis stepper drive controller system, and it is also not conducive to fault diagnosis during testing based on equipment accessories, which leads to reduced debugging efficiency and increased debugging difficulty of the two-axis stepper drive controller system.
[0005] To achieve the above-mentioned purpose and other related purposes, the present invention provides a debugging method for a two-axis stepper drive controller system, comprising: obtaining technical indicator parameters; selecting optimization equipment according to the technical indicator parameters; constructing a two-axis stepper drive controller model according to the basic equipment and the optimization equipment; generating a control strategy according to the technical indicator parameters, the basic equipment and the optimization equipment; executing the control strategy through the two-axis stepper drive controller model to obtain a simulation execution result; comparing the actual execution result with the simulation execution result according to the actual execution results corresponding to the basic equipment and the optimization equipment to obtain a comparison result; when the comparison result is that the actual execution result and the simulation execution result are inconsistent, then according to the actual execution result, adding a corresponding fault model to the two-axis stepper drive controller model for inverse analysis to obtain the optimal two-axis stepper drive controller system debugging solution.
[0006] In one embodiment of the present invention, an optimized device is selected based on technical indicator parameters, including: determining the accuracy parameters of the device to be optimized and adjusted based on the technical indicator parameters; based on the equipment accuracy parameters, retrieving the accuracy parameter range table of the controller system spare parts, and selecting the controller system spare parts that meet the requirements as the optimized device.
[0007] In one embodiment of the present invention, according to the equipment accuracy parameters, the accuracy parameter range table of the controller system spare parts is retrieved, and the controller system spare parts that meet the requirements are selected as the optimized equipment, including: according to the accuracy parameter range table, the equipment accuracy parameters and the equipment type corresponding to the equipment accuracy parameters, selecting the accuracy parameter range corresponding to the equipment accuracy parameters under each equipment type ; According to the accuracy parameter range , get the controller system spare parts collection under each device type ; Collect controller system spare parts under different equipment types Combine to get spare parts combination ,in, Indicates the device to be selected. Indicates basic equipment, , The total number of components in the controller system; according to the spare parts combination The overall combination difficulty , select controller system spare parts that meet the requirements as optimized equipment.
[0008] In one embodiment of the present invention, according to the spare parts combination The overall combination difficulty , select the controller system spare parts that meet the requirements as the optimized equipment, including: according to the spare parts combination Every two spare parts and The difficulty of the combination ,spare parts Independent difficulty , get the spare parts combination The overall combination difficulty ,in, , Indicates the difficulty of the combination The corresponding first weight, Indicates independent difficulty The corresponding second weight; based on the comprehensive combination difficulty Minimum comprehensive combination difficulty , to obtain the minimum comprehensive combination difficulty Corresponding device to be selected As an optimization device.
[0009] In one embodiment of the present invention, a control strategy is generated based on technical indicator parameters, basic equipment and optimization equipment, including: based on the basic equipment and optimization equipment, calling executable control modes to form a control mode set; based on the technical indicator parameters, selecting a corresponding control mode from the control mode set; based on the technical indicator parameters, generating a first control parameter of the basic equipment and a second control parameter of the optimization equipment under the control mode; based on the control mode, the first control parameter and the second control parameter, to generate a control strategy.
[0010] In one embodiment of the present invention, based on the actual execution results corresponding to the basic device and the optimization device, before comparing the actual execution results with the simulated execution results, it also includes: sending the control strategy to the two-axis stepper drive controller system to control the execution of the control strategy; receiving the actual execution results of the basic device and the optimization device corresponding to the two-axis stepper drive controller system.
[0011] In one embodiment of the present invention, the actual execution results are compared with the simulation execution results according to the actual execution results corresponding to the basic equipment and the optimization equipment to obtain the comparison results, including: obtaining comparison items according to the technical indicator parameters, basic equipment and optimization equipment; extracting the actual execution results according to the comparison items to obtain the actual screening results; extracting the simulation execution results according to the comparison items to obtain the simulation screening results; comparing the actual screening results with the simulation screening results: when the actual screening results are consistent with the simulation screening results, the corresponding basic equipment, optimization equipment and corresponding control strategy are used as the optimal two-axis stepper drive controller system debugging plan as the comparison result; when the actual screening results are inconsistent with the simulation screening results, the inconsistent actual screening results and the simulated screening results, and the inconsistent actual screening results and the simulated screening results are used as the comparison results.
[0012] In one embodiment of the present invention, the actual execution results include a number of actual screening results corresponding to the technical indicator parameters, and a number of simulation screening results corresponding to the technical indicator parameters; according to the actual execution results, the corresponding fault model is added to the two-axis stepper drive controller model for inverse analysis to obtain the optimal two-axis stepper drive controller system debugging solution, including: according to the actual screening results and simulated screening results , get the corresponding difference comparison item , and difference comparison items Corresponding actual screening results and simulated screening results The first comparison difference between ,in, ; Compare the difference items Combine and query the fault model library to filter out the fault model set ; Set the fault model Each fault model in Perform random combinations to obtain random fault model combinations ; Combining random fault models It is added to the two-axis stepper drive controller model to obtain the abnormal controller model; according to the control strategy, the abnormal controller model is used for back analysis to obtain the optimal two-axis stepper drive controller system debugging solution.
[0013] In one embodiment of the present invention, according to the control strategy, an inverse analysis is performed through an abnormal controller model to obtain an optimal two-axis stepper drive controller system debugging solution, including: executing the control strategy through the abnormal controller model to obtain an abnormal execution result, wherein the abnormal execution result includes several abnormal screening results corresponding to technical indicator parameters ; According to the actual screening results and abnormal screening results , get the difference comparison item Corresponding actual screening results and abnormal screening results The second comparison difference between ,in, ; For the first comparison difference and the corresponding second comparison difference Perform difference calculation to get the difference value ; Compare items based on each difference The corresponding difference weight , and get the inversion difference ; When the inversion difference Less than the set value When , according to the inversion difference Corresponding random fault model combination , to obtain the corresponding two-axis stepper drive controller system debugging solution as the optimal two-axis stepper drive controller system debugging solution.
[0014] To achieve the above-mentioned purpose and other related purposes, the present invention also provides a debugging device for a two-axis stepper drive controller system, comprising: an acquisition unit for acquiring technical indicator parameters; a selection unit for selecting optimization equipment based on the technical indicator parameters; a construction unit for constructing a two-axis stepper drive controller model based on basic equipment and optimization equipment; a generation unit for generating a control strategy based on the technical indicator parameters, basic equipment and optimization equipment; an execution unit for executing the control strategy through the two-axis stepper drive controller model to obtain a simulation execution result; a comparison unit for comparing the actual execution result with the simulation execution result based on the actual execution results corresponding to the basic equipment and the optimization equipment to obtain a comparison result; and an analysis unit for adding a corresponding fault model to the two-axis stepper drive controller model for inverse analysis based on the actual execution result when the comparison result is that the actual execution result and the simulation execution result are inconsistent, so as to obtain the optimal two-axis stepper drive controller system debugging solution.
[0015] As described above, the debugging method and device of a two-axis stepper drive controller system of the present invention has the following beneficial effects: by utilizing the relevant technical indicator parameters provided by the enterprise to realize the selection of optimized equipment, it can be ensured that the selected optimized equipment is more conducive to forming a two-axis stepper drive controller system, and the query efficiency of the optimized equipment and basic equipment constituting the two-axis stepper drive controller system is improved. Then, based on the constructed two-axis stepper drive controller model and the two-axis stepper drive controller system in the actual scenario, the corresponding simulation execution results and actual execution results are obtained. Based on the comparison results of the simulation execution results and the actual execution results, a fault model can be generated and inverted in the two-axis stepper drive controller model to find the best matching two-axis stepper drive controller system abnormal debugging solution, thereby reducing the time cost and labor cost wasted in the on-site debugging of the two-axis stepper drive controller system and improving the on-site debugging efficiency of the two-axis stepper drive controller system. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A schematic flow chart of a debugging method for a two-axis stepper drive controller system provided by an embodiment of the present invention.
[0017] Figure 2 Shown is a structural block diagram of a debugging device for a two-axis stepping drive controller system provided by an embodiment of the present invention.
[0018] Figure 3 Shown is a structural schematic diagram of an electronic device according to an embodiment of the present invention.
[0019] Component number description
[0020] Electronic device 1; a debugging device 11 of a two-axis stepping drive controller system; a memory 12; a processor 13; an acquisition unit 111; a selection unit 112; a construction unit 113; a generation unit 114; an execution unit 115; a comparison unit 116; and an analysis unit 117. DETAILED DESCRIPTION
[0021] The following describes the embodiments of the present invention through specific examples. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments. The details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other unless they conflict.
[0022] It should be noted that the illustrations provided in the following embodiments are merely schematic illustrations of the basic concept of the present invention. Therefore, the illustrations only show components related to the present invention and are not drawn according to the number, shape, and size of components in actual implementation. In actual implementation, the type, quantity, and proportion of each component may be changed arbitrarily, and the component layout may also be more complex.
[0023] In the following description, numerous details are discussed to provide a more thorough explanation of the embodiments of the present invention. However, it will be apparent to those skilled in the art that the embodiments of the present invention may be practiced without these specific details. In other embodiments, well-known structures and devices are shown in block diagram form rather than in detail to avoid obscuring the embodiments of the present invention.
[0024] See also Figure 1 The present invention provides a debugging method for a two-axis stepper drive controller system. By selecting equipment for the two-axis stepper drive controller system according to relevant technical indicator parameters, the selected optimization equipment and basic equipment are used to realize the construction of the two-axis stepper drive controller model, and the generated control strategy is respectively run on the two-axis stepper drive controller model and the actual basic equipment and optimization equipment, so that the simulation execution result and the actual execution result can be obtained. By comparing the simulation execution result with the actual execution result, the fault model is inverted in the two-axis stepper drive controller model to determine the corresponding fault condition when the two-axis stepper drive controller system is running under the actual scenario corresponding to the basic equipment and the optimization equipment, so as to obtain the corresponding optimal two-axis stepper drive controller system debugging solution, thereby reducing the time cost and labor cost wasted in on-site debugging of the two-axis stepper drive controller system and improving the on-site debugging efficiency of the two-axis stepper drive controller system.
[0025] Figure 1 The flowchart of the debugging method of the two-axis stepper drive controller system in an exemplary embodiment of the present application is shown, which is applied to the debugging device of the two-axis stepper drive controller system, including steps S10 to S70. Figure 1 The technical solution of this application will be described in detail.
[0026] First, step S10 is executed to obtain technical indicator parameters.
[0027] The technical indicator parameters are provided by the enterprise and can be used to achieve a specific control mode or control trajectory. The technical indicator parameters can be obtained by uploading to the debugging device, or the debugging device can actively collect the technical indicator parameters.
[0028] Next, step S20 is executed to select an optimized device according to technical indicator parameters.
[0029] After the debugging device obtains the technical indicator parameters based on the two-axis stepper drive controller system provided by the enterprise, the two-axis stepper drive controller system can be further optimized according to the technical indicator parameters, so as to select the optimized equipment that can match the technical indicator parameters, and combine it with the basic equipment corresponding to the two-axis stepper drive controller system to realize the corresponding two-axis stepper drive controller system.
[0030] In step S20, selecting an optimized device according to technical indicator parameters may further include:
[0031] Determine the equipment accuracy parameters to be optimized based on technical indicator parameters;
[0032] According to the equipment accuracy parameters, retrieve the accuracy parameter range table of the controller system spare parts, and select the controller system spare parts that meet the requirements as the optimized equipment.
[0033] Controller system spare parts can include stepper motors, stepper motor drivers, encoders, speed reducers, sprockets, positioning encoders, positioning pins, and cylinders; of course, other equipment can also be included. When selecting optimized equipment based on technical indicators and parameters, you can first determine which types of equipment require optimization and adjustment based on the technical indicators and determine the accuracy parameters of the equipment to be optimized and adjusted. Then, based on the equipment accuracy parameters, select controller system spare parts that meet the requirements as optimized equipment. For example, the optimized equipment may include stepper motors and encoders, and the basic equipment may include stepper motor drivers, speed reducers, sprockets, positioning encoders, positioning pins, etc. Of course, the optimized equipment and basic equipment can also be selected in other ways based on technical indicators and parameters.
[0034] The method of retrieving the accuracy parameter range table of the controller system spare parts according to the equipment accuracy parameters and selecting the controller system spare parts that meet the requirements as the optimized equipment may further include:
[0035] According to the accuracy parameter range table, device accuracy parameters and the device type corresponding to the device accuracy parameters, select the accuracy parameter range corresponding to the device accuracy parameters under each device type. ;
[0036] According to the accuracy parameter range , get the controller system spare parts collection under each device type ;
[0037] Gather controller system spare parts for different equipment types Combine to get spare parts combination ,in, Indicates the device to be selected. Indicates basic equipment, , is the total number of devices in the controller system;
[0038] According to spare parts combination The overall combination difficulty , select controller system spare parts that meet the requirements as optimized equipment.
[0039] Each device type has many accuracy parameter ranges. When selecting the optimized device for the test device, you can first select the accuracy parameter range that matches the corresponding device accuracy parameter under each device type based on the accuracy parameter range table, device accuracy parameters, and device types corresponding to the device accuracy parameters. . Further based on the selected range of each precision parameter Corresponding controller system spare parts To combine and combine with basic equipment , so that controller system spare parts can be obtained and basic equipment After combination, the spare parts combination is formed Then, based on the spare parts combination To achieve comprehensive combination difficulty The calculation of the difficulty of the comprehensive combination Can effectively reflect the spare parts combination The difficulty of combining the spare parts can be calculated by combining the comprehensive combination difficulty , select the spare parts combination that is most conducive to forming a two-axis stepper drive controller system as the optimized equipment, so as to ensure that the selected optimized equipment is more conducive to forming a two-axis stepper drive controller system.
[0040] Specifically, according to the spare parts combination The overall combination difficulty , selecting controller system spare parts that meet the requirements as optimized equipment may further include:
[0041] According to spare parts combination Every two spare parts and The difficulty of the combination ,spare parts Independent difficulty , get the spare parts combination The overall combination difficulty ,in, , Indicates the difficulty of the combination The corresponding first weight, Indicates independent difficulty The corresponding second weight;
[0042] According to the comprehensive combination difficulty Minimum comprehensive combination difficulty , to obtain the minimum comprehensive combination difficulty Corresponding device to be selected As an optimization device.
[0043] In the process of selecting the optimized equipment through the commissioning device, based on the spare parts combination , obtain every two spare parts by querying the table or other methods and The difficulty of the combination , and each spare part Independent difficulty Then, based on the combination difficulty , Independent Difficulty , combination difficulty The corresponding first weight and independent difficulty The corresponding second weight , to calculate the spare parts combination The overall combination difficulty For different spare parts combinations The overall combined difficulty , we can further find the corresponding minimum comprehensive combination difficulty , so that the minimum comprehensive combination difficulty can be used Corresponding device to be selected As an optimization device. Through the minimum comprehensive combination of difficulty Corresponding device to be selected , which can minimize the number of devices to be selected and basic equipment The difficulty of the combination between them ensures that the equipment to be selected While maximizing the effectiveness of selection, it also minimizes manufacturing costs during assembly.
[0044] Next, step S30 is executed to construct a two-axis stepper drive controller model based on the basic equipment and the optimized equipment.
[0045] After the debugging device is optimized, a two-axis stepper drive controller model can be further constructed based on the basic equipment and the optimization equipment to simulate the operation of the two-axis stepper drive controller system, so that the actual operation problems of the two-axis stepper drive controller system can be fed back to the two-axis stepper drive controller model to feed back the actual operation problems of the two-axis stepper drive controller system, so as to quickly query the optimal two-axis stepper drive controller system debugging plan and improve the debugging and diagnosis efficiency of the two-axis stepper drive controller system.
[0046] Next, step S40 and step S50 are executed to generate a control strategy based on technical indicator parameters, basic equipment and optimization equipment; the control strategy is executed through the two-axis stepper drive controller model to obtain simulation execution results.
[0047] After determining the optimization equipment, the debugging device can further generate a corresponding control strategy based on the technical indicator parameters, basic equipment and optimization equipment, so as to conduct actual operation tests of the two-axis stepper drive controller system on site corresponding to the basic equipment and the optimization equipment respectively, and perform a virtual operation simulation of the two-axis stepper drive controller model at the same time, so as to obtain the actual execution results corresponding to the actual operation and the simulated execution results corresponding to the virtual operation, so as to compare the actual execution results with the simulated execution results to determine whether there are any operational problems in the actual operation and quickly determine a solution.
[0048] In step S40, a control strategy is generated based on the technical indicator parameters, basic equipment and optimization equipment, including: based on the basic equipment and optimization equipment, calling executable control modes to form a control mode set; based on the technical indicator parameters, selecting a corresponding control mode from the control mode set; based on the technical indicator parameters, generating a first control parameter of the basic equipment and a second control parameter of the optimization equipment under the control mode; based on the control mode, the first control parameter and the second control parameter, to generate a control strategy.
[0049] After determining the optimized device, the commissioning device may further generate a control strategy based on the technical indicator parameters, the basic device, and the optimized device. The commissioning device may first utilize the basic device and the optimized device to retrieve all executable control modes that meet the requirements of the current basic device and the optimized device through a table lookup to form a control mode set. The commissioning device may then select the control mode that best suits the technical indicator parameters based on the technical indicator parameters. Furthermore, based on the control mode and the technical indicator parameters, the commissioning device may select a first control parameter corresponding to the basic device and a second control parameter corresponding to the optimized device. Finally, the commissioning device may generate a control strategy based on the control mode, the first control parameter, and the second control parameter.
[0050] Based on the technical indicator parameters, the most appropriate control mode is selected. This can be done manually or by machine. For example, a neural network model can be established using the technical indicator parameters and a calibrated control mode to learn the optimal control mode. This model can then be used to predict the optimal control mode. The technical indicator parameters can then be used to further predict the control mode that best matches the technical indicator parameters, improving the efficiency of control mode selection.
[0051] Next, step S60 is executed to compare the actual execution result with the simulation execution result according to the actual execution results corresponding to the basic device and the optimization device to obtain a comparison result.
[0052] The commissioning system uses the two-axis stepper drive controller model to execute control strategies, generating simulated execution results. This strategy is then sent to the two-axis stepper drive controller system in a real-world scenario, constructed using basic and optimized equipment, to obtain the corresponding actual execution results. Furthermore, the actual execution results are compared with the simulated results to obtain a comparison result, which can then be used to determine the optimal commissioning solution for the two-axis stepper drive controller system.
[0053] Before step S60, that is, before comparing the actual execution result with the simulated execution result according to the actual execution results corresponding to the basic device and the optimization device, the following steps are further included:
[0054] Send the control strategy to the two-axis stepper drive controller system to control the execution of the control strategy;
[0055] Receive actual execution results of the basic device and optimization device corresponding to the two-axis stepper drive controller system.
[0056] Before comparing the actual execution results with the simulated execution results, when testing the two-axis stepper drive controller system in an actual scenario, the control strategy can be sent to the two-axis stepper drive controller system via the debugging device to control the two-axis stepper drive controller system in the actual scenario to execute the corresponding control strategy. Furthermore, during the process of the two-axis stepper drive controller system in the actual scenario executing the corresponding control strategy, the actual execution results of the basic equipment and optimization equipment corresponding to the two-axis stepper drive controller system will be sent to the debugging device, thereby enabling the debugging device to receive the actual execution results of the basic equipment and optimization equipment corresponding to the two-axis stepper drive controller system.
[0057] In step S60, the actual execution result is compared with the simulation execution result according to the actual execution results corresponding to the basic device and the optimization device to obtain a comparison result, including:
[0058] Obtain comparison items based on technical indicator parameters, basic equipment and optimized equipment;
[0059] Based on the comparison items, the actual execution results are extracted to obtain the actual screening results;
[0060] Extract the simulation execution results according to the comparison items to obtain the simulation screening results;
[0061] Compare actual screening results with simulated screening results:
[0062] When the actual screening results are consistent with the simulation screening results, the corresponding basic equipment, optimized equipment, and corresponding control strategy are used as the optimal two-axis stepper drive controller system debugging scheme as the comparison result;
[0063] When the actual screening result is inconsistent with the simulated screening result, the inconsistent actual screening result and the simulated screening result, and the inconsistent actual screening result and the simulated screening result are used as comparison results.
[0064] When comparing the actual execution results with the simulated execution results, the debugging device can filter the comparison items required for comparison based on the technical indicator parameters, basic equipment, and optimization equipment. The comparison items are the parameter value types required for comparison, determined based on the technical indicator parameters, basic equipment, and optimization equipment. Then, based on the comparison items, the actual execution results and simulated execution results are extracted, respectively, to obtain actual screening results and simulated screening results. Furthermore, the actual screening results are compared with the simulated screening results to determine whether they are consistent. If the actual screening results are consistent with the simulated screening results, it indicates that the deviation of the two-axis stepper drive controller system in the actual scenario is small. The optimal two-axis stepper drive controller system debugging solution can be directly determined based on the basic equipment, optimization equipment, and corresponding control strategy, i.e., output as the comparison result. If the actual screening results are inconsistent with the simulated screening results, the inconsistency between the actual screening results and the simulated screening results, as well as the corresponding actual screening results and simulated screening results, are used as comparison results for inverse analysis to determine the optimal two-axis stepper drive controller system debugging solution.
[0065] Next, step S70 is executed. When the comparison result shows that the actual execution result and the simulated execution result are inconsistent, the corresponding fault model is added to the two-axis stepper drive controller model according to the actual execution result to perform inverse analysis to obtain the optimal two-axis stepper drive controller system debugging solution.
[0066] By utilizing the debugging device, when the comparison result shows that the actual execution result and the simulated execution result are inconsistent, the actual execution result can be utilized in combination with the two-axis stepper drive controller model with the corresponding fault model added to perform an inverse analysis of the abnormal result, thereby determining the fault information that affects the abnormality of the two-axis stepper drive controller system in the actual scenario, and thereby retrieving the optimal two-axis stepper drive controller system debugging solution.
[0067] The actual execution results include several actual screening results corresponding to the technical indicator parameters and several simulated screening results corresponding to the technical indicator parameters.
[0068] In step S70, based on the actual execution results, a corresponding fault model is added to the two-axis stepper drive controller model for inverse analysis to obtain the optimal two-axis stepper drive controller system debugging solution, including:
[0069] According to the actual filter results and simulated screening results , get the corresponding difference comparison item , and difference comparison items Corresponding actual screening results and simulated screening results The first comparison difference between ,in, ;
[0070] Compare the difference Combine and query the fault model library to filter out the fault model set ;
[0071] Fault model collection Each fault model in Perform random combinations to obtain random fault model combinations ;
[0072] Combining random failure models Add it to the two-axis stepper drive controller model to obtain the abnormal controller model;
[0073] According to the control strategy, back analysis is performed through the abnormal controller model to obtain the optimal two-axis stepper drive controller system debugging solution.
[0074] In the process of selecting the optimal two-axis stepper drive controller system debugging solution, by using the actual screening results and simulated screening results Compare the differences of each comparison item to get the first comparison difference . And in the first comparison difference In each first comparison difference Both are greater than the set value to avoid the first comparison difference The value is too small, which increases the calculation load of the system. The first comparison difference , the corresponding difference comparison items in the comparison items can be determined Then, by comparing the difference By freely combining, different fault models can be obtained, and then a set of fault models can be formed. Then the fault model set Each fault model in Perform random combinations to determine random fault model combinations Among them, the random fault model combination Each random fault model in can be composed of a single fault model It can also be composed of multiple fault models Combined to ensure the final use of random fault model combination The accuracy of the two-axis stepper drive controller model is verified. Afterwards, they are added to the two-axis stepper drive controller model in turn to generate an abnormal controller model. Then, the abnormal controller model is run through the control strategy for inverse analysis, and the optimal two-axis stepper drive controller system debugging solution can be further obtained.
[0075] Specifically, based on the control strategy, an inverse analysis is performed on the abnormal controller model to obtain the optimal two-axis stepper drive controller system debugging solution, including:
[0076] The abnormal controller model executes the control strategy to obtain the abnormal execution results, among which the abnormal execution results include several abnormal screening results corresponding to the technical indicator parameters. ;
[0077] According to the actual filter results and abnormal screening results , get the difference comparison item Corresponding actual screening results and abnormal screening results The second comparison difference between ,in, ;
[0078] Compare the difference between the first and the corresponding second comparison difference Perform difference calculation to get the difference value ;
[0079] Compare items based on each difference The corresponding difference weight , and get the inversion difference ;
[0080] When the inversion difference Less than the set value When , according to the inversion difference Corresponding random fault model combination , to obtain the corresponding two-axis stepper drive controller system debugging solution as the optimal two-axis stepper drive controller system debugging solution.
[0081] In the process of using the debugging device to determine the optimal two-axis stepper drive controller system debugging solution, when using the control strategy to run the abnormal controller model, the corresponding abnormal execution results can be obtained, and then further filtered through the comparison items, so that the abnormal screening results in the abnormal execution results can be obtained. Then, the actual screening results and abnormal screening results By comparing, we can get the comparison difference between the two, that is, the second comparison difference Then, further compare the first difference and the corresponding second comparison difference Perform difference calculation to obtain the difference value of the comparison difference . Further by using each difference comparison item The corresponding difference weight , we can get the overall inversion difference . And based on the inversion difference and set value Comparison between the inversion differences Less than the set value When the random fault model combination currently determined is It is a two-axis stepper drive controller system that meets the current actual scenario, and then based on the random fault model combination , to generate the corresponding two-axis stepper drive controller system debugging plan, as the optimal two-axis stepper drive controller system debugging plan, to achieve timely adjustment of the two-axis stepper drive controller system.
[0082] Please refer to 2. The present invention also provides a debugging device 11 for a two-axis stepper drive controller system, including: an acquisition unit 111 for acquiring technical indicator parameters; a selection unit 112 for selecting optimization equipment based on the technical indicator parameters; a construction unit 113 for constructing a two-axis stepper drive controller model based on basic equipment and optimization equipment; a generation unit 114 for generating a control strategy based on the technical indicator parameters, basic equipment and optimization equipment; an execution unit 115 for executing the control strategy through the two-axis stepper drive controller model to obtain a simulation execution result; a comparison unit 116 for comparing the actual execution result with the simulation execution result based on the actual execution results corresponding to the basic equipment and the optimization equipment to obtain a comparison result; and an analysis unit 117 for adding a corresponding fault model to the two-axis stepper drive controller model for inverse analysis based on the actual execution result when the comparison result is that the actual execution result and the simulation execution result are inconsistent, so as to obtain the optimal two-axis stepper drive controller system debugging solution.
[0083] It should be noted that the debugging device 11 of the two-axis stepper drive controller system provided in the above embodiment and the debugging method of the two-axis stepper drive controller system provided in the above embodiment are based on the same concept, wherein the specific manner in which each module and unit performs operations has been described in detail in the method embodiment and will not be repeated here. In actual application, the debugging device 11 of the two-axis stepper drive controller system provided in the above embodiment can, as needed, allocate the above functions to different functional modules, that is, divide the internal structure of the device into different functional modules to complete all or part of the functions described above, and this is not limited here.
[0084] See also Figure 3 The electronic device 1 may include a memory 12, a processor 13 and a bus, and may also include a computer program stored in the memory 12 and executable on the processor 13, such as a debugging program for a two-axis stepper drive controller system.
[0085] The memory 12 includes at least one type of readable storage medium, including flash memory, a removable hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 12 may be an internal storage unit of the electronic device 1, such as a removable hard disk of the electronic device 1. In other embodiments, the memory 12 may also be an external storage device of the electronic device 1, such as a plug-in removable hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash memory card, etc. equipped on the electronic device 1. Furthermore, the memory 12 may include both an internal storage unit of the electronic device 1 and an external storage device. The memory 12 can be used not only to store application software installed in the electronic device 1 and various data, such as the debugging code for the two-axis stepper drive controller system, but also to temporarily store data that has been output or is about to be output.
[0086] In some embodiments, the processor 13 may be comprised of an integrated circuit, such as a single packaged integrated circuit or multiple packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and a combination of various control chips. The processor 13 is the control core (control unit) of the electronic device 1. It utilizes various interfaces and circuits to connect the various components of the electronic device 1. It executes programs or modules stored in the memory 12 (such as a debugging program for a two-axis stepper drive controller system) and accesses data stored in the memory 12 to perform various functions and process data.
[0087] The processor 13 executes the operating system and various installed application programs of the electronic device 1. The processor 13 executes the application programs to implement the steps in the above-mentioned debugging method of the two-axis stepping drive controller system.
[0088] Exemplarily, the computer program may be divided into one or more modules, which are stored in the memory 12 and executed by the processor 13 to implement the present application. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, which describe the execution process of the computer program in the electronic device 1. For example, the computer program may be divided into units in a debugging device for a two-axis stepper drive controller system.
[0089] The above-mentioned integrated unit implemented in the form of a software functional module can be stored in a computer-readable storage medium, which can be either non-volatile or volatile. The above-mentioned software functional module is stored in a storage medium and includes a number of instructions for causing a computer device (which can be a personal computer, computer device, or network device, etc.) or a processor to perform part of the functions of the debugging method of the two-axis stepper drive controller system described in various embodiments of this application.
[0090] In summary, the present invention discloses a method and device for debugging a two-axis stepper drive controller system. By utilizing the relevant technical indicator parameters provided by the enterprise, the optimization equipment is selected, which can ensure that the selected optimization equipment is more conducive to forming the two-axis stepper drive controller system, and improve the query efficiency of the optimization equipment and basic equipment that constitute the two-axis stepper drive controller system. Then, based on the constructed two-axis stepper drive controller model and the two-axis stepper drive controller system in the actual scenario, the corresponding simulation execution results and actual execution results are obtained. Based on the comparison results of the simulation execution results and the actual execution results, a fault model can be generated, and inversion is performed in the two-axis stepper drive controller model to find the best debugging solution that matches the abnormality of the two-axis stepper drive controller system, thereby reducing the time cost and labor cost wasted when performing on-site debugging of the two-axis stepper drive controller system, and improving the on-site debugging efficiency of the two-axis stepper drive controller system. Therefore, the present invention effectively overcomes the various shortcomings of the prior art and has high industrial utilization value.
[0091] The above embodiments are merely illustrative of the principles and effects of the present invention and are not intended to limit the present invention. Anyone skilled in the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by one of ordinary skill in the art without departing from the spirit and technical principles disclosed herein are intended to be covered by the claims of the present invention.
Claims
1. A debugging method for a two-axis stepper drive controller system, characterized in that: include: Get technical indicator parameters; Select optimized equipment according to the technical index parameters; Based on the basic equipment and the optimized equipment, a two-axis stepper drive controller model is constructed; Generate a control strategy based on the technical indicator parameters, the basic equipment and the optimization equipment; Executing the control strategy through the two-axis stepper drive controller model to obtain simulation execution results; According to the actual execution results corresponding to the basic device and the optimization device, the actual execution result is compared with the simulation execution result to obtain a comparison result; When the comparison result shows that the actual execution result and the simulated execution result are inconsistent, the corresponding fault model is added to the two-axis stepper drive controller model for inverse analysis based on the actual execution result to obtain the optimal two-axis stepper drive controller system debugging solution.
2. The debugging method of the two-axis stepper drive controller system according to claim 1, characterized in that: According to the technical parameters, select the optimized equipment, including: Determine the equipment accuracy parameters to be optimized and adjusted based on the technical indicator parameters; According to the equipment accuracy parameters, the accuracy parameter range table of the controller system spare parts is retrieved, and the controller system spare parts that meet the requirements are selected as the optimized equipment.
3. The debugging method of the two-axis stepper drive controller system according to claim 2, characterized in that: According to the equipment accuracy parameters, calling the accuracy parameter range table of the controller system spare parts, and selecting the controller system spare parts that meet the requirements as the optimized equipment, including: According to the accuracy parameter range table, the device accuracy parameter and the device type corresponding to the device accuracy parameter, select the accuracy parameter range corresponding to the device accuracy parameter under each device type ; According to the accuracy parameter range , get the controller system spare parts collection under each device type ; The controller system spare parts collection under different equipment types Combine to get spare parts combination ,in, Indicates the device to be selected. Indicates basic equipment, , is the total number of devices in the controller system; According to the spare parts combination The overall combination difficulty , select the controller system spare parts that meet the requirements as the optimization equipment.
4. The debugging method of the two-axis stepper drive controller system according to claim 3, characterized in that: According to the spare parts combination The overall combination difficulty , selecting the controller system spare parts that meet the requirements as the optimization equipment, including: According to the spare parts combination Every two spare parts and The difficulty of the combination ,spare parts Independent difficulty , get the spare parts combination The overall combination difficulty ,in, , Indicates the difficulty of the combination The corresponding first weight, Indicates independent difficulty The corresponding second weight; According to the comprehensive combination difficulty Minimum comprehensive combination difficulty , to obtain the minimum comprehensive combination difficulty Corresponding device to be selected As the optimization device.
5. The debugging method of the two-axis stepper drive controller system according to claim 1, characterized in that: Generate a control strategy based on the technical indicator parameters, the basic equipment and the optimization equipment, including: Retrieving executable control modes according to the basic device and the optimization device to form a control mode set; Selecting a corresponding control mode from the control mode set according to the technical indicator parameters; generating, according to the technical indicator parameters, a first control parameter of the basic device and a second control parameter of the optimization device in the control mode; The control strategy is generated according to the control mode, the first control parameter and the second control parameter.
6. The debugging method of the two-axis stepper drive controller system according to claim 1, characterized in that: According to actual execution results corresponding to the basic device and the optimization device, before comparing the actual execution results with the simulated execution results, the method further includes: Sending the control strategy to the two-axis stepping drive controller system to control the execution of the control strategy; Receive actual execution results of the basic device and the optimization device corresponding to the two-axis stepping drive controller system.
7. The debugging method of the two-axis stepper drive controller system according to claim 1, characterized in that: According to actual execution results corresponding to the basic device and the optimization device, the actual execution result is compared with the simulation execution result to obtain a comparison result, including: Obtaining comparison items according to the technical indicator parameters, the basic equipment, and the optimized equipment; Extracting the actual execution results according to the comparison items to obtain actual screening results; Extracting the simulation execution results according to the comparison items to obtain simulation screening results; Compare the actual screening results with the simulated screening results: When the actual screening result is consistent with the simulation screening result, the corresponding basic equipment, the optimization equipment and the corresponding control strategy are used as the optimal two-axis stepping drive controller system debugging solution as the comparison result; When the actual screening result is inconsistent with the simulation screening result, the inconsistent actual screening result and the simulation screening result are used as the comparison result.
8. The debugging method of the two-axis stepper drive controller system according to claim 1, characterized in that: The actual execution results include a number of actual screening results corresponding to the technical indicator parameters, and a number of simulation screening results corresponding to the technical indicator parameters; According to the actual execution results, the corresponding fault model is added to the two-axis stepper drive controller model for inverse analysis to obtain the optimal two-axis stepper drive controller system debugging solution, including: According to the actual filter results and simulated screening results , get the corresponding difference comparison item , and the difference comparison items The corresponding actual screening results and the simulated screening results The first comparison difference between ,in, ; The difference comparison item Combine and query the fault model library to filter out the fault model set ; The fault model set Each fault model in Perform random combinations to obtain random fault model combinations ; Combining the random fault models Add to the two-axis stepper drive controller model to obtain an abnormal controller model; According to the control strategy, an inverse analysis is performed through the abnormal controller model to obtain an optimal two-axis stepper drive controller system debugging solution.
9. The debugging method of the two-axis stepper drive controller system according to claim 8, characterized in that: According to the control strategy, an inverse analysis is performed through the abnormal controller model to obtain the optimal two-axis stepper drive controller system debugging solution, including: The control strategy is executed by the abnormal controller model to obtain an abnormal execution result, wherein the abnormal execution result includes several abnormal screening results corresponding to the technical indicator parameters ; According to the actual screening results and the abnormal screening results , get the difference comparison item The corresponding actual screening results and the abnormal screening results The second comparison difference between ,in, ; The first comparison difference and the corresponding second comparison difference Perform difference calculation to get the difference value ; Compare items based on each difference The corresponding difference weight , and get the inversion difference ; When the inversion difference Less than the set value When , then according to the inversion difference Corresponding random fault model combination , to obtain the corresponding two-axis stepper drive controller system debugging solution as the optimal two-axis stepper drive controller system debugging solution.
10. A debugging device for a two-axis stepper drive controller system, characterized in that: include: An acquisition unit, used to obtain technical indicator parameters; A selection unit, configured to select an optimized device according to the technical indicator parameters; A construction unit, configured to construct a two-axis stepper drive controller model based on a basic device and the optimization device; A generating unit, configured to generate a control strategy based on the technical indicator parameters, the basic equipment, and the optimization equipment; an execution unit, configured to execute the control strategy through the two-axis stepper drive controller model and obtain a simulation execution result; a comparing unit, configured to compare the actual execution result with the simulated execution result according to actual execution results corresponding to the basic device and the optimization device, and obtain a comparison result; as well as The analysis unit is used to add a corresponding fault model to the two-axis stepper drive controller model for inverse analysis when the comparison result shows that the actual execution result and the simulated execution result are inconsistent, so as to obtain the optimal two-axis stepper drive controller system debugging solution according to the actual execution result.
Citation Information
Patent Citations
Spare part combination optimization method and device
CN110751343A
Steady-state transient smooth splicing output power distribution network fault simulation method
CN111596165A
Ship digital workshop simulation method and system based on digital twinning
CN113887016A
CSTR reactor control method and device based on Hammerstein model
CN114911163A
Virtual-real synchronization method and system for production line
CN116700168A