Machine tool

The machine tool system addresses the challenge of identifying incomplete M code execution by displaying function names and completion conditions, enhancing troubleshooting efficiency.

JP2024134563AInactive Publication Date: 2024-10-04FUJI CORP
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023044814
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-21
Publication Date
2024-10-04
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Operators face difficulty in identifying the cause of failure when an M code execution is incomplete on a machine tool, as they may not immediately know the function and completion conditions of the M code, leading to increased burden in troubleshooting.

Method used

A machine tool system that includes a control device capable of detecting the M code being executed, its function name, and completion conditions, displaying this information on a program information display screen, allowing operators to understand the function and completion status of M codes.

Benefits of technology

Facilitates efficient identification of the cause of incomplete M code execution by providing clear function names and completion conditions, reducing the burden on operators with limited knowledge of the operation program.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024134563000001_ABST
    Figure 2024134563000001_ABST
Patent Text Reader

Abstract

To provide a machine tool which can reduce a burden of work which identifies a cause when the execution of an M code cannot be completed, when the execution of the M code cannot be completed.SOLUTION: A machine tool comprises: a display device; a workpiece working device which executes work with respect to a workpiece; and a controller which can execute an operation program, control the workpiece working device on the basis of the operation program and execute the work with respect to the workpiece, and can change a display content of the display device. The controller executes: detection processing which detects an M code under execution from the operation program, and detects a function name of the M code under execution, and a completion condition for completing the execution of the M code under execution, on the basis of the detected M code under execution; and display processing which displays a program information display screen which displays information related to the operation program on the display device, and displays the function name and the completion condition detected by the detection processing on the program information display screen.SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to display processing of an operation program in a machine tool. [Background technology]

[0002] The following Patent Document 1 describes a programming device that edits a control program for a motion controller. The programming device of Patent Document 1 displays items to be edited for each block, and accepts the selection of G-codes and M-codes for a block selected with a cursor. The programming device accepts the editing of address codes (X, Y, Z, etc.) that can be commanded according to the selected G-code. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Japanese Patent Application Publication No. 5-100730 Summary of the Invention [Problem to be solved by the invention]

[0004] Incidentally, if an M code is unintentionally not completed during execution on a machine tool, the operator must check the contents of the operation program (such as an NC program) to identify the M code that is being executed. However, even if the operator checks the identification number of the M code that is being executed, there is a risk that the operator will not immediately understand what kind of control the M code is executing. This makes it difficult to identify the reason why the M code could not be completed.

[0005] The present disclosure has been made in consideration of the above-mentioned problems, and aims to provide a machine tool that can reduce the burden of identifying the cause of inability to complete execution of an M code when the execution cannot be completed. [Means for solving the problem]

[0006] In order to solve the above problems, this specification discloses a machine tool comprising: a display device; a workpiece operating device that performs work on a workpiece; and a control device that is capable of executing an operation program and controlling the workpiece operating device based on the operation program to perform work on the workpiece, and that is capable of changing the display content of the display device, wherein the control device executes a detection process that detects an M code being executed from the operation program, and detects, based on the detected M code being executed, a function name of the M code being executed and a completion condition for completing execution of the M code being executed; and a display process that displays a program information display screen that displays information related to the operation program on the display device, and displays the function name and the completion condition detected in the detection process on the program information display screen. Effect of the Invention

[0007] According to the machine tool of the present disclosure, the control device detects the function name of the M code being executed and its completion condition in the detection process. In the display process, the control device displays the function name and completion condition detected in the detection process on a program information display screen. This makes it possible to provide information on the function name and completion condition of the M code being executed to the worker. For example, if the execution of an M code does not complete unintentionally during execution, the worker can confirm from the displayed function name what control the M code executing was stopped during execution. In addition, the worker can confirm the conditions for completing the M code that could not be completed from the displayed completion conditions. Therefore, even a worker who does not have a high level of knowledge about operation programs can efficiently perform the task of identifying the cause of the failure to complete. [Brief description of the drawings]

[0008] [Figure 1] FIG. 2 is a block diagram of a machine tool according to the present embodiment. [Diagram 2] FIG. 4 is a diagram showing data stored in function name data. [Diagram 3] FIG. 13 is a diagram showing data stored in completion condition data. [Figure 4]FIG. 4 is a diagram showing a program information display screen. [Diagram 5] FIG. 13 is a diagram showing a program information display screen according to another embodiment. [Figure 6] FIG. 13 is a diagram showing the program information display screen in a state where an M code for which a completion condition is met has occurred among a plurality of M codes. [Figure 7] 5 is a diagram showing the program information display screen in a state in which the line to be executed in the NC program has advanced by one line from the display state in FIG. 4. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] Hereinafter, an embodiment of the machine tool of the present disclosure will be described in detail with reference to the drawings. FIG. 1 shows a block diagram of a machine tool 10 according to this embodiment. As shown in FIG. 1, the machine tool 10 is, for example, a lathe, and includes a work spindle device 11, a turret device 12, a slide device 13, a robot 14, an operation panel 20, a teaching pendant 21, and a control device 22. The configuration of the machine tool 10 shown in FIG. 1 is only an example. For example, the machine tool 10 may be a lathe including a plurality of sets of the work spindle device 11 and the turret device 12, or may be a so-called multi-tasking machine including a tool spindle device in addition to a lathe. Therefore, the machine tool of the present disclosure is not limited to a lathe, and machine tools of various configurations, such as a machining center, a milling machine, and a drilling machine, can be used.

