Working machinery

The machine tool system addresses unnecessary stops and recovery time issues by implementing a controlled restart process with user interface-driven countermeasure selection and code execution, minimizing abnormality recurrence and enhancing operational efficiency.

JP2026046227APending Publication Date: 2026-03-13FUJI CORP
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2024-09-02
Publication Date
2026-03-13

AI Technical Summary

Technical Problem

Existing machine tools face issues with unnecessary machine stops and prolonged recovery times due to the need for manual adjustment after detecting abnormalities during machining programs, which can lead to recurring abnormalities if the restart is not properly managed.

Method used

A machine tool system with a user interface and control device that performs interruption processing upon detecting abnormalities, displays countermeasure information, allows user selection of implemented countermeasures, and resumes the machining program from the appropriate point, optionally executing earlier codes to prepare the machine state.

Benefits of technology

This approach minimizes the recurrence of abnormalities and reduces recovery time by systematically managing the restart process, ensuring the machine tool resumes operations efficiently and safely.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2026046227000001_ABST
    Figure 2026046227000001_ABST
Patent Text Reader

Abstract

To provide a machine tool that can suppress the occurrence of another abnormality after resuming execution if an abnormality is detected and execution is interrupted during the execution of a machining program. [Solution] The machine tool of this disclosure comprises a user interface, a machining device that performs machining on a workpiece, and a control device that controls the machining device based on a machining program. The control device performs, after starting the execution of the machining program, an interruption process that interrupts the execution of the machining program based on the detection of an abnormality during the execution of the machining program, a countermeasure information display process that displays information related to the abnormality detected in the interruption process, information on countermeasures against the abnormality, and a selection unit that selects whether or not the countermeasures have been implemented on the user interface, and a restart process that restarts the machining program from where it left off if the selection unit has selected that the countermeasures have been implemented after the countermeasure information display process has been executed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to a technique for restarting a machining program in a machine tool.

Background Art

[0002] The following Patent Document 1 describes a monitor device for a programmable controller. When the equipment to be controlled stops while the programmable controller is executing control processing for a plurality of steps, this monitor device accepts the selection of a step that becomes the starting point for restart from among the plurality of steps. When one step is selected from the plurality of steps displayed on the display, the monitor device resumes the execution of the control processing from the selected step.

Prior Art Documents

Patent Documents

[0003]

Patent Document 1

Summary of the Invention

Problems to be Solved by the Invention

[0004] In the monitor device of Patent Document 1 described above, the control processing is restarted from the specified step. On the other hand, in a machine tool that executes a machining program, after preparing the machine through a plurality of processes, various processes such as machining and cleaning are executed. Therefore, when the machine tool detects an abnormality and stops the execution of the machining program after starting the execution of the machining program, in order to restart the execution of the machining program, it is necessary for the user to confirm the cause of the abnormality and appropriately adjust the state of the machine. If restarting from the stopped process without adjusting the state of the machine, an abnormality may occur again. As a result, there is a problem that unnecessary machine stops are caused and the recovery work takes time.

[0005] This disclosure has been made in view of the above-mentioned problems, and aims to provide a machine tool that can suppress the occurrence of abnormalities again after resuming execution when an abnormality is detected and execution is interrupted during the execution of a machining program. [Means for solving the problem]

[0006] To solve the above problems, this specification discloses a machine tool comprising a user interface, a machining apparatus for machining a workpiece, and a control device for controlling the machining apparatus based on a machining program, wherein the control device performs the following: interruption processing to interrupt the execution of the machining program after starting the execution of the machining program, based on the detection of an abnormality during the execution of the machining program; countermeasure information display processing to display information relating to the abnormality detected in the interruption processing, information on countermeasures against the abnormality, and a selection unit for selecting whether or not countermeasures have been implemented on the user interface after the interruption processing and before resuming the machining program from where it left off; and resumption processing to resume the machining program from where it left off if the selection unit has selected that countermeasures have been implemented after the countermeasure information display processing.

[0007] Furthermore, in order to solve the above problems, this specification discloses a machine tool comprising a user interface, a machining apparatus for machining a workpiece, and a control device for controlling the machining apparatus based on a machining program, wherein the control device performs the following: interruption processing, which interrupts the execution of the machining program after starting the execution of the machining program, based on the detection of an abnormality during the execution of the machining program; and individual execution processing, which, after performing the interruption processing and before resuming the machining program from where it left off, detects executed codes that are earlier than the code to be executed first when the program is resumed, displays information on a plurality of the detected executed codes on the user interface, and individually accepts the execution of a plurality of the executed codes whose information is displayed. [Effects of the Invention]

[0008] According to the machine tool of this disclosure, if an abnormality is detected during the execution of a machining program and execution is interrupted, it is possible to suppress the occurrence of the abnormality again after execution is resumed. [Brief explanation of the drawing]

[0009] [Figure 1] Block diagram of a machine tool according to the first embodiment. [Figure 2] Flowchart for restarting the process. [Figure 3] A diagram showing the selection screen. [Figure 4] A diagram showing the program execution screen. [Figure 5] This diagram shows the changes in the display content of the M code display unit before and after executing the M code. [Figure 6] This diagram shows the program execution screen when an error occurs after executing the selected code. [Figure 7] A flowchart of the restart process according to the second embodiment. [Figure 8] A diagram showing an example of the M code display section. [Modes for carrying out the invention]

[0010] (First Embodiment) Hereinafter, a first embodiment of the machine tool, which is an embodiment of the machine tool of this disclosure, will be described with reference to the drawings. As shown in Figure 1, the first embodiment of the machine tool 10 includes a processing device 11, a workpiece holding device 12, a loader 13, a door opening / closing device 15, an operation panel 16, a control device 17, a coolant pump 19, various sensors 21, etc.

[0011] The machine tool 10 is, for example, a lathe. The processing device 11 is, for example, a turret device equipped with a tool post to which cutting tools (such as cutting tools or rotary tools) can be attached. The workpiece holding device 12 is, for example, a workpiece spindle device equipped with a gripping device 12A for gripping a workpiece, and which rotates the workpiece around the spindle while the workpiece is gripped by the gripping device 12A. The gripping device 12A is equipped with, for example, multiple chuck jaws or collet chucks, a drawbar for opening and closing the chuck jaws, a fluid pressure cylinder for driving the drawbar, etc.

[0012] The processing device 11 performs machining on a workpiece held by the workpiece holding device 12 using a cutting tool. The machine tool 10 in this disclosure is not limited to a lathe. For example, the machine tool 10 in this disclosure may be a milling machine that rotates cutting tools such as drills or end mills, or a machining center equipped with an ATC (automatic tool changer). In this case, the workpiece holding device 12 may be a chuck device that fixes the position of the workpiece relative to the rotating tool of the processing device 11. Furthermore, the number of processing devices 11 in the machine tool 10 is not limited to one; there may be multiple devices. Therefore, the machine tool 10 may have one or more processing chambers. Also, the machine tool 10 may be a combined processing machine equipped with a lathe and a machining center.

