Search

JP-7856764-B2 - Program optimization device and storage medium

JP7856764B2JP 7856764 B2JP7856764 B2JP 7856764B2JP-7856764-B2

Inventors

  • 土屋 雅彦

Assignees

  • ファナック株式会社

Dates

Publication Date
20260511
Application Date
20220627

Claims (6)

  1. A program optimization device for streamlining the machining program of a numerical control device, A processing program acquisition unit that acquires a processing program, A classification information storage unit stores classification information that classifies the commands included in the machining program into executable commands, inexecutable commands, and rotational speed commands, wherein the executable commands are commands that can be executed simultaneously with acceleration or deceleration of the spindle rotational speed, the inexecutable commands are commands that cannot be executed simultaneously with acceleration or deceleration of the spindle rotational speed, and the rotational speed commands are commands that accelerate or decelerate the spindle to a target rotational speed. A machining program classification unit classifies the blocks of the machining program into executable blocks containing executable commands, non-executable blocks containing non-executable commands, and rotational speed command blocks containing rotational speed commands, based on the classification information. In the machining program, if the executable block is located after the rotational speed command block, a prediction time calculation unit calculates the prediction time of the executable block. An acceleration calculation unit calculates a new acceleration of the rotational speed of the main shaft based on the predicted time, A machining program modification unit that modifies the acceleration of the rotational speed command to the new acceleration and creates a new machining program , A program optimization device equipped with the following features.
  2. In the machining program, if the executable block is located before the rotation speed command block, the program includes an insertion position determination unit that determines the location before the executable block as the insertion position of the rotation speed command block. The program optimization device according to claim 1, wherein the processing program modification unit inserts the rotation speed command block into the insertion position and modifies the acceleration of the rotation speed command to the new acceleration.
  3. The program optimization apparatus according to claim 2, wherein, if the insertion position determination unit is located before the executable block, it determines that the position behind the executable block is the insertion position of the block containing the rotation speed command.
  4. A prediction time calculation unit that calculates the predicted time of the executable block, The system includes an acceleration calculation unit that calculates a new acceleration based on the aforementioned predicted time, The program optimization device according to claim 1, wherein the processing program modification unit modifies the acceleration of the rotational speed command to the new acceleration.
  5. A simulation unit that performs simulation of the aforementioned machining program, A time comparison unit that compares the spindle speed waiting time in the simulation of the machining program before modification with the spindle speed waiting time in the simulation of the machining program after modification, A program optimization device according to claim 1, comprising:
  6. The numerical control device stores classification information that classifies the commands included in the machining program into executable blocks containing executable commands that can be executed simultaneously with acceleration or deceleration of the spindle rotation speed, and non-executable blocks containing non-executable commands that cannot be executed simultaneously with acceleration or deceleration of the spindle rotation speed. One or more processors execute, The machining program of the numerical control device is acquired, Based on the classification information, the blocks of the machining program are classified into executable blocks containing executable commands, non-executable blocks containing non-executable commands, and rotational speed command blocks containing rotational speed commands . In the machining program, if the executable block is located after the rotation speed command block, the predicted time for the executable block is calculated. Based on the aforementioned predicted time, a new acceleration of the spindle 's rotational speed is calculated. The acceleration of the aforementioned rotational speed command is modified to the new acceleration to create a new machining program. A storage medium for storing instructions that the processor can read.

Description

This invention relates to a program optimization device and a storage medium. Numerical control devices (NPCs) have the function of controlling the spindle rotation speed of a machine tool according to a machining program. Conventional NPCs have techniques to reduce power consumption in controlling the spindle rotation speed. These NPCs increase the acceleration and deceleration times of the spindle when there is sufficient time for the spindle to reach a specified rotation speed. See, for example, Patent Document 1. International Publication No. 2013/171850 This is a block diagram of the program optimization device of the first disclosure.This figure shows an example of how to classify processing programs.This diagram shows an example of a rapid traverse machining program and the speed changes of the X and Z axes.This figure shows an example of an acceleration command.This diagram shows the change in the rotational speed of the main spindle.This figure shows the change in the rotational speed of the main shaft due to a change in acceleration.This is a flowchart explaining the operation of the program optimization device.This is a block diagram of the program optimization device of the second disclosure.This figure shows an example of a method for determining the insertion position of a machining program.This figure shows an example of the processing in the machining program modification section.This figure shows an example of the processing in the machining program modification section.This is a block diagram of the program optimization device of the third disclosure.This is a block diagram of the program optimization device of the fourth disclosure.This figure shows the hardware configuration of the program optimization device. [First Disclosure] The program optimization device 100 of the first disclosure will be described below. The program optimization device 100 optimizes the processing program of a numerical control device. The program optimization device 100 is applicable to information processing devices such as PCs (personal computers), servers, and mobile terminals. Furthermore, the program optimization device 100 may be applied to control devices such as numerical control devices. Figure 1 is a block diagram of the program optimization device 100. The program optimization device 100 comprises a processing program acquisition unit 1, a classification information storage unit 2, a processing program classification unit 3, a prediction time calculation unit 4, an acceleration calculation unit 5, and a processing program modification unit 6. The machining program acquisition unit 1 acquires the machining program from the numerical control device from a storage device built into the program optimization device 100 or from an external storage device connected to the program optimization device 100 via a network. The classification information storage unit 2 stores classification information that classifies the commands included in the machining program into executable commands, non-executable commands, and rotational speed commands. Executable commands are commands that can be executed simultaneously with acceleration or deceleration of the spindle rotational speed. Non-executable commands are commands that cannot be executed simultaneously with acceleration or deceleration of the spindle rotational speed. Rotational speed commands are commands that set a target value for the spindle rotational speed. Executable commands include rapid traverse and cutting fluid discharge. No problems occur when accelerating or decelerating the spindle speed and executing rapid traverse or cutting fluid discharge simultaneously. Impossible commands include cutting feed and tool change. Cutting feed requires waiting until the spindle speed reaches the target speed. Tool change requires waiting until the spindle rotation stops. Accelerating or decelerating the spindle speed and executing cutting feed or tool change simultaneously are not possible. Note that commands cannot always be simply classified. Tool change is an impossible command and is also a rotation speed command. The machining program classification unit 3 refers to the classification information storage unit 2 and classifies each block of the machining program into executable blocks, non-executable blocks, and rotation speed command blocks according to the commands (executable commands, non-executable commands, and rotation speed commands) of each block. Figure 2 shows an example of classification. The machining program in Figure 2 is a seven-line machining program with sequence numbers "N01" to "N07". Block "N01" includes the command "M03: spindle forward rotation", block "N02" includes the command "G01: cutting feed", blocks "N04" to "N06" include the command "G00: rapid traverse", block "N03" includes the command "M03: spindle forward rotation", and block "N07" includes the command "G01: cutting feed". The machining program classification unit 3 refers to