[0010] The work spindle device 11 includes a chuck mechanism (such as a chuck jaw or a collet chuck) for gripping a workpiece, and rotates the gripped workpiece around the work spindle. The turret device 12 includes a tool rest to which a plurality of tools (such as a cutting tool or a rotating tool, or other turret tool) can be attached, and a rotary drive mechanism for rotating the tool rest. The turret device 12 drives the rotary drive mechanism to rotate the tool rest, changes the tool indexed to the work position, and performs machining on the workpiece gripped by the work spindle device 11 using the tool indexed to the work position. The slide device 13 is a device for moving the turret device 12 and changing the position of the tool rest (the tool at the work position). The slide device 13 can move the tool rest, for example, in a direction parallel to the work spindle (a direction approaching the workpiece or a direction moving away from the workpiece) and a direction perpendicular to the work spindle. The slide device 13 includes, for example, a ball screw mechanism, a slider, a servo motor as a drive source, and the like for moving the tool rest in each direction. The directions in which the sliding device 13 moves the tool post are merely examples. The sliding device 13 may be a device that moves the tool post in three mutually perpendicular axial directions. The definitions of the directions may be appropriately changed depending on the configuration of the machine tool 10.

[0011] The robot 14 is, for example, a gantry-type workpiece transport device (which may also be called a loader). The robot 14 is equipped with, for example, a head having a gripping portion (such as a chuck jaw) that grips a workpiece. The robot 14 can move the head along a rail base provided on the machine tool 10 in directions parallel to the left-right, up-down, and front-rear directions of the machine tool 10. The robot 14 uses the gripping portion of the head to transfer the workpiece between, for example, an entrance device that carries in the workpiece, an exit device that carries out the workpiece, an inspection device that inspects the shape of the workpiece, a workpiece inversion device that inverts the workpiece, and the like (all not shown).

[0012] The operation panel 20 includes, for example, a touch panel 26 and a plurality of operation switches 27, and displays information about the machine tool 10 and accepts operation instructions. In particular, in this embodiment, the machine tool 10 uses the touch panel 26 to display a program information display screen 61 (see FIG. 4), which will be described later. The teaching pendant 21 is a portable operation terminal capable of controlling the operation of the robot 14, and includes, for example, a touch panel and operation keys. As with the operation panel 20, an operator can operate the teaching pendant 21 to perform operations on the machine tool 10.

[0013] The control device 22 includes a numerical control device 31 and a PLC 41. The numerical control device 31 includes a CPU 33 and a storage device 34. The PLC 41 includes a CPU 43 and a storage device 44. The storage devices 34, 44 include, for example, a RAM, a ROM, a flash memory, and a HDD. The configuration of the storage devices 34, 44 is not limited to the above configuration, and may include an SSD instead of an HDD, an external storage device such as a USB memory, a storage medium such as a DVD-RAM, or a combination of these.

[0014] Further, the machine tool 10 includes a plurality of drive circuits 28 that connect the control device 22 with each of the above-mentioned devices (the workpiece spindle device 11, the turret device 12, the slide device 13, the robot 14, the operation panel 20, and the teaching pendant 21). The control device 22 is electrically connected to each device via the drive circuits 28, and is capable of controlling each device. For example, if the drive circuit 28 is connected to the motor that drives the slide device 13 or the motor that drives the robot 14, the drive circuit 28 is a driver circuit (servo amplifier) ​​that changes the power (such as a three-phase AC current) supplied to each motor (such as a servo motor) based on an instruction signal (such as a movement amount, a movement destination position, a movement speed, a target torque, etc.) from the control device 22. For example, if the drive circuit 28 is connected to the operation panel 20, the drive circuit 28 is an amplifier circuit that performs amplification of a signal input from the operation panel 20.

[0015] Further, the storage device 34 stores a plurality of NC programs 35 for numerically controlling the operations of the work spindle device 11, the turret device 12, the robot 14, etc. The numerical control device 31 executes the NC program 35 in the CPU 33, and outputs an instruction signal to the drive circuit 28 (driver circuit) according to the numerical command described in the NC program 35 to perform control. The drive circuit 28 (driver circuit) executes feedback control to change the current of the three-phase AC based on, for example, encoder information of the encoder attached to each servo motor and an instruction signal from the control device 22, and notifies the numerical control device 31 of the completion of processing, etc. As a result, the control device 22 slides the tool rest of the turret device 12, the head of the robot 14, etc. along each axis direction to a desired position based on the numerical control by the numerical control device 31. Note that the drive source for sliding each device is not limited to a servo motor, and other drive sources such as a stepping motor and a linear motor can be used.

[0016] The PLC 41 is a programmable logic controller. The storage device 44 stores a ladder program 45 for constructing a ladder circuit for processing various signals. The PLC 41 executes the ladder program 45 in the CPU 43, and executes, by sequence processing based on the ladder program 45, a process for outputting an output signal to various elements such as lamps, relays, and solenoids provided in the machine tool 10 to drive them, and a process for inputting an input signal from elements such as limit switches and sensors. The PLC 41 is also connected to the numerical control device 31 via, for example, a communication bus 40, and is capable of communicating with the numerical control device 31. The PLC 41 executes input and output of signals between the numerical control device 31 and the PLC 41 using a device 46 constructed based on the ladder program 45. The device 46 is, for example, a storage area constructed on the storage device 44 by executing the ladder program 45 in the CPU 43, and is a device for storing signal values ​​of external I / O (sensors, etc.) provided in the machine tool 10, a device for storing signal values ​​for communication with the numerical control device 31, a device for realizing a keep relay for storing set values, and the like. Thereby, the PLC 41 relays signals (input / output) between the external I / O equipped in the machine tool 10 and the numerical control device 31. For example, in the case of a PLC (PMC) manufactured by FANUC Corporation, a device 46 with device symbol "G" (G device) is used for instructions from the PLC 41 to the numerical control device 31. Conversely, a device 46 with device symbol "F" (F device) is used for instructions from the numerical control device 31 to the PLC 41.