[0013] The loader 13 is, for example, a gantry-type workpiece transfer device, and is equipped with a head for chucking the workpiece, a sliding mechanism for sliding the head in the X-axis and Z-axis directions, etc. The loader 13 transfers the workpiece to and from the workpiece holding device 12, etc. Note that the device for transferring the workpiece is not limited to a loader, but may be other devices such as an articulated robot.

[0014] The door opening / closing device 15 is a device that opens and closes the door of the machining chamber where the machining equipment 11 and workpiece holding device 12 are installed, and is equipped with a drive source such as a servo motor. The coolant pump 19 is a device that discharges coolant from nozzles installed at various locations on the machine tool 10. The various sensors 21 are sensors installed at various locations on the machine tool 10, and are various types of sensors used in the machine tool 10, such as temperature sensors, light sensors, contact sensors, and flow sensors.

[0015] The control panel 16 is the user interface for the machine tool 10 and is equipped with a touch panel 16A, operation switches 16B, etc. Based on the control of the control device 17, the control panel 16 displays information related to the machine tool 10 on the touch panel 16A. The control panel 16 also accepts user input on the screen displayed on the touch panel 16A and outputs a signal to the control device 17 corresponding to the received input. Note that the above configuration of the user interface is just an example. For example, the user interface may be configured to have only a touch panel 16A, or it may be configured to have no touch panel 16A but have operation switches 16B and a monitor (such as an LCD monitor).

[0016] As shown in Figure 1, the control device 17 comprises a numerical control device 31 and a PLC 32. The numerical control device 31 comprises a CPU 34 and a storage device 35. The storage device 35 can be, for example, RAM, ROM, flash memory, or HDD. The storage device 35 can store an NC program 36, a control program 38, and an error database 39. The configuration of the storage device 35 that stores the NC program 36, etc., is not limited to the above configuration; it may also be configured with an SSD instead of an HDD, or an external storage medium such as a USB memory stick. Furthermore, the storage device 35 may be a storage medium such as a DVD-RAM, or a combination of these. In addition, the storage device 35 that stores the NC program 36, etc., may be a server or network storage.

[0017] Further, the machine tool 10 includes a control device 17 and a plurality of drive circuits 20 that connect to each of the above-described devices (processing device 11, workpiece holding device 12, loader 13, door opening / closing device 15, operation panel 16, coolant pump 19, various sensors 21). The numerical control device 31 can control each device via the drive circuit 20 by executing the NC program 36 and the control program 38 stored in the storage device 35 with the CPU 34. The drive circuit 20 is, for example, a driver circuit (servo amplifier) or an amplifier circuit that amplifies signals. The PLC 32 is a Programmable Logic Controller. The PLC 32 executes, for example, the ladder program 33 stored in the PLC 32 and performs sequence processing on various signals by a ladder circuit. These various signals are, for example, signals output by the sensors 21 that monitor the state of the machine tool 10. The PLC 32 is connected to the numerical control device 31 via the communication bus 43 and performs input / output of signals with the numerical control device 31.

[0018] Further, the control program 38 is a program that executes, for example, processing to change the display content of the touch panel 16A, processing to receive input on the screen displayed on the touch panel 16A, control processing based on the input information, and the like. In the abnormality DB 39, for example, information in which an abnormality code, information related to the abnormality, and information on countermeasures against the abnormality are associated with each other is stored as one record, and a plurality of records are stored. The abnormality code is information for identifying an abnormality that can occur in the machine tool 10, and a unique number or alphabet is assigned. The information related to the abnormality is information indicating the content of the abnormality indicated by the associated abnormality code, and includes abnormality information 52 (abnormality name, confirmation information) displayed on a selection screen 51 (see FIG. 3) described later. The information on countermeasures is information indicating countermeasures against the abnormality indicated by the associated abnormality code, and includes countermeasure information 53 displayed on the selection screen 51 described later. Further, an abnormality flag 40 is stored in the PLC 32. The abnormality flag 40 is information indicating whether an abnormality has occurred in the machine tool 10. Details of the usage methods of the abnormality DB 39 and the abnormality flag 40 will be described later.

[0019] In the following description, when the numerical control device 31 of the control device 17 controls each device by executing programs such as the NC program 36 and the control program 38, it may simply be described by the device name or program name. For example, the description "The control device 17 controls the loader 13 to transfer the workpiece" means that "the control device 17 executes the NC program 36 with the CPU 34 and controls the loader 13 based on the NC program 36 to transfer the workpiece".

[0020] The control device 17 controls each device according to the above configuration to execute processing on the workpiece. For example, when the control device 17 receives an instruction to start processing based on an operation input to the operation panel 16, it executes the specified NC program 36 and controls each device. The control device 17 controls the door opening / closing device 15 to close the door of the processing chamber. The control device 17 controls the loader 13 to transfer the workpiece received by the loader 13 from the device in the previous process to the workpiece holding device 12. Also, the workpiece holding device 12 rotates the workpiece held based on the control of the control device 17. Further, the control device 17 controls the processing device 11 to rotate the tool post, determines a desired cutting tool, and processes the workpiece with the determined cutting tool. The control device 17 controls the coolant pump 19, a control valve (not shown), etc. during and before and after processing, and sprays coolant onto the cutting edge of the cutting tool. When the processing is completed, the control device 17 receives the workpiece from the workpiece holding device 12 and unloads the processed workpiece to the device in the subsequent process. Note that the configuration of the machine tool 10 shown in FIG. 1 is an example. For example, the machine tool 10 may be provided with an inversion device for inverting the workpiece, a detection device for detecting the processed workpiece, etc.

[0021] (Regarding Interrupt Processing) After starting the execution of the NC program 36, the control device 17 performs an interruption process to suspend the execution of the NC program 36 based on the detection of an abnormality during the execution of the NC program 36. After starting the execution of the NC program 36, the control device 17 monitors the status of the machine tool 10 using various sensors 21, etc., and if an abnormality is detected, it interrupts the execution of the NC program 36 and suspends the transport of the workpiece and machining of the workpiece.

[0022] Furthermore, the abnormality flag 40 may be set to a value such as "1" or "0". After the power to the machine tool 10 is turned on and the system is started, the control device 17 sets the value of "0" as the initial value of the abnormality flag 40 by the PLC 32. Also, if the control device 17 detects an abnormality after starting the execution of the NC program 36 and interrupts the execution of the NC program 36, it sets the value of "1" to the abnormality flag 40. Therefore, the value "1" is an example of a first value in this disclosure.

