JP2024048955A - Machine tool, control method, and program - Google Patents

Machine tool, control method, and program Download PDF

Info

Publication number
JP2024048955A
JP2024048955A JP2022155149A JP2022155149A JP2024048955A JP 2024048955 A JP2024048955 A JP 2024048955A JP 2022155149 A JP2022155149 A JP 2022155149A JP 2022155149 A JP2022155149 A JP 2022155149A JP 2024048955 A JP2024048955 A JP 2024048955A
Authority
JP
Japan
Prior art keywords
command
shutter
movement
tool
sensor
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
JP2022155149A
Other languages
Japanese (ja)
Inventor
滉也 吉川
Koya Yoshikawa
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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2022155149A priority Critical patent/JP2024048955A/en
Publication of JP2024048955A publication Critical patent/JP2024048955A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Automatic Tool Replacement In Machine Tools (AREA)

Abstract

To provide a machine tool, a control method, a program, etc., capable of preventing collision of a shutter with a main spindle head while reducing cost.SOLUTION: The machine tool is configured such that a control unit determines, before transmission of the other moving command of an opening command and a closing command to a moving mechanism after transmission of one moving command of the opening command and the closing command to the moving mechanism, whether the target position of a shutter when one of the moving commands is executed corresponds to the detection result of a sensor, and notifies an abnormality when it determines no correspondence.SELECTED DRAWING: Figure 1

Description

本技術は、工作機械、制御方法、及びプログラムに関する。 This technology relates to machine tools, control methods, and programs.

従来、工作機械が備えるATCシャッタ(シャッタ)の制御システムが開示されている。特許文献1に記載の制御システムは、加工作業室の内側と外側との間にて回転アームが把持する工具を交換するために加工作業室の入口にて開閉するATCシャッタを制御する。特許文献1に記載の制御システムは、ATCシャッタ開放開始、及び開放終了にそれぞれ対応する位置に設けられたリミットスイッチに基づく信号によって回転アームを駆動させることで、回転アームとATCシャッタとの衝突を避ける。 Conventionally, a control system for an ATC shutter (shutter) equipped in a machine tool has been disclosed. The control system described in Patent Document 1 controls an ATC shutter that opens and closes at the entrance to a machining chamber to exchange a tool held by a rotating arm between the inside and outside of the machining chamber. The control system described in Patent Document 1 prevents collision between the rotating arm and the ATC shutter by driving the rotating arm with a signal based on limit switches provided at positions corresponding to the start and end of opening the ATC shutter.

特開2007―30062号公報JP 2007-30062 A

特許文献1に記載の制御システムは、二つのATCシャッタの位置の検出機構(リミットスイッチ)を必要とするため、システムの実現に対してコストが嵩む。 The control system described in Patent Document 1 requires a mechanism (limit switch) for detecting the positions of the two ATC shutters, which increases the cost of implementing the system.

本開示は斯かる事情に鑑みてなされたものであり、コストを削減しつつ、シャッタと主軸ヘッドの衝突を防止することが可能な工作機械、制御方法、及びプログラム等を提供することを目的とする。 This disclosure has been made in consideration of these circumstances, and aims to provide a machine tool, control method, program, etc. that can prevent collisions between the shutter and the spindle head while reducing costs.

本開示の一実施形態に係る工作機械は、ワークを加工するための工具を着脱可能に保持する主軸ヘッドと、前記主軸ヘッドに保持させる前記工具を交換する工具交換装置と、前記工具交換装置を覆い、開口部を備えるカバーと、前記開口部を開放する開位置と、前記開口部を閉じる閉位置との間を移動可能であるシャッタと、前記シャッタが前記開位置に位置すること、または閉位置に位置することのいずれか一方を検出可能なセンサと、開放指令を受信した場合に前記シャッタを前記開位置に移動させ、閉塞指令を受信した場合に前記シャッタを前記閉位置に移動させる移動機構と、前記移動機構に、前記開放指令または前記閉塞指令を含む移動指令を送信する制御部とを備え、前記制御部は、前記移動機構に前記開放指令または前記閉塞指令のいずれか一方の前記移動指令を送信後、前記開放指令または前記閉塞指令の他方の前記移動指令を前記移動機構に送信する前に、一方の前記移動指令が実行される場合の前記シャッタの目標位置と、前記センサによる検出結果とが対応するか否かを判定し、対応しないと判定した場合に異常を報知することを特徴とする。 A machine tool according to an embodiment of the present disclosure includes a spindle head that detachably holds a tool for machining a workpiece, a tool exchange device that exchanges the tool held by the spindle head, a cover that covers the tool exchange device and has an opening, a shutter that can move between an open position that opens the opening and a closed position that closes the opening, a sensor that can detect whether the shutter is in the open position or the closed position, a movement mechanism that moves the shutter to the open position when an open command is received and moves the shutter to the closed position when a close command is received, and a control unit that transmits a movement command including the open command or the close command to the movement mechanism, and the control unit determines whether the target position of the shutter when one of the movement commands is executed corresponds to the detection result by the sensor before transmitting the other movement command of the open command or the close command to the movement mechanism after transmitting the movement command of either the open command or the close command to the movement mechanism, and reports an abnormality when it is determined that they do not correspond.

本開示においては、工作機械は、検出機構(センサ)一つのみを用いてシャッタの開閉検出を行いつつ、センサの故障などが発生した場合には、異常を報知して主軸ヘッドの移動を停止することが出来るので、コストを削減しつつ、シャッタと主軸ヘッドの衝突を防止することが可能である。 In this disclosure, the machine tool detects whether the shutter is open or closed using only one detection mechanism (sensor), and if a sensor failure occurs, it can report the abnormality and stop the movement of the spindle head, thereby reducing costs and preventing collisions between the shutter and the spindle head.

本開示の一実施形態に係る工作機械は、前記移動機構は、一端側にエア供給がされた場合に前記シャッタを前記開位置に移動させ、他端側にエア供給がされた場合に前記シャッタを前記閉位置に移動させるエアシリンダと、前記移動機構が前記開放指令を受信した場合に、前記一端側にエア供給を行う開バルブと、前記移動機構が前記閉塞指令を受信した場合に、前記他端側にエア供給を行う閉バルブとを備える。 In a machine tool according to an embodiment of the present disclosure, the movement mechanism includes an air cylinder that moves the shutter to the open position when air is supplied to one end side and moves the shutter to the closed position when air is supplied to the other end side, an open valve that supplies air to the one end side when the movement mechanism receives the open command, and a close valve that supplies air to the other end side when the movement mechanism receives the close command.

本開示においては、制御部から送信される移動指令に基づいて供給されるエアを動力源とし、シャッタを移動させることが可能である。 In this disclosure, the shutter can be moved using air as a power source supplied based on a movement command sent from the control unit.

本開示の一実施形態に係る工作機械は、前記センサは、前記シャッタが前記開位置に位置することを検出可能であり、一方の前記移動指令は前記閉塞指令であり、他方の前記移動指令は前記開放指令であり、前記制御部は、前記移動機構に前記開放指令を送信する前に、前記シャッタが前記開位置であることを前記センサが検出している場合、異常を報知する。 In a machine tool according to an embodiment of the present disclosure, the sensor is capable of detecting that the shutter is in the open position, one of the movement commands is the closing command and the other movement command is the opening command, and the control unit reports an abnormality if the sensor detects that the shutter is in the open position before transmitting the opening command to the movement mechanism.

本開示においては、工作機械は、シャッタが開位置に位置するべきでない場合において、シャッタが前記開位置であることを前記センサが検出している場合に主軸ヘッドの移動を停止し、シャッタと主軸ヘッドとの衝突を防止することが可能である。 In the present disclosure, the machine tool is capable of stopping the movement of the spindle head when the sensor detects that the shutter is in the open position when the shutter should not be in the open position, thereby preventing a collision between the shutter and the spindle head.

本開示の一実施形態に係る工作機械は、前記センサは、前記シャッタが前記閉位置に位置することを検出可能であり、一方の前記移動指令は前記閉塞指令であり、他方の前記移動指令は前記開放指令であり、前記制御部は、前記移動機構に前記開放指令を送信する前に、前記シャッタが前記閉位置であることを前記センサが検出していない場合、異常を報知する。 In a machine tool according to an embodiment of the present disclosure, the sensor is capable of detecting that the shutter is in the closed position, one of the movement commands is the closing command and the other movement command is the opening command, and the control unit reports an abnormality if the sensor does not detect that the shutter is in the closed position before transmitting the opening command to the movement mechanism.

本開示においては、工作機械は、シャッタが閉位置に位置するべき場合において、シャッタが前記閉位置であることを前記センサが検出していない場合に主軸ヘッドの移動を停止し、シャッタと主軸ヘッドとの衝突を防止することが可能である。 In the present disclosure, the machine tool is capable of stopping the movement of the spindle head when the sensor does not detect that the shutter is in the closed position when the shutter should be in the closed position, thereby preventing a collision between the shutter and the spindle head.

本開示の一実施形態に係る工作機械は、前記センサは、前記シャッタが前記開位置に位置することを検出可能であり、一方の前記移動指令は前記開放指令であり、他方の前記移動指令は前記閉塞指令であり、前記制御部は、前記移動機構に前記閉塞指令を送信する前に、前記シャッタが前記開位置であることを前記センサが検出していない場合に、異常を報知する。 In a machine tool according to an embodiment of the present disclosure, the sensor is capable of detecting that the shutter is in the open position, one of the movement commands is the open command and the other movement command is the close command, and the control unit reports an abnormality if the sensor does not detect that the shutter is in the open position before transmitting the close command to the movement mechanism.

本開示においては、工作機械は、シャッタが開位置に位置するべき場合において、シャッタが前記開位置であることを前記センサが検出していない場合に主軸ヘッドの移動を停止し、シャッタと主軸ヘッドとの衝突を防止することが可能である。 In the present disclosure, the machine tool is capable of stopping the movement of the spindle head when the sensor does not detect that the shutter is in the open position when the shutter should be in the open position, thereby preventing a collision between the shutter and the spindle head.

本開示の一実施形態に係る工作機械は、前記センサは、前記シャッタが前記閉位置に位置することを検出可能であり、一方の前記移動指令は前記開放指令であり、他方の前記移動指令は前記閉塞指令であり、前記制御部は、前記移動機構に前記閉塞指令を送信する前に、前記シャッタが前記閉位置であることを前記センサが検出している場合に、異常を報知する。 In a machine tool according to an embodiment of the present disclosure, the sensor is capable of detecting that the shutter is in the closed position, one of the movement commands is the open command and the other movement command is the close command, and the control unit reports an abnormality when the sensor detects that the shutter is in the closed position before transmitting the close command to the movement mechanism.

本開示においては、工作機械は、シャッタが閉位置に位置するべきでない場合において、シャッタが前記閉位置であることを前記センサが検出している場合に主軸ヘッドの移動を停止し、シャッタと主軸ヘッドとの衝突を防止することが可能である。 In the present disclosure, the machine tool is capable of stopping the movement of the spindle head when the sensor detects that the shutter is in the closed position when the shutter should not be in the closed position, thereby preventing a collision between the shutter and the spindle head.

