JP2023084018A - Tool determination device and tool determination method - Google Patents

Tool determination device and tool determination method Download PDF

Info

Publication number
JP2023084018A
JP2023084018A JP2021198084A JP2021198084A JP2023084018A JP 2023084018 A JP2023084018 A JP 2023084018A JP 2021198084 A JP2021198084 A JP 2021198084A JP 2021198084 A JP2021198084 A JP 2021198084A JP 2023084018 A JP2023084018 A JP 2023084018A
Authority
JP
Japan
Prior art keywords
image
wire
tool
determination
images
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2021198084A
Other languages
Japanese (ja)
Inventor
幸泰 長瀬
Yukiyasu Nagase
武志 板津
Takeshi Itatsu
諒介 井村
Ryosuke Imura
智幸 川下
Tomoyuki Kawashita
彰浩 坂口
Akihiro Sakaguchi
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nagase Integrex Co Ltd
Original Assignee
Nagase Integrex Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nagase Integrex Co Ltd filed Critical Nagase Integrex Co Ltd
Priority to JP2021198084A priority Critical patent/JP2023084018A/en
Publication of JP2023084018A publication Critical patent/JP2023084018A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Machine Tool Sensing Apparatuses (AREA)
  • Constituent Portions Of Griding Lathes, Driving, Sensing And Control (AREA)
  • Polishing Bodies And Polishing Tools (AREA)
  • Finish Polishing, Edge Sharpening, And Grinding By Specific Grinding Devices (AREA)
  • Image Analysis (AREA)

Abstract

To provide a tool determination device and a tool determination method which can determine a processing surface of a tool in a short time and with high accuracy.SOLUTION: A tool determination device 20 determines a state of a processing surface 40 of a wire 11 that is a tool of a wire saw 10. A learning tool 51 learnt using teacher data 53 and a determination image 50 that are used in the determination are memorized in a memorizing part 34 of an electronic control device 30. Images constituting the teacher data 53 and the determination image 50 are constituted of a plurality of images extending in a moving direction of the wire 11 cut out from the photographed image of the processing surface 40 of the wire 11, which are arranged and interfaced in a direction crossing the moving direction. The electronic control device 30 outputs an index value of a state of the processing surface 40 corresponding to the determination image 50, from the learnt learning tool 51 memorized in the memorizing part 34, with the determination data 50 set as input data.SELECTED DRAWING: Figure 1

Description

本発明は、工具の加工面の撮像画像をもとに同加工面の状態を判定する工具判定装置および工具判定方法に関するものである。 The present invention relates to a tool determination device and a tool determination method for determining the state of a machined surface of a tool based on a captured image of the machined surface of the tool.

加工装置に用いられる工具は、研削加工装置における回転砥石やワイヤソーにおけるダイヤモンドワイヤなど、多種多様である。加工装置による加工に際しては、そうした工具の加工面の状態により、ワークの加工面の仕上げ品質が左右される。 A wide variety of tools are used in processing apparatuses, such as rotating grindstones in grinding apparatuses and diamond wires in wire saws. During machining by a machining apparatus, the finish quality of the machined surface of the workpiece depends on the condition of the machined surface of the tool.

従来、工具の加工面の状態を判定する工具判定装置が提案されている(例えば、特許文献1)。特許文献1に記載の装置では、カメラを装着した金属顕微鏡を用いて工具の加工面が撮像されるとともに、その撮像データをもとに加工面の状態が判定される。 Conventionally, there has been proposed a tool determination device that determines the state of a machined surface of a tool (for example, Patent Document 1). In the apparatus described in Patent Document 1, the machined surface of the tool is imaged using a metallurgical microscope equipped with a camera, and the state of the machined surface is determined based on the imaged data.

近年、機械学習モデルを用いて、工具の加工面の状態を判定する工具判定装置等も提案されている。この装置では、先ず、カメラによって工具の加工面が撮像されるとともに、その撮像画像を教師データとして用いて学習器が学習される。そして、工具の加工面を判定する際には、判定対象の工具の加工面が撮像されるとともに、その撮像画像を入力データとして、学習済みの学習器から出力データが取得される。上記装置では、この出力データをもとに、判定対象の工具の加工面の状態が判定される。 In recent years, a tool determination device or the like has been proposed that uses a machine learning model to determine the state of a machined surface of a tool. In this apparatus, first, the machined surface of the tool is imaged by a camera, and the imaged image is used as teacher data to learn the learning device. When determining the machined surface of the tool, the machined surface of the tool to be judged is imaged, and output data is acquired from the learned learning device using the imaged image as input data. Based on this output data, the apparatus determines the state of the machined surface of the tool to be determined.

特開2004-45078号公報JP-A-2004-45078

加工装置に用いられる工具のうち、回転砥石やダイヤモンドワイヤは、加工面がその移動方向(具体的には、回転砥石の回転方向、あるいはダイヤモンドワイヤの軸線方向)において長尺状をなしている。 Among the tools used in the processing apparatus, the grindstone and the diamond wire have an elongated working surface in the moving direction (specifically, the rotation direction of the grindstone or the axial direction of the diamond wire).

上記工具判定装置において、こうした長尺状の加工面の全体を判定するためには、加工面の移動方向において区切られた撮像範囲毎にカメラによって同加工面を撮像するなどして、多数の撮像画像を取得する必要がある。この場合には、多数の撮像画像をもとに工具の加工面の判定を行うこととなるため、その判定に時間がかかってしまう。 In the above-mentioned tool determination device, in order to determine the whole of such a long machined surface, the machined surface is imaged by a camera for each imaging range divided in the movement direction of the machined surface, and a large number of images are taken. I need to get an image. In this case, since the machined surface of the tool is determined based on a large number of captured images, the determination takes time.

カメラの撮像範囲を広くすることにより、撮像画像の数を減らすことはできる。ただし、この場合には、カメラの撮像範囲が広くなる分だけ撮像画像が粗いデータになることで、同撮像画像に現れる「加工面における特徴的な状態の部分」を見つけにくくなるため、判定精度の低下が懸念される。 By widening the imaging range of the camera, the number of captured images can be reduced. However, in this case, as the imaging range of the camera widens, the data of the captured image becomes coarser, and it becomes difficult to find "parts with a characteristic state on the processed surface" that appear in the same captured image. There are concerns about a decline in

上記課題を解決するための工具判定装置は、加工装置による加工に利用される工具であって、且つ、加工面が同加工面の移動方向に延びる長尺状をなす前記工具に適用されて、前記加工面の状態を判定する工具判定装置において、前記加工面を撮像した画像から前記移動方向に延びる画像が切り取られるとともに当該切り取られた画像が前記移動方向に交差する方向に複数並べられて繋ぎ合わされた状態の画像からなる教師データによって学習された学習器を記憶する記憶部と、判定対象の前記加工面を撮像した画像から前記移動方向に延びる画像が切り取られるとともに当該切り取られた画像が前記移動方向と交差する方向に複数並べられて繋ぎ合わされた状態の画像を、判定画像として記憶する入力部と、前記判定画像を入力データとして、前記記憶部に記憶された学習済みの学習器から、前記判定画像に対応する前記加工面の状態の指標値を出力する状態出力部と、を備える。 A tool determination device for solving the above problems is applied to a tool that is used for processing by a processing device and has an elongated shape with a processing surface extending in a moving direction of the processing surface, In the tool determination device for determining the state of the machined surface, an image extending in the movement direction is cut from an image of the machined surface, and a plurality of the cut images are arranged in a direction intersecting the movement direction and connected. a storage unit for storing a learning device learned by teacher data composed of images in a combined state; An input unit that stores a plurality of images arranged and joined in a direction intersecting the moving direction as a judgment image, and from a learned learner stored in the storage unit using the judgment image as input data, a state output unit that outputs an index value of the state of the processing surface corresponding to the judgment image.

前記課題を解決するための工具判定方法は、加工装置による加工に利用される工具であって、且つ、加工面が同加工面の移動方向に延びる長尺状をなす工具に適用されて、前記加工面の状態を判定する工具判定方法であって、前記加工面を撮像した画像を取得し、該取得した画像から前記移動方向に延びる画像を切り取るとともに当該切り取った画像を前記移動方向に交差する方向に複数並べて繋ぎ合わせた画像を生成し、同生成した画像からなる教師データによって学習器を学習させた後に、同学習器を工具判定装置の記憶部に記憶させる記憶工程と、判定対象の前記加工面を撮像した画像を取得し、該取得した画像から前記移動方向に延びる画像を切り取るとともに当該切り取った画像を前記移動方向と交差する方向に複数並べて繋ぎ合わせた画像を生成し、同作成した画像を判定画像として前記工具判定装置の入力部に記憶させる入力工程と、前記判定画像を入力データとして、前記記憶部に記憶された学習済みの学習器から、前記判定画像に対応する前記加工面の状態の指標値を出力する状態出力工程と、を備える。 A tool determination method for solving the above-described problem is applied to a tool that is used for processing by a processing apparatus and has an elongated shape in which a processing surface extends in a moving direction of the processing surface. A tool determination method for determining the state of a machined surface, wherein an image of the machined surface is acquired, an image extending in the movement direction is cut from the acquired image, and the cut image is crossed with the movement direction. a storage step of generating a plurality of images arranged in a direction and joined together, causing a learning device to learn with teacher data composed of the generated images, and then storing the learning device in a storage unit of the tool determination device; An image obtained by imaging the surface to be processed is acquired, an image extending in the movement direction is cut from the acquired image, and an image is generated by arranging and connecting a plurality of the cut images in a direction intersecting the movement direction, and creating the same. an input step of storing an image as a judgment image in an input unit of the tool judgment device; and using the judgment image as input data, from a learned learning device stored in the storage unit, the machining surface corresponding to the judgment image. and a state output step of outputting an index value of the state of

上記工具判定装置、および工具判定方法によれば、カメラによって工具の加工面を撮像した画像から同加工面に現れる「特徴的な状態の部分」を含む部分を集めて繋ぎ合わせた画像を、教師データや判定画像として利用することができる。これにより、カメラの撮像範囲を狭くして細かい撮像画像を取得することが可能になるとともに、上記「特徴的な状態の部分」を多く含む画像を上記教師データや判定画像にすることが可能になる。したがって、教師データによって学習器を学習させる処理や、学習済みの学習器を利用して加工面の状態を判定する処理を、短い時間、且つ高い精度で実行することができる。 According to the above-described tool determination device and tool determination method, an image obtained by collecting and connecting parts including "parts in a characteristic state" appearing on the machined surface from images captured by a camera of the machined surface of the tool is used as a teacher. It can be used as data or judgment image. As a result, it is possible to narrow the imaging range of the camera and acquire detailed captured images, and it is also possible to use images that include many of the above-mentioned "parts with characteristic states" as the above-mentioned teacher data and judgment images. Become. Therefore, it is possible to perform the processing of learning the learning device using the teacher data and the processing of determining the state of the machined surface using the learned learning device in a short time and with high accuracy.

本発明によれば、工具の加工面を短い時間、且つ高い精度で判定することができる。 According to the present invention, the machined surface of a tool can be determined in a short time with high accuracy.

