Control device for industrial machine

WO2026163370A1PCT designated stage Publication Date: 2026-08-06FANUC LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
FANUC LTD
Filing Date
2025-01-31
Publication Date
2026-08-06

Smart Images

  • Figure JP2025003144_06082026_PF_FP_ABST
    Figure JP2025003144_06082026_PF_FP_ABST
Patent Text Reader

Abstract

The present invention makes it possible to easily find a desired MDI program to be reused, by displaying an MDI program history corresponding to the status of a machine and / or an operator without displaying an MDI program not to be reused. This control device for an industrial machine stores an MDI program executed in an MDI mode as a history in time series and displays the history. The control device for an industrial machine comprises: a history storage unit that stores, as a history, first identification information which includes information on at least a status or an operator of the industrial machine when the executed MDI program is executed, in association with the MDI program; an acquisition unit that acquires second identification information which includes information on at least the status or operator of the industrial machine when the history is displayed; a comparison unit that compares the first identification information of the stored history with the acquired second identification information; a history extraction unit that extracts a history in which the first identification information and the second identification information match on the basis of a result of the comparison; and a display unit that displays the extracted history.
Need to check novelty before this filing date? Find Prior Art

Description

Control devices for industrial machinery

[0001] This disclosure relates to a control device for industrial machinery that displays the history of reused MDI programs.

[0002] The operator of a machine tool (hereinafter also referred to as "operator") performs tool setup, including tool changes, tool measurement, and tool data setting, as well as workpiece setup, including workpiece mounting, workpiece coordinate origin measurement, and workpiece coordinate origin coordinate value setting. After that, the operator performs machining using the machine tool. Programs executed in MDI (Manual Data Input) mode (MDI programs) are often used in setup work, and the commands given during setup work are limited. MDI programs have a history function. The MDI program history is information that saves executed MDI programs as a history in chronological order. This allows the operator to reuse MDI programs from the MDI program history by changing the argument part. For example, there is a known technique that stores status data indicating the status of a numerical control device and the MDI program executed in that status in an operation history information storage area, and when performing MDI operation, scores are given to the status data stored in the operation history information storage area based on the similarity to the current status, and MDI programs that have been executed in the past are recommended to the operator based on the priority assigned based on the scoring result. See, for example, Patent Document 1.

[0003] Japanese Patent Publication No. 2016-186686

[0004] However, in the technology described in Patent Document 1, just by changing the display order of MDI programs, MDI programs that are not used in the situation of the machine tool may be displayed and recommended to the operator. Also, tendencies emerge in the command types and arguments of the MDI programs to be reused depending on the situation of the machine and the operator. For example, when the selected tool is a touch probe, "M17" to turn on the power of the touch probe and "M18" to turn it off are used, but when the tool is other than the touch probe, there is a tendency that those commands are not used. Also, for example, when the selected machining program is "O0001", commands for the setup work of "Work A" are used, whereas when the selected machining program is "O0002", commands for the setup work of "Work B" are used, etc. There are tendencies in the command types and arguments of the MDI programs to be reused according to the set machining program and the workpiece to be machined. Also, for example, when the operator is a tool manager, there is a tendency to use commands related to tool management such as "T1; M6;" etc., whereas when the operator is a machining worker, there is a tendency to use commands related to setup such as "G00; C180.0;" etc.

[0005] Therefore, it is desired that the desired MDI program to be reused can be easily found by displaying the MDI program history according to the situation of the machine and the operator without displaying MDI programs that are not to be reused.

[0006] Here, the uses of the MDI programs used in the setup work will be briefly explained. The uses of the MDI programs include, for example, (a) tool change, (b) spindle rotation for tool measurement and workpiece origin measurement for using the tool, (c) ON / OFF of the touch probe for workpiece origin measurement and workpiece dimension measurement, and (d) positioning such as moving the spindle to a specific position and returning the rotation axis to 0 degrees.

[0007] (a) Tool change setup operations include tool changes for measuring the dimensions of a tool attached to the spindle of a machine tool, and tool changes for attaching the tool to be used for machining to the spindle. Setup operations also include tool changes for measuring the position (coordinates) of a workpiece installed inside the machine tool by attaching a touch probe to the spindle of the machine tool. For example, an MDI program for tool change is "T3;M6;". This MDI program "T3;M6;" has a T command in the first block that specifies the tool to be attached to the spindle using an ATC, and an argument "3" that indicates the number of the tool to be attached to the spindle, and an M6 command in the second block that commands the execution of the tool change operation. The tool number, which is the value of the argument, is set in advance in the numerical control device, etc. For example, when the numerical control device executes the MDI program "T3;M6;", the tool of argument "3" is attached to the spindle.

