Anomaly detection device, anomaly detection server, and anomaly detection method

The anomaly detection device addresses the challenge of accurately detecting machining abnormalities by analyzing machining execution information and providing real-time notifications, ensuring consistent quality in repeated machining processes.

JP7740864B2Active Publication Date: 2025-09-17FANUC LTD
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
JP2019097421
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2019-05-24
Publication Date
2025-09-17
Estimated Expiration
2039-05-24

AI Technical Summary

Technical Problem

Existing machining load monitoring methods struggle to accurately determine machining abnormalities due to variations in tool and workpiece conditions, and lack effective notification mechanisms for load thresholds, especially when the same cutting process is repeated on multiple workpieces.

Method used

An anomaly detection device and method that collects and analyzes machining execution information at predetermined intervals, calculates an average pattern based on a selected subset of data, and compares it with real-time data to detect deviations from a predetermined threshold, providing real-time notification of abnormalities.

Benefits of technology

Enables accurate detection of machining abnormalities in real-time, allowing for timely adjustments to prevent tool damage and defective workpieces by analyzing machining states specific to each machining step, even when repeated on multiple workpieces.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007740864000001
    Figure 0007740864000001
  • Figure 0007740864000002
    Figure 0007740864000002
  • Figure 0007740864000003
    Figure 0007740864000003
Patent Text Reader

Abstract

To provide an abnormality detector for detecting processing abnormality of a machine tool.SOLUTION: An abnormality detector 2 includes: a processing state collection part 211 which collects processing execution information at predetermined time intervals; a processing execution information recording part 212 which records the collected processing execution information into a recording part 22; a selection part 213 which executes a processing command a plurality of times and thereby selects, from a set of a plurality of pieces of recorded processing execution information, a subset of the processing execution information in order to calculate an average pattern corresponding to a processing step to be analyzed; an average pattern calculation part 214 which calculates, based on the subset, the average pattern corresponding to the processing step to be analyzed: and an abnormality detection part 215 which compares the processing execution information of the processing step to be analyzed with the average pattern and detects the presence or absence of abnormality occurring in the processing step to be analyzed.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] The present invention relates to an anomaly detection device, an anomaly detection server, and an anomaly detection method. [Background technology]

[0002] Conventionally, it is common for the machining load to suddenly increase or decrease during machining, even during normal machining. For this reason, it is difficult to determine whether the machining is abnormal or not just by displaying the machining load during machining. It is known that a control device monitors, for example, the machining load torque, and when the machining load exceeds a certain level, or when the difference between the machining load and the reference data exceeds a certain level, it outputs an alarm and interrupts machining or reduces the cutting feed rate to reduce the load. This prevents damage to the tool and prevents defective machining of the workpiece. In order to implement such a method for monitoring the machining load, a method is known in which trial cutting of a workpiece is carried out in advance, data on the machining load during the trial cutting is collected as sampling data at regular intervals, and then, during actual cutting, the reference data (sampled data) is compared with the actual measurement data at regular intervals to monitor the machining load. In the conventional machining load monitoring method described above, the machining load during each test cutting, which is sampled data, is highly likely to change due to various factors such as variations in the tool and workpiece during the test cutting, cutting oil, etc. Therefore, when the reference data is obtained from a single test cutting, the reference data does not necessarily represent the accurate machining load during that cutting, and therefore variations in the reference data for monitoring the machining load may prevent accurate judgment.

[0003] In this regard, Patent Document 1 discloses a machining load monitoring method for monitoring the machining load of a machine tool, in which reference data for the machining load is calculated as an average value from sampling data of the machining load taken multiple times during test cutting, the variance is calculated, and a threshold value according to the variation in the sampling data is set using the variance value, and the reference data and actual measurement data of the machining load are compared at regular intervals to detect whether the difference exceeds the threshold value, thereby monitoring the machining load. The machining load monitoring method disclosed in Patent Document 1 employs a monitoring method that monitors the machining load during actual cutting based on reference data of the machining load obtained from sampling data of the machining load multiple times during trial cutting. In other words, when the same cutting process is repeatedly performed on multiple workpieces, the machining load during each cutting process is compared with the same reference data. However, when the same cutting process is repeatedly performed on multiple workpieces, it is estimated that the state of the machine tool when cutting the first workpiece (for example, the wear state of the tool) is not necessarily the same as the state of the machine tool when cutting the next workpiece after the repeated cutting processes. In this case, the reference data disclosed in Patent Document 1 is suitable for comparison with actual measurement data obtained when cutting the first workpiece, for example, but may not necessarily be suitable for comparison with actual measurement data obtained when cutting the next workpiece after the repeated cutting processes. Furthermore, the processing load monitoring method disclosed in Patent Document 1 does not specifically disclose how to notify the user of an event, for example, when it is detected that the processing load has exceeded a threshold value. Furthermore, the machining load monitoring method disclosed in Patent Document 1 monitors only the machining load estimated by an observer that estimates, for example, a disturbance load torque, and does not disclose observation of other physical quantities. Furthermore, for example, with regard to the period for calculating statistical values ​​such as the average and variance, the statistical values ​​are calculated uniformly regardless of conditions indicating the wear state of the tool (for example, conditions such as the cumulative usage time of the tool, the number of times the tool is used, and the cumulative actual cutting time of the tool). [Prior art documents] [Patent documents]

[0004] [Patent Document 1] Japanese Patent Application Publication No. 7-132440 Summary of the Invention [Problem to be solved by the invention]

[0005] For example, when the same machining steps are repeatedly performed on a plurality of workpieces, it is desirable to be able to determine whether or not a machining abnormality has occurred in each machining step using a method suited to each machining state. [Means for solving the problem]

[0006] (1) An abnormality detection device according to one aspect of the present disclosure detects an abnormality in a machining command consisting of one or more machining steps executed by a control device, and includes: a machining state collection unit that collects physical quantities indicating machining states in the machining steps, which are acquired at predetermined time intervals when the machining command is executed, together with time information at which the physical quantities were acquired, as machining execution information for the machining steps; a machining execution information recording unit that records the machining execution information collected by the machining state collection unit in a storage unit; and a processing execution information recording unit that executes the same machining step as the machining step multiple times for any one of the machining steps, and selects a previous machining execution information from a set of machining execution information for the same machining step as the machining step, which is recorded multiple times in the storage unit. The apparatus includes a selection unit that selects a subset of processing execution information of the same processing step as the arbitrary one of the processing steps that is suitable for calculating an average pattern, which is the time change of the average physical quantity of the processing execution information of the arbitrary one of the processing steps; an average pattern calculation unit that calculates an average pattern of the processing execution information of the arbitrary one of the processing steps based on the subset of the processing execution information selected by the selection unit; and an abnormality detection unit that compares target processing execution information, which is the processing execution information of the processing step obtained by executing the arbitrary one of the processing steps, with the average pattern calculated by the average pattern calculation unit to detect abnormalities during the execution of the arbitrary one of the processing steps.

[0007] (2) An anomaly detection server according to one aspect of the present disclosure includes the anomaly detection device according to (1) and is communicatively connected to the control device.