[0017] In addition to the NC program 35, the storage device 34 also stores a display control program 36 for changing the display contents of the operation panel 20, function name data 37, completion condition data 38, and various other data necessary for machining (not shown). The display control program 36 is a program for changing the display contents of the touch panel 26 of the operation panel 20. The display control program 36 also includes a program for executing a process of detecting an M code being executed from the NC program 35 and detecting a function name and a completion condition of the M code being executed based on the detected M code being executed (an example of a detection process disclosed in the present disclosure), and a process of displaying the function name and the completion condition on a program information display screen 61 (see FIG. 4) that displays information related to the NC program 35 (an example of a display process disclosed in the present disclosure).

[0018] In the following, to avoid complicating the explanation, a case will be described in which the NC program 35 that controls the robot 14 is the target NC program 35 to be processed by the above-mentioned display control program 36. However, as described above, a plurality of NC programs 35 that numerically control each device (such as the workpiece spindle device 11, the turret device 12, and the robot 14) provided in the machine tool 10 are stored in the storage device 34. Therefore, as in the case of the robot 14 described below, the M code, function name, and completion condition can also be detected and displayed for the NC program 35 that numerically controls the other devices (the workpiece spindle device 11 and the turret device 12).

[0019] Also, the NC program 35 does not have to be a separate program for each device. For example, the control device 22 may use the NC program 35 that collectively controls a plurality of devices, such as the work spindle device 11, the turret device 12, and the robot 14. In this case, the control device 22 may execute the display control program 36 to detect and display the M code, function name, and completion condition being executed from the NC program 35 that collectively controls a plurality of devices. Therefore, although the function name data 37 in FIG. 2 and the completion condition data 38 in FIG. 3 described below show the data configuration in the case where the robot 14 is the target, the registered data is appropriately changed in the case where another device is the target.

[0020] (Regarding function name data 37) FIG. 2 shows an example of data stored in the function name data 37. As shown in FIG. 2, the function name data 37 stores a plurality of data (hereinafter, sometimes referred to as records) in which an M code name 51 and a function name 52 are associated with each other. The M code name 51 is, for example, a character string for identifying an M code in the NC program 35, and is a character string combining the letter "M" and "numbers", such as M05. When executing the NC program 35, the numerical control device 31 identifies the M code described in the NC program 35 by the M code name 51, and executes a function (control) according to the M code name 51. The contents of the function (control) to be executed for each M code are defined in advance, for example, in the NC program 35 or in other data.

[0021] The function name 52 is a character string indicating a function (control) executed when the M code indicated by the M code name 51 is executed. In the example shown in FIG. 2, for example, the M code whose M code name 51 is M05 is an M code for moving the robot 14 to the entrance device. For this reason, the character string "moving entrance device" is stored as the function name 52 of the M code of M05. For example, the M code whose M code name 51 is M101 is an M code for receiving a workpiece from the workpiece spindle device 11 to the robot 14. For this reason, the character string "receive workpiece" is stored as the function name 52 of the M code of M101. For example, the M code whose M code name 51 is M102 is an M code for automatically opening a door to a machining space. For this reason, the character string "open automatic door" is stored as the function name 52 of the M code of M102. For example, the M code whose M code name 51 is M103 is an M code for stopping the blowing of coolant or air for blowing away chips from the robot 14, etc. Therefore, the character string "Blow stop" is stored as the function name 52 of the M code of M103. The control device 22 executes the display control program 36 to detect the M code name 51 of the M code being executed from the NC program 35, searches the function name data 37 for the detected M code name 51 to detect the corresponding function name 52, and displays the detected function name 52 on the program information display screen 61 (see FIG. 2). The timing of detecting the M code being executed from the NC program 35 may be while the NC program 35 is being executed, or after the execution of the NC program 35 has been stopped. When detecting after the execution of the NC program 35 has been stopped, for example, the control device 22 may detect the M code of the last line executed when the execution was stopped as the M code being executed.

[0022] (Regarding completion condition data 38) Fig. 3 shows an example of data stored in the completion condition data 38. As shown in Fig. 3, the completion condition data 38 stores a plurality of data (records) in which an identification number 54, an M code name 51, device information 55, and a completion condition comment 56 are associated with each other. The identification number 54 is a number (NO) for identifying each stored record. The M code name 51, like the function name data 37, is a character string that identifies the M code.

[0023] The device information 55 is information indicating the device 46 that can determine whether or not the completion condition for completing the execution of the M code indicated by the M code name 51 is satisfied among the devices 46 possessed by the PLC 41. For example, the M code whose M code name 51 is M05 is an M code that moves the robot 14 to the entrance device as described above. For this reason, the device information 55 associated with the M code whose M code name 51 is M05 can adopt information on the device 46 that stores a signal indicating whether the robot 14 has stopped at the entrance device and information indicating the state of the signal detected when the robot 14 has stopped. When the stop of the robot 14 is detected by a sensor, the device 46 indicated by the device information 55 can adopt a device 46 that transmits the sensor signal information to the numerical control device 31. In the example shown in FIG. 3, the G device of G50 is used as the device 46 that transmits the sensor signal to the numerical control device 31. Also, if the sensor signal turns ON (becomes high level) when the robot 14 stops, the information indicating the state of the signal detected when the robot 14 stops can adopt ON (high level) as shown in FIG. 3.