一実施形態の工具判定装置の概略構成図である。It is a schematic block diagram of the tool determination apparatus of one Embodiment. 同工具判定装置が適用されるワイヤソーの加工用ローラおよびワイヤを示す平面図である。Fig. 2 is a plan view showing a processing roller and a wire of a wire saw to which the same tool determination device is applied; 教師データや判定画像の生成手順を説明するための説明図である。FIG. 10 is an explanatory diagram for explaining a procedure for generating teacher data and judgment images; 学習器の学習態様を説明するための説明図である。FIG. 4 is an explanatory diagram for explaining a learning mode of a learning device; 学習器から出力される生成誤差を説明するための説明図である。FIG. 4 is an explanatory diagram for explaining generation errors output from a learning device; ワイヤの平面図である。FIG. 4 is a plan view of the wire; (a)~(e)はワイヤの状態の一例を示す側面図である。(a) to (e) are side views showing examples of wire states. 作動制御処理の実行手順を示すフローチャートである。4 is a flowchart showing an execution procedure of operation control processing; (a)~(c)はワイヤの加工面における砥粒の分散状態の一例を示す側面図である。(a) to (c) are side views showing an example of how abrasive grains are dispersed on the working surface of the wire. 他の実施形態の工具判定装置が適用されるワイヤ放電加工装置の概略構成を示す略図である。It is a schematic diagram showing a schematic configuration of a wire electric discharge machine to which a tool determination device of another embodiment is applied. その他の実施形態の工具判定装置が適用される研削加工装置の概略構成を示す略図である。It is a schematic diagram showing a schematic configuration of a grinding apparatus to which a tool determination device of another embodiment is applied. 同実施形態での教師データや判定画像の生成手順を説明するための説明図である。FIG. 10 is an explanatory diagram for explaining a procedure for generating teacher data and a determination image in the same embodiment;

以下、工具判定装置および工具判定方法の一実施形態について、図1~図8を参照しつつ説明する。
図1および図2に示すように、本実施形態の工具判定装置20は、ワイヤソー10による加工に利用されるダイヤモンドワイヤ(以下、ワイヤ11)に適用される。
An embodiment of a tool determination device and a tool determination method will be described below with reference to FIGS. 1 to 8. FIG.
As shown in FIGS. 1 and 2, the tool determination device 20 of the present embodiment is applied to a diamond wire (hereinafter referred to as wire 11) used for machining by the wire saw 10. As shown in FIG.

<ワイヤソー10>
以下、加工装置としてのワイヤソー10について説明する。
ワイヤソー10は、上記ワイヤ11が巻き付けられる一対のリール12,13を有している。これらリール12,13は平行に延びる軸線を中心に回転可能に支持されている。またワイヤソー10は、一対の加工用ローラ14,15を有している。加工用ローラ14,15は、平行に延びる軸線を中心に回転可能に支持されている。加工用ローラ14,15の外周面には、多数の環状溝141,151が一定ピッチで形成されている。ワイヤソー10では、一本のワイヤ11が加工用ローラ14,15の環状溝141,151間に架設状態で周回されている。
<Wire saw 10>
The wire saw 10 as a processing device will be described below.
A wire saw 10 has a pair of reels 12 and 13 around which the wire 11 is wound. These reels 12 and 13 are rotatably supported about axes extending in parallel. The wire saw 10 also has a pair of processing rollers 14 and 15 . The processing rollers 14 and 15 are rotatably supported about axes extending in parallel. A large number of annular grooves 141 and 151 are formed on the outer peripheral surfaces of the processing rollers 14 and 15 at a constant pitch. In the wire saw 10, a single wire 11 is wound in a suspended state between annular grooves 141 and 151 of processing rollers 14 and 15. As shown in FIG.

リール12には回転駆動部16が接続されている。回転駆動部16は、リール12を回転駆動するサーボモータ16Mと、同サーボモータ16Mの回転位相や回転速度を検出するためのエンコーダ16Eと、サーボモータ16Mの作動を制御するモータ制御装置16Cとを有している。リール13には回転駆動部17が接続されている。回転駆動部17は、リール13を回転駆動するサーボモータ17Mと、同サーボモータ17Mの回転位相や回転速度を検出するためのエンコーダ17Eと、サーボモータ17Mの作動を制御するモータ制御装置17Cとを有している。 A rotation drive unit 16 is connected to the reel 12 . The rotation drive unit 16 includes a servomotor 16M that rotates the reel 12, an encoder 16E that detects the rotation phase and rotation speed of the servomotor 16M, and a motor control device 16C that controls the operation of the servomotor 16M. have. A rotation drive unit 17 is connected to the reel 13 . The rotary drive unit 17 includes a servomotor 17M that rotates the reel 13, an encoder 17E that detects the rotation phase and rotation speed of the servomotor 17M, and a motor control device 17C that controls the operation of the servomotor 17M. have.

ワイヤソー10によるワークW1の加工に際しては、回転駆動部16,17の作動制御を通じて、リール12,13が回転駆動される。これにより、リール12,13に巻き付けられているワイヤ11が、加工用ローラ14,15上に導かれるとともに、両加工用ローラ14,15間で周回走行するようになる。 When the work W1 is machined by the wire saw 10, the reels 12 and 13 are rotationally driven through operation control of the rotational drive units 16 and 17. As shown in FIG. As a result, the wire 11 wound around the reels 12 and 13 is guided onto the processing rollers 14 and 15 and travels around between the processing rollers 14 and 15 .

ワイヤソー10は、ワークW1を着脱可能な状態で支持する支持部18を有している。支持部18は、加工用ローラ14,15間におけるワイヤ11の上方に配置されている。支持部18は、ワイヤ11に近づく方向(図1の下方)や同ワイヤ11から離間する方向(図1の上方)に移動可能な構造になっている。 The wire saw 10 has a support portion 18 that detachably supports the work W1. The support portion 18 is arranged above the wire 11 between the working rollers 14 and 15 . The support portion 18 has a structure capable of moving in a direction toward the wire 11 (downward in FIG. 1) and a direction away from the wire 11 (upward in FIG. 1).

ワイヤソー10は電子制御装置30を有している。電子制御装置30には回転駆動部16,17が接続されている。電子制御装置30はCPU31と、ROM32と、RAM33と、各種のプログラムやデータを記憶する記憶部34とを有している。記憶部34は、ハードディスクドライブやソリッドステートドライブ等の随時書き込み読み出しが可能な不揮発性メモリによって構成されている。電子制御装置30は、各種のプログラムやデータに基づいて各種の演算処理を実行するように構成されている。電子制御装置30は、その演算結果をもとに、回転駆動部16,17の作動制御を実行する。 The wire saw 10 has an electronic controller 30 . Rotation drive units 16 and 17 are connected to the electronic control unit 30 . The electronic control unit 30 has a CPU 31, a ROM 32, a RAM 33, and a storage section 34 for storing various programs and data. The storage unit 34 is composed of a non-volatile memory such as a hard disk drive or a solid state drive that can be written and read at any time. The electronic control unit 30 is configured to execute various arithmetic processes based on various programs and data. The electronic control unit 30 controls the operation of the rotary drive units 16 and 17 based on the calculation results.

本実施形態では、回転駆動部16,17の作動制御を通じて、ワイヤソー10が以下に記載する[往動]と[復動]とを交互に繰り返すように動作(いわゆるトラバース動作)するようになっている。 In the present embodiment, through the operation control of the rotary drive units 16 and 17, the wire saw 10 alternately repeats [forward movement] and [backward movement] described below (so-called traverse operation). there is

[往動]所定長さLGのワイヤ11がリール12から繰り出されるとともにリール13に巻き取られる。
[復動]所定長さLB(ただし、LG>LB)のワイヤ11がリール12に巻き取られるとともにリール13から繰り出される。
[Forward Movement] A wire 11 of a predetermined length LG is let out from the reel 12 and wound on the reel 13 .
[Return] A wire 11 of a predetermined length LB (where LG>LB) is wound on a reel 12 and unwound from a reel 13 .

上記回転駆動部16,17の作動制御では、上記[往動]と[復動]とが切り替えられる期間を除き、ワイヤ11の移動速度は略一定になるように調整される。本実施形態では、こうしたワイヤソー10の作動が実現される実行プログラムが定められるとともに電子制御装置30の記憶部34に予め記憶されている。 In the operation control of the rotary drive units 16 and 17, the moving speed of the wire 11 is adjusted to be substantially constant except for the period in which the [forward motion] and the [backward motion] are switched. In this embodiment, an execution program that realizes the operation of the wire saw 10 is determined and stored in advance in the storage unit 34 of the electronic control unit 30 .

ワイヤソー10によるワークW1の加工は次のように実行される。先ず、回転駆動部16,17の作動制御を通じて、加工用ローラ14,15間においてワイヤ11が周回走行する状態にされる。その後、支持部18の下部にワークW1を支持させた状態で、図1中に白抜きの矢印で示すように、同支持部18が下降される。これにより、ワークW1がワイヤ11に押し付けられるようになるため、同ワイヤ11によってワークW1が切断されるようになる。このときワイヤ11は、リール12から所定長さLGだけ繰り出された後に同リール12に所定長さLBだけ巻き取られるといったようにトラバース動作する。このトラバース動作を通じて、ワイヤ11によるワークW1の切断加工が進行される。 Machining of the work W1 by the wire saw 10 is performed as follows. First, the wire 11 is made to travel around between the processing rollers 14 and 15 through operation control of the rotary drive units 16 and 17 . After that, while the work W1 is supported on the lower part of the support part 18, the support part 18 is lowered as indicated by the white arrow in FIG. As a result, the work W1 is pressed against the wire 11, so that the wire 11 cuts the work W1. At this time, the wire 11 performs a traverse operation such that it is reeled out from the reel 12 by a predetermined length LG and then wound on the reel 12 by a predetermined length LB. Through this traverse operation, the cutting of the work W1 by the wire 11 proceeds.

<工具判定装置20>
次に、本実施形態の工具判定装置20について説明する。
工具判定装置20は、ワイヤ11の外面(以下、加工面40)の状態を判定するための装置である。工具判定装置20は、ワイヤ11の加工面40をカメラ21によって撮像するとともに、その撮像画像(詳しくは、後述する判定画像50)を入力データとして学習済みの学習器51を利用することで、加工面40の状態を判定する。
<Tool determination device 20>
Next, the tool determination device 20 of this embodiment will be described.
The tool determination device 20 is a device for determining the state of the outer surface of the wire 11 (hereinafter referred to as the machined surface 40). The tool determination device 20 captures an image of the machined surface 40 of the wire 11 with the camera 21, and uses the captured image (more specifically, a judgment image 50 to be described later) as input data by using a learned learning device 51 to perform machining. Determine the condition of surface 40 .

<カメラ21>
工具判定装置20は、ワイヤ11の加工面40を撮像するためのカメラ21を有している。カメラ21は、リール12と加工用ローラ14との間に、その撮像部分がワイヤ11の加工面40に対向する状態で配置されている。カメラ21は前記電子制御装置30に接続されている。電子制御装置30により、カメラ21の作動制御が実行される。カメラ21によって撮像された画像は、電子制御装置30の記憶部34に記憶される。
<Camera 21>
The tool determination device 20 has a camera 21 for imaging the machined surface 40 of the wire 11 . The camera 21 is arranged between the reel 12 and the processing roller 14 so that its imaging portion faces the processing surface 40 of the wire 11 . A camera 21 is connected to the electronic control unit 30 . The electronic control unit 30 controls the operation of the camera 21 . Images captured by the camera 21 are stored in the storage unit 34 of the electronic control device 30 .

