A working time simulation calculation system and method for motion control system
By simulating the machining process in the motion control system and utilizing machining file reading, parameter reading, speed foresight, and time calculation modules, high-precision working hour values are generated, solving the problem of large errors in traditional working hour estimation and achieving high-precision working hour calculation and production optimization.
Patent Information
- Application Number
- CN202510848302.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-24
- Publication Date
- 2025-09-05
- Estimated Expiration
- 2045-06-24
AI Technical Summary
Traditional working time estimation methods are based on empirical formulas or simple processing parameter estimation, which leads to large errors in processing time estimation and cannot meet high-precision production requirements.
A working time simulation calculation system for a motion control system is provided, which includes processing file reading, parameter reading, speed look-ahead, interpolation algorithm and time calculation modules. It generates accurate working time values by simulating the processing flow, avoids executing external actuator actions, and uses high-precision clocks and accumulators for cumulative calculation.
It achieves accurate calculation of working hours within millisecond-level errors, improves the accuracy of working hour estimation and the optimization efficiency of production planning, and is suitable for various motion control system equipment and processing technologies.
Smart Images

Figure CN120353192B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of motion control, and in particular relates to a working time simulation calculation system and method for a motion control system. Background Art
[0002] In motion control systems, accurately estimating machining time is crucial for production planning, cost accounting, and equipment scheduling. Traditional machining time estimation methods, often based on empirical formulas or simple machining parameter estimates, are subject to significant errors and cannot meet the requirements of high-precision production. The calculated results often deviate significantly from the actual machining time. Summary of the Invention
[0003] In view of this, the present invention provides a working time simulation calculation system and method for a motion control system, which can simulate the processing process in full accordance with the actual processing flow without executing any external actuator action and accurately calculate the processing time.
[0004] In a first aspect, the present invention provides a working time simulation calculation system for a motion control system, which includes a processing file reading module: for reading a processing file to obtain a processing instruction sequence;
[0005] Parameter reading module: used to read the processing parameters set by the user;
[0006] Speed prediction module: performs speed planning on the processing trajectory according to the processing instruction sequence and the processing parameters, and generates a speed curve;
[0007] Interpolation algorithm module: calculates and generates an interpolation pulse sequence according to the speed curve and the processing instruction sequence;
[0008] The time calculation module converts each interpolation pulse in the interpolation pulse sequence into a corresponding processing time value, and accumulates the processing time values through an accumulator to obtain a total working time value of the simulated processing.
[0009] Furthermore, converting each interpolation pulse in the interpolation pulse sequence into a corresponding processing time value includes:
[0010] According to the pulse frequency or pulse equivalent of the interpolation pulse sequence, the processing time value corresponding to each interpolation pulse is calculated:
[0011] (1)
[0012] in, The pulse frequency refers to the number of pulses emitted per unit time, which is determined by the hardware and software parameters of the motion control system and is expressed in pulses per second. The processing time value corresponding to each interpolation pulse is in seconds.
[0013] Furthermore, the accumulating the processing time value by an accumulator includes:
[0014] Initialize the total working time value of the accumulator , the initial value is 0, the initialization pulse frequency ;
[0015] Accumulate the processing time value corresponding to each interpolation pulse into the time accumulator:
[0016] (2)
[0017] in, The current accumulated total working time value; It is the processing time value corresponding to the current interpolation pulse.
[0018] Furthermore, the time calculation module also includes calculating the time interval value between each two adjacent interpolation pulses based on the speed curve and the processing parameters, and accumulating the time interval value and the processing time value through an accumulator to obtain the total working time value of the simulated processing.
[0019] Furthermore, it also includes a control module: used to trigger the processing file reading module, the parameter reading module, the speed look-ahead module, the interpolation algorithm module and the time calculation module in sequence to ensure that each module works according to a predetermined order and logic; the control module is also used to monitor the operating status of each module.
[0020] Furthermore, the processing parameters include acceleration, jerk, and spindle speed.
[0021] Furthermore, the time calculation module includes a high-precision clock.
[0022] Furthermore, the time calculation module is also used to compare the total working time value of the simulated processing with the total working time value of the actual processing, adjust the pulse frequency or the accumulation algorithm of the accumulator to calibrate the total working time value of the simulated processing.
[0023] Furthermore, the speed prediction module is specifically used to:
[0024] Analyzing the processing instruction sequence to determine the speed limit condition of each processing section;
[0025] The speed limit condition is combined with the acceleration parameter and the jerk parameter in the processing parameters to calculate the speed curve of each processing section;
[0026] The speed curve is output in the form of a time series.
[0027] In a second aspect, the present invention provides a method for simulating and calculating working hours of a motion control system, which is applied to a working hour simulation and calculation system of a motion control system as described above, comprising the following steps:
[0028] Read the processing file through the processing file reading module to obtain the processing instruction sequence;
[0029] Read the processing parameters set by the user through the parameter reading module;
[0030] Performing speed planning on the machining trajectory according to the machining instruction sequence and the machining parameters through a speed prediction module to generate a speed curve;
[0031] Calculating and generating an interpolation pulse sequence according to the speed curve and the processing instruction sequence through an interpolation algorithm module;
[0032] Each interpolation pulse in the interpolation pulse sequence is converted into a corresponding processing time value through a time calculation module, and the processing time values are accumulated through an accumulator to obtain a total working time value of the simulated processing.
[0033] The present invention provides a system and method for simulating the working hours of a motion control system, wherein the system comprises a processing file reading module for reading processing files to obtain a processing instruction sequence; a parameter reading module for reading processing parameters set by a user; a speed prediction module for performing speed planning on a processing trajectory according to the processing instruction sequence and the processing parameters to generate a speed curve; an interpolation algorithm module for calculating and generating an interpolation pulse sequence according to the speed curve and the processing instruction sequence; and a time calculation module for converting each interpolation pulse in the interpolation pulse sequence into a corresponding processing time value, and accumulating the processing time values through an accumulator to obtain a total working hour value of the simulated processing. Therefore, the present invention can simulate the processing process completely according to the actual processing flow without executing any external actuator action, and accurately estimates the processing working hours of the motion control system by calculating the processing time value corresponding to each interpolation pulse in the generated interpolation pulse sequence, and then accumulating all the processing time values through an accumulator. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without paying any creative work.
[0035] Figure 1 A schematic diagram of module connections of a working time simulation calculation system for a motion control system provided by the present invention;
[0036] Figure 2 The present invention provides a method flow chart of a method for simulating the calculation of working hours in a motion control system.
[0037] The main component symbols are described as follows:
[0038] Processing file reading module-10; parameter reading module-20; speed prediction module-30; interpolation algorithm module-40; time calculation module-50; control module-60. DETAILED DESCRIPTION
[0039] The following describes embodiments of the present invention in detail. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended only to explain the present invention and are not to be construed as limiting the present invention.
[0040] Example 1
[0041] A working time simulation calculation system for a motion control system, such as Figure 1 As shown, it includes a processing file reading module 10: used for reading the processing file to obtain a processing instruction sequence;
[0042] As mentioned above, the machining file reading module 10 accesses a designated address in the motion control system's memory to read the machining file. The machining file contains a sequence of machining instructions, such as G-codes and M-codes, which define the machining path, machining actions, and related parameter settings. The machining file reading module 10 parses the machining instruction sequence one by one, extracting key information, such as movement instructions and cutting instructions. This provides basic data for subsequent speed planning by the speed prediction module 30 and interpolation calculations by the interpolation algorithm module 40. Specifically, the machining file reading module 10 performs simulation based on the read machining instruction sequence, thereby performing sequential parsing to generate the machining path, machining actions, and related parameter settings.
[0043] Parameter reading module 20: used to read the processing parameters set by the user;
[0044] As mentioned above, the parameter reading module 20 reads user-defined machining parameters, such as acceleration, jerk, and spindle speed, from the user interface or system configuration file. Machining parameters are crucial for velocity planning of the machining trajectory. For example, acceleration and jerk determine the rate of velocity change during machining, impacting machining smoothness and efficiency. The parameter reading module 20 transmits these machining parameters to the velocity prediction module 30, enabling it to perform accurate velocity planning.
[0045] Speed prediction module 30: performs speed planning on the processing trajectory according to the processing instruction sequence and the processing parameters, and generates a speed curve;
[0046] As mentioned above, the speed prediction module 30 performs speed planning for the machining trajectory based on the machining instruction sequence and machining parameters. The speed prediction module 30 first analyzes the machining instruction sequence and determines the speed constraints for each machining segment, such as cutting speed and feed rate. It then combines machining parameters such as acceleration and jerk parameters to calculate a speed curve for each machining segment. This ensures a smooth speed transition during machining and avoids machining errors and equipment failures caused by sudden speed changes. The speed curve is output as a time series, providing a speed reference for the interpolation algorithm module 40.
[0047] Interpolation algorithm module 40: calculates and generates an interpolation pulse sequence according to the speed curve and the processing instruction sequence;
[0048] As mentioned above, the interpolation algorithm module 40 calculates the interpolation pulse sequence based on the velocity profile and machining instruction sequence. The interpolation algorithm uses common interpolation methods, such as linear interpolation and circular interpolation, to generate the interpolation pulse sequence based on the geometry of the machining path and the velocity profile. Each interpolation pulse corresponds to a tiny machining displacement. The accumulation of interpolation pulses simulates the continuous motion of the machining path, simulating the interpolation action during the actual machining process. The interpolation algorithm module 40 transmits the interpolation pulses to the time calculation module 50 for calculating the machining time.
[0049] The time calculation module 50 converts each interpolation pulse in the interpolation pulse sequence into a corresponding processing time value, and accumulates the processing time values through an accumulator to obtain a total working time value of the simulated processing.
[0050] As mentioned above, after receiving the interpolation pulse, the time calculation module 50 converts it into a time value. The specific method is to calculate the processing time value corresponding to each interpolation pulse based on the frequency and pulse equivalent of the interpolation pulse. Then all processing time values are accumulated through the accumulator to obtain the total working time value of the processing process. It is worth noting that in this process, the time calculation module 50 discards the action of sending pulses and the driving process of the external mechanism, and only focuses on the accumulation of processing time values. Finally, when all processing instruction sequences in the processing file are processed, the time calculation module 50 outputs the accumulated total working time value, and the error between the total working time value and the actual processing time value is controlled at the millisecond level.
[0051] Therefore, this embodiment reads the processing files and processing parameters and simulates in full accordance with the actual processing flow, but does not execute any external actuator actions, and can accurately calculate the total processing time, that is, the total working time value, with an error of only milliseconds, which greatly improves the accuracy of the working time estimation compared to traditional methods. The time calculation module 50 discards the pulse emission process and the external mechanism driving process, and only accumulates the processing time related to the interpolation pulse, thereby reducing unnecessary calculation and execution links and improving the efficiency of the simulation calculation. This embodiment is applicable to various motion control system equipment and processing technologies, and can perform flexible working time simulation calculations based on different processing files and user-set processing parameters. It has wide applicability and can provide accurate working time estimation for motion control system companies, optimize production planning and scheduling, and improve production efficiency and economic benefits.
[0052] In this embodiment, converting each interpolation pulse in the interpolation pulse sequence into a corresponding processing time value includes:
[0053] According to the pulse frequency or pulse equivalent of the interpolation pulse sequence, the processing time value corresponding to each interpolation pulse is calculated:
[0054] (1)
[0055] in, The pulse frequency refers to the number of pulses emitted per unit time, which is determined by the hardware and software parameters of the motion control system and is expressed in pulses per second. The processing time value corresponding to each interpolation pulse is in seconds.
[0056] Above, the processing time value corresponding to each interpolation pulse ( ) can be calculated from the pulse frequency:
[0057]
[0058] For example, if the pulse frequency set by the CNC system is 10,000 pulses / second, the processing time value corresponding to each interpolation pulse is:
[0059] (3)
[0060] In motion control systems, interpolation pulses are the fundamental signals used to control machine tool motion. Each interpolation pulse corresponds to a tiny displacement (pulse equivalent) of the machine tool. A pulse equivalent is the smallest unit of displacement in a CNC system and is typically determined by the machine tool's resolution. For example, if the pulse equivalent is 0.001mm, each pulse corresponds to a 0.001mm movement of the machine tool, and each pulse frequency corresponds to one pulse equivalent.
[0061] In this embodiment, accumulating the processing time value by an accumulator includes:
[0062] Initialize the total working time value of the accumulator , the initial value is 0, the initialization pulse frequency ;
[0063] Accumulate the processing time value corresponding to each interpolation pulse into the time accumulator:
[0064] (2)
[0065] in, The current accumulated total working time value; It is the processing time value corresponding to the current interpolation pulse.
[0066] It is worth further explaining that, in this embodiment, The time interval values between each two adjacent interpolation pulses may also be accumulated to generate a more accurate total working time value.
[0067] In this embodiment, the time calculation module 50 also includes calculating the time interval value between each two adjacent interpolation pulses based on the speed curve and the processing parameters, and accumulating the time interval value and the processing time value through an accumulator to obtain the total working time value of the simulated processing.
[0068] As mentioned above, in actual machining, there may be a time interval between two adjacent interpolated pulses (e.g., during acceleration or deceleration phases). The time calculation module 50 needs to calculate the time interval based on the velocity curve and the user-defined machining parameters (acceleration parameters) and accumulate these time intervals into the total machining time. For example, during acceleration or deceleration phases, the pulse frequency gradually increases or decreases. The time calculation module 50 needs to calculate the time interval between each two interpolated pulses based on the velocity curve and acceleration parameters to reduce errors.
[0069] Therefore, the time calculation module 50 accurately calculates the processing time value of each interpolation pulse based on the pulse frequency or pulse equivalent, and accumulates all the processing time values. At the same time, the corresponding time interval value is calculated and accumulated based on the speed change between each two adjacent interpolation pulses to ensure the accuracy of the accumulation of the total working time value.
[0070] In this embodiment, a control module 60 is further included: used to trigger the processing file reading module 10, the parameter reading module 20, the speed prediction module 30, the interpolation algorithm module 40 and the time calculation module 50 in sequence to ensure that each module operates according to a predetermined order and logic; the control module 60 is also used to monitor the operating status of each module.
[0071] To ensure that the machining file reading module 10, the parameter reading module 20, the speed prediction module 30, the interpolation algorithm module 40, and the time calculation module 50 operate according to a predetermined sequence and logic, the motion control system's work-hour simulation calculation system further includes a control module 60. Specifically, the control module 60 includes a CPU (Central Processing Unit) and other processing devices. Furthermore, the control module 60 includes auxiliary storage devices such as HDDs (Hard Disk Drives) that store various control programs, such as application software and an operating system, and primary storage devices such as RAM (Random Access Memory) for temporarily storing data required by the processing device while executing these programs.
[0072] Specifically, the control module 60 controls the processing file reading module 10 to read the processing file and obtain the processing instruction sequence; the processing file can be stored in an external storage device or in an auxiliary storage device, and the parameter reading module 20 reads the processing parameters set by the user. Subsequently, the control module 60 controls the parameter reading module 20 to read the processing parameters set by the user. The control module 60 then controls the speed look-ahead module 30 to generate a speed curve based on the processing instruction sequence and the processing parameters. Next, the control module 60 controls the interpolation algorithm module 40 to calculate and generate an interpolation pulse sequence based on the speed curve and the processing instruction sequence. Finally, the control module 60 controls the time calculation module 50 to convert each interpolation pulse in the interpolation pulse sequence into a corresponding processing time value, and accumulates the processing time values through an accumulator to obtain a total working time value for the simulated processing.
[0073] In this embodiment, the processing parameters include acceleration, jerk, and spindle speed.
[0074] In this embodiment, the time calculation module 50 includes a high-precision clock.
[0075] As mentioned above, the time calculation module 50 includes a high-precision clock (such as a hardware clock or a software timer). This high-precision clock typically has a resolution of microseconds or higher, meeting millisecond-level accuracy requirements. This high-precision clock in the time calculation module 50 increases the accuracy of the accumulator's accumulated processing time and time interval values, effectively reducing errors and ensuring accurate time calculation.
[0076] In this embodiment, the time calculation module 50 is also used to compare the total working time value of the simulated processing with the total working time value of the actual processing, adjust the pulse frequency or the accumulation algorithm of the accumulator to calibrate the total working time value of the simulated processing.
[0077] As mentioned above, the time calculation module 50 regularly calibrates the total working time value during the simulation processing. Specifically, the accuracy of the pulse frequency directly affects the processing time value of each interpolation pulse. If there is an error in the pulse frequency, it will cause a deviation in the calculation of the processing time value. Therefore, it is necessary to ensure high-precision measurement or setting of the pulse frequency. In addition, by comparing with the total working time value of the actual processing, the pulse frequency or the accumulation algorithm of the accumulator can be adjusted to ensure that the error of the processing time outputted is controlled at the millisecond level. Through the above method, the time calculation module 50 can accurately convert the interpolation pulses into the corresponding processing time values, accumulate the processing time values, and finally output a high-precision total working time value, and the error with the total working time value of the actual processing is controlled at the millisecond level.
[0078] In this embodiment, the speed prediction module 30 is specifically configured to:
[0079] Analyzing the processing instruction sequence to determine the speed limit condition of each processing section;
[0080] The speed limit condition is combined with the acceleration parameter and the jerk parameter in the processing parameters to calculate the speed curve of each processing section;
[0081] The speed curve is output in the form of a time series.
[0082] Example 2
[0083] A method for simulating the working hours of a motion control system, such as Figure 2 As shown, the working time simulation calculation system applied to the motion control system as described in any one of the first embodiments includes the following steps:
[0084] S1 reads the processing file through the processing file reading module 10 to obtain the processing instruction sequence;
[0085] S2 reads the processing parameters set by the user through the parameter reading module 20;
[0086] S3: The speed prediction module 30 performs speed planning on the processing trajectory according to the processing instruction sequence and the processing parameters to generate a speed curve;
[0087] S4: generating an interpolation pulse sequence by calculating the interpolation algorithm module 40 according to the speed curve and the processing instruction sequence;
[0088] S5 converts each interpolation pulse in the interpolation pulse sequence into a corresponding processing time value through the time calculation module 50, and accumulates the processing time values through the accumulator to obtain a total working time value of the simulated processing.
[0089] As described above, the working time simulation calculation method of the motion control system of this embodiment reads the processing files and processing parameters and simulates in full accordance with the actual processing process, but does not execute any external actuator actions, and can accurately calculate the total processing time, that is, the total working time value, with an error of only milliseconds, which greatly improves the accuracy of working time estimation compared to traditional methods. The time calculation module 50 discards the pulse sending process and the external mechanism driving process, and only accumulates the processing time related to the interpolation pulse, thereby reducing unnecessary calculation and execution links and improving the efficiency of simulation calculation. This embodiment is applicable to various motion control system equipment and processing processes, and can perform flexible working time simulation calculations based on different processing files and user-set processing parameters. It has wide applicability and can provide accurate working time estimation for motion control system companies, optimize production planning and scheduling, and improve production efficiency and economic benefits.
[0090] In all examples shown and described herein, any specific values should be interpreted as merely exemplary and not limiting, and thus other examples of the exemplary embodiments may have different values.
[0091] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, it does not need to be further defined or explained in subsequent drawings.
[0092] The above-described embodiments merely illustrate several implementations of the present invention, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that variations and modifications are possible without departing from the scope of the present invention, and such variations and modifications are fully within the scope of protection of the present invention.
Claims
1. A working time simulation calculation system for a motion control system, characterized in that: It includes a processing file reading module: used to read the processing file to obtain the processing instruction sequence; Parameter reading module: used to read the processing parameters set by the user; Speed prediction module: performs speed planning on the processing trajectory according to the processing instruction sequence and the processing parameters, and generates a speed curve; Interpolation algorithm module: calculates and generates an interpolation pulse sequence according to the speed curve and the processing instruction sequence; Time calculation module: converts each interpolation pulse in the interpolation pulse sequence into a corresponding processing time value, and accumulates the processing time values through an accumulator to obtain a total working time value of the simulated processing; The converting each interpolation pulse in the interpolation pulse sequence into a corresponding processing time value comprises: According to the pulse frequency or pulse equivalent of the interpolation pulse sequence, the processing time value corresponding to each interpolation pulse is calculated: (1) in, The pulse frequency refers to the number of pulses emitted per unit time, which is determined by the hardware and software parameters of the motion control system and is expressed in pulses per second. The processing time value corresponding to each interpolation pulse, in seconds; The time calculation module also includes calculating the time interval value between each two adjacent interpolation pulses according to the speed curve and the processing parameters, and accumulating the time interval value and the processing time value through an accumulator to obtain the total working time value of the simulated processing.
2. The working time simulation calculation system of the motion control system according to claim 1, characterized in that: The accumulating the processing time value by the accumulator includes: Initialize the total working time value of the accumulator , the initial value is 0, the initialization pulse frequency ; Accumulate the processing time value corresponding to each interpolation pulse into the time accumulator: (2) in, The current accumulated total working time value; It is the processing time value corresponding to the current interpolation pulse.
3. The working time simulation calculation system of the motion control system according to claim 1, characterized in that: It also includes a control module: used to trigger the processing file reading module, the parameter reading module, the speed look-ahead module, the interpolation algorithm module and the time calculation module in sequence to ensure that each module works according to a predetermined order and logic; the control module is also used to monitor the operating status of each module.
4. The working time simulation calculation system of the motion control system according to claim 1, characterized in that: The processing parameters include acceleration, jerk, and spindle speed.
5. The working time simulation calculation system of the motion control system according to claim 1, characterized in that: The time calculation module includes a high-precision clock.
6. The working time simulation calculation system of the motion control system according to claim 2, characterized in that: The time calculation module is also used to compare the total working time value of the simulated processing with the total working time value of the actual processing, and adjust the pulse frequency or the accumulation algorithm of the accumulator to calibrate the total working time value of the simulated processing.
7. The working time simulation calculation system of the motion control system according to claim 1, characterized in that: The speed prediction module is specifically used for: Analyzing the processing instruction sequence to determine the speed limit condition of each processing section; The speed limit condition is combined with the acceleration parameter and the jerk parameter in the processing parameters to calculate the speed curve of each processing section; The speed curve is output in the form of a time series.
8. A method for simulating the working hours of a motion control system, characterized in that: A working time simulation calculation system applied to a motion control system according to any one of claims 1 to 7 comprises the following steps: Read the processing file through the processing file reading module to obtain the processing instruction sequence; Read the processing parameters set by the user through the parameter reading module; Performing speed planning on the machining trajectory according to the machining instruction sequence and the machining parameters through a speed prediction module to generate a speed curve; Calculating and generating an interpolation pulse sequence according to the speed curve and the processing instruction sequence through an interpolation algorithm module; Each interpolation pulse in the interpolation pulse sequence is converted into a corresponding processing time value through a time calculation module, and the processing time values are accumulated through an accumulator to obtain a total working time value of the simulated processing.
Citation Information
Patent Citations
Numerical controller with machining time prediction unit and machining error prediction unit
CN102789194A
Machining time calculating apparatus
US20050228533A1