[0024] Also, for example, the M code whose M code name 51 is M101 is an M code for receiving a workpiece from the workpiece spindle device 11 to the robot 14, as described above. Therefore, as the device information 55 associated with the M code whose M code name 51 is M101, information indicating the device 46 that transmits a signal indicating whether the gripper of the robot 14 is normally closed to the numerical control device 31 and information indicating the state of the signal detected when the gripper is normally closed can be adopted. For example, when the gripper position of the workpiece is detected by the position of the cylinder of the air cylinder that drives the gripper, the device 46 indicated by the device information 55 can be the device 46 that transmits a signal of a cylinder switch to the numerical control device 31. In the example shown in FIG. 3, the G device of G501 is used as the device 46. Also, if the cylinder switch is turned ON when the gripper is closed, ON can be adopted as the information indicating the state of the signal detected when the gripper is closed, as shown in FIG. 3.

[0025] The above-mentioned device information 55 is an example. For example, when detecting whether the gripping part is closed by the torque (reaction force) generated in the gripping part, the numerical control device 31 may monitor the torque of the gripping part and turn on a signal of a specific device 46 when the torque exceeds a threshold torque indicating normal closing. In this case, the address of the specific device 46 and information on the ON signal can be adopted as the device information 55. Similarly, for example, when the M code name 51 is an M code of M102, information on the device 46 (G device of G502 in the illustrated example) that transmits a signal of a sensor that detects that the door is closed to the numerical control device 31 can be adopted as the device information 55. Also, as shown in the M code of M103 with the M code name 51, the number of device information 55 corresponding to one M code is not limited to one, and may be multiple. As shown in FIG. 3, when the stop of blowing is determined by multiple signals (devices 46), multiple device information 55 may be associated with one M code name 51. In the example shown in Figure 3, the M code with M code name 51 M103 is associated with two sets of information: device information 55 "G503 OFF" and completion condition comment 56 "Nozzle No. XX closing detected," and completion condition comment 56 "G521 OFF" and completion condition comment 56 "Valve No. XX switching detected."

[0026] The completion condition comment 56 is a character string indicating a completion condition for completing the execution of the M code indicated by the M code name 51. For example, if the M code name 51 is the M code M05, a character string "entrance device movement completed" is stored, indicating a completion condition that the robot 14 moves to the entrance device. For example, if the M code name 51 is the M code M101, a character string "workpiece reception detection" is stored, indicating a completion condition that the robot 14 receives the workpiece from the workpiece spindle device 11. The control device 22 executes the display control program 36, detects the M code name 51 of the M code being executed from the NC program 35, searches the completion condition data 38 for the detected M code name 51 to detect the corresponding completion condition comment 56, and displays the detected completion condition comment 56 on the program information display screen 61 (see FIG. 4). The control device 22 also searches the completion condition data 38 for the detected M code name 51 to detect the corresponding device information 55. The control device 22 reads from the PLC 41 the signal of the device 46 (such as the G device) indicated by the detected device information 55, and judges whether the signal is in the state (ON or OFF) indicated by the device information 55, i.e., whether the completion condition is met. If the signal read from the PLC 41 is in the state indicated by the device information 55, the control device 22 judges that the completion condition is met. As will be described later, of the multiple completion conditions, the control device 22 displays only the incomplete completion conditions on the program information display screen 61 (see FIG. 4).

[0027] The above-mentioned function name data 37 and completion condition data 38 are registered in advance by, for example, the manufacturer of the machine tool 10. Therefore, the function name data 37 and the completion condition data 38 are data that cannot be changed by the user who uses the machine tool 10. In other words, the function name data 37 is data indicating the function name 52, the accuracy of which is guaranteed by the manufacturer. Moreover, the completion condition data 38 is data indicating the completion condition, the accuracy of which is guaranteed by the manufacturer. The machine tool 10 may be configured so that the function name data 37 and the completion condition data 38 can be changed at the user level. Moreover, the contents of the data shown in Figs. 2 and 3 are merely examples. Moreover, Figs. 2 and 3 show a part of the data registered in the function name data 37 and the completion condition data 38.

[0028] (Regarding program information display screen 61) Next, the program information display screen 61 will be described. FIG. 4 shows the program information display screen 61. The control device 22 executes the display control program 36 based on, for example, a predetermined operation input to the operation panel 20, and displays the program information display screen 61 on the touch panel 26. The control device 22 may display the program information display screen 61 based on a condition other than the operation input, for example, the establishment of a condition that stops the execution of the NC program 35 due to an error or the like. Alternatively, the control device 22 may display the program information display screen 61 only when the M code of the NC program 35 is stopped during execution. The machine tool 10 is also provided with a teaching pendant 21 in addition to the operation panel 20 as a means for operating the machine tool 10. Therefore, the display of the program information display screen 61 described below can also be performed by the teaching pendant 21. Display processing combining the operation panel 20 and the teaching pendant 21 is also possible.

[0029] 4, the control device 22 displays a block display section 63, a program display section 64, an executing M-code display section 65, a completion condition display section 66, an enlarge button 67, and a close button 68 on a program information display screen 61. Note that the screen configuration shown in Fig. 4 is an example, and the items to be displayed, the order of display, etc. may be changed as appropriate depending on the configuration of the device.