<電子制御装置30>
電子制御装置30の記憶部34は、各種の実行プログラム52を記憶する記憶領域や、学習器51の機械学習に利用される教師データ53を記憶する記憶領域を有している。記憶部34は、学習済みの学習器51(詳しくは、機械学習の実行を通じて作成された学習データ)を記憶する記憶領域を有している。また記憶部34は、判定対象のワイヤ11の加工面40を撮像した画像(詳しくは、後述する判定画像50)を記憶する入力部としての記憶領域や、ワイヤ11の加工面40の状態を判定した結果を示す判定結果データ54を記憶する記憶領域を有している。
<Electronic control unit 30>
The storage unit 34 of the electronic control unit 30 has a storage area for storing various execution programs 52 and a storage area for storing teacher data 53 used for machine learning of the learning device 51 . The storage unit 34 has a storage area for storing a learned learning device 51 (more specifically, learning data created through execution of machine learning). The storage unit 34 also has a storage area as an input unit for storing an image of the machined surface 40 of the wire 11 to be judged (details, a judgment image 50 to be described later), and judges the state of the machined surface 40 of the wire 11. It has a storage area for storing determination result data 54 indicating the result of the determination.

電子制御装置30は、各種の演算結果をもとに、ワイヤ11の加工面40の状態の判定にかかる各種処理を実行する。本実施形態では、CPU31とROM32とRAM33とを有する制御部が状態出力部に相当する。 The electronic control unit 30 executes various processes for determining the state of the machined surface 40 of the wire 11 based on various calculation results. In this embodiment, the control section having the CPU 31, the ROM 32, and the RAM 33 corresponds to the state output section.

実行プログラム52は、学習器51の機械学習を実行させるとともに同機械学習の実行結果を示すデータである学習データを生成させるためのプログラムを含んでいる。また、実行プログラム52は、カメラ21による撮像画像をもとに判定画像50を生成させるための画像生成プログラムを含んでいる。さらに実行プログラム52は、ワイヤ11の加工面40の状態の判定にかかる処理(判定処理)を実行させるための判定プログラムを含んでいる。 The execution program 52 includes a program for executing machine learning by the learning device 51 and generating learning data, which is data indicating the execution result of the machine learning. The execution program 52 also includes an image generation program for generating the determination image 50 based on the image captured by the camera 21 . Further, the execution program 52 includes a determination program for executing processing (determination processing) for determining the state of the machined surface 40 of the wire 11 .

教師データ53は、ワイヤ11の加工面40の状態を判定する能力を獲得するように、学習器51の機械学習を行うためのデータである。
<画像の生成>
本実施形態では、教師データ53を構成する画像や判定画像50として、カメラ21によって撮像した画像をそのまま用いるのではなく、複数の撮像画像を加工して1枚の画像にしたものが用いられる。以下、教師データ53を構成する画像や判定画像50を生成する手順について説明する。
The teacher data 53 is data for performing machine learning of the learner 51 so as to acquire the ability to determine the state of the machined surface 40 of the wire 11 .
<Image generation>
In this embodiment, as the images constituting the teacher data 53 and the judgment image 50, the images captured by the camera 21 are not used as they are, but a single image obtained by processing a plurality of captured images is used. A procedure for generating the images constituting the training data 53 and the determination image 50 will be described below.

本実施形態では、ワイヤソー10を作動させた状況下、すなわちワイヤ11が移動(走行)している状況下において、予め定められた撮像パターンで、カメラ21によるワイヤ11の加工面40の撮像が実行される。具体的には、所定の時間間隔でのカメラ21による撮像がワイヤソー10の作動中に実行される。そして、カメラ21によって撮像された撮像画像は、電子制御装置30の記憶部34に記憶されている。 In this embodiment, under the condition that the wire saw 10 is operated, that is, under the condition that the wire 11 is moving (running), the image of the machined surface 40 of the wire 11 is captured by the camera 21 in a predetermined image capturing pattern. be done. Specifically, images are captured by the camera 21 at predetermined time intervals while the wire saw 10 is in operation. The captured image captured by the camera 21 is stored in the storage section 34 of the electronic control device 30 .

図3に示すように、教師データ53や判定画像50を生成する際には、電子制御装置30の記憶部34に記憶されている撮像画像の中から3枚の撮像画像PA,PB,PCが取得される。そして、各撮像画像PA,PB,PCから、上記ワイヤ11が写っていない部分を取り除く態様で、上記ワイヤ11の軸線方向(図3の左右方向)に延びる画像PPA,PPB,PPCが切り取られる。具体的には、各画像PA,PB,PCにおける上記ワイヤ11が写っている部分(図3の上下方向の中央部分)を残すとともに縦横比が[3:1]になる態様で、画像PPA,PPB,PPCは切り取られる。その後、これら画像PPA,PPB,PPCを上記移動方向と交差(本実施形態では、直交)する方向(図3の上下方向)に並べて繋ぎ合わせることで、矩形状の1枚の画像PTが生成される。本実施形態では、このようにして生成された画像PTが、教師データ53を構成する画像や判定画像50として用いられる。 As shown in FIG. 3, when generating the teacher data 53 and the determination image 50, three captured images PA, PB, and PC are selected from captured images stored in the storage unit 34 of the electronic control unit 30. is obtained. Images PPA, PPB, and PPC extending in the axial direction of the wire 11 (horizontal direction in FIG. 3) are cut out from the captured images PA, PB, and PC by removing portions where the wire 11 is not shown. Specifically, the images PPA, PB, and PC are processed in such a manner that the portions of the images PA, PB, and PC where the wire 11 is shown (central portion in the vertical direction in FIG. 3) are left and the aspect ratio is [3:1]. PPB and PPC are clipped. Thereafter, these images PPA, PPB, and PPC are arranged in a direction (vertical direction in FIG. 3) that intersects (perpendicular to in this embodiment) the moving direction, and are joined together to generate a single rectangular image PT. be. In this embodiment, the image PT generated in this way is used as the image forming the teacher data 53 and the determination image 50 .

本実施形態では、教師データ53を構成する画像を生成する場合には、その生成が次のように実行される。この場合には、未使用の状態のワイヤ11が用意されるとともに、同ワイヤ11がワイヤソー10に取り付けられる。そして、ワークW1の加工を行わない態様で、ワイヤソー10が作動される。この状態で、カメラ21によるワイヤ11の加工面40の撮像が実行されるとともに、撮像画像が電子制御装置30の記憶部34に記憶される。そして、このようにして電子制御装置30の記憶部34に記憶された撮像画像の中から3枚の撮像画像PA,PB,PCが取得されるとともに、それら撮像画像PA,PB,PCから矩形状の1枚の画像PTが生成される。この画像PTが、教師データ53を構成する画像として用いられる。なお、教師データ53を構成する画像(上記画像PT)を取得する際には、本実施形態のワイヤソー10および工具判定装置20を利用することの他、別途の装置を利用することも可能である。 In the present embodiment, the generation of the images constituting the teacher data 53 is performed as follows. In this case, an unused wire 11 is prepared and attached to the wire saw 10 . Then, the wire saw 10 is operated without machining the work W1. In this state, the image of the machined surface 40 of the wire 11 is captured by the camera 21 and the captured image is stored in the storage unit 34 of the electronic control unit 30 . Three picked-up images PA, PB, and PC are obtained from the picked-up images stored in the storage unit 34 of the electronic control unit 30 in this manner, and a rectangular shape is obtained from the picked-up images PA, PB, and PC. is generated. This image PT is used as an image forming the teacher data 53 . It should be noted that when acquiring the image (the image PT described above) that constitutes the teaching data 53, in addition to using the wire saw 10 and the tool determination device 20 of the present embodiment, it is also possible to use a separate device. .

本実施形態では、判定画像50を生成する場合には、その生成が次のように実行される。この場合には、ワークW1の加工を行うべくワイヤソー10を作動させた状態で、カメラ21によるワイヤ11の加工面40の撮像が実行されるとともに、その撮像画像が電子制御装置30の記憶部34に記憶される。そして、このようにして電子制御装置30の記憶部34に記憶された撮像画像の中から3枚の撮像画像PA,PB,PCが取得されるとともに、それら撮像画像PA,PB,PCから矩形状の1枚の画像PTが生成される。この画像PTが、判定画像50として、電子制御装置30の記憶部34に記憶される。本実施形態では、このようにして判定画像50を生成して電子制御装置30の記憶部34に記憶させる工程が入力工程に相当する。 In this embodiment, when generating the judgment image 50, the generation is executed as follows. In this case, while the wire saw 10 is operated to machine the work W1, the camera 21 captures an image of the machined surface 40 of the wire 11, and the captured image is stored in the storage unit 34 of the electronic control unit 30. stored in Three picked-up images PA, PB, and PC are obtained from the picked-up images stored in the storage unit 34 of the electronic control unit 30 in this manner, and a rectangular shape is obtained from the picked-up images PA, PB, and PC. is generated. This image PT is stored in the storage section 34 of the electronic control device 30 as the determination image 50 . In this embodiment, the process of generating the determination image 50 and storing it in the storage unit 34 of the electronic control unit 30 corresponds to the input process.

<学習器51>
図1に示すように、本実施形態では、学習器51として、敵対的生成ネットワーク(Generative Adversarial Networks:GAN)が採用されている。本実施形態では、記憶部34に記憶された教師データ53をもとに学習器51の機械学習が実行される。詳しくは、教師データ53を構成する複数の画像の一つを抽出するとともに同画像を入力データとして学習器51を機械学習させるといった学習処理が、教師データ53を構成する画像毎に繰り返し実行される。そして、機械学習の実行を通じて作成された学習データが記憶部34に記憶される。本実施形態では、こうした学習器51の機械学習にかかる一連の処理が自動的に実行されるように、実行プログラム52が構築されて記憶部34に記憶されている。本実施形態では、このようにして学習器51の機械学習を実行する工程が記憶工程に相当する。
<Learning device 51>
As shown in FIG. 1, in this embodiment, as the learner 51, a Generative Adversarial Network (GAN) is employed. In this embodiment, machine learning is performed by the learning device 51 based on the teacher data 53 stored in the storage unit 34 . More specifically, a learning process of extracting one of the plurality of images that make up the teacher data 53 and using the same image as input data to cause the learning device 51 to perform machine learning is repeatedly executed for each image that makes up the teacher data 53. . Learning data created through execution of machine learning is stored in the storage unit 34 . In this embodiment, an execution program 52 is constructed and stored in the storage unit 34 so that a series of processing related to machine learning by the learning device 51 is automatically executed. In this embodiment, the process of executing machine learning by the learner 51 in this way corresponds to the storage process.

