JP7010261B2 - Numerical control device and control method - Google Patents

Numerical control device and control method Download PDF

Info

Publication number
JP7010261B2
JP7010261B2 JP2019054175A JP2019054175A JP7010261B2 JP 7010261 B2 JP7010261 B2 JP 7010261B2 JP 2019054175 A JP2019054175 A JP 2019054175A JP 2019054175 A JP2019054175 A JP 2019054175A JP 7010261 B2 JP7010261 B2 JP 7010261B2
Authority
JP
Japan
Prior art keywords
section
constant speed
acceleration
machining
deceleration
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.)
Active
Application number
JP2019054175A
Other languages
Japanese (ja)
Other versions
JP2020154921A (en
Inventor
弦 寺田
輝久 小島
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 JP2019054175A priority Critical patent/JP7010261B2/en
Priority to CN202010042652.7A priority patent/CN111716148B/en
Publication of JP2020154921A publication Critical patent/JP2020154921A/en
Application granted granted Critical
Publication of JP7010261B2 publication Critical patent/JP7010261B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • B23Q17/00Arrangements for observing, indicating or measuring on machine tools
    • B23Q17/09Arrangements for observing, indicating or measuring on machine tools for indicating or measuring cutting pressure or for determining cutting-tool condition, e.g. cutting ability, load on tool
    • B23Q17/0952Arrangements for observing, indicating or measuring on machine tools for indicating or measuring cutting pressure or for determining cutting-tool condition, e.g. cutting ability, load on tool during machining
    • B23Q17/0961Arrangements for observing, indicating or measuring on machine tools for indicating or measuring cutting pressure or for determining cutting-tool condition, e.g. cutting ability, load on tool during machining by measuring power, current or torque of a motor

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Machine Tool Sensing Apparatuses (AREA)
  • Numerical Control (AREA)

Description

本発明は、数値制御装置と制御方法に関する。 The present invention relates to a numerical control device and a control method.

特許文献1は、切削機械の送り軸のサーボモータ又は主軸モータの負荷電流値に基づき切削負荷を監視する方法を開示する。該方法は、加減速によるトルクの影響を受けないようにする為、モータの加減速に必要な電流値をモータ電流の検出値から差し引いた値を補正演算し、該補正後電流値を切削負荷の監視対象とする。 Patent Document 1 discloses a method of monitoring a cutting load based on a load current value of a servomotor or a spindle motor of a feed shaft of a cutting machine. In this method, in order not to be affected by the torque due to acceleration / deceleration, the value obtained by subtracting the current value required for acceleration / deceleration of the motor from the detected value of the motor current is corrected and calculated, and the corrected current value is used as the cutting load. To be monitored by.

特開平7-24694号公報Japanese Unexamined Patent Publication No. 7-24694

モータの加減速に必要な負荷電流値は、機械の経年変化、温度、負荷重量等、様々な要因によって変化する。故に特許文献1に記載の方法は、加減速に必要な電流値をモータ電流の検出値から完全に取り除くことが困難であり、誤差を生じる可能性があった。 The load current value required for acceleration / deceleration of the motor changes depending on various factors such as aging of the machine, temperature, load weight, and the like. Therefore, in the method described in Patent Document 1, it is difficult to completely remove the current value required for acceleration / deceleration from the detected value of the motor current, and an error may occur.

本発明の目的は、主軸モータの加工負荷を精度よく監視できる数値制御装置と制御方法を提供することである。 An object of the present invention is to provide a numerical control device and a control method capable of accurately monitoring the machining load of a spindle motor.

請求項1の数値制御装置は、工作機械の主軸モータの負荷電流値に基づき、被削材の切削加工における加工負荷を監視可能な数値制御装置において、前記切削加工における前記主軸モータの回転開始から回転停止までの駆動期間の前記負荷電流値を測定する測定部と、前記測定部が測定した前記負荷電流値に基づき、前記加工負荷を算出する加工負荷算出部と、前記加工負荷算出部が算出した前記加工負荷は閾値以上か判断する判断部と、前記判断部が前記加工負荷は前記閾値以上と判断した場合、アラームを出力する出力部とを備え、前記駆動期間は少なくとも、前記主軸モータを一定速度まで加速する加速区間と、前記主軸モータを前記一定速度から減速して停止する減速区間とを備え、前記加工負荷算出部は、前記加速区間と前記減速区間の間に、前記一定速度の区間である一定速区間が有るか否か判断する一定速区間判断部と、前記一定速区間判断部が、前記加速区間と前記減速区間の間に、前記一定速区間が有ると判断した場合、前記一定速区間における前記負荷電流値のピーク値を前記加工負荷として算出する第一算出部と、前記一定速区間判断部が、前記加速区間と前記減速区間の間に、前記一定速区間が無いと判断した場合、前記駆動期間における前記負荷電流値の平均値を前記加工負荷として算出する第二算出部とを備えたことを特徴とする。加速区間と減速区間の間に一定速区間が有る場合、数値制御装置は、一定速区間における負荷電流値のピーク値を加工負荷として算出する。故に数値制御装置は加減速によるトルクの影響を受けずに、加工負荷を監視できる。一定速区間において発生する加工負荷の瞬間的な変化、及び加工負荷の緩やかな変化の何れも検出できる。例えば短いタップ加工のように、加速区間と減速区間の間に一定速区間が無い場合、数値制御装置は、駆動期間における負荷電流値の平均値を加工負荷として算出する。負荷電流値は主軸モータのトルクに相当する。駆動期間中の負荷電流値の平均値を算出することで、加速のトルクと減速のトルクは互いに打ち消しあうので、数値制御装置は、加工のトルクを監視できる。故に数値制御装置は、切削加工の駆動期間に一定速区間が有るか無いかに関わらず、加工負荷を精度よく監視できる。「一定速区間が無い」とは、加速区間と減速区間の間に一定速区間が全く無い状態のみならず、駆動期間に占める一定速区間の割合が小さく、一定速区間が短い状態を含んでもよい。 The numerical control device according to claim 1 is a numerical control device capable of monitoring the machining load in the machining of the work material based on the load current value of the spindle motor of the machine tool, from the start of rotation of the spindle motor in the machining. The measuring unit that measures the load current value during the drive period until the rotation stops, the machining load calculation unit that calculates the machining load based on the load current value measured by the measurement unit, and the machining load calculation unit calculate. A determination unit for determining whether the machining load is equal to or greater than the threshold value and an output unit for outputting an alarm when the determination unit determines that the machining load is equal to or greater than the threshold value are provided. The processing load calculation unit includes an acceleration section for accelerating to a constant speed and a deceleration section for decelerating and stopping the spindle motor from the constant speed, and the machining load calculation unit has the constant speed between the acceleration section and the deceleration section. When the constant speed section determination unit for determining whether or not there is a constant speed section which is a section and the constant speed section determination unit determine that the constant speed section exists between the acceleration section and the deceleration section. The first calculation unit that calculates the peak value of the load current value in the constant speed section as the machining load and the constant speed section determination unit do not have the constant speed section between the acceleration section and the deceleration section. When it is determined that the processing load is determined to be, it is characterized by including a second calculation unit that calculates the average value of the load current values in the drive period as the machining load. When there is a constant speed section between the acceleration section and the deceleration section, the numerical control device calculates the peak value of the load current value in the constant speed section as the machining load. Therefore, the numerical control device can monitor the machining load without being affected by the torque due to acceleration / deceleration. Both a momentary change in the machining load generated in a constant speed section and a gradual change in the machining load can be detected. For example, when there is no constant speed section between the acceleration section and the deceleration section as in short tap machining, the numerical control device calculates the average value of the load current values in the drive period as the machining load. The load current value corresponds to the torque of the spindle motor. By calculating the average value of the load current values during the drive period, the acceleration torque and the deceleration torque cancel each other out, so that the numerical control device can monitor the machining torque. Therefore, the numerical control device can accurately monitor the machining load regardless of whether or not there is a constant speed section in the drive period of cutting. "There is no constant speed section" means not only that there is no constant speed section between the acceleration section and the deceleration section, but also that the ratio of the constant speed section to the drive period is small and the constant speed section is short. good.

請求項2の数値制御装置の前記一定速区間判断部は、前記加速区間と前記減速区間に必要な加減速距離又は加減速時間を算出する加減速区間算出部と、前記駆動期間に必要な距離又は時間に占める前記加減速区間算出部が算出した前記加減速距離又は前記加減速時間の割合が所定値以下か否か判断する割合判断部とを備え、前記割合判断部が前記割合は前記所定値以下と判断した場合、前記一定速区間が有ると判断し、前記割合判断部が前記割合は前記所定値を超えると判断した場合、前記一定速区間が無いと判断するとよい。数値制御装置は、駆動期間に必要な距離又は時間に占める加減速距離又は加減速時間の割合が所定値以下か否かで、一定速区間の有無を判断する。数値制御装置は一定速区間の長さによって、一定速区間の有無を判断できるので、加工負荷の算出方法を適切に選択できる。 The constant speed section determination unit of the numerical control device according to claim 2 includes an acceleration / deceleration section calculation unit that calculates an acceleration / deceleration distance or an acceleration / deceleration time required for the acceleration section and the deceleration section, and a distance required for the drive period. Alternatively, the ratio determination unit for determining whether or not the ratio of the acceleration / deceleration distance or the acceleration / deceleration time calculated by the acceleration / deceleration section calculation unit to the time is equal to or less than a predetermined value is provided, and the ratio determination unit determines the ratio. If it is determined that there is a constant speed section or less, and if the ratio determination unit determines that the ratio exceeds the predetermined value, it may be determined that there is no constant speed section. The numerical control device determines the presence or absence of a constant speed section based on whether or not the ratio of the acceleration / deceleration distance or the acceleration / deceleration time to the distance or time required for the drive period is equal to or less than a predetermined value. Since the numerical control device can determine the presence or absence of the constant speed section based on the length of the constant speed section, the machining load calculation method can be appropriately selected.

請求項3の数値制御装置の前記切削加工はタップ加工であって、前記工作機械の主軸を前記被削材に対して相対的に互いに直交する3軸方向に移動可能な三つの送りモータのうち、前記タップ加工時に前記主軸を前記被削材に向けて移動する移動モータのトルクを監視するトルク監視部を備え、前記一定速区間判断部は、前記移動モータが駆動を開始し、前記トルク監視部が監視する前記トルクが一定値を超えた場合、前記加速区間は完了しているか否か判断する加速完了判断部を備え、前記加速完了判断部が前記加速区間は完了していると判断した場合、前記一定速区間が有ると判断し、前記加速完了判断部が前記加速区間は完了していないと判断した場合、前記一定速区間が無いと判断するとよい。切削加工はタップ加工である。数値制御装置は、タップ加工時の移動モータのトルクを監視する。移動モータのトルクが一定値を超えた場合、数値制御装置は、被削材に工具が接触して加工が開始したと判断できる。加工開始時、加速区間が完了している場合、数値制御装置は一定速区間が有ると判断する。加工開始時、加速区間が完了していない場合、数値制御装置は一定速区間が無いと判断する。故に数値制御装置は一定速区間の有無に応じて、加工負荷の算出方法を適切に選択できる。 The cutting process of the numerical control device according to claim 3 is tap processing, and is among three feed motors capable of moving the spindle of the machine tool in three axial directions relatively orthogonal to the work material. A torque monitoring unit for monitoring the torque of a moving motor that moves the spindle toward the work material during tapping is provided, and the constant speed section determination unit is provided with the moving motor starting to drive and monitoring the torque. When the torque monitored by the unit exceeds a certain value, an acceleration completion determination unit for determining whether or not the acceleration section is completed is provided, and the acceleration completion determination unit determines that the acceleration section is completed. In this case, if it is determined that the constant speed section exists and the acceleration completion determination unit determines that the acceleration section has not been completed, it may be determined that the constant speed section does not exist. Cutting is tapping. The numerical control device monitors the torque of the moving motor during tapping. When the torque of the moving motor exceeds a certain value, the numerical control device can determine that the tool has come into contact with the work material and machining has started. If the acceleration section is completed at the start of machining, the numerical control device determines that there is a constant speed section. If the acceleration section is not completed at the start of machining, the numerical control device determines that there is no constant speed section. Therefore, the numerical control device can appropriately select the processing load calculation method according to the presence or absence of a constant speed section.

請求項4の数値制御装置の前記切削加工はタップ加工であって、前記工作機械の主軸を前記被削材に対して相対的に互いに直交する3軸方向に移動可能な三つの送りモータのうち、前記タップ加工時には静止する静止モータのトルクを監視するトルク監視部を備え、前記一定速区間判断部は、前記トルク監視部が監視する前記トルクが一定値を超えた場合、前記加速区間は完了しているか否か判断する加速完了判断部とを備え、前記加速完了判断部が前記加速区間は完了していると判断した場合、前記一定速区間が有ると判断し、前記加速完了判断部が前記加速区間は完了していないと判断した場合、前記一定速区間が無いと判断するとよい。切削加工はタップ加工である。数値制御装置は、タップ加工時の静止モータのトルクを監視する。静止モータのトルクが一定値を超えた場合、数値制御装置は、被削材に工具が接触して加工が開始したと判断できる。加工開始時、加速区間が既に完了している場合、数値制御装置は一定速区間が有ると判断する。加工開始時、加速区間が完了していない場合、数値制御装置は一定速区間が無いと判断する。故に数値制御装置は一定速区間の有無に応じて、加工負荷の算出方法を適切に選択できる。 The cutting process of the numerical control device according to claim 4 is tap processing, and is among three feed motors capable of moving the spindle of the machine tool in three axial directions relatively orthogonal to the work material. A torque monitoring unit that monitors the torque of a stationary motor that is stationary during tapping is provided, and the constant speed section determination unit completes the acceleration section when the torque monitored by the torque monitoring unit exceeds a certain value. The acceleration completion determination unit is provided with an acceleration completion determination unit for determining whether or not the acceleration is performed, and when the acceleration completion determination unit determines that the acceleration section is completed, the acceleration completion determination unit determines that there is a constant speed section. If it is determined that the acceleration section has not been completed, it may be determined that the constant speed section does not exist. Cutting is tapping. The numerical control device monitors the torque of the stationary motor during tapping. When the torque of the stationary motor exceeds a certain value, the numerical control device can determine that the tool has come into contact with the work material and machining has started. If the acceleration section has already been completed at the start of machining, the numerical control device determines that there is a constant speed section. If the acceleration section is not completed at the start of machining, the numerical control device determines that there is no constant speed section. Therefore, the numerical control device can appropriately select the processing load calculation method according to the presence or absence of a constant speed section.

請求項5の数値制御装置は、前記加工負荷算出部が算出した前記加工負荷は前記閾値よりも低い下限閾値以下か判断する下限判断部と、前記下限判断部が前記加工負荷は前記下限閾値以下と判断した場合、前記切削加工が二回目以降の加工であることを報知する報知部とを備えるとよい。二回目以降の加工は、作業者が加工終了したにも関わらず、被削材の交換を忘れて再度加工した場合の加工を意味する。二回目以降の加工の場合、加工負荷はほぼ無い状態である。加工負荷が下限閾値以下の場合、数値制御装置は二回目以降の加工であることを報知するので、作業者は被削材を交換する等、迅速に対応できる。 The numerical control device according to claim 5 includes a lower limit determination unit that determines whether the machining load calculated by the machining load calculation unit is equal to or less than the lower limit threshold value lower than the threshold value, and the lower limit determination unit determines that the machining load is equal to or less than the lower limit threshold value. If it is determined that the cutting process is performed for the second time or later, it is preferable to provide a notification unit for notifying that the cutting process is the second or subsequent process. The second and subsequent processing means processing when the worker forgets to replace the work material and processes again even though the processing is completed. In the case of the second and subsequent machining, there is almost no machining load. When the machining load is equal to or less than the lower limit threshold value, the numerical control device notifies that the machining is performed for the second time or later, so that the operator can quickly respond by exchanging the work material.

請求項6の制御方法は、工作機械の主軸モータの負荷電流値に基づき、被削材の切削加工における加工負荷を監視可能な数値制御装置の制御方法において、前記切削加工における前記主軸モータの回転開始から回転停止までの駆動期間の前記負荷電流値を測定する測定ステップと、前記測定ステップで測定した前記負荷電流値に基づき、前記加工負荷を算出する加工負荷算出ステップと、前記加工負荷算出ステップで算出した前記加工負荷は閾値以上か判断する判断ステップと、前記判断ステップで前記加工負荷は前記閾値以上と判断した場合、アラームを出力する出力ステップとを備え、前記駆動期間は少なくとも、前記主軸モータを一定速度まで加速する加速区間と、前記主軸モータを前記一定速度から減速して停止する減速区間とを備え、前記加工負荷算出ステップは、前記加速区間と前記減速区間の間に、前記一定速度の区間である一定速区間が有るか否か判断する一定速区間判断ステップと、前記一定速区間判断ステップで、前記加速区間と前記減速区間の間に、前記一定速区間が有ると判断した場合、前記一定速区間における前記負荷電流値のピーク値を前記加工負荷として算出する第一算出ステップと、前記一定速区間判断ステップで、前記加速区間と前記減速区間の間に、前記一定速区間が無いと判断した場合、前記駆動期間における前記負荷電流値の平均値を前記加工負荷として算出する第二算出ステップとを備えたことを特徴とする。故に数値制御装置は、上記請求項1に記載の効果を得ることができる。 The control method according to claim 6 is a control method of a numerical control device capable of monitoring a machining load in a machining of a work material based on a load current value of a spindle motor of a machine tool, in which the rotation of the spindle motor in the machining is performed. A measurement step for measuring the load current value during the drive period from the start to the stop of rotation, a machining load calculation step for calculating the machining load based on the load current value measured in the measurement step, and a machining load calculation step. A determination step for determining whether the machining load calculated in the above is equal to or greater than the threshold value and an output step for outputting an alarm when the machining load is determined to be equal to or greater than the threshold value in the determination step are provided, and the drive period is at least the spindle. An acceleration section for accelerating the motor to a constant speed and a deceleration section for decelerating and stopping the spindle motor from the constant speed are provided, and the machining load calculation step is the constant between the acceleration section and the deceleration section. In the constant speed section determination step for determining whether or not there is a constant speed section which is a speed section, and the constant speed section determination step, it is determined that the constant speed section exists between the acceleration section and the deceleration section. In the case, in the first calculation step of calculating the peak value of the load current value in the constant speed section as the machining load and the constant speed section determination step, the constant speed section is between the acceleration section and the deceleration section. When it is determined that there is no such thing, it is characterized by including a second calculation step of calculating the average value of the load current values in the drive period as the machining load. Therefore, the numerical control device can obtain the effect according to claim 1.

工作機械1の斜視図。A perspective view of the machine tool 1. 数値制御装置30と工作機械1の電気的構成を示すブロック図。The block diagram which shows the electric composition of a numerical control device 30 and a machine tool 1. タップ加工の方法を示す図。The figure which shows the method of tap processing. タップ加工のモータ電流値(トルク)の波形図。Waveform diagram of motor current value (torque) for tapping. 短タップ加工の方法を示す図。The figure which shows the method of short tap processing. 短タップ加工のモータ電流値(トルク)の波形図。Waveform diagram of motor current value (torque) for short tap processing. 加工制御処理の流れ図。Flow chart of machining control processing. 加工制御処理(第一変形例)の流れ図。Flow chart of machining control processing (first modification). 加工制御処理(第二変形例)の流れ図。Flow chart of machining control processing (second modification). 加工制御処理(第三変形例)の流れ図。Flow chart of machining control processing (third modification).

本発明の実施形態を説明する。以下説明は、図中に矢印で示す左右、前後、上下を使用する。工作機械1の左右方向、前後方向、上下方向は夫々工作機械1のX軸方向、Y軸方向、Z軸方向である。図1に示す工作機械1は主軸9に装着した工具4を回転し、工作台13上面に保持した被削材3に切削加工を施す機械である。数値制御装置30(図2参照)は工作機械1の動作を制御する。 An embodiment of the present invention will be described. The following description uses left and right, front and back, and up and down indicated by arrows in the figure. The left-right direction, the front-back direction, and the up-down direction of the machine tool 1 are the X-axis direction, the Y-axis direction, and the Z-axis direction of the machine tool 1, respectively. The machine tool 1 shown in FIG. 1 is a machine that rotates a tool 4 mounted on a spindle 9 and cuts a work material 3 held on the upper surface of a workbench 13. The numerical control device 30 (see FIG. 2) controls the operation of the machine tool 1.

図1を参照し工作機械1の構造を説明する。工作機械1は、基台2、コラム5、主軸ヘッド7、主軸9、工作台装置10、工具交換装置20、制御箱6、操作パネル15(図2参照)等を備える。基台2は金属製の略直方体状の土台である。コラム5は基台2上部後方に立設する。主軸ヘッド7はコラム5前面に沿ってZ軸方向に移動可能に設ける。主軸ヘッド7は内部に主軸9を回転可能に支持する。主軸9は主軸ヘッド7下部に装着穴(図示略)を有する。主軸9は該装着穴に工具4を装着し、主軸モータ52(図2参照)の駆動で回転する。主軸モータ52は主軸ヘッド7に設ける。主軸ヘッド7はコラム5前面に設けたZ軸移動機構(図示略)でZ軸方向に移動する。数値制御装置30はZ軸モータ51(図2参照)の駆動を制御することで、主軸ヘッド7をZ軸方向に移動制御する。 The structure of the machine tool 1 will be described with reference to FIG. The machine tool 1 includes a base 2, a column 5, a spindle head 7, a spindle 9, a workbench device 10, a tool changing device 20, a control box 6, an operation panel 15 (see FIG. 2), and the like. The base 2 is a metal base having a substantially rectangular parallelepiped shape. The column 5 is erected behind the upper part of the base 2. The spindle head 7 is provided so as to be movable in the Z-axis direction along the front surface of the column 5. The spindle head 7 rotatably supports the spindle 9 inside. The spindle 9 has a mounting hole (not shown) at the bottom of the spindle head 7. The spindle 9 mounts the tool 4 in the mounting hole and rotates by driving the spindle motor 52 (see FIG. 2). The spindle motor 52 is provided on the spindle head 7. The spindle head 7 moves in the Z-axis direction by a Z-axis moving mechanism (not shown) provided on the front surface of the column 5. The numerical control device 30 controls the movement of the spindle head 7 in the Z-axis direction by controlling the drive of the Z-axis motor 51 (see FIG. 2).

工作台装置10は、Y軸移動機構(図示略)、Y軸工作台12、X軸移動機構(図示略)、工作台13等を備える。Y軸移動機構は基台2上面前側に設け、一対のY軸レール、Y軸ボール螺子、Y軸モータ54(図2参照)等を備える。一対のY軸レールとY軸ボール螺子はY軸方向に延びる。一対のY軸レールは上面にY軸工作台12をY軸方向に案内する。Y軸工作台12は略直方体状に形成し、底部外面にナット(図示略)を備える。該ナットはY軸ボール螺子に螺合する。Y軸モータ54がY軸ボール螺子を回転すると、Y軸工作台12はナットと共に一対のY軸レールに沿って移動する。故にY軸移動機構はY軸工作台12をY軸方向に移動可能に支持する。 The workbench device 10 includes a Y-axis movement mechanism (not shown), a Y-axis workbench 12, an X-axis movement mechanism (not shown), a workbench 13, and the like. The Y-axis moving mechanism is provided on the front side of the upper surface of the base 2, and includes a pair of Y-axis rails, a Y-axis ball screw, a Y-axis motor 54 (see FIG. 2), and the like. The pair of Y-axis rails and Y-axis ball screws extend in the Y-axis direction. The pair of Y-axis rails guide the Y-axis workbench 12 on the upper surface in the Y-axis direction. The Y-axis workbench 12 is formed in a substantially rectangular parallelepiped shape, and is provided with 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 54 rotates the Y-axis ball screw, the Y-axis workbench 12 moves along the pair of Y-axis rails together with the nut. Therefore, the Y-axis moving mechanism supports the Y-axis workbench 12 so as to be movable in the Y-axis direction.

X軸移動機構はY軸工作台12上面に設け、一対のX軸レール(図示略)、X軸ボール螺子(図示略)、X軸モータ53(図2参照)等を備える。X軸レールとX軸ボール螺子はX軸方向に延びる。工作台13は平面視矩形板状に形成し、Y軸工作台12上面に設ける。工作台13は底部にナット(図示略)を備える。該ナットはX軸ボール螺子に螺合する。X軸モータ53がX軸ボール螺子を回転すると、工作台13はナットと共に一対のX軸レールに沿って移動する。故にX軸移動機構は工作台13をX軸方向に移動可能に支持する。故に工作台13は、Y軸移動機構、Y軸工作台12、X軸移動機構により、基台2上をX軸方向とY軸方向に移動可能である。 The X-axis movement mechanism is provided on the upper surface of the Y-axis workbench 12, and includes a pair of X-axis rails (not shown), an X-axis ball screw (not shown), an X-axis motor 53 (see FIG. 2), and the like. The X-axis rail and the X-axis ball screw extend in the X-axis direction. The workbench 13 is formed in the shape of a rectangular plate in a plan view, and is provided on the upper surface of the Y-axis workbench 12. The workbench 13 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 53 rotates the X-axis ball screw, the workbench 13 moves along the pair of X-axis rails together with the nut. Therefore, the X-axis moving mechanism supports the workbench 13 so as to be movable in the X-axis direction. Therefore, the workbench 13 can move on the base 2 in the X-axis direction and the Y-axis direction by the Y-axis movement mechanism, the Y-axis workbench 12, and the X-axis movement mechanism.

工具交換装置20は主軸ヘッド7の前側に設け、円盤型の工具マガジン21を備える。工具マガジン21は外周に複数の工具(図1では省略)を放射状に保持し、工具交換指令が指示する工具を工具交換位置に位置決めする。工具交換指令はNCプログラムで指令する。工具交換位置は工具マガジン21の最下部位置である。工具交換装置20は主軸9に装着する工具4と工具交換位置にある工具とを入れ替え交換する。 The tool changer 20 is provided on the front side of the spindle head 7 and includes a disk-shaped tool magazine 21. The tool magazine 21 holds a plurality of tools (omitted in FIG. 1) radially on the outer periphery, and positions the tool specified by the tool change command at the tool change position. The tool change command is commanded by the NC program. The tool change position is the lowest position of the tool magazine 21. The tool changing device 20 replaces and replaces the tool 4 mounted on the spindle 9 with the tool at the tool changing position.

制御箱6は数値制御装置30(図2参照)を格納する。数値制御装置30は、工作機械1に設けたZ軸モータ51、主軸モータ52、X軸モータ53、Y軸モータ54(図2参照)を夫々制御し、工作台13上に保持した被削材3と主軸9に装着した工具4を相対移動することで各種加工を被削材3に施す。各種加工とは、例えばドリル、タップ等を用いた穴空け加工とタップ加工、エンドミル、フライス等を用いた側面加工等である。 The control box 6 stores the numerical control device 30 (see FIG. 2). The numerical control device 30 controls the Z-axis motor 51, the spindle motor 52, the X-axis motor 53, and the Y-axis motor 54 (see FIG. 2) provided in the machine tool 1, respectively, and holds the work material on the workbench 13. Various processes are applied to the work material 3 by relatively moving the tool 4 mounted on the spindle 9 and the spindle 9. The various types of processing include, for example, drilling and tapping using a drill, tap, etc., side surface processing using an end mill, milling cutter, and the like.

操作パネル15は、例えば工作機械1を覆うカバー(図示略)の外壁に設ける。操作パネル15は入力部16と表示部17(図2参照)を備える。入力部16は各種情報、操作指示等の入力を受け付け、後述する数値制御装置30に出力する。表示部17は後述する数値制御装置30からの指令に基づき、各種画面を表示する。 The operation panel 15 is provided, for example, on the outer wall of a cover (not shown) that covers the machine tool 1. The operation panel 15 includes an input unit 16 and a display unit 17 (see FIG. 2). The input unit 16 receives inputs such as various information and operation instructions, and outputs them to the numerical control device 30 described later. The display unit 17 displays various screens based on a command from the numerical control device 30 described later.

図2を参照し、数値制御装置30と工作機械1の電気的構成を説明する。数値制御装置30と工作機械1は、CPU31、ROM32、RAM33、記憶装置34、入出力部35、駆動回路51A~55A等を備える。CPU31は数値制御装置30を統括制御する。ROM32は、加工制御プログラムを含む各種プログラム等を記憶する。加工制御プログラムは加工制御処理(図7参照)を実行する。加工制御処理は、NCプログラムを一行ずつ解釈して各種動作を実行しつつ、切削加工時の加工負荷を精度よく計測できる処理である。NCプログラムは各種制御指令を含む複数行で構成し、数値制御装置30はNCプログラムに基づき工作機械1の軸移動、工具交換等を含む各種動作を行単位で制御する。RAM33は各種情報を一時的に記憶する。記憶装置34は不揮発性であり、NCプログラム、各種情報を記憶する。CPU31は作業者が操作パネル15の入力部16で入力したNCプログラムに加え、外部入力で読み込んだNCプログラム等を記憶装置34に記憶できる。 With reference to FIG. 2, the electrical configuration of the numerical control device 30 and the machine tool 1 will be described. The numerical control device 30 and the machine tool 1 include a CPU 31, ROM 32, RAM 33, a storage device 34, an input / output unit 35, drive circuits 51A to 55A, and the like. The CPU 31 controls the numerical control device 30 in an integrated manner. The ROM 32 stores various programs including a machining control program. The machining control program executes machining control processing (see FIG. 7). The machining control process is a process that can accurately measure the machining load during cutting while interpreting the NC program line by line and executing various operations. The NC program is composed of a plurality of lines including various control commands, and the numerical control device 30 controls various operations including axis movement and tool change of the machine tool 1 on a line-by-line basis based on the NC program. The RAM 33 temporarily stores various information. The storage device 34 is non-volatile and stores NC programs and various information. In addition to the NC program input by the operator in the input unit 16 of the operation panel 15, the CPU 31 can store the NC program or the like read by the external input in the storage device 34.

駆動回路51AはZ軸モータ51とエンコーダ51Bに接続する。駆動回路52Aは主軸モータ52とエンコーダ52Bに接続する。駆動回路53AはX軸モータ53とエンコーダ53Bに接続する。駆動回路54AはY軸モータ54とエンコーダ54Bに接続する。駆動回路55Aは工具マガジン21を駆動するマガジンモータ55とエンコーダ55Bに接続する。Z軸モータ51、主軸モータ52、X軸モータ53、Y軸モータ54、マガジンモータ55は何れもサーボモータである(以下総称する場合は単にモータと呼ぶ)。駆動回路51A~55AはCPU31から指令を受け、対応する各モータ51~55に駆動電流を夫々出力する。駆動電流は、モータの負荷電流であり、モータにかけるトルクに相当する。駆動回路51A~55Aはエンコーダ51B~55Bからフィードバック信号を受け、位置と速度のフィードバック制御を行う。入出力部35は操作パネル15に接続する。 The drive circuit 51A is connected to the Z-axis motor 51 and the encoder 51B. The drive circuit 52A is connected to the spindle motor 52 and the encoder 52B. The drive circuit 53A is connected to the X-axis motor 53 and the encoder 53B. The drive circuit 54A is connected to the Y-axis motor 54 and the encoder 54B. The drive circuit 55A is connected to the magazine motor 55 that drives the tool magazine 21 and the encoder 55B. The Z-axis motor 51, the spindle motor 52, the X-axis motor 53, the Y-axis motor 54, and the magazine motor 55 are all servo motors (hereinafter, collectively referred to as motors). The drive circuits 51A to 55A receive commands from the CPU 31 and output drive currents to the corresponding motors 51 to 55, respectively. The drive current is the load current of the motor and corresponds to the torque applied to the motor. The drive circuits 51A to 55A receive feedback signals from the encoders 51B to 55B and perform feedback control of position and speed. The input / output unit 35 is connected to the operation panel 15.

図3を参照し、一般的なタップ加工を説明する。タップ加工とは、例えば被削材3にタップ穴H1を形成する加工である。タップ加工では、数値制御装置30は、工具Tを装着した主軸9を回転しながらZ軸方向に下降し、被削材3を穴底まで切削する。工具Tはタップである。タップ加工における主軸モータ52の駆動期間は、加速区間、一定速区間、減速区間を備える。駆動期間とは、主軸モータ52の回転開始から回転停止までの駆動期間である。加速区間は、主軸モータ52の回転開始から一定速度まで加速する区間である。一定速区間は、主軸モータ52の回転速度を一定速度に維持する区間である。減速区間は、主軸モータ52の回転速度を一定速度から減速して停止するまでの区間である。加速区間と減速区間の夫々に必要な主軸9のZ軸方向における移動距離は加減速距離であり、互いに同一である。加減速距離は、例えばタップ加工時の送り速度と時定数から算出するとよい。 A general tapping process will be described with reference to FIG. The tapping process is, for example, a process of forming a tap hole H1 in the work material 3. In tapping, the numerical control device 30 descends in the Z-axis direction while rotating the spindle 9 equipped with the tool T, and cuts the work material 3 to the bottom of the hole. The tool T is a tap. The drive period of the spindle motor 52 in tapping includes an acceleration section, a constant speed section, and a deceleration section. The drive period is a drive period from the start of rotation of the spindle motor 52 to the stop of rotation. The acceleration section is a section for accelerating from the start of rotation of the spindle motor 52 to a constant speed. The constant speed section is a section for maintaining the rotational speed of the spindle motor 52 at a constant speed. The deceleration section is a section from a constant speed to decelerating the rotation speed of the spindle motor 52 to stop. The moving distance of the main shaft 9 in the Z-axis direction required for each of the acceleration section and the deceleration section is the acceleration / deceleration distance and is the same as each other. The acceleration / deceleration distance may be calculated from, for example, the feed rate and the time constant during tapping.

図4を参照し、タップ加工時のモータ電流値の時間変化と、加工負荷の測定方法を説明する。モータ電流値とは、駆動回路52Aが主軸モータ52に出力する駆動電流値である。モータ電流値は、t1で一定値M1からプラス側に増加し、プラス側のピーク値に到達してから減少してt2で一定値M1に戻る。t1~t2は加速区間であり、モータ電流値の波形は逆V字型に変化する。加速区間後、モータ電流値はt2からt3まで一定値M1を維持する。t2~t3は一定速区間である。一定速区間後、モータ電流値は、t3で一定値M1からマイナス側に増加し、マイナス側のピーク値に到達してから減少してt4で一定値M1に戻る。t3~t4は減速区間であり、モータ電流値の波形はV字型に変化する。 With reference to FIG. 4, the time change of the motor current value at the time of tapping and the method of measuring the machining load will be described. The motor current value is a drive current value output by the drive circuit 52A to the spindle motor 52. The motor current value increases from the constant value M1 to the positive side at t1, decreases after reaching the peak value on the positive side, and returns to the constant value M1 at t2. t1 to t2 are acceleration sections, and the waveform of the motor current value changes in an inverted V shape. After the acceleration section, the motor current value maintains a constant value M1 from t2 to t3. t2 to t3 are constant speed sections. After the constant speed section, the motor current value increases from the constant value M1 to the minus side at t3, decreases after reaching the peak value on the minus side, and returns to the constant value M1 at t4. t3 to t4 are deceleration sections, and the waveform of the motor current value changes in a V shape.

加速区間におけるモータ電流値の波形と、減速区間におけるモータ電流値の波形は、一定値M1を境に、互いにプラスとマイナスが反転した略同一形状である。加速区間におけるモータ電流値の積算値は、トルク波形の三角形の面積A1に相当する。減速区間におけるモータ電流値の積算値は、トルク波形の逆三角形の面積A2に相当する。A1とA2の面積比は1:1である。加減速によるトルクが加工によるトルクより大きいと、加工負荷を直接的に測定するのは困難である。面積A1とA2の面積比は1:1なので、駆動期間中におけるモータ電流値を平均化すると、加速区間における加速のトルクと、減速区間における減速のトルクは互いに打ち消し合う。故に数値制御装置30は、駆動期間中におけるモータ電流値を平均化することにより、加減速のトルクの影響を大幅に削減できるので、駆動期間中における加工のトルクを精度よく測定できる。 The waveform of the motor current value in the acceleration section and the waveform of the motor current value in the deceleration section have substantially the same shape in which plus and minus are reversed with respect to the constant value M1. The integrated value of the motor current value in the acceleration section corresponds to the area A1 of the triangle of the torque waveform. The integrated value of the motor current value in the deceleration section corresponds to the area A2 of the inverted triangle of the torque waveform. The area ratio of A1 and A2 is 1: 1. If the torque due to acceleration / deceleration is larger than the torque due to machining, it is difficult to directly measure the machining load. Since the area ratio of the areas A1 and A2 is 1: 1, when the motor current values during the driving period are averaged, the acceleration torque in the acceleration section and the deceleration torque in the deceleration section cancel each other out. Therefore, the numerical control device 30 can significantly reduce the influence of the acceleration / deceleration torque by averaging the motor current values during the drive period, so that the machining torque during the drive period can be measured accurately.

なお、後述するように、本実施形態では、駆動期間中における一定速区間が長い場合、数値制御装置30は、モータ電流値の平均値を算出する代わりに、一定速区間におけるモータ電流値のピーク値を検出する。一定速区間におけるピーク値を検出して監視することで、一定速区間に発生する加工負荷の緩やかな変化も瞬間的な変化も検出できる。瞬間的な変化の一例として、例えば工具Tのチッピング等によるトルクの瞬間的な変化が相当する。加工負荷の緩やかな変化の一例として、例えば工具の摩耗等が相当する。一定速区間の長さの判断については、後述する。 As will be described later, in the present embodiment, when the constant speed section is long during the drive period, the numerical control device 30 instead of calculating the average value of the motor current value, the peak of the motor current value in the constant speed section. Detect the value. By detecting and monitoring the peak value in the constant speed section, it is possible to detect both a gradual change and a momentary change in the machining load generated in the constant speed section. As an example of the momentary change, for example, the momentary change of the torque due to chipping of the tool T corresponds to. As an example of a gradual change in machining load, for example, tool wear corresponds to it. The determination of the length of the constant speed section will be described later.

図5を参照し、短タップ加工を説明する。短タップ加工とは、上記タップ加工において、一定速区間が無い、若しくは一定速区間が短いタップ加工であって、被削材3に底の浅いタップ穴H2を形成する加工である。短タップ加工における主軸モータ52の駆動期間は、加速区間と減速区間を備え、加速区間と減速区間の間に一定速区間が無い、若しくは短い一定速区間を備える。 The short tap processing will be described with reference to FIG. The short tap processing is a tap processing in which there is no constant speed section or a constant speed section is short in the above tap processing, and a tap hole H2 having a shallow bottom is formed in the work material 3. The drive period of the spindle motor 52 in the short tap processing includes an acceleration section and a deceleration section, and there is no constant speed section between the acceleration section and the deceleration section, or a short constant speed section is provided.

図6を参照し、短タップ加工時のモータ電流の時間変化と、加工負荷の測定方法を説明する。図6(1)の図表は、短タップ加工における空運転時のモータ電流値の波形図である。空運転とは、被削材3を加工せずに、短タップ加工の動作を実行する運転を意味する。空運転において、モータ電流値は、t11で一定値M1からプラス側に増加し、プラス側のピーク値に到達してから減少してt12で一定値M1に戻る。t11~t12は加速区間であり、モータ電流値の波形は逆V字型に変化する。加速区間後、モータ電流値は、t12で一定値M1からマイナス側に増加し、マイナス側のピーク値に到達してから減少してt13で一定値M1に戻る。t12~t13は減速区間であり、モータ電流値の波形はV字型に変化する。 With reference to FIG. 6, the time change of the motor current during short tap machining and the method of measuring the machining load will be described. The chart of FIG. 6 (1) is a waveform diagram of the motor current value during idle operation in short tap machining. The idle operation means an operation in which the operation of short tap processing is executed without processing the work material 3. In idle operation, the motor current value increases from the constant value M1 to the plus side at t11, decreases after reaching the peak value on the plus side, and returns to the constant value M1 at t12. t11 to t12 are acceleration sections, and the waveform of the motor current value changes in an inverted V shape. After the acceleration section, the motor current value increases from the constant value M1 to the minus side at t12, decreases after reaching the peak value on the minus side, and returns to the constant value M1 at t13. t12 to t13 are deceleration sections, and the waveform of the motor current value changes in a V shape.

加速区間におけるモータ電流値の波形と、減速区間におけるモータ電流値の波形は、一定値M1を境に、互いにプラスとマイナスが反転した略同一形状である。加速区間におけるモータ電流値の積算値は、トルク波形の三角形の面積B1に相当する。減速区間におけるモータ電流値の積算値は、トルク波形の逆三角形の面積B2に相当する。空運転時では、駆動期間中に加工のトルクはかからず、加減速のトルクのみがかかるので、B1とB2の面積比は1:1となる。 The waveform of the motor current value in the acceleration section and the waveform of the motor current value in the deceleration section have substantially the same shape in which plus and minus are reversed with respect to the constant value M1. The integrated value of the motor current value in the acceleration section corresponds to the area B1 of the triangle of the torque waveform. The integrated value of the motor current value in the deceleration section corresponds to the area B2 of the inverted triangle of the torque waveform. During idle operation, machining torque is not applied during the drive period, only acceleration / deceleration torque is applied, so the area ratio of B1 and B2 is 1: 1.

図6(2)の図表は、短タップ加工における加工中のモータ電流の波形図である。加工中とは、工具Tが被削材3に接触して、被削材3を加工している状態が存在することを意味する。加工中において、モータ電流は、空運転時と同様に、t14で一定値M1からプラス側に増加し、プラス側のピーク値に到達してから減少してt15で一定値M1に戻る。t14~t15は加速区間であり、モータ電流値の波形は逆V字型に変化する。加速区間後、モータ電流値は、t15で一定値M1からマイナス側に増加し、マイナス側のピーク値に到達してから減少してt16で一定値M1に戻る。t15~t16は減速区間であり、モータ電流値の波形はV字型に変化する。短タップ加工では、加減速のトルクが加工のトルクよりも大きいので、空運転時のモータ電流の波形と、加工中のモータ電流の波形は略同一形状となる。 The chart of FIG. 6 (2) is a waveform diagram of the motor current during machining in short tap machining. “During machining” means that the tool T is in contact with the work material 3 and there is a state in which the work material 3 is being machined. During machining, the motor current increases from the constant value M1 to the plus side at t14, decreases after reaching the peak value on the plus side, and returns to the constant value M1 at t15, as in the case of idle operation. t14 to t15 are acceleration sections, and the waveform of the motor current value changes in an inverted V shape. After the acceleration section, the motor current value increases from the constant value M1 to the minus side at t15, decreases after reaching the peak value on the minus side, and returns to the constant value M1 at t16. t15 to t16 are deceleration sections, and the waveform of the motor current value changes in a V shape. In short tap machining, the acceleration / deceleration torque is larger than the machining torque, so the waveform of the motor current during idle operation and the waveform of the motor current during machining have substantially the same shape.

空運転時と加工中において、モータ電流値のピーク値に差が出る可能性はある。例えば、加工中における加速区間のプラス側のピーク値は、空運転時における加速区間のプラス側のピーク値よりも若干高い。加工中における減速区間のマイナス側のピーク値は、空運転時における減速区間のマイナス側のピーク値よりも若干低い。但し、短タップ加工におけるピーク値部分はノイズの影響を受け易い。ピーク値部分は被削材を切削しない場合も有り得る。故にモータ波形のピーク値で加工負荷を安定的に測定するのは困難である。 There is a possibility that the peak value of the motor current value will differ between idle operation and machining. For example, the peak value on the positive side of the acceleration section during machining is slightly higher than the peak value on the positive side of the acceleration section during idle operation. The peak value on the negative side of the deceleration section during machining is slightly lower than the peak value on the negative side of the deceleration section during idle operation. However, the peak value portion in short tap processing is easily affected by noise. The peak value portion may not cut the work material. Therefore, it is difficult to stably measure the machining load from the peak value of the motor waveform.

加工中において、加速区間におけるモータ電流値の積算値は、トルク波形の三角形の面積C1に相当する。減速区間におけるモータ電流値の積算値は、トルク波形の逆三角形の面積C2に相当する。C1とC2の面積比は1:1でなく、C1よりもC2の面積の方が若干小さい。故にC1とC2の面積の違いは、モータ電流値の平均値として現れる。ピーク値以外の部分の差分もモータ電流値の平均値として現れる。上記の通り、数値制御装置30は、駆動期間中におけるモータ電流値を平均化することにより、ノイズの影響を受け難く、加工負荷を安定して測定できる。数値制御装置30は、後述する加工制御処理(図8参照)を実行することで、タップ加工時において、主軸モータ52の駆動期間中における一定速区間の長さに応じて、加工負荷を安定して測定できる。 During machining, the integrated value of the motor current value in the acceleration section corresponds to the area C1 of the triangle of the torque waveform. The integrated value of the motor current value in the deceleration section corresponds to the area C2 of the inverted triangle of the torque waveform. The area ratio of C1 and C2 is not 1: 1 and the area of C2 is slightly smaller than that of C1. Therefore, the difference in area between C1 and C2 appears as the average value of the motor current values. Differences in parts other than the peak value also appear as the average value of the motor current value. As described above, the numerical control device 30 is less susceptible to noise and can stably measure the machining load by averaging the motor current values during the drive period. By executing the machining control process (see FIG. 8) described later, the numerical control device 30 stabilizes the machining load according to the length of the constant speed section during the drive period of the spindle motor 52 during tap machining. Can be measured.

図7を参照し、加工制御処理を説明する。例えば工作機械1で被削材3にタップ加工を施す場合、作業者は、タップ加工のNCプログラムの識別番号を操作パネル15の入力部16で入力する。CPU31は、操作パネル15でNCプログラムの識別番号を受け付けると、記憶装置34から入力した識別番号のNCプログラムを読み出し、例えば、表示部17に表示する。作業者は表示部17に表示したNCプログラムを確認し、実行操作を入力部16で入力する。実行操作の入力を受け付けた場合、CPU31はROM32から加工制御プログラムを読み出し、本処理を実行する。 The machining control process will be described with reference to FIG. 7. For example, when tapping the work material 3 with the machine tool 1, the operator inputs the identification number of the NC program for tapping by the input unit 16 of the operation panel 15. When the CPU 31 receives the NC program identification number on the operation panel 15, the CPU 31 reads out the NC program of the identification number input from the storage device 34 and displays it on the display unit 17, for example. The operator confirms the NC program displayed on the display unit 17, and inputs the execution operation on the input unit 16. When the input of the execution operation is received, the CPU 31 reads the machining control program from the ROM 32 and executes this process.

CPU31は、NCプログラムを一行解釈する(S11)。解釈した一行の制御指令がタップ指令か否か判断する(S12)。タップ指令以外の制御指令の場合(S12:NO)、CPU31はその制御指令を実行する(S13)。タップ指令以外の制御指令とは、例えば位置決め指令、ドリル指令、工具交換指令等である。CPU31はプログラム終了か否か判断する(S14)。次のブロックが終了指令である場合、NCプログラムは終了するので(S14:YES)、CPU31は本処理を終了する。次の一行が終了指令でない場合、NCプログラムは引き続き継続するので(S14:NO)、CPU31はS11に戻り、次の行について処理を繰り返す。 The CPU 31 interprets the NC program in one line (S11). It is determined whether or not the interpreted control command of one line is a tap command (S12). In the case of a control command other than the tap command (S12: NO), the CPU 31 executes the control command (S13). The control commands other than the tap command are, for example, a positioning command, a drill command, a tool change command, and the like. The CPU 31 determines whether or not the program has ended (S14). When the next block is an end command, the NC program ends (S14: YES), so the CPU 31 ends this process. If the next line is not an end command, the NC program continues (S14: NO), so the CPU 31 returns to S11 and repeats the process for the next line.

解釈した一行の制御指令がタップ指令の場合(S12:YES)、CPU31は時定数と主軸9の送り速度に基づき、加減速距離を算出する(S15)。時定数は予め設定する。主軸9の送り速度はNCプログラムで設定する。CPU31は算出した加減速距離をRAM33に一旦記憶する。CPU31はタップ加工の開始位置と終了位置に基づき、タップ加工に必要な駆動距離を算出する(S16)。開始位置と終了位置はNCプログラムで設定する。CPU31は算出した駆動距離をRAM33に一旦記憶する。CPU31は、RAM33に記憶した駆動距離と加減速距離に基づき、加減速割合を算出する(S17)。CPU31は、加減速割合は所定値以下か否か判断する(S18)。加減速割合は、駆動距離に占める加減速距離の割合である。 When the interpreted one-line control command is a tap command (S12: YES), the CPU 31 calculates the acceleration / deceleration distance based on the time constant and the feed rate of the spindle 9 (S15). The time constant is set in advance. The feed rate of the spindle 9 is set by the NC program. The CPU 31 temporarily stores the calculated acceleration / deceleration distance in the RAM 33. The CPU 31 calculates the drive distance required for tap processing based on the start position and end position of tap processing (S16). The start position and end position are set by the NC program. The CPU 31 temporarily stores the calculated drive distance in the RAM 33. The CPU 31 calculates the acceleration / deceleration ratio based on the drive distance and the acceleration / deceleration distance stored in the RAM 33 (S17). The CPU 31 determines whether or not the acceleration / deceleration ratio is equal to or less than a predetermined value (S18). The acceleration / deceleration ratio is the ratio of the acceleration / deceleration distance to the drive distance.

例えば、加減速割合が所定値を超える場合(S18:NO)、駆動期間中における一定速区間の割合が小さいので、CPU31は一定速区間が無いと判断し、駆動期間におけるモータ電流値の平均値を監視対象に設定する(S19)。例えば、工具Tが被削材3を削り始めても加速を続けるような短タップ加工(図5参照)がこれに該当する。一方、加減速割合が所定値以下の場合(S17:YES)、駆動期間中における一定速区間の割合が大きいので、CPU31は一定速区間が有ると判断し、一定速区間のピーク値を監視対象に設定する(S20)。例えば、工具Tが被削材3を削り始めるより前に、加速区間が終了する様な加工(図4参照)がこれに該当する。 For example, when the acceleration / deceleration ratio exceeds a predetermined value (S18: NO), the ratio of the constant speed section during the drive period is small, so the CPU 31 determines that there is no constant speed section, and the average value of the motor current values during the drive period. Is set as a monitoring target (S19). For example, this corresponds to short tap machining (see FIG. 5) in which the tool T continues to accelerate even when the work material 3 starts to be scraped. On the other hand, when the acceleration / deceleration ratio is equal to or less than a predetermined value (S17: YES), the ratio of the constant speed section during the drive period is large, so the CPU 31 determines that there is a constant speed section and monitors the peak value of the constant speed section. (S20). For example, this corresponds to machining (see FIG. 4) in which the acceleration section ends before the tool T starts cutting the work material 3.

CPU31は、駆動回路52Aが主軸モータ52に出力するモータ電流値を計測しながらタップ指令を実行する(S21)。計測したモータ電流値はRAM33に記憶する。CPU31はタップ加工が完了したか否か判断する(S22)。タップ加工が完了するまで(S22:NO)、CPU31はS22に戻り、引き続き、モータ電流値を計測しながらタップ加工を実行する。タップ加工が完了した場合(S22:YES)、CPU31はRAM33に記憶したモータ電流値に基づき、監視対象のピーク値又は平均値が閾値以上か否か判断する(S23)。 The CPU 31 executes a tap command while measuring the motor current value output by the drive circuit 52A to the spindle motor 52 (S21). The measured motor current value is stored in the RAM 33. The CPU 31 determines whether or not the tap processing is completed (S22). Until the tap processing is completed (S22: NO), the CPU 31 returns to S22 and subsequently executes the tap processing while measuring the motor current value. When the tapping process is completed (S22: YES), the CPU 31 determines whether or not the peak value or the average value to be monitored is equal to or greater than the threshold value based on the motor current value stored in the RAM 33 (S23).

監視対象を一定速区間のピーク値に設定した場合、CPU31は、一定速区間におけるモータ電流値の時間変化からピーク値を検出する。ピーク値とは、例えばモータ電流値の最大値又は最小値である。CPU31は検出したピーク値は閾値以上か否か判断する(S23)。閾値はピーク値を判定する為の閾値であって、大きな加工負荷が生じているか否かの判定値である。検出したピーク値が閾値未満であった場合(S23:NO)、主軸モータ52に大きな加工負荷は生じていないので、CPU31はS11に戻り、次の行について処理を繰り返す。 When the monitoring target is set to the peak value in the constant speed section, the CPU 31 detects the peak value from the time change of the motor current value in the constant speed section. The peak value is, for example, the maximum value or the minimum value of the motor current value. The CPU 31 determines whether or not the detected peak value is equal to or greater than the threshold value (S23). The threshold value is a threshold value for determining the peak value, and is a determination value as to whether or not a large processing load is generated. When the detected peak value is less than the threshold value (S23: NO), the spindle motor 52 does not have a large machining load, so the CPU 31 returns to S11 and repeats the process for the next line.

検出したピーク値が閾値以上であった場合(S23:YES)、主軸モータ52に大きな加工負荷が生じているので、CPU31はアラームを出力し(S24)、NCプログラムの実行を強制的に終了する。故に数値制御装置30は主軸モータ52に大きな加工負荷が生じている状態で、被削材の加工を継続するのを防止できる。アラームの一例として、例えば操作パネル15の表示部17に、異常を報知するメッセージ、図形等を表示したり、ブザー、音声等で報知してもよく、アラームの情報を外部機器等に出力するようにしてもよい。アラームの出力により、作業者は、主軸モータ52に大きな加工負荷が生じたことを認識できるので、工作機械1の異常に迅速に対応できる。 When the detected peak value is equal to or higher than the threshold value (S23: YES), a large machining load is generated on the spindle motor 52, so the CPU 31 outputs an alarm (S24) and forcibly terminates the execution of the NC program. .. Therefore, the numerical control device 30 can prevent the machining of the work material from being continued in a state where a large machining load is generated on the spindle motor 52. As an example of the alarm, for example, a message, a figure, or the like for notifying an abnormality may be displayed on the display unit 17 of the operation panel 15, or the alarm may be notified by a buzzer, a voice, or the like, and the alarm information is output to an external device or the like. You may do it. From the output of the alarm, the operator can recognize that a large machining load has been generated on the spindle motor 52, and thus can quickly respond to the abnormality of the machine tool 1.

監視対象を一定速区間のピーク値に設定しているので、CPU31は例えば、一定速区間において工具Tのチッピングを検出し易い。チッピングは瞬間的な変化であるが、一定速区間において監視することで容易に検出できる。CPU31は、一定速区間に発生する加工負荷の瞬間的な変化のみならず、加工負荷の緩やかな変化も検出できる。 Since the monitoring target is set to the peak value in the constant speed section, the CPU 31 can easily detect the chipping of the tool T in the constant speed section, for example. Chipping is a momentary change, but it can be easily detected by monitoring it in a constant speed section. The CPU 31 can detect not only a momentary change in the machining load generated in a constant speed section but also a gradual change in the machining load.

監視対象を駆動期間中の平均値に設定した場合、CPU31は、駆動期間中におけるモータ電流値の平均値を算出する。CPU31は算出した平均値は閾値以上か否か判断する(S23)。閾値は、平均値を判定する為の閾値であって、ピーク値の閾値とは異なる閾値である。閾値は、主軸モータ52に大きな加工負荷が生じているか否かの判定値である。検出した平均値が閾値未満であった場合(S23:NO)、主軸モータ52に大きな加工負荷は生じていないので、CPU31はS11に戻り、次の行について処理を繰り返す。 When the monitoring target is set to the average value during the drive period, the CPU 31 calculates the average value of the motor current values during the drive period. The CPU 31 determines whether or not the calculated average value is equal to or greater than the threshold value (S23). The threshold value is a threshold value for determining the average value, and is a threshold value different from the threshold value of the peak value. The threshold value is a determination value as to whether or not a large machining load is generated on the spindle motor 52. When the detected average value is less than the threshold value (S23: NO), the spindle motor 52 does not have a large machining load, so the CPU 31 returns to S11 and repeats the process for the next line.

検出したピーク値が閾値以上であった場合(S23:YES)、主軸モータ52に大きな加工負荷が生じているので、上記と同様に、CPU31はアラームを出力し(S24)、NCプログラムの実行を強制的に終了する。故に数値制御装置30は、短タップ加工においても、主軸モータ52に大きな加工負荷が生じている状態で、被削材の加工を継続するのを防止できる。監視対象を駆動期間中のモータ電流値の平均値に設定しているので、駆動期間中に一定速区間が無い、若しくは一定速区間が短くても、CPU31は加工負荷を精度良く測定できる。 When the detected peak value is equal to or higher than the threshold value (S23: YES), a large machining load is generated on the spindle motor 52. Therefore, the CPU 31 outputs an alarm (S24) and executes the NC program in the same manner as described above. Forced to terminate. Therefore, the numerical control device 30 can prevent the machining of the work material from being continued even in the short tap machining in a state where a large machining load is generated on the spindle motor 52. Since the monitoring target is set to the average value of the motor current values during the drive period, the CPU 31 can accurately measure the machining load even if there is no constant speed section or the constant speed section is short during the drive period.

以上説明したように、本実施形態の数値制御装置30は、工作機械1の主軸モータ52の負荷電流値に基づき、被削材3の切削加工における加工負荷を監視可能である。数値制御装置30のCPU31は、例えばタップ加工における主軸モータ52の回転開始から回転停止までの駆動期間の負荷電流値を測定する。CPU31は測定した負荷電流値に基づき、加工負荷を算出し、算出した加工負荷は閾値以上か判断する。加工負荷は閾値以上と判断した場合、CPU31はアラームを出力する。駆動期間は少なくとも、加速区間と減速区間を備える。加速区間は、主軸モータ52を一定速度まで加速する区間である。減速区間は主軸モータ52を一定速度から減速して停止する区間である。CPU31は加速区間と減速区間の間に一定速区間が有るか否か判断する。一定速区間は主軸モータ52が一定速度の区間である。加速区間と減速区間の間に一定速区間が有ると判断した場合、CPU31は、一定速区間における負荷電流値のピーク値を加工負荷として算出する。故に数値制御装置30は、一定速区間において発生する加工負荷の瞬間的な変化、加工負荷の緩やかな変化の何れも検出できる。加速区間と減速区間の間に一定速区間が無いと判断した場合、CPU31は、駆動期間における負荷電流値の平均値を加工負荷として算出する。負荷電流値は主軸モータ52のトルクに相当する。加速のトルクと減速のトルクは互いに打ち消しあうので、数値制御装置30は、加工のトルクを精度よく監視できる。故に数値制御装置30は、タップ加工時の駆動期間中に一定速区間が有るか無いかに関わらず、加工負荷を精度よく監視できる。 As described above, the numerical control device 30 of the present embodiment can monitor the machining load in the cutting of the work material 3 based on the load current value of the spindle motor 52 of the machine tool 1. The CPU 31 of the numerical control device 30 measures, for example, the load current value of the drive period from the start of rotation to the stop of rotation of the spindle motor 52 in tapping. The CPU 31 calculates the machining load based on the measured load current value, and determines whether the calculated machining load is equal to or greater than the threshold value. When it is determined that the machining load is equal to or higher than the threshold value, the CPU 31 outputs an alarm. The drive period includes at least an acceleration section and a deceleration section. The acceleration section is a section for accelerating the spindle motor 52 to a constant speed. The deceleration section is a section in which the spindle motor 52 is decelerated from a constant speed and stopped. The CPU 31 determines whether or not there is a constant speed section between the acceleration section and the deceleration section. The constant speed section is a section in which the spindle motor 52 has a constant speed. When it is determined that there is a constant speed section between the acceleration section and the deceleration section, the CPU 31 calculates the peak value of the load current value in the constant speed section as the machining load. Therefore, the numerical control device 30 can detect both a momentary change in the machining load and a gradual change in the machining load that occur in a constant speed section. When it is determined that there is no constant speed section between the acceleration section and the deceleration section, the CPU 31 calculates the average value of the load current values in the drive period as the machining load. The load current value corresponds to the torque of the spindle motor 52. Since the acceleration torque and the deceleration torque cancel each other out, the numerical control device 30 can accurately monitor the machining torque. Therefore, the numerical control device 30 can accurately monitor the machining load regardless of whether or not there is a constant speed section during the drive period during tap machining.

本実施形態のCPU31は、一定速区間の有無の判断において、加速区間と減速区間に必要な加減速距離を算出する。CPU31は、駆動期間に必要な駆動距離に占める加減速距離の割合が所定値以下か否か判断する。CPU31は割合が所定値以下と判断した場合、駆動期間中における一定速区間の割合は大きい。故にCPU31は加速区間と減速区間の間に一定速区間が有ると判断し、一定速区間における負荷電流値のピーク値を加工負荷として算出する。CPU31は割合が所定値を超えると判断した場合、駆動期間中における一定速区間の割合は小さい。故にCPU31は加速区間と減速区間の間に一定速区間は無いと判断し、駆動期間における負荷電流値の平均値を加工負荷として算出する。故に数値制御装置30は、駆動期間における一定速区間の長さを適切に判断し、一定速区間の長さに応じて加工負荷の算出方法を適切に選択できる。 The CPU 31 of the present embodiment calculates the acceleration / deceleration distance required for the acceleration section and the deceleration section in determining the presence / absence of the constant speed section. The CPU 31 determines whether or not the ratio of the acceleration / deceleration distance to the drive distance required for the drive period is equal to or less than a predetermined value. When the CPU 31 determines that the ratio is equal to or less than a predetermined value, the ratio of the constant speed section during the drive period is large. Therefore, the CPU 31 determines that there is a constant speed section between the acceleration section and the deceleration section, and calculates the peak value of the load current value in the constant speed section as the machining load. When the CPU 31 determines that the ratio exceeds a predetermined value, the ratio of the constant speed section during the drive period is small. Therefore, the CPU 31 determines that there is no constant speed section between the acceleration section and the deceleration section, and calculates the average value of the load current values in the drive period as the machining load. Therefore, the numerical control device 30 can appropriately determine the length of the constant speed section in the drive period, and can appropriately select the processing load calculation method according to the length of the constant speed section.

上記説明にて、S21の処理を実行するCPU31は本発明の測定部の一例である。S23の処理を実行するCPU31は本発明の判断部の一例である。S24の処理を実行するCPU31は本発明の出力部の一例である。S15~S18の処理を実行するCPU31は本発明の一定速区間判断部の一例である。S20の処理を実行するCPU31は本発明の第一算出部の一例である。S19の処理を実行するCPU31は本発明の第二算出部の一例である。S15の処理を実行するCPU31は本発明の加減速区間算出部の一例である。S18の処理を実行するCPU31は本発明の割合判断部の一例である。 In the above description, the CPU 31 that executes the process of S21 is an example of the measuring unit of the present invention. The CPU 31 that executes the process of S23 is an example of the determination unit of the present invention. The CPU 31 that executes the process of S24 is an example of the output unit of the present invention. The CPU 31 that executes the processes of S15 to S18 is an example of the constant speed section determination unit of the present invention. The CPU 31 that executes the process of S20 is an example of the first calculation unit of the present invention. The CPU 31 that executes the process of S19 is an example of the second calculation unit of the present invention. The CPU 31 that executes the process of S15 is an example of the acceleration / deceleration section calculation unit of the present invention. The CPU 31 that executes the process of S18 is an example of the ratio determination unit of the present invention.

本発明は上記実施形態に限らず各種変形が可能である。図7に示す加工制御処理のS17において、CPU31は、タップ加工時における主軸モータ52の駆動期間に必要なZ軸方向の駆動距離に占める加減速距離の割合が所定値以下か否かで、一定速区間の長さを判断するが、これ以外の方法で一定速区間の長さを判断してもよい。例えば、第一変形例として、タップ加工時において、主軸9を被削材3に向けて移動するZ軸モータ51のトルクを監視し、監視するトルクが一定値を超えた時、被削材3を削り始めたので、その時に加速区間が完了しているか否かで、駆動期間における一定速区間の長さを判断してもよい。第二変形例として、タップ加工時において静止するX軸モータ53又はY軸モータ54のトルクを監視し、監視するトルクが一定値を超えた時、被削材3を削り始めたので、その時に加速区間が完了しているか否かで、駆動期間における一定速区間の長さを判断してもよい。 The present invention is not limited to the above embodiment and can be modified in various ways. In S17 of the machining control process shown in FIG. 7, the CPU 31 is constant depending on whether or not the ratio of the acceleration / deceleration distance to the drive distance in the Z-axis direction required for the drive period of the spindle motor 52 during tap machining is equal to or less than a predetermined value. The length of the speed section is determined, but the length of the constant speed section may be determined by another method. For example, as a first modification, the torque of the Z-axis motor 51 that moves the spindle 9 toward the work material 3 during tapping is monitored, and when the monitored torque exceeds a certain value, the work material 3 is used. The length of the constant speed section in the drive period may be determined depending on whether or not the acceleration section is completed at that time. As a second modification, the torque of the X-axis motor 53 or the Y-axis motor 54 that stands still during tapping is monitored, and when the monitored torque exceeds a certain value, the work material 3 starts to be scraped. The length of the constant speed section in the driving period may be determined based on whether or not the acceleration section is completed.

図8を参照し、第一変形例を説明する。第一変形例の加工制御処理は、上記実施形態の加工制御処理(図7参照)の一部を変形したものである。第一変形例の加工制御処理は、上記実施形態の加工制御処理のS15~S18の代わりに、新たなS31~S35を実行し、S21を削除する。上記実施形態の加工制御処理と共通する処理は、同一のステップ番号を付し、説明を省略又は簡略する。 A first modification will be described with reference to FIG. The machining control process of the first modification is a modification of a part of the machining control process (see FIG. 7) of the above embodiment. In the machining control process of the first modification, new S31 to S35 are executed instead of S15 to S18 of the machining control process of the above embodiment, and S21 is deleted. The processing common to the processing control processing of the above embodiment is assigned the same step number, and the description thereof is omitted or simplified.

CPU31はNCプログラムを1行解釈し(S11)、解釈した1行の制御指令がタップ指令の場合(S12:YES)、タップ指令を実行し(S31)、主軸モータ52のモータ電流値の測定を開始する(S32)。CPU31はZ軸モータ51のトルクの測定を開始する(S33)。ここでZ軸モータ51のトルクとは加減速、自重保持、摩擦等の影響を除いた外乱トルク(外乱力)であって、駆動回路51AからZ軸モータ51に出力する外乱トルクに相当するモータ電流値である。測定した主軸モータ52のモータ電流値と、Z軸モータ51のトルクはRAM33に一旦記憶する。CPU31は、Z軸モータ51のトルクが一定値を超えたか否か判断する(S34)。Z軸モータ51のトルクが一定値以下の場合(S34:NO)、工具Tは被削材3に接触していないので、CPU31はS33に戻って主軸9を下降し続ける。 The CPU 31 interprets the NC program on one line (S11), executes the tap command when the interpreted control command on the line is a tap command (S12: YES) (S31), and measures the motor current value of the spindle motor 52. Start (S32). The CPU 31 starts measuring the torque of the Z-axis motor 51 (S33). Here, the torque of the Z-axis motor 51 is a disturbance torque (disturbance force) excluding the effects of acceleration / deceleration, self-weight holding, friction, etc., and corresponds to the disturbance torque output from the drive circuit 51A to the Z-axis motor 51. It is a current value. The measured motor current value of the spindle motor 52 and the torque of the Z-axis motor 51 are temporarily stored in the RAM 33. The CPU 31 determines whether or not the torque of the Z-axis motor 51 exceeds a certain value (S34). When the torque of the Z-axis motor 51 is equal to or less than a certain value (S34: NO), since the tool T is not in contact with the work material 3, the CPU 31 returns to S33 and continues to descend the spindle 9.

Z軸モータ51のトルクが一定値を超えた場合(S34:YES)、工具Tは被削材3に接触したので、CPU31は加速区間が完了しているか否か判断する(S35)。加速区間が完了していない場合(S35:NO)、CPU31は、駆動期間中において一定速区間は無い、若しくは一定速区間は短いと判断し、駆動期間中におけるモータ電流の平均値を監視対象に設定する(S19)。一方、加速区間が完了している場合(S35:YES)、CPU31は、駆動期間中において一定速区間は長いと判断し、駆動期間中における一定速区間のピーク値を監視対象に設定する(S20)。故に第一変形例は、タップ加工において、被削材3に工具Tが接触する時に加速区間が完了しているか否かで、一定速区間の長さを判断できる。 When the torque of the Z-axis motor 51 exceeds a certain value (S34: YES), the tool T has come into contact with the work material 3, so that the CPU 31 determines whether or not the acceleration section is completed (S35). When the acceleration section is not completed (S35: NO), the CPU 31 determines that there is no constant speed section or the constant speed section is short during the drive period, and monitors the average value of the motor current during the drive period. Set (S19). On the other hand, when the acceleration section is completed (S35: YES), the CPU 31 determines that the constant speed section is long during the drive period, and sets the peak value of the constant speed section during the drive period as the monitoring target (S20). ). Therefore, in the first modification, the length of the constant speed section can be determined by whether or not the acceleration section is completed when the tool T comes into contact with the work material 3 in the tapping process.

