JP2020154956A - Numerical control device and machine tool - Google Patents

Numerical control device and machine tool Download PDF

Info

Publication number
JP2020154956A
JP2020154956A JP2019054501A JP2019054501A JP2020154956A JP 2020154956 A JP2020154956 A JP 2020154956A JP 2019054501 A JP2019054501 A JP 2019054501A JP 2019054501 A JP2019054501 A JP 2019054501A JP 2020154956 A JP2020154956 A JP 2020154956A
Authority
JP
Japan
Prior art keywords
drive shaft
cpu
clamp
axis
unit
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
JP2019054501A
Other languages
Japanese (ja)
Inventor
貴大 齊藤
Takahiro Saito
貴大 齊藤
太樹 小林
Taiki Kobayashi
太樹 小林
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 JP2019054501A priority Critical patent/JP2020154956A/en
Priority to CN202010004722.XA priority patent/CN111716112B/en
Publication of JP2020154956A publication Critical patent/JP2020154956A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B23MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
    • B23QDETAILS, COMPONENTS, OR ACCESSORIES FOR MACHINE TOOLS, e.g. ARRANGEMENTS FOR COPYING OR CONTROLLING; MACHINE TOOLS IN GENERAL CHARACTERISED BY THE CONSTRUCTION OF PARTICULAR DETAILS OR COMPONENTS; COMBINATIONS OR ASSOCIATIONS OF METAL-WORKING MACHINES, NOT DIRECTED TO A PARTICULAR RESULT
    • B23Q1/00Members which are comprised in the general build-up of a form of machine, particularly relatively large fixed members
    • B23Q1/25Movable or adjustable work or tool supports
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B23MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
    • B23QDETAILS, COMPONENTS, OR ACCESSORIES FOR MACHINE TOOLS, e.g. ARRANGEMENTS FOR COPYING OR CONTROLLING; MACHINE TOOLS IN GENERAL CHARACTERISED BY THE CONSTRUCTION OF PARTICULAR DETAILS OR COMPONENTS; COMBINATIONS OR ASSOCIATIONS OF METAL-WORKING MACHINES, NOT DIRECTED TO A PARTICULAR RESULT
    • B23Q3/00Devices holding, supporting, or positioning work or tools, of a kind normally removable from the machine
    • B23Q3/155Arrangements for automatic insertion or removal of tools, e.g. combined with manual handling
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B23MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
    • B23QDETAILS, COMPONENTS, OR ACCESSORIES FOR MACHINE TOOLS, e.g. ARRANGEMENTS FOR COPYING OR CONTROLLING; MACHINE TOOLS IN GENERAL CHARACTERISED BY THE CONSTRUCTION OF PARTICULAR DETAILS OR COMPONENTS; COMBINATIONS OR ASSOCIATIONS OF METAL-WORKING MACHINES, NOT DIRECTED TO A PARTICULAR RESULT
    • B23Q5/00Driving or feeding mechanisms; Control arrangements therefor
    • B23Q5/22Feeding members carrying tools or work

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Numerical Control (AREA)
  • Automatic Control Of Machine Tools (AREA)
  • Machine Tool Positioning Apparatuses (AREA)

Abstract

To provide a numerical control device and a machine tool capable of accurately stopping a drive shaft at a specified rotational position.SOLUTION: A numerical control device includes a CPU. The CPU starts the clamping of a drive shaft by a clamping device when the drive shaft connected to a C-shaft table moves to a specified rotational position by driving of a C-shaft motor. The CPU determines whether a misalignment amount is equal to or less than an error threshold when clamping of the drive shaft by the clamping device is completed. The CPU unclamps the drive shaft from the clamping device (S61) and controls clamping thereafter (S81) when it is determined that the misalignment amount is larger than the error threshold. Therefore, the numerical control device can accurately stop the drive shaft at a designated rotational position.SELECTED DRAWING: Figure 6

Description

本発明は、数値制御装置及び工作機械に関する。 The present invention relates to numerical control devices and machine tools.

特許文献1は、回転軸であるC軸と傾斜軸であるA軸を有する工作機械を制御する数値制御装置を開示する。C軸は加工対象であるワークを保持し且つ回転する軸である。A軸はC軸の傾きを変更する軸である。工作機械は、ワークを回転可能に保持するワーク保持機構を備える。ワーク保持機構は、A軸テーブルを備える。A軸テーブルは回転可能に設けてある。A軸モータはA軸テーブルと連結する支軸を回転させる。A軸テーブルは支軸と一体して回転し任意方向に傾く。数値制御装置はA軸モータの出力軸の回転方向と回転量を制御することで、A軸テーブルの傾斜角度を調整する。 Patent Document 1 discloses a numerical control device that controls a machine tool having a C axis as a rotation axis and an A axis as an inclination axis. The C-axis is an axis that holds and rotates the work to be machined. The A axis is an axis that changes the inclination of the C axis. The machine tool includes a work holding mechanism that holds the work rotatably. The work holding mechanism includes an A-axis table. The A-axis table is rotatably provided. The A-axis motor rotates a support shaft connected to the A-axis table. The A-axis table rotates integrally with the support shaft and tilts in any direction. The numerical control device adjusts the tilt angle of the A-axis table by controlling the rotation direction and the amount of rotation of the output shaft of the A-axis motor.

特開2016−085650号公報Japanese Unexamined Patent Publication No. 2016-086550

回転した支軸をクランプし、支軸が所定の回転量を超えて回転することを抑制するためのクランプ装置を工作機械に設ける時がある。クランプ装置が支軸をクランプする時に、支軸が微小に回転することがある。支軸の回転量が大きい時、ワークの加工精度に影響する可能性があった。 The machine tool may be provided with a clamping device for clamping the rotated support shaft and suppressing the support shaft from rotating beyond a predetermined rotation amount. When the clamping device clamps the support shaft, the support shaft may rotate slightly. When the amount of rotation of the support shaft is large, it may affect the machining accuracy of the workpiece.

本発明の目的は、駆動軸を指定の回転位置で精度良く静止できる数値制御装置及び工作機械を提供することである。 An object of the present invention is to provide a numerical control device and a machine tool capable of accurately stopping a drive shaft at a designated rotation position.

本発明の第一態様に係る数値制御装置は、サーボモータ、前記サーボモータで回転駆動する駆動軸、前記駆動軸をクランプするクランプ部を備えた工作機械を制御可能な数値制御装置において、前記サーボモータを制御し、指定した回転位置である第一回転位置まで前記駆動軸を回転する第一制御部と、前記第一制御部により前記駆動軸を前記第一回転位置まで回転した時、前記クランプ部を制御して前記駆動軸をクランプする第二制御部と、前記駆動軸の回転位置と前記第一回転位置との差分であるずれ量と、閾値との関係を判定する判定部と、前記第二制御部による前記駆動軸のクランプが完了した後の前記ずれ量が、前記判定部により所定の第一閾値以上であると判定した場合、前記クランプ部を制御して前記駆動軸をアンクランプし、その後、前記クランプ部を制御して前記駆動軸をクランプする第三制御部とを備えたこと特徴とする。 The numerical control device according to the first aspect of the present invention is a numerical control device capable of controlling a machine tool including a servomotor, a drive shaft that is rotationally driven by the servomotor, and a clamp portion that clamps the drive shaft. A first control unit that controls the motor and rotates the drive shaft to the first rotation position, which is a designated rotation position, and a clamp when the drive shaft is rotated to the first rotation position by the first control unit. The second control unit that controls the unit and clamps the drive shaft, the determination unit that determines the relationship between the deviation amount, which is the difference between the rotation position of the drive shaft and the first rotation position, and the threshold value, and the above. When the determination unit determines that the amount of deviation after the clamping of the drive shaft by the second control unit is completed is equal to or greater than a predetermined first threshold value, the clamp unit is controlled to unclamp the drive shaft. After that, it is characterized by including a third control unit that controls the clamp unit and clamps the drive shaft.

第一態様によれば、数値制御装置は、駆動軸を指定の回転位置で精度良く静止させることができる。 According to the first aspect, the numerical control device can accurately stop the drive shaft at a designated rotation position.

第一態様において、前記第三制御部は、前記駆動軸のアンクランプが完了してから第一時間が経過した場合、前記クランプ部を制御して前記駆動軸をクランプしてもよい。数値制御装置は、駆動軸のアンクランプをしてから第一制御部が駆動部を制御する時間を確保できる。故に数値制御装置は、駆動軸を指定の回転位置で精度良く静止させることができる。 In the first aspect, the third control unit may control the clamp unit to clamp the drive shaft when the first time elapses after the unclamping of the drive shaft is completed. The numerical control device can secure the time for the first control unit to control the drive unit after unclamping the drive shaft. Therefore, the numerical control device can accurately stop the drive shaft at a designated rotation position.

第一態様において、前記第三制御部は、更に、前記クランプ部を制御して前記駆動軸をクランプした後の前記ずれ量が前記第一閾値未満となるまで、前記駆動軸のアンクランプ及びクランプを繰り返す繰り返し制御を実行し、前記第三制御部による前記繰り返し制御の回数である第一回数が、所定の第二閾値以上である場合、前記第三制御部による前記繰り返し制御を中止する第一停止部とを備えてもよい。使用者は第一回数に基づき数値制御装置の制御の不調を判断し易い。 In the first aspect, the third control unit further unclamps and clamps the drive shaft until the amount of deviation after controlling the clamp unit and clamping the drive shaft becomes less than the first threshold value. When the first number of times, which is the number of times of the repeat control by the third control unit, is equal to or greater than a predetermined second threshold value, the repeat control by the third control unit is stopped. It may be provided with a stop portion. The user can easily determine the malfunction of the control of the numerical control device based on the first number of times.

第一態様において、前記第二制御部による前記駆動軸のクランプが完了した後の前記ずれ量が、前記判定部により、前記第一閾値よりも値が大きい第三閾値以上と判定した場合、報知部に報知させてもよい。故に使用者は、数値制御装置の制御の不調を把握し易い。 In the first aspect, when the determination unit determines that the deviation amount after the clamp of the drive shaft by the second control unit is completed is equal to or greater than the third threshold value having a value larger than the first threshold value, notification is given. The unit may be notified. Therefore, the user can easily grasp the malfunction of the control of the numerical control device.

第一態様において、前記第三制御部による前記駆動軸のクランプが完了した後の前記ずれ量が、前記判定部により、前記第一閾値よりも値が大きい第四閾値以上と判定した場合、前記第三制御部による前記繰り返し制御を停止し、報知部に報知させる第二停止部を更に備えてもよい。故に使用者は、数値制御装置の制御の不調を把握し易い。 In the first aspect, when the determination unit determines that the deviation amount after the clamp of the drive shaft by the third control unit is completed is equal to or greater than the fourth threshold value having a value larger than the first threshold value, the above-mentioned A second stop unit may be further provided to stop the repetitive control by the third control unit and notify the notification unit. Therefore, the user can easily grasp the malfunction of the control of the numerical control device.