[0008] (3) An abnormality detection method according to one aspect of the present disclosure includes a processing state collection step of collecting physical quantities indicating processing states in the processing steps, which are acquired at predetermined time intervals during execution of the processing commands, together with time information at which the physical quantities were acquired, as processing execution information for the processing steps; a processing execution information recording step of recording the processing execution information collected in the processing state collection step in a storage unit; and a processing execution information recording step of executing the same processing step as any one of the processing steps multiple times, and selecting a processing execution information recorder for the any one of the processing steps from a set of processing execution information for the same processing step as the processing step recorded multiple times in the storage unit. The computer executes a selection step of selecting a subset of processing execution information of the same processing step as the processing step that is suitable for calculating an average pattern, which is the time change of the average physical quantity of the processing execution information of the processing step; an average pattern calculation step of calculating an average pattern of the processing execution information of any one of the processing steps based on the subset of processing execution information selected in the selection step; and an abnormality detection step of comparing target processing execution information, which is the processing execution information of the processing step obtained by executing the any one of the processing steps, with the average pattern calculated in the average pattern calculation step to detect an abnormality during the execution of the any one of the processing steps. [Effects of the Invention]

[0009] According to one aspect, for example, when the same machining steps are repeatedly performed on multiple workpieces, an abnormality detection device can be provided that can determine whether or not a machining abnormality has occurred in each machining step using a method appropriate for each machining state. [Brief explanation of the drawings]

[0010] [Figure 1] 1 is a block diagram showing a hardware configuration of a main part of an abnormality detection device according to an embodiment; [Figure 2]1 is a block diagram showing a functional configuration of a numerical control device according to an embodiment; [Figure 3A] FIG. 10 is a diagram showing an example of content included in a processing step according to an embodiment. [Figure 3B] FIG. 10 is a diagram illustrating an example of content included in processing execution information according to an embodiment. [Figure 4A] FIG. 10 is a diagram illustrating an example of a processing state table according to an embodiment. [Figure 4B] FIG. 10 is a diagram illustrating an example of a processing state table according to an embodiment. [Figure 5] FIG. 10 is a diagram showing an outline of calculating an average pattern using a plurality of physical quantities and processing times for the same processing step according to an embodiment. [Figure 6] FIG. 10 is a diagram showing an outline of calculating an average pattern using a plurality of physical quantities and machining times that satisfy a condition related to a predetermined cumulative tool usage time for the same machining step according to one embodiment. [Figure 7A] FIG. 10 is a diagram showing an example of detecting whether an abnormality has occurred in a processing step during processing and displaying the detection result in a graph in real time. [Figure 7B] FIG. 10 is a diagram showing an example of a graph displaying an analysis of whether or not there was an abnormality in the processing step after processing. [Figure 8] 10 is a flowchart showing the operation of the abnormality detection device when detecting whether or not an abnormality has occurred in a machining step included in a machining command during execution of the step, and displaying the detection result in a graph in real time. [Figure 9] 10 is a flowchart showing the operation of the abnormality detection device when, after a machining command is executed, a performance analysis is performed to determine whether or not there is an abnormality in each machining step included in the machining command. DETAILED DESCRIPTION OF THE INVENTION

[0011] An example of an embodiment of the present invention will be described below. In this embodiment, a numerical control device 1 is exemplified as a control device 1 for a machine tool. Note that, although a five-axis machining center is exemplified as the machine tool, the present invention is not limited to this. For example, a three-axis machining center may also be used. Furthermore, in this embodiment, the machine tool is a cutting machine or a grinding machine, but is not limited to this. If the machine tool is an electric discharge machine, for example, a physical quantity related to applied voltage or current; if the machine tool is a laser machine or a water jet machine, for example, a physical quantity related to laser output or water pressure; if the machine tool is an injection molding machine, for example, a physical quantity related to heating temperature or injection pressure; by using these as the machining execution information described below for each machine tool, it is possible to similarly detect whether an abnormality has occurred during the execution of any one machining step.

[0012] As shown in FIG. 1, the system according to this embodiment includes a numerical control device 1 and an abnormality detection device 2. The abnormality detection device 2 detects whether an abnormality has occurred during or after the execution of any one of the machining steps in the numerical control device 1, which executes machining commands consisting of one or more machining steps. As shown in FIG. 1, the numerical control device 1 and the abnormality detection device 2 are interconnected. As an interconnection method, the abnormality detection device 2 may be directly connected to the numerical control device 1 via an interface unit (not shown). Alternatively, the abnormality detection device 2 may be communicatively connected to the numerical control device 1 via, for example, a network. Alternatively, the abnormality detection device 2 may be included in the numerical control device 1. Alternatively, some of the functional blocks (described later) of the abnormality detection device 2 may be included in the numerical control device 1. Before describing the abnormality detection device 2, the numerical control device 1 will be described.

[0013] FIG. 2 is a block diagram showing the hardware configuration of the main parts of the numerical control device 1 according to this embodiment. In the numerical control device 1, a CPU 11 as a control unit is a processor that controls the entire numerical control device 1. The CPU 11 reads a system program stored in a ROM 12 as a storage unit via a bus 20, and controls the entire numerical control device 1 in accordance with this system program. The RAM 13 serving as a storage unit stores temporary calculation data, display data, and various data input by an operator via the display / MDI unit 70. In addition, since access to RAM is generally faster than access to ROM, the CPU 11 may load the system program stored in ROM 12 onto the RAM 13 in advance, and then read and execute the system program from the RAM 13. The nonvolatile memory 14 serving as a storage unit is a magnetic storage device, a flash memory, an MRAM, an FRAM (registered trademark), an EEPROM, or an SRAM or DRAM backed up by a battery, and is configured as a nonvolatile memory that retains its stored state even when the power to the numerical control device 1 is turned off. The nonvolatile memory 14 stores machining programs and the like input via the interface 15, the display / MDI unit 70, or the communication unit 27.

[0014] The ROM 12 is pre-written with various system programs for carrying out processes in an edit mode required for creating and editing a machining program and processes for automatic operation. Various machining programs are input via the interface 15, the display / MDI unit 70 or the communication section 27, and are stored in the non-volatile memory . The ROM 12, RAM 13, and nonvolatile memory 14 are also referred to as storage units. The interface 15 connects the numerical control device 1 with an external device 72. A machining program, various parameters, etc. are read from the external device 72 into the numerical control device 1. Furthermore, a machining program edited in the numerical control device 1 can be stored in an external storage means via the external device 72. Specific examples of the interface 15 include RS232C, USB, SATA, a PC card slot, a CF card slot, an SD card slot, Ethernet (registered trademark), Wi-Fi, etc. The interface 15 may be present on the display / MDI unit 70. Examples of the external device 72 include a computer, a USB memory, a CFast, a CF card, an SD card, etc.

[0015] A PMC (Programmable Machine Controller) 16 outputs signals to auxiliary devices of the machine tool (for example, an automatic tool changer including an actuator such as a robot hand for tool change) via an I / O unit 17 to control the device, according to a sequence program stored in the numerical control device 1. The PMC 16 also receives signals from various switches on an operation panel 71 provided on the machine tool body, performs the necessary signal processing, and then passes the signals to the CPU 11. The PMC 16 is also generally called a PLC (Programmable Logic Controller). The control panel 71 is connected to the PMC 16. The control panel 71 may be equipped with a manual pulse generator or the like. The display / MDI unit 70 serving as a display section is a manual data input device equipped with a display 701 and an operation section such as a keyboard or touch panel 702. The interface 18 not only sends screen data for display to the display 701 of the display / MDI unit 70, but also receives commands and data from the operation section of the display / MDI unit 70 and passes them to the CPU 11.