図4に概念的に示すように、学習器51の機械学習は、詳しくは、入力データと、同入力データをもとに学習器51によって生成される生成画像データとを同一の画像を示すデータ(画像データA)にする態様で実行される。そして、学習済みの学習器51からは、入力データと生成画像データとの差分に相当する値(以下、生成誤差ΔP)が出力される。これにより、学習器51が適正に学習されている場合には、判定対象のワイヤ11(詳しくは、その加工面40)の状態を判定する判定処理が実行されると、学習器51から以下の値(生成誤差ΔP)が出力される。本実施形態では、生成誤差ΔPが判定画像50に対応する加工面40の状態の指標値に相当し、生成誤差ΔPを出力する工程が状態出力工程に相当する。 As conceptually shown in FIG. 4, in detail, the machine learning of the learning device 51 is performed by combining input data and generated image data generated by the learning device 51 based on the same input data with data representing the same image. (Image data A). A value corresponding to the difference between the input data and the generated image data (hereinafter referred to as generation error ΔP) is output from the learning device 51 that has already been trained. As a result, when the learning device 51 is properly learned, when the determination processing for determining the state of the wire 11 to be determined (more specifically, the machined surface 40 thereof) is executed, the learning device 51 outputs the following: A value (generated error ΔP) is output. In this embodiment, the generated error ΔP corresponds to the index value of the state of the processing surface 40 corresponding to the determination image 50, and the step of outputting the generated error ΔP corresponds to the state output step.

判定対象のワイヤ11の加工面40が未使用の状態である場合には、入力データ(判定画像50)と学習器51によって生成される生成画像データとが略同一になる。そのため、この場合には学習器51から出力される生成誤差ΔPはごく小さい値(例えば「0」)になる。 When the processing surface 40 of the wire 11 to be determined is in an unused state, the input data (determination image 50) and the generated image data generated by the learning device 51 are substantially the same. Therefore, in this case, the generated error ΔP output from the learning device 51 becomes a very small value (for example, "0").

一方、ワイヤ11がある程度使用されて加工面40が劣化した状態になっている場合には、入力データ(判定画像50)と生成画像データとが一致しなくなる。この場合には、図5に示すように、学習器51から出力される生成誤差ΔPは、入力データと生成画像データとの差分に応じた「正の値」になる。しかも、この場合には、実際の状態と未使用の状態との差が大きいときほど、入力データと生成画像データとの差分が大きくなるため、学習器51から出力される生成誤差ΔPも大きい値になる。したがって、学習器51を利用した判定処理では、生成誤差ΔPが大きい値であるときほどワイヤ11の加工面40の劣化が進んでいると判断することができる。 On the other hand, when the wire 11 has been used to some extent and the machined surface 40 is in a deteriorated state, the input data (determination image 50) and the generated image data do not match. In this case, as shown in FIG. 5, the generated error ΔP output from the learning device 51 is a "positive value" corresponding to the difference between the input data and the generated image data. Moreover, in this case, the greater the difference between the actual state and the unused state, the greater the difference between the input data and the generated image data. become. Therefore, in the determination process using the learning device 51, it can be determined that the deterioration of the machined surface 40 of the wire 11 progresses as the value of the generation error ΔP increases.

<ワイヤ11の状態>
図6に示すように、ワイヤ11は、金属線からなる芯材の外面に複数の砥粒41が結合剤43によって固着された構造をなしている。ワイヤ11の加工面40は上記移動方向に延びる長尺状をなしている。ワイヤ11の使用に伴い、同ワイヤ11の加工面40の状態は、次のように変化する。
<State of wire 11>
As shown in FIG. 6, the wire 11 has a structure in which a plurality of abrasive grains 41 are fixed by a binder 43 to the outer surface of a core material made of a metal wire. A machined surface 40 of the wire 11 has an elongated shape extending in the moving direction. As the wire 11 is used, the state of the machined surface 40 of the wire 11 changes as follows.

図7(a)に示すように、未使用状態のワイヤ11は、砥粒41が摩耗していないため、同砥粒41の突端が尖った状態になっている。図7(b)に示すように、ワイヤ11の使用に伴って加工面40が劣化すると、砥粒41の突端が徐々に平坦になる。図7(c)に示すように、ワイヤ11の加工面40の劣化が進むと、同ワイヤ11における結合剤43の層からの砥粒41の突出量が小さくなる。さらにワイヤ11の加工面40の劣化が進むと、図7(d)に示すように、同ワイヤ11における結合剤43の層がひび割れてしまったり、図7(e)に示すように、結合剤43の層の一部が剥落してしまったりする。その他、ワイヤ11の使用に伴い、結合剤43の表面に削りカスが付着したり同結合剤43の表面が削られたりすることで、ワイヤ11の加工面40の最外周面において移動方向に延びる部分が現れたりもする。本実施形態では、ワイヤ11の使用に伴って同ワイヤ11の加工面40に現れる「特徴的な状態の部分」を捉えることで、同加工面40の状態の判定を行うことができる。 As shown in FIG. 7(a), in the unused wire 11, since the abrasive grains 41 are not abraded, the tips of the abrasive grains 41 are sharp. As shown in FIG. 7(b), when the processing surface 40 deteriorates with use of the wire 11, the tips of the abrasive grains 41 gradually flatten. As shown in FIG. 7(c), as the deterioration of the processing surface 40 of the wire 11 progresses, the protrusion amount of the abrasive grains 41 from the layer of the binder 43 of the wire 11 decreases. As the deterioration of the processed surface 40 of the wire 11 progresses further, the layer of the binder 43 on the wire 11 cracks as shown in FIG. Part of the layer 43 may be peeled off. In addition, as the wire 11 is used, shavings adhere to the surface of the binder 43 or the surface of the binder 43 is scraped, so that the outermost peripheral surface of the processing surface 40 of the wire 11 extends in the moving direction. Some parts may appear. In the present embodiment, the state of the machined surface 40 can be determined by capturing the "characteristic portion" that appears on the machined surface 40 of the wire 11 as the wire 11 is used.

<統計的処理>
本実施形態では、ワイヤ11の加工面40を判定する際には、「生成誤差ΔP」に統計的処理を施すことによってワイヤ11の状態についての指標値が算出される。本実施形態では、上記指標値としては、予め定められた所定期間Tにおいて学習器51から出力されて電子制御装置30の記憶部34に記憶された「生成誤差ΔP」の中央値が算出される。そして、この指標値をもとにワイヤ11の加工面40の状態が判定される。上述したように「生成誤差ΔP」が大きい値であるときほど加工面40の劣化が進んでいると判断することができることから、上記中央値が大きい値であるときほどワイヤ11の劣化が進んでいると判断することができる。
<Statistical processing>
In the present embodiment, when determining the machined surface 40 of the wire 11, an index value for the state of the wire 11 is calculated by performing statistical processing on the "generated error ΔP". In this embodiment, as the index value, the median value of the "generation error ΔP" output from the learning device 51 and stored in the storage unit 34 of the electronic control unit 30 during a predetermined period T is calculated. . Then, the state of the machined surface 40 of the wire 11 is determined based on this index value. As described above, it can be determined that the deterioration of the machined surface 40 progresses as the "generation error ΔP" increases. can be determined to be

上記所定期間Tとしては、所定長さLGだけワイヤ11を繰り出す[往動]期間と直後に所定長さLBだけワイヤ11を巻き取る[復動]期間とからなる同ワイヤ11の一往復期間が定められている。本実施形態では、この所定期間Tにおいて電子制御装置30の記憶部34に記憶された「生成誤差ΔP」が取り込まれるとともに、それら「生成誤差ΔP」に統計的処理が施されて、ワイヤ11の状態についての指標値(上記中央値)が算出される。 As the predetermined period T, one reciprocation period of the wire 11 consists of a [forward movement] period in which the wire 11 is paid out by a predetermined length LG and a [backward movement] period in which the wire 11 is wound by a predetermined length LB immediately after. It is defined. In this embodiment, the "generated error ΔP" stored in the storage unit 34 of the electronic control unit 30 is taken in during the predetermined period T, and statistical processing is performed on the "generated error ΔP" to An index value (the median value above) for the condition is calculated.

こうした統計的処理を施すことで所定期間Tにおける「生成誤差ΔP」の出力傾向を把握することができるため、それら「生成誤差ΔP」をもとにワイヤ11の加工面40の状態を広範囲にわたって判定することができる。これにより、次の[誤判定1]および[誤判定2]のように、加工面40の一部の判定結果をもとに加工面40全体の状態が誤って判定されることを抑えることができる。[誤判定1]加工面40全体の劣化が進んでいるのにも関わらず、ごく一部において加工面40の劣化が進んでいないと判定されることで、加工面40の劣化が進んでいないと判定される。[誤判定2]加工面40全体の劣化が進んでいないのにも関わらず、ごく一部において加工面40の劣化が進んでいると判定されることで、加工面40の劣化が進んでいると判定される。 By performing such statistical processing, it is possible to grasp the output tendency of the "generation error ΔP" in the predetermined period T, so based on these "generation error ΔP", the state of the machined surface 40 of the wire 11 can be determined over a wide range. can do. As a result, it is possible to prevent the state of the entire machined surface 40 from being erroneously judged based on the judgment result of a part of the machined surface 40, as in the following [erroneous judgment 1] and [erroneous judgment 2]. can. [Incorrect judgment 1] Although the deterioration of the entire machined surface 40 has progressed, it is judged that the deterioration of the machined surface 40 has not progressed in a small part, so the deterioration of the machined surface 40 has not progressed. is determined. [Incorrect judgment 2] Although the deterioration of the entire machined surface 40 has not progressed, it is judged that the deterioration of the machined surface 40 has progressed in only a small part, so the deterioration of the machined surface 40 has progressed. is determined.

<判定結果の反映>
本実施形態では、判定処理の判定結果(具体的には、上記中央値)は、ワイヤソー10(図1)の回転駆動部16,17の作動制御に反映される。具体的には、判定処理において算出される中央値が判定値以上であるときには、前記[往動]における「所定長さLG」に所定値αを加算した値(=LG+α)が、新たな所定長さLGとして定められる。一方、中央値が判定値未満であるときには、「所定長さLG」から所定値αを減算した値(=LG-α)が、新たな所定長さLGとして定められる。
<Reflection of judgment results>
In the present embodiment, the determination result (specifically, the median value) of the determination process is reflected in the operation control of the rotation drive units 16 and 17 of the wire saw 10 (FIG. 1). Specifically, when the median value calculated in the determination process is equal to or greater than the determination value, a value (=LG+α) obtained by adding a predetermined value α to the “predetermined length LG” in the [forward movement] is used as a new predetermined value. defined as length LG. On the other hand, when the median value is less than the judgment value, a value (=LG-α) obtained by subtracting the predetermined value α from the "predetermined length LG" is determined as the new predetermined length LG.

ここで、中央値が大きい場合には、所定期間Tにおいて生成誤差ΔPが大きくなる傾向があることが分かるため、ワイヤ11の劣化が想定より進んでいると判断することができる。この場合には、想定よりも劣化した状態のワイヤ11によってワークW1の加工が実行されるため、ワークW1の加工精度の低下を招くおそれがある。 Here, when the median value is large, it can be seen that the generation error ΔP tends to increase in the predetermined period T, so it can be determined that the deterioration of the wire 11 has progressed more than expected. In this case, since the work W1 is machined by the wire 11 in a state deteriorated more than expected, the machining accuracy of the work W1 may be lowered.