[0008] (b) Spindle rotation setup operations include spindle rotation for purposes such as measuring the dimensions of a tool to be measured by attaching the tool to be measured to the spindle of a machine tool without using a tool measuring instrument. For example, an MDI program for spindle rotation is "S1000; M3;". This MDI program has an S command in the first block that commands the spindle rotation speed and an argument "1000" (revolutions / min) that indicates the spindle rotation speed, and an M3 in the second block that commands the execution of spindle rotation. The numerical control device, for example, executes this MDI program to rotate the spindle with the tool to be measured attached at "1000" (revolutions / min). For example, as shown in Figure 7, the numerical control device can measure the tool length by irradiating the tip of the tool to be measured with a laser beam, thereby finding the position of the tool tip without using a tool measuring instrument.

[0009] (c) Turning the touch probe ON / OFF The touch probe has a battery inside and detects contact by turning on the battery's power. Therefore, in setup work, there is a way to turn the touch probe ON / OFF to suppress battery consumption by turning on the touch probe's sensor only when taking measurements. For example, the numerical control unit can turn on the power of the touch probe by executing the M command "M17;" as an MDI program to turn on the power of the touch probe. The numerical control unit can also turn off the power of the touch probe by executing the M command "M18;" as an MDI program to turn off the power of the touch probe.

[0010] (d) In positioning setup operations, for example, there is positioning for the purpose of moving a tool close to a tool measuring instrument in order to measure tool dimensions. The MDI program for this positioning executes, for example, the rapid traverse G-code "G00" and the argument "X10.0 Y5.0" which indicates the desired position (coordinates) near the tool measuring instrument. In this way, after moving the spindle to the desired position near the tool measuring instrument, the operator can measure the dimensions of the tool by simply operating the manual handle to slowly move the tool and bring it into contact with the tool measuring instrument.

[0011] In addition to the above-mentioned tool changes, spindle rotation, touch probe ON / OFF, and positioning, the MDI program's uses in setup operations also include enabling the workpiece origin by setting the tool measuring instrument's position as the workpiece origin, and retracting the spindle after tool measurement is complete.

[0012] One embodiment of a control device for an industrial machine according to the present disclosure is a control device for an industrial machine that stores an MDI program executed in MDI mode as a history in chronological order and displays the history, comprising: a history storage unit that stores a first identification information, which includes at least information about the status of the industrial machine or the operator at the time the executed MDI program was executed, as the history linked to the MDI program; an acquisition unit that acquires a second identification information, which includes at least information about the status of the industrial machine or the operator, when displaying the history; a comparison unit that compares the first identification information of the stored history with the second identification information acquired by the acquisition unit; a history extraction unit that extracts history in which the first identification information and the second identification information match based on the results of the comparison by the comparison unit; and a display unit that displays the extracted history.

[0013] This figure shows an example of the configuration of the control system according to the first embodiment. This figure shows an example of history information stored in the history storage unit. This figure shows an example of the display of the extracted history. This is a flowchart explaining the history extraction process of the numerical control device. This figure shows an example of the configuration of the control system according to the second embodiment. This is a flowchart explaining the history extraction process of the numerical control device. This figure shows an example of measuring tool dimensions when the spindle is rotated by executing an MDI program.

[0014] <First Embodiment> The control device for industrial machinery according to the first embodiment will be described in detail below with reference to the figures. First, an outline of this embodiment will be given. In this embodiment, the control device for industrial machinery stores first identification information, which includes at least information about the status of the industrial machinery or the operator at the time the MDI program is executed, as a history linked to the MDI program. When displaying the history, the control device for industrial machinery acquires second identification information, which includes at least information about the status of the industrial machinery or the operator, and compares the first identification information linked to the stored history with the acquired second identification information. If the first identification information and the second identification information match, the control device for industrial machinery extracts the history and displays the extracted history. As a result, according to this embodiment, by displaying the MDI program history according to the machine status and operator without displaying MDI programs that will not be reused, it is possible to easily find the desired MDI program that you want to reuse. The above is an outline of this embodiment.