上記説明にて、S33の処理を実行するCPU31は本発明のトルク監視部の一例である。S34、S35の処理を実行するCPU31は本発明の加速完了判断部の一例である。 In the above description, the CPU 31 that executes the process of S33 is an example of the torque monitoring unit of the present invention. The CPU 31 that executes the processes of S34 and S35 is an example of the acceleration completion determination unit of the present invention.

図9を参照し、第二変形例を説明する。第二変形例の加工制御処理は、上記第一変形例の加工制御処理(図8参照)の一部を変形したものである。故に第二変形例は、上記第一変形例と異なる部分を中心に説明し、その他の説明は省略又は簡略化する。第二変形例の加工制御処理は、上記第一変形例の加工制御処理のS33、S34の代わりに、新たなS43、S44を実行する。第二変形例のCPU31は、タップ加工時には静止するX軸モータ53(又はY軸モータ54)のトルクの測定を開始する(S43)。ここでX軸モータ53のトルクとは加減速、摩擦等の影響を除いた外乱トルク(外乱力)であって、駆動回路53AからX軸モータ53に出力する外乱トルクに相当するモータ電流値である。CPU31はX軸モータ53のトルクが一定値を超えたか否か判断する(S44)。 A second modification will be described with reference to FIG. The machining control process of the second modification is a modification of a part of the machining control process (see FIG. 8) of the first modification. Therefore, the second modification will be described mainly on the portion different from the first modification, and other explanations will be omitted or simplified. In the machining control process of the second modification, new S43 and S44 are executed instead of S33 and S34 of the machining control process of the first modification. The CPU 31 of the second modification starts the measurement of the torque of the X-axis motor 53 (or the Y-axis motor 54) that is stationary at the time of tapping (S43). Here, the torque of the X-axis motor 53 is a disturbance torque (disturbance force) excluding the effects of acceleration / deceleration, friction, etc., and is a motor current value corresponding to the disturbance torque output from the drive circuit 53A to the X-axis motor 53. be. The CPU 31 determines whether or not the torque of the X-axis motor 53 exceeds a certain value (S44).