[0016] The axis control circuits 30-34 for the X, Y, Z, B, and C axes are comprised of a processor, memory, etc., and receive movement commands for each axis from the CPU 11 and output the commands for each axis to servo amplifiers 40-44. The servo amplifiers 40-44 receive these commands and drive the servo motors 50-54 for the X, Y, Z, B, and C axes. The servo motors 50-54 for each axis have built-in pulse encoders for position detection, and position signals from these pulse encoders are fed back as pulse trains. A linear scale may also be used as a position detector. A velocity feedback signal can be generated by F / V (frequency / velocity) converting this pulse train. The position and velocity feedback signals are then fed back to the axis control circuits 30-34, whereby the processor performs feedback control of the position and velocity.

[0017] A spindle control circuit (also referred to as a "spindle control circuit") 60 is also composed of a processor, memory, etc., and receives a spindle rotation command from the CPU 11 and outputs a spindle speed signal (also referred to as a "spindle speed signal") to a spindle amplifier (also referred to as a "spindle amplifier") 61. Upon receiving this spindle speed signal, the spindle amplifier 61 rotates a spindle motor (also referred to as a "spindle motor") 62 at the commanded rotation speed to drive the tool. A pulse encoder is connected to the spindle motor 62 via a gear or a belt, and the pulse encoder 63 feeds back a feedback pulse to the spindle control circuit 60 in synchronization with the rotation of the spindle, and the processor in the spindle control circuit 60 performs speed control processing.

[0018] The abnormality detection device 2 detects whether an abnormality has occurred during the execution of any one machining step after or during machining in the numerical control device 1 that executes a machining command consisting of one or more machining steps multiple times. Hereinafter, the any one machining step that is the target for detecting whether an abnormality has occurred is also referred to as the "machining step that is the target of abnormality detection" or the "machining step that is the target of analysis." For this reason, the abnormality detection device 2 has an abnormality detection function including a function of collecting, for example, physical quantities and time information, which are machining execution information acquired by a sensing means, in any machining step included in a machining command executed by the numerical control device 1, in association with the machining step, a function of collecting, for example, a certain period of machining execution information acquired in machining steps having the same machining shape and the same machining method as the machining step, a function of selecting an optimal subset from the set of machining execution information collected for each machining step, and calculating an average pattern, which is a time change of an average physical quantity, for determining whether or not there is an abnormality in the machining step for which the abnormality is to be detected, a function of comparing the machining execution information in the machining step for which the abnormality is to be detected with the average pattern of the machining step, a function of detecting whether or not the comparison result deviates by more than a predetermined threshold, a function of determining that a machining abnormality has occurred in the machining step if the comparison result deviates by more than the predetermined threshold, and a function of identifying and displaying the deviation area if it is determined that an abnormality has occurred. Details of the abnormality detection function will be described later.

[0019] Before describing the abnormality detection function, the machining shape, machining command, machining step, and machining execution information in this embodiment will be described.

[0020] The machining shape refers to the shape of a workpiece (also called a "work") after machining, which is designed by a user using, for example, CAD (Computer-Aided Design).

[0021] The machining command refers to machining command information for machining a workpiece into a machining shape, which is created by a user using CAM (Computer-Aided Manufacturing) from machining shape data designed by CAD, for example. The machining command includes settings of machining details such as machining shape, cutting conditions, strategy, approach method, and retraction method, for example. Specifically, as will be described later, the machining command includes information on one or more machining steps (information on the first machining step to the Nth (N is any natural number) machining step) when a machining step is defined as a unit for machining one type of machining shape with one type of tool.

[0022] FIG. 3A is a diagram showing an example of information related to machining content included in a machining step. As described above, a machining step is a unit in which one type of tool is used to machine one type of machining shape. Referring to FIG. 3A, a machining step includes, for example, a machining step number, a machining step start date and time, a machining step end date and time, a tool number, a machining shape, a machining feature, a workpiece material, cutting conditions, machining content settings such as a machining method (e.g., an approach method and a retract method), machining requirement information including CAM tolerance, surface roughness, geometric tolerance, and dimensional tolerance. Note that the information related to machining content is not limited to these. For example, the information related to machining content may include information such as a spindle speed, a cutting feed rate, a feed amount per tooth, a cutting depth, a cutting width, and a tool path. In this way, a machining command is composed of one or more machining steps, and each machining step describes the machining shape and machining method, and the numerical control device 1 can cause the machine tool to perform machining processing by executing the machining command.

[0023] Fig. 3B is a diagram showing an example of data included in the machining execution information. Referring to Fig. 3B, the machining execution information includes, for example, machining command information, a machine tool number, a machining command start date and time, a machining command end date and time, etc. Also included is the machining state during machining execution based on the machining command and time information at that time, which are acquired (or measured) at predetermined sampling times each time the numerical control device 1 causes the machine tool to execute a machining command for each machining step. Specifically, the machining execution information includes information relating to the machining state of the machine tool obtained when the numerical control device 1 executes a machining command, such as servo information, various sensor data information, and resource information (such as tool usage time). The machining execution information can be associated with each machining step in which one type of tool is used to machine one type of machining shape. By doing so, the same number of pieces of machining execution information as the number of times the same machining command is executed can be associated with the same machining step (i.e., machining steps in which the same machining shape is machined with the same tool). As described above, the state during machining execution is acquired at a predetermined sampling period, so that the machining execution information of the same machining step can be statistically processed based on the state during machining execution at each sampling time from the start time to the end time of the machining step. The abnormality detection device 2 of this embodiment is based on the premise that when one processing step is executed multiple times as obtained in the manner described above, an appropriate subset is selected from the multiple processing execution information corresponding to each execution based on the processing step that is the target of abnormality detection, and, for example, an average pattern of the processing step is calculated, and this average pattern is compared with the processing execution information of the processing step that is obtained when the processing step that is the target of abnormality detection is executed. Therefore, the average pattern of the machining steps calculated by the abnormality detection device 2 is not fixed. For example, when a machining command is executed multiple times, the machining steps included in the machining command are also executed multiple times. In this case, the average pattern (i) calculated when the machining step (i) executed the i-th time (i>1) is the target of abnormality detection and the average pattern (j) calculated when the machining step (j) executed the j-th time (j>i) is the target of abnormality detection are not necessarily the same value.

[0024] <Processing execution information> Next, an example of machining execution information in this embodiment will be described. In the following, examples of physical quantities included in the machining execution information include a spindle load meter value, a spindle torque value, each axis servo torque value, each axis servo position, and resource information (such as tool usage time) during machining, which are acquired by the sensing means.

[0025] The spindle load meter value may be, for example, a maximum output reference load meter value obtained by dividing the output at a certain motor speed during operation of the machine tool by the maximum output when the maximum current is supplied to the motor, and / or a continuous rated output reference load meter value obtained by dividing the output by the continuous rated output that the motor can output for an infinite period of time.

[0026] As the spindle torque value, for example, by incorporating a disturbance estimation observer (not shown) in the spindle control circuit 60, the spindle torque applied to the spindle motor 62 can be measured. However, the measurement of the spindle torque is not limited to this. For example, the spindle torque applied to the spindle motor 62 may be measured by the drive current flowing through the spindle motor 62. Furthermore, a special torque sensor may be added to measure the spindle torque.