[0015] Figure 1 shows an example of the configuration of a control system according to the first embodiment. Here, the case where the industrial machine is a machine tool and the control device for the industrial machine is a numerical control device is explained as an example. Note that the present invention is also applicable when the industrial machine is a robot or the like and the control device is a robot control device or the like. As shown in Figure 1, the control system 1 has a numerical control device 10 and a machine tool 20. The numerical control device 10 and the machine tool 20 are directly connected to each other via a connection interface (not shown). Note that the numerical control device 10 and the machine tool 20 may be connected to each other and communicate via a network (not shown) such as a LAN (Local Area Network) or the Internet. In this case, the numerical control device 10 and the machine tool 20 are equipped with a communication unit (not shown) for communicating with each other via such connection.

[0016] <Machine tool 20> The machine tool 20 is, for example, a machine tool known to those skilled in the art, and operates based on commands from the numerical control device 10, which will be described later.

[0017] <Numerical Control Device 10> The numerical control device 10 is, for example, a numerical control device known to those skilled in the art, and generates commands based on a machining program acquired from a CAD / CAM device (not shown), and outputs the generated commands to the machine tool 20. In this way, the numerical control device 10 controls the operation of the machine tool 20. If the industrial machine is a robot, the numerical control device 10 may be a robot control device, etc. The numerical control device 10 has, for example, a control unit 11, an input unit 12, a display unit 13, and a storage unit 14. The control unit 11 also has an acquisition unit 110, a comparison unit 111, and a history extraction unit 112.

[0018] <Input Unit 12> The input unit 12 is a keyboard, mouse, touch panel located in front of the display unit 13 (described later), etc., and accepts input operations from the operator.

[0019] <Display Unit 13> The display unit 13 is a liquid crystal display or the like. For example, the display unit 13 may display the status of the machine tool 20 and the MDI program history according to the operator, as will be described later.

[0020] <Storage Unit 14> The storage unit 14 is an SSD (Solid State Drive) or HDD (Hard Disk Drive), etc. The storage unit 14 stores the operating system and application programs executed by the control unit 11. The storage unit 14 also has a history storage unit 141, and the history storage unit 141 stores history (MDI programs) as history information, which is linked to first identification information that includes at least the status of the machine tool 20 or information about the operator at the time the executed MDI program was executed. Figure 2 is a diagram showing an example of history information stored in the history storage unit 141. As shown in Figure 2, the history information has storage areas for "MDI program history," "tool identification information," "machining program identification information," "operator identification information," and "workpiece identification information." In the storage area for "MDI program history" within the history information, MDI programs executed in MDI mode are stored in chronological order as "history 1," etc. The "Tool Identification Information" storage area within the history information stores "Tool 1," etc., indicating the tool selected on the machine tool 20 when the MDI program stored in the "MDI Program History" storage area was executed. The tool identification information stored in the "Tool Identification Information" storage area is an argument corresponding to the T command and may be a tool number set in advance on the numerical control device 10, or a tool type that classifies the use of the tool, such as a screw tool, tap tool, or drill tool. The "Machining Program Identification Information" storage area within the history information stores "O0001," etc., indicating the machining program selected on the machine tool 20 when the MDI program stored in the "MDI Program History" storage area was executed. The "Operator Identification Information" storage area within the history information stores "Operator A," etc., indicating the operator who was performing setup work on the machine tool 20 when the MDI program stored in the "MDI Program History" storage area was executed. The "Operator Identification Information" storage area may also store, for example, the login ID and name of the operator who logs into the numerical control device 10, which are registered and stored in the memory unit 14.The "Work Identification Information" storage area within the history information stores information identifying the workpiece that was set on the machine tool 20 when the MDI program stored in the "MDI Program History" storage area was executed (for example, "Workpiece A"), and information related to that workpiece (for example, shape information, material information, etc.).

[0021] <Control Unit 11> The control unit 11 includes a CPU (Central Processing Unit), ROM (Read Only Memory), RAM (Random Access Memory), CMOS (Comprehensive Metal Oxide Semiconductor) memory, etc., which are configured to communicate with each other via a bus, and are known to those skilled in the art. The CPU is a processor that controls the numerical control device 10 as a whole. The CPU reads the system program and application program stored in the ROM via the bus and controls the entire numerical control device 10 according to the system program and application program. As a result, as shown in Figure 1, the control unit 11 is configured to realize the functions of the acquisition unit 110, the comparison unit 111, and the history extraction unit 112. Various types of data such as temporary calculation data and display data are stored in the RAM. The CMOS memory is backed up by a battery (not shown) and is configured as a non-volatile memory that retains its stored state even when the power to the numerical control device 10 is turned off.