[0030] The control device 22 displays the block name on the block display section 63. For example, the block name is the name of each block when the NC program 35 is divided into a plurality of blocks, with the work contents to be executed being referred to as a block. In the example shown in FIG. 4, for example, it indicates that the block "take out workpiece" is being executed. For example, when the control device 22 starts machining the workpiece, it executes an operation of transferring the workpiece to an operator for inspection every time a preset number of workpieces are manufactured. For example, the control device 22 receives the machined workpiece from the workpiece spindle device 11 to the robot 14, stops blowing, opens an automatic door, and places the workpiece in a position to transfer it from the robot to an operator. The block "take out workpiece" is a block that executes a series of operations to remove the workpiece.

[0031] 4 is merely an example. As blocks into which the NC program 35 is divided, other operations such as "loading the workpiece at the inlet device," "reversing the workpiece at the reversing device," "delivering the workpiece to the workpiece spindle device 11," and "removing the workpiece at the outlet device" can be adopted in addition to "removing the workpiece."

[0032] The control device 22 also displays the lines of the NC program 35 being executed on the program display section 64. In the example shown in FIG. 4, the comment "(UKEWATASHI)" is displayed on the first line of the program display section 64. Also, three M codes "M101 M103 M102" are displayed on the second line. As shown in FIG. 4, the NC program 35 has programs (codes) and comments written on each line, and is executed in order from the top. For example, the control device 22 executes the NC program 35 line by line, and when the execution of all the codes (M codes and G codes) written on any line is completed, the control device 22 executes the next line. Note that the number of M codes that can be written on one line, i.e., the number of M codes that can be executed in parallel, is not particularly limited and may be 1, 2, 3, or 4 or more.

[0033] In the example shown in FIG. 4, the first line is a comment (comment out) and does not include any code to be executed. Therefore, the three M codes on the second line are the lines (codes) being executed. When such a character string that is not to be executed, such as a comment, exists in the NC program 35, the control device 22 displays the line being executed on the second line while leaving the character string that is not to be executed on the first line of the program display section 64. When the control device 22 completes the execution of all three M codes "M101 M103 M102" on the second line, it scrolls up and displays "G0 XXXX" on the third line on the first line. Note that, when the control device 22 starts the execution of "M101 M103 M102", it may display "M101 M103 M102" on the first line of the program display section 64 and hide (frame out) the comment above it.

[0034] The control device 22 also displays the M code being executed on the M code being executed display section 65. For example, when the control device 22 receives an operation to display the program information display screen 61 on the touch panel 26 while executing the NC program 35 to control the robot 14, the control device 22 executes the display control program 36 and detects the M code being executed from the NC program 35 being executed. For example, when the control device 22 receives an operation to display the program information display screen 61 on the touch panel 26 after stopping the execution due to an error or the like while executing the NC program 35 to control the robot 14, the control device 22 executes the display control program 36 and detects the M code being executed from the NC program 35 as the line being executed that has been stopped (or that can be temporarily stopped and resumed). When the execution is stopped due to an error or the like, the control device 22 may automatically execute the display control program 36, detect the M code being executed from the NC program 35 as the line being executed that has been stopped, and display the program information display screen 61.

[0035] Therefore, in this disclosure, "running M code" is not limited to M code that is currently being executed and controlled, but also includes the M code that was being executed (stopped executing) immediately before (immediately before) the execution was stopped due to an error or the like. In other words, "running M code" also includes "M code that was being executed and stopped when an error or the like occurred," "M code that was temporarily stopped due to an error or the like and can be resumed," and the like. In the following description, such a line that is being executed or has been executed will be referred to as a "running line."

[0036] The control device 22 detects an M code name 51 that is the same as the M code being executed detected from the NC program 35 from the function name data 37. The control device 22 detects a function name 52 that is associated in the function name data 37 with the detected M code name 51. As shown in Fig. 4, the control device 22 displays a combination of a display number 69, an M code name 51, and a function name 52 on one line at a time in the executing M code display section 65. In the example shown in Fig. 4, for example, the characters "1 M101 Receive work" are displayed on the first line.

[0037] For example, when multiple codes (such as M codes) are written on one line, the control device 22 executes the above-mentioned detection process in order from the left, and displays the display numbers 69 1, 2, and 3 in the order of detection from the top on the executing M code display unit 65. For this reason, in the example shown in Fig. 4, "1 M101 Receive workpiece," "2 M103 Stop blowing," and "3 M102 Open automatic door" are displayed in order from the top.

[0038] Furthermore, the control device 22 detects from the completion condition data 38 an M code name 51 that is the same as the M code being executed detected from the NC program 35, and detects a completion condition comment 56 associated with the detected M code name 51 in the completion condition data 38. As shown in FIG. 4, the control device 22 displays the completion condition comments 56 line by line in the completion condition display section 66. The control device 22 displays, for example, from the top of the completion condition display section 66 in the order of the identification numbers 54 (see FIG. 3) of the completion condition data 38. For this reason, in the example shown in FIG. 4, the following are displayed in order from the top: "Workpiece reception detected," "Door open position detected," "Closing of nozzle No. XX detected," and "Switching of valve No. XX detected."

[0039] The above-mentioned display order and display format of the executing M code display unit 65 and the completion condition display unit 66 are merely examples. For example, the control device 22 may display only the function name 52 in the executing M code display unit 65. Also, the control device 22 may display the completion condition comments 56 in the completion condition display unit 66 in the order of the M codes described in the NC program 35 (from the left), similar to the executing M code display unit 65, instead of in the order of the identification numbers 54.