[0027] Similarly, for each axis servo torque value (each axis servo torque (each axis load torque) applied to the servo motors 50-52 of the X-, Y-, and Z-axes of the tool feed axes), a disturbance estimation observer (not shown) can be incorporated into the axis control circuits 30-32 that drive and control the servo motors 50-52 of the X-, Y-, and Z-axes of the tool feed axes, so that the servo torque (load torque) applied to each servo motor 50-52 can be measured by this observer. Note that the drive current of each servo motor of the X-, Y-, and Z-axes of the tool feed axes may be measured, and the servo torque of each axis may be estimated from this drive current. Furthermore, a torque sensor may be added to measure the servo torque (load torque) applied to the servo motor of each axis.

[0028] The servo position information for each axis may be measured, for example, by a position feedback signal from a pulse encoder built into the servo motors 50 to 52 for each axis.

[0029] Furthermore, as resource information (such as tool usage time) during machining, information on the tool used and the tool usage time may be measured for each machining step.

[0030] <Anomaly detection function> Next, the abnormality detection function of the abnormality detection device 2 will be described. The abnormality detection device 2 includes a control unit 21 and a storage unit 22, and may further include various input / output and communication devices.

[0031] The control unit 21 is a part that controls the entire abnormality detection device 2, and realizes various functions in this embodiment by, for example, reading and executing software (an abnormality detection program) stored in the storage unit 22. The control unit 21 may be a CPU. The control unit 21 also includes a machining state collection unit 211 , a machining execution information recording unit 212 , a selection unit 213 , an average pattern calculation unit 214 , an abnormality detection unit 215 , and an output unit 216 .

[0032] The storage unit 22 is a storage area for storing various programs for causing the hardware group to function as the abnormality detection device 2, various data, and the like, and may be a ROM, RAM, flash memory, hard disk drive (HDD), or the like. Fig. 1 is a block diagram showing the functional configuration of the control unit 11. Referring to Fig. 1, the control unit 21 includes a machining state collection unit 211, a machining execution information recording unit 212, a selection unit 213, an average pattern calculation unit 214, an abnormality detection unit 215, and an output unit 216, and when a machining abnormality is detected from the machining execution information measured during the machining step that is the target of abnormality detection, these functional units enable the user to easily grasp the time and / or location at which the machining abnormality was detected.

[0033] <Processing state collection unit 211> When the numerical control device 1 executes one or more machining steps included in the machining command, the machining state collection unit 211 collects physical quantities indicating the machining state at each machining step (for example, the aforementioned spindle load meter value, spindle torque value, each axis servo torque value, each axis servo position, etc.) acquired by, for example, a sensing means at predetermined time intervals (sampling time) together with the acquired time information (sampling time) as machining execution information for the machining step. The machining state collection unit 111 may further acquire resource information (such as the tool number of the tool and the tool use time of the tool) in each machining step as machining execution information.

[0034] <Processing execution information recording unit 212> The processing execution information recording unit 212 records the processing execution information collected by the processing state collecting unit 111 for each processing step in the storage unit 22, for example, by linking it to the processing step number of the processing step. Note that management information indicating the total number of times the processing step has been executed may also be recorded. Alternatively, date and time information on when the processing step was executed may also be recorded. The machining execution information recording unit 212 can further record the tool number of the tool used in each machining step and the usage time of the tool in association with the machining step number Cn of the machining step in the storage unit 22. Note that resource usage information indicating the tool usage state (tool in use or tool not in use) may be recorded as appropriate (for example, at each sampling time). By doing so, for example, it is possible to record the cumulative tool usage time of the tool used in the machining step. As will be described later, instead of the cumulative tool machining time, for example, the cumulative cutting energy, cumulative actual cutting time, cutting load, tool wear state, number of times the tool is used, etc. may be recorded as machining execution information.

[0035] 4A and 4B are diagrams showing an example of a machining state table for recording machining execution information. Here, if a machining command includes one or more (N) machining steps Cn (1≦n≦N), and one physical quantity at each sampling time Tn(i) (1≦i≦M) of each machining step Cn is Dn(i) and one tool usage state On(i), as shown in FIG. 4A, the physical quantity Dn(i) indicating the machining state and the resource usage information On(i) indicating the tool usage state, which are collected at each sampling time Tn(i) corresponding to one machining step Cn (1≦n≦N), can be recorded in table format, for example, in the storage unit 22.

[0036] Furthermore, as the machining execution information recording unit 212 executes the machining instruction a plurality of times (K times: 1 < K), (for example, when the machining instruction is executed, if the machining step is executed once), for the same machining step Cn, K pieces of machining execution information can be associated. More specifically, the machining execution information Cn(j) of the machining step Cn collected when the machining instruction is executed for the j-th time (1 ≤ j ≤ K) can be represented by one physical quantity Dn(i,j) and the tool usage state On(i,j) at each sampling time Tn(i) (1 ≤ i ≤ M), as shown in FIG. 4B. In this way, as the machining instruction is executed a plurality of times, the machining steps included in the machining instruction are executed a plurality of times. Each time the machining step is executed, a plurality of pieces of machining execution information related to the machining step are recorded in the storage unit 22 in the order of execution. In this way, a plurality of pieces of machining execution information related to the same machining step are accumulated in the storage unit 22 in the order of execution.

[0037] <Selection unit 213> The abnormality detection device 2 calculates an average pattern that serves as a reference for evaluating the machining step by an average pattern calculation unit 214 described later in order to detect whether an abnormality has occurred during the execution of the machining step to be subjected to abnormality detection (analysis target machining step). Therefore, the selection unit 213 selects a subset of the machining execution information related to the machining step based on a preset filtering condition from the set of a plurality of pieces of machining execution information related to the machining step recorded in the storage unit 22 in the order of execution. Specifically, the filtering condition can be set so that the subset of the machining execution information selects those with similar machining conditions and / or machining states when executing the analysis target machining step. For example, as the filtering condition, a condition for selecting a predetermined number of pieces of machining execution information related to the machining step executed most recently before the analysis target machining step may be set. In addition, as a filtering condition, the range of cumulative tool time may be set corresponding to the machining step to be analyzed so that the cumulative tool usage time for the tool used in each machining step is similar to the state of the tool when machining the machining step to be analyzed. Instead of the range of cumulative tool usage time, as described above, filtering conditions may be set based on, for example, the cumulative amount of cutting energy, the cumulative actual cutting time, the cutting load, the wear state of the tool, or the number of times the tool has been used. Furthermore, when selecting a subset of processing execution information relating to a processing step from a set of multiple pieces of processing execution information relating to the processing step, which are recorded in the memory unit 22 in the order in which they were executed, it is also possible to exclude processing steps in which an abnormality has been detected from the processing steps included in the subset.

[0038] 5 is a diagram showing a case in which a subset consisting of processing execution information of processing steps executed most recently before the processing step to be analyzed is selected. Here, for example, a case in which a processing step is executed once every day is illustrated. For example, if the processing step to be analyzed is executed (or was executed) on March 6, 2019, the filtering condition is set so that the selection unit 213 selects the five most recent executions of the processing step to be analyzed (specifically, the processing execution information executed from March 1 to March 5 and recorded in the memory unit 22).