[0022] The acquisition unit 110 acquires second identification information, which includes at least information about the status of the machine tool 20 or the operator, when displaying the history. Specifically, the acquisition unit 110 acquires at least one of the following as second identification information when displaying the history: the tool selected for the machine tool 20, the machining program, the workpiece, and the operator operating the numerical control device 10. The acquisition unit 110 may also acquire the second identification information based on the operator's input via the input unit 12.

[0023] The comparison unit 111 compares the first identification information associated with the stored history with the second identification information acquired by the acquisition unit 110. Specifically, for example, if the acquisition unit 110 acquires tool identification information "Tool 1" as the second identification information, the comparison unit 111 compares the tool identification information of the first identification information in the history information of the history storage unit 141 with the tool identification information "Tool 1" in the second identification information. The comparison unit 111 outputs to the history extraction unit 112, which will be described later, that the tool identification information for "History 1", "History 3", and "History 4" in the history information of the history storage unit 141 matches. Also, for example, if the acquisition unit 110 acquires machining program identification information "O0001" as the second identification information, the comparison unit 111 compares the machining program identification information of the first identification information in the history information of the history storage unit 141 with the machining program identification information "O0001" in the second identification information. The comparison unit 111 outputs to the history extraction unit 112 (described later) that the processing program identification information for "History 1," "History 2," and "History 5" in the history information of the history storage unit 141 matches. Also, for example, if the acquisition unit 110 acquires operator identification information "Operator A" as second identification information, the comparison unit 111 compares the operator identification information of the first identification information in the history information of the history storage unit 141 with the operator identification information "Operator A" of the second identification information. The comparison unit 111 outputs to the history extraction unit 112 (described later) that the operator identification information for "History 1" and "History 4" in the history information of the history storage unit 141 matches. Also, for example, if the acquisition unit 110 acquires work identification information "Work A" as second identification information, the comparison unit 111 compares the work identification information of the first identification information in the history information of the history storage unit 141 with the work identification information "Work A" of the second identification information. The comparison unit 111 outputs to the history extraction unit 112 (described later) that the work identification information for "History 1" and "History 4" in the history information of the history storage unit 141 matches.

[0024] The operation of the comparison unit 111 when the acquisition unit 110 acquires one of the following as second identification information: tool identification information, machining program identification information, operator identification information, or workpiece identification information is described, but the operation is not limited to this. For example, the acquisition unit 110 may acquire two or more of the following as second identification information: tool identification information, machining program identification information, operator identification information, or workpiece identification information, and the comparison unit 111 may compare the first identification information of the history information with the second identification information which includes two or more identification information.

[0025] The history extraction unit 112 extracts history if the first identification information and the second identification information match, based on the comparison results by the comparison unit 111. Specifically, for example, if tool identification information "Tool 1" is acquired as the second identification information, and the tool identification information of "History 1", "History 3", and "History 4" match from the comparison between the tool identification information of the first identification information and the tool identification information "Tool 1" of the second identification information, the history extraction unit 112 extracts "History 1", "History 3", and "History 4" from the history information of the history storage unit 141. The history extraction unit 112 outputs the extraction results to the display unit 13, and the display unit 13 displays only the MDI programs of "History 1", "History 3", and "History 4" that are associated with tool identification information "Tool 1". Figure 3 shows an example of the display of the extracted history. In Figure 3, "History 1" corresponds to the MDI program "S500;M3;", "History 3" corresponds to the MDI program "T2M6;", and "History 4" corresponds to the MDI program "G40G49;".

[0026] Furthermore, processing program identification information "O0001" is acquired as second identification information. If the processing program identification information of "History 1", "History 2", and "History 4" matches when comparing the processing program identification information of the first identification information with the processing program identification information "O0001" of the second identification information, the history extraction unit 112 extracts "History 1", "History 2", and "History 4" from the history information of the history storage unit 141. The history extraction unit 112 outputs the extraction result to the display unit 13, and the display unit 13 displays only the MDI programs of "History 1", "History 2", and "History 4" that are associated with processing program identification information "O0001". Furthermore, operator identification information "Operator A" is acquired as second identification information. If the operator identification information of "History 1" and "History 4" matches when comparing the operator identification information of the first identification information with the operator identification information "Operator A" of the second identification information, the history extraction unit 112 extracts "History 1" and "History 4" from the history information of the history storage unit 141. The history extraction unit 112 outputs the extraction results to the display unit 13, which displays only the MDI programs "History 1" and "History 4" associated with the operator identification information "Operator A". Additionally, work identification information "Work A" is acquired as second identification information, and if the work identification information of "History 1" and "History 4" matches the work identification information of the first identification information and the work identification information "Work A" of the second identification information, the history extraction unit 112 extracts "History 1" and "History 4" from the history information of the history storage unit 141. The history extraction unit 112 outputs the extraction results to the display unit 13, which displays only the MDI programs "History 1" and "History 4" associated with the work identification information "Work A".