X軸モータ53のトルクが一定値以下の場合(S44:NO)、工具Tは被削材3に接触していないので、CPU31はS44に戻って主軸9を下降し続ける。X軸モータ53のトルクが一定値を超えた場合(S44:YES)、第一変形例と同様に、CPU31は工具Tが被削材3に接触したと判断できるので、駆動期間のうち加速区間が完了しているか否か判断する(S35)。故に第二変形例は、タップ加工時には静止するX軸モータ53(又はY軸モータ54)のトルクを監視することで、第一変形例と同様に、工具Tが被削材3に接触したか否かを判断できる。なお、S35以降の処理は、第一変形例と同様である。 When the torque of the X-axis motor 53 is equal to or less than a certain value (S44: NO), since the tool T is not in contact with the work material 3, the CPU 31 returns to S44 and continues to descend the spindle 9. When the torque of the X-axis motor 53 exceeds a certain value (S44: YES), the CPU 31 can determine that the tool T has come into contact with the work material 3 as in the first modification, so that the acceleration section of the drive period Is determined to be completed (S35). Therefore, in the second modification, by monitoring the torque of the X-axis motor 53 (or the Y-axis motor 54) that is stationary during tapping, is the tool T in contact with the work material 3 as in the first modification? You can judge whether or not. The processing after S35 is the same as that of the first modification.