[0039] 6 is a diagram illustrating a case where the filtering conditions are set to select a subset that is a machining step executed immediately before the machining step to be analyzed and that satisfies the condition that the cumulative tool usage time is within a range of 4 minutes ± 3 minutes. In this case, since the cumulative tool usage time increases each time a machining step is executed, the filtering conditions are set so that it is similar to the cumulative tool usage time in the machining step to be analyzed. In this way, the selection unit 213 can select a subset consisting of appropriate processing execution information based on preset filtering conditions corresponding to the processing step to be analyzed. This allows the average pattern calculation unit 214 (described later) to calculate an appropriate average pattern to detect whether an abnormality has occurred in the processing step to be analyzed. Furthermore, by appropriately setting filtering conditions, the average pattern calculation unit 214 (described later) can create an average pattern appropriate for each case. Furthermore, the abnormality detection unit 215 (described later) can perform comparison accuracy taking into account the characteristics of the processing.

[0040] <Average pattern calculation unit 214> As described above, the average pattern calculation unit 214 calculates an average pattern that serves as a reference for detecting whether or not an abnormality has occurred during the execution of the processing step to be analyzed, based on a subset of the processing execution information selected by the selection unit 213 in accordance with the processing step to be analyzed. Specifically, the average pattern calculation unit 214 may calculate an average value of the physical quantities from the multiple pieces of processing execution information selected by the selection unit 213 for each sampling period in which the processing execution information was collected. The average pattern calculation unit 214 may then calculate an average pattern in which the tolerance range is, for example, plus X percent (X is a predetermined number) and minus Y percent (Y is a predetermined number) for the average value calculated for each sampling period. Furthermore, specific upper and lower limit values ​​may be set for each sampling period. 5 and 6 show examples of average patterns in which the allowable range is set with an upper limit of a 25% increase from the average value and a lower limit of a 25% decrease from the average value for each sampling period. The method for setting the allowable range is not limited to the above example. For example, the range may be set using the variance in each sampling period. Alternatively, the average pattern (especially the allowable range) may be calculated based on any statistical method. As described above, the average pattern calculation unit 214 can calculate an appropriate average pattern depending on the processing step to be analyzed, which allows the anomaly detection unit 215, which will be described later, to improve the accuracy of detecting whether an anomaly has occurred in the processing step to be analyzed.

[0041] <Abnormality detection unit 215> When a machining command is newly executed by the numerical control device 1, the abnormality detection unit 215 compares the physical quantities collected at predetermined time intervals (sampling times) in the machining step to be analyzed included in the machining command with the average pattern calculated by the average pattern calculation unit 214 for the machining step to be analyzed at each same sampling time, thereby detecting whether there is a deviation greater than a predetermined threshold value set in advance (i.e., whether the physical quantities collected in the machining step to be analyzed remain within the allowable range at each sampling time or are outside the allowable range).

[0042] The output unit 216, which will be described later, inputs a percentage or value as a threshold value of the allowable range into the average pattern calculated by the average pattern calculation unit 214, and can highlight the allowable range of the average pattern as a boundary indicating the occurrence of an abnormality in the analysis target processing step with respect to the physical quantity indicating the processing state at the sampling time of the analysis target processing step, as shown in Figures 5 and 6. In this way, when an abnormality is detected in the analysis target processing step, the abnormality detection unit 215 can highlight the physical quantity on the graph via the output unit 216, which will be described later, so that it can be intuitively understood that the physical quantity has exceeded the allowable range.

[0043] <Real-time processing for detecting abnormalities during processing> The abnormality detection unit 215 can detect whether the physical quantity at the sampling time of any analysis target machining step included in the machining command, which is collected during the execution of the analysis target machining step, remains within or is outside the allowable range at the sampling time in the average pattern calculated in accordance with the analysis target machining step by the average pattern calculation unit 214 while the machining command is being executed by the numerical control device 1. That is, the abnormality detection unit 215 detects whether the physical quantity indicating the machining state at the sampling time of the analysis target machining step deviates by more than a predetermined threshold value set in advance at the sampling time. When the abnormality detection unit 215 detects a deviation, it determines that a machining abnormality has occurred in the analysis target machining step, and highlights the area where the machining abnormality has occurred in real time via the output unit 216, which will be described later. In this way, it is possible to notify the user of a machining abnormality in any analysis target machining step included in the machining command while the machining command is being executed by the numerical control device 1. This allows the user to, for example, determine any abnormalities in the current machining in real time while machining is in progress, and to take steps such as interrupting the machining, reducing the cutting speed to reduce the load, or replacing tools as necessary.

[0044] <Batch processing for detecting abnormalities after processing> After the machining command is executed by the numerical control device 1, the abnormality detection unit 215 can detect whether the physical quantities at each sampling time of the analysis target machining information collected during the execution of any analysis target machining step included in the machining command remain within the allowable range at that sampling time in the average pattern calculated by the average pattern calculation unit 214 according to the analysis target machining step. When the abnormality detection unit 215 detects a deviation, it determines that a processing abnormality has occurred in the processing step being analyzed, and highlights the area that exceeds the tolerance range via the output unit 216 described below, thereby notifying the user of all the abnormal locations that have occurred in the processing step being analyzed after the processing command was executed. This allows the user to, for example, confirm that there were no abnormalities in the machining results after executing the machining command, or to investigate all abnormalities that occurred in the machining step being analyzed, which allows the user to discover problems in the machining command and improve the machining command.

[0045] <Output unit 216> 5 or 6, the output unit 216 displays the average pattern (i.e., the average value and the range of the allowable range) calculated by the average pattern calculation unit 214 according to the processing step to be analyzed, for example, on the display 70. As described above, the threshold for setting the allowable range is given as a percentage (e.g., %), a real number (value), or the like. The output unit 216 can display, for each sampling time in the processing step to be analyzed included in the processing command, the average pattern calculated in accordance with the processing step to be analyzed so as to be superimposed on the area of ​​the average pattern displayed on the display 70. The real-time display process for detecting an abnormality during processing and the display process for detecting an abnormality after processing will be described below.

[0046] <Real-time display of abnormality detection during machining> As described above, the output unit 216 displays, for example, on the display 70, an average pattern (i.e., an average value and an allowable range area) calculated in accordance with an arbitrary analysis target processing step included in a processing command during execution of the analysis target processing step. The output unit 216 plots a physical quantity indicating the processing state related to the processing at regular time intervals (e.g., sampling times). The output unit 216 displays in real time whether or not the physical quantity indicating the processing state related to the processing is outside the allowable range in the average pattern calculated in accordance with the analysis target processing step (i.e., whether or not a deviation of a predetermined threshold or more occurs). When the abnormality detection unit 215 detects a deviation, the output unit 216 highlights the area where the deviation occurred in real time. For example, the output unit 216 can notify the user of the processing abnormality by issuing an alarm to the user, highlighting the area by changing the color of the graph, sound, forcibly stopping the machine, etc.

[0047] FIG. 7A is a diagram showing an example in which, when the abnormality detection unit 215 detects a deviation in the spindle load meter value while any processing step to be analyzed is being executed, the area of ​​deviation is displayed on the display 70 in a discriminative manner in real time. 7A, during the execution of any processing step to be analyzed, a physical quantity indicating the current processing state is plotted at a sampling time every certain time interval against an average pattern calculated according to the processing step to be analyzed and its allowable range, which are displayed on the display 70. Here, the threshold value indicating the allowable range at each sampling time may be given, for example, as a percentage (e.g., %) of the average value at each sampling time or as a real value (value). As shown in FIG. 7A, when an area falls outside the tolerance range, the area outside the tolerance range is highlighted in real time, allowing the user to easily recognize the occurrence of a processing abnormality in the current processing (i.e., the processing step being analyzed). This allows the user to, for example, interrupt the machining in real time during machining, reduce the load by lowering the cutting speed, or perform other operations such as changing tools as necessary. As an example of notifying the user that a processing abnormality has occurred when the aforementioned allowable range is exceeded, the output unit 216 highlights the area that is outside the allowable range on the display 70, but this is not limited to this. For example, the output unit 216 may notify the user that a processing abnormality has occurred by issuing an alarm to the user, highlighting the graph by changing the color, making a sound, forcibly stopping the machine, or the like.