本開示の一実施形態に係る工作機械は、前記制御部は、前記主軸ヘッドに保持させる前記工具を交換させる工具交換指令をプログラムから読み出した後に、前記工具交換指令に基づく駆動信号を送信するように構成されており、前記工具交換指令の読み出し後、前記駆動信号の送信前に、一方の前記移動指令が実行される場合の前記シャッタの目標位置と、前記センサによる検出結果とが対応するか否かを判定する。 In a machine tool according to an embodiment of the present disclosure, the control unit is configured to read from a program a tool change command for changing the tool held by the spindle head, and then transmit a drive signal based on the tool change command, and after reading the tool change command and before transmitting the drive signal, it is determined whether the target position of the shutter when one of the movement commands is executed corresponds to the detection result by the sensor.

本開示においては、工作機械は、主軸ヘッドが開口部を通過する移動を開始する前に異常の有無を判定することが可能である。 In this disclosure, the machine tool is able to determine whether or not there is an abnormality before the spindle head begins to move through the opening.

本開示の一実施形態に係る工作機械は、前記制御部は、前記移動機構に前記移動指令を送信してから一定時間経過後、前記センサの検出結果が変化したか否かを判定し、変化していないと判定した場合に、異常を報知する。 In a machine tool according to one embodiment of the present disclosure, the control unit determines whether the detection result of the sensor has changed after a certain time has elapsed since the movement command was sent to the movement mechanism, and if it determines that the detection result has not changed, reports an abnormality.

本開示においては、工作機械は、移動機構が移動指令を正しく実行したことを検知できない場合に異常を報知することが可能である。 In this disclosure, the machine tool is capable of reporting an abnormality when it cannot detect that the movement mechanism has correctly executed a movement command.

本開示の一実施形態に係る制御方法は、ワークを加工するための工具を着脱可能に保持する主軸ヘッドと、前記主軸ヘッドに保持させる前記工具を交換する工具交換装置と、前記工具交換装置を覆い、開口部を備えるカバーと、前記開口部を開放する開位置と、前記開口部を閉じる閉位置との間を移動可能であるシャッタと、前記シャッタが前記開位置に位置すること、または閉位置に位置することのいずれか一方を検出可能なセンサと、開放指令を受信した場合に前記シャッタを前記開位置に移動させ、閉塞指令を受信した場合に前記シャッタを前記閉位置に移動させる移動機構と、前記移動機構に、前記開放指令または前記閉塞指令を含む移動指令を送信する制御部とを備える工作機械の制御方法であって、前記移動機構に前記開放指令または前記閉塞指令のいずれか一方の前記移動指令を送信後、前記開放指令または前記閉塞指令の他方の前記移動指令を前記移動機構に送信する前に、一方の前記移動指令が実行される場合の前記シャッタの目標位置と、前記センサによる検出結果とが対応するか否かを判定し、対応しないと判定した場合に異常を報知する。 A control method according to an embodiment of the present disclosure is a control method for a machine tool including a spindle head that detachably holds a tool for machining a workpiece, a tool exchange device that exchanges the tool held by the spindle head, a cover that covers the tool exchange device and has an opening, a shutter that can move between an open position that opens the opening and a closed position that closes the opening, a sensor that can detect whether the shutter is in the open position or the closed position, a movement mechanism that moves the shutter to the open position when an open command is received and moves the shutter to the closed position when a close command is received, and a control unit that transmits a movement command including the open command or the close command to the movement mechanism, and after transmitting the movement command of either the open command or the close command to the movement mechanism, a determination is made as to whether the target position of the shutter when one of the movement commands is executed corresponds to the detection result by the sensor before transmitting the other movement command of the open command or the close command to the movement mechanism, and an abnormality is notified when it is determined that they do not correspond.

本開示においては、工作機械は、検出機構(センサ)を一つのみ備えることによって、センサの故障などが発生した場合に異常を報知して主軸ヘッドの移動を停止することが出来るので、コストを削減しつつ、シャッタと主軸ヘッドの衝突を防止することが可能である。 In this disclosure, the machine tool is equipped with only one detection mechanism (sensor), and if a sensor failure or other problem occurs, it can report an abnormality and stop the movement of the spindle head, thereby reducing costs and preventing collisions between the shutter and the spindle head.

本開示の一実施形態に係るプログラムは、ワークを加工するための工具を着脱可能に保持する主軸ヘッドと、前記主軸ヘッドに保持させる前記工具を交換する工具交換装置と、前記工具交換装置を覆い、開口部を備えるカバーと、前記開口部を開放する開位置と、前記開口部を閉じる閉位置との間を移動可能であるシャッタと、前記シャッタが前記開位置に位置すること、または閉位置に位置することのいずれか一方を検出可能なセンサと、開放指令を受信した場合に前記シャッタを前記開位置に移動させ、閉塞指令を受信した場合に前記シャッタを前記閉位置に移動させる移動機構と、前記移動機構に、前記開放指令または前記閉塞指令を含む移動指令を送信する制御部とを備える工作機械を制御するプログラムであって、前記移動機構に前記開放指令または前記閉塞指令のいずれか一方の前記移動指令を送信後、前記開放指令または前記閉塞指令の他方の前記移動指令を前記移動機構に送信する前に、一方の前記移動指令が実行される場合の前記シャッタの目標位置と、前記センサによる検出結果とが対応するか否かを判定し、対応しないと判定した場合に異常を報知する処理をコンピュータに実行させる。 A program according to an embodiment of the present disclosure is a program for controlling a machine tool including a spindle head that detachably holds a tool for machining a workpiece, a tool exchange device that exchanges the tool held by the spindle head, a cover that covers the tool exchange device and has an opening, a shutter that can move between an open position that opens the opening and a closed position that closes the opening, a sensor that can detect whether the shutter is in the open position or the closed position, a movement mechanism that moves the shutter to the open position when an open command is received and moves the shutter to the closed position when a close command is received, and a control unit that transmits a movement command including the open command or the close command to the movement mechanism, and after transmitting the movement command of either the open command or the close command to the movement mechanism, the program causes a computer to execute a process of determining whether the target position of the shutter when one of the movement commands is executed corresponds to the detection result by the sensor, and notifying an abnormality when it is determined that they do not correspond.

本開示においては、工作機械は、検出機構(センサ)を一つのみ備えることによって、センサの故障などが発生した場合に異常を報知して主軸ヘッドの移動を停止することが出来るので、コストを削減しつつ、シャッタと主軸ヘッドの衝突を防止することが可能である。 In this disclosure, the machine tool is equipped with only one detection mechanism (sensor), and if a sensor failure or other problem occurs, it can report an abnormality and stop the movement of the spindle head, thereby reducing costs and preventing collisions between the shutter and the spindle head.

上記ブログラムが記憶されたコンピュータによって読取可能な記憶媒体も新規で有用である。 A computer-readable storage medium on which the above program is stored is also novel and useful.

本開示の一実施形態に係る工作機械にあっては、検出機構が一つである場合においてもシャッタと主軸ヘッドの衝突を防止することが可能である。 In a machine tool according to one embodiment of the present disclosure, it is possible to prevent collision between the shutter and the spindle head even when there is only one detection mechanism.

前方右上方から見た工作機械の斜視図である。FIG. 2 is a perspective view of the machine tool as viewed from the upper right front. 前方右下方から見た工作機械の斜視図である。FIG. 2 is a perspective view of the machine tool as viewed from the lower front right. マガジンカバーを省略した、後方右上方から見た工作機械の斜視図である。FIG. 2 is a perspective view of the machine tool as viewed from the upper right rear with the magazine cover omitted. マガジンカバーを省略した、工作機械の右側面図である。FIG. 2 is a right side view of the machine tool with the magazine cover omitted. シャッタが開位置に位置する場合のマガジンカバーの内部を示す断面図である。4 is a cross-sectional view showing the inside of the magazine cover when the shutter is in an open position. FIG. シャッタが閉位置に位置する場合のマガジンカバーの内部を示す断面図である。4 is a cross-sectional view showing the inside of the magazine cover when the shutter is in a closed position. FIG. 工具交換時の主軸の動作を示す説明図である。FIG. 11 is an explanatory diagram showing the operation of the spindle during tool replacement. 工具交換時の主軸の動作を示す説明図である。FIG. 11 is an explanatory diagram showing the operation of the spindle during tool replacement. 制御装置の構成例を示すブロック図である。FIG. 2 is a block diagram showing a configuration example of a control device. 実施形態1に係る制御装置の処理を説明するフローチャートである。4 is a flowchart illustrating processing of the control device according to the first embodiment. 実施形態2に係るマガジンカバーの内部を示す断面図である。FIG. 11 is a cross-sectional view showing the inside of a magazine cover according to a second embodiment. 実施形態2に係る制御装置の処理を説明するフローチャートである。10 is a flowchart illustrating a process of a control device according to a second embodiment.

(実施形態1)
以下実施形態1に係る工作機械及び制御装置について図面に基づき説明する。以下の説明では、図に示す上下前後左右を使用する。なお、工作機械1の左右方向はX軸方向に対応し、上下方向はY軸方向に対応し、前後方向はZ軸方向に対応する。また、本実施形態に記載する「NC」とは「Numerical Control」の略称である。
(Embodiment 1)
A machine tool and a control device according to a first embodiment will be described below with reference to the drawings. In the following description, up, down, front, back, left and right as shown in the drawings will be used. Note that the left and right direction of the machine tool 1 corresponds to the X-axis direction, the up and down direction corresponds to the Y-axis direction, and the front and back direction corresponds to the Z-axis direction. Also, "NC" in this embodiment is an abbreviation for "Numerical Control."

図1は、前方右上方から見た工作機械1の斜視図である。図2は、前方右下方から見た工作機械1の斜視図である。図3は、マガジンカバーを省略した、後方右上方から見た工作機械1の斜視図である。図4は、マガジンカバーを省略した、工作機械1の右側面図である。本実施形態に係る工作機械1は、主軸7が前後方向に延び、コラム5がX軸方向及びZ軸方向に移動するコラムトラバース型の工作機械である。工作機械1は、基台2、コラム5、X軸移動機構11、Z軸移動機構12、Y軸移動機構13、主軸ヘッド6、主軸7(図2参照)、制御箱8、回転テーブル9、工具交換装置30(図3参照)、マガジンカバー10等を備える。 Figure 1 is a perspective view of the machine tool 1 as viewed from the upper right front. Figure 2 is a perspective view of the machine tool 1 as viewed from the lower right front. Figure 3 is a perspective view of the machine tool 1 as viewed from the upper right rear, omitting the magazine cover. Figure 4 is a right side view of the machine tool 1, omitting the magazine cover. The machine tool 1 according to this embodiment is a column traverse type machine tool in which the spindle 7 extends in the front-rear direction and the column 5 moves in the X-axis direction and the Z-axis direction. The machine tool 1 includes a base 2, a column 5, an X-axis movement mechanism 11, a Z-axis movement mechanism 12, a Y-axis movement mechanism 13, a spindle head 6, a spindle 7 (see Figure 2), a control box 8, a rotary table 9, a tool changer 30 (see Figure 3), a magazine cover 10, etc.