[0040] Furthermore, the control device 22 may display the function name 52 and the completion condition comment 56 on the same display section. For example, Fig. 5 shows a program information display screen 61A of another embodiment. As shown in Fig. 5, the control device 22 may also display the completion condition comment 56 in the executing M-code display section 65. As shown in Fig. 5, the control device 22 may display the function name 52 and the completion condition comment 56 for each M-code name 51, separated by lines. This makes it possible to display the correspondence between the M-code and the completion condition comment 56 in one place in an easy-to-understand manner.

[0041] Returning to FIG. 4, the enlarge button 67 is a button for displaying the completion condition comments 56 that could not be displayed in the completion condition display section 66. For example, when the enlarge button 67 is selected, the control device 22 displays a pop-up screen with an enlarged frame of the completion condition display section 66 superimposed on the program information display screen 61, so that all of the completion condition comments 56 that could not be displayed in the completion condition display section 66 can be seen. There is no particular limitation on the method for selecting the enlarge button 67, and it may be a touch operation on the enlarge button 67 or an operation of operating the operation switch 27 to select the enlarge button 67. The same applies to other selection operations described later.

[0042] Furthermore, the method of displaying the completion condition comments 56 that could not be displayed in the completion condition display section 66 is not limited to the above-mentioned method. For example, the control device 22 may display a scroll bar in the completion condition display section 66, and switch the display of the completion condition display section 66 up or down in response to an operation of selecting the scroll bar, thereby displaying the completion condition comments 56 that could not be displayed in full. Furthermore, when the close button 68 displayed in the upper right corner of the program information display screen 61 is selected, the control device 22 ends the display of the program information display screen 61 and displays an initial screen or the like on the touch panel 26.

[0043] Here, if an M code is unintentionally not completed during execution on machine tool 10, the operator needs to check the contents of NC program 35 to confirm the M code being executed. However, if the operator does not have sufficient knowledge of M codes, even if the operator checks M code name 51 of the M code being executed, he or she will not know what kind of control the M code executes, making it difficult to identify the cause of the failure to complete execution of the M code. In response to this, control device 22 of this embodiment can display information about the M code being executed by displaying program information display screen 61.

[0044] For example, when the control device 22 stops due to an error or the like while executing the NC program 35 and controlling the robot 14, the control device 22 displays the program information display screen 61 on the touch panel 26 based on an operation input to the touch panel 26 or automatically. In the case of FIG. 4, the state where the block "take out workpiece" was stopped during execution is shown. The worker can confirm the M code displayed on the program information display screen 61, that is, the function name 52 and the completion condition comment 56 of the M code that was being executed when the execution was stopped. This allows the worker to confirm that the execution of three M codes, for example, "receive workpiece," "stop blowing," and "open automatic door," has not been completed. Therefore, the worker can understand what function of the M code has stopped during execution. In addition, the worker can confirm that each of the completion conditions, "detection of workpiece reception," "detection of door open position," "detection of nozzle No. XX closing," and "detection of valve No. XX switching," has not been completed. Therefore, the worker can understand what completion condition could not be completed and stopped the M code. As a result, it becomes possible to more quickly and accurately identify the cause of the inability to complete the M code.

[0045] 3, in the function name data 37, an M code name 51 used for an M code in the NC program 35 is associated with a function name 52. In the M code detection process, the control device 22 detects the M code being executed by detecting the M code name 51 from the NC program 35, and detects the function name 52 from the function name data 37 based on the detected M code name 51. Thus, by setting appropriate information as the function name 52 in the function name data 37 in advance, an appropriate function name 52 can be displayed on the program information display screen 61. As a result, the burden on the operator who identifies the cause of the inability to complete the M code can be reduced.

[0046] 4, when the control device 22 detects a plurality of M codes being executed from the NC program 35, it displays the function names 52 of each of the detected plurality of M codes on the program information display screen 61. For example, as shown by hatching in FIG 4, the control device 22 displays each of the plurality of sets of display numbers 69, M code names 51, and function names 52 against a colored background color such as yellow.

[0047] The control device 22 changes the background color of the display number 69, M code name 51, and function name 52, which have been detected and have had their completion conditions met, to white, and cancels the highlighted display in color. FIG. 6 shows, as an example, a state in which the execution of the M code with the M code name 51 M101 has been completed, from the state shown in FIG. 4. In this case, the control device 22 changes the background of the first row of M101 in the M code being executed display section 65 to white, as shown in FIG. 6. That is, the control device 22 displays the function name 52, etc. of the M code for which the completion condition has been met in a manner that makes it possible to distinguish it from the function name 52, etc. of the incomplete M code for which the completion condition has not been met. This makes it possible to display the M code for which the completion condition has not been met among the M codes being executed in a more easily understandable manner. This further reduces the burden on the operator who identifies the cause of the inability to complete the M code. The method of distinguishably displaying the function name 52, etc. of the M code for which the completion condition has been met and the function name 52, etc. of the incomplete M code for which the completion condition has not been met is not limited to the above-mentioned method. For example, the completed function names 52 etc. may be displayed in white, and the incomplete function names 52 etc. may be displayed in color. Also, the function names 52 etc. for which the completion conditions have been met may be displayed with a strikethrough or the like to indicate that they have been completed.

[0048] Further, the control device 22 hides the completion condition comment 56 for which the completion condition is satisfied among the completion condition comments 56 displayed on the completion condition display unit 66. In other words, the control device 22 displays only the incomplete completion condition comment 56 among the completion conditions detected based on the M code being executed on the completion condition display unit 66. For example, the control device 22 periodically monitors the signal of the device 46 indicated by the device information 55 associated with the M code being executed in the completion condition data 38 until the completion condition is satisfied. For example, when the control device 22 detects that the execution of M101 is completed based on the signal of the device 46, it hides the completion condition comment 56 associated with M101 in the completion condition data 38. As shown in FIG. 6, the control device 22 hides the completion condition comment 56 "Work reception detected" of the completed M101, and displays only the completion condition comments 56 of the incomplete M102 and M103 on the completion condition display unit 66, and displays them at the top. This makes it possible to display the completion conditions that could not be completed more clearly for the worker.