第一態様において、前記判定部により、前記ずれ量が前記第一閾値以上と判定した場合、第二時間が経過するまでの間、前記サーボモータの駆動を停止する第三停止部を更に備え前記第三制御部は、前記第二時間が経過した場合、前記クランプ部を制御して前記駆動軸をクランプしてもよい。数値制御装置は、ずれ量が第一閾値以上である場合、第二時間の間、サーボモータの駆動を停止させるので、駆動軸で発生するトルクが低減する。故に数値制御装置は、駆動軸のずれ量が大きくなることを抑制できる。 In the first aspect, when the determination unit determines that the deviation amount is equal to or greater than the first threshold value, a third stop unit for stopping the driving of the servomotor until the second time elapses is further provided. When the second time elapses, the third control unit may control the clamp unit to clamp the drive shaft. When the deviation amount is equal to or greater than the first threshold value, the numerical control device stops the driving of the servomotor for the second time, so that the torque generated in the drive shaft is reduced. Therefore, the numerical control device can suppress an increase in the amount of deviation of the drive shaft.

第一態様において、前記回転位置を検出可能な検出部を備え、前記判定部は、前記検出部が検出した前記回転位置と前記第一回転位置との差分である前記ずれ量と、前記閾値との関係で判定してもよい。数値制御装置は、駆動軸の回転位置を検出できるので、駆動軸を指定の回転位置で精度良く静止させることができる。 In the first aspect, a detection unit capable of detecting the rotation position is provided, and the determination unit includes the deviation amount which is the difference between the rotation position detected by the detection unit and the first rotation position, and the threshold value. It may be judged by the relation of. Since the numerical control device can detect the rotation position of the drive shaft, the drive shaft can be accurately stopped at the designated rotation position.

本発明の第二態様に係る工作機械は、第一態様に係る数値制御装置を備えたことを特徴とする。第二態様によれば、第一態様と同様の効果を奏することができる。 The machine tool according to the second aspect of the present invention is characterized by including the numerical control device according to the first aspect. According to the second aspect, the same effect as that of the first aspect can be obtained.

工作機械100の斜視図。A perspective view of the machine tool 100. ワーク支持装置8の斜視図。The perspective view of the work support device 8. 数値制御装置1と工作機械100の電気ブロック図。The electric block diagram of the numerical control device 1 and the machine tool 100. C軸位置合わせ処理の流れ図。The flow chart of the C-axis alignment process. C軸位置合わせ処理の流れ図であって、図4の続き。It is a flow chart of the C-axis alignment process, and is a continuation of FIG. C軸位置合わせ処理の流れ図であって、図5の続き。It is a flow chart of the C-axis alignment process, and is a continuation of FIG.

以下、本発明の実施形態を、図面を参照し説明する。以下説明は、図中に矢印で示す上下、左右、前後、を使用する。工作機械100の左右方向、前後方向、上下方向は、夫々工作機械100のX軸方向、Y軸方向、Z軸方向である。図1に示す工作機械100は、移動軸、回転軸、傾斜軸を有する五軸制御の立型工作機械である。移動軸は、X軸、Y軸、Z軸である。回転軸はC軸、傾斜軸はA軸である。 Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the following description, up / down, left / right, front / back, which are indicated by arrows in the figure, are used. The horizontal direction, the front-rear direction, and the vertical direction of the machine tool 100 are the X-axis direction, the Y-axis direction, and the Z-axis direction of the machine tool 100, respectively. The machine tool 100 shown in FIG. 1 is a five-axis controlled vertical machine tool having a moving axis, a rotating axis, and an inclined axis. The moving axes are the X-axis, the Y-axis, and the Z-axis. The rotation axis is the C axis and the tilt axis is the A axis.

図1を参照し、工作機械100の構造を説明する。工作機械100は、基台2、コラム5、Y軸移動機構(図示略)、X軸移動機構(図示略)、Z軸移動機構(図示略)、主軸ヘッド6、主軸(図示略)、ワーク支持装置8、工具交換装置9、制御箱(図示略)等を備える。 The structure of the machine tool 100 will be described with reference to FIG. The machine tool 100 includes a base 2, a column 5, a Y-axis moving mechanism (not shown), an X-axis moving mechanism (not shown), a Z-axis moving mechanism (not shown), a spindle head 6, a spindle (not shown), and a work. It includes a support device 8, a tool change device 9, a control box (not shown), and the like.

基台2は、架台11、主軸基台12、右側ワーク基台13、左側ワーク基台14等を備える。架台11は前後方向に長い略直方体状の構造体である。主軸基台12は前後方向に長い略直方体状に形成し、架台11上面後方に設ける。右側ワーク基台13は架台11上面右前方に設ける。左側ワーク基台14は架台11上面左前方に設ける。右側ワーク基台13と左側ワーク基台14は夫々、前側の支持台13A、14Aと、後側の支持台13B、14Bを備える。支持台13A、13B、14A、14Bは夫々上下方向に延びる柱状に形成し、上面にワーク支持装置8を支持する。 The base 2 includes a stand 11, a spindle base 12, a right work base 13, a left work base 14, and the like. The gantry 11 is a substantially rectangular parallelepiped structure that is long in the front-rear direction. The spindle base 12 is formed in a substantially rectangular parallelepiped shape long in the front-rear direction, and is provided behind the upper surface of the gantry 11. The right work base 13 is provided on the right front of the upper surface of the gantry 11. The left work base 14 is provided on the left front of the upper surface of the gantry 11. The right work base 13 and the left work base 14 each include front support bases 13A and 14A and rear support bases 13B and 14B, respectively. The support bases 13A, 13B, 14A, and 14B are each formed in a columnar shape extending in the vertical direction, and the work support device 8 is supported on the upper surface.

Y軸移動機構は主軸基台12上面に設け、一対のY軸レール16(図1は右側のY軸レール16のみ図示)、Y軸ボール螺子(図示略)、Y軸モータ62(図3参照)等を備える。一対のY軸レール16とY軸ボール螺子はY軸方向に延びる。一対のY軸レール16は上面に移動体15をY軸方向に案内する。移動体15は略平板状に形成し、底部外面にナット(図示略)を備える。該ナットはY軸ボール螺子に螺合する。Y軸モータ62がY軸ボール螺子を回転すると、移動体15はナットと共に一対のY軸レール16に沿って移動する。故にY軸移動機構は移動体15をY軸方向に移動可能に支持する。 The Y-axis movement mechanism is provided on the upper surface of the spindle base 12, and a pair of Y-axis rails 16 (only the right Y-axis rail 16 is shown in FIG. 1), a Y-axis ball screw (not shown), and a Y-axis motor 62 (see FIG. 3). ) Etc. are provided. The pair of Y-axis rails 16 and Y-axis ball screws extend in the Y-axis direction. The pair of Y-axis rails 16 guide the moving body 15 on the upper surface in the Y-axis direction. The moving body 15 is formed in a substantially flat plate shape, and has a nut (not shown) on the outer surface of the bottom. The nut is screwed into the Y-axis ball screw. When the Y-axis motor 62 rotates the Y-axis ball screw, the moving body 15 moves along with the nut along the pair of Y-axis rails 16. Therefore, the Y-axis moving mechanism supports the moving body 15 so as to be movable in the Y-axis direction.

X軸移動機構は移動体15上面に設け、一対のX軸レール(図示略)、X軸ボール螺子(図示略)、X軸モータ61(図3参照)等を備える。X軸レールとX軸ボール螺子はX軸方向に延びる。コラム5は上下方向に延び、移動体15上面に設ける。コラム5は底部にナット(図示略)を備える。該ナットはX軸ボール螺子に螺合する。X軸モータ61がX軸ボール螺子を回転すると、コラム5はナットと共に一対のX軸レールに沿って移動する。故にX軸移動機構はコラム5をX軸方向に移動可能に支持する。故にコラム5は、Y軸移動機構、移動体15、X軸移動機構により、基台2上をX軸方向とY軸方向に移動可能である。 The X-axis moving mechanism is provided on the upper surface of the moving body 15, and includes a pair of X-axis rails (not shown), an X-axis ball screw (not shown), an X-axis motor 61 (see FIG. 3), and the like. The X-axis rail and the X-axis ball screw extend in the X-axis direction. The column 5 extends in the vertical direction and is provided on the upper surface of the moving body 15. The column 5 is provided with a nut (not shown) at the bottom. The nut is screwed into the X-axis ball screw. When the X-axis motor 61 rotates the X-axis ball screw, the column 5 moves along the pair of X-axis rails together with the nut. Therefore, the X-axis moving mechanism supports the column 5 so as to be movable in the X-axis direction. Therefore, the column 5 can be moved in the X-axis direction and the Y-axis direction on the base 2 by the Y-axis moving mechanism, the moving body 15, and the X-axis moving mechanism.

Z軸移動機構はコラム5前面に設け、一対のZ軸レール(図示略)、Z軸ボール螺子(図示略)、Z軸モータ63(図3参照)等を備える。Z軸レールとZ軸ボール螺子はZ軸方向に延びる。主軸ヘッド6は背面にナット(図示略)を備える。該ナットはZ軸ボール螺子に螺合する。Z軸モータ63はZ軸ボール螺子の上端部の軸受(図示略)に固定する。Z軸モータ63がZ軸ボール螺子を回転すると、主軸ヘッド6は一対のZ軸レールに沿って移動する。故にZ軸移動機構は主軸ヘッド6をZ軸方向に移動可能に支持する。 The Z-axis moving mechanism is provided on the front surface of the column 5, and includes a pair of Z-axis rails (not shown), a Z-axis ball screw (not shown), a Z-axis motor 63 (see FIG. 3), and the like. The Z-axis rail and the Z-axis ball screw extend in the Z-axis direction. The spindle head 6 is provided with a nut (not shown) on the back surface. The nut is screwed into a Z-axis ball screw. The Z-axis motor 63 is fixed to a bearing (not shown) at the upper end of the Z-axis ball screw. When the Z-axis motor 63 rotates the Z-axis ball screw, the spindle head 6 moves along the pair of Z-axis rails. Therefore, the Z-axis moving mechanism supports the spindle head 6 so as to be movable in the Z-axis direction.

主軸ヘッド6は下部にZ軸カバー18を備える。Z軸カバー18はコラム5前面に設けたZ軸移動機構を覆い且つ主軸ヘッド6の上下動に伴って伸縮する。Z軸カバー18はZ軸移動機構内に切粉と切削液が侵入するのを防止する。主軸(図示略)は主軸ヘッド6内部に設け、主軸ヘッド6下部に工具装着穴(図示略)を備える。工具装着穴は工具を装着する。主軸は主軸ヘッド6上部に設けた主軸モータ64(図3参照)で回転する。 The spindle head 6 is provided with a Z-axis cover 18 at the bottom. The Z-axis cover 18 covers the Z-axis moving mechanism provided on the front surface of the column 5, and expands and contracts with the vertical movement of the spindle head 6. The Z-axis cover 18 prevents chips and cutting fluid from entering the Z-axis moving mechanism. The spindle (not shown) is provided inside the spindle head 6, and a tool mounting hole (not shown) is provided in the lower part of the spindle head 6. The tool is mounted in the tool mounting hole. The spindle is rotated by a spindle motor 64 (see FIG. 3) provided above the spindle head 6.