基台2はZ軸方向に長い略直方体状の鉄製土台である。X軸移動機構11は基台2上面後部に設けられ、移動体15をX軸方向に移動可能に支持する。Z軸移動機構12は移動体15上面に設けられる。Z軸移動機構12はコラム5をZ軸方向に移動可能に支持する。コラム5は上下方向に延びる立柱である。コラム5は前面に縦長矩形状の貫通口5A(図3参照)を備える。貫通口5Aはコラム5を前後方向に貫通する。枠カバー20はコラム5前面に取り付けられる。枠カバー20は正面視縦長矩形状の枠体であり、コラム5と、コラム5の前方に位置する主軸ヘッド6との間を覆う。Y軸移動機構13はコラム5前面に設け、主軸ヘッド6をY軸方向に移動可能に支持する。X軸移動機構11、Z軸移動機構12、及びY軸移動機構13は例えば、それぞれガイド及びボールネジを備える。また、X軸移動機構11はX軸モータ611(図9参照)を備え、Z軸移動機構12はZ軸モータ612(図9参照)を備え、Y軸移動機構13はY軸モータ613(図9参照)を備える。なお、以下の説明ではX軸モータ611、Z軸モータ612、Y軸モータ613を総じて主軸移動モータ61(図9参照)と称する。X軸移動機構11、Z軸移動機構12、及びY軸移動機構13は、主軸移動モータ61の動力によって、それぞれ移動体15、コラム5、主軸ヘッド6をガイドに沿って移動させることにより、主軸ヘッド6は移動する。 The base 2 is an iron base having a substantially rectangular parallelepiped shape elongated in the Z-axis direction. The X-axis moving mechanism 11 is provided at the rear of the upper surface of the base 2, and supports the moving body 15 so that it can move in the X-axis direction. The Z-axis moving mechanism 12 is provided on the upper surface of the moving body 15. The Z-axis moving mechanism 12 supports the column 5 so that it can move in the Z-axis direction. The column 5 is a vertically extending upright pillar. The column 5 has a vertically elongated rectangular through hole 5A (see FIG. 3) on the front surface. The through hole 5A penetrates the column 5 in the front-rear direction. The frame cover 20 is attached to the front surface of the column 5. The frame cover 20 is a vertically elongated rectangular frame body when viewed from the front, and covers the space between the column 5 and the spindle head 6 located in front of the column 5. The Y-axis moving mechanism 13 is provided on the front surface of the column 5, and supports the spindle head 6 so that it can move in the Y-axis direction. The X-axis moving mechanism 11, the Z-axis moving mechanism 12, and the Y-axis moving mechanism 13 each have, for example, a guide and a ball screw. The X-axis moving mechanism 11 includes an X-axis motor 611 (see FIG. 9), the Z-axis moving mechanism 12 includes a Z-axis motor 612 (see FIG. 9), and the Y-axis moving mechanism 13 includes a Y-axis motor 613 (see FIG. 9). In the following description, the X-axis motor 611, the Z-axis motor 612, and the Y-axis motor 613 are collectively referred to as the spindle moving motor 61 (see FIG. 9). The X-axis moving mechanism 11, the Z-axis moving mechanism 12, and the Y-axis moving mechanism 13 move the moving body 15, the column 5, and the spindle head 6, respectively, along the guides by the power of the spindle moving motor 61, thereby moving the spindle head 6.

主軸ヘッド6はZ軸方向に延び、Y軸移動機構13によりコラム5前面に沿ってY軸方向に移動可能に設けられる。主軸ヘッド6はY軸方向において加工領域と工具交換領域(図4及び図7参照)の間を移動可能である。加工領域はY軸原点よりも基台2側(下側)の空間に設けられる。Y軸原点はY軸の機械座標が0の位置である。工具交換領域は、Y軸原点に対して加工領域とは反対側(上側)の空間に設けられる。加工領域は回転テーブル9に固定されたワークW(図7参照)の加工を行う領域である。工具交換領域は工具交換装置30による工具交換を行う領域である。工具交換領域はY軸方向において加工領域の上側で、且つZ軸方向にて加工領域と重なる位置に設けられる。 The spindle head 6 extends in the Z-axis direction and is movable in the Y-axis direction along the front surface of the column 5 by the Y-axis moving mechanism 13. The spindle head 6 is movable in the Y-axis direction between the machining area and the tool exchange area (see Figs. 4 and 7). The machining area is provided in the space on the base 2 side (lower side) of the Y-axis origin. The Y-axis origin is the position where the Y-axis machine coordinate is 0. The tool exchange area is provided in the space on the opposite side (upper side) of the machining area with respect to the Y-axis origin. The machining area is an area where the workpiece W (see Fig. 7) fixed to the rotary table 9 is machined. The tool exchange area is an area where tools are exchanged by the tool exchange device 30. The tool exchange area is provided above the machining area in the Y-axis direction and at a position overlapping with the machining area in the Z-axis direction.

主軸ヘッド6は上部カバー28と鎧カバー85を備える。上部カバー28は主軸ヘッド6上面後端部に固定される。上部カバー28は正面視略矩形状の金属板であり、主軸ヘッド6上面後端部から上方に延出する。鎧カバー85は主軸ヘッド6下面後端部に吊り下げた状態で固定される。鎧カバー85は上下方向に並べられる複数の金属板を備え、上下方向にテレスコピックに伸縮する。上部カバー28は主軸ヘッド6と一体して上下動することで、コラム5前面の主軸ヘッド6よりも上側の領域を常時覆う。鎧カバー85は主軸ヘッド6の上下動に応じて上下方向に伸縮することで、コラム5前面の主軸ヘッド6よりも下側の領域を常時覆う。 The spindle head 6 is provided with an upper cover 28 and an armor cover 85. The upper cover 28 is fixed to the rear end of the upper surface of the spindle head 6. The upper cover 28 is a metal plate that is generally rectangular when viewed from the front, and extends upward from the rear end of the upper surface of the spindle head 6. The armor cover 85 is fixed in a suspended state to the rear end of the lower surface of the spindle head 6. The armor cover 85 is provided with multiple metal plates arranged in the vertical direction, and telescopically expands and contracts in the vertical direction. The upper cover 28 moves up and down together with the spindle head 6, thereby always covering the area above the spindle head 6 on the front surface of the column 5. The armor cover 85 expands and contracts in the vertical direction in response to the vertical movement of the spindle head 6, thereby always covering the area below the spindle head 6 on the front surface of the column 5.

主軸7はZ軸方向に延びるように、主軸ヘッド6内に設けられる。主軸ヘッド6は主軸7を回転可能に支持する。主軸ヘッド6後部にはモータ保持箱27(図3参照)が固定される。モータ保持箱27は主軸ヘッド6後部から後方に延び、主軸モータ(図示略)を内側に保持する。モータ保持箱27はコラム5の貫通口5Aから後方に突出する。主軸モータの出力軸は前方に延び、主軸7の後端部と同軸上に連結する。 The spindle 7 is provided in the spindle head 6 so as to extend in the Z-axis direction. The spindle head 6 rotatably supports the spindle 7. A motor holding box 27 (see FIG. 3) is fixed to the rear of the spindle head 6. The motor holding box 27 extends rearward from the rear of the spindle head 6 and holds a spindle motor (not shown) inside. The motor holding box 27 protrudes rearward from the through hole 5A of the column 5. The output shaft of the spindle motor extends forward and is coaxially connected to the rear end of the spindle 7.

主軸7は工具装着穴40、ホルダ保持部材19(図7参照)を備える。工具装着穴40は主軸7先端部(前端部)に設けられる。工具装着穴40は主軸7の先端部に向けて拡径する略円錐状の工具装着穴40である。ホルダ保持部材19は工具装着穴40の奥側に設けられる。工具装着穴40には、工具ホルダ90(図7参照)が着脱自在に装着される。工具ホルダ90は一端側に工具91を保持し、他端側にテーパ部とプルスタッド93(図7参照)を備える。テーパ部は略円錐状であり、主軸7の工具装着穴40に密着する。プルスタッド93はテーパ部の頂上部から軸方向に突出する。工具装着穴40にテーパ部を装着すると、ホルダ保持部材19はプルスタッド93を保持し、工具ホルダ90は主軸7に固定される。 The spindle 7 has a tool mounting hole 40 and a holder holding member 19 (see FIG. 7). The tool mounting hole 40 is provided at the tip (front end) of the spindle 7. The tool mounting hole 40 is a generally conical tool mounting hole 40 that expands in diameter toward the tip of the spindle 7. The holder holding member 19 is provided at the back side of the tool mounting hole 40. A tool holder 90 (see FIG. 7) is detachably attached to the tool mounting hole 40. The tool holder 90 holds a tool 91 at one end and has a tapered portion and a pull stud 93 (see FIG. 7) at the other end. The tapered portion is generally conical and fits closely to the tool mounting hole 40 of the spindle 7. The pull stud 93 protrudes in the axial direction from the top of the tapered portion. When the tapered portion is attached to the tool mounting hole 40, the holder holding member 19 holds the pull stud 93, and the tool holder 90 is fixed to the spindle 7.

基台2後部には一対の支持部材17,18が設けられる。支持部材17,18は左右方向に互いに離間し且つ上方に延び、制御箱8を下方から支持する。制御箱8の内部には制御装置50(図9参照)が収納される。制御装置50はCPU51を備え、工作機械1の動作を制御する。基台2上面前側には固定台16を設ける。回転テーブル9は固定台16に固定する。回転テーブル9は主軸ヘッド6の前方に位置する。回転テーブル9は上面にワークW(図7参照)を治具(図示略)で固定し、Y軸方向に平行な回転軸を中心に360°回転可能である。 A pair of support members 17, 18 are provided at the rear of the base 2. The support members 17, 18 are spaced apart from each other in the left-right direction and extend upward, supporting the control box 8 from below. A control device 50 (see FIG. 9) is housed inside the control box 8. The control device 50 has a CPU 51 and controls the operation of the machine tool 1. A fixed base 16 is provided on the front side of the upper surface of the base 2. The rotating table 9 is fixed to the fixed base 16. The rotating table 9 is located in front of the spindle head 6. The rotating table 9 has a workpiece W (see FIG. 7) fixed to its upper surface with a jig (not shown), and can rotate 360° around a rotation axis parallel to the Y-axis direction.

基台2上面前側で且つ左右両側には一対の支持柱21,22が設けられる。図3に示すように、支持柱21と22の互いに対向する夫々の上部の間には連結板23が固定されている。工具交換装置30は連結板23前面に固定される。工具交換装置30は支持柱21,22により、コラム5と回転テーブル9の間で且つ主軸ヘッド6上方に位置する。工具交換装置30は工具マガジン31、減速機32、マガジンモータ33等を備える。工具マガジン31はマガジンベース37と複数のグリップアーム35を備える。マガジンベース37は略円盤状である。連結板23は、前面においてマガジンベース37をZ軸方向に平行な一軸線を中心に回転可能に支持する。減速機32とマガジンモータ33は工具マガジン31に取り付けられる。マガジンモータ33の出力軸(図示略)は減速機32を介してマガジンベース37の回転軸(図示略)と接続している。マガジンモータ33の動力は減速機32を介してマガジンベース37の回転軸に伝達される。複数のグリップアーム35はマガジンベース37外周部に沿って並んで設けられ、径方向外側に向けて放射状に延びる。グリップアーム35の先端部は、工具ホルダ90を水平に寝かせた姿勢で、工具ホルダ90を把持する。なお、グリップアーム35は、その形状について特に限定するものではなく、工具ホルダ90を把持可能な構成であればよい。主軸7と工具交換を行うグリップアーム35は工具マガジン31の工具交換位置C(図7参照)に移動する。工具交換位置Cは工具マガジン31の最下部の位置である。 A pair of support columns 21, 22 are provided on the front side and on both the left and right sides of the upper surface of the base 2. As shown in FIG. 3, a connecting plate 23 is fixed between the upper parts of the support columns 21 and 22 that face each other. The tool changer 30 is fixed to the front of the connecting plate 23. The tool changer 30 is located between the column 5 and the rotary table 9 and above the spindle head 6 by the support columns 21, 22. The tool changer 30 includes a tool magazine 31, a reducer 32, a magazine motor 33, etc. The tool magazine 31 includes a magazine base 37 and a plurality of grip arms 35. The magazine base 37 is approximately disk-shaped. The connecting plate 23 supports the magazine base 37 at the front so that it can rotate around a single axis parallel to the Z-axis direction. The reducer 32 and the magazine motor 33 are attached to the tool magazine 31. The output shaft (not shown) of the magazine motor 33 is connected to the rotation shaft (not shown) of the magazine base 37 via the reducer 32. The power of the magazine motor 33 is transmitted to the rotating shaft of the magazine base 37 via the reducer 32. The multiple grip arms 35 are arranged in a line along the outer periphery of the magazine base 37 and extend radially outward. The tips of the grip arms 35 grip the tool holder 90 with the tool holder 90 lying horizontally. The shape of the grip arms 35 is not particularly limited, and they may be configured to grip the tool holder 90. The grip arms 35, which exchange tools with the spindle 7, move to a tool exchange position C (see FIG. 7) of the tool magazine 31. The tool exchange position C is the lowest position of the tool magazine 31.

