Numerical control with multi-core processor
The numerical control system with a multi-core processor efficiently executes motion command generation processes by estimating and distributing them across cores, addressing efficiency and cost challenges in high-performance machine tools.
Patent Information
- Application Number
- DE102015007837
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2014-06-27
- Filing Date
- 2015-06-18
- Publication Date
- 2024-10-31
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing numerical control systems face challenges in executing a larger set of motion command generation processes efficiently, particularly in machine tools with multiple axes and paths, while avoiding high heat generation and cost constraints associated with high-frequency or multi-core processors.
A numerical control system utilizing a multi-core processor that includes a movement command generation process time estimation unit and a division unit to distribute motion command generation processes among cores, ensuring they are completed within predetermined cycles, thereby improving processing capacity and performance.
The system effectively executes motion command generation processes without errors or interruptions, meeting the demands of high-performance machine tools with multiple axes and paths by optimizing process distribution across cores.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Background of the invention 1. Field of the invention
[0001] The invention relates to a numerical control system with a multi-core processor, which, within a given time, Enables the execution of a larger number of motion command generation processes. 2. State of the art
[0002] For a numerical control (NC; Numerical Controller) for controlling a machine tool or other For industrial machines, a technique using numerical control was proposed in accordance with JP 2014 - 035564 A. with a multi-core processor, in which an NC processor and a sequence control processor, which are conventionally separate, are integrated as one of several cores of a processor for the purpose of Cost reduction, whereby the processor and a peripheral control LSI (high integration circuit) are integrated via a are connected via a fast serial bus to reduce the number of connections in the LSI and to enable integration of the to enable peripheral control LSI.
[0003] JP 2009 - 163527 A describes a system with multiple operating systems (OS) by Inserting a multi-core arrangement into an embedded system for the purpose of improving process performance, wherein Dynamic load distribution among the OSs is achieved while suppressing additional overhead for Distribution calculation devices among the OS, in order to solve a problem regarding the contradiction between a Minimizing the effort required for distributing computing resources among the OS and for dynamic load balancing. to solve the OS.
[0004] Software processes in a numerical control system include a machining program analysis process, in in which an editing program is analyzed, a process of motion command generation, in which Motion commands for motors are generated, a display process in which the status of the numerical control, a machine tool and the like are displayed on a screen, a PMC (programmable logic controller) Machine control (programmable machine controller) - a process in which input and output signals are sent into and out of the machine. Machine tools, process flows, and the like are carried out.
[0005] Among these processes, the motion command generation process must be executed without errors so that it is in Each cycle is completed so that commands can be sent to the motor continuously. Throughput rates for the motion command generation process with respect to the axes, paths, and the like are of Year after year, the demands on multi-axis machine tools have increased. Processing paths and high performance. Shortening the process cycles is also desirable to expedite processing. to be achieved with high speed and high accuracy. Therefore, there is a need to implement a A larger number of processes in a shorter time with regard to motion command generation. To meet these requirements To meet these requirements, it is necessary to increase the processing capacity per unit of time.
[0006] As a method to meet such requirements, a processor with high Operating frequency or a large number of cores for multi-core processors according to JP 2014 - 035564 A and JP 2009 - 163527 A, as described above. However, a high operating frequency results in a problem in that a Increased heat generation by the processor can lead to a malfunction of the numerical control. A processor However, a system with a large number of cores is expensive.
[0007] US 5 252 899 A discloses a numerical control system for controlling a plurality of axes with a A variety of functional arrangements, including a control bus with slots and several numerical controllers. This includes the fact that the controllers share processing operations and use common peripheral devices.
[0008] From US 2013 / 0 041 510 A1, a motor drive amplifier and a numerical control are known which via They are connected via a communication link. Numerical control includes a numerical... Control unit, a motor control unit, and an amplifier interface unit. A motor control processor of the The engine control unit is designed as a multi-core processor. Brief description of the invention
[0009] An object of the present invention is to provide a numerical control using a Multi-core processor, which allows the execution of a larger number of motion command generation processes in given time.
[0010] The invention therefore relates to a numerical control with a multi-core processor, which controls a machine tool by Controls the execution of a machining program.
[0011] The numerical controller has a motion command generation process time estimation unit which Estimates the motion command generation process time required to generate a motion command that is a given cycle according to a machining instruction which is given by the machining program is obtained, and a motion command generation process division unit which The motion command generation process for generating motion commands is divided with respect to the cores of the Multi-core processor according to the motion instruction generation process time, which is determined by the The motion command generation process time estimation unit has been estimated.
[0012] The movement command generation process time estimation unit may be configured to To estimate the motion command generation process time based on a command function and / or a number of Command axes which are operated according to the machining program.
[0013] The movement command generation process division unit may be configured to Motion command generation process to the cores of the multi-core processor based on subdivision information which are assigned to each command function of the processing instructions.
[0014] According to the invention, the process time for the motion command generation process is determined by the numerical Control estimated using the multi-core processor, wherein the motion command generation process then divided and subjected to processing in the cores, especially if the permitted time, thereby improving the process performance regarding the motion command generation process and increasing Requirements for machine tools with multiple axes, multiple machining paths and high performance are fulfilled. Short description of the characters
[0015] The above and other objects and features of the invention will become more apparent from the following description of embodiments with regard to the figures: Fig. 1 is a schematic block diagram illustrating an example implementation of a numerical Control with a multi-core processor according to the invention; Figure 2 shows an example of the assignment of processes in numerical control according to Figure 1 to kernels of the Multiprocessor in numerical control; Fig. 3 shows an execution sequence of an editing program analysis process and a Motion command generation process in each core of the numerical control system as shown in Fig. 1 deployed multiprocessor; Figure 4 illustrates the relationship between types of command functions and expressions in a table format. (Equations) for calculating estimated processing times for instruction functions; Figure 5 shows estimated processing times for processes that are executed in the cores of the multiprocessor. which is arranged in the numerical control according to Fig. 1, and vacancy times in a cycle; Figure 6 shows an example where assignments (allocations) of function groups (command functions) in the Motion command generation process to subdivided processes as numbers with respect to the subdivided processes, which are stored in connection with the command functions; Fig. 7 shows estimated process times in the cores and vacancy times in a cycle in one state. the subdivided processes are allocated to the cores in such a way that the processing time in the cores of the multiprocessor in the numerical control according to Fig. 1, do not extend beyond the given cycle, Figure 8 shows an example of an assignment of a core allocation process to the cores of the multiprocessor in the numerical control according to Fig. 1; Fig. 9 is a flowchart of a sequence of operational processes that occur in each core of the numerical Control is carried out by the multiprocessor shown in Fig. 1; Figure 10 shows an example of the assignment of an editing program analysis process and a Motion command generation process on the same processing path to different cores according to a technique according to the present invention; Fig. 11 shows an example where the technique of the present invention is used in a multi-core processor with six Kernel is used, whereby editing program analysis Processes and motion command generation processes on the same processing path, different cores are assigned; and Fig. 12 shows an example where the technique of the present invention is used in a numerical control system. is used, which performs a control on four processing paths using six cores. Detailed description of preferred embodiments
[0016] An embodiment of a numerical control system with a multi-core processor according to the invention is now described with reference to Fig. 1.
[0017] A numerical controller 10 has a multi-core processor 30 and an integrated peripheral control LSI 11 (High-integration control circuit) and includes a motor control unit 13 and a Amplifier interface unit 16. These modules are connected via an internal bus 21. The motor control unit 13 has a motor control unit processor 14 and a peripheral control LSI 15 for it. The amplifier interface unit 16 is an interface that performs communication with a motor drive amplifier 20. The multi-core processor 30 In this example, it has four cores, 31 to 34. The numerical control 10 also has a shared memory, which It is used for inter-core communication to distribute information between cores 31 to 34. A DRAM 12 is for example, used as shared storage.
[0018] The multi-core processor 30 analyzes an editing program for controlling the motor drive amplifier 20, which is connected to the numerical control 10, namely by executing a machining program- analysis process, and it generates a movement command by executing a movement command generation process. based on the analysis results, and it transmits the generated movement command to a RAM (not shown) in the peripheral control LSI 15 of the engine control unit 13 via the integrated peripheral control LSI 11 and the internal bus 21.
[0019] The motor control unit processor 11 of the motor control unit 13 reads the data written in the internal RAM Movement command, generates data for the motor control, which is to be transmitted to the motor control amplifier 20, and writes the generated data to an LSI 17 for communication control of the amplifier interface unit 16 via the internal bus 21.
[0020] The LSI 17 of the amplifier interfaces 16 for communication control transmits the data which is stored in a RAM are enrolled in LSI 17, to the motor drive amplifier 20 and the motor drive amplifier 20 drives motors (not shown) in a machine tool.
[0021] The multi-core processor 30 performs PMC processing, in which a specified sequence control program is applied to The process is based on input data or the like, performed by a machine (not shown) connected to the numerical Control unit 10 is connected. Signals for controlling machine components are then used to form a The results of the PMC processing are transferred to machine-side I / O unit 18 (input / output unit).
[0022] A display / MDI unit 19 serves as a manual data input device including a display area, a Keyboard or similar. The integrated peripheral control LSI 11 receives commands, data, and the like from a The keyboard sends the command, data, and the like to the multi-core processor 30 and outputs a display command. is output by a display process running in the multi-core processor 30, specifically to a display device the display / MDI unit 19.
[0023] It is assumed that in this embodiment a multi-path control is implemented in which two Command paths for the processing program are given. Fig. 2 shows an example where the processing program- The analysis process and the motion command generation process for the first path are assigned to the first core 31. where the machining program analysis process and the motion command generation process for the second path are The second core is assigned to 32, while the display process is assigned to the third core, 31, and the PMC process... assigned to the fourth core 34.
[0024] In the machining program analysis process, the machining program is analyzed and information such as the Route type (linear or curved or the like), axes affecting the command, and Movement speeds are gained. During the motion command generation process, motor positions are determined. according to a processing route specified in the command, based on the analysis results regarding the The machining program calculates the movements and sends the motion commands to the motors. The motion command generation process must be executed flawlessly so that it is completed in each cycle. so that commands are sent to the motors without interruption. The machining program analysis process is carried out in a cycle after execution of the movement The command generation process was executed in the remaining time.
[0025] Fig. 3 shows a temporal sequence according to which the machining program analysis process and the Motion command generation process in the nth cycle and in the n+1th cycle in the first core and the second core be carried out.
[0026] As shown in Fig. 3, the motion command generation process in the n+1-th cycle is performed based on the analysis results the machining program analysis process for the nth cycle.
[0027] Accordingly, the embodiment will be explained in more detail below with reference to an example in which the Motion command generation process is executed in the n+1-th cycle based on the analysis results of the Machining program analysis process in the nth cycle.
[0028] In the machining program analysis process, the machining program of a plurality of blocks in a Cycle can be analyzed. This allows motion command generation processes in cycles that occur after the n+1-th cycle are based on the analysis results of the processing program analysis process for the nth cycle. The invention can be used in such an example.
[0029] Now a method for calculating the estimated process time for the Motion command generation process described.
[0030] Initially, command functions and the number of axes to be commanded are specified in the The motion command generation process in the n+1th cycle is to be processed by analyzing the processing program in the The processing program analysis process regarding the nth cycle was obtained. Subsequently, the estimated Process time for the motion command generation process in the n+1th cycle using the table according to Fig. 4 due to the command functions and the number of axes to be instructed, which are to be processed in the n+1th cycle, be calculated.
[0031] Fig. 4 shows the relationship between types of instruction functions and expressions for calculating the Estimated processing times for the command functions.
[0032] The command functions A to H in Table 4 form a function group which is located in the The motion command generation process is being handled, and there are multiple command axes to instruct objects. In the The motion command generation process is the estimated process time required to generate the The movement command for each command axis from each command group is represented by an expression in which the number n of the command axes, which are the subject of the command function, is a variable.
[0033] In the machining program analysis process for the nth cycle, the estimated process time for the The motion command generation process in the n+1th cycle can be obtained by calculating the process times for the Instruction functions to be processed in the n+1th cycle, according to the table in Fig. 4, and this Processing times are added together.
[0034] The expressions representing the estimated processing times for the instruction functions are defined in advance as Approximate expressions based on changes (increases and decreases) in process times experimentally or such gains occur when a command function has different numbers of parameters with respect to the Command axes are used. For functions that do not depend on the number of command axes, the number n is... The command axes are not included in the expression for the estimated processing time for the command function.
[0035] As described above, the machining program analysis process is carried out in one cycle in the remaining Time after the motion command generation process is executed. The process time for the Machining program analysis process is indeterminate because contents of the machining program analysis process can change dynamically, so that a minimum process time depending on the situation can be sufficient to Execution of the machining program analysis process in the remaining time after execution of the Motion command generation process. A minimum process time that must be ensured can be specified, However, the minimum process time can also be used as an estimated process time for the machining program analysis process be used.
[0036] During the display process, different information is displayed on the display device for Monitoring the status of the numerical control, the machine tool, etc. Is the process time for the While the display process is shortened within a given cycle, the time required for updating the The display shows a problem, but there is no issue with controlling the machine.
[0037] Therefore, a desired minimum processing time can be determined in advance and used as an estimated processing time for the The display process will be discontinued.
[0038] The PMC process involves the input and output of signals, and it includes sequence processes and the like. executed, which directly affect the control of the machine tool. Accordingly, the process capacity of the Kerns lacks sufficient reserve capacity to take over other processes. In this case, the estimated The process time should be set to the same as the cycle time.
[0039] Now a process is described which subdivides a motion command generation process for a distributed Process execution in other cores if the estimated process time for the motion command generation process exceeds a permissible time. The process is executed as a "core allocation process" with respect to all cores.
[0040] The permissible time for the motion command generation process is defined as a value that results from Subtracting the minimum processing time for the machining program analysis process from the cycle time of a cycle. If the estimated processing time for the motion command generation process exceeds the permissible time for this, the The motion command generation process is divided and fed to a distributed execution in each of the cores.
[0041] Fig. 5 shows the respective estimated process times executed in the cores of the multiprocessor, and vacancy periods (reserves) in a cycle.
[0042] Fig. 5 shows an example in which the estimated process time ([3]) for the motion command generation process exceeds the permissible time ([2]) for this process in the first core (ie [2] < [3]). If in the machining program- If the analysis process in the previous cycle estimated that a state as shown in Fig. 5 is to be expected, a process of Subdivision of the motion command generation process with respect to the first kernel in which the estimated process time for the motion command generation process exceeds the allowable time.
[0043] How to divide the motion command generation process, ie which divided process each The functional group (command function) to which the motion command generation process is assigned is determined in advance. according to the command function as shown in the table in Fig. 6, and this is used as the number for the partitioned process. saved. When subdividing the motion command generation process, motion command generation processes are created. for the command functions (function groups) according to the number of the subdivided processes in a column for The processes are grouped and subdivided according to the table in Figure 6. The example in Figure 6 shows that... that the motion command generation process is divided into three separate processes, 1 to 3. To obtain the The execution time for each partitioned process is the estimated process time for the partitioned process. The assigned command function is summed up according to the table in Fig. 6.
[0044] According to the above, the estimated process time in the cores and the estimated process time for the divided processes in case the estimated process time for the motion command generation process exceeds the permissible time and then a procedure for assigning the separated processes to the cores carried out to avoid that the process time in the cores exceeds the given cycle (time).
[0045] Fig. 7 illustrates estimated process times in the cores and vacancy times (reserves) in one cycle for the Case that the separated processes are assigned to the cores in such a way that the process times in the cores do not correspond to the exceed the given cycle.
[0046] A core which executes the core allocation process for determining the allocation of the partitioned processes, can be a core which has the longest vacancy time when estimating the process times, or it can be a fixed be a given core. For example, if the core allocation procedure is performed by the third core, the Process executed in the n+1-th cycle according to Fig. 8.
[0047] Fig. 9 is a flowchart of the processes executed in the n-th cycle in each core, which of the Multiprocessor. Each core of the multiprocessor operates one cycle at startup according to the flowchart away.
[0048] [Step S901] It is determined whether a split process is assigned to the core in the n-1-th cycle in the core allocation process assigned or not. If any partitioned process is assigned to the core, the process goes to step S902. If no split process is assigned to the core, the process goes to step S903.
[0049] [Step S902] The partitioned process assigned to the core is executed.
[0050] [Step S903] The process to be executed by the kernel in the nth cycle is executed.
[0051] [Step S904] The estimated process time for the core in the n+1th cycle is determined. The The determined estimated processing time is stored in the shared memory.
[0052] [Step S905] It is determined whether the core is intended to perform core allocation for the distributed Whether or not it is the core that is being processed (i.e., the core that executes the core assignment process). Once the core assignment for distributed processing is executed, the procedure proceeds to step S906. If the core is... Not for the kernel that performs such an assignment, the procedure for the kernel is completed in the nth cycle.
[0053] [Step S906] It is determined whether the estimated process time for all cores was found in the n+1th cycle. or not. The procedure proceeds to step S907 if the estimated processing time for all cores in the n+1th cycle is is found.
[0054] [Step S907] The core assignment for distributed processing in the n+1th cycle is determined.
[0055] An embodiment of the invention has been explained in more detail above, however the invention is not limited to this This embodiment is limited and can be implemented in various ways with modifications. For example The process assignment can be carried out in such a way that the processing program analysis process and the The motion command generation process can be assigned to different cores (Figs. 10 and 11). The number of Cores is not limited to four and the invention can be used, for example, with a larger number of cores ( Fig. 11 and Fig. 12).
Claims
1. Numerical control with a multi-core processor for controlling a machine tool by executing a Machining program, where the numerical control with the multi-core processor has: a movement command generation process time estimation unit which estimates a movement command generation process time required to generate a motion command that is executed in a given cycle based on a the machining command obtained from the machining program is to be executed, and a movement command generation process division unit which executes a movement command generation process for Generation of the movement command is distributed among the cores of the multi-core processor based on the Motion command generation process time estimation unit estimated motion command generation process time.
2. Numerical control with a multi-core processor according to claim 1, wherein the Movement command generation process time estimation unit is set up, the movement command generation process time to be estimated on the basis of a command function and / or a number of command axes, which are determined according to the Editing command can be operated.
3. Numerical control with a multi-core processor according to claim 1, wherein the Movement command generation process division unit is configured to divide the movement command generation process into to divide the cores of the multi-core processor based on subdivision information assigned to each instruction function of the editing command.
Citation Information
Patent Citations
Information processing system for distributing load between operating systems
JP2009163527A
Numerical value control device having multi-core processor
JP2014035564A
Numerical control system having multi-core processor
US20130041510A1
Numerical control system
US5252899A