ワーク支持装置8は架台11上面前側に配置し、右側ワーク基台13と左側ワーク基台14の夫々の上面に固定して支持する。ワーク支持装置8はワーク(図示略)を回転可能に保持する。ワーク支持装置8はA軸テーブル20とC軸テーブル40を備える。A軸テーブル20はX軸方向に対して平行な軸を中心に回転可能である。A軸テーブル20の回転軸はA軸である。C軸テーブル40は円盤状に形成し、A軸テーブル20の上面略中央に設ける。C軸テーブル40はZ軸方向に平行な軸を中心に回転可能であり、上面に把持機構200(図2参照)を用いてワークを固定する。C軸テーブル40の回転軸はC軸である。ワーク支持装置8はA軸テーブル20を任意方向に傾けることができる。ワーク支持装置8の具体的構造は後述する。 The work support device 8 is arranged on the front side of the upper surface of the gantry 11, and is fixedly supported on the upper surfaces of the right work base 13 and the left work base 14. The work support device 8 rotatably holds the work (not shown). The work support device 8 includes an A-axis table 20 and a C-axis table 40. The A-axis table 20 can rotate about an axis parallel to the X-axis direction. The rotation axis of the A-axis table 20 is the A-axis. The C-axis table 40 is formed in a disk shape and is provided substantially in the center of the upper surface of the A-axis table 20. The C-axis table 40 is rotatable about an axis parallel to the Z-axis direction, and the work is fixed to the upper surface by using the gripping mechanism 200 (see FIG. 2). The rotation axis of the C-axis table 40 is the C-axis. The work support device 8 can tilt the A-axis table 20 in any direction. The specific structure of the work support device 8 will be described later.

工具交換装置9は工具マガジン(図示略)と保護カバー9A等を備える。保護カバー9Aは工具マガジンを覆って保護する。工具マガジンはコラム5と主軸ヘッド6周囲を取り巻く略円環状である。工具マガジンは複数のポット(図示略)、チェーン(図示略)、マガジンモータ65(図3参照)等を備える。ポットは工具を着脱可能に装着する。チェーンは工具マガジンに沿って環状に設ける。複数のポットはチェーンに沿って取り付ける。マガジンモータ65の駆動で、チェーンは工具マガジンの形状に沿って移動する。複数のポットはチェーンと共に移動する。工具交換位置は工具マガジン最下部に位置するポットの位置である。工具交換装置9は主軸ヘッド6の昇降動作中に工具交換位置のポットが保持する工具を、主軸に現在装着する工具と交換する。 The tool changing device 9 includes a tool magazine (not shown), a protective cover 9A, and the like. The protective cover 9A covers and protects the tool magazine. The tool magazine has a substantially annular shape surrounding the column 5 and the spindle head 6. The tool magazine includes a plurality of pots (not shown), a chain (not shown), a magazine motor 65 (see FIG. 3), and the like. The pot is equipped with removable tools. The chain is provided in an annular shape along the tool magazine. Multiple pots are mounted along the chain. Driven by the magazine motor 65, the chain moves along the shape of the tool magazine. Multiple pots move with the chain. The tool change position is the position of the pot located at the bottom of the tool magazine. The tool changer 9 replaces the tool held by the pot at the tool change position with the tool currently mounted on the spindle during the ascending / descending operation of the spindle head 6.

制御箱は例えば工作機械100を覆うカバー(図示略)の外壁に取り付ける。制御箱は数値制御装置1を内側に格納する。数値制御装置1はNCプログラムに基づき、工作機械100の動作を制御する。NCプログラムは複数のブロックで構成し、各ブロックは制御指令を含む。制御指令は例えばGコード、Mコード等である。 The control box is attached to, for example, the outer wall of a cover (not shown) that covers the machine tool 100. The control box stores the numerical control device 1 inside. The numerical control device 1 controls the operation of the machine tool 100 based on the NC program. The NC program is composed of a plurality of blocks, and each block contains a control command. The control command is, for example, a G code, an M code, or the like.

図2を参照し、ワーク支持装置8の具体的構造を説明する。ワーク支持装置8は、A軸テーブル20、左側支持台27、右側駆動機構部28、C軸テーブル40、C軸駆動部50等を備える。A軸テーブル20は、テーブル部21、右連結部22、左連結部23を備える。テーブル部21は、A軸テーブル20の傾斜角度が0°で上面が水平となる平面視略略長方形状の板状部である。右連結部22は、テーブル部21の右端部から右斜め上方に延び、右側駆動機構部28と回動可能に連結する。左連結部23はテーブル部21の左端部から左斜め上方に延び、後述する左側支持台27と回転可能に連結する。C軸テーブル40はテーブル部21上面略中央に回転可能に設ける。 A specific structure of the work support device 8 will be described with reference to FIG. The work support device 8 includes an A-axis table 20, a left-side support base 27, a right-side drive mechanism unit 28, a C-axis table 40, a C-axis drive unit 50, and the like. The A-axis table 20 includes a table portion 21, a right connecting portion 22, and a left connecting portion 23. The table portion 21 is a plate-shaped portion having a substantially rectangular shape in a plan view in which the inclination angle of the A-axis table 20 is 0 ° and the upper surface is horizontal. The right connecting portion 22 extends obliquely upward to the right from the right end portion of the table portion 21 and rotatably connects with the right driving mechanism portion 28. The left connecting portion 23 extends obliquely upward to the left from the left end portion of the table portion 21 and rotatably connects to the left support base 27 described later. The C-axis table 40 is rotatably provided at substantially the center of the upper surface of the table portion 21.

C軸駆動部50はテーブル部21下面に設ける。C軸駆動部50は内側に、駆動軸41、C軸モータ66(図3参照)、クランプ装置68(図3参照)を備える。駆動軸41の一端はテーブル部21の略中央に設けた穴(図示略)を介してC軸テーブル40と連結する。駆動軸41の他端はC軸モータ66の出力軸と連結する。故にC軸テーブル40はC軸モータ66の駆動で回転する。クランプ装置68は、例えばディスクブレーキ(図示略)を備え、駆動軸41をクランプ可能である。クランプ装置68は駆動軸41をクランプすることで駆動軸41の回転を抑制する。切削加工時、工作機械100は、駆動軸41が回転することで、ワークをC軸回りに所定回転位置まで回転し、クランプ装置68が駆動軸41をクランプすることで、ワークのC軸の回転位置を決定する。 The C-axis drive unit 50 is provided on the lower surface of the table unit 21. The C-axis drive unit 50 includes a drive shaft 41, a C-axis motor 66 (see FIG. 3), and a clamp device 68 (see FIG. 3) inside. One end of the drive shaft 41 is connected to the C-axis table 40 via a hole (not shown) provided in the substantially center of the table portion 21. The other end of the drive shaft 41 is connected to the output shaft of the C-axis motor 66. Therefore, the C-axis table 40 is rotated by the drive of the C-axis motor 66. The clamping device 68 includes, for example, a disc brake (not shown) and can clamp the drive shaft 41. The clamping device 68 suppresses the rotation of the drive shaft 41 by clamping the drive shaft 41. During cutting, the machine tool 100 rotates the work around the C axis to a predetermined rotation position by rotating the drive shaft 41, and the clamping device 68 clamps the drive shaft 41 to rotate the C axis of the work. Determine the position.

左側支持台27はA軸テーブル20の左側に位置する。左側支持台27は左側面視略三角形状で且つ左右方向に所定厚を有する柱状に形成する。左側支持台27は上方に突出する頂点部にて、左連結部23の左端面から左方に突出する略円柱状の支軸31を回転可能に支持する。左側支持台27の底部は、左側ワーク基台14の支持台14A、14B(図1参照)の夫々の上面に架け渡して固定する。 The left support base 27 is located on the left side of the A-axis table 20. The left support base 27 is formed in a columnar shape having a substantially triangular shape in the left side view and having a predetermined thickness in the left-right direction. The left support base 27 rotatably supports a substantially cylindrical support shaft 31 projecting to the left from the left end surface of the left connecting portion 23 at the apex portion projecting upward. The bottom of the left support base 27 is bridged and fixed to the upper surfaces of the support bases 14A and 14B (see FIG. 1) of the left work base 14.

右側駆動機構部28はA軸テーブル20の右側に位置する。右側駆動機構部28はカバー部33、34を備える。カバー部33は略直方体状に形成し右側駆動機構部28上半分周囲を覆う。カバー部34はカバー部33下部と連結し右側駆動機構部28下半分周囲を覆う。カバー部33、34は内側に、右側支持台(図示略)、減速機(図示略)、A軸モータ67(図3参照)等を格納する。右側支持台は、カバー部33、34の夫々の左側面に跨いで設けた円形状の穴部35を介して、右連結部22右端面から右方に突出する略円柱状の支軸(図示略)を回転可能に支持し、且つA軸モータ67を一体化して保持する。 The right side drive mechanism unit 28 is located on the right side of the A-axis table 20. The right drive mechanism portion 28 includes cover portions 33 and 34. The cover portion 33 is formed in a substantially rectangular parallelepiped shape and covers the periphery of the upper half of the right drive mechanism portion 28. The cover portion 34 is connected to the lower portion of the cover portion 33 and covers the periphery of the lower half of the right drive mechanism portion 28. The cover portions 33 and 34 house a right support base (not shown), a speed reducer (not shown), an A-axis motor 67 (see FIG. 3), and the like inside. The right support base is a substantially columnar support shaft (illustrated) that projects to the right from the right end surface of the right connecting portion 22 through a circular hole portion 35 provided straddling the left side surfaces of the cover portions 33 and 34, respectively. (Omitted) is rotatably supported, and the A-axis motor 67 is integrally held.

右連結部22の支軸とA軸モータ67の出力軸は、減速機を介して互いに連結する。減速機は歯車等で動力の回転速度を減じて出力する機械装置であり、出力として減速比に比例したトルクを得ることができる。故にA軸モータ67の出力軸が回転すると、減速機を介して、右連結部22の支軸はA軸モータ67の出力軸よりも減速して回転する。A軸テーブル20は右連結部22と一体して回転し、A軸回りに任意の方向に傾く。故にワーク支持装置8は、主軸に装着する工具に対してワークを任意方向に傾けることができる。右側支持台の底部は、右側ワーク基台13の支持台13A、13B(図1参照)の夫々の上面に架け渡して固定する。 The support shaft of the right connecting portion 22 and the output shaft of the A-axis motor 67 are connected to each other via a speed reducer. The speed reducer is a mechanical device that reduces the rotational speed of power by a gear or the like to output the speed reducer, and can obtain a torque proportional to the reduction ratio as the output. Therefore, when the output shaft of the A-axis motor 67 rotates, the support shaft of the right connecting portion 22 decelerates and rotates from the output shaft of the A-axis motor 67 via the speed reducer. The A-axis table 20 rotates integrally with the right connecting portion 22 and tilts in an arbitrary direction around the A-axis. Therefore, the work support device 8 can tilt the work in an arbitrary direction with respect to the tool mounted on the spindle. The bottom of the right support base is bridged and fixed to the upper surfaces of the support bases 13A and 13B (see FIG. 1) of the right work base 13.