上記説明にて、S43の処理を実行するCPU31は本発明のトルク監視部の一例である。S44、S35の処理を実行するCPU31は本発明の加速完了判断部の一例である。 In the above description, the CPU 31 that executes the process of S43 is an example of the torque monitoring unit of the present invention. The CPU 31 that executes the processes of S44 and S35 is an example of the acceleration completion determination unit of the present invention.

図10を参照し、第三変形例を説明する。第三変形例の加工制御処理は、タップ加工の二度加工を判定し、二度加工と判定した場合は作業者に報知する。二度加工とは、加工が完了したにも関わらず、作業者が工作台13上の被削材3の交換を忘れて再度加工したときの二回目以降の加工を意味する。第三変形例の加工制御処理は、上記実施形態の加工制御処理(図7参照)のS23:NOの判断の後に、新たなS51とS52を実行する。その他の処理は共通である。故に第三変形例は、上記実施形態と異なる部分を中心に説明し、共通する部分の説明は省略又は簡略化する。 A third modification will be described with reference to FIG. The machining control process of the third modification determines the double machining of the tap machining, and notifies the operator when it is determined to be the double machining. The double machining means the second and subsequent machining when the worker forgets to replace the work material 3 on the workbench 13 and reworks even though the machining is completed. In the machining control process of the third modification, new S51 and S52 are executed after the determination of S23: NO in the machining control process (see FIG. 7) of the above embodiment. Other processing is common. Therefore, the third modification will be described mainly on the parts different from the above-described embodiment, and the description of the common parts will be omitted or simplified.

