Information processing device, numerical control device, control system, and information processing method

The information processing device optimizes tool retraction paths in NC machine tools by simulating the workpiece's post-machining shape, addressing inefficiencies in tool retraction time and reducing redundant machining operations.

WO2026234775A1PCT designated stage Publication Date: 2026-11-12MITSUBISHI ELECTRIC CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2025/016898
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-05-08
Publication Date
2026-11-12

AI Technical Summary

Technical Problem

Existing NC machine tools face inefficiencies in tool retraction time due to the changing shape of the workpiece during machining, as current systems do not account for the altered shape, leading to prolonged retraction times.

Method used

An information processing device that modifies the machining program by performing a machining simulation to derive tool retraction operations based on the workpiece's shape after machining, adjusting the retraction path to avoid interference and minimize retraction time.

Benefits of technology

The solution effectively shortens tool retraction time by optimizing the tool's movement path to avoid collisions, thereby reducing redundant machining time and improving overall efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2025016898_12112026_PF_FP_ABST
    Figure JP2025016898_12112026_PF_FP_ABST
Patent Text Reader

Abstract

An information processing device (1A) comprises: a machining simulation execution unit (11) that, on the basis of a material shape of a workpiece, a tool shape of a tool used for machining, a machine model representing a structure of a machine tool, and a machining program, executes a machining simulation of the workpiece to derive a machining simulation result; a retreat operation detection unit (12) that extracts, from the machining simulation result, a tool retreat operation, which is a relative movement operation of the tool with respect to the workpiece until the tool moves from a position where first machining processing on the workpiece has been completed to a position where second machining processing is started; and a retreat operation correction unit (13) that, on the basis of the shape of the machined workpiece at a point in time when the first machining processing has been completed, which is included in the machining simulation result, corrects the tool retreat operation such that a tool retreat time is shortened within a range in which the tool and the machined workpiece do not interfere with each other, and corrects the machining program on the basis of the corrected tool retreat operation.
Need to check novelty before this filing date? Find Prior Art

Description

Information processing device, numerical controller, control system, and information processing method

[0001] The present disclosure relates to an information processing device, a numerical controller, a control system, and an information processing method that correct a retraction operation of a tool from a workpiece.

[0002] In NC (Numerical Control) machine tools, machining of a workpiece is performed using a machining program in which movement commands for moving the workpiece or the tool are described. This machining program is generated by a CAM system or an interactive programming function. Since the CAM system or the interactive programming function generates a tool path with an excessive margin for interference avoidance, the machining time based on the machining program may become redundant in some cases.

[0003] The control device described in Patent Document 1 sets a tool change impossible region, which is a region where the tool interferes with other machine structures and tool change cannot be performed, for the purpose of reducing the time required for tool change. This control device determines, as a new tool change position, a position where the tool does not interfere with the tool change impossible region when performing tool change, on the path moving from the end position of the machining process before tool change to the tool change position.

[0004] Japanese Unexamined Patent Application Publication No. 2011-237880

[0005] However, in the technique of Patent Document 1 described above, although the shape of the workpiece changes due to cutting, the changed shape of the workpiece is not taken into consideration, so there is a problem that the tool retraction time when the tool retracts from the workpiece may become long in some cases.

[0006] The present disclosure has been made in view of the above, and an object thereof is to obtain an information processing device capable of shortening the tool retraction time when a tool retracts from a workpiece.

[0007] To solve the above-mentioned problems and achieve the objectives, the information processing device of the present disclosure is an information processing device for modifying a machining program used when machining a workpiece with a tool attached to a machine tool, and comprises a machining simulation execution unit that performs a machining simulation of the workpiece and derives machining simulation results based on the material shape, which is the shape of the workpiece before machining, the tool shape, which is the shape of the tool, a machine model representing the structure of the machine tool, and a machining program. Furthermore, the information processing device of the present disclosure comprises a retraction operation detection unit that extracts from the machining simulation results a tool retraction operation, which is the relative movement operation of the tool with respect to the workpiece, from the position where the first machining operation in which the tool machined a first machining area of ​​the workpiece is completed until the tool moves to the position where the second machining operation in which the tool machined a second machining area of ​​the workpiece begins. Furthermore, the information processing device of this disclosure includes a retraction operation modification unit that modifies the tool retraction operation based on the shape of the workpiece after machining at the time the first machining process included in the machining simulation results, so as to shorten the tool retraction time, which is the operation time of the tool retraction operation, within a range where the tool and the workpiece after machining do not interfere with each other, and modifies the machining program based on the modified tool retraction operation.

[0008] The information processing device described herein has the effect of shortening the tool retraction time when the tool is retracted from the workpiece.

[0009] Figure showing the configuration of the information processing device according to Embodiment 1 Figure showing the configuration of a machine tool controlled using the machining program modified by the information processing device according to Embodiment 1 Flowchart showing the processing procedure for modifying the machining program executed by the information processing device according to Embodiment 1 Flowchart showing the processing procedure for modifying the tool retraction operation executed by the retraction operation modification unit of the information processing device according to Embodiment 1 Figure for explaining a first example of the tool retraction operation before the information processing device according to Embodiment 1 modifies the tool retraction operation Figure for explaining a first example of the tool retraction operation after the information processing device according to Embodiment 1 modifies the tool retraction operation Figure for explaining a first example of the process by which the information processing device according to Embodiment 1 determines whether or not there is interference with the modified tool retraction operation Figure for explaining the tool retraction operation before and after modification as displayed by the display unit of the information processing device according to Embodiment 1 Figure for explaining a second example of the tool retraction operation before the information processing device according to Embodiment 1 modifies the tool retraction operation Embodiment 1 Figure 1 illustrates a second example of the process by which the information processing device determines whether or not there is interference with the corrected tool retraction operation. Figure 2 illustrates an example of tool retraction operation after the information processing device according to Embodiment 1 has corrected the corrected tool retraction operation. Figure 3 illustrates the tool rotation operation when the information processing device according to Embodiment 1 performs a table rotation operation while retracting the tool. Figure 4 illustrates the process when the information processing device according to Embodiment 1 corrects the tool retraction operation by a first tool rotation operation. Figure 5 illustrates the process when the information processing device according to Embodiment 1 corrects the tool retraction operation by a second tool rotation operation. Figure 6 shows the configuration of the numerical control device according to Embodiment 2. Figure 7 shows the configuration of the control system according to Embodiment 2. Figure 8 shows an example of the configuration of the processing circuit when the processing circuit of the information processing device according to Embodiments 1 and 2 is implemented with a processor and memory. Figure 9 shows an example of the configuration of the processing circuit when the processing circuit of the information processing device according to Embodiments 1 and 2 is implemented with dedicated hardware.

[0010] The information processing apparatus, numerical control device, control system, and information processing method according to embodiments of this disclosure will be described in detail below with reference to the drawings.

[0011] Embodiment 1. Figure 1 shows the configuration of the information processing device according to Embodiment 1. The information processing device 1A is a computer that modifies the machining program used when machining a workpiece (workpiece W, described later) with a tool (tool T, described later) attached to a machine tool. The information processing device 1A modifies the machining program by modifying the tool retraction operation, which is the operation of retracting the tool T from the workpiece W.

[0012] The information processing device 1A shortens the machining time of the workpiece W by modifying the tool retraction operation to reduce the tool retraction time when the tool T retracts from the workpiece W, which is the object to be machined. The information processing device 1A performs a machining simulation of the machining of the workpiece W by the tool T (for example, cutting). The information processing device 1A shortens the tool retraction time by modifying the tool retraction operation based on the shape of the workpiece W after machining, which is included in the machining simulation results.

[0013] The information processing device 1A includes a machining simulation execution unit 11, a retraction operation detection unit 12, a retraction operation correction unit 13, a machining program correction unit 14, and a display unit 15. The information processing device 1A also includes a machining program storage unit 41, a material shape storage unit 42, a tool shape storage unit 43, and a machine model storage unit 44.

[0014] The machining program storage unit 41 stores the machining program used when machining the workpiece W with the tool T. The machining program is a program that describes movement commands for moving the workpiece W and the tool T.

[0015] The material shape memory unit 42 stores the material shape, which is the shape of the workpiece W. The tool shape memory unit 43 stores the tool shape, which is the shape of the tool T. The machine model memory unit 44 stores the machine model used when machining the workpiece W with the tool T. This machine model is a model of the machine tool that machines the workpiece W with the tool T. The machine model includes information about the structure of the machine structure of the machine tool. An example of a machine structure of the machine tool is a machining table Pt.

[0016] The machining simulation execution unit 11 reads the machining program from the machining program storage unit 41. The machining simulation execution unit 11 also reads the material shape of the workpiece W from the material shape storage unit 42. The machining simulation execution unit 11 also reads the tool shape of the tool T from the tool shape storage unit 43. The machining simulation execution unit 11 also reads the machine model from the machine model storage unit 44.