本実施形態では、こうした場合には、[往動]における所定長さLGを大きくすることで、ワイヤ11の新規送り出し量、詳しくは[往動]における所定長さLGから[復動]における所定長さLBを減算した量(=LG-LB)が大きくされる。そのため、ワイヤ11における上記ワークW1の加工に供されている部分が更新されるようになる更新時間が短くなるため、ワイヤ11の劣化が想定よりも進んだ状況になることが抑えられる。これにより、ワイヤソー10によるワークW1の加工精度を高い水準で保つことができる。 In this embodiment, in such a case, by increasing the predetermined length LG in [forward movement], the new feed amount of the wire 11, more specifically, from the predetermined length LG in [forward movement] to the predetermined length in [backward movement] The amount obtained by subtracting the length LB (=LG-LB) is increased. Therefore, the update time for updating the portion of the wire 11 that is used for machining the work W1 is shortened. Thereby, the machining accuracy of the workpiece W1 by the wire saw 10 can be maintained at a high level.

一方、中央値が小さい場合には、所定期間Tにおいて生成誤差ΔPが小さくなる傾向があることが分かるため、ワイヤ11の劣化が想定より進んでいないと判断することができる。この場合には、ワークW1の加工精度を高く保つことができるものの、ワイヤ11が未だ使用可能な状態であるのにも関わらず更新されてしまっている可能性がある。本実施形態では、こうした場合には、[往動]における所定長さLGを小さくすることで、ワイヤ11の新規送り出し量が小さくされる。これにより、上記更新時間を長くすることができるため、ワイヤ11の使用期間を伸ばすことができる。 On the other hand, when the median value is small, it can be seen that the generation error ΔP tends to be small in the predetermined period T, so it can be determined that the deterioration of the wire 11 has not progressed as expected. In this case, although the machining accuracy of the work W1 can be kept high, there is a possibility that the wire 11 has been updated even though it is still usable. In this embodiment, in such a case, the new feeding amount of the wire 11 is reduced by reducing the predetermined length LG in the [forward movement]. As a result, the update time can be lengthened, so that the usage period of the wire 11 can be extended.

本実施形態では、発明者等による各種の実験やシミュレーションの結果から、ワークW1の加工精度を高い水準で保ちつつワイヤ11の長寿命化が図られるようになる上記判定値や所定値αが予め求められている。そして、これら判定値や所定値αは、ワイヤソー10を作動させるための実行プログラムに組み込まれるとともに電子制御装置30の記憶部34に記憶されている。 In the present embodiment, from the results of various experiments and simulations by the inventors, etc., the judgment value and the predetermined value α are set in advance so that the life of the wire 11 can be extended while maintaining the machining accuracy of the workpiece W1 at a high level. It has been demanded. These determination values and the predetermined value α are incorporated in the execution program for operating the wire saw 10 and stored in the storage section 34 of the electronic control unit 30 .

以下、ワイヤソー10の作動にかかる各種処理(作動制御処理)について具体的に説明する。図8は作動制御処理の実行手順を示している。同図8のフローチャートに示される一連の処理は、回転駆動部16,17の作動制御およびカメラ21の作動制御の実行中であることを条件に、所定周期毎の処理として、電子制御装置30によって実行される。 Various types of processing (operation control processing) relating to the operation of the wire saw 10 will be specifically described below. FIG. 8 shows the execution procedure of the operation control process. A series of processes shown in the flowchart of FIG. 8 are performed by the electronic control unit 30 as processes at predetermined intervals on the condition that the operation control of the rotation drive units 16 and 17 and the operation control of the camera 21 are being executed. executed.

図8に示すように、この処理では、先ず、画像生成条件が成立したか否かが判断される(ステップS11)。ステップS11の処理では、カメラ21の作動制御を通じて、3枚の撮像画像が新たに取得されたことをもって、画像生成条件が成立したと判断される。 As shown in FIG. 8, in this process, first, it is determined whether or not image generation conditions are satisfied (step S11). In the process of step S11, it is determined that the image generation condition is met when three captured images are newly acquired through the operation control of the camera 21. FIG.

画像生成条件が成立していないと判断される場合には(ステップS11:NO)、以下の処理(ステップS12~ステップS17の処理)を実行することなく、本処理は終了される。 If it is determined that the image generation condition is not satisfied (step S11: NO), this process is terminated without executing the following processes (processes of steps S12 to S17).

その後において本処理が繰り返し実行されて、画像生成条件が成立すると(ステップS11:YES)、新たに取得した3枚の撮像画像をもとに判定画像50が生成される(ステップS12)。そして、この判定画像50を入力データとして、学習済みの学習器51から、生成誤差ΔPが出力されるとともに(ステップS13)、この生成誤差ΔPが電子制御装置30の記憶部34に記憶される(ステップS14)。 After that, this process is repeatedly executed, and if the image generation condition is satisfied (step S11: YES), the determination image 50 is generated based on the three newly acquired captured images (step S12). Then, using this determination image 50 as input data, the generated error ΔP is output from the learned learning device 51 (step S13), and this generated error ΔP is stored in the storage unit 34 of the electronic control unit 30 ( step S14).

その後、所定期間Tにわたり生成誤差ΔPが記憶されたか否かが判断される(ステップS15)。生成誤差ΔPを記憶した期間が所定期間Tに至っていないと判断される場合には(ステップS15:NO)、以下の処理(ステップS16およびステップS17の処理)を実行することなく、本処理は終了される。 Thereafter, it is determined whether or not the generation error ΔP has been stored for a predetermined period T (step S15). If it is determined that the period during which the generation error ΔP is stored has not reached the predetermined period T (step S15: NO), this process ends without executing the following processes (steps S16 and S17). be done.

その後において本処理が繰り返し実行されて、所定期間Tにわたり生成誤差ΔPが記憶されたと判断されると(ステップS15:YES)、ワイヤ11の状態についての指標値(前記中央値)が算出される(ステップS16)。ステップS16の処理では、所定期間Tにおいて記憶された生成誤差ΔPに統計的処理を施すことで、上記指標値として、それら生成誤差ΔPの中央値が算出される。 After that, this process is repeatedly executed, and when it is determined that the generation error ΔP has been stored for a predetermined period of time T (step S15: YES), the index value (the median value) for the state of the wire 11 is calculated ( step S16). In the process of step S16, by performing statistical processing on the generated errors ΔP stored during the predetermined period T, the median value of the generated errors ΔP is calculated as the index value.

そして、ワイヤ11の状態の指標値(前記中央値)に基づいて、前記[往動]における所定長さLGが補正される(ステップS17)。これにより、以後においては、ステップS17の処理で補正された所定長さLGをもとに、回転駆動部16,17の作動制御が実行される。このようにして所定長さLGが補正された後、本処理は終了される。 Then, based on the index value (the median value) of the state of the wire 11, the predetermined length LG in the [forward movement] is corrected (step S17). As a result, thereafter, the operation control of the rotary drive units 16 and 17 is executed based on the predetermined length LG corrected in the process of step S17. After the predetermined length LG is corrected in this manner, this process is terminated.

<作用効果>
本実施形態によれば、以下に記載する作用効果が得られるようになる。
(1)電子制御装置30の記憶部34には、教師データ53によって学習された学習器51と、判定画像50とが記憶されている。教師データ53および判定画像50は、カメラ21によってワイヤ11の加工面40を撮像した撮像画像から移動方向に延びる画像が切り取られるとともに当該切り取られた画像が移動方向に直交する方向に複数並べられて繋ぎ合わされた状態の画像である。本実施形態では、判定画像50を入力データとして、学習済みの学習器51から、同判定画像50に対応する前記加工面40の状態の指標値である生成誤差ΔPが出力される。
<Effect>
According to this embodiment, the effects described below can be obtained.
(1) The storage unit 34 of the electronic control unit 30 stores the learning device 51 trained by the teacher data 53 and the determination image 50 . The teacher data 53 and the judgment image 50 are obtained by cutting out images extending in the moving direction from the captured image of the machined surface 40 of the wire 11 captured by the camera 21, and arranging a plurality of the cut images in the direction orthogonal to the moving direction. It is an image in a state of being spliced. In the present embodiment, the judgment image 50 is used as input data, and the generated error ΔP, which is the index value of the state of the processing surface 40 corresponding to the judgment image 50 , is output from the learned learning device 51 .

本実施形態によれば、複数の撮像画像から、加工面40に現れる「特徴的な状態の部分(図7参照)」を含む部分を集めて繋ぎ合わせた画像を、教師データ53を構成する画像や判定画像50として利用することができる。これにより、上記「特徴的な状態の部分」を多く含む画像を、教師データ53や判定画像50にすることができる。しかも、上記「特徴的な状態の部分」を多く含む画像を取得するべくカメラ21の撮像範囲を広くする必要がなくなるため、カメラ21の撮像範囲を狭くして細かい撮像画像を取得することができる。したがって、教師データ53によって学習器51を学習させる処理や、学習済みの学習器51を利用して加工面40の状態を判定する処理を、短い時間、且つ高い精度で実行することができる。 According to the present embodiment, an image that constitutes the teacher data 53 is an image obtained by collecting and connecting the parts including the "part in a characteristic state (see FIG. 7)" appearing on the processing surface 40 from a plurality of captured images. and the determination image 50. As a result, an image that includes many of the above-described “parts in a characteristic state” can be used as the teacher data 53 and the determination image 50 . Moreover, since there is no need to widen the imaging range of the camera 21 in order to obtain an image containing many of the above-described "characteristic portions", it is possible to narrow the imaging range of the camera 21 and obtain a detailed captured image. . Therefore, the processing of learning the learning device 51 using the teacher data 53 and the processing of determining the state of the machined surface 40 using the learned learning device 51 can be executed in a short time and with high accuracy.

(2)ワイヤ11の加工面40を撮像した3枚の撮像画像から、上記ワイヤ11が写っていない部分を取り除く態様で、同ワイヤ11の軸線方向に延びる画像が切り取られる。そして、切り取られた画像を上記移動方向と直交する方向に並べて繋ぎ合わせることで、矩形状の1枚の画像が生成される。このようにして生成された画像が、教師データ53を構成する画像や判定画像50として用いられる。 (2) An image extending in the axial direction of the wire 11 is cut out from the three captured images of the machined surface 40 of the wire 11 in such a manner as to remove the portion where the wire 11 is not captured. Then, by arranging and connecting the cut images in a direction perpendicular to the moving direction, one rectangular image is generated. The images generated in this manner are used as the images forming the teacher data 53 and the judgment image 50 .

本実施形態によれば、複数の撮像画像から、加工面40の状態を判定するうえで必要な部分、すなわち加工面40が写っている部分だけを集めて1枚の画像にすることができる。言い換えれば、撮像画像から、加工面40の状態を判定するうえでは無駄な部分、すなわち加工面40が写っていない部分を取り除くことができる。そのため、撮像画像をそのまま判定に利用する場合と比較して、教師データ53を構成する画像の枚数や判定画像50の枚数を少なくすることができる。これにより、教師データ53によって学習器51を学習させる処理や、学習済みの学習器51を利用して加工面40の状態を判定する処理を、短い時間で実行することができる。しかも、撮像画像をそのまま判定に利用する場合と比較して、1枚の画像に含まれる上記「特徴的な状態の部分」を多くすることができる。これにより、教師データ53や判定画像50から上記「特徴的な状態の部分」を見い出しやすくなるため、高い精度での加工面40の状態の判定が可能になる。 According to this embodiment, it is possible to collect only the portions necessary for determining the state of the processed surface 40, ie, the portions where the processed surface 40 is shown, from a plurality of captured images into one image. In other words, it is possible to remove a portion that is useless for determining the state of the processed surface 40, that is, a portion that does not show the processed surface 40, from the captured image. Therefore, the number of images constituting the teacher data 53 and the number of determination images 50 can be reduced compared to the case where the captured images are used as they are for determination. As a result, the process of learning the learning device 51 using the teacher data 53 and the process of determining the state of the machined surface 40 using the learned learning device 51 can be executed in a short time. Moreover, compared to the case where the captured image is used as it is for the determination, it is possible to increase the above-mentioned "characteristic state portion" included in one image. As a result, it becomes easier to find the above-mentioned "characteristic portion" from the teacher data 53 and the judgment image 50, so that the state of the machined surface 40 can be judged with high accuracy.