タップ加工の完了後(S22:YES)、CPU31は監視対象の加工負荷が閾値以上か否か判断する(S23)。例えば、監視対象が駆動期間中のモータ電流値の平均値であって、その平均値が閾値未満であった場合(S23:NO)、CPU31はその加工負荷である平均値が下限閾値以下か否か判断する(S51)。下限閾値とは、S23で判断する際の閾値よりも低い値であって、例えばゼロに近い値に設定するとよい。平均値が下限閾値を超えている場合(S51:NO)、主軸モータ52には適切な加工負荷がかかっているので、CPU31はS11に戻り、処理を繰り返す。 After the tap processing is completed (S22: YES), the CPU 31 determines whether or not the processing load to be monitored is equal to or greater than the threshold value (S23). For example, when the monitoring target is the average value of the motor current values during the drive period and the average value is less than the threshold value (S23: NO), the CPU 31 determines whether the average value of the machining load is equal to or less than the lower limit threshold value. Is determined (S51). The lower limit threshold value is a value lower than the threshold value at the time of determination in S23, and may be set to a value close to zero, for example. When the average value exceeds the lower limit threshold value (S51: NO), since an appropriate machining load is applied to the spindle motor 52, the CPU 31 returns to S11 and repeats the process.

平均値が下限閾値以下の場合(S51:YES)、加工負荷がほぼ無い状態であることから、二度加工の可能性がある。故にCPU31は、二度加工の報知を操作パネル15の表示部17で行う(S52)。CPU31は例えば、表示部17に二度加工である旨のメッセージ、図形等を表示してもよい。作業者は表示部17における報知により、工作台13上の被削材3を確認し、新しい被削材3に交換する等、迅速な対応が可能となる。なお、二度加工の報知の態様は、表示部17の表示以外に、例えば、音声、ブザー等で行ってもよく、二度加工の報知を外部機器等に出力するようにしてもよい。 When the average value is equal to or less than the lower limit threshold value (S51: YES), there is a possibility of double machining because there is almost no machining load. Therefore, the CPU 31 notifies the double processing on the display unit 17 of the operation panel 15 (S52). For example, the CPU 31 may display a message, a figure, or the like indicating that the processing is performed twice on the display unit 17. The operator can confirm the work material 3 on the workbench 13 by the notification on the display unit 17 and replace it with a new work material 3 and take prompt action. In addition to the display on the display unit 17, the mode of notifying the double processing may be, for example, voice, buzzer, or the like, and the notification of the double processing may be output to an external device or the like.