[0017] The machining simulation execution unit 11 performs a machining simulation of the workpiece W based on the machining program, the material shape, the tool shape, and the machine model, and derives the machining simulation results.

[0018] The machining simulation executed by the machining simulation execution unit 11 is a simulation of machining when a machine tool processes a workpiece W with a tool T. The machining simulation operates the tool T and the machine model according to the operation commands for the tool T on the material described in the machining program, and simulates the tool T removing a portion of the material from the material. The machining simulation obtains the machining simulation results from this machining simulation.

[0019] The machine tool produces a workpiece W from a material by processing the material through a number of machining steps (machining processes) from the first to the nth (where n is a natural number). In other words, the machine tool produces a workpiece W by processing the material through multiple machining processes, which are multiple machining steps. In Embodiment 1, one machining step corresponds to one machining process. The machine tool processes various machining areas with each machining step.

[0020] The material is the object to be processed before processing, and the workpiece W is the object to be processed during or after processing. Embodiment 1 describes the case where the workpiece W is an object to be processed during processing. The shape of the workpiece W changes each time processing is performed in each processing step.

[0021] The machine tool processes the workpiece W in the mth machining step (where m is a natural number from 1 to n) so that the mth region of the workpiece W takes on the shape of the mth. When m is between 1 and (n-1), the machine tool moves the tool T from the position where the mth machining step is completed to the position where the (m+1)th machining step begins (for example, by linear movement). The following description mainly focuses on the case where the movement of the tool T is linear, but the movement of the tool T may also be by arc movement, curved movement, etc. That is, the movement of the tool T in Embodiment 1 is at least one of the following: linear movement, arc movement, and curved movement. The machine tool also moves the machining table on which the workpiece W is placed (machining table Pt, described later) from the position where the mth machining step is completed to the position where the (m+1)th machining step begins.

[0022] The machining step in which the tool T machines the mth machining area of ​​the workpiece W is the mth machining step, and the machining step in which the tool T machines the (m+1)th machining area of ​​the workpiece W is the (m+1)th machining step.

[0023] If the mth machining step is the first machining process, then the (m+1)th machining step is the second machining process. If the mth machining region machined in the mth machining step is the first machining region, then the (m+1)th machining region machined in the (m+1)th machining step is the second machining region.

[0024] The position of tool T when the mth machining step is completed is the starting position for tool T to retract, and the position of tool T when the (m+1)th machining step is started is the ending position for tool T to retract.

[0025] When m is n, the machine tool moves the tool T in a straight line from the position at the completion of the nth machining step to the position of the tool holder, etc. The following describes the case when m is 1 to (n-1).

[0026] As described above, the workpiece W in the process of processing in Embodiment 1 is the workpiece W at the time when the first to (n-1) processing steps are completed, and the workpiece W after processing is completed is the workpiece W at the time when the nth processing step is completed.

[0027] The machining simulation results include information about the movements of the tool T and the workpiece W when the machine tool processes the workpiece W with the tool T. Specifically, the machining simulation results include the shape of the material, the shape of the workpiece W after machining, the tool retraction movement, the tool retraction time, and the tool path. The tool retraction movement in the machining simulation results includes either table rotation or tool rotation.

[0028] A rotational movement is a movement in which the axis direction of rotation changes. In other words, a table rotation is a movement in which the machining table Pt rotates so that the axis direction of rotation of the machining table Pt changes. Similarly, a tool rotation is a movement in which the tool T rotates so that the axis direction of rotation of the tool T during cutting changes.

[0029] On the other hand, the aforementioned movement is an action in which the axial direction does not change but the position changes. In other words, the movement of the tool T is an action in which the tool T moves such that the axial direction of the rotation axis of the tool T during cutting does not change but the position of the tool T changes.

[0030] The tool retraction operation is performed by linear movement of the tool T and at least one of rotation of the machining table Pt and rotation of the tool T. The tool retraction operation is the movement of the tool T and the machining table Pt from the time the tool T completes the mth (m is 1 to (n-1)) machining step on the workpiece W until the tool T begins machining the (m+1)th machining step on the workpiece W.

[0031] In other words, the tool retraction operation is the relative movement of the tool T with respect to the workpiece W, from the position where the tool T has completed the mth machining operation of the workpiece W to the position where the tool T begins the (m+1)th machining operation of the workpiece W.

[0032] For example, the tool retraction operation includes information on the linear movement path (movement trajectory) of the tool T from the completion of the mth machining step until the start of the (m+1)th machining step, and information on the rotation path (rotation trajectory) of the machining table Pt.

[0033] Tool retraction time is the duration of the tool retraction operation. In other words, tool retraction time is the time from when the tool T completes the mth machining step on the workpiece W until the tool T begins machining the (m+1)th machining step on the workpiece W. Between the completion of the mth machining step and the start of the (m+1)th machining step, the tool T moves linearly and the machining table Pt rotates. Therefore, tool retraction time includes the time the tool T moves and the time the machining table Pt rotates between machining steps. If the linear movement of the tool T and the rotation of the machining table Pt are performed separately, the tool retraction time is the sum of the time the tool T moves and the time the machining table Pt rotates between machining steps.

[0034] Table rotation is the rotational movement of the machining table (machining table Pt, described later) on which the workpiece W is placed. Table rotation is the movement of rotating the machining table Pt using the machine's rotation axis (for example, the B-axis, described later) to change the direction of the machining table Pt. The workpiece W also rotates as a result of the table rotation.

[0035] Tool rotation is the rotational movement of the tool T. Tool rotation is the movement of rotating the tool T on the machine rotation axis on the spindle side of the machine (for example, the A axis described later) when the machine tool is a multi-tasking machine, thereby changing the direction of the tool T.

[0036] The post-processing shape of the workpiece W included in the processing simulation results is the shape of the workpiece W at the time the processing step is completed. The processing simulation results may also include information on changes in the shape of the workpiece W during processing. That is, the processing simulation results may include information on the intermediate processing shape, which is the result of the tool T removing material at each operation command described in the processing program. The processing simulation execution unit 11 transmits the processing simulation results to the retraction operation detection unit 12 and the retraction operation correction unit 13.

[0037] The retraction motion detection unit 12 detects tool retraction movements during table rotation or tool rotation included in the machining program, based on the machining simulation results. Specifically, the retraction motion detection unit 12 extracts tool T movement and tool retraction movements, which include at least one of table rotation and tool rotation, from the machining simulation results.

[0038] The retraction motion detection unit 12 extracts actions such as moving the tool T away from the workpiece W between machining steps or issuing a rapid traverse command to the tool T as targets for tool rotation movements, and actions such as rotating the machining table Pt between machining steps as targets for table rotation movements. The retraction motion detection unit 12 transmits the detected tool retraction movements to the retraction motion correction unit 13.

[0039] The tool retraction operation modification unit 13 modifies the tool retraction operation based on the post-machining shape of the workpiece W, the structure of the machine tool, and the tool retraction operation included in the machining simulation results. The structure of the machine tool may be derived based on a machine model.

[0040] The retraction operation modification unit 13 modifies the tool retraction operation based on the shape of the workpiece W after machining, so as to shorten the tool retraction time to the extent that there is no interference (collision) between the tool T and the workpiece W or the machine tool's mechanical structure. In this way, the retraction operation modification unit 13 modifies the tool retraction operation so that the tool T does not interfere with the workpiece W or the machine tool's mechanical structure.

[0041] When the tool retraction operation from the completion of the machining in the m-th machining step to the start of the machining in the (m+1)-th machining step is modified, the post-machining shape of the workpiece W is the shape of the workpiece W at the time point when the machining in the m-th machining step is completed. In this case, the retraction operation modification unit 13 modifies the tool retraction operation based on the shape of the workpiece W at the time point when the machining in the m-th machining step is completed.

[0042] The tool retraction operation modified by the retraction operation modification unit 13 includes information on the linear movement path of the tool T, information on the movement speed of the tool T, information on the rotation angle of the machining table Pt, and information on the rotation speed of the machining table Pt. The tool retraction operation modified by the retraction operation modification unit 13 may include information on the circular arc movement path of the tool T, information on the curved movement path, or the like. The information on the movement path of the tool T modified by the retraction operation modification unit 13 is, for example, at least one of information on a linear movement path, information on a circular arc movement path, information on a curved movement path, and the like.

[0043] Further, the retraction operation modification unit 13 may modify the tool retraction operation so as to simultaneously execute the movement operation of the tool T and at least one of the table rotation operation and the tool rotation operation. Further, the retraction operation modification unit 13 may modify the tool retraction operation so as to rotate the machining table Pt in the direction opposite to the current rotation direction.