[0027] The history extraction unit 112 may also determine that MDI programs among the extracted history entries that have the same command type (e.g., "G00" or "M6") and arguments (e.g., "X10.0 Y5.0" or "T6"), and that have the same order of command types, are duplicate MDI programs. The history extraction unit 112 may also extract one MDI program from among multiple histories (MDI programs) that have been determined to be duplicate MDI programs. By doing so, the numerical control device 10 can avoid displaying multiple histories (MDI programs) with the same content.

[0028] Furthermore, the display unit 13 may sort and display the history extracted by the history extraction unit 112 based on a criterion that includes at least one of the number of duplicate MDI programs or the time series. That is, since a larger number of duplicate MDI programs indicates that the MDI program is used more frequently, the display unit 13 may display the history of programs determined to be duplicate MDI programs at the top. Alternatively, the display unit 13 may display the history in chronological order (i.e., the order in which it was stored in the storage area "MDI program history").

[0029] <History Extraction Process of the Numerical Control Device 10> Next, the flow of the history extraction process of the numerical control device 10 will be explained with reference to Figure 4. Figure 4 is a flowchart illustrating the history extraction process of the numerical control device 10. The flow shown here is executed repeatedly while the operator performs setup work on the machine tool 20.

[0030] In step S11, the acquisition unit 110 acquires at least one of the following as second identification information: the tool selected for the machine tool 20 when displaying the history, the machining program, the workpiece, and the information of the operator performing the setup work on the machine tool 20.

[0031] In step S12, the comparison unit 111 compares the first identification information linked to the history information in the history storage unit 141 with the second identification information obtained in step S11.

[0032] In step S13, the history extraction unit 112 extracts from the history information the history in which the first identification information and the second identification information match, based on the comparison results from step S12.

[0033] In step S14, the history extraction unit 112 outputs the extraction results from step S13 to the display unit 13, and the display unit 13 displays the extracted history MDI program.

[0034] As described above, the numerical control device 10 according to the first embodiment displays the MDI program history according to the machine status and operator without displaying MDI programs that are not to be reused, thereby reducing the number of history entries displayed and making it easy to find the desired MDI program to be reused. The first embodiment has now been described.

[0035] <Second Embodiment> Next, a second embodiment will be described. As described above, in the first embodiment, the numerical control device 10 acquires second identification information, which includes information about the status of the machine tool 20 or the operator, during the setup operation of the machine tool 20, and compares the first identification information of the history information of MDI programs (history) executed in past setup operations with the acquired second identification information. Based on the comparison result, the numerical control device 10 extracts history from the history information in which the first identification information and the second identification information match. In contrast, in the second embodiment, the numerical control device 10A differs from the first embodiment in that, during the setup operation of the machine tool 20, it extracts history from the history information in which the first identification information and the second identification information match, and also analyzes whether or not tool change commands are included in the history that was not extracted, and extracts history that includes tool change commands. As a result, the numerical control device 10A can easily find the desired MDI program to be reused by displaying the MDI program history according to the machine status and operator without displaying MDI programs that will not be reused. The second embodiment will be described below.

[0036] Figure 5 shows an example of the functional block configuration of the control system according to the second embodiment. Elements having the same functions as those in the control system 1 of Figure 1 are denoted by the same reference numerals, and detailed explanations are omitted. As shown in Figure 5, the control system 1 includes a numerical control device 10A and a machine tool 20. The machine tool 20 has the same functions as the machine tool 20 of the first embodiment.

[0037] <Numerical Control Device 10A> The numerical control device 10A is a numerical control device known to those skilled in the art, similar to the numerical control device 10 of the first embodiment, and has a control unit 11a, an input unit 12, a display unit 13, and a storage unit 14. The control unit 11a also has an acquisition unit 110, a comparison unit 111a, a history extraction unit 112a, and an analysis unit 113. The input unit 12, the display unit 13, and the storage unit 14 have the same functions as the input unit 12, the display unit 13, and the storage unit 14 of the first embodiment.