上記説明にて、S51の処理を実行するCPU31は本発明の下限判断部の一例である。S52の処理を実行するCPU31は本発明の報知部の一例である。 In the above description, the CPU 31 that executes the process of S51 is an example of the lower limit determination unit of the present invention. The CPU 31 that executes the process of S52 is an example of the notification unit of the present invention.

本発明は、上記第一、第二、第三変形例の他にも各種変形が可能である。上記実施形態の加工制御処理(図7参照)では、駆動期間に必要な駆動距離に占める加減速距離の割合が所定値以下か否か判断するが(S15~S17参照)、駆動期間に必要な時間に占める加減速時間の割合が所定値以下か否かで判断してもよい。 In addition to the first, second, and third modifications described above, the present invention can be modified in various ways. In the machining control process of the above embodiment (see FIG. 7), it is determined whether or not the ratio of the acceleration / deceleration distance to the drive distance required for the drive period is equal to or less than a predetermined value (see S15 to S17), but it is necessary for the drive period. It may be determined whether or not the ratio of the acceleration / deceleration time to the time is equal to or less than a predetermined value.

上記実施形態の加工制御処理(図7参照)は、切削加工の一例として、タップ加工の駆動期間中における加工負荷を監視するが、その他の加工、例えば、ドリル加工、フライス加工等にも適用可能である。 The machining control process of the above embodiment (see FIG. 7) monitors the machining load during the drive period of tap machining as an example of cutting, but can also be applied to other machining such as drilling and milling. Is.