[0044] The retraction operation modification unit 13 calculates the tool retraction time, which is the respective operation time, for both the tool retraction operation before modification and the tool retraction operation after modification. The retraction operation modification unit 13 calculates the pre-modification tool retraction time based on the pre-modification tool retraction operation, and calculates the post-modification tool retraction time based on the post-modification tool retraction operation.

[0045] The retraction operation modification unit 13 may be configured not to modify the tool retraction operation when the tool retraction time of the pre-modification tool retraction operation is shorter than the tool retraction time of the post-modification tool retraction operation. The retraction operation modification unit 13 transmits the modified tool retraction operation to the machining program modification unit 14.

[0046] The machining program correction unit 14 corrects the machining program based on the corrected tool retraction operation. Specifically, the machining program correction unit 14 corrects the tool retraction operation in the machining program with the corrected tool retraction operation. That is, the machining program correction unit 14 corrects the machining program by reflecting the corrected tool retraction operation in the machining program. The machining program correction unit 14 transmits the corrected machining program to an external device such as a numerical controller.

[0047] Note that the machining simulation execution unit 11 may re-execute the machining simulation using the corrected machining program. Also in this case, the machining simulation execution unit 11 executes the machining simulation based on the machining program, the material shape, the tool shape, and the machine model. The retraction operation detection unit 12 extracts the tool retraction operation from the machining simulation result, and the retraction operation correction unit 13 calculates the tool retraction time corresponding to this tool retraction operation. Thereby, the information processing apparatus 1A can calculate an accurate tool retraction time corresponding to the corrected tool retraction operation. The retraction operation correction unit 13 applies the corrected tool retraction operation when the tool retraction time of the corrected tool retraction operation is shorter than the tool retraction time of the pre-correction tool retraction operation.

[0048] The display unit 15 displays the detected pre-correction tool retraction operation and the corrected tool retraction operation in comparison with each other. Further, the display unit 15 displays the tool retraction time of the pre-correction tool retraction operation and the tool retraction time of the corrected tool retraction operation in comparison with each other.

[0049] Note that at least one of the machining program storage unit 41, the material shape storage unit 42, the tool shape storage unit 43, and the display unit 15 may be a separate device from the information processing apparatus 1A arranged outside the information processing apparatus 1A. At least one of the machining program storage unit 41, the material shape storage unit 42, the tool shape storage unit 43, and the display unit 15 may be directly connected to the information processing apparatus 1A, or may be connected via a network or the like.

[0050] Figure 2 shows the configuration of a machine tool controlled using a machining program modified by the information processing device according to Embodiment 1. In Figure 2, the two axes in a plane parallel to the upper surface of the machining table Pt, which are mutually orthogonal, are defined as the X-axis and the Z-axis. The axis orthogonal to the X-axis and Z-axis is defined as the Y-axis. For example, the XZ plane is a horizontal plane, and the Y-axis direction is parallel to the vertical direction.

[0051] The machine tool 6 is equipped with a machining table Pt on which the workpiece W is placed. Figure 2 illustrates the case where the raw material Mx, which is the workpiece W before machining, is placed on the machining table Pt.

[0052] The machine tool 6 has drive axes in the translational directions of the X, Y, and Z axes, and a drive axis in the rotational direction of the B axis that rotates the machining table Pt around the Y axis. The machine tool 6 moves the tool T in the X and Y directions and moves the machining table Pt in the Z direction.

[0053] Furthermore, the machine tool 6 rotates the workpiece W placed on the machining table Pt by rotating the machining table Pt around the B axis. The machine tool 6 performs the table rotation motion of the workpiece W by rotating the machining table Pt around the B axis.

[0054] Alternatively, instead of machine tool 6, a machine tool having a drive axis in the rotational direction of the A axis that rotates the tool T around the X axis may be used. In this case, the machine tool rotates the tool T around the A axis.

[0055] Alternatively, instead of the machine tool 6, a machine tool having a drive axis in the rotational direction of the A axis that rotates the machining table Pt around the X axis may be used. In this case, the machine tool rotates the machining table Pt around the A axis.

[0056] Alternatively, instead of machine tool 6, a machine tool having a drive axis in the rotational direction of the B axis that rotates the tool T around the Y axis may be used. In this case, the machine tool rotates the tool T around the B axis.

[0057] The machine model memory unit 44 stores the machine model of the machine tool 6 as shown in Figure 2. The material shape memory unit 42 stores the material shape of material Mx as shown in Figure 2. The tool shape memory unit 43 stores the tool shape of tool T as shown in Figure 2.

[0058] Figure 3 is a flowchart showing the processing procedure for modifying a machining program executed by the information processing device according to Embodiment 1. The machining simulation execution unit 11 of the information processing device 1A performs a machining simulation of the workpiece W (step S1). Specifically, the machining simulation execution unit 11 performs a machining simulation based on the machining program, the material shape, the tool shape, and the machine model.

[0059] The retraction motion detection unit 12 detects tool retraction movements during tool rotation or table rotation in the machining program based on the machining simulation results (step S2). In other words, the retraction motion detection unit 12 extracts tool retraction movements that include table rotation or tool rotation from the machining simulation results.

[0060] The retraction operation correction unit 13 corrects the tool retraction operation based on the machining simulation results (step S3). Specifically, the retraction operation correction unit 13 corrects the tool retraction operation based on the post-machining shape of the workpiece W, the structure of the machine tool 6, and the tool retraction operation included in the machining simulation results.

[0061] Furthermore, the tool retraction operation correction unit 13 calculates the tool retraction time of the tool retraction operation before correction and the tool retraction time of the tool retraction operation after correction. If the tool retraction time of the tool retraction operation before correction is shorter than the tool retraction time after correction, the unit may choose not to correct the tool retraction operation.

[0062] The display unit 15 displays the tool retraction operation and tool retraction time before and after the correction (step S4). Specifically, the display unit 15 displays the detected tool retraction operation before correction and the tool retraction operation after correction side by side. The display unit 15 also displays the tool retraction time before correction and the tool retraction time after correction side by side. The display unit 15 may omit displaying the tool retraction time before and after correction. If the display unit 15 displays the tool retraction time before and after correction, the retraction operation correction unit 13 calculates the tool retraction time before and after correction.

[0063] The display unit 15 displays the tool retraction operation and tool retraction time before and after the modification, thereby reducing the effort required for the user to confirm the modifications to the tool retraction operation. Furthermore, the display unit 15 also displays the tool retraction time before and after the modification, thereby reducing the effort required for the user to confirm the tool retraction time before and after the modification.

[0064] The machining program modification unit 14 modifies the machining program based on the modified tool retraction operation (step S5). Specifically, the machining program modification unit 14 modifies the machining program by reflecting the modified tool retraction operation in the machining program.

[0065] The display unit 15 may also display the machining program before and after modification. Furthermore, the display unit 15 may highlight the modified parts of the machining program in a manner different from other parts of the machining program.

[0066] Here, we will explain in detail the processing performed by the retraction operation correction unit 13 in step S3. Figure 4 is a flowchart showing the processing procedure for the tool retraction operation correction process performed by the retraction operation correction unit of the information processing device according to Embodiment 1.

[0067] The retraction operation correction unit 13 of the information processing device 1A extracts and acquires the start position and end position of tool T retraction from the detected tool retraction operation (step S11).

[0068] The retraction operation modification unit 13 creates a tool retraction operation that directly moves the tool T from the acquired retraction start position to the retraction end position (step S12). The tool retraction operation that directly moves the tool T from the retraction start position to the retraction end position is the modified tool retraction operation.

[0069] The retraction operation modification unit 13 determines whether interference occurs during table rotation or tool rotation when the created tool retraction operation is performed (step S13). That is, if the created tool retraction operation involves directly moving the tool T from the retraction start position to the retraction end position, the retraction operation modification unit 13 determines whether interference occurs between the tool T and the workpiece W or machine structure after machining when performing table rotation or tool rotation.

[0070] If interference occurs during table rotation or tool rotation (step S14, Yes), the retraction motion correction unit 13 corrects the tool retraction motion to avoid the interference (step S15). That is, the retraction motion correction unit 13 corrects the motion of directly moving the tool T from the created retraction start position to the retraction end position so as to avoid interference.

[0071] In Embodiment 1, the process of creating a tool retraction operation that directly moves the tool T from the retraction start position to the retraction end position is called tool retraction operation modification, and the process of modifying the modified tool retraction operation so that interference is avoided is called tool retraction operation correction. In other words, the process in step S12 is the tool retraction operation modification process, and the process in step S15 is the tool retraction operation correction process.