図3を参照し、数値制御装置1と工作機械100の電気的構成を説明する。数値制御装置1はCPU91、ROM92、RAM93、不揮発性メモリ94、I/O基板96等を備える。CPU91は工作機械100の動作を制御する。ROM92は後述する制御プログラム等を記憶する。制御プログラムは、図4〜図6に示すC軸位置合わせ処理を実行するものである。RAM93は各種処理実行中に発生するクランプ確認時間カウンタ、アンクランプ確認時間カウンタ、クランプ待ち時間カウンタ、モータ待ち時間カウンタ、変数Nの値等を記憶する。各カウンタ、変数Nの説明は後述する。不揮発性メモリ94はNCプログラム、リトライ最大回数、ずれ許容値、クランプ待ち時間等を記憶する。リトライ最大回数、ずれ許容値、クランプ待ち時間の説明は後述する。I/O基板96は工作機械100と各種信号の入出力を行う回路基板である。 The electrical configuration of the numerical control device 1 and the machine tool 100 will be described with reference to FIG. The numerical control device 1 includes a CPU 91, a ROM 92, a RAM 93, a non-volatile memory 94, an I / O board 96, and the like. The CPU 91 controls the operation of the machine tool 100. The ROM 92 stores a control program and the like described later. The control program executes the C-axis alignment process shown in FIGS. 4 to 6. The RAM 93 stores a clamp confirmation time counter, an unclamp confirmation time counter, a clamp waiting time counter, a motor waiting time counter, a value of a variable N, etc., which are generated during execution of various processes. A description of each counter and variable N will be described later. The non-volatile memory 94 stores the NC program, the maximum number of retries, the allowable deviation value, the clamp waiting time, and the like. The maximum number of retries, the allowable deviation value, and the clamp waiting time will be described later. The I / O board 96 is a circuit board that inputs / outputs various signals to and from the machine tool 100.

工作機械100は駆動回路51〜59を更に備える。駆動回路51〜59は数値制御装置1のI/O基板96に接続する。駆動回路51はCPU91の指令信号に従いX軸モータ61に駆動電流(パルス)を出力する。エンコーダ71はX軸モータ61とI/O基板96に接続する。エンコーダ71はX軸モータ61の位置情報(モータの絶対位置情報)を検出し該検出信号をI/O基板96に入力する。駆動回路52はCPU91の指令信号に従いY軸モータ62に駆動電流を出力する。エンコーダ72はY軸モータ62とI/O基板96に接続する。エンコーダ72はY軸モータ62の位置情報を検出し該検出信号をI/O基板96に入力する。 The machine tool 100 further includes drive circuits 51 to 59. The drive circuits 51 to 59 are connected to the I / O board 96 of the numerical control device 1. The drive circuit 51 outputs a drive current (pulse) to the X-axis motor 61 according to a command signal of the CPU 91. The encoder 71 is connected to the X-axis motor 61 and the I / O board 96. The encoder 71 detects the position information of the X-axis motor 61 (absolute position information of the motor) and inputs the detection signal to the I / O board 96. The drive circuit 52 outputs a drive current to the Y-axis motor 62 according to a command signal of the CPU 91. The encoder 72 is connected to the Y-axis motor 62 and the I / O board 96. The encoder 72 detects the position information of the Y-axis motor 62 and inputs the detection signal to the I / O board 96.

駆動回路53はCPU91の指令信号に従いZ軸モータ63に駆動電流を出力する。エンコーダ73はZ軸モータ63とI/O基板96に接続する。エンコーダ73はZ軸モータ63の位置情報を検出し該検出信号をI/O基板96に入力する。駆動回路54はCPU91の指令信号に従い主軸モータ64に駆動電流を出力する。エンコーダ74は主軸モータ64とI/O基板96に接続する。エンコーダ74は主軸モータ64の位置情報を検出し該検出信号をI/O基板96に入力する。駆動回路55はCPU91の指令信号に従いマガジンモータ65に駆動電流を出力する。エンコーダ75はマガジンモータ65とI/O基板96に接続する。エンコーダ75はマガジンモータ65の位置情報を検出し該検出信号をI/O基板96に入力する。 The drive circuit 53 outputs a drive current to the Z-axis motor 63 according to a command signal of the CPU 91. The encoder 73 is connected to the Z-axis motor 63 and the I / O board 96. The encoder 73 detects the position information of the Z-axis motor 63 and inputs the detection signal to the I / O board 96. The drive circuit 54 outputs a drive current to the spindle motor 64 according to a command signal of the CPU 91. The encoder 74 is connected to the spindle motor 64 and the I / O board 96. The encoder 74 detects the position information of the spindle motor 64 and inputs the detection signal to the I / O board 96. The drive circuit 55 outputs a drive current to the magazine motor 65 according to a command signal of the CPU 91. The encoder 75 is connected to the magazine motor 65 and the I / O board 96. The encoder 75 detects the position information of the magazine motor 65 and inputs the detection signal to the I / O board 96.

駆動回路56はCPU91の指令信号に従いC軸モータ66に駆動電流を出力する。エンコーダ76はC軸モータ66とI/O基板96に接続する。エンコーダ76はC軸モータ66の位置情報を検出し該検出信号をI/O基板96に入力する。駆動回路57はCPU91の指令信号に従いA軸モータ67に駆動電流を出力する。エンコーダ77はA軸モータ67とI/O基板96に接続する。エンコーダ77はA軸モータ67の位置情報を検出し該検出信号をI/O基板96に入力する。 The drive circuit 56 outputs a drive current to the C-axis motor 66 according to a command signal of the CPU 91. The encoder 76 is connected to the C-axis motor 66 and the I / O board 96. The encoder 76 detects the position information of the C-axis motor 66 and inputs the detection signal to the I / O board 96. The drive circuit 57 outputs a drive current to the A-axis motor 67 according to a command signal of the CPU 91. The encoder 77 is connected to the A-axis motor 67 and the I / O board 96. The encoder 77 detects the position information of the A-axis motor 67 and inputs the detection signal to the I / O board 96.

駆動回路58はCPU91の指令信号に従いクランプ装置68に駆動電流を出力する。
CPU91がI/O基板96を介して駆動回路58に入力する指令信号はアンクランプ出力信号である。CPU91がアンクランプ出力信号を駆動回路58に入力した時、クランプ装置68は駆動軸41をアンクランプする。CPU91がアンクランプ出力信号を駆動回路58に入力しない時、クランプ装置68は駆動軸41をクランプする。以下、CPU91がアンクランプ出力信号を駆動回路58に入力することを「アンクランプ出力信号をONする」と称し、CPU91がアンクランプ出力信号を駆動回路58に入力しないことを「アンクランプ出力信号をOFFする」と称す。
The drive circuit 58 outputs a drive current to the clamp device 68 according to a command signal of the CPU 91.
The command signal that the CPU 91 inputs to the drive circuit 58 via the I / O board 96 is an unclamp output signal. When the CPU 91 inputs the unclamp output signal to the drive circuit 58, the clamping device 68 unclamps the drive shaft 41. When the CPU 91 does not input the unclamp output signal to the drive circuit 58, the clamp device 68 clamps the drive shaft 41. Hereinafter, the fact that the CPU 91 inputs the unclamp output signal to the drive circuit 58 is referred to as "turning on the unclamp output signal", and the fact that the CPU 91 does not input the unclamp output signal to the drive circuit 58 is referred to as "the unclamp output signal is input". It is called "OFF".

駆動回路59はCPU91の指令信号に従い表示部84に駆動電流を出力する。入力部81はI/O基板96に接続する。入力部81、表示部84は例えば工作機械100を覆うカバー(図示略)の外壁に取り付ける。表示部84は例えばLCDである。使用者は表示部84が表示する情報を確認しながら入力部81を操作して、NCプログラム、リトライ最大回数、ずれ許容値、クランプ待ち時間等を不揮発性メモリ94に記憶させる。 The drive circuit 59 outputs a drive current to the display unit 84 according to a command signal of the CPU 91. The input unit 81 is connected to the I / O board 96. The input unit 81 and the display unit 84 are attached to, for example, the outer wall of a cover (not shown) that covers the machine tool 100. The display unit 84 is, for example, an LCD. The user operates the input unit 81 while checking the information displayed by the display unit 84 to store the NC program, the maximum number of retries, the allowable deviation value, the clamp waiting time, and the like in the non-volatile memory 94.

X軸モータ61、Y軸モータ62、Z軸モータ63、主軸モータ64、マガジンモータ65、C軸モータ66、A軸モータ67は何れもサーボモータである。エンコーダ71〜77は一般的なアブソリュートエンコーダである。エンコーダ71〜75、77はサーボモータの出力軸の回転位置の絶対位置を検出して出力する位置センサである。エンコーダ76は駆動軸41の回転位置の絶対位置を検出して出力する位置センサである。駆動回路51〜57はエンコーダ71〜77からフィードバック信号を受け、位置と速度のフィードバック制御を行う。駆動回路51〜59は例えばFPGA回路でもよい。 The X-axis motor 61, the Y-axis motor 62, the Z-axis motor 63, the spindle motor 64, the magazine motor 65, the C-axis motor 66, and the A-axis motor 67 are all servo motors. Encoders 71 to 77 are general absolute encoders. Encoders 71 to 75 and 77 are position sensors that detect and output the absolute position of the rotation position of the output shaft of the servo motor. The encoder 76 is a position sensor that detects and outputs the absolute position of the rotation position of the drive shaft 41. The drive circuits 51 to 57 receive feedback signals from the encoders 71 to 77 and perform feedback control of position and speed. The drive circuits 51 to 59 may be, for example, an FPGA circuit.

図4〜図6を参照し、CPU91が実行するC軸位置合わせ処理を説明する。CPU91はC軸テーブル40を回転させる制御指令を受信した時、C軸位置合わせ処理を実行する。 The C-axis alignment process executed by the CPU 91 will be described with reference to FIGS. 4 to 6. When the CPU 91 receives the control command for rotating the C-axis table 40, the CPU 91 executes the C-axis alignment process.