[0023] Furthermore, if the control device 17 receives an instruction to interrupt the execution of the NC program 36 via the control panel 16 after starting the execution of the NC program 36, the PLC 32 sets the value of the abnormal flag 40 to "0" (or maintains the value at "0"). Therefore, if the user intentionally interrupts the execution of the NC program 36, the control device 17 keeps the value of the abnormal flag 40 at "0". The value "0" is an example of the second value in this disclosure. Note that the first and second values ​​described above are examples.

[0024] For example, the PLC32 executes the ladder program 33 to determine whether the sensor values ​​obtained from various sensors 21 are within the normal range. If it detects that the sensor values ​​are outside the normal range, it changes the value of the abnormality flag 40 from "0" to "1". The numerical control device 31 also executes the control program 38 to periodically obtain the abnormality flag 40 from the PLC32 and determine its value. For example, if the value of the abnormality flag 40 obtained from the PLC32 is "0", the numerical control device 31 determines that no abnormality has occurred. If the value of the obtained abnormality flag 40 is "1", the numerical control device 31 determines that an abnormality has occurred, interrupts the execution of the NC program 36, and stores information about the interrupted line and code (information about the restart position 68, described later) in the storage device 35. The numerical control device 31 also stores information related to the abnormality that occurred in the storage device 35. The numerical control device 31 determines the abnormality code of the abnormality that occurred based on the detected values ​​from the sensors 21 and the abnormality DB 39, etc. The numerical control device 31 stores the information of the determined abnormality code in the storage device 35.

[0025] In this disclosure, "acquisition" is used as a concept that does not require a request. Therefore, for example, "the numerical control device 31 acquires the abnormality flag 40 from the PLC 32" is a concept that includes both cases where the numerical control device 31 actively reads the abnormality flag 40 from the PLC 32 and cases where the PLC 32 outputs the abnormality flag 40 to the numerical control device 31 without being requested. Furthermore, if the PLC 32 detects that the sensor value is outside the range of normal values, it may notify the numerical control device 31 of the occurrence of an abnormality. The numerical control device 31 may then acquire the value of the abnormality flag 40 when it receives a notification from the PLC 32. In addition, monitoring for abnormalities in the machine tool 10 may be performed by means other than the PLC 32 (ladder program 33). For example, the numerical control device 31 may execute the control program 38 to monitor for abnormalities in the machine tool 10. Furthermore, the abnormality flag 40 may be stored in a device other than the PLC 32, for example, in the storage device 35.

[0026] (Regarding the resumption of processing) Next, the restart process to be executed when an instruction to resume the execution of the interrupted NC program 36 is given after the execution of the NC program 36 described above has been interrupted will be explained with reference to Figure 2. After the control device 17 has performed an interruption due to the detection of an abnormality or an interruption based on the instruction from the user described above, it will start the process shown in Figure 2 on the condition that it has received an instruction to resume the execution of the interrupted NC program 36 based on the operation input to the control panel 16. Note that the conditions for starting the process shown in Figure 2 are not limited to the conditions described above. For example, the control device 17 may start the process shown in Figure 2 when the execution of the NC program 36 has been interrupted, the door to the machining chamber has been opened, and then the door to the machining chamber has been closed again.

[0027] Furthermore, in the following explanation, the line or code of the NC program 36 that is first executed when execution is resumed after being interrupted will be referred to as the resume position (such as the resume position 68 described later). Specifically, if the control device 17 is interrupted due to an abnormality, for example, it sets the line or code that was being executed when the abnormality was detected, or the line or code that was scheduled to be executed next, as the resume position. Also, if the control device 17 receives an interruption instruction from the user, for example, it sets the line or code that was being executed when the interruption instruction was received as the resume position. The control device 17 stores the resume position information in the storage device 35.

[0028] When the control device 17 starts the process shown in Figure 2, it first determines in step 1 (hereinafter simply referred to as S) whether the value of the abnormality flag 40 is "1". If the value of the abnormality flag 40 is "1", that is, if the control device 17 interrupts the process based on the detection of an abnormality (S1: YES), it displays the selection screen 51 shown in Figure 3 on the touch panel 16A (S3).

[0029] On the other hand, if the value of the abnormality flag 40 is "0", that is, if the execution was interrupted by user operation (S1:NO), the control device 17 resumes execution of the NC program 36 from the resume position (S23). The control device 17 then completes the process shown in Figure 2. When the user intentionally interrupts the execution, unlike the restart process when an abnormality occurs, the execution is interrupted without any abnormality occurring. Therefore, basically, there is no need to perform any work to resolve the abnormality or prepare to place the workpiece for restart, and the NC program 36 can be restarted normally from the resume position even if execution is restarted as is. If the user discovers an abnormality and interrupts the execution, the control device 17 may perform the same processing as when an abnormality occurs. For example, the control device 17 may start processing from S3 based on the user's operation. This allows the execution of the NC program 36 to be restarted after appropriately executing various codes of the NC program 36, as will be described later, similar to when an abnormality occurs.

[0030] As shown in Figure 3, the control device 17 displays abnormality information 52, countermeasure information 53, a selection section 55, and a checkbox 57 on the selection screen 51. For example, when an abnormality is detected, the control device 17 retrieves the stored abnormality code information from the storage device 35 and retrieves the abnormality information 52 and countermeasure information 53 associated with the retrieved abnormality code from the abnormality DB 39. Figure 3 shows the selection screen 51 when an abnormality occurs, specifically a malfunction of the spindle chuck (gripping device 12A). The abnormality information 52 displays a message indicating the name of the abnormality (e.g., spindle chuck malfunction) and confirmation information (e.g., that it occurred in the previous machining operation, and whether countermeasures have been implemented). The countermeasure information 53 displays a message indicating what confirmation work and countermeasures should be taken for the abnormality that occurred (in this case, spindle chuck malfunction). Specifically, the countermeasure information 53 displays messages to confirm whether the gripping device 12A can perform tightening and loosening operations, and messages to confirm the solenoid valve installed in the path that supplies fluid (hydraulic oil or air) to the fluid pressure cylinder that drives the drawbar. These abnormal information 52 and countermeasure information 53 are stored in the abnormality DB 39.

[0031] The user can perform a final check to see if appropriate actions have been taken to resume the execution of the NC program 36 by checking the abnormal information 52 and the countermeasure information 53. The user can also check all the countermeasures that need to be taken. The control device 17 displays an "Implemented" button 55A to indicate that the countermeasures have been taken, and an "Not Implemented" button 55B to indicate that the countermeasures have not been taken, on the selection unit 55. The control device 17 displays the word "Yes" on the "Implemented" button 55A and the word "No" on the "Not Implemented" button 55B.