図1,図2に示すように、支持柱21,22の夫々の上部の前面には、マガジンカバー10が固定される。マガジンカバー10は箱状であり工具マガジン31の周囲を覆う。本実施形態において、加工領域と工具交換領域とはマガジンカバー10の底壁101によって区切られている。マガジンカバー10は切粉と切削液の飛沫が工具マガジン31に付着するのを防止する。マガジンカバー10の底壁101及び後壁102(図5参照)には開口部103が設けられる。開口部103は工具マガジン31の工具交換位置Cの直下に位置する。開口部103には、マガジンカバー10の内側においてシャッタ104が設けられる。シャッタ104は、底壁101に平行な底面視矩形状の板と後壁102に平行な前面視矩形状の板が組み合わさっており、側面視L字型である。シャッタ104はCPU51の制御により開口部103を閉じる閉位置と、開口部103を開放する開位置との間を移動する。シャッタ104が開位置に位置する時、主軸7は開口部103を通過し、工具交換位置Cに移動することができる。 1 and 2, a magazine cover 10 is fixed to the front of the upper part of each of the support columns 21 and 22. The magazine cover 10 is box-shaped and covers the periphery of the tool magazine 31. In this embodiment, the machining area and the tool exchange area are separated by the bottom wall 101 of the magazine cover 10. The magazine cover 10 prevents chips and cutting fluid from adhering to the tool magazine 31. An opening 103 is provided in the bottom wall 101 and the rear wall 102 (see FIG. 5) of the magazine cover 10. The opening 103 is located directly below the tool exchange position C of the tool magazine 31. A shutter 104 is provided in the opening 103 on the inside of the magazine cover 10. The shutter 104 is a combination of a rectangular plate parallel to the bottom wall 101 and a rectangular plate parallel to the rear wall 102, and is L-shaped in side view. The shutter 104 moves between a closed position where the opening 103 is closed and an open position where the opening 103 is opened under the control of the CPU 51. When the shutter 104 is in the open position, the spindle 7 passes through the opening 103 and can move to the tool change position C.

図5は、シャッタ104が開位置に位置する場合のマガジンカバー10の内部を示す断面図である。図6は、シャッタ104が閉位置に位置する場合のマガジンカバー10の内部を示す断面図である。図5及び図6には、マガジンカバーの前壁100の一部が省略された図を示す。上述の通り、マガジンカバー10の底壁101及び後壁102には開口部103が設けられ、開口部103には、マガジンカバー10の内側においてシャッタ104が設けられる。シャッタ104の左方にはエアシリンダ105が設けられる。エアシリンダ105は、シャッタ104を移動させる移動機構を構成する。エアシリンダ105は、外筒105aとロッド105bを備え、ロッド105bは、外筒105aの右端から外筒105aの内部を出入する。外筒105aの右端側(一端側)にはエア供給を行うことによってロッド105bを外筒105a内に引入れる開バルブ105cが備えられ、左端側(他端側)には、エア供給を行うことによってロッド105bを外筒105a内から押出す閉バルブ105dが備えられる。開バルブ105c及び閉バルブ105dのエア供給はCPU51によって制御される。ロッド105bの右端はシャッタ104に接続されている。開バルブ105cによってエア供給がされた場合、ロッド105b及びシャッタ104は左方に移動し、図5に示すようにシャッタ104は開位置に移動する。閉バルブ105dによってエア供給がされた場合、ロッド105b及びシャッタ104は右方に移動し、図6に示すようにシャッタ104は閉位置に移動する。 Figure 5 is a cross-sectional view showing the inside of the magazine cover 10 when the shutter 104 is in the open position. Figure 6 is a cross-sectional view showing the inside of the magazine cover 10 when the shutter 104 is in the closed position. Figures 5 and 6 show a view in which a part of the front wall 100 of the magazine cover is omitted. As described above, an opening 103 is provided in the bottom wall 101 and the rear wall 102 of the magazine cover 10, and a shutter 104 is provided in the opening 103 inside the magazine cover 10. An air cylinder 105 is provided to the left of the shutter 104. The air cylinder 105 constitutes a moving mechanism that moves the shutter 104. The air cylinder 105 has an outer cylinder 105a and a rod 105b, and the rod 105b enters and exits the inside of the outer cylinder 105a from the right end of the outer cylinder 105a. The right end (one end) of the outer cylinder 105a is provided with an open valve 105c that draws the rod 105b into the outer cylinder 105a by supplying air, and the left end (the other end) is provided with a closed valve 105d that pushes the rod 105b out of the outer cylinder 105a by supplying air. Air supply to the open valve 105c and the closed valve 105d is controlled by the CPU 51. The right end of the rod 105b is connected to the shutter 104. When air is supplied by the open valve 105c, the rod 105b and the shutter 104 move to the left, and the shutter 104 moves to the open position as shown in FIG. 5. When air is supplied by the closed valve 105d, the rod 105b and the shutter 104 move to the right, and the shutter 104 moves to the closed position as shown in FIG. 6.

外筒105aの左端側には、センサ106が設けられる。本実施形態に係るセンサ106は、シャッタ104が開位置に位置することを検出することが可能である。具体的には、センサ106は、例えばロッド105bが外筒105a内にあることを検知可能な磁気センサである。なお、センサ106が磁気センサである場合、ロッド105bは磁性体である。センサ106は、ロッド105bが外筒105a内にあることを検知した場合、シャッタ104が開位置に位置することを検出する。センサ106は、ロッド105bが外筒105a内にない場合、シャッタ104が開位置に位置することを検出しない。 A sensor 106 is provided on the left end side of the outer cylinder 105a. The sensor 106 according to this embodiment is capable of detecting that the shutter 104 is in the open position. Specifically, the sensor 106 is, for example, a magnetic sensor capable of detecting that the rod 105b is in the outer cylinder 105a. Note that, when the sensor 106 is a magnetic sensor, the rod 105b is a magnetic material. When the sensor 106 detects that the rod 105b is in the outer cylinder 105a, it detects that the shutter 104 is in the open position. When the rod 105b is not in the outer cylinder 105a, the sensor 106 does not detect that the shutter 104 is in the open position.

図7及び図8は、工具交換時の主軸7の動作を示す説明図である。工作機械1がワークWを切削する加工状態では、主軸7は加工領域に位置する。主軸7に装着した工具91による加工が終了した後、工作機械1のCPU51は工具交換動作を実行する。工具交換動作は、使用した工具91を工具マガジン31に収納する工具収納動作と、次に使用する工具91を主軸7に装着し、加工を開始する位置へ移動する工具装着動作を含む。主軸7が工具収納時に移動する経路を往路とし、工具装着時に移動する経路を復路とする。図7は往路を示し、図8は復路を示す。なお、本実施形態において「主軸7を移動する」とは、「主軸ヘッド6を移動する」と同義である。 7 and 8 are explanatory diagrams showing the operation of the spindle 7 during tool replacement. In the machining state in which the machine tool 1 cuts the workpiece W, the spindle 7 is located in the machining area. After machining using the tool 91 attached to the spindle 7 is completed, the CPU 51 of the machine tool 1 executes a tool replacement operation. The tool replacement operation includes a tool storage operation in which the used tool 91 is stored in the tool magazine 31, and a tool mounting operation in which the next tool 91 to be used is mounted on the spindle 7 and moved to a position where machining will start. The path along which the spindle 7 moves when storing the tool is called the forward path, and the path along which the spindle 7 moves when mounting the tool is called the return path. FIG. 7 shows the forward path, and FIG. 8 shows the return path. In this embodiment, "moving the spindle 7" is synonymous with "moving the spindle head 6."

往路は、主軸7を加工終了位置Q1から工具交換原点位置Dまで移動する経路(図7参照)である。復路は、主軸7を工具交換原点位置Dから加工開始位置Q2まで移動する経路(図8参照)である。加工終了位置Q1は、NCプログラムに従ってワークWの加工が終了した時の主軸7の位置である。工具交換原点位置Dは、工具交換領域に設けられる工具交換時の基準点であり、工具マガジン31が回転可能な位置である。加工開始位置Q2は、NCプログラムに従ってワークWの加工を開始する時の主軸7の位置であり、工具交換後に主軸7を移動させる位置である。 The outward path is the path along which the spindle 7 moves from the machining end position Q1 to the tool change origin position D (see FIG. 7). The return path is the path along which the spindle 7 moves from the tool change origin position D to the machining start position Q2 (see FIG. 8). The machining end position Q1 is the position of the spindle 7 when machining of the workpiece W ends according to the NC program. The tool change origin position D is a reference point for tool change that is provided in the tool change area, and is a position to which the tool magazine 31 can rotate. The machining start position Q2 is the position of the spindle 7 when machining of the workpiece W starts according to the NC program, and is the position to which the spindle 7 is moved after tool change.

以下、図7を参照し、往路について説明する。CPU51は、主軸7を加工終了位置Q1からZ軸+方向に移動し、第一復帰位置A1を経由して、工具交換準備位置Bまで移動する。第一復帰位置A1は、加工終了位置Q1に対してZ軸+方向に離れ、主軸7に装着した工具91が回転テーブル9上に固定したワークW及び治具に接触しない位置に設定される。なお、第一復帰位置A1は、X軸方向及びY軸方向において、加工終了位置Q1と同一座標の位置である。工具交換準備位置Bは、工具交換位置CとX軸方向及びZ軸方向において同一座標の位置である。工具交換位置Cは、工具マガジン31のグリップアーム35が工具91を保持する工具ホルダ90を把持する位置である。工具交換準備位置Bは、工具交換位置Cに対してY軸-方向に離れ、グリップアーム35による工具ホルダ90の把持及び解放をY軸方向に行うため主軸7を配置する位置である。 The forward path will be described below with reference to FIG. 7. The CPU 51 moves the spindle 7 from the machining end position Q1 in the Z-axis + direction, and moves it to the tool change preparation position B via the first return position A1. The first return position A1 is set to a position away from the machining end position Q1 in the Z-axis + direction, where the tool 91 attached to the spindle 7 does not contact the workpiece W and the jig fixed on the rotary table 9. The first return position A1 is a position with the same coordinates as the machining end position Q1 in the X-axis and Y-axis directions. The tool change preparation position B is a position with the same coordinates as the tool change position C in the X-axis and Z-axis directions. The tool change position C is a position where the grip arm 35 of the tool magazine 31 grips the tool holder 90 that holds the tool 91. The tool change preparation position B is a position away from the tool change position C in the Y-axis - direction, where the spindle 7 is positioned so that the grip arm 35 grips and releases the tool holder 90 in the Y-axis direction.