上記実施形態の工作機械1は、工具4を装着する主軸9がZ軸方向に移動可能であり、工作台13がX軸とY軸方向に移動可能であるが、工作台13上の被削材3に対してX軸、Y軸、Z軸方向に相対的に移動する主軸の移動機構の仕組みは上記実施形態に限定しない。例えば主軸はX、Y、Z軸方向の三軸に駆動するもので、工作台は固定若しくは回転可能であってもよい。 In the machine tool 1 of the above embodiment, the spindle 9 on which the tool 4 is mounted is movable in the Z-axis direction, and the workbench 13 is movable in the X-axis and Y-axis directions. The mechanism of the movement mechanism of the spindle that moves relative to the material 3 in the X-axis, Y-axis, and Z-axis directions is not limited to the above embodiment. For example, the spindle is driven by three axes in the X, Y, and Z axis directions, and the workbench may be fixed or rotatable.

上記実施形態の工作台装置10は工作台13をX軸方向とY軸方向に並進可能に支持する機械装置であるが、工作台13を回転可能に支持するようにしてもよい。 The workbench device 10 of the above embodiment is a mechanical device that rotatably supports the workbench 13 in the X-axis direction and the Y-axis direction, but the workbench 13 may be rotatably supported.

上記実施形態の工作機械1は主軸がZ軸方向に対して平行な縦型の工作機械であるが、主軸が水平方向に延びる横型の工作機械であってもよい。 The machine tool 1 of the above embodiment is a vertical machine tool whose spindle is parallel to the Z-axis direction, but may be a horizontal machine tool whose spindle extends in the horizontal direction.

上記実施形態の駆動回路51A~55Aは工作機械1に設けているが、駆動回路51A~55Aを数値制御装置30に設けてもよい。 Although the drive circuits 51A to 55A of the above embodiment are provided in the machine tool 1, the drive circuits 51A to 55A may be provided in the numerical control device 30.

1 工作機械
3 被削材
30 数値制御装置
31 CPU
51 Z軸モータ
52 主軸モータ
53 X軸モータ
54 Y軸モータ
T 工具
1 Machine tool 3 Work material 30 Numerical control device 31 CPU
51 Z-axis motor 52 Spindle motor 53 X-axis motor 54 Y-axis motor T tool

Claims (6)