[0032] After displaying the selection screen 51 in S3, the control device 17 determines whether or not the "Completed" button 55A has been selected on the selection screen 51 (hereinafter sometimes simply referred to as "selected") (S5). If the "Completed" button 55A has been selected (S5: YES), the control device 17 displays the program execution screen 61 shown in Figure 4 (S7). As will be described later, by operating the buttons on the program execution screen 61, the user can execute various codes prior to the restart position, and prepare the state of the machine tool 10 before restarting the execution of the NC program 36. For this reason, the user checks the contents displayed on the selection screen 51, and if the countermeasure has already been implemented or if the displayed countermeasure has been implemented, selects the "Completed" button 55A to display the program execution screen 61.

[0033] On the other hand, if the "Not Implemented" button 55B is selected (S5: NO), the control device 17 terminates the process shown in Figure 2. For example, if the user finds any unimplemented countermeasures or items to check among the items displayed in the countermeasure information 53, the user interrupts the process in Figure 2 and checks again. After implementing the countermeasures and checks, the user restarts the execution of the NC program 36, causing the process shown in Figure 2 to run again. In this case, since the abnormality flag 40 remains at "1", if the user restarts the execution of the NC program 36 again, the control device 17 displays the selection screen 51 (S1: YES).

[0034] Furthermore, the control device 17 displays the message "Do not show next time" next to the checkbox 57. If the completed button 55A is selected with the checkbox 57 checked, the control device 17 will not execute S3 and S5 in subsequent processes. Specifically, the control device 17 starts the process shown in Figure 2, and if the abnormal flag 40 is "1" (S1: YES), it executes S7 without displaying the selection screen 51. This eliminates the need to display the selection screen 51 each time the execution of the NC program 36 is restarted. The control device 17 may also be configured to allow selection between a mode that displays the selection screen 51 and a mode that does not display it. If the mode that does not display is selected, the control device 17 may execute the same process as when the checkbox 57 is checked.

[0035] Furthermore, the control device 17 may be configured to allow setting whether or not to display the selection screen 51 for each type of abnormality that occurs. Specifically, for example, the control device 17 may only perform a process to not display the selection screen 51 when an abnormality occurs that has the same abnormality code as the abnormality that occurred when checkbox 57 was checked. Alternatively, when checkbox 57 is checked, the control device 17 may perform a process to hide the selection screen 51 for a certain period of time, rather than hiding it permanently. The control device 17 may also accept selections or settings for this period of time during which the screen is not displayed.

[0036] As shown in Figure 4, the control device 17 displays the M code display unit 62, the G code display unit 63, the S code display unit 64, the T code display unit 65, and the program display unit 66 on the program execution screen 61. For example, the control device 17 executes the NC program 36 displayed on the program display unit 66 sequentially from top to bottom. The control device 17 detects, for example, that an abnormality has occurred during the execution of the restart position 68, which is shown by hatching in Figure 4. When displaying the program execution screen 61, the control device 17 highlights the restart position 68 more than other parts (codes, lines) of the NC program 36. For example, the control device 17 displays the restart position 68 in blue. This allows the user to easily find the position where the program stopped due to an abnormality, i.e., the position where the program will start after restarting, through the highlighted display. Note that the method of highlighting is not limited to adding color; for example, the font size could also be increased. The control device 17 may also accept changes to the restart position 68 where execution will resume via the program display unit 66.

[0037] The control device 17 displays the M-code, G-code, S-code, and T-code information contained in the NC program 36 in the following order on the M-code display unit 62, G-code display unit 63, S-code display unit 64, and T-code display unit 65, respectively. The control device 17 executes a process to accept execution individually for each displayed code. M-codes, G-codes, S-codes, and T-codes are defined, for example, in the Japanese Industrial Standards (JIS). Unspecified codes can also be defined by the user. Furthermore, the definitions of each code may be changed as appropriate by the manufacturer. Note that the codes in this disclosure are not limited to the types of codes described above; for example, F-codes that specify the feed rate and N-codes that indicate the sequence number may also be used.

[0038] When the "Executed" button 55A is selected, the control device 17 detects codes (M, G, S, and T codes, hereinafter referred to as "executed codes") that precede the first code to be executed when the NC program 36 is restarted (in the case of Figure 4, the code at restart position 68). For example, the control device 17 detects the M code written between the beginning of the NC program 36 and the code at restart position 68 as the M code of the executed code. The control device 17 displays the detected M codes in the order they are written in the NC program 36 on the M code display unit 62. The M code display unit 62 in this embodiment is provided with display fields for displaying three M codes. The control device 17 accepts the execution of the three displayed M codes individually.

[0039] The control device 17 displays the number field 71, code number field 72, function name field 73, execute button 74, and ignore button 75 on the M code display unit 62, one line (display field) for each, and displays the information in association with each other. Each line corresponds to a detected M code. The number field 71 is a field that displays a sequential number from 1 to 3. The code number field 72 is a field that displays the code number of the M code. The function name field 73 is a field that displays the function name indicating the execution content of the M code. For example, the storage device 35 stores data that associates the code number of the M code with the function name. Based on this data, the control device 17 displays the information of the detected M code on the M code display unit 62. In the example shown in Figure 4, M18, M17, and M50 are displayed in order from the beginning (starting from 1 in the number field 71).

[0040] M codes are commands that define the control of auxiliary functions in NC program 36, for example. "M18" is a command to close the door of the machining chamber. "M17" is a command to receive the workpiece from the loader 13 to the workpiece holding device 12 and chuck the workpiece with the gripping device 12A. "M50" is a command to drive the coolant pump 19 to discharge coolant. When the control device 17 receives an operation on any of the three execution buttons 74, it executes the M code on the same line as the execution button 74 that was operated. This allows the user to execute only the necessary M codes from the M codes displayed on the M code display unit 62, i.e., the M codes that have been executed before the restart position 68, and prepare before restarting. In addition to the code number in the code number field 72, the function name is also displayed on the M code display unit 62, so the user does not need to decipher the code in NC program 36 and can instruct execution while confirming the content to be executed in advance.

[0041] When any of the three execution buttons 74 is pressed, the control device 17 executes the M code associated with the pressed execution button 74, and then hides the display field for the executed M code from the M code display unit 62. The control device 17 then displays the M codes written from the beginning of the NC program 36 to the restart position 68, excluding the hidden M code (the executed M code), in the M code display unit 62.

[0042] Figure 5 shows the change in the display content of the M code display unit 62 before and after executing an M code. For example, when the execution button 74 for the first M code, M18 (door close), is pressed, the control device 17 displays the M code display unit 62A shown in the lower part of Figure 5. The control device 17 hides the executed M18, moves the second M17 up to the first position, and moves the third M50 up to the second position. The control device 17 also displays M11 (turret unclam, see program display unit 66 in Figure 4), which is scheduled to be executed after the original third M50, as the third position.