[0048] <Post-processing abnormality detection display processing> As described above, after the machining command is executed by the numerical control device 1, the abnormality detection unit 215 can detect whether the physical quantities indicating the machining state related to the machining process at all sampling times of any machining step to be analyzed included in the machining command remain within the allowable range at the sampling times in the average pattern calculated according to the machining step to be analyzed. When the abnormality detection unit 215 detects a deviation, it highlights the area that exceeds the tolerance range in the processing step being analyzed on the output unit 216, thereby notifying the user of all the abnormal areas that have occurred in any processing step being analyzed after the processing command has been executed.

[0049] FIG. 7B is a diagram showing an example in which an area in which a deviation is detected in the spindle load meter value by the abnormality detection unit 215 after execution of an arbitrary processing step to be analyzed is displayed in an identifiable manner on the display 70. 7B, after an arbitrary processing step to be analyzed is executed, a physical quantity indicating the processing state from the start to the end of the processing step to be analyzed is plotted at regular time intervals (e.g., sampling times) against an average pattern calculated according to the processing step to be analyzed and its allowable range displayed on the display 70. Here, the threshold value indicating the allowable range at each sampling time may be given, for example, as a percentage (e.g., %) of the average value at each sampling time or as a real value (value), as described above. The output unit 216 highlights and displays to the user all the areas where the physical quantities indicating the machining state from the start of any processing step to the end of the processing step to be analyzed when the processing command is executed exceed the allowable range. Specifically, for example, when the physical quantities are outside the allowable range, the output unit 216 may highlight the areas by changing the color of the graph, for example. This allows for cross-sectional investigation and analysis of areas where physical quantities indicating the processing state in any processing step being analyzed exceed the allowable range, which can be used to discover problems related to the processing and improve processing instructions.

[0050] The configuration of each functional unit of the numerical control device 1 according to the first embodiment exemplified as this embodiment has been described above. Next, the operation of the anomaly detection device 2 related to the anomaly detection process will be described. Fig. 8 is a flowchart showing the operation of detecting an anomaly in a processing step to be analyzed in real time while the processing step is being executed. Fig. 9 is a flowchart showing the operation of performing an anomaly detection investigation from the start to the end of a processing step to be analyzed, to be the target of anomaly detection, after the processing command execution is completed. In the following explanation of the operation, it is assumed that the processing execution information related to the processing step executed before the processing step to be analyzed has been recorded in the memory unit 22 by the processing execution information recording unit 212.

[0051] First, referring to the flowchart of Figure 8, we will explain the processing flow for detecting abnormalities in any analysis target processing step (hereinafter also referred to as "Cn_target") included in the processing command in real time while the processing step is being executed, which is the target of abnormality detection. In step S11, when processing is performed by the numerical control device 1, the abnormality detection device 2 (selection unit 213) selects a subset of processing execution information from a set of multiple processing execution information related to the processing step to be analyzed Cn_target recorded in the memory unit 22 based on preset filtering conditions in order to calculate the average pattern (hereinafter also referred to as "Cn_average") of the processing step to be analyzed Cn_target.

[0052] In step S12, the abnormality detection device 2 (average pattern calculation unit 214) calculates an appropriate average pattern Cn_average for the analysis target processing step Cn_target based on the selected subset of processing execution information. Specifically, the average pattern calculation unit 214 calculates statistical quantities (e.g., average values ​​and tolerance ranges) related to physical quantities for each sampling time T(i) for the processing step Cn_target to be analyzed based on the selected subset of processing execution information, and creates an average pattern Cn_average for the processing step Cn_target to be analyzed.

[0053] In step S13, the numerical control device 1 starts executing the machining command.

[0054] In step S14, when the execution of the processing step Cn_target to be analyzed is started, the abnormality detection device 2 (output unit 216) outputs in advance the average pattern Cn_average(i) of the processing step Cn_target to be analyzed and the threshold range (acceptable range) in the order of sampling time T(i), as shown in Figure 7A, for example.

[0055] In step S15, the abnormality detection device 2 (processing state collection unit 211) collects physical quantities indicating the processing state at the sampling time T(i) of the processing step Cn_target to be analyzed (hereinafter referred to as ``processing execution information Cn_target(i) to be analyzed'') and records them in the memory unit 22, and the abnormality detection device 2 (output unit 216) outputs the processing execution information Cn_target(i) to be analyzed for each sampling time T(i) of the processing step Cn_target to be analyzed, which is acquired by the processing state collection unit 211.

[0056] In step S16, the abnormality detection device 2 (abnormality detection unit 215) detects whether Cn_target(i) is within the allowable range at the sampling time T(i). Specifically, the abnormality detection device 2 (abnormality detection unit 215) determines whether Cn_target(i) is within the allowable range of the average pattern Cn_average(i). If it is within the allowable range (Yes), the process proceeds to step S18. If it is not within the allowable range (No), the process proceeds to step S17.

[0057] In step S17, the abnormality detection device 2 (output unit 216) outputs the region relating to the sampling time T(i) in an emphasized manner. Specifically, for example, the region may be emphasized on the display 70 as shown in FIG. 7A.

[0058] In step S18, the control unit 11 determines whether the execution of the analysis target processing step Cn_target has been completed. If the execution of the analysis target processing step Cn_target has not been completed (No), the process proceeds to step S15. If the execution of the analysis target processing step Cn_target(i) has been completed (Yes), the process proceeds to step S19.

[0059] In step S19, the abnormality detection device 2 determines whether or not the execution of the machining command has been completed. If the execution of the machining command has not been completed (No), the process proceeds to step S14. If the execution of the machining command has been completed (Yes), the process ends. In the above description, the order of steps is merely an example and is not limited to this. For example, calculation of an appropriate average pattern Cn_average(i) for the processing step Cn_target to be analyzed may be performed when execution of the processing step Cn_target to be analyzed is started in step S14. After step S17, the abnormality detection device 2 may perform processing such as interrupting the processing step or reducing the cutting speed in response to an instruction from the user.

[0060] As a result, as shown in Fig. 7A, when a tolerance is exceeded, the area that is out of the tolerance can be highlighted in real time. This allows the user to easily recognize the occurrence of a machining abnormality in the current machining step. In response to the occurrence of a machining abnormality, the user can, for example, interrupt the machining step, change the tool as necessary, or reduce the load by reducing the cutting speed.

[0061] Next, with reference to the flowchart of FIG. 9, the processing of the abnormality detection function unit when performing performance analysis after execution of a machining command will be described. Before performing the following processing, it is assumed that the processing execution information for the processing step Cn_target to be analyzed and the processing execution information for the processing step Cn executed before the processing step Cn_target to be analyzed are recorded in the memory unit 22.

[0062] Referring to Figure 9, in step S21, when performing a processing abnormality investigation in a processing step Cn included in a processing command, the abnormality detection device 2 (selection unit 213) selects a subset of processing execution information from a set of multiple processing execution information related to the processing step Cn that was executed before the processing step Cn_target to be analyzed, which is recorded in the memory unit 22, based on preset filtering conditions, in order to calculate the average pattern Cn_average of the processing step Cn_target to be analyzed.