[0072] On the other hand, if no interference occurs when performing a table rotation or tool rotation operation (step S14, No), the retraction operation correction unit 13 does not correct the tool retraction operation. The retraction operation correction unit 13 sets a tool retraction operation that does not cause interference as the new tool retraction operation (step S16). In other words, if interference occurs, the retraction operation correction unit 13 sets a tool retraction operation corrected to prevent interference as the new tool retraction operation, and if no interference occurs, it sets the created tool retraction operation as the new tool retraction operation.

[0073] Next, we will explain a specific example of the tool retraction operation correction process described in Figure 4. First, we will explain the first correction process example, which is a basic example of the tool retraction operation, using Figures 5 to 7. Figures 5 to 7 and 9 to 12 below illustrate the tool T, machining table Pt, and workpiece W in the process of machining, as viewed from the Y-axis direction.

[0074] Figure 5 is a diagram illustrating a first example of the tool retraction operation before the information processing device according to Embodiment 1 modifies the tool retraction operation. The machine tool 6 processes the workpiece W in the mth (where m is any of 1 to (n-1)) machining step, and the mth machining step is completed (st11).

[0075] In the mth machining step, the tool T processes the workpiece W, resulting in the workpiece W having a different shape from the raw material Mx. The position of the tool T at the completion of the mth machining step is the starting position of the tool retraction operation, which is the retraction start position P11.

[0076] After the mth machining step is completed, the tool T retracts to the retracted position P12 in the Z-axis direction (away from the machining table Pt) (st12). Subsequently, with the tool T still stopped at the retracted position P12, the machining table Pt rotates around the rotation axis RA (st13). Here, we show the case where the machining table Pt rotates 90 degrees clockwise around the rotation axis RA.

[0077] Finally, the tool T moves to the retraction end position P13, which is the end position of the tool retraction movement (st14). The retraction end position P13 is the starting position for the next machining step, the (N+1)th machining step.

[0078] In the tool retraction operation before modification shown in Figure 5, the tool T is retracted to a retraction position P12 with an excessive margin to avoid interference, which can result in redundant machining time for the workpiece W. In Embodiment 1, the information processing device 1A modifies the tool retraction operation to shorten such redundant machining time.

[0079] Figure 6 is a diagram illustrating a first example of tool retraction operation after the information processing device according to Embodiment 1 has modified the tool retraction operation. Figure 6 shows the modified tool retraction operation when the tool retraction operation in Figure 5 has been modified. Figure 6 describes a case in which the information processing device 1A creates an operation to directly move the tool T from the retraction start position P11 to the retraction end position P13 based on the tool retraction operation shown in Figure 5.

[0080] The retraction motion correction unit 13 adopts the retraction start position P11 of the tool retraction motion before correction (st21). The retraction motion correction unit 13 creates an operation to move the tool T from the retraction start position P11 to the retraction end position P13 along a straight path or the like (st22).

[0081] The retraction motion correction unit 13 creates a table rotation motion of the machining table Pt around the rotation axis RA while the tool T remains stopped at the retraction end position P13 (st23). Here, the retraction motion correction unit 13 creates the same motion as the motion in st13 described above. For example, the retraction motion correction unit 13 creates a motion that rotates the machining table Pt 90 degrees clockwise around the rotation axis RA.

[0082] Figure 7 is a diagram illustrating a first example of the process by which the information processing device according to Embodiment 1 determines whether or not there is interference with the modified tool retraction operation. In Figure 7, the process of determining whether or not there is interference with the modified tool retraction operation in Figure 6 will be explained.

[0083] The retraction operation correction unit 13 determines whether interference occurs between the tool T and the workpiece W or machine structure after machining when the machining table Pt is rotated while the tool T is stopped at the retraction end position P13 (st31).

[0084] Figure 7, on the left, shows how st31 is used to determine whether or not interference occurs between the tool T and the workpiece W during machining. In st31, the intermediate orientation of the workpiece W is discretely represented when the machining table Pt is rotated 90 degrees clockwise while the tool T is stopped at the retraction end position P13.

[0085] The retraction motion correction unit 13 calculates the passage region CA1, which is the area through which the workpiece W passes when the machining table Pt is rotated (st32). The retraction motion correction unit 13 calculates the passage region CA1 based on the orientation of the workpiece W during rotation when the machining table Pt is rotated.

[0086] The retraction operation modification unit 13 determines that if the tool T and the passage area CA1 of the workpiece W after machining do not interfere with each other, the table rotation operation will not cause interference between the tool T and the workpiece W after machining, and therefore sets the created tool retraction operation as the new tool retraction operation. In other words, if the tool T's retraction end position P13 is outside the passage area CA1, the retraction operation modification unit 13 sets the created tool retraction operation as the new tool retraction operation. This new tool retraction operation set by the retraction operation modification unit 13 is the modified tool retraction operation that corrects the tool retraction operation shown in Figure 5. In other words, the new tool retraction operation set by the retraction operation modification unit 13 is the tool retraction operation shown in Figure 6.

[0087] Figure 8 is a diagram illustrating the tool retraction operation before and after modification as displayed by the display unit of the information processing device according to Embodiment 1. The tool retraction operation modification unit 13 calculates the tool retraction time before modification based on the tool retraction operation before modification, and calculates the tool retraction time after modification based on the tool retraction operation after modification.

[0088] In step S4 described above, the display unit 15 displays a comparison between the tool retraction operation before modification and the tool retraction operation after modification. The display unit 15 also displays a comparison between the tool retraction time of the tool retraction operation before modification and the tool retraction time of the tool retraction operation after modification. However, the display unit 15 does not necessarily have to display the tool retraction time of the tool retraction operation before modification and the tool retraction time of the tool retraction operation after modification.

[0089] The display unit 15 may, when displaying the tool retraction operation before and after modification, graphically display a series of movements of the tool T side by side, or display it as an animation. The information processing device 1A may also allow the user to select whether to reflect the tool retraction operation before modification or the tool retraction operation after modification in the machining program. In this case, the display unit 15 displays the tool retraction operation after modification as a candidate tool retraction operation for modification. In this case as well, the display unit 15 displays the tool retraction operation before modification and the candidate tool retraction operation for modification side by side.

[0090] The information processing device 1A receives information from the user indicating which of the pre- and post-correction tool retraction operations was selected. The retraction operation correction unit 13 applies the tool retraction operation selected by the user of the information processing device 1A. That is, if the user of the information processing device 1A selects a candidate tool retraction operation, the retraction operation correction unit 13 sets the selected tool retraction operation as the actual tool retraction operation. The machining program correction unit 14 reflects the tool retraction operation received from the user, which was one of the pre- and post-correction tool retraction operations, into the machining program.

[0091] Next, using Figures 9 to 11, we will explain a second example of a correction process for the tool retraction operation. Figures 9 to 11 illustrate an example of a correction process for the tool retraction operation when interference occurs in the corrected tool retraction operation. When interference occurs during the table rotation operation or tool rotation operation in the corrected tool retraction operation, the information processing device 1A performs a correction process to avoid the interference.

[0092] Figure 9 is a diagram illustrating a second example of the tool retraction operation before the information processing device according to Embodiment 1 modifies the tool retraction operation. The machine tool 6 processes the workpiece W in the Mth (M is any of 1 to (n-1)) machining step, and the Mth machining step is completed (st41).

[0093] In the Mth machining step, the tool T processes the workpiece W, resulting in the workpiece W having a different shape from the raw material Mx. The position of the tool T at the completion of the Mth machining step is the starting position P21 of the tool retraction operation.

[0094] After the Mth machining step is completed, the tool T retracts to the retracted position P22 in the Y-axis direction (upward from the machining table Pt) (st42). Subsequently, with the tool T still stopped at the retracted position P22, the machining table Pt rotates around the rotation axis RA (st43). This shows the case where the machining table Pt rotates 90 degrees counterclockwise around the rotation axis RA.

[0095] Finally, the tool T moves to the retraction end position P23, which is the end position of the tool retraction movement (st44). The retraction end position P23 is the starting position for the next machining step, the (M+1) machining step.

[0096] In the tool retraction operation before modification shown in Figure 9, the tool T is retracted to a retraction position P22 with an excessive margin to avoid interference, which can result in redundant machining time for the workpiece W. In Embodiment 1, the information processing device 1A modifies the tool retraction operation to shorten such redundant machining time.

[0097] The information processing device 1A performs the modification process described in Figure 6 for the tool retraction operation shown in Figure 9. Specifically, the retraction operation modification unit 13 creates an operation to directly move the tool T from the retraction start position P21 to the retraction end position P23, based on the tool retraction operation shown in Figure 9.

[0098] Then, the retraction motion correction unit 13 creates a table rotation motion of the machining table Pt around the rotation axis RA, while keeping the tool T stopped at the retraction end position P23. Here, the retraction motion correction unit 13 creates the same motion as the motion of st43 described above. For example, the retraction motion correction unit 13 creates a motion that rotates the machining table Pt 90 degrees counterclockwise around the rotation axis RA.