図4に示す如く、CPU91は不揮発性メモリ94からリトライ最大回数を取得し(S1)、ずれ許容値を取得し(S2)、クランプ待ち時間を取得する(S3)。CPU91は変数Nに0を設定する(S4)。変数Nは後述するリトライ処理の実行回数である。 As shown in FIG. 4, the CPU 91 acquires the maximum number of retries from the non-volatile memory 94 (S1), acquires the allowable deviation value (S2), and acquires the clamp waiting time (S3). The CPU 91 sets the variable N to 0 (S4). The variable N is the number of times the retry process described later is executed.

CPU91はC軸モータ66を駆動する(S11)。C軸モータ66の駆動により駆動軸41と駆動軸41に連結するC軸テーブル40が回転する。CPU91は使用者が設定した所定回転位置に駆動軸41が到達したかを判断する(S12)。CPU91はエンコーダ76の検出結果に基づきS12の判断を行う。CPU91は駆動軸41が所定回転位置に到達していないと判断した時(S12:NO)、処理をS12に戻し、該処理を繰り返す。 The CPU 91 drives the C-axis motor 66 (S11). By driving the C-axis motor 66, the drive shaft 41 and the C-axis table 40 connected to the drive shaft 41 rotate. The CPU 91 determines whether the drive shaft 41 has reached a predetermined rotation position set by the user (S12). The CPU 91 determines S12 based on the detection result of the encoder 76. When the CPU 91 determines that the drive shaft 41 has not reached the predetermined rotation position (S12: NO), the processing is returned to S12, and the processing is repeated.

CPU91は駆動軸41が所定回転位置に到達したと判断した時(S12:YES)、アンクランプ出力信号をOFFにする(S21)。該時、クランプ装置68は駆動軸41のクランプを開始する。CPU91はクランプ確認時間をクランプ確認時間カウンタに設定する(S22)。CPU91はクランプ確認時間カウンタをRAM93に記憶する。クランプ確認時間はクランプ装置68が駆動軸41のクランプを開始してから完了する迄の時間である。 When the CPU 91 determines that the drive shaft 41 has reached the predetermined rotation position (S12: YES), the CPU 91 turns off the unclamp output signal (S21). At this time, the clamping device 68 starts clamping the drive shaft 41. The CPU 91 sets the clamp confirmation time in the clamp confirmation time counter (S22). The CPU 91 stores the clamp confirmation time counter in the RAM 93. The clamp confirmation time is the time from when the clamp device 68 starts clamping the drive shaft 41 to when it is completed.

CPU91はクランプ確認時間が経過したか判断する(S23)。CPU91はS22で設定したクランプ確認時間カウンタの値に基づきS23の判断を行う。CPU91はクランプ確認時間カウンタの値が0でなく、クランプ確認時間が経過していないと判断した時(S23:NO)、処理をS23に戻し、該処理を繰り返す。CPU91はクランプ確認時間カウンタの値が0であり、クランプ確認時間が経過したと判断した時(S23:YES)、C軸モータ66を停止する(S24)。クランプ装置68がクランプを完了した時、CPU91はエンコーダ76の検出結果から駆動軸41の回転位置を検出する。 The CPU 91 determines whether the clamp confirmation time has elapsed (S23). The CPU 91 determines S23 based on the value of the clamp confirmation time counter set in S22. When the CPU 91 determines that the value of the clamp confirmation time counter is not 0 and the clamp confirmation time has not elapsed (S23: NO), the process is returned to S23 and the process is repeated. When the value of the clamp confirmation time counter is 0 and the CPU 91 determines that the clamp confirmation time has elapsed (S23: YES), the CPU 91 stops the C-axis motor 66 (S24). When the clamping device 68 completes the clamping, the CPU 91 detects the rotational position of the drive shaft 41 from the detection result of the encoder 76.

図5に示す如く、CPU91は駆動軸41における使用者が設定した所定回転位置とクランプ装置68のクランプ完了後の回転位置とのずれ量である位置ずれ量がエラー閾値以下であるか判断する(S31)。例えばクランプ装置68が駆動軸41をクランプするトルクが大きい時、位置ずれ量が0でないことがある。エラー閾値は駆動軸41の位置ずれにより工作機械100の加工精度に影響が出る可能性があるかをCPU91が判断するための閾値である。CPU91は位置ずれ量がエラー閾値以下であると判断した時(S31:YES)、C軸位置合わせ処理を終了する。該時、クランプ装置68が正常にクランプを完了したとして、工作機械100はワークの加工を開始する。 As shown in FIG. 5, the CPU 91 determines whether the displacement amount, which is the displacement amount between the predetermined rotation position set by the user on the drive shaft 41 and the rotation position of the clamp device 68 after the completion of clamping, is equal to or less than the error threshold value ( S31). For example, when the torque for clamping the drive shaft 41 by the clamping device 68 is large, the amount of misalignment may not be zero. The error threshold is a threshold for the CPU 91 to determine whether the machining accuracy of the machine tool 100 may be affected by the misalignment of the drive shaft 41. When the CPU 91 determines that the amount of misalignment is equal to or less than the error threshold value (S31: YES), the CPU 91 ends the C-axis alignment process. At this time, assuming that the clamping device 68 has normally completed the clamping, the machine tool 100 starts machining the work.

CPU91は位置ずれ量がエラー閾値より大きいと判断した時(S31:NO)、位置ずれ量がずれ許容値以下であるか判断する(S32)。ずれ許容値はクランプ装置68が後述するリトライ処理を実行するかをCPU91が判断するための閾値である。ずれ許容値は位置ずれ量についての閾値である。ずれ許容値はエラー閾値より大きく、例えばエラー閾値の5〜10倍の値である。 When the CPU 91 determines that the misalignment amount is larger than the error threshold value (S31: NO), the CPU 91 determines whether the misalignment amount is equal to or less than the permissible deviation value (S32). The deviation allowable value is a threshold value for the CPU 91 to determine whether the clamp device 68 executes the retry process described later. The deviation tolerance is a threshold value for the amount of displacement. The deviation tolerance value is larger than the error threshold value, for example, 5 to 10 times the error threshold value.

CPU91は位置ずれ量がずれ許容値以下であると判断した時(S32:YES)、変数Nがリトライ最大回数以下であるか判断する(S33)。リトライ最大回数はクランプ装置68が後述するリトライ処理を実行するかをCPU91が判断するための閾値である。リトライ最大回数は変数Nについての閾値である。CPU91は変数Nがリトライ最大回数未満であると判断した時(S33:YES)、処理をS51(図6参照)に移行する。 When the CPU 91 determines that the displacement amount is equal to or less than the deviation allowable value (S32: YES), the CPU 91 determines whether the variable N is equal to or less than the maximum number of retries (S33). The maximum number of retries is a threshold value for the CPU 91 to determine whether the clamp device 68 executes the retry process described later. The maximum number of retries is a threshold for the variable N. When the CPU 91 determines that the variable N is less than the maximum number of retries (S33: YES), the processing shifts to S51 (see FIG. 6).

図6に示す如く、CPU91は変数Nに1加算する(S51)。CPU91はモータ待ち時間をモータ待ち時間カウンタに設定する(S52)。CPU91はモータ待ち時間カウンタをRAM93に記憶する。モータ待ち時間は停止中のC軸モータ66を再度駆動する迄の待ち時間である。 As shown in FIG. 6, the CPU 91 adds 1 to the variable N (S51). The CPU 91 sets the motor waiting time in the motor waiting time counter (S52). The CPU 91 stores the motor waiting time counter in the RAM 93. The motor waiting time is the waiting time until the stopped C-axis motor 66 is driven again.

CPU91はモータ待ち時間が経過したか判断する(S53)。CPU91はS52で設定したモータ待ち時間カウンタの値に基づきS53の判断を行う。CPU91はモータ待ち時間カウンタの値が0でなく、モータ待ち時間が経過していないと判断した時(S53:NO)、処理をS53に戻し、該処理を繰り返す。CPU91はモータ待ち時間カウンタの値が0であり、モータ待ち時間が経過したと判断した時(S53:YES)、処理をS61に移行する。 The CPU 91 determines whether the motor waiting time has elapsed (S53). The CPU 91 determines S53 based on the value of the motor waiting time counter set in S52. When the CPU 91 determines that the value of the motor waiting time counter is not 0 and the motor waiting time has not elapsed (S53: NO), the process is returned to S53 and the process is repeated. When the value of the motor waiting time counter is 0 and the CPU 91 determines that the motor waiting time has elapsed (S53: YES), the processing shifts to S61.

CPU91はアンクランプ出力信号をONにする(S61)。該時、クランプ装置68は駆動軸41のアンクランプを開始する。CPU91はアンクランプ確認時間をアンクランプ確認時間カウンタに設定する(S62)。CPU91はアンクランプ確認時間カウンタをRAM93に記憶する。アンクランプ確認時間はクランプ装置68が駆動軸41のアンクランプを開始してから完了する迄の時間である。CPU91はC軸モータ66を駆動する(S63)。CPU91はエンコーダ76の検出結果に基づきC軸モータ66を制御して駆動軸41を所定回転位置まで移動させる。 The CPU 91 turns on the unclamp output signal (S61). At this time, the clamping device 68 starts unclamping the drive shaft 41. The CPU 91 sets the unclamp confirmation time in the unclamp confirmation time counter (S62). The CPU 91 stores the unclamp confirmation time counter in the RAM 93. The unclamp confirmation time is the time from when the clamping device 68 starts unclamping the drive shaft 41 to when it is completed. The CPU 91 drives the C-axis motor 66 (S63). The CPU 91 controls the C-axis motor 66 based on the detection result of the encoder 76 to move the drive shaft 41 to a predetermined rotation position.

CPU91はアンクランプ確認時間が経過したか判断する(S71)。CPU91はS62で設定したアンクランプ確認時間カウンタの値に基づきS71の判断を行う。CPU91はアンクランプ確認時間カウンタの値が0でなく、アンクランプ確認時間が経過していないと判断した時(S71:NO)、処理をS71に戻し、該処理を繰り返す。CPU91はアンクランプ確認時間カウンタの値が0であり、アンクランプ確認時間が経過したと判断した時(S71:YES)、処理をS72に移行する。 The CPU 91 determines whether the unclamp confirmation time has elapsed (S71). The CPU 91 determines S71 based on the value of the unclamp confirmation time counter set in S62. When the CPU 91 determines that the value of the unclamp confirmation time counter is not 0 and the unclamp confirmation time has not elapsed (S71: NO), the process is returned to S71 and the process is repeated. When the value of the unclamp confirmation time counter is 0 and the CPU 91 determines that the unclamp confirmation time has elapsed (S71: YES), the processing shifts to S72.

CPU91はクランプ待ち時間をクランプ待ち時間カウンタに設定する(S72)。CPU91はクランプ待ち時間カウンタをRAM93に記憶する。クランプ待ち時間はクランプ装置68が駆動軸41のアンクランプを完了してから再度クランプを行う迄の待ち時間である。 The CPU 91 sets the clamp waiting time in the clamp waiting time counter (S72). The CPU 91 stores the clamp waiting time counter in the RAM 93. The clamp waiting time is the waiting time from when the clamping device 68 completes the unclamping of the drive shaft 41 to when the clamping device 68 clamps again.