[0049] The above-mentioned display processes of the executing M code display unit 65 and the completion condition display unit 66 are merely examples. For example, the control device 22 may hide the M code name 51 and the function name 52 (e.g., M101) of the M code whose execution has been completed in the display of the executing M code display unit 65. The control device 22 may not hide the execution-completed completion condition comment 56 in the display of the completion condition display unit 66. The control device 22 may make the background color of the incomplete completion condition comment 56 a colored color, and the background color of the completed completion condition comment 56 a white color.

[0050] As shown in FIG. 3, the completion condition data 38 includes an M code name 51, device information 55, and a completion condition comment 56, which are associated with each other. In the detection process of the M code being executed, the control device 22 detects the device information 55 from the completion condition data 38 based on the M code name 51 detected from the NC program 35. The control device 22 judges the completion condition that is not yet completed based on the signal of the device 46 indicated by the detected device information 55. For example, in the judgment of M101, the control device 22 judges whether the signal of the device 46 of G501 is ON or not. The control device 22 judges whether a plurality of completion conditions are satisfied based on the signals of each device 46 (in this case, G501, G502, G503, and G521). The control device 22 displays only the completion condition comment 56 that is not yet completed on the program information display screen 61. As a result, the control device 22 can judge whether the completion condition is satisfied for the M code being executed by checking the signal of the device 46 of the PLC 41.

[0051] Furthermore, the control device 22 updates the display information on the program information display screen 61 unless the execution of the NC program 35 is stopped due to an error or the like. For example, when the control device 22 displays the program information display screen 61 based on a predetermined operational input to the touch panel 26, it is assumed that the program information display screen 61 is in the state shown in Fig. 4. Thereafter, when the execution of the three M codes (M101, M102, M103) shown on the second line of the program display section 64 is successfully completed, the control device 22 updates the information displayed on the program information display screen 61.

[0052] 7 shows the program information display screen 61 in a state where the line to be executed of the NC program 35 has advanced by one line from the display state of FIG. 4. As shown in FIG. 7, when the block to be executed is not changed, the control device 22 maintains the information displayed in the block display section 63. In addition, the control device 22 updates the display of the NC program 35 so that the next line "G0 XXXX" in FIG. 4 is displayed at the top in the display of the program display section 64. In addition, the control device 22 hides the M code being executed display section 65 and the completion condition display section 66 because the G code (G0) is being executed and the M code being executed is not detected. In this way, the control device 22 updates the information to be displayed in the block display section 63, the program display section 64, the M code being executed display section 65, and the completion condition display section 66 according to the line to be executed of the NC program 35.

[0053] Therefore, the control device 22 displays the line being executed in the NC program 35 on the program display unit 64, and when the completion condition is met and the execution of all the M codes is completed, updates the information of the line being executed on the program display unit 64, the function name 52 of the executing M code display unit 65, and the completion condition comment 56 of the completion condition display unit 66. This allows the operator to see the latest information as the completion condition of the M code being executed is met and the execution of the NC program 35 progresses. In addition, by displaying the program information display screen 61 in advance before the M code is executed, the operator can check the display contents when the update of the program information display screen 61 stops and immediately check the line that will stop due to an error or the like. The control device 22 does not need to perform real-time update processing of the program information display screen 61.

[0054] Also, for example, the creator of the NC program 35 writes information indicating an overview of the code (program) to be executed from the next line onwards as a comment ("UKEWATASHI" in the figure), as shown in the first line of the program display section 64 in Fig. 4. However, because this comment is manually entered by the program creator, there is a risk that an incorrect content will be entered or that the user will forget to enter it at all. Therefore, the control device 22 of this embodiment has an editing function that allows the operator who has confirmed the content of the NC program 35 on the program information display screen 61 to edit it.

[0055] The control device 22 displays a cursor 70 at the touched position of the program display section 64 as shown in FIG. 4 based on, for example, a touch operation on the program display section 64. The control device 22 accepts input or deletion of characters at the position of the cursor 70. For example, after displaying the cursor 70, the control device 22 accepts a touch operation on a place other than the program display section 64 on the program information display screen 61, and saves the changes to the NC program 35. For example, when the control device 22 accepts a touch operation on a place other than the program display section 64, the control device 22 may display a dialogue with a message such as "Do you want to save the changes?" to confirm the final instruction to save the changes. This allows the operator to check the function name 52 (information whose accuracy is guaranteed by the manufacturer) displayed on the program information display screen 61, and if the comment on the program display section 64 is incorrect, to input more appropriate information to the NC program 35 while referring to the information on the function name 52.

[0056] In the above embodiment, the work spindle device 11, the turret device 12, and the robot 14 are examples of a workpiece operating device. The touch panel 26 is an example of a display device. The NC program 35 is an example of an operation program.

[0057] As described above, the present embodiment provides the following effects. The control device 22, which is an aspect of the present application, detects the M code being executed from the NC program 35, and detects the function name 52 of the M code being executed and the completion condition comment 56 for completing the execution of the M code being executed based on the detected M code being executed (an example of a detection process of the present disclosure). The control device 22 displays the detected function name 52 and the completion condition comment 56 on a program information display screen 61 that displays information related to the NC program 35 (an example of a display process of the present disclosure). In this way, if the execution of the M code is not completed unintentionally during execution, the operator can confirm from the displayed function name 52 what kind of control the M code executing has stopped during execution. In addition, the operator can confirm the conditions for completing the M code that could not be completed from the displayed completion condition comment 56. Therefore, even an operator who does not have a high level of knowledge of the NC program 35 can more efficiently perform the task of identifying the cause of the failure to complete.