工作機械の主軸モータの負荷電流値に基づき、被削材の切削加工における加工負荷を監視可能な数値制御装置において、
前記切削加工における前記主軸モータの回転開始から回転停止までの駆動期間の前記負荷電流値を測定する測定部と、
前記測定部が測定した前記負荷電流値に基づき、前記加工負荷を算出する加工負荷算出部と、
前記加工負荷算出部が算出した前記加工負荷は閾値以上か判断する判断部と、
前記判断部が前記加工負荷は前記閾値以上と判断した場合、アラームを出力する出力部と
を備え、
前記駆動期間は少なくとも、
前記主軸モータを一定速度まで加速する加速区間と、
前記主軸モータを前記一定速度から減速して停止する減速区間と
を備え、
前記加工負荷算出部は、
前記加速区間と前記減速区間の間に、前記一定速度の区間である一定速区間が有るか否か判断する一定速区間判断部と、
前記一定速区間判断部が、前記加速区間と前記減速区間の間に、前記一定速区間が有ると判断した場合、前記一定速区間における前記負荷電流値のピーク値を前記加工負荷として算出する第一算出部と、
前記一定速区間判断部が、前記加速区間と前記減速区間の間に、前記一定速区間が無いと判断した場合、前記駆動期間における前記負荷電流値の平均値を前記加工負荷として算出する第二算出部と
を備えたことを特徴とする数値制御装置。
In a numerical control device that can monitor the machining load in the cutting of the work material based on the load current value of the spindle motor of the machine tool.
A measuring unit that measures the load current value during the drive period from the start of rotation to the stop of rotation of the spindle motor in the cutting process.
A machining load calculation unit that calculates the machining load based on the load current value measured by the measurement unit, and a machining load calculation unit.
A determination unit for determining whether the processing load calculated by the processing load calculation unit is equal to or greater than a threshold value, and a determination unit.
When the determination unit determines that the machining load is equal to or higher than the threshold value, the determination unit includes an output unit that outputs an alarm.
The driving period is at least
An acceleration section that accelerates the spindle motor to a constant speed,
It is provided with a deceleration section in which the spindle motor is decelerated from the constant speed and stopped.
The processing load calculation unit is
A constant speed section determination unit that determines whether or not there is a constant speed section that is a constant speed section between the acceleration section and the deceleration section.
When the constant speed section determination unit determines that the constant speed section exists between the acceleration section and the deceleration section, the peak value of the load current value in the constant speed section is calculated as the processing load. One calculation unit and
When the constant speed section determination unit determines that there is no constant speed section between the acceleration section and the deceleration section, the second is to calculate the average value of the load current values in the drive period as the processing load. A numerical control device characterized by having a calculation unit.
前記一定速区間判断部は、
前記加速区間と前記減速区間に必要な加減速距離又は加減速時間を算出する加減速区間算出部と、
前記駆動期間に必要な距離又は時間に占める前記加減速区間算出部が算出した前記加減速距離又は前記加減速時間の割合が所定値以下か否か判断する割合判断部と
を備え、
前記割合判断部が前記割合は前記所定値以下と判断した場合、前記一定速区間が有ると判断し、
前記割合判断部が前記割合は前記所定値を超えると判断した場合、前記一定速区間が無いと判断すること
を特徴とする請求項1に記載の数値制御装置。
The constant speed section determination unit
An acceleration / deceleration section calculation unit that calculates the acceleration / deceleration distance or acceleration / deceleration time required for the acceleration section and the deceleration section, and the acceleration / deceleration section calculation unit.
It is provided with a ratio determination unit for determining whether or not the ratio of the acceleration / deceleration distance or the acceleration / deceleration time calculated by the acceleration / deceleration section calculation unit to the distance or time required for the drive period is equal to or less than a predetermined value.
When the ratio determination unit determines that the ratio is equal to or less than the predetermined value, it is determined that there is the constant speed section.
The numerical control device according to claim 1, wherein when the ratio determination unit determines that the ratio exceeds the predetermined value, it determines that there is no constant speed section.
前記切削加工はタップ加工であって、
前記工作機械の主軸を前記被削材に対して相対的に互いに直交する3軸方向に移動可能な三つの送りモータのうち、前記タップ加工時に前記主軸を前記被削材に向けて移動する移動モータのトルクを監視するトルク監視部を備え、
前記一定速区間判断部は、
前記移動モータが駆動を開始し、前記トルク監視部が監視する前記トルクが一定値を超えた場合、前記加速区間は完了しているか否か判断する加速完了判断部を備え、
前記加速完了判断部が前記加速区間は完了していると判断した場合、前記一定速区間が有ると判断し、
前記加速完了判断部が前記加速区間は完了していないと判断した場合、前記一定速区間が無いと判断すること
を特徴とする請求項1に記載の数値制御装置。
The cutting process is a tap process.
Of the three feed motors that can move the spindle of the machine tool in three axial directions that are relatively orthogonal to the work material, the movement that moves the spindle toward the work material during tapping. Equipped with a torque monitoring unit that monitors the torque of the motor
The constant speed section determination unit
When the moving motor starts driving and the torque monitored by the torque monitoring unit exceeds a certain value, an acceleration completion determination unit for determining whether or not the acceleration section is completed is provided.
When the acceleration completion determination unit determines that the acceleration section has been completed, it determines that the constant speed section exists.
The numerical control device according to claim 1, wherein when the acceleration completion determination unit determines that the acceleration section has not been completed, it determines that the constant speed section does not exist.
前記切削加工はタップ加工であって、
前記工作機械の主軸を前記被削材に対して相対的に互いに直交する3軸方向に移動可能な三つの送りモータのうち、前記タップ加工時には静止する静止モータのトルクを監視するトルク監視部を備え、
前記一定速区間判断部は、
前記トルク監視部が監視する前記トルクが一定値を超えた場合、前記加速区間は完了しているか否か判断する加速完了判断部と
を備え、
前記加速完了判断部が前記加速区間は完了していると判断した場合、前記一定速区間が有ると判断し、
前記加速完了判断部が前記加速区間は完了していないと判断した場合、前記一定速区間が無いと判断すること
を特徴とする請求項1に記載の数値制御装置。
The cutting process is a tap process.
Of the three feed motors that can move the spindle of the machine tool in three axial directions that are relatively orthogonal to the work material, a torque monitoring unit that monitors the torque of the stationary motor that is stationary during tapping is provided. Prepare,
The constant speed section determination unit
When the torque monitored by the torque monitoring unit exceeds a certain value, the acceleration completion determination unit for determining whether or not the acceleration section is completed is provided.
When the acceleration completion determination unit determines that the acceleration section has been completed, it determines that the constant speed section exists.
The numerical control device according to claim 1, wherein when the acceleration completion determination unit determines that the acceleration section has not been completed, it determines that the constant speed section does not exist.
前記加工負荷算出部が算出した前記加工負荷は前記閾値よりも低い下限閾値以下か判断する下限判断部と、
前記下限判断部が前記加工負荷は前記下限閾値以下と判断した場合、前記切削加工が二回目以降の加工であることを報知する報知部と
を備えたこと
を特徴とする請求項1から4の何れかに記載の数値制御装置。
A lower limit determination unit for determining whether the machining load calculated by the machining load calculation unit is equal to or less than the lower limit threshold value lower than the threshold value, and a lower limit determination unit.
4. Numerical control device described in any.
工作機械の主軸モータの負荷電流値に基づき、被削材の切削加工における加工負荷を監視可能な数値制御装置の制御方法において、
前記切削加工における前記主軸モータの回転開始から回転停止までの駆動期間の前記負荷電流値を測定する測定ステップと、
前記測定ステップで測定した前記負荷電流値に基づき、前記加工負荷を算出する加工負荷算出ステップと、
前記加工負荷算出ステップで算出した前記加工負荷は閾値以上か判断する判断ステップと、
前記判断ステップで前記加工負荷は前記閾値以上と判断した場合、アラームを出力する出力ステップと
を備え、
前記駆動期間は少なくとも、
前記主軸モータを一定速度まで加速する加速区間と、
前記主軸モータを前記一定速度から減速して停止する減速区間と
を備え、
前記加工負荷算出ステップは、
前記加速区間と前記減速区間の間に、前記一定速度の区間である一定速区間が有るか否か判断する一定速区間判断ステップと、
前記一定速区間判断ステップで、前記加速区間と前記減速区間の間に、前記一定速区間が有ると判断した場合、前記一定速区間における前記負荷電流値のピーク値を前記加工負荷として算出する第一算出ステップと、
前記一定速区間判断ステップで、前記加速区間と前記減速区間の間に、前記一定速区間が無いと判断した場合、前記駆動期間における前記負荷電流値の平均値を前記加工負荷として算出する第二算出ステップと
を備えたことを特徴とする制御方法。
In the control method of the numerical control device that can monitor the machining load in the cutting of the work material based on the load current value of the spindle motor of the machine tool.
A measurement step for measuring the load current value during the drive period from the start of rotation to the stop of rotation of the spindle motor in the cutting process, and a measurement step.
A machining load calculation step for calculating the machining load based on the load current value measured in the measurement step, and a machining load calculation step.
A determination step for determining whether the machining load calculated in the machining load calculation step is equal to or higher than the threshold value, and a determination step.
When the processing load is determined to be equal to or higher than the threshold value in the determination step, an output step for outputting an alarm is provided.
The driving period is at least
An acceleration section that accelerates the spindle motor to a constant speed,
It is provided with a deceleration section in which the spindle motor is decelerated from the constant speed and stopped.
The machining load calculation step is
A constant speed section determination step for determining whether or not there is a constant speed section which is a constant speed section between the acceleration section and the deceleration section, and
When it is determined in the constant speed section determination step that the constant speed section exists between the acceleration section and the deceleration section, the peak value of the load current value in the constant speed section is calculated as the processing load. One calculation step and
When it is determined in the constant speed section determination step that there is no constant speed section between the acceleration section and the deceleration section, the average value of the load current values in the drive period is calculated as the processing load. A control method characterized by having a calculation step.
JP2019054175A 2019-03-22 2019-03-22 Numerical control device and control method Active JP7010261B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2019054175A JP7010261B2 (en) 2019-03-22 2019-03-22 Numerical control device and control method
CN202010042652.7A CN111716148B (en) 2019-03-22 2020-01-15 Numerical controller and control method for numerical controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019054175A JP7010261B2 (en) 2019-03-22 2019-03-22 Numerical control device and control method

Publications (2)

Publication Number Publication Date
JP2020154921A JP2020154921A (en) 2020-09-24
JP7010261B2 true JP7010261B2 (en) 2022-01-26

Family

ID=72559370

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019054175A Active JP7010261B2 (en) 2019-03-22 2019-03-22 Numerical control device and control method

Country Status (2)

Country Link
JP (1) JP7010261B2 (en)
CN (1) CN111716148B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001125611A (en) 1999-10-29 2001-05-11 Toyoda Mach Works Ltd Numerical controller
US20040153259A1 (en) 2002-12-30 2004-08-05 Lee Sang Ho Method and apparatus of detecting tool abnormality in a machine tool
JP2007168054A (en) 2005-12-26 2007-07-05 Nachi Fujikoshi Corp Broaching machine and broaching method
CN108161569A (en) 2017-12-25 2018-06-15 上海中船三井造船柴油机有限公司 For the tool guard of depth drill

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57163041A (en) * 1981-03-26 1982-10-07 Agency Of Ind Science & Technol Detecting device of cutting abnormality
JPH0669659B2 (en) * 1988-12-12 1994-09-07 日立精機株式会社 Cutting monitoring equipment
JP3166430B2 (en) * 1993-07-12 2001-05-14 村田機械株式会社 Monitoring method of cutting load and monitoring method of loader load
JP3436899B2 (en) * 1999-09-10 2003-08-18 義昭 垣野 Tool abnormality detection device and numerical control device provided with the same
JP3231027B2 (en) * 1999-09-10 2001-11-19 義昭 垣野 Numerical control device for NC machine tools
JP3650737B2 (en) * 2000-01-31 2005-05-25 義昭 垣野 Tapping device
EP2666591B1 (en) * 2011-01-21 2019-07-03 JTEKT Corporation Grinding abnormality monitoring method and grinding abnormality monitoring device
CN102294499B (en) * 2011-07-19 2013-03-20 深圳市大族激光科技股份有限公司 Drilling processing method of PCB board drilling machine
KR102136804B1 (en) * 2013-01-23 2020-07-22 엘지전자 주식회사 Motor control apparatus and method thereof
JP5727572B2 (en) * 2013-10-10 2015-06-03 ファナック株式会社 Machine tool control apparatus and control method for changing operation according to motor temperature
JP5873144B2 (en) * 2014-07-08 2016-03-01 ファナック株式会社 Numerical control device that controls drilling
JP5902767B2 (en) * 2014-07-09 2016-04-13 ファナック株式会社 Machine tool controller for estimating motor overheating
JP6001633B2 (en) * 2014-10-17 2016-10-05 ファナック株式会社 Machine tool control apparatus and control method for controlling synchronous operation of main shaft and feed shaft
US10261495B2 (en) * 2014-10-29 2019-04-16 Makino Milling Machine Co., Ltd. Controlling operation of a machining tool
JP6814663B2 (en) * 2017-03-01 2021-01-20 株式会社ディスコ Cutting method of work piece
CN108667363A (en) * 2017-03-31 2018-10-16 北大方正集团有限公司 The control method and device of stepper motor movement
DE102017116869A1 (en) * 2017-07-26 2019-01-31 Chiron-Werke Gmbh & Co. Kg Device for determining highly loaded positions in a machine tool

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001125611A (en) 1999-10-29 2001-05-11 Toyoda Mach Works Ltd Numerical controller
US20040153259A1 (en) 2002-12-30 2004-08-05 Lee Sang Ho Method and apparatus of detecting tool abnormality in a machine tool
JP2007168054A (en) 2005-12-26 2007-07-05 Nachi Fujikoshi Corp Broaching machine and broaching method
CN108161569A (en) 2017-12-25 2018-06-15 上海中船三井造船柴油机有限公司 For the tool guard of depth drill

Also Published As

Publication number Publication date
CN111716148B (en) 2022-04-12
JP2020154921A (en) 2020-09-24
CN111716148A (en) 2020-09-29

Similar Documents

Publication Publication Date Title
EP1662352B1 (en) Controller with acceleration detection means
JP6439542B2 (en) Numerical control device and control method
US9069347B2 (en) Machine tool comprising a device for collision monitoring
JP6617474B2 (en) Numerical control device and control method
JP5507410B2 (en) Method and apparatus for monitoring spindle rotational speed in machine tool, machine tool
JP7148421B2 (en) Preventive maintenance system for machine tools
WO2022050209A1 (en) Machine tool and information processing device
JP2020116666A (en) Tool management system of machine tool
JP2009245007A (en) Device and method for controlling machine tool
JP2006154998A (en) Controller
JP7035875B2 (en) Numerical control device, numerical control method, and numerical control program
JP7010261B2 (en) Numerical control device and control method
JP5321515B2 (en) Numerical control device for machine tools
JP5908552B1 (en) Machine tool controller
JP2010099799A (en) Machine tool
JP5885105B2 (en) Automatic correction device and automatic correction method for machine tool
JP6464135B2 (en) Numerical controller
JP7131454B2 (en) Numerical controllers, machine tools, control programs, and storage media
JP4233559B2 (en) Numerically controlled machine tool
JP7276193B2 (en) Numerical controller and control method of the numerical controller
JP5491220B2 (en) Torque detection device
JP2021079461A (en) Turret optimization system
JP7167811B2 (en) Machine tool, information processing method and computer program
JP7538228B2 (en) Numerical control device, manufacturing machine, and method for controlling manufacturing machine
JP5960539B2 (en) Cutting fluid injection device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210226

TRDD Decision of grant or rejection written
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20211208

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20211214

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20211227

R150 Certificate of patent or registration of utility model

Ref document number: 7010261

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150