<変形例>
なお、上記実施形態は、以下のように変更して実施することができる。上記実施形態および以下の変更例は、技術的に矛盾しない範囲で互いに組み合わせて実施することができる。
<Modification>
It should be noted that the above embodiment can be implemented with the following modifications. The above embodiments and the following modifications can be combined with each other within a technically consistent range.

・教師データ53を構成する画像や判定画像50を、2枚の撮像画像をもとに生成したり、4枚以上の撮像画像をもとに生成したりしてもよい。要は、教師データ53を構成する画像や判定画像50を、次のように生成すればよい。先ず、電子制御装置30の記憶部34に記憶されている撮像画像の中から所定枚数(N枚)の撮像画像を取得する。そして、各撮像画像から、ワイヤ11が写っている部分を残すとともに縦横比が[N:1]になる態様で画像(部分画像)を切り取る。その後、それら部分画像を上記移動方向と直交する方向に並べて繋ぎ合わせることで、矩形状の1枚の画像を生成する。このように生成した画像を、教師データ53を構成する画像や判定画像50として用いる。 - The images constituting the teacher data 53 and the determination image 50 may be generated based on two captured images, or generated based on four or more captured images. In short, the images forming the teacher data 53 and the judgment image 50 should be generated as follows. First, a predetermined number (N) of captured images are acquired from captured images stored in the storage unit 34 of the electronic control unit 30 . Then, an image (partial image) is cut out from each captured image in such a manner that the aspect ratio becomes [N:1] while leaving the part where the wire 11 is shown. After that, by arranging and connecting the partial images in a direction orthogonal to the moving direction, one rectangular image is generated. The images generated in this manner are used as the images forming the teacher data 53 and the determination image 50 .

・前記所定期間Tとしては、ワイヤ11の一往復期間を定めることに限らず、任意の期間を設定することができる。所定期間Tとしては、例えばワイヤ11の[往動]と[復動]とが共に複数回実行される複数回往復期間を定めることができる。その他、所定期間Tとして、ワイヤ11が一回[往動]する期間を設定したり、ワイヤ11が一回[復動]する期間を設定したりすること等も可能である。 - The predetermined period T is not limited to one reciprocating period of the wire 11, and any period can be set. As the predetermined period T, for example, it is possible to set a multiple reciprocating period in which both the [forward motion] and the [backward motion] of the wire 11 are performed multiple times. In addition, as the predetermined period T, it is possible to set a period during which the wire 11 moves once [forward movement], or set a period during which the wire 11 moves once [backward movement].

・カメラ21による加工面40の撮像を実行するタイミングは任意に設定することができる。例えばカメラ21による撮像を休止する「休止期間」と同カメラ21による撮像を所定の時間間隔で実行する「実行期間」とが交互に設定される態様で、カメラ21による撮像を実行してもよい。ワイヤ11が[往動]する期間、および同ワイヤ11が[復動]する期間の一方のみにおいて、カメラ21による撮像を実行してもよい。その他、ワイヤ11が[往動]する期間の一部においてのみカメラ21による撮像を実行したり、ワイヤ11が[復動]する期間の一部においてのみカメラ21による撮像を実行したりすることなども可能である。なお、カメラ21による撮像の実行態様に合わせて、前記所定期間Tは任意に設定することができる。 - Timing for executing imaging of the processing surface 40 by the camera 21 can be set arbitrarily. For example, imaging by the camera 21 may be performed in a mode in which a “pause period” during which imaging by the camera 21 is suspended and an “execution period” during which imaging by the camera 21 is performed at predetermined time intervals are alternately set. . The imaging by the camera 21 may be performed only during one of the period in which the wire 11 is [forward] and the period in which the wire 11 is [backward]. In addition, imaging by the camera 21 may be performed only during part of the period during which the wire 11 is [forward], or imaging may be performed by the camera 21 only during part of the period during which the wire 11 is [backward]. is also possible. Note that the predetermined period T can be arbitrarily set in accordance with the execution mode of image pickup by the camera 21 .

・所定期間Tにおいて記憶された生成誤差ΔPに施す統計的処理としては、中央値を算出する処理を採用することの他、平均値を算出する処理を採用したり、最頻値を算出する処理を採用したりすることができる。所定期間Tにおいて記憶された生成誤差ΔPの傾向が顕著に表れる値を算出することができるのであれば、統計的処理として任意の処理を採用することができる。 ・As the statistical processing to be performed on the generated error ΔP stored in the predetermined period T, in addition to adopting the processing of calculating the median value, the processing of calculating the average value or the processing of calculating the mode value is adopted. can be adopted. Any process can be employed as the statistical process as long as it is possible to calculate a value that remarkably shows the tendency of the generation error ΔP stored in the predetermined period T.

・判定処理の判定結果(具体的には、中央値)を、回転駆動部16,17の作動制御に反映する反映態様は、以下の[反映態様1]や[反映態様2]に一例を記載するように、任意に変更することができる。 ・An example of the reflection mode of reflecting the determination result (specifically, the median value) of the determination process in the operation control of the rotation drive units 16 and 17 is described in [reflection mode 1] and [reflection mode 2] below. can be changed as desired.

[反映態様1]統計的処理において算出された中央値と前記[往動]における「所定長さLG」とに基づいて、予め設定されている関係(関係式または演算マップ)から、新たな「所定長さLG」を算出する。 [Reflection mode 1] A new " Predetermined length LG" is calculated.

[反映態様2]判定処理において算出される中央値が判定値以上であるときには、前記[復動]における「所定長さLB」から所定値βを減算した値(=LB-β)を、新たな所定長さLBとして定める。一方、中央値が判定値未満であるときには、「所定長さLB」に所定値βを加算した値(=LB+β)を、新たな所定長さLBとして定める。 [Reflection mode 2] When the median value calculated in the determination process is equal to or greater than the determination value, the value obtained by subtracting the predetermined value β from the "predetermined length LB" in the above [Return movement] (= LB - β) is newly added. is defined as a predetermined length LB. On the other hand, when the median value is less than the judgment value, a value obtained by adding a predetermined value β to the "predetermined length LB" (=LB+β) is determined as a new predetermined length LB.

要は、ワイヤ11の加工面40の状態が高い加工精度を維持しつつワイヤ11の高寿命化を図ることの可能な状態になるように、判定処理の判定結果に応じて[往動]の所定長さLGや[復動]の所定長さLBを調整できればよい。 The point is that the [forward movement] is changed according to the determination result of the determination process so that the state of the machined surface 40 of the wire 11 can be extended while maintaining high machining accuracy. It suffices if the predetermined length LG and the predetermined length LB of the [backward movement] can be adjusted.

・判定処理の判定結果(具体的には、中央値)を回転駆動部16,17の作動制御に反映する処理(図8のステップS17の処理)を省略してもよい。こうした構成によっても、判定処理の判定結果をもとに、ワイヤ11の加工面40の状態を把握することができる。 The process of reflecting the determination result (specifically, the median value) of the determination process in the operation control of the rotary drive units 16 and 17 (the process of step S17 in FIG. 8) may be omitted. With such a configuration as well, the state of the machined surface 40 of the wire 11 can be grasped based on the determination result of the determination process.

・学習器51として、畳込みニューラルネットワーク(Convolutional Neural Network:CNN)を採用することができる。この場合には、学習器51の機械学習を、加工面40の状態についてのクラス分類が可能になるように実行させてもよい。 - A convolutional neural network (CNN) can be adopted as the learning device 51 . In this case, the machine learning of the learner 51 may be performed so as to enable classification of the state of the machined surface 40 .

この場合におけるクラス分類としては、加工面40の劣化状態(図7(a)~図7(e)参照)についてのクラス分類を採用することができる。同構成によれば、判定画像50を入力データとして、学習済みの学習器51から、加工面40の劣化状態を示すデータを出力させることができる。 As the class classification in this case, it is possible to adopt the class classification of the deterioration state of the machined surface 40 (see FIGS. 7A to 7E). According to this configuration, data indicating the deterioration state of the machined surface 40 can be output from the learned learning device 51 using the determination image 50 as input data.

また、上記クラス分類としては、ワイヤ11の加工面40における砥粒41の分散状態についてのクラス分類を採用することができる。ここで、加工面40における砥粒41の分散状態は、図9(a)に示すように、単位面積あたりの砥粒41の配置数が比較的多い密状態になったり、図9(b)に示すように、同配置数が平均的な数である平均状態になったりする。また、加工面40における砥粒41の分散状態は、図9(c)に示すように、単位面積あたりの砥粒41の配置数が比較的少ない粗状態になったりもする。上記構成によれば、判定画像50を入力データとして、学習済みの学習器51から、図9(a)~図9(c)に一例を示す砥粒41の分散状態を示す出力データを出力させることができる。これにより、例えばワイヤ11の製造工程における検査工程において、上記出力データを利用して、ワイヤ11の加工面40における砥粒41の分散状態を検査することができるようになる。 Further, as the class classification, a class classification regarding the dispersed state of the abrasive grains 41 on the processing surface 40 of the wire 11 can be adopted. Here, the dispersion state of the abrasive grains 41 on the processing surface 40 may be a dense state in which the number of abrasive grains 41 arranged per unit area is relatively large as shown in FIG. As shown in , it becomes an average state in which the number of identical arrangements is an average number. Moreover, as shown in FIG. 9(c), the dispersed state of the abrasive grains 41 on the processing surface 40 may be a rough state in which the number of the abrasive grains 41 arranged per unit area is relatively small. According to the above configuration, the determination image 50 is used as input data, and output data indicating the dispersed state of the abrasive grains 41, examples of which are shown in FIGS. be able to. As a result, for example, in an inspection process in the manufacturing process of the wire 11, the output data can be used to inspect the dispersed state of the abrasive grains 41 on the processing surface 40 of the wire 11. FIG.

・教師データや判定画像をカメラの撮像画像から生成する構成、教師データによって学習された学習器を記憶する構成、および、学習済みの学習器から加工面の状態の指標値を出力させる構成は、ワイヤ放電加工装置にも適用することができる。 ・The configuration for generating teacher data and judgment images from captured images of the camera, the configuration for storing the learner learned by the teacher data, and the configuration for outputting the index value of the state of the machined surface from the learned learner, It can also be applied to a wire electric discharge machine.