[0063] In step S22, the abnormality detection device 2 (average pattern calculation unit 214) calculates an appropriate average pattern Cn_average(i) for the analysis target processing step Cn_target based on the selected subset of processing execution information.

[0064] In step S23, the abnormality detection device 2 (abnormality detection unit 215) inputs (acquires) from the storage unit 22 the analysis target processing execution information Cn_target(i) of the analysis target processing step Cn_target.

[0065] In step S24, the abnormality detection device 2 (abnormality detection unit 215) obtains a subset {i: outside allowable range} of i where Cn_target(i) is outside the allowable range of the average pattern Cn_average(i).

[0066] In step S25, the abnormality detection device 2 (output unit 216) outputs the range area (range area of ​​the average value and threshold values ​​(upper and lower limits)) of the average pattern Cn_target(i) of the processing step Cn_target to be analyzed, as shown in Figure 7B, and also outputs Cn_target(i).

[0067] In step S26, the abnormality detection device 2 (output unit 216) further highlights and outputs the region {i: outside the allowable range} as shown in Fig. 7B. Note that if {i: outside the allowable range} is an empty set, it may output that there is no abnormality. The abnormality detection device 2 (output unit 216) may output the data as a file. When outputting the data as a file, the data may be output to the display device 70 or the like by a reference program for referencing the file.

[0068] In step S27, the abnormality detection device 2 determines whether the abnormality detection process for all of the analysis target machining steps Cn_target included in the machining command has been completed. If the process has not been completed (No), the process proceeds to step S21. If the process has been completed (Yes), the process ends. As a result, as shown in Fig. 7B, after the machining command is executed, it is possible to highlight and display to the user the areas where the physical quantity (analysis target machining execution information Cn_target(i)) indicating the machining state from the start to the end of the analysis target machining step Cn_target included in the machining command exceeds the allowable range. This can be used to find problems related to the machining process and improve the machining command. The operation of the abnormality detection device 2 has been described above.

[0069] Each component included in the anomaly detection device 2 can be realized by hardware (including electronic circuits, etc.), software, or a combination of these. When realized by software, a program constituting this software is installed on a computer (numerical control device 1). These programs may be recorded on removable media and distributed to users, or may be distributed by being downloaded to the user's computer via a network. When configured by hardware, some or all of the functions of each component included in the control device can be configured by integrated circuits (ICs), such as ASICs (Application Specific Integrated Circuits), gate arrays, FPGAs (Field Programmable Gate Arrays), and CPLDs (Complex Programmable Logic Devices).

[0070] Although the embodiments of the present invention have been described above, the present invention is not limited to the above-described embodiments. Furthermore, the effects described in the present embodiments are merely a list of the most preferable effects resulting from the present invention, and the effects of the present invention are not limited to those described in the present embodiments.

[0071] [Variation 1] The above-described embodiment has exemplified a configuration in which the anomaly detection device 2 includes all functional units related to the anomaly detection function. In this case, as described above, the anomaly detection device 2 may be directly connected to the control device 1 via an interface unit (not shown). Alternatively, the anomaly detection device 2 may be a server (anomaly detection server) that is communicatively connected to the control device 1 via a network. For example, the anomaly detection device 2 may be an edge server that is communicatively connected to each machine (edge). Alternatively, the anomaly detection device 2 may be realized as a virtual server on the cloud. Alternatively, the functional units of the anomaly detection device 2 may be provided as functions on the cloud. Furthermore, the abnormality detection device 2 may be included in the control device 1. Alternatively, the configuration may be such that the function blocks of the abnormality detection device 2 are included in the control device 1. Also, the numerical control device 1 may be configured to include some of the functional units relating to the abnormality detection function (machining state collection unit, machining execution information recording unit, selection unit, average pattern calculation unit, abnormality detection unit, and output unit) of the abnormality detection device 2. In this case, the numerical control device 1 and the abnormality detection device 2 including the remaining functional units may be directly connected via an interface unit (not shown) as described above. Alternatively, they may be connected so as to be able to communicate with each other via a network.

[0072] [Variation 2] In the above-described embodiment, the average pattern calculation unit 214 has exemplified an average pattern created to be proportional to the average value, with an upper threshold value of plus 25% of the average value and a lower threshold value of minus 25% as the allowable range at each sampling time, but this is not limited to this. For example, a threshold value of the allowable range may be set according to the variance of the physical quantity at each sampling time.

[0073] <Effects of this embodiment> According to this embodiment, for example, the following advantageous effects can be obtained.

[0074] (1) In order to detect an abnormality in a machining command consisting of one or more machining steps executed by the control device 1, the abnormality detection device 2 includes a machining state collection unit 211 that collects physical quantities indicating the machining state of the machining steps, which are acquired at predetermined time intervals when the machining command is executed, together with time information at which the physical quantities were acquired, as machining execution information for the machining steps; a machining execution information recording unit 212 that records the machining execution information collected by the machining state collection unit 211 in a storage unit 22; and a processing execution information recording unit 212 that executes the same machining step as the machining step multiple times and, for any one machining step, selects the machining execution information for the arbitrary machining step from a set of machining execution information for the same machining step as the machining step that is recorded multiple times in the storage unit 22. a selection unit 213 that selects a subset of processing execution information of the same processing step as the processing step in question that is suitable for calculating an average pattern, which is a time change of an average physical quantity of the processing execution information of the processing step in question; an average pattern calculation unit 214 that calculates an average pattern of the processing execution information of the arbitrary one processing step based on the subset of processing execution information selected by the selection unit 213; and an abnormality detection unit 215 that compares target processing execution information, which is the processing execution information of the processing step acquired by executing the arbitrary one processing step, with the average pattern calculated by the average pattern calculation unit 214 to detect an abnormality during the execution of the arbitrary one processing step. This makes it possible to easily determine whether or not a machining abnormality has occurred in each machining step, for example, when the same machining steps are repeatedly performed on a plurality of workpieces, using a method suited to each machining state.

[0075] (2) In the abnormality detection device 2 described in (1), the abnormality detection unit 215 may compare the target processing execution information with an average pattern and detect an abnormality in any one of the processing steps based on whether or not there is a deviation greater than a predetermined threshold value. As a result, for example, when the same machining steps are repeatedly performed on a plurality of workpieces, by setting a threshold value in advance, it is possible to easily determine whether or not a machining abnormality has occurred in each machining step.

[0076] (3) In the abnormality detection device 2 described in (1) or (2), when the abnormality detection unit 215 detects an abnormality in any one of the processing steps, the device may be provided with an output unit 216 that identifies the physical quantity in which the abnormality was detected and the time when the physical quantity was acquired as an abnormality occurrence area. This makes it possible to easily recognize whether or not a machining abnormality has occurred in each machining step, based on the physical quantity and time at that time, for example, when the same machining steps are repeatedly performed on multiple workpieces.

[0077] (4) In the abnormality detection device 2 described in any one of (1) to (3), the processing execution information collected by the processing state collection unit 211 during the execution of any one processing step may be set as the target processing execution information. This makes it possible to determine in real time whether or not a machining abnormality has occurred during machining, and to notify the user or suspend machining.

[0078] (5) In the abnormality detection device 2 described in any one of (1) to (3), after the execution of any one processing step, the processing execution information collected by the processing state collection unit 211 may be set as the target processing execution information. This allows abnormalities in machining to be investigated after machining, for example by batch processing, and can be used to find problems and improve machining instructions.