[0099] Figure 10 is a diagram illustrating a second example of the process by which the information processing device according to Embodiment 1 determines whether or not there is interference with the modified tool retraction operation. In Figure 10, the process of determining whether or not there is interference with the tool retraction operation modified from the tool retraction operation in Figure 9 and performing corrections to avoid interference is described.

[0100] The retraction operation modification unit 13 determines whether interference occurs when a tool retraction operation is created that moves the tool T directly from the retraction start position P21 to the retraction end position P23. Specifically, the retraction operation modification unit 13 determines whether interference occurs between the tool T and the workpiece W or machine structure after machining when the machining table Pt is rotated while the tool T is stopped at the retraction end position P23 (st51).

[0101] Figure 10 shows st51 in the upper left, illustrating the process of determining whether or not interference occurs between the tool T and the workpiece W, which is the material shape during machining. In st51, the intermediate orientation of the workpiece W is discretely represented when the machining table Pt is rotated 90 degrees counterclockwise while the tool T is stopped at the retraction end position P23.

[0102] The retraction motion correction unit 13 calculates the passage region CA2, which is the area through which the workpiece W passes when the machining table Pt is rotated (st52). The retraction motion correction unit 13 calculates the passage region CA2 based on the orientation of the workpiece W during rotation when the machining table Pt is rotated.

[0103] The retraction motion correction unit 13 corrects the created tool retraction motion (st53) if the tool T and the passage area CA2 of the workpiece W after machining are interfering with each other, because the table rotation motion causes interference between the tool T and the workpiece W after machining. Specifically, the retraction motion correction unit 13 calculates a retraction relay position P24 by correcting the retraction end position P23 in order to avoid interference between the tool T and the passage area CA2 of the workpiece W after machining.

[0104] The retraction operation correction unit 13 calculates the retraction relay position P24 as the position where the correction amount is minimized when the retraction end position P23 is corrected so that the retraction relay position P24 of the tool T is located outside the passage area CA2. In other words, the retraction operation correction unit 13 calculates the retraction relay position P24 such that the retraction relay position P24 of the tool T is located outside the passage area CA2 and the correction amount from the retraction end position P23 is minimized. The correction amount from the retraction end position P23 is the distance between the retraction end position P23 and the retraction relay position P24.

[0105] The retraction relay position P24 calculated by the retraction operation correction unit 13 becomes an intermediate position in the tool retraction operation. The retraction operation correction unit 13 creates an operation to directly move the tool T from the retraction start position P21 to the retraction end position P23 via the retraction relay position P24. In other words, the retraction operation correction unit 13 sets the tool retraction operation via the retraction relay position P24 as a new tool retraction operation. This new tool retraction operation set by the retraction operation correction unit 13 is a tool retraction operation that has been modified and corrected from the tool retraction operation shown in Figure 9.

[0106] Figure 11 is a diagram illustrating an example of tool retraction operation after the information processing device according to Embodiment 1 has corrected the tool retraction operation. Figure 11 shows the corrected tool retraction operation when correction is made to avoid interference as shown in Figure 10. Figure 11 describes the case in which the information processing device 1A creates an operation to move the tool T from the retraction start position P21 to the retraction end position P23 via the retraction relay position P24, based on the result of the determination of whether or not there is interference as explained in Figure 10.

[0107] The retraction operation modification unit 13 adopts the retraction start position P21 of the tool retraction operation before modification as is (st61). The retraction operation modification unit 13 creates an operation to move the tool T from the retraction start position P21 to the retraction intermediate position P24 along a straight path or the like (st62).

[0108] The retraction motion correction unit 13 creates a table rotation motion of the machining table Pt around the rotation axis RA while the tool T remains stopped at the retraction relay position P24 (st63). Here, the retraction motion correction unit 13 creates the same motion as the machining table Pt motion described in st43 above. For example, the retraction motion correction unit 13 creates a motion to rotate the machining table Pt 90 degrees counterclockwise around the rotation axis RA. The retraction motion correction unit 13 creates a motion to move the tool T from the retraction relay position P24 to the retraction end position P23 (st64).

[0109] Furthermore, when the retraction operation modification unit 13 creates a table rotation operation as shown in Figure 6 or Figure 11, it may also modify the table rotation direction of the table rotation operation to be in the opposite direction to the table rotation direction of the table rotation operation before modification. In other words, the retraction operation modification unit 13 may modify the tool retraction operation so that the table rotation operation is performed in the opposite direction to the table rotation operation before modification.

[0110] Furthermore, the retraction motion correction unit 13 may select the table rotation direction with the shorter tool retraction time between the table rotation motion before correction and the table rotation motion after correction to execute the table rotation in the opposite direction. In this case, the retraction motion correction unit 13 calculates the tool retraction time when the table rotation direction is not changed and the tool retraction time when the table rotation direction is changed to the opposite direction. The retraction motion correction unit 13 then selects the table rotation direction by comparing the calculated tool retraction times.

[0111] The tool retraction operation when the table rotation direction is not changed and the tool retraction operation when the table rotation direction is changed to the opposite direction have different passage areas CA2, and therefore the retraction relay position P24 is also different. Here, the retraction relay position P24 when the table rotation direction is not changed is denoted as retraction relay position P24A, and the retraction relay position P24 when the table rotation direction is changed to the opposite direction is denoted as retraction relay position P24B.

[0112] The retraction operation correction unit 13 calculates the tool retraction time when the table rotation direction is not changed, which is the sum of the time it takes for the tool T to move from the retraction start position P21 to the retraction intermediate position P24A, the time for the table rotation operation, and the time it takes for the tool T to move from the retraction intermediate position P24A to the retraction end position P23.

[0113] Furthermore, the retraction operation correction unit 13 calculates the tool retraction time when changing the table rotation direction as the sum of the time it takes for the tool T to move from the retraction start position P21 to the retraction intermediate position P24B, the time for the table rotation operation, and the time it takes for the tool T to move from the retraction intermediate position P24B to the retraction end position P23.

[0114] The retraction operation correction unit 13 compares the tool retraction time when the table rotation direction is not changed with the tool retraction time when the table rotation direction is changed, and selects the table rotation direction with the shorter tool retraction time. The retraction operation correction unit 13 also selects the retraction relay position P24A and P24B with the shorter tool retraction time.

[0115] Figure 12 is a diagram illustrating the tool rotation operation when the information processing device according to Embodiment 1 performs a table rotation operation while retracting the tool. In Figure 12, a case is described in which the information processing device 1A modifies the tool retraction operation described in Figure 5 so that it simultaneously performs the operation of moving the tool T to the retraction end position P13 and the table rotation operation.

[0116] The retraction motion correction unit 13 adopts the retraction start position P11 of the tool retraction motion before correction (st71). While performing a table rotation motion, the retraction motion correction unit 13 creates an operation to move the tool T from the retraction start position P11 to the retraction intermediate position P31 along a straight path or the like (st72).

[0117] The retraction intermediate position P31 and the retraction intermediate positions P32 and P33, described later, are intermediate positions between the retraction start position P11 and the retraction end position P13. That is, the retraction intermediate positions P31 to P33 are positions on the line segment connecting the retraction start position P11 and the retraction end position P13. The retraction operation correction unit 13 moves the tool T to the retraction intermediate position P31 while rotating the machining table Pt to the intermediate position of the first stage of the table rotation operation.

[0118] Furthermore, the retraction motion correction unit 13 creates an operation to move the tool T from the retraction intermediate position P31 to the retraction intermediate position P32 along a straight path or the like while executing the table rotation operation (st73).

[0119] The retraction intermediate position P32 is a position on the line segment connecting the retraction intermediate position P31 and the retraction completion position P13. That is, the retraction intermediate position P32 is closer to the retraction completion position P13 than the retraction intermediate position P31. The retraction operation correction unit 13 moves the tool T to the retraction intermediate position P32 while rotating the machining table Pt to the second stage of the table rotation operation. The rotation angle up to the second stage is larger than the rotation angle up to the first stage.

[0120] Furthermore, the retraction motion correction unit 13 creates an operation to move the tool T from the retraction intermediate position P32 to the retraction intermediate position P33 along a straight path or the like while executing the table rotation operation (st74).

[0121] The retraction intermediate position P33 is a position on the line segment connecting the retraction intermediate position P32 and the retraction completion position P13. That is, the retraction intermediate position P33 is closer to the retraction completion position P13 than the retraction intermediate position P32. The retraction operation correction unit 13 moves the tool T to the retraction intermediate position P33 while rotating the machining table Pt to the third stage of the table rotation operation. The rotation angle up to the third stage is larger than the rotation angle up to the second stage.