CPU91はクランプ待ち時間が経過したか判断する(S73)。CPU91はS72で設定したクランプ待ち時間カウンタの値に基づきS73の判断を行う。CPU91はクランプ待ち時間カウンタの値が0でなく、クランプ待ち時間が経過していないと判断した時(S73:NO)、処理をS73に戻し、該処理を繰り返す。CPU91はクランプ待ち時間カウンタの値が0であり、クランプ待ち時間が経過したと判断した時(S73:YES)、処理をS81に移行する。 The CPU 91 determines whether the clamp waiting time has elapsed (S73). The CPU 91 determines S73 based on the value of the clamp waiting time counter set in S72. When the CPU 91 determines that the value of the clamp waiting time counter is not 0 and the clamp waiting time has not elapsed (S73: NO), the process is returned to S73 and the process is repeated. When the value of the clamp waiting time counter is 0 and the CPU 91 determines that the clamp waiting time has elapsed (S73: YES), the processing shifts to S81.

CPU91はアンクランプ出力信号をOFFにする(S81)。該時、クランプ装置68は駆動軸41のクランプを開始する。CPU91はクランプ確認時間をクランプ確認時間カウンタに設定する(S82)。S81、S82の処理はS21、S22(図4参照)と同様の処理である。 The CPU 91 turns off the unclamp output signal (S81). At this time, the clamping device 68 starts clamping the drive shaft 41. The CPU 91 sets the clamp confirmation time in the clamp confirmation time counter (S82). The processing of S81 and S82 is the same as that of S21 and S22 (see FIG. 4).

CPU91はクランプ確認時間が経過したか判断する(S83)。S83の処理はS23(図4参照)と同様である。CPU91はクランプ確認時間が経過していないと判断した時(S83:NO)、処理をS83に戻し、該処理を繰り返す。CPU91はクランプ確認時間が経過したと判断した時(S83:YES)、C軸モータ66を停止する(S84)。S84の処理はS24(図4参照)と同様である。 The CPU 91 determines whether the clamp confirmation time has elapsed (S83). The processing of S83 is the same as that of S23 (see FIG. 4). When the CPU 91 determines that the clamp confirmation time has not elapsed (S83: NO), the process is returned to S83 and the process is repeated. When the CPU 91 determines that the clamp confirmation time has elapsed (S83: YES), the CPU 91 stops the C-axis motor 66 (S84). The processing of S84 is the same as that of S24 (see FIG. 4).

このように、CPU91は駆動軸41の位置ずれ量がエラー閾値よりも大きいと判断した時(S31:YES、図5参照)、S51〜S84の処理を実行する。S51〜S84の処理では、クランプ装置68は駆動軸41を一度アンクランプした後、再度クランプをする。S51〜S84の処理を総称して「リトライ処理」と称す。CPU91は、リトライ処理の実行後、処理をS31(図5参照)に戻す。 As described above, when the CPU 91 determines that the amount of misalignment of the drive shaft 41 is larger than the error threshold value (S31: YES, see FIG. 5), the CPU 91 executes the processes S51 to S84. In the processes of S51 to S84, the clamping device 68 unclamps the drive shaft 41 once and then clamps it again. The processes of S51 to S84 are collectively referred to as "retry process". After executing the retry process, the CPU 91 returns the process to S31 (see FIG. 5).

図5に示す如く、CPU91はリトライ処理(図6参照)の実行後、位置ずれ量がエラー閾値以下であるか判断する(S31)。CPU91はリトライ処理後に位置ずれ量がエラー閾値以下であると判断した時(S31:YES)、C軸位置合わせ処理を終了する。該時、工作機械100はワークの加工を開始する。 As shown in FIG. 5, after executing the retry process (see FIG. 6), the CPU 91 determines whether the amount of misalignment is equal to or less than the error threshold value (S31). When the CPU 91 determines that the amount of misalignment is equal to or less than the error threshold value after the retry process (S31: YES), the CPU 91 ends the C-axis alignment process. At that time, the machine tool 100 starts machining the work.

CPU91はリトライ処理後でも位置ずれ量がエラー閾値より大きいと判断した時(S31:NO)、S32とS33の判断を行った後、リトライ処理(図6参照)を繰り返し実行する。CPU91はリトライ処理を繰り返す度、変数Nに1加算する。 When the CPU 91 determines that the amount of misalignment is larger than the error threshold value even after the retry process (S31: NO), the CPU 91 repeatedly executes the retry process (see FIG. 6) after determining S32 and S33. The CPU 91 adds 1 to the variable N each time the retry process is repeated.

CPU91は位置ずれ量がエラー閾値より大きく(S31:NO)、更にずれ許容値より大きいと判断した時(S32:NO)、処理をS41に移行する。またCPU91は繰り返しリトライ処理を実行した結果、変数Nがリトライ最大回数に到達した時(S33:NO)、処理をS41に移行する。CPU91は使用者が設定した所定回転位置から駆動軸41が位置ずれして、工作機械100の加工精度に影響が出る可能性があることを表示部84に表示する(S41)。CPU91はクランプ装置68が正常にクランプを完了できなかったとして、リトライ処理を行わない(S42)。該時、工作機械100はワークの加工を中止する。CPU91はC軸位置合わせ処理を終了する。 When the CPU 91 determines that the amount of misalignment is larger than the error threshold value (S31: NO) and further larger than the permissible deviation value (S32: NO), the processing shifts to S41. Further, when the variable N reaches the maximum number of retries as a result of repeatedly executing the retry process (S33: NO), the CPU 91 shifts the process to S41. The CPU 91 displays on the display unit 84 that the drive shaft 41 may be displaced from the predetermined rotation position set by the user, which may affect the machining accuracy of the machine tool 100 (S41). The CPU 91 does not perform the retry process because the clamping device 68 cannot normally complete the clamping (S42). At that time, the machine tool 100 stops processing the work. The CPU 91 ends the C-axis alignment process.

上記説明にて、C軸モータ66は本発明のサーボモータに相当し、クランプ装置68は本発明のクランプ部に相当し、所定回転位置は本発明の第一回転位置に相当し、S11、S12を実行するCPU91は本発明の第一制御部に相当し、S21を実行するCPU91は本発明の第二制御部に相当し、位置ずれ量は本発明のずれ量に相当し、エラー閾値、ずれ許容値は本発明の閾値に相当し、S31、S32を実行するCPU91は本発明の判定部に相当し、エラー閾値は本発明の第一閾値に相当し、S61、S81を実行するCPU91は本発明の第三制御部に相当し、クランプ待ち時間は本発明の第一時間に相当し、変数Nは本発明の第一回数に相当し、リトライ最大回数は本発明の第二閾値に相当し、S42を実行するCPU91は本発明の第一停止部に相当し、ずれ許容値は本発明の第三閾値に相当し、表示部84は本発明の報知部に相当し、ずれ許容値は本発明の第四閾値に相当し、S41、S42を実行するCPU91は本発明の第二停止部に相当し、モータ待ち時間は本発明の第二時間に相当し、S24、S84を実行するCPU91は本発明の第三停止部に相当する。 In the above description, the C-axis motor 66 corresponds to the servo motor of the present invention, the clamp device 68 corresponds to the clamp portion of the present invention, the predetermined rotation position corresponds to the first rotation position of the present invention, and S11 and S12. The CPU 91 that executes the above corresponds to the first control unit of the present invention, the CPU 91 that executes S21 corresponds to the second control unit of the present invention, the amount of misalignment corresponds to the amount of deviation of the present invention, and the error threshold and the deviation. The permissible value corresponds to the threshold of the present invention, the CPU 91 that executes S31 and S32 corresponds to the determination unit of the present invention, the error threshold corresponds to the first threshold of the present invention, and the CPU 91 that executes S61 and S81 is the present invention. It corresponds to the third control unit of the present invention, the clamp waiting time corresponds to the first time of the present invention, the variable N corresponds to the first number of times of the present invention, and the maximum number of retries corresponds to the second threshold value of the present invention. , The CPU 91 that executes S42 corresponds to the first stop unit of the present invention, the deviation allowable value corresponds to the third threshold value of the present invention, the display unit 84 corresponds to the notification unit of the present invention, and the deviation allowable value is the present invention. The CPU 91 that corresponds to the fourth threshold of the present invention and executes S41 and S42 corresponds to the second stop portion of the present invention, the motor waiting time corresponds to the second time of the present invention, and the CPU 91 that executes S24 and S84 corresponds to the second stop portion of the present invention. Corresponds to the third stop of the present invention.

以上説明の如く、数値制御装置1はCPU91を備える。CPU91はC軸モータ66を制御して使用者が設定した所定回転位置に駆動軸41を移動させる(S11)。CPU91は駆動軸41が所定回転位置に移動した時(S12:YES)、アンクランプ出力信号をOFFにして(S21)、クランプ装置68に駆動軸41のクランプを開始させる。CPU91はクランプ装置68が駆動軸41のクランプが完了した時(S23:YES)、位置ずれ量がエラー閾値以下であるか判断する(S31)。CPU91は位置ずれ量がエラー閾値より大きいと判断した時(S31:NO)、リトライ処理(S51〜S84)を実行する。故に数値制御装置1は、駆動軸41を指定の回転位置で精度良く静止させることができる。 As described above, the numerical control device 1 includes a CPU 91. The CPU 91 controls the C-axis motor 66 to move the drive shaft 41 to a predetermined rotation position set by the user (S11). When the drive shaft 41 moves to a predetermined rotation position (S12: YES), the CPU 91 turns off the unclamp output signal (S21) and causes the clamping device 68 to start clamping the drive shaft 41. When the clamping device 68 completes the clamping of the drive shaft 41 (S23: YES), the CPU 91 determines whether the misalignment amount is equal to or less than the error threshold value (S31). When the CPU 91 determines that the amount of misalignment is larger than the error threshold value (S31: NO), the CPU 91 executes retry processing (S51 to S84). Therefore, the numerical control device 1 can accurately stop the drive shaft 41 at a designated rotation position.

CPU91はリトライ処理(S51〜S84)において、クランプ装置68が駆動軸41のアンクランプが完了した時(S71:YES)、使用者が設定したクランプ待ち時間をクランプ待ち時間カウンタに設定する(S72)。CPU91はクランプ待ち時間が経過した時(S73:YES)、アンクランプ出力信号をOFFにして(S81)、駆動軸41をクランプする。故にCPU91は、クランプ待ち時間の間で駆動軸41が指定の回転位置に移動するようにC軸モータ66を制御できる。故に数値制御装置1は、駆動軸41を指定の回転位置で精度良く静止させることができる。 In the retry processing (S51 to S84), the CPU 91 sets the clamp waiting time set by the user in the clamp waiting time counter when the clamping device 68 completes the unclamping of the drive shaft 41 (S71: YES) (S72). .. When the clamp waiting time has elapsed (S73: YES), the CPU 91 turns off the unclamp output signal (S81) and clamps the drive shaft 41. Therefore, the CPU 91 can control the C-axis motor 66 so that the drive shaft 41 moves to a designated rotation position during the clamp waiting time. Therefore, the numerical control device 1 can accurately stop the drive shaft 41 at a designated rotation position.