[0043] On the other hand, when the execution button 74 for the third M50 is pressed while the control device 17 is displaying the M code display unit 62 shown in the upper diagram of Figure 5, the control device 17 displays the M code display unit 62B shown in the lower right diagram of Figure 5. The control device 17 hides the executed third M50 and displays the M11 to be executed next as the third. This allows the executed M codes to be hidden while maintaining the execution order. The user can execute the necessary M codes while observing the status of the machine tool 10, and can execute them without making mistakes in the order. It also prevents the same M code from being executed repeatedly. Furthermore, by shifting the display order, the size of the M code display unit 62 can be reduced.

[0044] Furthermore, when the ignore button 75 is operated, the control device 17 does not execute the M code in the row of the operated ignore button 75, i.e., the M code associated with the operated ignore button 75, and hides the display field for that M code. The control device 17 displays the M codes written from the beginning of the NC program 36 to the restart position 68, excluding the M code that was hidden, by moving them up. Therefore, when the ignore button 75 is operated, the control device 17 performs the same display processing as when the execute button 74 shown in Figure 5 is operated, but does not execute the M code. This allows the user to check the display in the M code display unit 62 and hide unnecessary M codes by operating the ignore button 75. Also, by moving them up, the size of the M code display unit 62 can be reduced.

[0045] Furthermore, if there are no more M codes to display in the M code display unit 62 due to the operation of the execute button 74 or the ignore button 75, the row in the M code display unit 62 may be left blank. For example, if the execute button 74 is operated and an M code is executed, and there are no remaining M codes between the third M code and the restart position 68, the third row may be left blank. Alternatively, a message such as "There are no other matching M codes before the restart position 68" may be displayed.

[0046] Furthermore, the G-codes displayed on the G-code display unit 63 are, for example, commands to move the indexed cutting tools used for machining the workpiece to the machining position after indexing the cutting tools to be used for machining the workpiece in the turret of the machining device 11. For example, in the machine tool 10 of this embodiment, the coordinates of the G-code are specified by the X-axis coordinate and the Z-axis coordinate. The control device 17 displays on the G-code display unit 63 the information of the G-code that is executed last (executed code) of the same code type (e.g., G-code) in the execution order of the NC program 36, prior to the restart position 68, which is the position of the first code to be executed when the program is restarted. Similarly, the control device 17 also displays the last executed code for the S-codes in the S-code display unit 64 and the T-codes in the T-code display unit 65, respectively. The G-code display unit 63 displays the XZ coordinates (X:-150, Z:-200 in the example in Figure 4) of the last executed G-code that is prior to the restart position 68.

[0047] An S-code is, for example, a command to rotate a workpiece in the workpiece holding device 12. The S-code allows specifying the number of rotations per minute of the workpiece in units such as RPM. The S-code display unit 64 shows the rotation speed of the last S-code executed before the restart position 68 (2000 RPM in the example in Figure 4).

[0048] A T-code is a command that causes the turret device of the machining apparatus 11 to perform tasks such as indexing the cutting tool to be used for machining a workpiece. For example, the mounting sections for attaching cutting tools in the turret are assigned folder numbers sequentially starting from T01. The control device 17 identifies the cutting tool with the folder number specified by the T-code as the cutting tool to be used for machining the workpiece. The T-code display unit 65 displays the folder number of the last T-code to be executed before the restart position 68 (07 in the example in Figure 4).

[0049] The control device 17 individually accepts the execution of G-codes, S-codes, and T-codes in the G-code display unit 63, S-code display unit 64, and T-code display unit 65, respectively. As shown in Figure 4, the G-code display unit 63, S-code display unit 64, and T-code display unit 65 are each provided with execution buttons 77, 78, and 79. When the execution button 77 is operated, the control device 17 executes the G-code displayed in the G-code display unit 63, that is, the G-code immediately preceding the restart position 68. If absolute coordinates are specified as parameters for the G-code, the G-code may be executed using those coordinates as arguments. Also, if relative coordinates have been specified multiple times prior to the G-code, the coordinates of the G-code may be determined by adding or subtracting the previously specified coordinates. In other words, if relative coordinates are specified, the coordinates may be calculated retrospectively.

[0050] Furthermore, when the execute button 78 is operated, the control device 17 executes the S code displayed on the S code display unit 64, and when the execute button 79 is operated, it executes the T code displayed on the T code display unit 65. This allows the user to individually execute the G, S, and T codes immediately preceding the restart position 68. Each function executed by the M code of the executed code (opening and closing the door, operating the chuck, discharging coolant, etc.) needs to be individually checked to see if it can be executed after an abnormality occurs. On the other hand, for the G, S, and T codes, if the state immediately preceding the restart position 68 can be reproduced, machining can be resumed from that point onward. In other words, after an abnormality occurs, there is little need to re-confirm already executed (successful) machining operations by executing the G, S, and T codes. Therefore, by displaying the G, S, and T codes immediately preceding the restart position 68, the control device 17 can display only the codes necessary for the user. For example, the user can execute an M code displayed on the M code display unit 62 as appropriate, and after the state of the machine tool 10 returns to the state immediately before the restart position 68, execute a G, S, or T code to restart the NC program 36 from the restart position 68.

[0051] As shown in Figure 2, after displaying the program execution screen 61 in S7, the control device 17 determines whether or not there was an instruction to execute each code (S9). If any of the execution buttons 74, 77, 78, or 79 displayed on the program execution screen 61 is pressed (S9: YES), the control device 17 executes the code corresponding to the pressed execution button (one of the M, G, S, or T codes, hereinafter sometimes referred to as the selected code) as described above (S11).

[0052] On the other hand, if any of the three ignore buttons 75 displayed on the program execution screen 61 is operated (S9:NO), the control device 17 does not execute the code, but instead performs the round-up display on the M code display unit 62 as described above (S17, see Figure 5). In S17, the control device 17 hides the M code for which the ignore button 75 was operated, changes the round-up display, and then executes S19. Also, if none of the buttons on the program execution screen 61 are operated (S9:NO), the control device 17 does not change the screen display in S17, and instead executes S19.

[0053] In S19, the control device 17 determines whether or not it has received an instruction to resume the execution of the interrupted NC program 36. This instruction may be given using the same operation method as the resume instruction that triggered the flowchart in Figure 2. In this case, the user will have to perform the same resume instruction operation twice to resume the execution of the NC program 36. Alternatively, the resume instruction in S19 may be given using a different operation method than the resume instruction that triggered the flowchart in Figure 2. For example, the control device 17 may display a button to instruct the resumption of the execution of the NC program 36 on the selection screen 51 and accept the instruction in S19 by pressing that button. Furthermore, the instruction to execute the NC program 36 may be, for example, an instruction for automatic operation (continuous operation) that executes all the codes from the resume position 68 onward among the codes included in the NC program 36, an instruction for step operation that executes the codes from the resume position 68 onward one by one, or an instruction for operation that performs only machining without moving the loader 13.