次いで、CPU51は、主軸7を工具交換準備位置Bから工具交換位置Cまで上昇する。このとき、工具マガジン31直下にある空のグリップアーム35に対して、主軸7に装着した工具ホルダ90が下方から係合する。この状態で、CPU51は、主軸7を工具交換位置CからZ軸+方向に後進し、工具交換原点位置Dまで移動する。このとき、主軸7から工具ホルダ90が引き抜かれる。これにより工具収納時における主軸7の往路の移動が完了する。 Then, the CPU 51 raises the spindle 7 from the tool change preparation position B to the tool change position C. At this time, the tool holder 90 attached to the spindle 7 engages from below with the empty grip arm 35 located directly below the tool magazine 31. In this state, the CPU 51 moves the spindle 7 backward in the +Z direction from the tool change position C to the tool change origin position D. At this time, the tool holder 90 is pulled out of the spindle 7. This completes the forward movement of the spindle 7 when storing tools.

以下、図8を参照し、復路について説明する。CPU51は工具マガジン31を回転し、次に装着する工具91を保持するグリップアーム35を工具マガジン31直下に位置決めする。このとき、工具91が主軸7の前方に位置する。この状態で、図8に示すように、CPU51は、工具交換原点位置Dにある主軸7をZ軸-方向に前進し、工具交換位置Cまで移動する。これにより、主軸7に工具91が装着される。 The return path will now be described with reference to Figure 8. The CPU 51 rotates the tool magazine 31 and positions the grip arm 35, which holds the next tool 91 to be loaded, directly below the tool magazine 31. At this time, the tool 91 is positioned in front of the spindle 7. In this state, as shown in Figure 8, the CPU 51 moves the spindle 7, which is at tool change origin position D, forward in the negative direction of the Z axis, to tool change position C. This loads the tool 91 onto the spindle 7.

主軸7に工具91が装着されると、CPU51は、主軸7を工具交換位置Cから工具交換準備位置Bまで下降する。次いで、CPU51は、主軸7を工具交換準備位置Bから第二復帰位置A2まで移動した後、加工開始位置Q2に移動する。第二復帰位置A2は、加工開始位置Q2に対してZ軸+方向に離れ、主軸7に装着した工具91が回転テーブル9上に固定したワークW及び治具に接触しない位置に設定される。なお、第二復帰位置A2は、X軸方向及びY軸方向において、加工開始位置Q2と同一座標の位置である。これにより工具装着時における主軸7の復路の移動が完了し、一連の工具交換動作が完了する。 When the tool 91 is attached to the spindle 7, the CPU 51 lowers the spindle 7 from the tool change position C to the tool change preparation position B. Next, the CPU 51 moves the spindle 7 from the tool change preparation position B to the second return position A2, and then moves it to the machining start position Q2. The second return position A2 is set to a position away from the machining start position Q2 in the +Z axis direction, where the tool 91 attached to the spindle 7 does not contact the workpiece W and jig fixed on the rotary table 9. The second return position A2 is at the same coordinate as the machining start position Q2 in the X-axis and Y-axis directions. This completes the return movement of the spindle 7 when the tool is attached, and completes the series of tool changing operations.

図9は、制御装置50の構成例を示すブロック図である。制御装置50は、CPU(制御部)51、RAM52、記憶部53等を備える。記憶部53は、例えばEEPROM、EPROM、ハードディスク等の記憶媒体を有する。記憶部53は、ワークを加工するNCプログラムやシャッタ制御プログラム等の各種プログラム等を記憶する。なお、記憶媒体は、例えば、図9に示す可搬型記憶媒体53a(例えばCD-ROM及びフラッシュメモリ等)であってもよい。この場合、可搬型記憶媒体53aに記憶した各種プログラム等を記憶部53に格納してもよく、可搬型記憶媒体53aを制御装置50に接続して各種プログラムを読み出してもよい。また、ネットワークを介してサーバから各種プログラム等を記憶部53に格納してもよい。CPU51は、各種プログラムをRAM52に読み込んで各種プログラムを実行する。すなわち各種プログラムは、持ち運び可能な、または持ち運び不可である記憶媒体に記憶され、プログラム製品を構成する。 Figure 9 is a block diagram showing an example of the configuration of the control device 50. The control device 50 includes a CPU (control unit) 51, a RAM 52, a storage unit 53, and the like. The storage unit 53 has a storage medium such as an EEPROM, an EPROM, or a hard disk. The storage unit 53 stores various programs such as an NC program for processing a workpiece and a shutter control program. The storage medium may be, for example, a portable storage medium 53a (such as a CD-ROM or a flash memory) shown in Figure 9. In this case, the various programs stored in the portable storage medium 53a may be stored in the storage unit 53, or the portable storage medium 53a may be connected to the control device 50 to read out the various programs. In addition, the various programs may be stored in the storage unit 53 from a server via a network. The CPU 51 reads the various programs into the RAM 52 and executes the various programs. In other words, the various programs are stored in a storage medium that is portable or non-portable, and constitute a program product.

操作パネル25は、制御装置50から受信した各種情報の表示、及び制御装置50に送信する各種情報の入力が可能である。制御装置50は、工作機械1の故障を検知した場合、操作パネル25に故障を検知した旨を表示させることによって異常を報知する。 The operation panel 25 is capable of displaying various information received from the control device 50 and inputting various information to be sent to the control device 50. When the control device 50 detects a malfunction of the machine tool 1, it notifies the user of the abnormality by displaying a message indicating that a malfunction has been detected on the operation panel 25.

センサ106は、シャッタ104が開位置に位置するか否かを検出し、検出結果を制御装置50に出力する。主軸移動モータ61は、エンコーダ61aを有する。エンコーダ61aは主軸移動モータ61の回転位置を示す信号を継続的に制御装置50に出力する。主軸移動モータ61の回転位置を示す信号が入力された制御装置50のCPU51は、主軸ヘッド6の位置を継続して取得することが可能である。 The sensor 106 detects whether the shutter 104 is in the open position and outputs the detection result to the control device 50. The spindle movement motor 61 has an encoder 61a. The encoder 61a continuously outputs a signal indicating the rotational position of the spindle movement motor 61 to the control device 50. The CPU 51 of the control device 50 to which the signal indicating the rotational position of the spindle movement motor 61 has been input is able to continuously obtain the position of the spindle head 6.

制御装置50は、エアシリンダ105に、シャッタ104を開位置に移動させる開放指令またはシャッタ104を閉位置に移動させる閉塞指令を含む移動指令を送信する。また、制御装置50は、主軸移動モータ61に、NCプログラムから読み出した保持する工具91を交換させる工具交換指令に基づく駆動信号をマガジンモータ33及び主軸移動モータ61に送信する。 The control device 50 transmits to the air cylinder 105 a movement command including an open command to move the shutter 104 to an open position or a close command to move the shutter 104 to a closed position. The control device 50 also transmits to the magazine motor 33 and the spindle movement motor 61 a drive signal based on a tool change command read from the NC program to cause the spindle movement motor 61 to change the tool 91 held by the tool change command.

制御装置50のCPU51は、NCプログラムから工具交換指令を読み出すと、読み出した工具交換指令に基づく駆動信号をマガジンモータ33及び主軸移動モータ61に送信する。駆動信号を受信したマガジンモータ33は、主軸ヘッド6に装着される工具91が工具交換位置Cに位置するように、工具マガジン31を回転させる。駆動信号を受信した主軸移動モータ61は、図7及び図8に示すように主軸ヘッド6を移動させ、保持する工具91を交換させる。CPU51は、主軸ヘッド6が加工領域から工具交換領域へ移動する前にエアシリンダ105に開放指令を送信し、シャッタ104を開位置に移動させる。また、CPU51は、主軸ヘッド6が工具交換領域から加工領域へ移動した後に、エアシリンダ105に閉塞指令を送信し、シャッタ104を閉位置に移動させる。この動作により、ワークの加工時においてはシャッタ104が開口部103を閉塞し、マガジンカバー10内への切粉と切削液の飛沫の侵入を防ぎつつ、工具交換時においては主軸ヘッド6をマガジンカバー10に干渉することなくマガジンカバー10内に移動させることが可能である。 When the CPU 51 of the control device 50 reads out a tool change command from the NC program, it transmits a drive signal based on the read out tool change command to the magazine motor 33 and the spindle movement motor 61. The magazine motor 33, which has received the drive signal, rotates the tool magazine 31 so that the tool 91 attached to the spindle head 6 is located at the tool change position C. The spindle movement motor 61, which has received the drive signal, moves the spindle head 6 as shown in Figures 7 and 8, and replaces the tool 91 it holds. Before the spindle head 6 moves from the machining area to the tool change area, the CPU 51 transmits an open command to the air cylinder 105, and moves the shutter 104 to the open position. After the spindle head 6 moves from the tool change area to the machining area, the CPU 51 transmits a close command to the air cylinder 105, and moves the shutter 104 to the closed position. This action allows the shutter 104 to close the opening 103 when machining the workpiece, preventing chips and cutting fluid from splashing into the magazine cover 10, while allowing the spindle head 6 to be moved into the magazine cover 10 without interfering with the magazine cover 10 when changing tools.

センサ106は、工具マガジン31に収納された工具91に付着していた切削水による回路ショート等により、シャッタ104が開位置に位置するにも関わらず、開位置に位置することを検出しない、または閉位置に位置するにも関わらず、開位置に位置すると検出するといった故障を起こす場合がある。センサ106が故障した場合、CPU51は、実際のシャッタ104の位置を取得することが出来ないため、主軸ヘッド6の移動を継続すると、主軸ヘッド6がシャッタ104に衝突する恐れがある。CPU51は、エアシリンダ105に送信した開放指令または閉塞指令のいずれか一方の移動指令を記憶部53に記憶させ、記憶された移動指令とは異なる他方の移動指令をエアシリンダに送信する前に、記憶させた一方の移動指令が実行される場合のシャッタ104の目標位置と、センサ106の検出結果が対応するか否かを判定することにより、センサ106が故障したか否かを判定する。なお、移動指令が開放指令である場合、シャッタ104の目標位置は開位置であり、移動指令が閉塞指令である場合、シャッタ104の目標位置は閉位置である。また、一方の移動指令が開放指令である場合、他方の移動指令は閉塞指令であり、一方の移動指令が閉塞指令である場合、他方の移動指令は開放指令である。 The sensor 106 may fail to detect that the shutter 104 is in the open position even though it is in the open position, or may fail to detect that the shutter 104 is in the open position even though it is in the closed position, due to a circuit short circuit caused by cutting water attached to the tool 91 stored in the tool magazine 31. If the sensor 106 fails, the CPU 51 cannot obtain the actual position of the shutter 104, so that if the movement of the spindle head 6 continues, the spindle head 6 may collide with the shutter 104. The CPU 51 stores in the memory unit 53 either the open command or the close command transmitted to the air cylinder 105, and before transmitting the other command different from the stored command to the air cylinder, determines whether the target position of the shutter 104 when the stored command is executed corresponds to the detection result of the sensor 106, thereby determining whether the sensor 106 has failed. Note that if the movement command is an open command, the target position of the shutter 104 is the open position, and if the movement command is a close command, the target position of the shutter 104 is the closed position. Also, when one movement command is an open command, the other movement command is a close command, and when one movement command is a close command, the other movement command is an open command.