[0038] <Control Unit 11a> The control unit 11a includes a CPU, ROM, RAM, CMOS memory, etc., which are configured to communicate with each other via a bus, and are known to those skilled in the art. The CPU is a processor that controls the numerical control device 10A as a whole. The CPU reads the system program and application program stored in the ROM via the bus and controls the entire numerical control device 10A according to the system program and application program. As a result, as shown in Figure 5, the control unit 11a is configured to realize the functions of the acquisition unit 110, the comparison unit 111a, the history extraction unit 112a, and the analysis unit 113. The acquisition unit 110 has the same functions as the acquisition unit 110 of the first embodiment.

[0039] In the following, we will explain using the example of the case where "History 3" and "History 5" in the history information storage area "MDI Program History" in Figure 2 are MDI programs "T2;M6;" and "T1;M6;" which include tool change commands. We will also explain using the example of the case where the tool currently selected in the machine tool 20 is "Tool 1".

[0040] The analysis unit 113 analyzes, for example, whether a tool change command (i.e., "M6") is included in the MDI program of each history in the history information storage area "MDI program history" of the history storage unit 141. As a result of the analysis, the analysis unit 113 determines that "history 3" and "history 5" are histories that include a tool change command, and acquires the replacement tools specified in "history 3" and "history 5" (i.e., "tool 2" and "tool 1") as third tool identification information.

[0041] Similar to the comparison unit 111 in the first embodiment, the comparison unit 111a compares the first identification information in the history information of the history storage unit 141 with the second identification information acquired by the acquisition unit 110. Specifically, the acquisition unit 110 acquires, for example, the tool identification information "Tool 1" of the tool currently selected in the machine tool 20 as the second tool identification information of the second identification information. The comparison unit 111a compares the first tool identification information of the first identification information in the history information of the history storage unit 141 with the second tool identification information "Tool 1". The comparison unit 111a outputs to the history extraction unit 112a, which will be described later, that the tool identification information for "History 1", "History 3", and "History 4" in the history information of the history storage unit 141 matches. In addition, when displaying the history, the comparison unit 111a compares the tool identification information of the tool currently selected in the machine tool 20, i.e., the second tool identification information of the second identification information, with the third tool identification information acquired by the analysis unit 113. Specifically, the comparison unit 111a compares, for example, the second tool identification information "Tool 1" with the third tool identification information acquired by the analysis unit 113, namely "Tool 2" in "History 3" and "Tool 1" in "History 5". The comparison unit 111a outputs to the history extraction unit 112a, which will be described later, that it matches the third tool identification information "Tool 1" in "History 5".

[0042] The history extraction unit 112a, similar to the history extraction unit 112 in the first embodiment, extracts histories from the history information where the first identification information and the second identification information match, based on the comparison result of the first identification information and the second identification information by the comparison unit 111a. That is, for example, if the second tool identification information is "Tool 1", the history extraction unit 112a extracts "History 1", "History 3", and "History 4" from the history information of the history storage unit 141 shown in Figure 2, where the first tool identification information is "Tool 1". In addition, the history extraction unit 112a extracts "History 3" and "History 5", which include tool change commands, from the history information of the history storage unit 141 through analysis by the analysis unit 113. However, the history extraction unit 112a does not extract "History 5" from the history information of the history storage unit 141 because, based on the comparison result of the comparison unit 111a, the second tool identification information "Tool 1" of the tool currently selected in the machine tool 20 matches the third tool identification information "Tool 1" of "History 5" acquired by the analysis unit 113. Therefore, the history extraction unit 112a ultimately extracts "History 1," "History 3," and "History 4" from the history information of the history storage unit 141 and outputs them to the display unit 13, which displays the MDI programs for "History 1," "History 3," and "History 4." In this way, the numerical control device 10A extracts all MDI programs for tool change commands because they are highly likely to be reused. However, by not extracting the MDI program for the tool change command that replaces the tool currently selected in the machine tool 20, the numerical control device 10A can reduce the number of displays, making it easier for the operator to find the MDI program to reuse.

[0043] <History Extraction Process of Numerical Control Device 10A> Next, the flow of the history extraction process of the numerical control device 10A will be explained with reference to Figure 6. Figure 6 is a flowchart illustrating the history extraction process of the numerical control device 10A. The flow shown here is executed repeatedly while the operator performs setup work on the machine tool 20.