CPU91は位置ずれ量がエラー閾値より大きい時(S31:NO)、位置ずれ量がエラー閾値以下になる迄繰り返しリトライ処理(S51〜S84)を実行する。CPU91はリトライ処理(S51〜S84)を実行する度に変数Nに1加算する(S51)。CPU91は使用者が設定したリトライ最大回数に変数Nの値が到達した時(S33:NO)、リトライ処理を中止する(S42)。故に使用者は、変数Nの値に基づき数値制御装置1の制御の不調を判断し易い。 When the misalignment amount is larger than the error threshold value (S31: NO), the CPU 91 repeatedly executes retry processes (S51 to S84) until the misalignment amount becomes equal to or less than the error threshold value. The CPU 91 adds 1 to the variable N each time the retry processing (S51 to S84) is executed (S51). When the value of the variable N reaches the maximum number of retries set by the user (S33: NO), the CPU 91 cancels the retry process (S42). Therefore, the user can easily determine the malfunction of the control of the numerical control device 1 based on the value of the variable N.

CPU91はクランプ装置68が駆動軸41のクランプが完了した時(S23:YES)、位置ずれ量がずれ許容値以下であるか判断する(S32)。CPU91は位置ずれ量がずれ許容値より大きいと判断した時(S32:NO)、所定回転位置から駆動軸41が位置ずれして、工作機械100の加工精度に影響が出る可能性があることを表示部84に表示する(S41)。故に使用者は、表示部84の表示から数値制御装置1の制御の不調を把握し易い。 When the clamping device 68 completes the clamping of the drive shaft 41 (S23: YES), the CPU 91 determines whether the displacement amount is equal to or less than the deviation allowable value (S32). When the CPU 91 determines that the amount of misalignment is larger than the permissible deviation value (S32: NO), the drive shaft 41 may be misaligned from the predetermined rotation position, which may affect the machining accuracy of the machine tool 100. It is displayed on the display unit 84 (S41). Therefore, the user can easily grasp the malfunction of the control of the numerical control device 1 from the display of the display unit 84.

CPU91はリトライ処理(S51〜S84)において、クランプ装置68が駆動軸41のクランプを完了した時(S83:YES)、位置ずれ量がずれ許容値以下であるか判断する(S32)。CPU91は位置ずれ量がずれ許容値より大きいと判断した時(S32:NO)、所定回転位置から駆動軸41が位置ずれして、工作機械100の加工精度に影響が出る可能性があることを表示部84に表示する(S41)。該時、CPU91はリトライ処理を中止する(S42)。故に使用者は、表示部84の表示から数値制御装置1の制御の不調を把握し易い。 In the retry processing (S51 to S84), when the clamping device 68 completes the clamping of the drive shaft 41 (S83: YES), the CPU 91 determines whether the displacement amount is equal to or less than the deviation allowable value (S32). When the CPU 91 determines that the amount of misalignment is larger than the permissible deviation value (S32: NO), the drive shaft 41 may be misaligned from the predetermined rotation position, which may affect the machining accuracy of the machine tool 100. It is displayed on the display unit 84 (S41). At that time, the CPU 91 cancels the retry process (S42). Therefore, the user can easily grasp the malfunction of the control of the numerical control device 1 from the display of the display unit 84.

CPU91はクランプ装置68による駆動軸41のクランプが完了した時(S23:YES、S83:YES)、C軸モータ66を停止する(S24、S84)。CPU91は位置ずれ量がエラー閾値より大きい時(S31:NO)、リトライ処理(S51〜S84)において、モータ待ち時間をモータ待ち時間カウンタに設定する(S53)。CPU91はモータ待ち時間が経過した時(S53:YES)、クランプ装置68による駆動軸41のアンクランプを実行して(S61)、C軸モータ66を駆動する(S63)。CPU91はクランプ装置68による駆動軸41のクランプを実行する(S81)。クランプ装置68が駆動軸41をクランプしている時に、CPU91はモータ待ち時間の間、C軸モータ66を停止するので、駆動軸41で発生するC軸モータ66によるトルクが低減する。故に数値制御装置1は、駆動軸41の位置ずれ量が大きくなることを抑制できる。 When the clamping of the drive shaft 41 by the clamping device 68 is completed (S23: YES, S83: YES), the CPU 91 stops the C-axis motor 66 (S24, S84). When the misalignment amount is larger than the error threshold value (S31: NO), the CPU 91 sets the motor waiting time in the motor waiting time counter in the retry processing (S51 to S84) (S53). When the motor waiting time elapses (S53: YES), the CPU 91 unclamps the drive shaft 41 by the clamping device 68 (S61) to drive the C-axis motor 66 (S63). The CPU 91 clamps the drive shaft 41 by the clamping device 68 (S81). When the clamping device 68 is clamping the drive shaft 41, the CPU 91 stops the C-axis motor 66 during the motor waiting time, so that the torque generated by the C-axis motor 66 on the drive shaft 41 is reduced. Therefore, the numerical control device 1 can suppress an increase in the amount of misalignment of the drive shaft 41.

エンコーダ76は駆動軸41の回転位置の絶対位置を検出する。CPU91は検出した駆動軸41の回転位置と所定回転位置との差分である位置ずれ量と、エラー閾値(S31)又はずれ許容値(S32)との関係を判定する。数値制御装置1は、駆動軸41の回転位置を検出できるので、駆動軸41を指定の回転位置で精度良く静止させることができる。 The encoder 76 detects the absolute position of the rotation position of the drive shaft 41. The CPU 91 determines the relationship between the position deviation amount, which is the difference between the detected rotation position of the drive shaft 41 and the predetermined rotation position, and the error threshold value (S31) or the deviation tolerance value (S32). Since the numerical control device 1 can detect the rotation position of the drive shaft 41, the drive shaft 41 can be accurately stopped at the designated rotation position.

本発明は、上記実施例に限らない。上記実施例では、CPU91はC軸テーブル40に連結した駆動軸41に対してリトライ処理を実行したが、これに限られない。右側駆動機構部28はクランプ装置を備え、CPU91はA軸テーブル20と連結した右側駆動機構部28の支軸に対してリトライ処理を実行してもよい。工作機械100がY軸に対して平行な回転軸であるB軸やその他の回転軸の駆動軸を有し、これらの駆動軸に対してリトライ処理を実行してもよい。 The present invention is not limited to the above examples. In the above embodiment, the CPU 91 executes the retry process on the drive shaft 41 connected to the C-axis table 40, but the present invention is not limited to this. The right side drive mechanism unit 28 may include a clamp device, and the CPU 91 may execute a retry process on the support shaft of the right side drive mechanism unit 28 connected to the A-axis table 20. The machine tool 100 may have a B-axis which is a rotation axis parallel to the Y-axis and drive axes of other rotation axes, and a retry process may be executed on these drive axes.

上記実施例では、クランプ装置はディスクブレーキを備えることを例示したが、ドラムブレーキ等、その他の制動装置であってもよい。クランプ装置の駆動方式は空気圧でもよいし、油圧でもよく、限定しない。 In the above embodiment, the clamp device includes a disc brake, but other braking devices such as a drum brake may be used. The drive system of the clamp device may be pneumatic or hydraulic, and is not limited.

上記実施例では、CPU91は駆動軸41の回転位置をエンコーダ76により駆動軸41の回転位置を特定したが、回転位置を検出するものはエンコーダ76に限らず、例えば複数の位置センサの検出結果から駆動軸41の回転位置を検出してもよい。 In the above embodiment, the CPU 91 specifies the rotation position of the drive shaft 41 by the encoder 76, but the one that detects the rotation position is not limited to the encoder 76, for example, from the detection results of a plurality of position sensors. The rotation position of the drive shaft 41 may be detected.

リトライ最大回数、ずれ許容値、クランプ待ち時間は使用者が値を設定するが、予め設定した所定の値であってもよい。初回の駆動軸41のクランプ(S21)した時と、リトライ処理での駆動軸41のクランプ(S81)した時とで、ずれ許容値の値が異なってもよい。 The maximum number of retries, the allowable deviation value, and the clamp waiting time are set by the user, but may be predetermined values set in advance. The deviation allowable value may differ between when the drive shaft 41 is clamped (S21) for the first time and when the drive shaft 41 is clamped (S81) in the retry process.

上記実施例では、CPU91がアンクランプ出力信号を駆動回路58に入力した時、クランプ装置68は駆動軸41をアンクランプし、CPU91がアンクランプ出力信号を駆動回路58に入力しない時、クランプ装置68は駆動軸41をクランプしたが、これに限らない。CPU91がクランプ出力信号を駆動回路58に入力した時、クランプ装置68は駆動軸41をクランプしてもよい。該時、CPU91がクランプ出力信号を駆動回路58に入力しない時、クランプ装置68は駆動軸41をアンクランプしてもよい。 In the above embodiment, when the CPU 91 inputs the unclamp output signal to the drive circuit 58, the clamp device 68 unclamps the drive shaft 41, and when the CPU 91 does not input the unclamp output signal to the drive circuit 58, the clamp device 68. Clamped the drive shaft 41, but is not limited to this. When the CPU 91 inputs a clamp output signal to the drive circuit 58, the clamp device 68 may clamp the drive shaft 41. At that time, when the CPU 91 does not input the clamp output signal to the drive circuit 58, the clamp device 68 may unclamp the drive shaft 41.

初回の駆動軸41のクランプ(S21)した時と、リトライ処理での駆動軸41のクランプ(S81)した時とで、S41の報知は報知の態様が異なってもよい。 The mode of notification of S41 may differ between when the drive shaft 41 is clamped (S21) for the first time and when the drive shaft 41 is clamped (S81) in the retry process.

1 数値制御装置
40 C軸テーブル
41 駆動軸
50 C軸駆動部
66 C軸モータ
68 クランプ装置
76 エンコーダ
100 工作機械
1 Numerical control device 40 C-axis table 41 Drive shaft 50 C-axis drive unit 66 C-axis motor 68 Clamp device 76 Encoder 100 Machine tool

Claims (8)