図10は、実施形態1に係る制御装置50の処理を説明するフローチャートである。制御装置50のCPU51は、例えば、主軸ヘッド6が保持する工具91によるワークWの加工の終了後、記憶部53からシャッタ制御プログラムを読み出し、以下の処理を開始する。CPU51は、NCプログラムから工具交換指令を読み出す(S1)。CPU51は、記憶部53に記憶されている移動指令が閉塞指令であり、シャッタ104が開位置に位置することをセンサ106が検出しているか否かを判定する(S2)。記憶部53に記憶されている移動指令が閉塞指令であり、シャッタ104が開位置に位置することをセンサ106が検出している場合(S2:YES)、CPU51は異常を報知し(S14)、処理を終了する。 Figure 10 is a flowchart explaining the processing of the control device 50 according to the first embodiment. For example, after the machining of the workpiece W by the tool 91 held by the spindle head 6 is completed, the CPU 51 of the control device 50 reads the shutter control program from the memory unit 53 and starts the following processing. The CPU 51 reads a tool change command from the NC program (S1). The CPU 51 determines whether the movement command stored in the memory unit 53 is a closing command and whether the sensor 106 detects that the shutter 104 is in the open position (S2). If the movement command stored in the memory unit 53 is a closing command and the sensor 106 detects that the shutter 104 is in the open position (S2: YES), the CPU 51 reports an abnormality (S14) and ends the processing.

記憶部53に記憶されている移動指令が閉塞指令であり、シャッタ104が開位置に位置することをセンサ106が検出していない場合(S2:NO)、CPU51は、エアシリンダ105に開放指令を送信する(S3)。CPU51は、開放指令を送信後一定時間が経過したか否かを判定する(S4)。一定時間が経過していない場合(S4:NO)、CPU51は、S4に処理を戻し、一定時間が経過するまで処理を繰り返す。一定時間が経過した場合(S4:YES)、CPU51は、センサ106の検出結果が変化し、シャッタ104が開位置に位置することをセンサ106が検出しているか否かを判定する(S5)。シャッタ104が開位置に位置することをセンサ106が検出していない場合(S5:NO)、CPU51は異常を報知し(S14)、処理を終了する。 If the movement command stored in the memory unit 53 is a closing command and the sensor 106 does not detect that the shutter 104 is in the open position (S2: NO), the CPU 51 sends an opening command to the air cylinder 105 (S3). The CPU 51 determines whether a certain time has elapsed since sending the opening command (S4). If the certain time has not elapsed (S4: NO), the CPU 51 returns to S4 and repeats the process until the certain time has elapsed. If the certain time has elapsed (S4: YES), the CPU 51 determines whether the detection result of the sensor 106 has changed and whether the sensor 106 has detected that the shutter 104 is in the open position (S5). If the sensor 106 has not detected that the shutter 104 is in the open position (S5: NO), the CPU 51 reports an abnormality (S14) and ends the process.

シャッタ104が開位置であることをセンサ106が検出している場合(S5:YES)、CPU51は、工具交換指令に基づく駆動信号をマガジンモータ33及び主軸移動モータ61に送信する(S6)。駆動信号を受信した主軸移動モータ61は、図7に示すように主軸ヘッド6を加工領域から工具交換領域に移動させ、保持させる工具91を交換後、図8に示すように主軸ヘッド6を工具交換領域から加工領域に移動させる。CPU51は、継続的に取得した主軸ヘッド6の位置に基づき、主軸ヘッド6が工具交換領域から加工領域に移動したか否かを判定する(S7)。主軸ヘッド6が工具交換領域から加工領域に移動していない場合(S7:NO)、CPU51は処理をS7に返し、主軸ヘッド6が工具交換領域から加工領域に移動するまで処理を繰り返す。主軸ヘッド6が工具交換領域から加工領域に移動した場合(S7:YES)、CPU51は、記憶部53に記憶されている移動指令が開放指令であり、シャッタ104が開位置に位置することをセンサ106が検出しているか否かを判定する(S8)。記憶部53に記憶されている移動指令が開放指令であり、シャッタ104が開位置に位置することをセンサ106が検出していない場合(S8:NO)、CPU51は異常を報知し(S14)、処理を終了する。 If the sensor 106 detects that the shutter 104 is in the open position (S5: YES), the CPU 51 transmits a drive signal based on the tool change command to the magazine motor 33 and the spindle movement motor 61 (S6). The spindle movement motor 61 that receives the drive signal moves the spindle head 6 from the machining area to the tool change area as shown in FIG. 7, and after changing the tool 91 to be held, moves the spindle head 6 from the tool change area to the machining area as shown in FIG. 8. The CPU 51 determines whether the spindle head 6 has moved from the tool change area to the machining area based on the position of the spindle head 6 that is continuously acquired (S7). If the spindle head 6 has not moved from the tool change area to the machining area (S7: NO), the CPU 51 returns the process to S7 and repeats the process until the spindle head 6 moves from the tool change area to the machining area. When the spindle head 6 moves from the tool exchange area to the machining area (S7: YES), the CPU 51 determines whether the movement command stored in the memory unit 53 is an open command and whether the sensor 106 detects that the shutter 104 is in the open position (S8). When the movement command stored in the memory unit 53 is an open command and the sensor 106 does not detect that the shutter 104 is in the open position (S8: NO), the CPU 51 reports an abnormality (S14) and ends the process.

記憶部53に記憶されている移動指令が開放指令であり、シャッタ104が開位置に位置することをセンサ106が検出している場合(S8:YES)、CPU51は、エアシリンダ105に閉塞指令を送信する(S9)。CPU51は、閉塞指令を送信後、一定時間が経過したか否かを判定する(S10)。一定時間が経過していない場合(S10:NO)、CPU51は、S10に処理を戻し、一定時間が経過するまで処理を繰り返す。一定時間が経過した場合(S10:YES)、CPU51は、センサ106の検出結果が変化し、シャッタ104が開位置に位置することをセンサ106が検出しているか否かを判定するかを判定する(S11)。シャッタ104が開位置に位置することをセンサ106が検出している場合(S11:YES)、CPU51は、異常を報知し(S14)、処理を終了する。 If the movement command stored in the memory unit 53 is an open command and the sensor 106 detects that the shutter 104 is in the open position (S8: YES), the CPU 51 sends a close command to the air cylinder 105 (S9). The CPU 51 determines whether a certain time has elapsed after sending the close command (S10). If the certain time has not elapsed (S10: NO), the CPU 51 returns to S10 and repeats the process until the certain time has elapsed. If the certain time has elapsed (S10: YES), the CPU 51 determines whether the detection result of the sensor 106 has changed and whether the sensor 106 has detected that the shutter 104 is in the open position (S11). If the sensor 106 detects that the shutter 104 is in the open position (S11: YES), the CPU 51 reports an abnormality (S14) and ends the process.

シャッタ104が開位置に位置することをセンサ106が検出していない場合(S11:NO)、CPU51は、主軸ヘッド6にワークWの加工を実行させ(S12)、ワークWに対するすべての加工が終了したか否かを判定する(S13)。すべての加工が終了した場合(S13:YES)、CPU51は、処理を終了する。すべての加工が終了していない場合(S13:NO)、CPU51は処理をS1に返し、プログラムから工具交換指令を読み出す。 If the sensor 106 does not detect that the shutter 104 is in the open position (S11: NO), the CPU 51 causes the spindle head 6 to perform machining of the workpiece W (S12) and determines whether all machining of the workpiece W has been completed (S13). If all machining has been completed (S13: YES), the CPU 51 ends the process. If all machining has not been completed (S13: NO), the CPU 51 returns the process to S1 and reads a tool change command from the program.

以上の構成及び処理によれば、センサ106によってシャッタ104の位置の確認を行いながら主軸ヘッド6を移動させることにより、主軸ヘッド6のシャッタ104への衝突を防止しながら保持する工具91の交換を行うことが可能である。また、エアシリンダ105に送信される移動指令とセンサ106の検出結果に基づいて、センサ106の異常を報知することが可能である。これにより、設けられるセンサ106の個数が一つであっても、主軸ヘッド6のシャッタ104への衝突を防止することが可能である。 According to the above configuration and processing, by moving the spindle head 6 while checking the position of the shutter 104 with the sensor 106, it is possible to replace the tool 91 being held while preventing the spindle head 6 from colliding with the shutter 104. In addition, it is possible to report an abnormality in the sensor 106 based on the movement command sent to the air cylinder 105 and the detection result of the sensor 106. As a result, even if only one sensor 106 is provided, it is possible to prevent the spindle head 6 from colliding with the shutter 104.

(実施形態2)
以下、実施形態2について、実施形態1と異なる点を説明する。実施形態1と共通する処理及び構成には実施形態1と同一の参照符号を付し、その説明を省略する。
(Embodiment 2)
Hereinafter, the second embodiment will be described with respect to the differences from the first embodiment. The same reference numerals as in the first embodiment are used for the processes and configurations common to the first embodiment, and the description thereof will be omitted.

図11は、実施形態2に係るマガジンカバー10の内部を示す断面図である。実施形態2に係る工作機械1において、センサ106は、エアシリンダ105の外筒105aの右端付近に設けられる。実施形態2にかかるセンサ106は、シャッタ104が閉位置に位置することを検出することが可能である。具体的には、センサ106は、例えばロッド105bが外筒105a外にあることを検知可能な磁気センサであり、ロッド105bが外筒105a外にあることを検知した場合、シャッタ104が閉位置に位置することを検出する。センサ106は、ロッド105bが外筒105a外にない場合、シャッタ104が閉位置に位置することを検出しない。 Figure 11 is a cross-sectional view showing the inside of the magazine cover 10 according to the second embodiment. In the machine tool 1 according to the second embodiment, the sensor 106 is provided near the right end of the outer cylinder 105a of the air cylinder 105. The sensor 106 according to the second embodiment is capable of detecting that the shutter 104 is in the closed position. Specifically, the sensor 106 is, for example, a magnetic sensor capable of detecting that the rod 105b is outside the outer cylinder 105a, and when it detects that the rod 105b is outside the outer cylinder 105a, it detects that the shutter 104 is in the closed position. When the rod 105b is not outside the outer cylinder 105a, the sensor 106 does not detect that the shutter 104 is in the closed position.

図12は、実施形態2に係る制御装置50の処理を説明するフローチャートである。制御装置50は、例えば、主軸ヘッド6が保持する工具91によるワークWの加工の終了後、以下の処理を開始する。CPU51は、プログラムから工具交換指令を読み出す(S21)。CPU51は、記憶部53に記憶されている移動指令が閉塞指令であり、シャッタ104が閉位置に位置することをセンサ106が検出しているか否かを判定する(S22)。記憶部53に記憶されている移動指令が閉塞指令であり、シャッタ104が閉位置に位置することをセンサ106が検出していない場合(S22:NO)、CPU51は異常を報知し(S34)、処理を終了する。 Figure 12 is a flowchart explaining the processing of the control device 50 according to the second embodiment. The control device 50 starts the following processing, for example, after the machining of the workpiece W by the tool 91 held by the spindle head 6 is completed. The CPU 51 reads a tool change command from the program (S21). The CPU 51 determines whether the movement command stored in the memory unit 53 is a closing command and whether the sensor 106 detects that the shutter 104 is in the closed position (S22). If the movement command stored in the memory unit 53 is a closing command and the sensor 106 does not detect that the shutter 104 is in the closed position (S22: NO), the CPU 51 reports an abnormality (S34) and ends the processing.