[0054] For example, if the control device 17 receives an instruction to resume the execution of the NC program 36 after starting the process shown in Figure 2 (S19: YES), it sets the value of the error flag 40 to "0" (S21) and executes S23. This resets the error flag 40 and allows the NC program 36 to resume from the restart position 68. On the other hand, if the control device 17 does not receive an instruction to resume (S19: NO), it repeats the process from S9.

[0055] Furthermore, after any of the execution buttons 74, 77, 78, or 79 is operated and the execution of the selected code begins in S11, the control device 17 determines whether or not an abnormality has occurred based on the executed selected code (S13). If no abnormality has occurred (S13: NO), the control device 17 determines whether or not the execution of the selected code has been completed (S14). If the execution of the selected code has not been completed (S14: NO), the control device 17 repeats the process in S13. If the execution of the selected code has been completed (S14: YES), the control device 17 executes S17. If the execution button 74 is operated and an M code is executed, the control device 17 performs the process of hiding the executed M code (selected code) or changes the display to advance it in S17. Furthermore, if any of the execution buttons 77, 78, or 79 is operated and any of the G, S, or T codes are executed, the control device 17 may indicate in S17 that the execution has been completed. When the control device 17 executes S17, it executes S19. This allows the control device 17 to execute each code displayed on the program execution screen 61 as appropriate before issuing the final restart instruction (S19: NO), thereby preparing the state of the machine tool 10.

[0056] Furthermore, if an error occurs during the execution of a selected code (S13:YES), the control device 17 interrupts the execution of the selected code (S15). Also, in S15, the control device 17 displays the selection screen 51, similar to S3. The control device 17 displays the selection screen 51 with error information 52 and countermeasure information 53 corresponding to the selected code in which the error occurred. This allows the user to take appropriate countermeasures, similar to S3. If the completed button 55A (see Figure 3) on the selection screen 51 displayed in S15 is selected, the control device 17 displays the program execution screen 61 again (S17). At this time, the control device 17 highlights the selected code in which the error occurred, similar to the restart position 68. Figure 6 shows the program execution screen 61 when an error occurs after the execution of a selected code. Figure 6 shows, for example, the case where an error occurs after the execution of the M code M50. The control device 17 highlights, for example, line 80 of M50 in a different color (for example, red) than the restart position 68. Similarly, if a code other than an M code (G, S, T code) is executed and an abnormality occurs, the control device 17 will highlight and display the selected code in which the abnormality occurred.

[0057] Therefore, as described above, in S7, the control device 17 displays the code for the restart position 68 in the NC program 36 displayed on the program display unit 66 with greater emphasis than other codes. Furthermore, if the control device 17 is instructed to execute any of the multiple executed codes displayed, and an abnormality is detected during the execution of the executed code (S13: YES), it displays a selection screen 51 (see Figure 3) having abnormality information 52 for the selected code, countermeasure information 53, and a selection unit 55 (S15). In addition, the control device 17 displays the executed code (selected code) in the NC program 36 displayed on the program display unit 66 with greater emphasis than other codes (S17). This makes it easy to find the restart position 68 and the position of the selected executed code (selected code) within the NC program 36. An abnormality caused by the execution of a selected code may be highly related to an abnormality that occurred originally. Therefore, the user can more clearly determine the cause of the abnormality by deciphering the area around the highlighted selected code.

[0058] Furthermore, if the "Not Executed" button 55B is selected on the selection screen 51 displayed in S15, the control device 17 may terminate the process shown in Figure 2. Also, if an abnormality occurs due to the execution of the selection code, the control device 17 may display the program execution screen 61 without displaying the selection screen 51, and highlight the selection code on the program display unit 66.

[0059] The control device 17, for example, highlights the row of the selected code in red on the program display unit 66 (see Figure 6), and executes S19 while leaving the M code of M50, where the error occurred, as the third entry on the M code display unit 62. If there is no instruction to resume execution (S19: NO), the control device 17 repeats the process from S9. This allows the user to try the M code that caused the error again after implementing countermeasures for the error that occurred when an error occurred during the execution of the selected code. If an error occurs during the execution of an M code (S13: YES), the control device 17 may return the display on the program execution screen 61 to the display at the time of S7. In this case, the M code display unit 62 displays the first three M codes of the NC program 36. The user can then re-check the M codes from the beginning of the NC program 36.

[0060] Furthermore, the user executes M codes as needed to resolve any abnormalities that occur, and once the machine tool 10 is ready, executes G, S, and T codes. If no abnormalities occur during the execution of each code, the user instructs the NC program 36 to resume execution (S19: YES). As a result, the control device 17 sets the abnormality flag 40 to "0" and resumes the execution of the NC program 36 from the restart position 68. In this way, when an abnormality occurs, the status of the machine tool 10 can be checked while executing M codes, etc., and the machine tool 10 can be prepared before resuming the execution of the NC program 36.

[0061] Therefore, as described above, in this embodiment, if the "Not Executed" button 55B is selected on the selection screen 51 displayed in S3 (S5: NO), the control device 17 does not resume execution of the NC program 36. On the other hand, if the "Executed" button 55A is selected (S5: YES), the control device 17 detects the executed codes (M, G, S, and T codes) and displays information on the multiple executed codes detected on the M code display unit 62, etc. The control device 17 individually accepts the execution of the multiple executed codes for which information has been displayed.

[0062] This allows the user to select the "Not Implemented" button 55B if they have not properly implemented the countermeasures displayed on the selection screen 51, and to re-check the machine tool 10, etc. Furthermore, if the user has implemented the countermeasures, they can select the "Implemented" button 55A to individually execute the executed codes that were running before the restart position 68. This allows the code to be executed without deciphering the contents of the program before the restart position 68. It also allows the user to execute each executed code one by one while checking for any codes that might cause the abnormality to recur before the restart position 68.

[0063] Furthermore, the control device 17 displays the multiple executed codes it has detected, separated by the code type that classifies the code (M code display unit 62, G code display unit 63, S code display unit 64, T code display unit 65). The control device 17 then individually accepts the execution of the multiple executed codes separated by code type (execution buttons 74, 77~79). This makes it easier to understand the executed codes by displaying them separately by code type. It also helps to suppress the occurrence of errors in code execution. In addition, it makes it easier to compare the program display unit 66 with the various codes.