図10に、そうしたワイヤ放電加工装置60の一例を示す。図10に示すように、ワイヤ放電加工装置60は、ワークW2の加工に利用される工具であるワイヤ61と、同ワイヤ61が巻き付けられる一対のリール62,63とを有している。各リール62,63には、回転駆動部(図示略)が接続されている。ワイヤ放電加工装置60によるワークW2の加工に際しては、ワイヤ11を一方のリール62から繰り出するとともに他方のリール63によって巻き取るといったように、リール62,63が回転駆動される。ワイヤ放電加工装置60は、電源装置64を有している。ワークW2の加工時には、電源装置64の正極がワイヤ61に接続されるとともに同電源装置64の負極がワークW2に接続される。ワイヤ放電加工装置60は、ワークW2を加工する際に同ワークW2をワイヤ61に対して相対移動させるための移動装置(図示略)を有している。ワイヤ放電加工装置60は、ワイヤ61の加工面611を撮像するためのカメラ65を有している。このカメラ65の撮像部分は、ワイヤ11の加工面611におけるワークW2を通過した後の部分に対向した状態になっている。カメラ65によって撮像された画像は電子制御装置の記憶部(図示略)に記憶される。 An example of such a wire electric discharge machine 60 is shown in FIG. As shown in FIG. 10, the wire electric discharge machine 60 has a wire 61, which is a tool used for machining the work W2, and a pair of reels 62, 63 around which the wire 61 is wound. A rotary drive unit (not shown) is connected to each of the reels 62 and 63 . When the work W2 is machined by the wire electric discharge machine 60, the reels 62 and 63 are rotationally driven such that the wire 11 is let out from one reel 62 and wound by the other reel 63. As shown in FIG. The wire electric discharge machine 60 has a power supply device 64 . During machining of the work W2, the positive terminal of the power supply 64 is connected to the wire 61 and the negative terminal of the power supply 64 is connected to the work W2. The wire electric discharge machine 60 has a moving device (not shown) for moving the work W2 relative to the wire 61 when machining the work W2. The wire electric discharge machine 60 has a camera 65 for imaging the machined surface 611 of the wire 61 . The imaging portion of the camera 65 faces the portion of the processing surface 611 of the wire 11 after passing the work W2. Images captured by the camera 65 are stored in a storage unit (not shown) of the electronic control unit.

ワイヤ放電加工装置60に適用される工具判定装置は、教師データを構成する画像や判定画像の生成を次のように実行する。先ず、ワイヤ61の加工面611をカメラ65によって撮像した複数枚の撮像画像から、ワイヤ61が写っていない部分を取り除く態様で、同ワイヤ61の軸線方向に延びる画像が切り取られる。そして、切り取られた画像をワイヤ61の移動方向と直交する方向に並べて繋ぎ合わせることで、矩形状の1枚の画像が生成される。このようにして生成された画像が、教師データを構成する画像や判定画像として用いられる。このようにして教師データを構成する画像や判定画像を生成することにより、前記(2)に記載の作用効果に準じた作用効果を得ることができる。 The tool determination device applied to the wire electric discharge machining device 60 generates the images constituting the teaching data and the determination image as follows. First, an image extending in the axial direction of the wire 61 is cut out from a plurality of captured images of the machined surface 611 of the wire 61 captured by the camera 65 in such a manner as to remove portions where the wire 61 is not captured. Then, by arranging and connecting the cut images in a direction orthogonal to the moving direction of the wire 61, one rectangular image is generated. The images generated in this way are used as the images constituting the teacher data and the judgment images. By generating the images constituting the training data and the judgment image in this way, it is possible to obtain the effects according to the effects described in (2) above.

ワイヤ放電加工装置60に適用される工具判定装置では、上記教師データによって学習された学習器が電子制御装置の記憶部に記憶される。そして、上記判定画像を入力データとして、学習済みの上記学習器から、加工面611の状態の指標値(生成誤差)が出力される。 In the tool determination device applied to the wire electric discharge machine 60, the learner learned by the above teaching data is stored in the storage section of the electronic control device. Then, with the judgment image as input data, the learned learning device outputs an index value (generation error) of the state of the machined surface 611 .

ここで、上記ワイヤ61は、外面が加工面611をなすワイヤ状のものである。ワイヤ61としては、具体的には、金属線(例えば真鍮線や亜鉛めっき加工された真鍮線)が用いられる。ワイヤ放電加工装置60の工具として用いられるワイヤ61は、使用に伴い劣化が進むと、加工面40に凹凸形状が生じる。上記構成によれば、そうしたワイヤ61の加工面611の形状変化を捉えて、同加工面611の状態を適正に判定することができる。また、その判定結果をもとに、ワイヤ61の送り速度やワークW2の移動速度を調節することで、ワークW2の加工精度を高く維持しつつ、ワイヤ61の高寿命化を図ることができる。 Here, the wire 61 is wire-shaped and has a processed surface 611 on its outer surface. Specifically, a metal wire (for example, brass wire or galvanized brass wire) is used as the wire 61 . As the wire 61 used as a tool of the wire electric discharge machine 60 deteriorates with use, the machined surface 40 becomes uneven. According to the above configuration, it is possible to detect the shape change of the machined surface 611 of the wire 61 and appropriately determine the state of the machined surface 611 . Further, by adjusting the feeding speed of the wire 61 and the moving speed of the work W2 based on the determination result, it is possible to extend the life of the wire 61 while maintaining high machining accuracy of the work W2.

・教師データや判定画像をカメラの撮像画像から生成する構成、教師データによって学習された学習器を記憶する構成、および、学習済みの学習器から加工面の状態の指標値を出力させる構成は、研削加工装置にも適用することができる。 ・The configuration for generating teacher data and judgment images from captured images of the camera, the configuration for storing the learner learned by the teacher data, and the configuration for outputting the index value of the state of the machined surface from the learned learner, It can also be applied to a grinding device.

図11に、そうした研削加工装置70の一例を示す。図11に示すように、研削加工装置70は、加工に利用される工具として、略円板状の回転砥石71を有している。回転砥石71は、基材の外周面に多数の砥粒が分散した状態で結合剤によって固着された構造をなすものである。回転砥石71の外周面をなす加工面711は、その移動方向に延びる長尺状をなしている。回転砥石71は、回転可能な状態で支持されている。回転砥石71には、例えばサーボモータを有する回転駆動部72が接続されている。研削加工装置70は、回転砥石71とワーク(図示略)とを相対移動させることが可能になっている。研削加工装置70では、回転砥石71を回転駆動しつつ同回転砥石71とワークとを相対移動させて回転砥石71をワークに接触させることにより、回転砥石71の加工面711によって同ワークの表面が研削加工される。研削加工装置70は、回転砥石71の加工面711を撮像するためのカメラ73を有している。カメラ73によって撮像された画像は電子制御装置の記憶部(図示略)に記憶される。 FIG. 11 shows an example of such a grinding device 70. As shown in FIG. As shown in FIG. 11, the grinding device 70 has a substantially disk-shaped rotating grindstone 71 as a tool used for processing. The rotary grindstone 71 has a structure in which a large number of abrasive grains are dispersed on the outer peripheral surface of a base material and fixed with a binder. A processing surface 711 forming the outer peripheral surface of the emery wheel 71 has an elongated shape extending in the moving direction. The emery wheel 71 is rotatably supported. A rotary drive unit 72 having, for example, a servomotor is connected to the rotary grindstone 71 . The grinding device 70 is capable of relatively moving the rotary grindstone 71 and a work (not shown). In the grinding apparatus 70, the surface of the workpiece is ground by the machining surface 711 of the grindstone 71 by relatively moving the grindstone 71 and the work while rotating the grindstone 71 to bring the grindstone 71 into contact with the work. Grinded. The grinding device 70 has a camera 73 for imaging the machining surface 711 of the grindstone 71 . Images captured by the camera 73 are stored in a storage unit (not shown) of the electronic control unit.

研削加工装置70に適用される工具判定装置は、教師データを構成する画像や判定画像の生成を次のように実行する。図12に概念的に示すように、先ず、カメラ73によって撮像した撮像画像PDから、加工面711の移動方向(図12の上下方向)に延びる画像PEが切り取られる。そして、この画像PEを移動方向において分割して2枚の画像PE1,PE2にするとともに、それら画像PB1,PB2を上記移動方向と直交する方向に並べて繋ぎ合わせることで、矩形状の1枚の画像PTDが生成される。このようにして生成された画像PTDが、教師データを構成する画像や判定画像として用いられる。同様に、撮像画像PDから加工面711の移動方向に延びる画像PF,PG,PHが切り取られるとともに、画像PF,PG,PHをもとに矩形状の画像PTF,PTG,PTHが生成される。これら画像PTF,PTG,PTHも、教師データを構成する画像や判定画像として用いられる。 The tool determination device applied to the grinding device 70 generates the images constituting the teacher data and the determination image as follows. As conceptually shown in FIG. 12, first, an image PE extending in the moving direction of the processing surface 711 (the vertical direction in FIG. 12) is cut out from the image PD captured by the camera 73 . Then, the image PE is divided in the movement direction into two images PE1 and PE2, and the images PB1 and PB2 are arranged in the direction perpendicular to the movement direction and joined together to form one rectangular image. A PTD is generated. The image PTD generated in this manner is used as an image forming teacher data and a judgment image. Similarly, images PF, PG, and PH extending in the moving direction of the processing surface 711 are cut from the captured image PD, and rectangular images PTF, PTG, and PTH are generated based on the images PF, PG, and PH. These images PTF, PTG, and PTH are also used as images constituting teacher data and judgment images.

研削加工装置70に適用される工具判定装置では、上記教師データによって学習された学習器が電子制御装置の記憶部に記憶されている。そして、上記判定画像を入力データとして、学習済みの上記学習器から、加工面711の状態の指標値(生成誤差)が出力される。 In the tool determination device applied to the grinding device 70, the learner learned by the above teaching data is stored in the storage section of the electronic control device. Then, with the determination image as input data, the learned learning device outputs an index value (generation error) of the state of the machined surface 711 .

ここで、未使用状態の回転砥石71や適正にドレッシングがなされた直後の回転砥石71では、加工面711の最外周面が砥粒の突端面のみによって構成されている。そして、回転砥石71による研削加工がある程度実行されると、加工面711の最外周面に、砥粒以外の部分PX(主に、結合剤によって構成されるいわゆるボンドテール)が現れるようになる。この部分PXは、砥粒の移動方向後ろ側の部分から同移動方向に延びる傾向がある。さらに回転砥石71による研削加工の総実行時間が長くなると、加工面711の状態変化が進むことにより、上記部分PXが、移動方向において並ぶ砥粒を繋ぐ態様で延びた状態になってしまう。このように、回転砥石71の加工面711の状態変化の度合いは、加工面711の最外周面において移動方向において延びる部分に現れる。 Here, in the emery wheel 71 in an unused state or in the emery wheel 71 just after being properly dressed, the outermost peripheral surface of the working surface 711 is composed only of the tip surfaces of the abrasive grains. When the grindstone 71 performs grinding to some extent, a portion PX other than the abrasive grains (a so-called bond tail mainly composed of a binder) appears on the outermost peripheral surface of the processing surface 711 . This portion PX tends to extend in the moving direction from the rear portion in the moving direction of the abrasive grains. Furthermore, if the total execution time of the grinding process by the grindstone 71 becomes longer, the state change of the processing surface 711 progresses, so that the portion PX extends in such a manner as to connect the abrasive grains arranged in the movement direction. Thus, the degree of state change of the processing surface 711 of the grindstone 71 appears in the portion extending in the moving direction on the outermost peripheral surface of the processing surface 711 .