記憶部53に記憶されている移動指令が閉塞指令であり、シャッタ104が閉位置に位置することをセンサ106が検出している場合(S22:YES)、CPU51は、エアシリンダ105に開放指令を送信する(S23)。CPU51は、開放指令を送信後一定時間が経過したか否かを判定する(S24)。一定時間が経過していない場合(S24:NO)、CPU51は、S24に処理を戻し、一定時間が経過するまで処理を繰り返す。一定時間が経過した場合(S24:YES)、CPU51は、センサ106の検出結果が変化し、シャッタ104が閉位置に位置することをセンサ106が検出しているか否かを判定する(S25)。シャッタ104が閉位置に位置することをセンサ106が検出している場合(S25:YES)、CPU51は異常を報知し(S34)、処理を終了する。 If the movement command stored in the memory unit 53 is a closing command and the sensor 106 detects that the shutter 104 is in the closed position (S22: YES), the CPU 51 sends an opening command to the air cylinder 105 (S23). The CPU 51 determines whether a certain time has elapsed since sending the opening command (S24). If the certain time has not elapsed (S24: NO), the CPU 51 returns to S24 and repeats the process until the certain time has elapsed. If the certain time has elapsed (S24: YES), the CPU 51 determines whether the detection result of the sensor 106 has changed and the sensor 106 has detected that the shutter 104 is in the closed position (S25). If the sensor 106 detects that the shutter 104 is in the closed position (S25: YES), the CPU 51 reports an abnormality (S34) and ends the process.

シャッタ104が閉位置に位置することをセンサ106が検出していない場合(S25:NO)、CPU51は、工具交換指令に基づく駆動信号をマガジンモータ33及び主軸移動モータ61に送信する(S26)。駆動信号を受信した主軸移動モータ61は、図7に示すように主軸ヘッド6を加工領域から工具交換領域に移動させ、保持させる工具91を交換後、図8に示すように主軸ヘッド6を工具交換領域から加工領域に移動させる。CPU51は、継続的に取得した主軸ヘッド6の位置に基づき、主軸ヘッド6が工具交換領域から加工領域に移動したか否かを判定する(S27)。主軸ヘッド6が工具交換領域から加工領域に移動していない場合(S27:NO)、CPU51は処理をS27に返し、主軸ヘッド6が工具交換領域から加工領域に移動するまで処理を繰り返す。主軸ヘッド6が工具交換領域から加工領域に移動した場合(S27:YES)、CPU51は、記憶部53に記憶されている移動指令が開放指令であり、シャッタ104が閉位置に位置することをセンサ106が検出しているか否かを判定する(S28)。記憶部53に記憶されている移動指令が開放指令であり、シャッタ104が閉位置に位置することをセンサ106が検出している場合(S28:YES)、CPU51は異常を報知し(S34)、処理を終了する。 If the sensor 106 does not detect that the shutter 104 is in the closed position (S25: NO), the CPU 51 transmits a drive signal based on the tool change command to the magazine motor 33 and the spindle movement motor 61 (S26). The spindle movement motor 61 that receives the drive signal moves the spindle head 6 from the machining area to the tool change area as shown in FIG. 7, and after changing the tool 91 to be held, moves the spindle head 6 from the tool change area to the machining area as shown in FIG. 8. The CPU 51 determines whether the spindle head 6 has moved from the tool change area to the machining area based on the position of the spindle head 6 that is continuously acquired (S27). If the spindle head 6 has not moved from the tool change area to the machining area (S27: NO), the CPU 51 returns the process to S27 and repeats the process until the spindle head 6 moves from the tool change area to the machining area. When the spindle head 6 moves from the tool exchange area to the machining area (S27: YES), the CPU 51 determines whether the movement command stored in the memory unit 53 is an open command and whether the sensor 106 detects that the shutter 104 is in the closed position (S28). When the movement command stored in the memory unit 53 is an open command and the sensor 106 detects that the shutter 104 is in the closed position (S28: YES), the CPU 51 reports an abnormality (S34) and ends the process.

記憶部53に記憶されている移動指令が開放指令であり、シャッタ104が閉位置に位置することをセンサ106が検出していない場合(S28:NO)、CPU51は、エアシリンダ105に閉塞指令を送信する(S29)。CPU51は、閉塞指令を送信後、一定時間が経過したか否かを判定する(S30)。一定時間が経過していない場合(S30:NO)、CPU51は、S30に処理を戻し、一定時間が経過するまで処理を繰り返す。一定時間が経過した場合(S30:YES)、CPU51は、センサ106の検出結果が変化し、シャッタ104が閉位置に位置することをセンサ106が検出しているか否かを判定するかを判定する(S31)。シャッタ104が閉位置に位置することをセンサ106が検出していない場合(S31:NO)、CPU51は、異常を報知し(S34)、処理を終了する。 If the movement command stored in the memory unit 53 is an open command and the sensor 106 does not detect that the shutter 104 is in the closed position (S28: NO), the CPU 51 sends a close command to the air cylinder 105 (S29). The CPU 51 determines whether a certain time has elapsed after sending the close command (S30). If the certain time has not elapsed (S30: NO), the CPU 51 returns to S30 and repeats the process until the certain time has elapsed. If the certain time has elapsed (S30: YES), the CPU 51 determines whether the detection result of the sensor 106 has changed and whether the sensor 106 has detected that the shutter 104 is in the closed position (S31). If the sensor 106 has not detected that the shutter 104 is in the closed position (S31: NO), the CPU 51 reports an abnormality (S34) and ends the process.

シャッタ104が閉位置に位置することをセンサ106が検出している場合(S31:YES)、CPU51は、主軸ヘッド6にワークWの加工を実行させ(S32)、ワークWに対するすべての加工が終了したか否かを判定する(S33)。すべての加工が終了した場合(S33:YES)、CPU51は、処理を終了する。すべての加工が終了していない場合(S33:NO)、CPU51は処理をS21に返し、プログラムから工具交換指令を読み出す。 If the sensor 106 detects that the shutter 104 is in the closed position (S31: YES), the CPU 51 causes the spindle head 6 to perform machining of the workpiece W (S32) and determines whether all machining of the workpiece W has been completed (S33). If all machining has been completed (S33: YES), the CPU 51 ends the process. If all machining has not been completed (S33: NO), the CPU 51 returns the process to S21 and reads a tool change command from the program.

(変形例)
シャッタ104を開位置または閉位置に移動させる機構は、エアシリンダ105によるものに限られない。シャッタ104は、例えば、電気を動力とする電動シリンダによって移動されてもよい。
(Modification)
The mechanism for moving the shutter 104 to the open position or the closed position is not limited to the air cylinder 105. The shutter 104 may be moved by, for example, an electrically powered cylinder.

シャッタ104はマガジンカバー10の内側に設けられるが、マガジンカバー10の外側に設けられてもよい。 The shutter 104 is provided on the inside of the magazine cover 10, but may also be provided on the outside of the magazine cover 10.

センサ106は磁気センサによるものに限られない。センサ106は、例えば、リミットスイッチなどによるものでもよい。 The sensor 106 is not limited to a magnetic sensor. The sensor 106 may be, for example, a limit switch.

異常を報知する方法は、操作パネル25による表示に限られない。制御部51は、アラーム音やライトの点灯等によって異常を報知する形態であってもよい。 The method of reporting an abnormality is not limited to displaying the abnormality on the operation panel 25. The control unit 51 may report an abnormality by sounding an alarm, turning on a light, etc.

上述の各実施形態において、CPU51は、移動指令をエアシリンダ105に送信してから一定時間経過後にセンサ106の検出結果を判定したが、これに限られない。例えば、CPU51は、移動指令をエアシリンダ105に送信してから一定時間以内にセンサ106の検出結果が変化した場合に処理を次のステップに進めてもよい。 In each of the above-described embodiments, the CPU 51 determines the detection result of the sensor 106 after a certain time has elapsed since the movement command was sent to the air cylinder 105, but this is not limited to the above. For example, the CPU 51 may proceed to the next step if the detection result of the sensor 106 changes within a certain time since the movement command was sent to the air cylinder 105.

今回開示した実施の形態は、全ての点で例示であって、制限的なものではないと考えられるべきである。各実施例にて記載されている技術的特徴は互いに組み合わせることができ、本発明の範囲は、特許請求の範囲内での全ての変更及び特許請求の範囲と均等の範囲が含まれることが意図される。また、特許請求の範囲に記載した独立請求項及び従属請求項は、引用形式に関わらず全てのあらゆる組み合わせにおいて、相互に組み合わせることが可能である。さらに、特許請求の範囲には他の2以上のクレームを引用するクレームを記載する形式(マルチクレーム形式)を用いているが、これに限るものではない。マルチクレームを少なくとも一つ引用するマルチクレーム(マルチマルチクレーム)を記載する形式を用いて記載しても良い。 The embodiments disclosed herein are illustrative in all respects and should not be considered restrictive. The technical features described in each embodiment may be combined with one another, and the scope of the present invention is intended to include all modifications within the scope of the claims and equivalents to the scope of the claims. In addition, the independent claims and dependent claims described in the claims may be combined with one another in any and all combinations, regardless of the citation format. Furthermore, the claims use a format in which a claim cites two or more other claims (multi-claim format), but this is not limited to this. They may also be written in a format in which a multiple claim cites at least one other claim (multi-multi-claim).

1 工作機械
6 主軸ヘッド
7 主軸
10 マガジンカバー
11 X軸移動機構
12 Z軸移動機構
13 Y軸移動機構
25 操作パネル
30 工具交換装置
31 工具マガジン
50 制御装置
51 CPU(制御部)
52 RAM
53 記憶部
53a 可搬型記憶媒体
61 主軸移動モータ
61a エンコーダ
100 前壁
101 底壁
102 後壁
103 開口部
104 シャッタ
105 エアシリンダ
105a 外筒
105b ロッド
105c 開バルブ
105d 閉バルブ
106 センサ
REFERENCE SIGNS LIST 1 Machine tool 6 Spindle head 7 Spindle 10 Magazine cover 11 X-axis movement mechanism 12 Z-axis movement mechanism 13 Y-axis movement mechanism 25 Operation panel 30 Tool changer 31 Tool magazine 50 Control device 51 CPU (control unit)
52 RAM
53 Storage unit 53a Portable storage medium 61 Main shaft movement motor 61a Encoder 100 Front wall 101 Bottom wall 102 Rear wall 103 Opening 104 Shutter 105 Air cylinder 105a Outer cylinder 105b Rod 105c Open valve 105d Close valve 106 Sensor

Claims (10)