[0064] Furthermore, during the interruption process, the control device 17 stores the value "1" in the abnormality flag 40 as a first value indicating that the execution of the NC program 36 has been interrupted due to an abnormality. Also, if the control device 17 receives an instruction to interrupt the execution of the NC program 36 via the control panel 16, it stores the value "0" in the abnormality flag 40 as a second value. After interrupting the execution of the NC program 36, if the control device 17 receives an instruction to resume execution via the control panel 16, it checks the abnormality flag 40 (S1). If the abnormality flag 40 is "0" (S1:NO), the control device 17 resumes the execution of the NC program 36 without displaying the selection screen 51 (S23). If the abnormality flag 40 is "1", the control device 17 executes S3. This allows the NC program 36 to be resumed without displaying the selection screen 51 based on the abnormality flag 40 if the user intentionally interrupts the execution. If the interruption is due to an abnormality, the selection screen 51 can be displayed based on the abnormality flag 40 to prompt the user to take appropriate action.

[0065] Incidentally, the correspondence between the terms used in this embodiment and the terms used in the claims is explained below. The workpiece holding device 12 in this embodiment is an example of a workpiece spindle device. The operation panel 16 is an example of a user interface. The NC program 36 is an example of a machining program. The abnormal information 52 is an example of information related to an abnormality. The countermeasure information 53 is an example of information on countermeasures against an abnormality. The code number field 72, function name field 73, execute button 74, and ignore button 75 are examples of display fields. The process in S1 is an example of abnormal flag determination processing. The process in S3 is an example of countermeasure information display processing. The process in S9 is an example of individual execution processing. The process in S23 is an example of restart processing.

[0066] In the first embodiment described above, the following effects are achieved. In one aspect of this disclosure, the control device 17 displays information related to the abnormality detected during the interruption process (abnormality information 52), information on countermeasures against the abnormality (countermeasure information 53), and a selection unit 55 for selecting whether or not the countermeasures have been implemented on the touch panel 16A after performing the interruption process and before resuming the NC program 36 from where it left off (S3). If the button 55A has been implemented is selected by the selection unit 55, the control device 17 resumes the NC program 36 from where it left off (S23).

[0067] According to this, the user is notified of the nature of the abnormality that occurred and is allowed to confirm whether appropriate countermeasures have been taken. Furthermore, by having the user make a selection in the selection unit 55, the NC program 36 can be restarted only if appropriate countermeasures have been taken. Therefore, it is possible to suppress the occurrence of abnormalities again after the execution of the NC program 36 has been restarted.

[0068] (Second Embodiment) Next, a second embodiment of this disclosure will be described. In the restart process of the first embodiment described above, as shown in Figure 2, a selection screen 51 is displayed (S3), prompting the user to take countermeasures for the abnormality, and then a program execution screen 61 is displayed (S7). In contrast, the restart process of the second embodiment differs from the first embodiment in that, as shown in Figure 7, the program execution screen 61 is displayed without displaying the selection screen 51. The restart process of the second embodiment in Figure 7 omits steps S1, S3, and S5 shown in Figure 2. For this reason, when the control device 17 receives an instruction to restart the execution of the interrupted NC program 36 after executing an interruption process, it detects executed codes that are prior to the restart position 68 (the code that is first executed when restarted), displays information on the multiple executed codes that were detected (S7), and accepts the execution of each executed code individually (S9). As a result, after the execution of the NC program 36 is interrupted due to an abnormality, the state of the machine tool 10 can be adjusted by appropriately executing executed codes prior to the restart position 68. This prevents the occurrence of another anomaly after resuming the execution of NC program 36.

[0069] Furthermore, the contents of this disclosure are not limited to the embodiments described above, and can be implemented in various forms with various modifications and improvements based on the knowledge of those skilled in the art. For example, the content and order of each process in the flowcharts shown in Figures 2 and 7 are just examples. For instance, if the control device 17 executes an executed command displayed on the program execution screen 61 and an abnormality occurs (S13: YES), it may terminate the process shown in Figure 2. Furthermore, in each of the above embodiments, when any of the execution buttons 74, 77-79 is operated, the selected code is executed immediately after the operation, but this is not limited to this. For example, the control device 17 may execute all the M codes selected by the execution button 74 at once in the M code display unit 62. Specifically, the control device 17 displays the word "Select" on the execution button 74 and displays a separate button on the M code display unit 62 to instruct final execution. The control device 17 accepts the order in which the execution buttons 74 were operated as the execution order. Also, when the execution button 74 or the ignore button 75 is operated, the control device 17 hides the operated M code and performs a display change to advance it, similar to each of the above embodiments. Then, when the button to instruct final execution is operated, the control device 17 executes all the M codes selected by the execution button 74 up to that point in the order they were selected. This allows for selection to be done first and then executed all at once when there are many M codes. Furthermore, in the first embodiment described above, when the control device 17 receives an instruction to resume the execution of the interrupted NC program 36, it starts the process shown in Figure 2 and displays the selection screen 51 (S3). However, the timing of displaying the selection screen 51 is not limited to this. For example, the control device 17 may display the selection screen 51 on the touch panel 16A immediately after an abnormality occurs, or after an abnormality occurs and a screen indicating that an abnormality has occurred is displayed. Similarly, the timing for displaying the program execution screen 61 in the second embodiment is not limited to the timing when an instruction to resume the execution of the interrupted NC program 36 is received. For example, the control device 17 may display the program execution screen 61 on the touch panel 16A immediately after an abnormality occurs, or after an abnormality occurs and a screen indicating that an abnormality has occurred is displayed, without displaying the selection screen 51. Therefore, the timing of displaying the selection screen 51 and the program execution screen 61 can be changed as appropriate, as long as it is after the interruption process has been executed and before the NC program 36 is resumed from where it left off.

[0070] Furthermore, the screen configurations of the selection screen 51 shown in Figure 3 and the program execution screen 61 shown in Figure 4 are examples. For example, the control device 17 does not have to display the checkbox 57 on the selection screen 51. Also, the control device 17 may display a button to clear the display on the selection screen 51 instead of the "not executed" button 55B. In addition, the control device 17 may display one, two, or four or more display fields for displaying M codes on the M code display unit 62. Alternatively, the control device 17 may display all M codes included in the NC program 36 that are prior to the restart position 68 on the M code display unit 62. Furthermore, the control device 17 may display multiple M codes that are closer to the restart position 68, rather than starting from the beginning of the NC program 36. Furthermore, as shown in Figure 8, for example, the control device 17 may display a scroll bar 81 and arrow buttons 82 on the M code display unit 62. The control device 17 may change the M codes displayed on the M code display unit 62 in response to operations on the scroll bar 81 and arrow buttons 82, and may also display the M codes in the order of the codes written in the NC program 36. In addition, as shown with hatching in Figure 8, the control device 17 may display the M codes executed by the execute button 74 in gray and make them unusable after execution. The control device 17 may also display the M codes ignored by the ignore button 75 in gray and make them unusable. This allows the user to check the order of the M codes and to check executed and ignored M codes while operating. It also allows for a reduction in display space. Furthermore, the machining program described herein is not limited to the NC program 36, but may be any other program capable of controlling the machine tool 10. In this case, the program may target codes with names corresponding to M-code, G-code, S-code, and T-code.