[0044] In step S21, the acquisition unit 110 acquires, as second identification information, at least one of the information on the tool selected by the machine tool 20, the machining program, the workpiece, and the operator who is performing the setup work on the machine tool 20 when displaying the history.

[0045] In step S22, the analysis unit 113 analyzes whether a tool change command is included in the MDI program of each history in the storage area "MDI program history" of the history information in the history storage unit 141, and acquires, as third tool identification information, the tool at the replacement destination specified by the history including the tool change command.

[0046] In step S23, the comparison unit 111a compares the first identification information associated with the history in the history information of the history storage unit 141 with the second identification information acquired in step S21.

[0047] In step S24, the comparison unit 111a compares the second tool identification information of the tool currently selected by the machine tool 20 in the second identification information acquired in step S21 with the third tool identification information acquired in step S22.

[0048] In step S25, based on the result of the comparison in step S23, the history extraction unit 112a extracts, from the history information, the history in which the first identification information and the second identification information match.

[0049] In step S26, the history extraction unit 112a extracts, from the history information in the history storage unit 141, the history including the tool change command based on the result of the analysis in step S22. However, the history extraction unit 112a does not extract, from the history information in the history storage unit 141, the history in which the second tool identification information of the tool currently selected by the machine tool 20 and the third tool identification information acquired in step S22 match as a result of the comparison in step S24.

[0050] In step S27, the history extraction unit 112a outputs the extraction results of steps S25 and S26 to the display unit 13, and the display unit 13 displays the MDI program of the extracted history.

[0051] As described above, the numerical control device 10A according to the second embodiment displays the MDI program history according to the machine status and operator without displaying MDI programs that are not to be reused, thereby reducing the number of history entries displayed and making it easy to find the desired MDI program to be reused. The second embodiment has now been described.

[0052] As described above, and as shown in the first and second embodiments, the numerical control devices 10 and 10A of this disclosure display an MDI program history according to the machine status and operator, without displaying MDI programs that will not be reused, making it easy to find a desired MDI program that you wish to reuse.

[0053] <Modification> In the first and second embodiments described above, the numerical control devices 10 and 10A were devices separate from the machine tool 20, but the invention is not limited thereto. For example, the numerical control devices 10 and 10A may be included in the machine tool 20.

[0054] In the first and second embodiments, each function included in the numerical control devices 10 and 10A can be implemented by hardware, software, or a combination thereof. Here, implementation by software means that the function is implemented by a computer reading and executing a program.

[0055] Programs can be stored and supplied to a computer using various types of non-transitor computer-readable media. Non-transitor computer-readable media include various types of tangible storage media. Examples of non-transitor computer-readable media include magnetic recording media (e.g., flexible disks, magnetic tapes, hard disk drives), magneto-optical recording media (e.g., magneto-optical disks), CD-ROMs (Read Only Memory), CD-Rs, CD-R / Ws, and semiconductor memory (e.g., mask ROMs, PROMs (Programmable ROMs), EPROMs (Erasable PROMs), flash ROMs, RAMs). Furthermore, programs may be supplied to the computer by various types of temporary computer-readable media. Examples of temporary computer-readable media include electrical signals, optical signals, and electromagnetic waves. Temporary computer-readable media can be supplied to the computer via wired communication channels such as electric wires and optical fibers, or via wireless communication channels.

[0056] Furthermore, the step of executing the program recorded on the recording medium includes not only processes that are performed chronologically in that order, but also processes that are not necessarily performed chronologically, but are executed in parallel or individually. In addition, the step of writing the program may be performed using cloud computing.

[0057] While this disclosure has been described in detail, it is not limited to the individual embodiments described above. These embodiments can be added, replaced, modified, partially deleted, etc., in any way that does not depart from the gist of this disclosure or from the spirit of this disclosure derived from the claims and their equivalents. Furthermore, these embodiments can be implemented in combination. For example, the order of operations and processes in the embodiments described above are shown as examples only and are not limited thereto. The same applies when numerical values ​​or mathematical formulas are used in the description of the embodiments described above.