サーボモータ、前記サーボモータで回転駆動する駆動軸、前記駆動軸をクランプするクランプ部を備えた工作機械を制御可能な数値制御装置において、
前記サーボモータを制御し、指定した回転位置である第一回転位置まで前記駆動軸を回転する第一制御部と、
前記第一制御部により前記駆動軸を前記第一回転位置まで回転した場合、前記クランプ部を制御して前記駆動軸をクランプする第二制御部と、
前記駆動軸の前記回転位置と前記第一回転位置との差分であるずれ量と、閾値との関係を判定する判定部と、
前記第二制御部による前記駆動軸のクランプが完了した後の前記ずれ量が、前記判定部により所定の第一閾値以上であると判定した場合、前記クランプ部を制御して前記駆動軸をアンクランプし、その後、前記クランプ部を制御して前記駆動軸をクランプする第三制御部と
を備えたこと特徴とする数値制御装置。
In a numerical control device capable of controlling a machine tool having a servomotor, a drive shaft that is rotationally driven by the servomotor, and a clamp portion that clamps the drive shaft.
A first control unit that controls the servomotor and rotates the drive shaft to the first rotation position, which is a designated rotation position.
When the drive shaft is rotated to the first rotation position by the first control unit, a second control unit that controls the clamp unit to clamp the drive shaft and
A determination unit that determines the relationship between the deviation amount, which is the difference between the rotation position of the drive shaft and the first rotation position, and the threshold value.
When the determination unit determines that the amount of deviation after the clamp of the drive shaft by the second control unit is completed is equal to or greater than a predetermined first threshold value, the clamp unit is controlled to release the drive shaft. A numerical control device including a third control unit that clamps and then controls the clamp unit to clamp the drive shaft.
前記第三制御部は、
前記駆動軸のアンクランプが完了してから第一時間が経過した場合、前記クランプ部を制御して前記駆動軸をクランプする
ことを特徴とする請求項1に記載の数値制御装置。
The third control unit
The numerical control device according to claim 1, wherein when the first time elapses after the unclamping of the drive shaft is completed, the clamp portion is controlled to clamp the drive shaft.
前記第三制御部は、更に、
前記クランプ部を制御して前記駆動軸をクランプした後の前記ずれ量が前記第一閾値未満となるまで、前記駆動軸のアンクランプ及びクランプを繰り返す繰り返し制御を実行し、
前記第三制御部による前記繰り返し制御の回数である第一回数が、所定の第二閾値以上である場合、前記第三制御部による前記繰り返し制御を中止する第一停止部と
を備えたことを特徴とする請求項1又は2に記載の数値制御装置。
The third control unit further
Repeated control of repeating unclamping and clamping of the drive shaft is executed until the amount of deviation after controlling the clamp portion and clamping the drive shaft becomes less than the first threshold value.
When the first number of times of the repetitive control by the third control unit is equal to or more than a predetermined second threshold value, the first stop unit for stopping the repetitive control by the third control unit is provided. The numerical control device according to claim 1 or 2.
前記第二制御部による前記駆動軸のクランプが完了した後の前記ずれ量が、前記判定部により、前記第一閾値よりも値が大きい第三閾値以上と判定した場合、報知部に報知させることを特徴とする請求項1から3の何れかに記載の数値制御装置。 When the determination unit determines that the deviation amount after the clamp of the drive shaft by the second control unit is completed is equal to or greater than the third threshold value having a value larger than the first threshold value, the notification unit is notified. The numerical control device according to any one of claims 1 to 3. 前記第三制御部による前記駆動軸のクランプが完了した後の前記ずれ量が、前記判定部により、前記第一閾値よりも値が大きい第四閾値以上と判定した場合、前記第三制御部による前記繰り返し制御を停止し、報知部に報知させる第二停止部を更に備えたことを特徴とする請求項3に記載の数値制御装置。 When the determination unit determines that the deviation amount after the clamp of the drive shaft by the third control unit is completed is equal to or greater than the fourth threshold value having a value larger than the first threshold value, the third control unit determines. The numerical control device according to claim 3, further comprising a second stop unit that stops the repetitive control and notifies the notification unit. 前記判定部により、前記ずれ量が前記第一閾値以上と判定した場合、第二時間が経過するまでの間、前記サーボモータの駆動を停止する第三停止部を更に備え
前記第三制御部は、
前記第二時間が経過した場合、前記クランプ部を制御して前記駆動軸をクランプすることを特徴とする請求項1から5の何れかに記載の数値制御装置。
When the determination unit determines that the deviation amount is equal to or greater than the first threshold value, the third control unit further includes a third stop unit that stops the driving of the servomotor until the second time elapses. ,
The numerical control device according to any one of claims 1 to 5, wherein when the second time elapses, the clamp portion is controlled to clamp the drive shaft.
前記回転位置を検出可能な検出部を備え、
前記判定部は、前記検出部が検出した前記回転位置と前記第一回転位置との差分である前記ずれ量と、前記閾値との関係で判定する
ことを特徴とする請求項1から6の何れかに記載の数値制御装置。
A detector capable of detecting the rotation position is provided.
Any of claims 1 to 6, wherein the determination unit determines the relationship between the deviation amount, which is the difference between the rotation position and the first rotation position detected by the detection unit, and the threshold value. Numerical control device described in.
請求項1から7の何れかに記載の数値制御装置を備えたことを特徴とする工作機械。 A machine tool provided with the numerical control device according to any one of claims 1 to 7.
JP2019054501A 2019-03-22 2019-03-22 Numerical control device and machine tool Pending JP2020154956A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2019054501A JP2020154956A (en) 2019-03-22 2019-03-22 Numerical control device and machine tool
CN202010004722.XA CN111716112B (en) 2019-03-22 2020-01-03 Numerical control device and machine tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019054501A JP2020154956A (en) 2019-03-22 2019-03-22 Numerical control device and machine tool

Publications (1)

Publication Number Publication Date
JP2020154956A true JP2020154956A (en) 2020-09-24

Family

ID=72559298

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019054501A Pending JP2020154956A (en) 2019-03-22 2019-03-22 Numerical control device and machine tool

Country Status (2)

Country Link
JP (1) JP2020154956A (en)
CN (1) CN111716112B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004348350A (en) * 2003-05-21 2004-12-09 Mori Seiki Co Ltd Correction device for machine tool
JP2005039947A (en) * 2003-07-16 2005-02-10 Toyoda Mach Works Ltd Servo drive unit and control method for the same
JP2008183647A (en) * 2007-01-29 2008-08-14 Mitsubishi Heavy Ind Ltd Positioning method of moving body
JP2009248242A (en) * 2008-04-04 2009-10-29 Fanuc Ltd Rotary table having clamp motion condition confirmation means
US20140035213A1 (en) * 2012-08-01 2014-02-06 Fanuc Corporation Machine tool having rotary table
JP2014048774A (en) * 2012-08-30 2014-03-17 Okuma Corp Numerical control device
JP2015064763A (en) * 2013-09-25 2015-04-09 ブラザー工業株式会社 Machine tool
JP2018202549A (en) * 2017-06-05 2018-12-27 ファナック株式会社 Machine tool and wait time changing method

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3886652A (en) * 1971-10-24 1975-06-03 Colt Ind Operating Corp Tool changer mechanism
JPS57168842A (en) * 1981-04-08 1982-10-18 Hitachi Seiki Co Ltd Tool rest of machine tool
JPH0688187B2 (en) * 1986-12-19 1994-11-09 キヤノン株式会社 Rotary drive
KR100296467B1 (en) * 1998-12-31 2001-10-26 양재신 Index control method according to the machining table angle command of the horizontal machining center
JP4290639B2 (en) * 2004-12-01 2009-07-08 三菱電機株式会社 Numerical control device and numerical control machine tool
JP5308388B2 (en) * 2010-03-31 2013-10-09 三菱重工業株式会社 Gear processing machine
JP5811924B2 (en) * 2012-03-29 2015-11-11 ブラザー工業株式会社 Machine Tools
JP5958188B2 (en) * 2012-08-30 2016-07-27 ブラザー工業株式会社 Numerical controller
CN104907635A (en) * 2014-03-11 2015-09-16 张家港乙腾机械有限公司 Direct-drive zero-transmission completely numerical control horizontal gear hobbing machine
JP2016085650A (en) * 2014-10-28 2016-05-19 ブラザー工業株式会社 Numeral control device and control method
JP6174636B2 (en) * 2015-07-24 2017-08-02 ファナック株式会社 Work positioning device for positioning work
CN107234485B (en) * 2016-03-28 2019-06-28 兄弟工业株式会社 The control method of lathe and lathe

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004348350A (en) * 2003-05-21 2004-12-09 Mori Seiki Co Ltd Correction device for machine tool
JP2005039947A (en) * 2003-07-16 2005-02-10 Toyoda Mach Works Ltd Servo drive unit and control method for the same
JP2008183647A (en) * 2007-01-29 2008-08-14 Mitsubishi Heavy Ind Ltd Positioning method of moving body
JP2009248242A (en) * 2008-04-04 2009-10-29 Fanuc Ltd Rotary table having clamp motion condition confirmation means
US20140035213A1 (en) * 2012-08-01 2014-02-06 Fanuc Corporation Machine tool having rotary table
JP2014048774A (en) * 2012-08-30 2014-03-17 Okuma Corp Numerical control device
JP2015064763A (en) * 2013-09-25 2015-04-09 ブラザー工業株式会社 Machine tool
JP2018202549A (en) * 2017-06-05 2018-12-27 ファナック株式会社 Machine tool and wait time changing method

Also Published As

Publication number Publication date
CN111716112A (en) 2020-09-29
CN111716112B (en) 2022-04-12

Similar Documents

Publication Publication Date Title
JP2009034738A (en) Machine tool having function for automatically correcting attachment error by contact detection
JP2002224936A (en) Tool presetter and method for calculation of tool offset data
JP5607690B2 (en) Machine tool with rotating table
JP2017102532A (en) Numerical controller and method of controlling numerical controller
JP2005066819A (en) Articulated robot
EP3907038B1 (en) Machine tool and operation method therefor
JP2016085650A (en) Numeral control device and control method
JP2020154956A (en) Numerical control device and machine tool
JP6102850B2 (en) Method and apparatus for detecting Z-axis backlash amount of machining center
US20240058915A1 (en) Machine Tool, Method of Estimating Force Applied to Tool, and Program for Estimating Force Applied to Tool
JP5072743B2 (en) Micromachine and micromilling machine
KR102010590B1 (en) Spindle clamping and unclamping automatic control device and method thereof
JP2018161724A (en) Machine tool system and clamp method
US5121039A (en) Index control apparatus for tool rest of nc lathe
JP5861522B2 (en) Machine Tools
KR101892393B1 (en) Automatic tool changing apparatus and method
JP5491220B2 (en) Torque detection device
KR20200092602A (en) Method of detecting and controlling rotation unbalance of machine tool rotating table
JP2021084139A (en) Control device of electric motor and control method of electric motor
JP2662459B2 (en) Indexing control device for tool post for NC lathe
KR100324642B1 (en) Dual Rotary Table Control Unit and Method
JP6845209B2 (en) Parameter setting device, system and parameter setting method
JPH06161527A (en) Numerical controller
JP2019046105A (en) Machine tool, control device, control method, and computer program
JP2000158260A (en) Table for machine tool

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210309

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220114

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220201

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20220726