[0122] Furthermore, the retraction motion correction unit 13 creates an operation to move the tool T from the retraction intermediate position P33 to the retraction completion position P13 along a straight path or the like while executing the table rotation operation (st75). While the retraction motion correction unit 13 moves the tool T to the retraction completion position P13, it rotates the machining table Pt to the final stage of the table rotation operation.

[0123] st72 shows the position of the tool T and the machining table Pt after a specific time has elapsed since st71. st73 shows the position of the tool T and the machining table Pt after a specific time has elapsed since st72. st74 shows the position of the tool T and the machining table Pt after a specific time has elapsed since st73. st75 shows the position of the tool T and the machining table Pt after a specific time has elapsed since st74.

[0124] The rotation angle at the final stage of the table rotation operation by the retraction operation correction unit 13 is the same as the rotation angle at st23 in Figure 6. Also, the end position P13 of the tool T's retraction by the retraction operation correction unit 13 is the same as the end position P13 at st22 and st23 in Figure 6. Thus, in Figure 6, the retraction operation correction unit 13 performed the table rotation operation while the tool T was stopped, but in Figure 12, the retraction operation correction unit 13 performed the table rotation operation while moving the tool T. As a result, the retraction operation correction unit 13 creates an operation that moves the tool T from the retraction start position P11 to the retraction end position P13 along a straight path or the like while executing the table rotation operation.

[0125] The retraction operation correction unit 13 may synchronize the movement of the tool T and the rotation of the table by adjusting the feed rates of the tool T and the machining table Pt, thereby completing them simultaneously. Alternatively, the retraction operation correction unit 13 may not synchronize the movement of the tool T and the rotation of the table, allowing one of the operations to complete first.

[0126] In Figure 12, at step 75, both the linear movement of the tool T and the rotation of the table have finished, the tool T has reached the retracted position P13, and the machining table Pt has rotated 90 degrees clockwise.

[0127] In the tool retraction operation shown in Figure 12, if interference occurs between the tool T and the workpiece W or machine structure after machining during the movement of the tool T and the machining table Pt, the retraction operation correction unit 13 may correct the linear movement of the tool T and the rotation of the table to avoid the interference.

[0128] In this case, the retraction operation correction unit 13 sets multiple interference check points during the tool retraction operation period, and calculates the intermediate retraction position of the tool T and the intermediate rotation position of the machining table Pt at each interference check point.

[0129] Furthermore, the retraction operation correction unit 13 determines whether or not the tool T is interfering at each interference check period from one interference check point to the next. In other words, the retraction operation correction unit 13 determines at specific time intervals whether or not interference occurs between the tool T and the workpiece W or machine structure after machining.

[0130] The retraction motion correction unit 13 calculates the passage area of ​​the workpiece W due to the table rotation motion and the passage area of ​​the tool T due to the linear movement motion of the tool T at specific time intervals. For example, the retraction motion correction unit 13 calculates the passage area of ​​the workpiece W and the passage area of ​​the tool T at each interference check period. Based on the passage area of ​​the workpiece W and the passage area of ​​the tool T, the retraction motion correction unit 13 determines whether or not interference occurs at each interference check period.

[0131] The retraction operation correction unit 13 corrects the tool retraction operation during the interference check period in which interference occurs by correcting the intermediate retraction position of the tool T to an intermediate retraction position in which no interference occurs. The retraction operation correction unit 13 sets the correction position of the intermediate retraction position based, for example, on the passage area of ​​the workpiece W and the passage area of ​​the tool T. That is, the retraction operation correction unit 13 sets the corrected intermediate retraction position so that the passage area of ​​the workpiece W and the passage area of ​​the tool T do not interfere with each other. The retraction operation correction unit 13 sets the correction position of the intermediate retraction position that minimizes the amount of correction of the intermediate retraction position.

[0132] Furthermore, if the retraction motion correction unit 13 corrects the retraction intermediate position, it prevents the tool T from passing through the retraction intermediate position before correction. In other words, the retraction motion correction unit 13 causes the tool T to pass through the corrected retraction intermediate position instead of the retraction intermediate position before correction.

[0133] The retraction operation correction unit 13 may correct the tool retraction operation during the interference check period in which interference occurs by correcting the intermediate rotation position of the machining table Pt to an intermediate rotation position in which no interference occurs.

[0134] The retraction operation correction unit 13 sets a correction position for the intermediate rotation position of the machining table Pt based, for example, on the passage area of ​​the workpiece W and the passage area of ​​the tool T. That is, the retraction operation correction unit 13 sets the corrected intermediate rotation position of the machining table Pt so that the passage area of ​​the workpiece W and the passage area of ​​the tool T do not interfere with each other. The retraction operation correction unit 13 sets a correction position for the intermediate rotation position of the machining table Pt that minimizes the amount of correction for the intermediate rotation position of the machining table Pt. The retraction operation correction unit 13 may also set a correction position for the intermediate rotation position that reverses the rotation direction of the machining table Pt.

[0135] Figures 5 to 12 illustrate the case where a table rotation operation is performed between machining steps, but the information processing device 1A only needs to perform at least one of the table rotation operation and the tool rotation operation. That is, the information processing device 1A may perform the tool rotation operation instead of the table rotation operation described above, or it may perform the tool rotation operation together with the table rotation operation described above.

[0136] Figure 13 is a diagram illustrating the process when the information processing device according to Embodiment 1 modifies the tool retraction operation by a first tool rotation operation. Here, the process when the information processing device 1A modifies the tool retraction operation by a tool rotation operation for a machine tool (not shown) with an axis configuration in which the B axis is located on the tool T side is described. Hereinafter, the machine tool with an axis configuration in which the B axis is located on the tool T side will be referred to as machine tool 6X. Figure 13 shows the modified tool retraction operation when the tool retraction operation as shown in Figure 5 is modified for machine tool 6X. In Figure 13, the retraction operation modification unit 13 creates an operation for machine tool 6X in which the tool rotation operation is performed instead of the table rotation operation of the machining table Pt.

[0137] Figure 13 and Figure 14 (described later) show cross-sectional views of the tool T, the workpiece W in the process of machining, and the fixing device F, viewed from the Y-axis direction. The fixing device F is a jig used to fix the workpiece W.

[0138] The retraction motion modification unit 13 adopts the retraction start position P41 of the tool retraction motion before modification (st81). The retraction start position P41 is the starting position of the tool retraction motion, just like the retraction start position P11. The retraction motion modification unit 13 creates an operation to move the tool T from the retraction start position P41 to the retraction position P42 along a straight line or the like (st82). The direction from the retraction start position P41 to the retraction position P42 is the direction in which the tool T moves away from the workpiece W.

[0139] The retraction motion correction unit 13 creates a tool rotation motion of the tool T around the rotation axis RB at the base of the tool T (opposite the area being machined) while the workpiece W remains stopped (st83). Figure 13 illustrates the case where the rotation axis RB is in the Y-axis direction. For example, the retraction motion correction unit 13 creates a motion to rotate the tool T 45 degrees clockwise around the rotation axis RB. The position of the tool T after the tool rotation motion is the tool rotation end position P43. Finally, the retraction motion correction unit 13 creates a motion to move the tool T from the tool rotation end position P43 to the retraction end position P44 along a straight line or the like (st84).

[0140] Figure 14 is a diagram illustrating the process when the information processing device according to Embodiment 1 modifies the tool retraction operation by a second tool rotation operation. Here, the process when the information processing device 1A modifies the tool retraction operation by a tool rotation operation for a machine tool 6X having an axis configuration in which axis B exists on the tool T side is explained. Figure 14 shows the modified tool retraction operation when the tool retraction operation as shown in Figure 5 is modified for the machine tool 6X. In Figure 14, the retraction operation modification unit 13 creates an operation for the machine tool 6X in which the tool rotation operation is performed instead of the table rotation operation of the machining table Pt.

[0141] The retraction motion modification unit 13 adopts the retraction start position P41 of the tool retraction motion before modification (st91). The retraction motion modification unit 13 creates an operation to move the tool T from the retraction start position P41 to the retraction position P45 along a straight path or the like (st92). The direction from the retraction start position P41 to the retraction position P45 is the direction in which the tool T moves while maintaining the distance between itself and the workpiece W.

[0142] The retraction motion correction unit 13 creates a table rotation motion of the tool T around the rotation axis RB at the base of the tool T, while keeping the workpiece W stopped (st93). Figure 14 illustrates the case where the rotation axis RB is in the Y-axis direction. For example, the retraction motion correction unit 13 creates a motion to rotate the tool T 45 degrees clockwise around the rotation axis RB. The position of the tool T after the tool rotation motion is the tool rotation end position P46.

[0143] Finally, the retraction motion modification unit 13 creates an action to move the tool T from the tool rotation end position P46 to the retraction end position P47 along a straight path or the like (st94). As explained in Figures 13 and 14, the retraction motion modification unit 13 creates a tool rotation action instead of a table rotation action for the machine tool 6X. That is, the retraction motion modification unit 13 creates a table rotation action for the machine tool 6 and a tool rotation action for the machine tool 6X.