[0058] With respect to the above embodiments and modifications, the following additional notes are disclosed. (Addendum 1) The control device (10) for industrial machinery is a control device (10) for industrial machinery that stores an MDI program executed in MDI mode as a history in chronological order and displays the history, and includes a history storage unit (141) that stores first identification information, which includes at least information about the status of the industrial machinery (20) or the operator at the time the executed MDI program was executed, as a history linked to the MDI program; an acquisition unit (110) that acquires second identification information, which includes at least information about the status of the industrial machinery (20) or the operator when the history is displayed; a comparison unit (111) that compares the first identification information of the stored history with the second identification information acquired by the acquisition unit (110); a history extraction unit (112) that extracts history in which the first identification information and the second identification information match based on the results of the comparison by the comparison unit (111); and a display unit (13) that displays the extracted history. (Note 2) In the control device (10) of the industrial machine described in Note 1, the first identification information and the second identification information are information that includes at least one of the following: tool identification information that identifies the selected tool, machining program identification information that identifies the selected machining program, operator identification information that identifies the operator, and workpiece identification information that identifies the workpiece to be machined. (Note 3) In the control device (10) of the industrial machine described in Note 2, the tool identification information is information that identifies a tool, including at least one of the tool number or tool type. (Note 4) The control device (10A) of the industrial machine described in Note 3 further includes an analysis unit (113) that analyzes whether or not a tool change command is included in the stored history MDI program, and the history extraction unit (112a) extracts history that is determined to include a tool change command based on the analysis results of the analysis unit (113).(Note 5) In the control device (10A) of the industrial machine described in Note 4, if the analysis unit (113) determines that the history MDI program includes a tool change command, it acquires third tool identification information that identifies the tool specified in the tool change command. The comparison unit (111a) compares the second tool identification information acquired by the acquisition unit (110), which identifies the tool selected in the industrial machine (20) when displaying the history, with the third tool identification information acquired by the analysis unit (113). The history extraction unit (112a) does not extract history where the second tool identification information and the third tool identification information match. (Note 6) In the control device (10A) of any of the industrial machines described in Notes 1 to 5, the history extraction unit (112a) determines that MDI programs in the history stored in the history storage unit (141) that have the same command type and arguments, and the same order in which the command types are written, are duplicate MDI programs, and extracts the history of one of the duplicate MDI programs. (Note 7) In the control device (10A) of the industrial machine described in Note 6, the display unit (13) sorts and displays the extracted history based on a criterion that includes at least one of the number of duplicate MDI programs or the time series.

[0059] 1 Control system 10, 10A Numerical control device 11, 11a Control unit 110 Acquisition unit 111, 111a Comparison unit 112, 112a History extraction unit 113 Analysis unit 12 Input unit 13 Display unit 14 Storage unit 141 History storage unit 20 Machine tool

Claims

1. A control device for an industrial machine that stores an MDI program executed in MDI mode as a history in chronological order and displays the history, comprising: a history storage unit that stores a first identification information, which includes at least information about the status of the industrial machine or the operator at the time the executed MDI program was executed, as the history linked to the MDI program; an acquisition unit that acquires a second identification information, which includes at least information about the status of the industrial machine or the operator, when displaying the history; a comparison unit that compares the first identification information of the stored history with the second identification information acquired by the acquisition unit; a history extraction unit that extracts history in which the first identification information and the second identification information match based on the results of the comparison by the comparison unit; and a display unit that displays the extracted history.

2. The control device for an industrial machine according to claim 1, wherein the first identification information and the second identification information include at least one of the following: tool identification information for identifying the selected tool, machining program identification information for identifying the selected machining program, operator identification information for identifying the operator, and workpiece identification information for identifying the workpiece to be machined.

3. The control device for an industrial machine according to claim 2, wherein the tool identification information is information that identifies a tool, including at least one of a tool number or a tool type.

4. The control device for an industrial machine according to claim 3, further comprising an analysis unit that analyzes whether or not a tool change command is included in the MDI program of the stored history, and the history extraction unit extracts history that is determined to include the tool change command based on the analysis results of the analysis unit.

5. The control device for an industrial machine according to claim 4, wherein the analysis unit determines that the MDI program in the history includes a tool change command, and acquires third tool identification information that identifies the tool specified in the tool change command; the comparison unit compares second tool identification information acquired by the acquisition unit, which identifies the tool selected in the industrial machine when displaying the history, with the third tool identification information acquired by the analysis unit; and the history extraction unit does not extract history in which the second tool identification information and the third tool identification information match.

6. The control device for an industrial machine according to any one of claims 1 to 5, wherein the history extraction unit determines that an MDI program in the history stored in the history storage unit is a duplicate MDI program if the command type and arguments are the same and the order in which the command types are written is the same, and extracts the history of one of the duplicate MDI programs.

7. The control device for an industrial machine according to claim 6, wherein the display unit sorts and displays the extracted history on a criterion that includes at least one of the number of duplicate MDI programs or a time series.