[0071] Furthermore, the scope of this disclosure is not limited to the dependencies described in the claims. For example, this specification also discloses a technical concept in which "the machine tool described in claim 2" is changed to "the machine tool described in claim 2 or claim 3" in claim 4. Also, for example, this specification also discloses a technical concept in which "the machine tool described in claim 2" is changed to "the machine tool described in any one of claims 2 to 6" in claim 7. Also, for example, this specification also discloses a technical concept in which "the machine tool described in claim 2" is changed to "the machine tool described in any one of claims 2 to 7" in claim 8. Also, for example, this specification also discloses a technical concept in which "the machine tool described in claim 1 or claim 2" is changed to "the machine tool described in any one of claims 1 to 8" in claim 9. [Explanation of symbols]

[0072] 10 Machine tool, 11 Machining device, 12 Workpiece holder (workpiece spindle device), 16 Control panel (user interface), 17 Control device, 36 NC program (machining program), 40 Anomaly flag, 52 Anomaly information (information related to the anomaly), 53 Countermeasure information (information on countermeasures against the anomaly), 55 Selection section, 55A Completed button, 55B Not completed button, 72 Code number field (display field), 73 Function name field (display field), 74 Execute button (display field), 77, 78, 79 Execute button, 75 Ignore button (display field).

Claims

1. User interface and A machining device that performs workpiece processing, A control device that controls the processing apparatus based on a processing program, Equipped with, The control device is After the execution of the processing program has started, an interruption process is performed to interrupt the execution of the processing program based on the detection of an abnormality during the execution of the processing program, After the interruption process is performed, and before the processing program is resumed from where it left off, a countermeasure information display process is performed which displays information relating to the abnormality detected in the interruption process, information on countermeasures for the abnormality, and a selection unit for selecting whether or not the countermeasures have been implemented on the user interface. After the countermeasure information display process is executed, if the selection unit selects that the countermeasure has been implemented, a restart process is performed to resume the processing program from where it left off. A machine tool that performs this task.

2. The control device is The selection section displays an "Implemented" button to indicate that the countermeasure has been taken, and an "Not Implemented" button to indicate that the countermeasure has not been taken. If the aforementioned "Not Performed" button is selected, the execution of the processing program will not be resumed. The machine tool according to claim 1, wherein when the "Completed" button is selected, the machine tool detects completed codes that are earlier than the code to be executed first when the restart process is resumed, displays information on the multiple detected completed codes on the user interface, and performs an individual execution process that individually accepts the execution of the multiple completed codes whose information is displayed.

3. The control device is The machine tool according to claim 2, wherein in the individual execution process, the detected multiple executed codes are displayed separately according to the code type that classifies the codes, and the execution of the multiple executed codes separated by code type is accepted individually.

4. The aforementioned executed code is: Including the M code, The control device is The machine tool according to claim 2, wherein in the individual execution process, M codes written between the beginning of the machining program and the code to be first executed when the process is resumed in the resume process are detected as M codes of the executed code, the detected M codes are displayed in the order they are written in the machining program, and the execution of the displayed M codes is accepted individually.

5. The control device is In the individual execution process described above, a display field is provided for each of the multiple M codes that have been executed, and the code number, function name, and execution button are associated with each other and displayed in the multiple display fields. When any of the execution buttons is operated, the M code associated with the operated execution button is executed, and the display field for the executed M code is hidden. The machine tool according to claim 4, wherein the M codes written between the beginning of the machining program and the code to be first executed when the restart process is resumed, and the other M codes excluding the hidden M codes are raised and displayed in the display field.

6. The control device is In the individual execution process described above, an ignore button is displayed in each of the multiple display fields. If the ignore button is pressed, the M code associated with the pressed ignore button is not executed, and the display field for that M code is hidden. The machine tool according to claim 5, wherein the M code written between the beginning of the machining program and the code that is first executed when the restart process is resumed, and the other M codes, excluding the hidden M code, are displayed by raising their rank.

7. The device further comprises a workpiece spindle device for gripping and rotating the aforementioned workpiece, The aforementioned processing apparatus is It is a turret device to which multiple cutting tools can be attached. The control device is In the individual execution process, the machine tool according to claim 2, which detects an S code for rotating the work spindle device, a T code for causing the turret device to index the cutting tool used for machining the workpiece, and a G code for moving the indexed cutting tool to the position for machining the workpiece as the executed codes, and in the restart process, displays information on the user interface for the S code, T code, and G code that are executed before the first code executed when the process is restarted and are the last code of the same code type to be executed in the execution order of the machining program, and accepts the execution of the S code, T code, and G code for which information has been displayed individually.

8. The control device is In the individual execution process described above, in addition to the multiple executed codes detected, the processing program is displayed, and the code that is executed first when the process is resumed in the resume process is highlighted more than the other codes within the displayed processing program. In the individual execution process described above, if the execution of any of the displayed executed codes is instructed, and an abnormality is detected during the execution of the executed code, the executed code in the displayed processing program in which the abnormality occurred is highlighted more than the other codes. The machine tool according to claim 2, wherein the user interface displays information relating to an anomaly in the executed code, information on countermeasures against the anomaly, and the selection unit for selecting whether or not the countermeasures have been implemented.

9. The control device is In the interruption process, a first value indicating that the execution of the processing program was interrupted due to an abnormality is stored as an abnormality flag. If an instruction to interrupt the execution of the processing program is received via the user interface, a second value different from the first value is stored as the abnormality flag. If, after interrupting the execution of the aforementioned processing program, the user interface receives an instruction to resume the execution of the interrupted processing program, the abnormal flag determination process for determining the abnormal flag is executed. If, as a result of the abnormal flag determination process, the second value is stored in the abnormal flag, the execution of the processing program is resumed without executing the countermeasure information display process. The machine tool according to claim 1 or claim 2, wherein if the result of the abnormal flag determination process is that the first value is stored in the abnormal flag, the countermeasure information display process is executed.

10. User interface and A machining device that performs workpiece processing, A control device that controls the processing apparatus based on a processing program, Equipped with, The control device is After the execution of the processing program has started, an interruption process is performed to interrupt the execution of the processing program based on the detection of an abnormality during the execution of the processing program, After performing the interruption process and before resuming the processing program from where it left off, the system detects executed code that is prior to the code to be executed first upon resumption, displays information about the multiple executed codes detected on the user interface, and accepts the execution of each of the multiple executed codes whose information is displayed individually. A machine tool that performs this task.

Citation Information

Patent Citations

  • Monitoring device for programmable controller

    JP2016128995A