[0144] The retraction motion correction unit 13 calculates a passage region CA3 (not shown), which is the area through which the tool T passes when the tool T is rotated. The retraction motion correction unit 13 calculates the passage region CA3 based on the orientation of the tool T during its rotation.

[0145] The retraction operation correction unit 13 determines that if the workpiece W and the passage area CA3 of the tool T do not interfere with each other, the tool rotation operation will not cause interference between the tool T and the workpiece W after machining, and therefore sets the created tool retraction operation as the new tool retraction operation.

[0146] On the other hand, the retraction motion correction unit 13 corrects the created tool retraction motion if the workpiece W and the passage area CA3 of the tool T interfere with each other, because the tool rotation motion causes interference between the tool T and the workpiece W after machining. In this case, the retraction motion correction unit 13 corrects the tool retraction motion by the same process as described in Figures 10 and 11.

[0147] Furthermore, the retraction operation correction unit 13 may, for example, correct the tool retraction operation by correcting the intermediate rotational position of the tool T to an intermediate rotational position where no interference occurs during the interference check period in which interference occurs.

[0148] The retraction motion correction unit 13 sets a correction position for the intermediate rotation position of the tool T based, for example, on the passage area of ​​the workpiece W and the passage area of ​​the tool T. That is, the retraction motion correction unit 13 sets the corrected intermediate rotation position of the tool T so that the passage area of ​​the workpiece W and the passage area of ​​the tool T do not interfere with each other. The retraction motion correction unit 13 sets a correction position for the intermediate rotation position of the tool T that minimizes the amount of correction for the intermediate rotation position of the tool T. The retraction motion correction unit 13 may also set a correction position for the intermediate rotation position that reverses the rotation direction of the tool T.

[0149] The tool retraction operation before modification includes at least one of a table rotation operation and a tool rotation operation. The retraction operation modification unit 13 modifies the tool retraction operation so that the modified tool retraction operation includes at least one of a table rotation operation and a tool rotation operation.

[0150] The retraction operation modification unit 13 may, if the modified tool retraction operation includes a tool rotation operation, that is, for the machine tool 6X, select the tool rotation direction that has a shorter tool retraction time from among a clockwise tool rotation operation and a counterclockwise tool rotation operation.

[0151] In this case, the retraction motion correction unit 13 calculates the tool retraction time for each of the two types of tool rotation movements. That is, the retraction motion correction unit 13 calculates the tool retraction time when the tool rotation direction is clockwise and the tool retraction time when the tool rotation direction is counterclockwise. Then, the retraction motion correction unit 13 selects the tool rotation direction by comparing the calculated tool retraction times. For example, the retraction motion correction unit 13 corrects the tool retraction movement so that the tool T operates in the following order: movement of the tool T, tool rotation movement in the selected tool rotation direction, and movement of the tool T.

[0152] Furthermore, if the corrected tool retraction operation includes a table rotation operation, the retraction operation correction unit 13 may select the table rotation direction that results in a shorter tool retraction time from among a clockwise table rotation operation and a counterclockwise table rotation operation for the machine tool 6.

[0153] In this case, the tool retraction operation modification unit 13 calculates the tool retraction time for each of the two types of table rotation operations. That is, the tool retraction operation modification unit 13 calculates the tool retraction time when the table rotation direction is clockwise and the tool retraction time when the table rotation direction is counterclockwise. Then, the tool retraction operation modification unit 13 selects the table rotation direction by comparing the calculated tool retraction times. For example, the tool retraction operation modification unit 13 modifies the tool retraction operation so that the tool T and the machining table Pt operate in the following order: tool T movement operation, table rotation operation in the selected table rotation direction, tool T movement operation.

[0154] By the way, if the tool retraction operation is set based on the material shape without considering that the shape of the workpiece W changes during machining, the tool retraction path may become excessively long, which can result in a longer tool retraction time.

[0155] On the other hand, the information processing device 1A of Embodiment 1 modifies the tool retraction operation to shorten the tool retraction time based on the post-processing shape of the workpiece W that has changed during processing. Therefore, the information processing device 1A of Embodiment 1 can shorten the tool retraction time and shorten the processing time of the workpiece W.

[0156] Furthermore, the information processing device 1A can perform interference avoidance by considering changes in the shape of the workpiece W during machining through machining simulation, and can reduce the effort required to perform interference checks after correcting the tool retraction operation.

[0157] As described above, the information processing device 1A of Embodiment 1 modifies the tool retraction operation based on the post-machining shape of the workpiece W included in the machining simulation results, so as to shorten the tool retraction time within a range where the tool T and the post-machining workpiece W do not interfere with each other. As a result, the information processing device 1A can shorten the tool retraction time when the tool T retracts from the workpiece W. Furthermore, since the information processing device 1A modifies the machining program based on the tool retraction operation with shortened tool retraction time, the machining time for the workpiece W can be shortened.

[0158] Embodiment 2. Next, Embodiment 2 will be described with reference to Figures 15 and 16. In Embodiment 2, the information processing device is applied to the numerical control device.

[0159] Figure 15 shows the configuration of the numerical control device according to Embodiment 2. Among the components in Figure 15, components that achieve the same function as the information processing device 1A of Embodiment 1 shown in Figure 1 are denoted by the same reference numerals, and redundant explanations are omitted. The numerical control device 2 comprises an information processing device 1B having the same function as the information processing device 1A, a processing program analysis unit 21, and a command position generation unit 22.

[0160] The numerical control device 2 is a computer that controls the motor drive unit 3 located in the machine tool 6. The information processing device 1B, like the information processing device 1A, includes a machining simulation execution unit 11, a retraction operation detection unit 12, a retraction operation correction unit 13, and a machining program correction unit 14. The information processing device 1B also includes a machining program storage unit 41, a material shape storage unit 42, a tool shape storage unit 43, and a machine model storage unit 44.

[0161] The information processing device 1B does not have a display unit 15, unlike the information processing device 1A. The numerical control device 2 is connected to the display device 5 and displays the same information as the display unit 15 on the display device 5. The display device 5 may be located inside the numerical control device 2.

[0162] The machining program modification unit 14 of the information processing device 1B transmits the modified machining program to the machining program analysis unit 21. The machining program analysis unit 21 analyzes the operation commands described in the modified machining program based on the modified machining program. The machining program analysis unit 21 transmits the operation commands, which are the analysis results of the machining program, to the command position generation unit 22.

[0163] The command position generation unit 22 generates command positions for each of the multiple drive axes of the machine tool 6 at each control cycle based on the operation command. The command position generation unit 22 transmits the generated command positions to the motor drive unit 3 of the machine tool 6, which is connected to the outside of the numerical control device 2. The motor drive unit 3 drives the motor (not shown) based on the command positions generated for each control cycle. In this way, the numerical control device 2 controls the machine tool 6 by controlling the motor drive unit 3, which is then controlled by the command position generation unit 22 transmitting the command positions to the motor drive unit 3.

[0164] The information processing device 1B modifies the machining program using the same processing procedure as the information processing device 1A described in Figure 3 of Embodiment 1. Furthermore, the retraction operation correction unit 13 of the information processing device 1B modifies the tool retraction operation using the same processing procedure as the retraction operation correction unit 13 of the information processing device 1A described in Figure 4 of Embodiment 1.

[0165] Note that the information processing device 1B may be a separate device from the numerical control device 2, located outside the numerical control device 2. Figure 16 is a diagram showing the configuration of the control system according to Embodiment 2. Among the components in Figure 16, components that achieve the same function as the numerical control device 2 shown in Figure 15 are denoted by the same reference numerals, and redundant explanations are omitted.

[0166] The control system 10 comprises an information processing device 1B and a numerical control device 2X. The numerical control device 2X includes a machining program analysis unit 21 and a command position generation unit 22. Thus, the control system 10 comprises an information processing device 1B, a machining program analysis unit 21 and a command position generation unit 22. In the control system 10, the machining program modification unit 14 and the machining program analysis unit 21 of the information processing device 1B may be directly connected, or they may be connected via a network or the like. Note that the control system 10 may also include an information processing device 1A instead of the information processing device 1B.

[0167] As described above, the numerical control device 2 of the second embodiment has an information processing device 1B, and therefore, similar to the first embodiment, it can shorten the retraction time when the tool T is retracted from the workpiece W. Furthermore, since the numerical control device 2 controls the machining of the workpiece W using a machining program modified based on the tool retraction operation with shortened retraction time, the machining time of the workpiece W can be shortened.

[0168] Next, the hardware configuration of the information processing devices 1A and 1B will be described. The information processing devices 1A and 1B are implemented by processing circuits. The processing circuits may be a processor and memory that execute programs stored in memory, or they may be dedicated hardware.