[0079] (6) In the abnormality detection device 2 described in any one of (1) to (5), the machining state collection unit 211 may further collect the cumulative tool usage time of the tool used in the machining step, the machining execution information recording unit 212 may further record the cumulative tool usage time of the tool used in the machining step in the memory unit 22 in association with the machining execution information of the machining step, and the selection unit 213 may further select the machining execution information of the machining step whose cumulative tool usage time falls within a predetermined specified range from among each of the machining steps recorded multiple times in the memory unit 22. As a result, when creating an average pattern, for example, a machining step in which the tool usage state is similar to that of any one machining step can be selected and the average pattern can be calculated.

[0080] (7) The anomaly detection server may include the anomaly detection device 2 described in any one of (1) to (6) and may be connected to the control device 1 for communication. This allows the abnormality detection server to be connected to the control device 1 via a high-speed, low-latency network such as 5G, making it possible to easily detect whether or not a machining abnormality occurs when a machining command is executed, for example, using a service provided on the cloud.

[0081] (8) The abnormality detection method executed by the computer detects an abnormality in a machining command executed by the control device 1 and consisting of one or more machining steps, and includes a machining state collection step of collecting physical quantities indicating the machining state in the machining steps, which are acquired at predetermined time intervals when the machining command is executed, together with time information at which the physical quantities were acquired, as machining execution information for the machining step; a machining execution information recording step of recording the machining execution information collected in the machining state collection step in a memory unit 22; and for any one machining step, executing the same machining step multiple times and calculating from the set of machining execution information for the same machining step as the machining step recorded multiple times in the memory unit 22: The method includes a selection step of selecting a subset of processing execution information of the same processing step as the given processing step that is suitable for calculating an average pattern, which is the time change of the average physical quantity of the processing execution information of the given processing step; an average pattern calculation step of calculating an average pattern of the processing execution information of the given processing step based on the subset of processing execution information selected in the selection step; and an abnormality detection step of comparing target processing execution information, which is the processing execution information of the given processing step obtained by executing the given processing step, with the average pattern calculated in the average pattern calculation step to detect an abnormality during the execution of the given processing step. This can achieve the same effect as (1). [Explanation of symbols]

[0082] 1. Numerical control device 2. Anomaly detection device 21 Control section 22 Memory section 211 Processing status collection unit 212 Machining execution information recording unit 213 Selection Section 214 Average pattern calculation unit 215 Abnormality detection unit 216 Output section

Claims

1. To detect an abnormality in a machining command consisting of one or more machining steps executed in a control device, a machining state collecting unit that collects physical quantities indicating machining states in the machining steps, which are acquired at sampling times corresponding to each predetermined sampling period when the machining command is executed, together with sampling period information in which the physical quantities are acquired, as machining execution information for the machining steps; a processing execution information recording unit that records the processing execution information collected by the processing state collecting unit in a storage unit; a selection unit that executes the same machining step as any one of the machining steps a plurality of times, and from a set of machining execution information of the same machining step as the machining step recorded a plurality of times in the storage unit, collects a subset of machining execution information of the same machining step as the machining step appropriate for calculating an average value of the physical quantity for each identical sampling time corresponding to each sampling period in which the machining execution information of the arbitrary one of the machining steps is collected, the subset including at least any of machining execution information of a tool used in the machining step, the range of cumulative tool use time, the cumulative cutting energy amount, the cumulative actual cutting time, the wear state of the tool, or the number of times the tool is used, by the machining state collection unit, and stores the subset in the storage unit by the machining execution information recording unit, and selects the subset of machining execution information based on a filtering condition that is preset by a condition including any of the machining execution information, and when selecting the subset of machining execution information, excludes a machining step in which an abnormality has been detected from the machining steps included in the subset; an average pattern calculation unit that calculates an average value of the physical quantity for each of the same sampling times at which the processing execution information of the arbitrary one of the processing steps is collected based on the subset of the processing execution information selected by the selection unit, and calculates an average pattern for each of the sampling times by calculating an average pattern having tolerance ranges that are set in advance on the positive and negative sides of the average value calculated for each of the same sampling times; an abnormality detection unit that compares target processing execution information, which is processing execution information of the processing step acquired at each sampling time corresponding to each predetermined sampling period by executing the arbitrary one of the processing steps, with the average pattern calculated by the average pattern calculation unit at each of the same sampling times to detect an abnormality during the execution of the arbitrary one of the processing steps; An abnormality detection device comprising:

2. 2. The abnormality detection device according to claim 1, wherein the abnormality detection unit compares the target processing execution information with the average pattern at each same sampling time and detects an abnormality in any one of the processing steps based on whether or not there is a deviation greater than a predetermined threshold value.

3. 3. The abnormality detection device according to claim 1, further comprising an output unit that, when the abnormality detection unit detects an abnormality in any one of the processing steps, identifies a physical quantity in which the abnormality is detected and a sampling time corresponding to a sampling period at which the physical quantity is acquired as an abnormality occurrence region.

4. The abnormality detection device according to claim 1 , wherein processing execution information collected by the processing state collection unit during execution of the any one of the processing steps is set as the target processing execution information.

5. The abnormality detection device according to claim 1 , wherein after execution of the any one of the machining steps, machining execution information collected by the machining state collection unit is set as the target machining execution information.

6. 6. An anomaly detection server comprising the anomaly detection device according to claim 1, and connected to the control device for communication.

7. To detect an abnormality in a machining command consisting of one or more machining steps executed in a control device, a machining state collecting step of collecting physical quantities indicating machining states in the machining steps, which are acquired at sampling times corresponding to each predetermined sampling period during execution of the machining command, together with sampling period information during which the physical quantities were acquired, as machining execution information for the machining steps; a processing execution information recording step of recording the processing execution information collected in the processing state collecting step in a storage unit; a selection step of executing the same machining step as any one of the machining steps a plurality of times, and collecting a subset of machining execution information of the same machining step as the machining step that is appropriate for calculating an average value of the physical quantity for each identical sampling time corresponding to each sampling period in which the machining execution information of the arbitrary one of the machining steps is collected from a set of machining execution information of the same machining step as the machining step recorded a plurality of times in the storage unit, the subset being selected based on a filtering condition that is preset by a condition including any of the machining execution information, and excluding a machining step in which an abnormality is detected from the machining steps included in the subset when selecting the subset of machining execution information; an average pattern calculation step of calculating an average value of the physical quantity for each of the same sampling times at which the processing execution information of the arbitrary one of the processing steps was collected based on the subset of the processing execution information selected in the selection step, and calculating an average pattern within allowable ranges set in advance on the positive and negative sides of the average value calculated for each of the same sampling times, thereby calculating an average pattern for each of the sampling times; an anomaly detection step of comparing target processing execution information, which is processing execution information of the processing step obtained at each sampling time corresponding to each predetermined sampling period by executing any one of the processing steps, with the average pattern calculated at each sampling time in the average pattern calculation step, to detect an abnormality during the execution of any one of the processing steps.

Citation Information

Patent Citations

  • Detecting device of breakage in cutting tool

    JP1986056856A

  • JP1991081516U

  • Fault detecting device for machine tool

    JP1993116056A

  • Abnormal tool detecting equipment

    JP1993285793A

  • Method and device for detecting abnormality of equipment

    JP1994201398A