[0058] Furthermore, the contents of the present disclosure are not limited to the above-described embodiments, but can be embodied in various forms with various modifications and improvements based on the knowledge of those skilled in the art. For example, in the above embodiment, the touch panel 26 capable of displaying and inputting is used as the display device of the present disclosure, but the present disclosure is not limited to this. A display device that only performs display, such as an LCD or an organic EL panel, may be used as the display device of the present disclosure, and operations may be received by an operation switch 27 provided separately from the display device. In addition, although the NC program 35 that executes numerical control is employed as the operation program of the present disclosure, the present disclosure is not limited to this. Various types of programs capable of controlling the machine tool 10 can be employed as the operation program of the present disclosure. In the above embodiment, the workpiece spindle device 11, the turret device 12, and the robot 14 are used as the workpiece operating device of the present application. Among them, the case where the NC program 35 to be processed by the display control program 36 is mainly the NC program 35 that controls the robot 14 has been described. However, this is not limited to this. For example, the detection process and display process by the display control program 36 may be performed for the NC program 35 that controls the workpiece spindle device 11 and the turret device 12, and the function name 52 and the completion condition comment 56 may be displayed for the M code that controls the workpiece spindle device 11 and the turret device 12. In addition, the workpiece operating device of the present application is not limited to the above-mentioned devices, and other devices that can be controlled by an operation program, such as a tool spindle device, may be used. Furthermore, the code that is the subject of the detection process and display process of the present disclosure is not limited to the M code, and other codes for which function names and completion conditions can be set may be used. 2 to 7 are merely examples. For example, the control device 22 does not have to display the block display section 63 or the program display section 64 on the program information display screen 61.

[0059] The contents of this disclosure are not limited to the dependent relationships described in the claims. For example, this specification also discloses the technical idea of ​​changing "the machine tool according to claim 1 or claim 2" in claim 5 to "the machine tool according to any one of claims 1 to 4." In addition, this specification also discloses the technical idea of ​​changing "the machine tool according to claim 1 or claim 2" in claim 6 to "the machine tool according to any one of claims 1 to 5." [Explanation of symbols]

[0060] 10 machine tool, 11 work spindle device (work working device), 12 turret device (work working device), 14 robot (work working device), 26 touch panel (display device), 34 storage device, 35 NC program (operation program), 37 function name data, 38 completion condition data, 41 PLC, 51 M code name, 52 function name, 55 device information, 61, 61A program information display screen, 64 program display section.

Claims

1. A display device; a workpiece working device that performs work on a workpiece; a control device capable of executing an operation program, controlling the workpiece operating device based on the operation program, and performing an operation on the workpiece, and capable of changing the display content of the display device; Equipped with The control device includes: a detection process for detecting an M code being executed from the operation program, and detecting a function name of the M code being executed and a completion condition for completing the execution of the M code being executed based on the detected M code being executed; a display process of displaying, on the display device, a program information display screen that displays information related to the operation program, and displaying, on the program information display screen, the function name and the completion condition detected in the detection process; A machine tool that performs the above.

2. Further comprising a storage device in which function name data is stored, The function name data is the data is an M-code name used in the M-code in the operation program and the function name associated with each other; The control device includes:

2. The machine tool according to claim 1, wherein in the detection process, the M code being executed is detected by detecting the M code name from the operation program, and the function name is detected from the function name data based on the detected M code name.

3. The control device includes: A machine tool as described in claim 1 or claim 2, wherein in the display process, only the incomplete completion conditions for which the conditions for completion have not been met are displayed on the program information display screen, among the completion conditions detected in the detection process.

4. A PLC and A storage device in which completion condition data is stored; Further equipped with The completion condition data is an M-code name used for the M-code in the operation program, device information indicating a device among devices included in the PLC that can determine whether or not the completion condition is satisfied, and a completion condition comment indicating the completion condition are associated with each other; The control device includes: In the detection process, the M code being executed is detected by detecting the M code name from the operation program, and the device information is detected from the completion condition data based on the detected M code name; The machine tool according to claim 3, wherein, in the display process, the incomplete completion condition is determined based on a signal of the device indicated by the device information detected in the detection process, and the completion condition comment indicating the incomplete completion condition is displayed on the program information display screen.

5. The control device includes:

3. The machine tool according to claim 1 or 2, wherein, when a plurality of M codes being executed from the operation program are detected in the detection process, the display process displays the function name of each of the detected plurality of M codes on the program information display screen, and, among the displayed plurality of M codes, displays in a distinguishable manner the function name of an M code for which the completion condition is satisfied after detection in the detection process and the function name of an incomplete M code for which the completion condition is not satisfied.

6. The control device includes:

3. A machine tool as claimed in claim 1 or claim 2, wherein a line currently being executed in the operation program is displayed on the program information display screen, and information on the line currently being executed, the function name, and the completion condition is updated based on the completion condition being satisfied.

7. The control device includes:

7. The machine tool according to claim 6, wherein a program display section that displays a line currently being executed in the operation program is displayed on the program information display screen, and editing of the operation program is accepted based on an operation on the program display section.

Citation Information

Patent Citations

  • Programming device for motion controller

    JP1993100730A