[0169] Figure 17 shows an example of the configuration of a processing circuit when the processing circuit of the information processing device according to Embodiments 1 and 2 is implemented using a processor and memory. Since the information processing devices 1A and 1B have similar hardware configurations, the hardware configuration of information processing device 1A will be described here.

[0170] The processing circuit 90 shown in Figure 17 comprises a processor 91 and a memory 92. When the processing circuit 90 is composed of a processor 91 and a memory 92, each function of the processing circuit 90 is realized by software, firmware, or a combination of software and firmware. The software or firmware is written as an information processing program and stored in the memory 92. In the processing circuit 90, each function is realized by the processor 91 reading and executing the information processing program stored in the memory 92. In other words, the processing circuit 90 includes a memory 92 for storing an information processing program that will ultimately be executed by the processing of the information processing device 1A. This information processing program can also be said to be a program that causes the information processing device 1A to execute each function realized by the processing circuit 90. This information processing program may be provided on a computer-readable recording medium on which the information processing program is recorded, or it may be provided by other means such as a communication medium.

[0171] In the case of the information processing device 1A of Embodiment 1, the information processing program can also be described as a program that causes the information processing device 1A to execute the processes of steps S1 to S5 in Figure 3. The information processing program executed by the information processing device 1A has a module configuration that includes a machining simulation execution unit 11, a retraction operation detection unit 12, a retraction operation correction unit 13, a machining program correction unit 14, and a display unit 15, and these are loaded into the main memory and generated in the main memory. Similarly, the information processing program executed by the information processing device 1B has a module configuration that includes a machining simulation execution unit 11, a retraction operation detection unit 12, a retraction operation correction unit 13, and a machining program correction unit 14, and these are loaded into the main memory and generated in the main memory.

[0172] Here, the processor 91 is, for example, a CPU (Central Processing Unit), processing unit, arithmetic unit, microprocessor, microcomputer, or DSP (Digital Signal Processor). The memory 92 is, for example, a non-volatile or volatile semiconductor memory such as RAM (Random Access Memory), ROM (Read Only Memory), flash memory, EPROM (Erasable Programmable ROM), EEPROM (Registered Trademark) (Electrically EPROM), magnetic disk, flexible disk, optical disk, compact disk, minidisc, or DVD (Digital Versatile Disc).

[0173] Figure 18 shows an example of the configuration of a processing circuit when the processing circuit of the information processing device according to Embodiments 1 and 2 is configured with dedicated hardware. The processing circuit 93 shown in Figure 18 may be, for example, a single circuit, a composite circuit, a programmed processor, a parallel programmed processor, an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or a combination thereof. The processing circuit 93 may be partially implemented with dedicated hardware and partially implemented with software or firmware. In this way, the processing circuit 93 can realize the above-mentioned functions with dedicated hardware, software, firmware, or a combination thereof.

[0174] Numerical control devices 2 and 2X also have the same hardware configuration as information processing devices 1A and 1B. In the case of numerical control device 2, the information processing program includes a first program for executing the functions of information processing device 1B and a second program for executing the functions of the machining program analysis unit 21 and the command position generation unit 22. The first program and the second program may be separate programs. In the case of numerical control device 2X, the information processing program is a second program for executing the functions of the machining program analysis unit 21 and the command position generation unit 22.

[0175] The configurations shown in the above embodiments are merely examples, and it is possible to combine them with other known technologies, combine different embodiments, and omit or modify parts of the configuration without departing from the gist of the invention.

[0176] 1A, 1B Information processing device, 2, 2X Numerical control device, 3 Motor drive unit, 5 Display device, 6, 6X Machine tool, 10 Control system, 11 Machining simulation execution unit, 12 Evacuation motion detection unit, 13 Evacuation motion correction unit, 14 Machining program correction unit, 15 Display unit, 21 Machining program analysis unit, 22 Command position generation unit, 41 Machining program storage unit, 42 Material shape storage unit, 43 Tool shape storage unit, 44 Machine model storage unit, CA1 to CA3 Passage area, F Fixing device, Mx Material, P11, P21, P41 Evacuation start position, P12, P22, P42, P45 Evacuation position, P13, P23, P44, P47 Evacuation end position, P24, P24A, P24B Evacuation relay position, P31 to P33 Mid-retreat position, P43, P46 Tool rotation end position, Pt Processing table, RA, RB Rotating axis, T Tool, W Workpiece.

Claims

1. An information processing device for modifying a processing program used when processing a workpiece with a tool attached to a machine tool, comprising: a processing simulation execution unit that performs a processing simulation of the workpiece and derives processing simulation results based on the material shape, which is the shape of the workpiece before processing; the tool shape, which is the shape of the tool; a machine model representing the structure of the machine tool; and the processing program; a retraction operation detection unit that extracts from the processing simulation results a tool retraction operation, which is the relative movement operation of the tool with respect to the workpiece, from the position where the tool has completed a first processing operation in which the tool processes a first processing area of ​​the workpiece, to the position where the tool has started a second processing operation in which the tool processes a second processing area of ​​the workpiece; and a retraction operation modification unit that modifies the tool retraction operation so that the tool retraction time, which is the operation time of the tool retraction operation, is shortened to the extent that the tool and the workpiece after processing do not interfere with each other, based on the shape of the workpiece after processing included in the processing simulation results, and modifies the processing program based on the modified tool retraction operation. An information processing device characterized by comprising:

2. The information processing apparatus according to claim 1, characterized in that the retraction operation correction unit corrects the tool retraction operation so that the tool does not interfere with the workpiece or the structure of the machine tool.

3. The information processing apparatus according to claim 1 or 2, characterized in that the tool retraction operation includes at least one of a swivel operation which is an operation in which the axial direction of the rotation axis of the processing table on which the workpiece is placed changes, and a swivel operation which is an operation in which the axial direction of the rotation axis of the tool changes, and a movement operation which is an operation in which the position of the tool changes, but the axial direction of the rotation axis of the tool does not change.

4. The information processing apparatus according to claim 3, characterized in that the retraction operation modification unit modifies the tool retraction operation so that at least one of the rotational operation of the processing table and the rotational operation of the tool and the movement operation of the tool are executed simultaneously.

5. The information processing apparatus according to claim 3 or 4, characterized in that the retraction operation correction unit corrects the tool retraction operation so that the rotation operation of the machining table is performed in the opposite direction to the rotation operation of the machining table before the correction.

6. The information processing apparatus according to claim 3 or 4, characterized in that the retraction operation correction unit corrects the tool retraction operation so that the tool rotates in the opposite direction to the rotation operation of the tool before the correction.

7. The information processing device according to any one of claims 1 to 6, further comprising a display unit that displays a comparison between the extracted tool retraction operation before modification and the tool retraction operation after modification.

8. The information processing apparatus according to claim 7, wherein the retraction operation correction unit calculates the tool retraction time of the tool retraction operation before correction and the tool retraction time of the tool retraction operation after correction, and the display unit displays the tool retraction time of the tool retraction operation before correction and the tool retraction time of the tool retraction operation after correction in comparison.

9. A numerical control device comprising: an information processing device according to any one of claims 1 to 8; a machining program analysis unit for analyzing operation commands described in the modified machining program; and a command position generation unit for controlling a machine tool by generating command positions for the drive shafts of the machine tool at each control cycle based on the operation commands and transmitting them to the machine tool.

10. A control system comprising: an information processing device according to any one of claims 1 to 8; a machining program analysis unit for analyzing operation commands described in the modified machining program; and a command position generation unit for controlling a machine tool by generating command positions for the drive shafts of the machine tool at each control cycle based on the operation commands and transmitting them to the machine tool.

11. An information processing method for modifying a machining program used when machining a workpiece with a tool attached to a machine tool, comprising: a machining simulation execution step in which an information processing device performs a machining simulation of the workpiece based on the material shape, which is the shape of the workpiece before machining, the tool shape, which is the shape of the tool, a machine model representing the structure of the machine tool, and the machining program, and derives a machining simulation result; and a retraction operation detection step in which the information processing device extracts from the machining simulation result a tool retraction operation, which is the relative movement operation of the tool with respect to the workpiece, from the position where the tool has completed a first machining operation in which the tool has machined a first machining area of ​​the workpiece, until the tool moves to a position where it starts a second machining operation in which the tool has machined a second machining area of ​​the workpiece. An information processing method characterized by comprising: a retraction operation modification step in which the information processing device modifies the tool retraction operation based on the shape of the workpiece after machining at the time the first machining process is completed, which is included in the machining simulation results, so that the tool retraction time, which is the operation time of the tool retraction operation, is shortened to the extent that the tool and the workpiece after machining do not interfere with each other, and modifies the machining program based on the modified tool retraction operation.