上記構成によれば、教師データを構成する画像や判定画像を生成する際に、回転砥石71の加工面711を撮像した撮像画像から、移動方向において長い形状、すなわち加工面711に現れる「特徴的な状態の部分」を含み易い形状の画像を切り出すことができる。言い換えれば、回転砥石71の加工面711を撮像した撮像画像から、上記「加工面711の最外周面において移動方向において延びる部分」に関する情報を含み易い画像を切り出すことができる。そして、その切り出した画像を複数並べて繋ぎ合わせた画像、言い換えれば上記「特徴的な状態の部分」を多数含む画像を、教師データや判定画像として利用することができる。これにより、回転砥石71の加工面711の判定に際して、上記「特徴的な状態の部分」を高い確率で見出すことが可能になるため、同加工面711の状態を高い精度で判定することができるようになる。 According to the above-described configuration, when generating an image constituting teacher data and a judgment image, a captured image obtained by capturing the processing surface 711 of the rotary grindstone 71 has a long shape in the moving direction, that is, a “characteristic shape” appearing on the processing surface 711 . It is possible to cut out an image having a shape that is likely to include "parts in a bad state". In other words, it is possible to cut out an image that tends to include information on the above-mentioned "portion extending in the moving direction on the outermost peripheral surface of the machining surface 711" from the captured image of the machining surface 711 of the grindstone 71. Then, an image obtained by arranging and connecting a plurality of the cut-out images, in other words, an image including a large number of the above-described "characteristic portions" can be used as training data or a determination image. As a result, when determining the processing surface 711 of the emery wheel 71, it is possible to find the above-mentioned "portion in a characteristic state" with a high probability, so that the state of the processing surface 711 can be determined with high accuracy. become.

上記構成によれば、カメラ73によって撮像した撮像画像から「特徴的な状態」を含む部分を集めて繋ぎ合わせた画像を、教師データを構成する画像や判定画像として利用することができる。これにより、上記「特徴的な状態」の部分を多く含む画像を、教師データや判定画像にすることができる。しかも、「特徴的な状態」の部分を多く含む画像を取得するべくカメラ73の撮像範囲を広くする必要がなくなるため、カメラ73の撮像範囲を狭くして細かい撮像画像を取得することができる。したがって、教師データによって学習器を学習させる処理や、学習済みの学習器を利用して加工面711の状態を判定する処理を、短い時間、且つ高い精度で実行することができる。 According to the above configuration, it is possible to use an image obtained by collecting and connecting parts including a "characteristic state" from the captured image captured by the camera 73 as an image constituting teacher data or a determination image. As a result, an image that includes many portions of the "characteristic state" can be used as training data or a determination image. Moreover, since there is no need to widen the imaging range of the camera 73 in order to obtain an image containing many "characteristic state" portions, it is possible to narrow the imaging range of the camera 73 and obtain a finely captured image. Therefore, it is possible to perform the processing of learning the learning device using the teacher data and the processing of determining the state of the machined surface 711 using the learned learning device in a short time and with high accuracy.

10…ワイヤソー
11,61…ワイヤ
20…工具判定装置
21,65,73…カメラ
30…電子制御装置
31…CPU
32…ROM
33…RAM
34…記憶部
40,611,711…加工面
50…判定画像
51…学習器
52…実行プログラム
53…教師データ
60…ワイヤ放電加工装置
70…研削加工装置
71…回転砥石
DESCRIPTION OF SYMBOLS 10... Wire saw 11, 61... Wire 20... Tool determination apparatus 21, 65, 73... Camera 30... Electronic control unit 31... CPU
32 ROM
33 RAM
34... Storage unit 40, 611, 711... Machining surface 50... Judgment image 51... Learning device 52... Execution program 53... Teacher data 60... Wire electric discharge machine 70... Grinding machine 71... Rotary whetstone

Claims (4)

加工装置による加工に利用される工具であって、且つ、加工面が同加工面の移動方向に延びる長尺状をなす前記工具に適用されて、前記加工面の状態を判定する工具判定装置において、
前記加工面を撮像した画像から前記移動方向に延びる画像が切り取られるとともに当該切り取られた画像が前記移動方向に交差する方向に複数並べられて繋ぎ合わされた状態の画像からなる教師データによって学習された学習器を記憶する記憶部と、
判定対象の前記加工面を撮像した画像から前記移動方向に延びる画像が切り取られるとともに当該切り取られた画像が前記移動方向と交差する方向に複数並べられて繋ぎ合わされた状態の画像を、判定画像として記憶する入力部と、
前記判定画像を入力データとして、前記記憶部に記憶された学習済みの学習器から、前記判定画像に対応する前記加工面の状態の指標値を出力する状態出力部と、
を備える工具判定装置。
A tool determination device that is applied to a tool that is used for processing by a processing device and that has a long shape with a processing surface extending in a moving direction of the processing surface to determine the state of the processing surface ,
An image extending in the direction of movement is cut out from an image of the processing surface, and a plurality of the cut out images are arranged in a direction intersecting the direction of movement and joined together. a storage unit that stores learning devices;
An image in which an image extending in the moving direction is cut from an image of the processed surface to be determined and a plurality of the cut images are arranged in a direction intersecting the moving direction and joined together is used as a determination image. an input unit for storing;
a state output unit for outputting an index value of the state of the machined surface corresponding to the judgment image from a learned learning device stored in the storage unit using the judgment image as input data;
A tool determination device comprising:
前記工具は、外面が前記加工面をなすワイヤ状のものであり、
前記教師データおよび前記判定画像は、前記加工面を撮像した画像から同加工面が写っていない部分を取り除く態様で前記移動方向に延びる画像が切り取られるとともに当該切り取られた画像が前記移動方向に交差する方向に複数並べられて繋ぎ合わされた状態の画像からなる
請求項1に記載の工具判定装置。
The tool has a wire shape with an outer surface forming the processing surface,
The teacher data and the determination image are obtained by cutting out an image extending in the movement direction in such a manner that a portion where the processing surface is not captured is removed from an image of the processing surface, and the cut image intersects the movement direction. 2. The tool determination device according to claim 1, wherein a plurality of images are arranged in the direction of the tool and are joined together.
前記工具は、複数の砥粒が結合剤によって固着された構造の回転砥石であり、
前記教師データおよび前記判定画像は、前記回転砥石の前記加工面における前記移動方向に延びる部分に関する情報を含む画像からなる
請求項1に記載の工具判定装置。
The tool is a rotary grindstone having a structure in which a plurality of abrasive grains are fixed with a binder,
2. The tool determination apparatus according to claim 1, wherein said teacher data and said determination image comprise images containing information on a portion of said grinding surface extending in said moving direction.
加工装置による加工に利用される工具であって、且つ、加工面が同加工面の移動方向に延びる長尺状をなす工具に適用されて、前記加工面の状態を判定する工具判定方法であって、
前記加工面を撮像した画像を取得し、該取得した画像から前記移動方向に延びる画像を切り取るとともに当該切り取った画像を前記移動方向に交差する方向に複数並べて繋ぎ合わせた画像を生成し、同生成した画像からなる教師データによって学習器を学習させた後に、同学習器を工具判定装置の記憶部に記憶させる記憶工程と、
判定対象の前記加工面を撮像した画像を取得し、該取得した画像から前記移動方向に延びる画像を切り取るとともに当該切り取った画像を前記移動方向と交差する方向に複数並べて繋ぎ合わせた画像を生成し、同作成した画像を判定画像として前記工具判定装置の入力部に記憶させる入力工程と、
前記判定画像を入力データとして、前記記憶部に記憶された学習済みの学習器から、前記判定画像に対応する前記加工面の状態の指標値を出力する状態出力工程と、
を備える工具判定方法。
A tool determination method that is applied to a tool that is used for processing by a processing device and that has a long shape with a processing surface extending in a moving direction of the processing surface to determine the state of the processing surface. hand,
obtaining an image of the processed surface, cutting out an image extending in the moving direction from the obtained image, and generating an image by arranging and connecting a plurality of the cut images in a direction intersecting the moving direction; a storage step of storing the learning device in a storage unit of the tool determination device after making the learning device learn by the teacher data composed of the images obtained;
An image obtained by imaging the processing surface to be determined is obtained, an image extending in the movement direction is cut from the obtained image, and an image is generated by arranging and connecting a plurality of the cut images in a direction intersecting the movement direction. an input step of storing the created image as a determination image in the input unit of the tool determination device;
a state output step of outputting an index value of the state of the machined surface corresponding to the judgment image from a learned learning device stored in the storage unit using the judgment image as input data;
A tool determination method comprising:
JP2021198084A 2021-12-06 2021-12-06 Tool determination device and tool determination method Pending JP2023084018A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021198084A JP2023084018A (en) 2021-12-06 2021-12-06 Tool determination device and tool determination method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021198084A JP2023084018A (en) 2021-12-06 2021-12-06 Tool determination device and tool determination method

Publications (1)

Publication Number Publication Date
JP2023084018A true JP2023084018A (en) 2023-06-16

Family

ID=86731819

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021198084A Pending JP2023084018A (en) 2021-12-06 2021-12-06 Tool determination device and tool determination method

Country Status (1)

Country Link
JP (1) JP2023084018A (en)

Similar Documents

Publication Publication Date Title
JP6659723B2 (en) Method and apparatus for machining a tool by removing material
JP5085923B2 (en) Wafer and manufacturing method thereof
JP6202086B2 (en) Centerless polishing equipment
JP2020019087A (en) Grinding tool abrasive plane evaluation device and learning equipment thereof, evaluation program and evaluation method
JP2023084018A (en) Tool determination device and tool determination method
TW201711816A (en) Method for cutting a workpiece
JP2021077205A (en) Quality prediction system
JP6270796B2 (en) Fixed abrasive wire saw and fixed abrasive wire dressing method
CN115502892B (en) Method and system for removing surface material of steel material during ultra-precise grinding
JP6766922B2 (en) Cutting equipment and cutting method
WO2016050858A1 (en) Apparatus and method for sharpening the scraping edges of a scraper roller
JP3872721B2 (en) Wheel dressing method
JP2023084017A (en) Tool imaging device
DK178511B1 (en) Apparatus and method for sharpening the scraping edges of a scraper roller
JP2017052037A (en) Measuring method of surface shape of grindstone working plane
JP6517433B1 (en) Machining condition determination program, computer device, machining condition determination method, machining device, and machining system
JP4957153B2 (en) Processing equipment
JP2007260880A (en) Method of truing grinding wheel, and grinding machine
JP2021003806A (en) Printing method on filamentous member, and filamentous saw
JP2022507483A (en) Disc-shaped tools and methods for machining workpieces, cutting devices, and the use of cutting, grinding, and polishing discs to generate surface structures on workpieces.
JP2008084129A (en) Program writing method of numerical controller, numerical controller and machining device
JP2012218081A (en) Brush polishing device and brush polishing method
JP2005252036A (en) Method and system of chemicalmechanical polishing and manufacturing method of semiconductor device
JP4930700B2 (en) Cutting tool grinding method and cutting tool grinding apparatus
JP4225210B2 (en) Truing device and truing method for grinding wheel

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230803

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20240515

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20240528