ワークを加工するための工具を着脱可能に保持する主軸ヘッドと、
前記主軸ヘッドに保持させる前記工具を交換する工具交換装置と、
前記工具交換装置を覆い、開口部を備えるカバーと、
前記開口部を開放する開位置と、前記開口部を閉じる閉位置との間を移動可能であるシャッタと、
前記シャッタが前記開位置に位置すること、または閉位置に位置することのいずれか一方を検出可能なセンサと、
開放指令を受信した場合に前記シャッタを前記開位置に移動させ、閉塞指令を受信した場合に前記シャッタを前記閉位置に移動させる移動機構と、
前記移動機構に、前記開放指令または前記閉塞指令を含む移動指令を送信する制御部と
を備え、
前記制御部は、
前記移動機構に前記開放指令または前記閉塞指令のいずれか一方の前記移動指令を送信後、前記開放指令または前記閉塞指令の他方の前記移動指令を前記移動機構に送信する前に、一方の前記移動指令が実行される場合の前記シャッタの目標位置と、前記センサによる検出結果とが対応するか否かを判定し、
対応しないと判定した場合に異常を報知する
ことを特徴とする工作機械。
A spindle head that detachably holds a tool for machining a workpiece;
a tool changer that changes the tool held by the spindle head;
a cover covering the tool changing device and having an opening;
a shutter that is movable between an open position that opens the opening and a closed position that closes the opening;
a sensor capable of detecting whether the shutter is in the open position or the closed position;
a moving mechanism that moves the shutter to the open position when an opening command is received, and moves the shutter to the closed position when a closing command is received;
a control unit that transmits a movement command including the opening command or the closing command to the movement mechanism,
The control unit is
after transmitting one of the movement commands, either the open command or the close command, to the movement mechanism, and before transmitting the other of the movement commands, either the open command or the close command, to the movement mechanism, determining whether or not a target position of the shutter in the case where one of the movement commands is executed corresponds to a detection result by the sensor;
A machine tool characterized in that it notifies an abnormality when it is determined that the machine tool does not comply with the requirements.
前記移動機構は、
一端側にエア供給がされた場合に前記シャッタを前記開位置に移動させ、他端側にエア供給がされた場合に前記シャッタを前記閉位置に移動させるエアシリンダと、
前記移動機構が前記開放指令を受信した場合に、前記一端側にエア供給を行う開バルブと、
前記移動機構が前記閉塞指令を受信した場合に、前記他端側にエア供給を行う閉バルブと
を備える請求項1に記載の工作機械。
The moving mechanism includes:
an air cylinder that moves the shutter to the open position when air is supplied to one end side of the air cylinder and moves the shutter to the closed position when air is supplied to the other end side of the air cylinder;
an open valve that supplies air to the one end side when the moving mechanism receives the open command;
The machine tool according to claim 1 , further comprising: a closing valve that supplies air to the other end side when the moving mechanism receives the closing command.
前記センサは、前記シャッタが前記開位置に位置することを検出可能であり、
一方の前記移動指令は前記閉塞指令であり、
他方の前記移動指令は前記開放指令であり、
前記制御部は、前記移動機構に前記開放指令を送信する前に、前記シャッタが前記開位置であることを前記センサが検出している場合、異常を報知する
請求項1または2に記載の工作機械。
the sensor is capable of detecting when the shutter is in the open position;
One of the movement commands is the blocking command,
The other movement command is the opening command,
The machine tool according to claim 1 or 2, wherein the control unit notifies an abnormality when the sensor detects that the shutter is in the open position before transmitting the open command to the moving mechanism.
前記センサは、前記シャッタが前記閉位置に位置することを検出可能であり、
一方の前記移動指令は前記閉塞指令であり、
他方の前記移動指令は前記開放指令であり、
前記制御部は、前記移動機構に前記開放指令を送信する前に、前記シャッタが前記閉位置であることを前記センサが検出していない場合、異常を報知する
請求項1または2に記載の工作機械。
the sensor is capable of detecting when the shutter is in the closed position;
One of the movement commands is the blocking command,
The other movement command is the opening command,
The machine tool according to claim 1 or 2, wherein the control unit notifies an abnormality when the sensor does not detect that the shutter is at the closed position before transmitting the open command to the moving mechanism.
前記センサは、前記シャッタが前記開位置に位置することを検出可能であり、
一方の前記移動指令は前記開放指令であり、
他方の前記移動指令は前記閉塞指令であり、
前記制御部は、前記移動機構に前記閉塞指令を送信する前に、前記シャッタが前記開位置であることを前記センサが検出していない場合に、異常を報知する
請求項1または2に記載の工作機械。
the sensor is capable of detecting when the shutter is in the open position;
One of the movement commands is the opening command,
the other movement command is the closing command,
The machine tool according to claim 1 or 2, wherein the control unit notifies an abnormality when the sensor does not detect that the shutter is in the open position before transmitting the closing command to the moving mechanism.
前記センサは、前記シャッタが前記閉位置に位置することを検出可能であり、
一方の前記移動指令は前記開放指令であり、
他方の前記移動指令は前記閉塞指令であり、
前記制御部は、前記移動機構に前記閉塞指令を送信する前に、前記シャッタが前記閉位置であることを前記センサが検出している場合に、異常を報知する
請求項1または2に記載の工作機械。
the sensor is capable of detecting when the shutter is in the closed position;
One of the movement commands is the opening command,
the other movement command is the closing command,
The machine tool according to claim 1 or 2, wherein the control unit notifies an abnormality when the sensor detects that the shutter is in the closed position before transmitting the closing command to the moving mechanism.
前記制御部は、
前記主軸ヘッドに保持させる前記工具を交換させる工具交換指令をプログラムから読み出した後に、前記工具交換指令に基づく駆動信号を送信するように構成されており、
前記工具交換指令の読み出し後、前記駆動信号の送信前に、一方の前記移動指令が実行される場合の前記シャッタの目標位置と、前記センサによる検出結果とが対応するか否かを判定する
請求項1または2に記載の工作機械。
The control unit is
a tool change command for changing the tool held by the spindle head is read from a program, and then a drive signal based on the tool change command is transmitted;
The machine tool according to claim 1 or 2, further comprising: a determining unit that determines whether a target position of the shutter when one of the movement commands is executed corresponds to a detection result by the sensor after reading out the tool change command and before transmitting the drive signal.
前記制御部は、
前記移動機構に前記移動指令を送信してから一定時間経過後、前記センサの検出結果が変化したか否かを判定し、
変化していないと判定した場合に、異常を報知する
請求項1または2に記載の工作機械。
The control unit is
determining whether or not a detection result of the sensor has changed after a certain time has elapsed since the movement command was sent to the movement mechanism;
The machine tool according to claim 1 or 2, wherein when it is determined that there has been no change, an abnormality is notified.
ワークを加工するための工具を着脱可能に保持する主軸ヘッドと、
前記主軸ヘッドに保持させる前記工具を交換する工具交換装置と、
前記工具交換装置を覆い、開口部を備えるカバーと、
前記開口部を開放する開位置と、前記開口部を閉じる閉位置との間を移動可能であるシャッタと、
前記シャッタが前記開位置に位置すること、または閉位置に位置することのいずれか一方を検出可能なセンサと、
開放指令を受信した場合に前記シャッタを前記開位置に移動させ、閉塞指令を受信した場合に前記シャッタを前記閉位置に移動させる移動機構と、
前記移動機構に、前記開放指令または前記閉塞指令を含む移動指令を送信する制御部と
を備える工作機械の制御方法であって、
前記移動機構に前記開放指令または前記閉塞指令のいずれか一方の前記移動指令を送信後、前記開放指令または前記閉塞指令の他方の前記移動指令を前記移動機構に送信する前に、一方の前記移動指令が実行される場合の前記シャッタの目標位置と、前記センサによる検出結果とが対応するか否かを判定し、
対応しないと判定した場合に異常を報知する
制御方法。
A spindle head that detachably holds a tool for machining a workpiece;
a tool changer that changes the tool held by the spindle head;
a cover covering the tool changing device and having an opening;
a shutter that is movable between an open position that opens the opening and a closed position that closes the opening;
a sensor capable of detecting whether the shutter is in the open position or the closed position;
a moving mechanism that moves the shutter to the open position when an opening command is received, and moves the shutter to the closed position when a closing command is received;
a control unit that transmits a movement command including the open command or the close command to the movement mechanism,
after transmitting one of the movement commands, either the open command or the close command, to the movement mechanism, and before transmitting the other of the movement commands, either the open command or the close command, to the movement mechanism, determining whether or not a target position of the shutter in the case where one of the movement commands is executed corresponds to a detection result by the sensor;
A control method that reports an abnormality if it is determined that the device is not compatible.
ワークを加工するための工具を着脱可能に保持する主軸ヘッドと、
前記主軸ヘッドに保持させる前記工具を交換する工具交換装置と、
前記工具交換装置を覆い、開口部を備えるカバーと、
前記開口部を開放する開位置と、前記開口部を閉じる閉位置との間を移動可能であるシャッタと、
前記シャッタが前記開位置に位置すること、または閉位置に位置することのいずれか一方を検出可能なセンサと、
開放指令を受信した場合に前記シャッタを前記開位置に移動させ、閉塞指令を受信した場合に前記シャッタを前記閉位置に移動させる移動機構と、
前記移動機構に、前記開放指令または前記閉塞指令を含む移動指令を送信する制御部と
を備える工作機械を制御するプログラムであって、
前記移動機構に前記開放指令または前記閉塞指令のいずれか一方の前記移動指令を送信後、前記開放指令または前記閉塞指令の他方の前記移動指令を前記移動機構に送信する前に、一方の前記移動指令が実行される場合の前記シャッタの目標位置と、前記センサによる検出結果とが対応するか否かを判定し、
対応しないと判定した場合に異常を報知する
処理をコンピュータに実行させるプログラム。
A spindle head that detachably holds a tool for machining a workpiece;
a tool changer that changes the tool held by the spindle head;
a cover covering the tool changing device and having an opening;
a shutter that is movable between an open position that opens the opening and a closed position that closes the opening;
a sensor capable of detecting whether the shutter is in the open position or the closed position;
a moving mechanism that moves the shutter to the open position when an opening command is received, and moves the shutter to the closed position when a closing command is received;
a control unit that transmits a movement command including the open command or the close command to the movement mechanism,
after transmitting one of the movement commands, either the open command or the close command, to the movement mechanism, and before transmitting the other of the movement commands, either the open command or the close command, to the movement mechanism, determining whether or not a target position of the shutter in the case where one of the movement commands is executed corresponds to a detection result by the sensor;
A program that causes a computer to execute a process to notify an abnormality if it is determined that the device is not compatible.
JP2022155149A 2022-09-28 2022-09-28 Machine tool, control method, and program Pending JP2024048955A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2022155149A JP2024048955A (en) 2022-09-28 2022-09-28 Machine tool, control method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2022155149A JP2024048955A (en) 2022-09-28 2022-09-28 Machine tool, control method, and program

Publications (1)

Publication Number Publication Date
JP2024048955A true JP2024048955A (en) 2024-04-09

Family

ID=90609405

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022155149A Pending JP2024048955A (en) 2022-09-28 2022-09-28 Machine tool, control method, and program

Country Status (1)

Country Link
JP (1) JP2024048955A (en)

Similar Documents

Publication Publication Date Title
US10603752B2 (en) Machine tool
US10688612B2 (en) Machine tool
JP4580846B2 (en) NC machine tool
US10391559B2 (en) Machine tool
JP4772639B2 (en) Machine tool controller
JP6326374B2 (en) Machine Tools
JPS598501B2 (en) Self-responsive working center with programmable automation
JP2017202548A (en) Machine tool
US20230052323A1 (en) Machine tool and information processing device
JP3186213B2 (en) Tool breakage detection method
US20210229226A1 (en) Machine tool
JP2020116667A (en) Preventive maintenance system of machine tool
US20210039212A1 (en) Machine tool
JP4769285B2 (en) Tool breakage detector
JP2010023202A (en) Numerical value control type machine tool, and air pressure switching method for numerical value control type machine tool
JP2008097193A (en) Controller for machine tool
JP2024048955A (en) Machine tool, control method, and program
JPH05150818A (en) Method and device or diagnosing fault of numerical control machine tool
JP2024049293A (en) Machine tool, control method, and program
JP5167767B2 (en) Machine tool interference detection device
JP2011014029A (en) Collision prevention method of machine tool
JP7166357B2 (en) Machine Tools
JP2020069595A (en) Door opening/closing device and machine tool
JP2006106849A (en) Machine tool
JP2005040929A (en) Machining center