Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7683373B2 - CONTROL DEVICE, CONTROL METHOD, CONTROL PROGRAM, AND STORAGE MEDIUM - Google Patents
[go: Go Back, main page]

JP7683373B2 - CONTROL DEVICE, CONTROL METHOD, CONTROL PROGRAM, AND STORAGE MEDIUM - Google Patents

CONTROL DEVICE, CONTROL METHOD, CONTROL PROGRAM, AND STORAGE MEDIUM Download PDF

Info

Publication number
JP7683373B2
JP7683373B2 JP2021117904A JP2021117904A JP7683373B2 JP 7683373 B2 JP7683373 B2 JP 7683373B2 JP 2021117904 A JP2021117904 A JP 2021117904A JP 2021117904 A JP2021117904 A JP 2021117904A JP 7683373 B2 JP7683373 B2 JP 7683373B2
Authority
JP
Japan
Prior art keywords
command
position command
unit
mass
control device
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
JP2021117904A
Other languages
Japanese (ja)
Other versions
JP2023013593A (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 JP2021117904A priority Critical patent/JP7683373B2/en
Publication of JP2023013593A publication Critical patent/JP2023013593A/en
Application granted granted Critical
Publication of JP7683373B2 publication Critical patent/JP7683373B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Automatic Control Of Machine Tools (AREA)
  • Numerical Control (AREA)

Description

本発明は、制御装置、制御方法、制御プログラム、及び記憶媒体に関する。 The present invention relates to a control device, a control method, a control program, and a storage medium.

工作機械は、台と、台を第一方向に移動するボール螺子を備える。工作機械を制御する制御装置はボール螺子のピッチ誤差を予め記憶し、台を第一方向に移動する時にピッチ誤差を読出してボール螺子のピッチ誤差を補正する。制御装置は台をボール螺子の全区間移動しながら所定時間毎に台の第一方向の位置を測定することで、ボール螺子全体のピッチ誤差を補正間隔毎に算出する。 The machine tool has a table and a ball screw that moves the table in a first direction. A control device that controls the machine tool pre-stores the pitch error of the ball screw, and when the table is moved in the first direction, reads out the pitch error and corrects the pitch error of the ball screw. The control device measures the position of the table in the first direction at predetermined time intervals while moving the table over the entire length of the ball screw, thereby calculating the pitch error of the entire ball screw at each correction interval.

特許第5915436号公報Patent No. 5915436

上記工作機械の台は、使用時にワーク、ワーク固定治具等の積載物を載せる。工作機械は台を第一方向に移動可能に支持し、且つ第二方向に移動可能な支持台を備える。支持部は支持台を支持する。積載物の質量に応じて、支持部は第一方向に撓みが生じる。該時、制御装置がピッチ誤差を用い第一方向の位置を補正しても、支持部に生じた撓みの影響で台の第一方向の位置決め誤差が増加する。 When in use, the table of the above-mentioned machine tool carries a load such as a workpiece, a workpiece fixing jig, etc. The machine tool supports the table so that it can move in a first direction, and is equipped with a support table that can move in a second direction. The support part supports the support table. Depending on the mass of the load, the support part deflects in the first direction. At that time, even if the control device corrects the position in the first direction using the pitch error, the positioning error in the first direction of the table increases due to the effect of the deflection generated in the support part.

本発明の目的は、位置決め誤差を従来よりも低減した制御装置、制御方法、制御プログラム、及び記憶媒体を提供することである。 The object of the present invention is to provide a control device, a control method, a control program, and a storage medium that reduce positioning errors compared to conventional methods.

本発明の請求項1の制御装置は、積載物を載せる第一台と、前記第一台を水平方向と平行な第一方向に移動可能に支持する第二台と、前記第一台を前記第一方向に移動する第一駆動部と、前記第二台を前記第一方向と交差する第二方向に移動可能に支持する台支持部と、前記第二台を前記第二方向に移動する第二駆動部とを備える工作機械を制御する制御装置において、前記第一台に載せた前記積載物の質量を取得する質量取得部と、前記第一台の前記第一方向の位置を指令する第一位置指令を取得する第一指令取得部と、前記質量取得部が取得した前記質量に基づく係数と、前記第一位置指令の前記位置とを用い、前記第一台に載せた前記積載物による前記台支持部の撓みに応じた量、前記第一位置指令の前記位置を補正する補正部とを備える。制御装置は、補正部が積載物の質量に基づく係数と、第一位置指令の位置とを用い、第一位置指令の位置を補正するので、第一台に載せる積載物による台支持部の撓みに応じた量を考慮して、第一台の第一方向の位置決め誤差を従来よりも低減できる。 The control device of claim 1 of the present invention is a control device for controlling a machine tool including a first table on which a load is placed, a second table that supports the first table movably in a first direction parallel to the horizontal direction, a first drive unit that moves the first table in the first direction, a table support unit that supports the second table movably in a second direction intersecting the first direction, and a second drive unit that moves the second table in the second direction. The control device includes a mass acquisition unit that acquires the mass of the load placed on the first table, a first command acquisition unit that acquires a first position command that commands the position of the first table in the first direction, and a correction unit that uses a coefficient based on the mass acquired by the mass acquisition unit and the position of the first position command to correct the amount corresponding to the deflection of the table support unit due to the load placed on the first table and the position of the first position command. Since the correction unit uses a coefficient based on the mass of the load and the position of the first position command to correct the position of the first position command, the control device can reduce the positioning error in the first direction of the first table compared to conventional devices, taking into account the amount corresponding to the deflection of the table support unit due to the load placed on the first table.

本発明の請求項2の制御装置の前記第一位置指令の前記位置は、前記第一台に載せた前記積載物による前記台支持部の撓みに応じた前記量が最小になる位置である基準からの距離で表す。制御装置の第一位置指令の位置は、台支持部の撓みに応じた量が最小ではない位置を基準とする時の第一位置指令の位置よりも、第一台に載せる積載物による台支持部の撓みに応じた値を表しやすい。故に制御装置は、台支持部の撓みに応じた量が最小ではない位置を基準とする時よりも、台支持部の撓みに応じた量の計算を簡単にできる。 The position of the first position command of the control device of claim 2 of the present invention is expressed as a distance from a reference position, which is the position where the amount corresponding to the deflection of the platform support part due to the load placed on the first platform is the smallest. The position of the first position command of the control device is more likely to represent a value corresponding to the deflection of the platform support part due to the load placed on the first platform than the position of the first position command when the reference position is a position where the amount corresponding to the deflection of the platform support part is not the smallest. Therefore, the control device can more easily calculate the amount corresponding to the deflection of the platform support part than when the reference position is a position where the amount corresponding to the deflection of the platform support part is not the smallest.

本発明の請求項3の制御装置の前記第一台に載せた前記積載物による前記台支持部の撓みに応じた前記量は、前記係数と、前記距離の積である。制御装置は台支持部の撓みに応じた量の計算を簡単にできる。 The amount according to the deflection of the platform support part due to the load placed on the first platform of the control device of claim 3 of the present invention is the product of the coefficient and the distance. The control device can easily calculate the amount according to the deflection of the platform support part.

本発明の請求項4の制御装置の前記係数は、前記工作機械に固有の定数に基づく値である。制御装置は補正に用いる係数を工作機械に固有の定数に基づく値とすることで、工作機械の全個体を測定することなく第一位置指令の位置を補正できる。 The coefficient of the control device of claim 4 of the present invention is a value based on a constant specific to the machine tool. By setting the coefficient used for correction to a value based on a constant specific to the machine tool, the control device can correct the position of the first position command without measuring all individual machine tools.

本発明の請求項5の制御装置の前記基準は前記第一台の移動可能範囲の中心である。制御装置は基準が第一台の移動可能範囲の端部にある時よりも、台支持部の撓みに応じた量を小さくできる。 The reference of the control device of claim 5 of the present invention is the center of the movable range of the first unit. The control device can reduce the amount of deflection of the platform support part compared to when the reference is at the end of the movable range of the first unit.

本発明の請求項6の制御装置の前記係数は、前記台支持部の下端と前記第一台の上面の間の所定位置からの前記積載物の高さに応じた値に基づく。制御装置は積載物の高さを考慮して第一位置指令の位置を補正できる。 The coefficient of the control device of claim 6 of the present invention is based on a value corresponding to the height of the load from a predetermined position between the lower end of the platform support part and the upper surface of the first platform. The control device can correct the position of the first position command taking into account the height of the load.

本発明の請求項7の制御装置の前記所定位置は、前記第一台に載せた前記積載物による前記台支持部の撓みによる前記第一台の前記第一方向の位置の誤差が最小になる位置である。制御装置は所定位置から積載物の高さに応じた、第一台に載せた積載物による台支持部の撓みに応じた誤差が最小になるように第一位置指令の位置を補正できる。 The predetermined position of the control device of claim 7 of the present invention is a position where the error in the position of the first platform in the first direction caused by the deflection of the platform support part due to the load placed on the first platform is minimized. The control device can correct the position of the first position command so that the error caused by the deflection of the platform support part due to the load placed on the first platform, depending on the height of the load from the predetermined position, is minimized.

本発明の請求項8の制御装置の前記工作機械は工具を装着する主軸と、前記主軸を支持し、上下動可能な主軸ヘッドと、前記主軸ヘッドを上下方向に移動可能に支持するヘッド支持部と、前記主軸ヘッドを前記上下方向に移動する第三駆動部とを備え、前記主軸ヘッドの前記上下方向の位置を指令する第二位置指令を取得する第二指令取得部と、前記主軸が装着した前記工具に応じた工具長補正量と前記第二位置指令に依り、前記工具の先端の前記所定位置からの高さを取得する高さ取得部を有し、前記積載物の高さに応じた値は、前記高さ取得部が取得した前記工具の前記先端の前記所定位置からの高さである。制御装置は第二位置指令が示す主軸ヘッドの上下位置を考慮して第一位置指令の位置を補正できる。 The machine tool of the control device of claim 8 of the present invention includes a spindle on which a tool is attached, a spindle head that supports the spindle and can move up and down, a head support unit that supports the spindle head so that it can move in the vertical direction, and a third drive unit that moves the spindle head in the vertical direction. The machine tool includes a second command acquisition unit that acquires a second position command that commands the vertical position of the spindle head, and a height acquisition unit that acquires the height of the tip of the tool from the specified position based on a tool length correction amount corresponding to the tool attached to the spindle and the second position command, and the value corresponding to the height of the load is the height of the tip of the tool from the specified position acquired by the height acquisition unit. The control device can correct the position of the first position command by taking into account the vertical position of the spindle head indicated by the second position command.

本発明の請求項9の制御装置の前記第二位置指令が位置決め指令か切削指令かを判断する種別判断部を更に備え、前記高さ取得部は、前記第二位置指令が前記位置決め指令であると前記種別判断部が判断したことに応じ前記工具の前記先端の前記所定位置からの高さを取得し、前記補正部は、前記高さ取得部が取得した前記工具の前記先端の前記所定位置からの高さを用い前記係数を更新し、更新した前記係数と前記第二位置指令に対応する前記第一位置指令の前記位置とを用い、前記第一位置指令の前記位置を補正する。制御装置は第二位置指令が位置決め指令である時の第二位置指令が示す主軸ヘッドの上下位置を考慮して第二位置指令に対応する第一位置指令の位置を補正できる。故に制御装置は第一台に載せる積載物の所定位置からの高さが比較的大きい時でも、第一位置指令が示す第一台の第一方向の位置を適切に補正できる。 The control device of claim 9 of the present invention further includes a type determination unit that determines whether the second position command is a positioning command or a cutting command, and the height acquisition unit acquires the height of the tip of the tool from the predetermined position in response to the type determination unit's determination that the second position command is the positioning command, and the correction unit updates the coefficient using the height of the tip of the tool from the predetermined position acquired by the height acquisition unit, and corrects the position of the first position command using the updated coefficient and the position of the first position command corresponding to the second position command. The control device can correct the position of the first position command corresponding to the second position command by taking into account the vertical position of the spindle head indicated by the second position command when the second position command is a positioning command. Therefore, the control device can appropriately correct the position of the first table in the first direction indicated by the first position command even when the height of the load placed on the first table from the predetermined position is relatively large.

本発明の請求項10の制御装置は記憶装置と、前記補正部が更新した前記係数を前記記憶装置に記憶する記憶制御部とを更に備え、前記補正部は、前記種別判断部が前記第二位置指令が前記切削指令であると判断したことに応じ、前記記憶装置に記憶した前記係数と前記第一位置指令の前記位置とを用い、前記第一位置指令の前記位置を補正する。制御装置は切削加工時に切削部分の大きさを第一位置指令が示す大きさよりも大きくする等の悪影響を抑制するように第一位置指令の位置を補正できる。 The control device of claim 10 of the present invention further includes a storage device and a storage control unit that stores the coefficients updated by the correction unit in the storage device, and the correction unit corrects the position of the first position command using the coefficients stored in the storage device and the position of the first position command in response to the type determination unit determining that the second position command is the cutting command. The control device can correct the position of the first position command so as to suppress adverse effects such as making the size of the cutting portion larger than the size indicated by the first position command during cutting processing.

本発明の請求項11の制御装置の前記補正部は、前記係数と、前記積載物と前記第一台の重心を用いて補正した前記第一位置指令の前記位置とを用い、前記第一台に載せた前記積載物による前記台支持部の撓みに応じた前記量、前記第一位置指令の前記位置を補正する。制御装置は積載物の第一台の第一方向の配置を考慮して、第一台に載せた積載物による台支持部の撓みに応じた量、第一位置指令の位置を適切に補正できる。 The correction unit of the control device of claim 11 of the present invention uses the coefficient and the position of the first position command corrected using the center of gravity of the load and the first platform to correct the amount corresponding to the deflection of the platform support part due to the load placed on the first platform and the position of the first position command. The control device can appropriately correct the amount corresponding to the deflection of the platform support part due to the load placed on the first platform and the position of the first position command, taking into account the position of the load in the first direction of the first platform.

本発明の請求項12の制御方法は、積載物を載せる第一台と、前記第一台を水平方向と平行な第一方向に移動可能に支持する第二台と、前記第一台を前記第一方向に移動する第一駆動部と、前記第二台を前記第一方向と交差する第二方向に移動可能に支持する台支持部と、前記第二台を前記第二方向に移動する第二駆動部とを備える工作機械の制御方法において、前記第一台に載せた前記積載物の質量を取得する質量取得工程と、前記第一台の前記第一方向の位置を指令する位置指令を取得する指令取得工程と、前記質量取得工程で取得した前記質量に基づく係数と、前記位置指令の前記位置とを用い、前記第一台に載せた前記積載物による前記台支持部の撓みに応じた量、前記位置指令の前記位置を補正する補正工程とを備える。制御装置は制御方法を行うことで、補正部が積載物の質量に基づく係数と、位置指令の位置とを用い、位置指令の位置を補正するので、第一台に載せる積載物による台支持部の撓みに応じた量を考慮して、第一台に載せる積載物の質量に応じた第一台の第一方向の位置決め誤差を従来よりも低減できる。 The control method of claim 12 of the present invention is a control method for a machine tool including a first table on which a load is placed, a second table supporting the first table so as to be movable in a first direction parallel to the horizontal direction, a first drive unit moving the first table in the first direction, a table support unit supporting the second table so as to be movable in a second direction intersecting the first direction, and a second drive unit moving the second table in the second direction, the control method includes a mass acquisition process for acquiring the mass of the load placed on the first table, a command acquisition process for acquiring a position command that commands the position of the first table in the first direction, and a correction process for correcting the position of the position command by an amount corresponding to the deflection of the table support unit due to the load placed on the first table, using a coefficient based on the mass acquired in the mass acquisition process and the position of the position command. The control device performs a control method, and the correction unit corrects the position of the position command using a coefficient based on the mass of the load and the position of the position command, so that the positioning error in the first direction of the first platform corresponding to the mass of the load placed on the first platform can be reduced more than ever before, taking into account the amount corresponding to the deflection of the platform support part due to the load placed on the first platform.

本発明の請求項13の制御プログラムは、積載物を載せる第一台と、前記第一台を水平方向と平行な第一方向に移動可能に支持する第二台と、前記第一台を前記第一方向に移動する第一駆動部と、前記第二台を前記第一方向と交差する第二方向に移動可能に支持する台支持部と、前記第二台を前記第二方向に移動する第二駆動部とを備える工作機械を制御する制御装置の制御部が実行可能な制御プログラムにおいて、前記第一台に載せた前記積載物の質量を取得する質量取得処理と、前記第一台の前記第一方向の位置を指令する位置指令を取得する指令取得処理と、前記質量取得処理で取得した前記質量に基づく係数と、前記位置指令の前記位置とを用い、前記第一台に載せた前記積載物による前記台支持部の撓みに応じた量、前記位置指令の前記位置を補正する補正処理とを前記制御装置の前記制御部に実行させる指示を含む。制御プログラムを行う制御装置は、補正部が積載物の質量に基づく係数と、位置指令の位置とを用い、位置指令の位置を補正するので、第一台に載せる積載物による台支持部の撓みに応じた量を考慮して、第一台に載せる積載物の質量に応じた第一台の第一方向の位置決め誤差を従来よりも低減できる。 The control program of claim 13 of the present invention is a control program executable by a control unit of a control device that controls a machine tool including a first table on which a load is placed, a second table that supports the first table so that it can be moved in a first direction parallel to the horizontal direction, a first drive unit that moves the first table in the first direction, a table support unit that supports the second table so that it can be moved in a second direction intersecting the first direction, and a second drive unit that moves the second table in the second direction, and includes instructions to cause the control unit of the control device to execute a mass acquisition process that acquires the mass of the load placed on the first table, a command acquisition process that acquires a position command that commands the position of the first table in the first direction, and a correction process that corrects the position of the position command by an amount corresponding to the deflection of the table support unit due to the load placed on the first table, using a coefficient based on the mass acquired in the mass acquisition process and the position of the position command. In the control device that executes the control program, the correction unit corrects the position of the position command using a coefficient based on the mass of the load and the position of the position command, so that the positioning error in the first direction of the first platform corresponding to the mass of the load placed on the first platform can be reduced more than ever before, taking into account the amount corresponding to the deflection of the platform support part due to the load placed on the first platform.

本発明の請求項14の記憶媒体は、積載物を載せる第一台と、前記第一台を水平方向と平行な第一方向に移動可能に支持する第二台と、前記第一台を前記第一方向に移動する第一駆動部と、前記第二台を前記第一方向と交差する第二方向に移動可能に支持する台支持部と、前記第二台を前記第二方向に移動する第二駆動部とを備える工作機械を制御する制御装置の制御部が実行可能な制御プログラムを記憶する記憶媒体において、前記第一台に載せた前記積載物の質量を取得する質量取得処理と、前記第一台の前記第一方向の位置を指令する位置指令を取得する指令取得処理と、前記質量取得処理で取得した前記質量に基づく係数と、前記位置指令の前記位置とを用い、前記第一台に載せた前記積載物による前記台支持部の撓みに応じた量、前記位置指令の前記位置を補正する補正処理とを前記制御装置の前記制御部に実行させる指示を含む前記制御プログラムを記憶する。記憶媒体が記憶する制御プログラムを行う制御装置は補正部が積載物の質量に基づく係数と、位置指令の位置とを用い、位置指令の位置を補正するので、第一台に載せる積載物による台支持部の撓みに応じた量を考慮して、第一台に載せる積載物の質量に応じた第一台の第一方向の位置決め誤差を従来よりも低減できる。 The storage medium of claim 14 of the present invention is a storage medium that stores a control program executable by a control unit of a control device that controls a machine tool including a first table on which a load is placed, a second table that supports the first table movably in a first direction parallel to the horizontal direction, a first drive unit that moves the first table in the first direction, a table support unit that supports the second table movably in a second direction intersecting the first direction, and a second drive unit that moves the second table in the second direction, and the control program stores instructions to cause the control unit of the control device to execute a mass acquisition process that acquires the mass of the load placed on the first table, a command acquisition process that acquires a position command that commands the position of the first table in the first direction, and a correction process that corrects the position of the position command by an amount corresponding to the deflection of the table support unit due to the load placed on the first table, using a coefficient based on the mass acquired in the mass acquisition process and the position of the position command. The control device, which executes the control program stored in the storage medium, has a correction unit that uses a coefficient based on the mass of the load and the position of the position command to correct the position of the position command, so that the positioning error in the first direction of the first platform corresponding to the mass of the load placed on the first platform can be reduced more than ever before, taking into account the amount corresponding to the deflection of the platform support part due to the load placed on the first platform.

工作機械1の斜視図。FIG. テーブル装置10の斜視図。FIG. 制御装置30と工作機械1の電気的構成のブロック図。FIG. 2 is a block diagram of the electrical configuration of the control device 30 and the machine tool 1. テーブル装置10の正面模式図。FIG. 2 is a schematic front view of the table device 10. 質量取得処理の流れ図。1 is a flow diagram of the mass acquisition process. 第一実施形態の主処理の流れ図。4 is a flowchart of a main process according to the first embodiment. (A)は第一位置指令の位置補正前の基準Rからの第一位置指令の位置迄の距離xと誤差との関係を示すグラフ、(B)は第一実施形態の主処理で第一位置指令の位置補正後の基準Rからの第一位置指令の位置迄の距離xと誤差との関係を示すグラフ。13A is a graph showing the relationship between the error and the distance x from the reference R to the position of the first position command before position correction of the first position command, and FIG. 13B is a graph showing the relationship between the error and the distance x from the reference R to the position of the first position command after position correction of the first position command in the main processing of the first embodiment. 第二実施形態の主処理の流れ図。13 is a flowchart of a main process according to a second embodiment. 軸動作指令処理の流れ図。4 is a flow diagram of an axis operation command process. (A)は第一位置指令の位置補正前の基準Rからの第一位置指令の位置迄の距離xと誤差との関係を示すグラフ、(B)は第二実施形態の主処理で第一位置指令の位置補正後の基準Rからの第一位置指令の位置迄の距離xと誤差との関係を示すグラフ。13A is a graph showing the relationship between the error and the distance x from the reference R to the position of the first position command before position correction of the first position command, and FIG. 13B is a graph showing the relationship between the error and the distance x from the reference R to the position of the first position command after position correction of the first position command in the main processing of the second embodiment. テーブル装置10の正面模式図。FIG. 2 is a schematic front view of the table device 10. (A)は第一位置指令の位置補正前の基準Rからの第一位置指令の位置迄の距離xと誤差との関係を示すグラフ、(B)は変形例の主処理で第一位置指令の位置補正後の基準Rからの第一位置指令の位置迄の距離xと誤差との関係を示すグラフ。13A is a graph showing the relationship between the error and the distance x from the reference R to the position of the first position command before position correction of the first position command, and FIG. 13B is a graph showing the relationship between the error and the distance x from the reference R to the position of the first position command after position correction of the first position command in the main processing of the modified example.

工作機械1の構成を説明する。以下説明は、図中に矢印で示す左右、前後、上下を使用する。工作機械1の左右方向、前後方向、上下方向は夫々工作機械1のX軸方向、Y軸方向、Z軸方向である。X軸方向は第一方向であり、Y軸方向は第二方向である。図1、図2を用いて工作機械1の構成を説明する。工作機械1は主軸9に装着した工具4を回動し、第一台13の上面11に保持した被削材3に切削加工を施す機械である。制御装置30は工作機械1の動作を制御する。 The configuration of the machine tool 1 will be explained. In the following explanation, the left/right, front/back, and up/down directions shown by arrows in the figure will be used. The left/right, front/back, and up/down directions of the machine tool 1 are the X-axis, Y-axis, and Z-axis directions of the machine tool 1, respectively. The X-axis direction is the first direction, and the Y-axis direction is the second direction. The configuration of the machine tool 1 will be explained using Figures 1 and 2. The machine tool 1 is a machine that rotates a tool 4 attached to a spindle 9 and performs cutting on a workpiece 3 held on the upper surface 11 of a first table 13. A control device 30 controls the operation of the machine tool 1.

工作機械1は基台2、コラム5、主軸ヘッド7、主軸9、テーブル装置10、工具交換装置20、制御箱6、操作パネル15(図3参照)等を備える。基台2は金属製であり、且つ略直方体状の土台である。コラム5は略角柱状であり、且つ基台2上部後方に固定する。主軸ヘッド7はコラム5前面に沿ってZ軸方向に移動する。主軸ヘッド7は内部に主軸9を回転可能に支持する。主軸9は主軸モータ52(図3参照)の駆動で回転する。主軸モータ52は主軸ヘッド7に設ける。主軸ヘッド7はコラム5前面に設けたZ軸移動機構(不図示)でZ軸方向に移動する。制御装置30はZ軸モータ51(図3参照)の駆動を制御して、主軸ヘッド7をZ軸方向に移動制御する。 The machine tool 1 includes a base 2, a column 5, a spindle head 7, a spindle 9, a table device 10, a tool changer 20, a control box 6, an operation panel 15 (see FIG. 3), etc. The base 2 is made of metal and is a substantially rectangular parallelepiped base. The column 5 is substantially prismatic and is fixed to the rear of the upper part of the base 2. The spindle head 7 moves 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 is rotated by the drive of a spindle motor 52 (see FIG. 3). 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 movement mechanism (not shown) provided on the front surface of the column 5. The control device 30 controls the drive of the Z-axis motor 51 (see FIG. 3) to control the movement of the spindle head 7 in the Z-axis direction.

テーブル装置10はボール螺子駆動系の機構である。テーブル装置10はY軸移動機構18、第二台12、X軸移動機構17、第一台13等を備える。Y軸移動機構18は基台2上面前側に設け、Y軸軌道61、Y軸ボール螺子62、Y軸モータ54等を備える。Y軸軌道61とY軸ボール螺子62はY軸方向に延びる。第二台12は略直方体状に形成し、且つ底部外面にナット(不図示)を備える。該ナットはY軸ボール螺子62に螺合する。Y軸モータ54がY軸ボール螺子62を回転すると、第二台12はナットと共にY軸軌道61に沿って移動する。故にY軸移動機構18は第二台12をY軸方向に移動可能に支持する。 The table device 10 is a ball screw drive mechanism. The table device 10 includes a Y-axis moving mechanism 18, a second table 12, an X-axis moving mechanism 17, a first table 13, etc. The Y-axis moving mechanism 18 is provided on the front side of the upper surface of the base 2, and includes a Y-axis track 61, a Y-axis ball screw 62, a Y-axis motor 54, etc. The Y-axis track 61 and the Y-axis ball screw 62 extend in the Y-axis direction. The second table 12 is formed in a substantially rectangular parallelepiped shape, and includes a nut (not shown) on the outer surface of the bottom. The nut is screwed into the Y-axis ball screw 62. When the Y-axis motor 54 rotates the Y-axis ball screw 62, the second table 12 moves along the Y-axis track 61 together with the nut. Therefore, the Y-axis moving mechanism 18 supports the second table 12 so that it can move in the Y-axis direction.

X軸移動機構17は第二台12上面に設け、且つX軸軌道63、X軸ボール螺子64、X軸モータ53等を備える。X軸軌道63とX軸ボール螺子64はX軸方向に延びる。第一台13は平面視矩形板状に形成し、且つ第二台12上面に設ける。第一台13は底部にナット(不図示)を備える。該ナットはX軸ボール螺子64に螺合する。X軸モータ53がX軸ボール螺子64を回転すると、第一台13はナットと共にX軸軌道63に沿って移動する。X軸移動機構17は第一台13をX軸方向に移動可能に支持する。故に第一台13はY軸移動機構18、第二台12、X軸移動機構17により、基台2上をX軸方向とY軸方向に移動する。 The X-axis moving mechanism 17 is provided on the upper surface of the second table 12, and includes an X-axis track 63, an X-axis ball screw 64, an X-axis motor 53, etc. The X-axis track 63 and the X-axis ball screw 64 extend in the X-axis direction. The first table 13 is formed in a rectangular plate shape in a plan view, and is provided on the upper surface of the second table 12. The first table 13 includes a nut (not shown) at the bottom. The nut is screwed into the X-axis ball screw 64. When the X-axis motor 53 rotates the X-axis ball screw 64, the first table 13 moves along the X-axis track 63 together with the nut. The X-axis moving mechanism 17 supports the first table 13 so that it can move in the X-axis direction. Therefore, the first table 13 moves on the base 2 in the X-axis and Y-axis directions by the Y-axis moving mechanism 18, the second table 12, and the X-axis moving mechanism 17.

左右一対のカバー67はX軸軌道63とX軸ボール螺子64の一部を覆う。カバー67は第一台13のX軸方向への移動に伴い伸縮する。前カバー69と後カバー(不図示)はY軸軌道61とY軸ボール螺子62の一部を覆う。前カバー69と後カバーは第二台12のY軸方向への移動に伴い伸縮する。 A pair of left and right covers 67 cover parts of the X-axis track 63 and the X-axis ball screw 64. The covers 67 expand and contract as the first base 13 moves in the X-axis direction. The front cover 69 and rear cover (not shown) cover parts of the Y-axis track 61 and the Y-axis ball screw 62. The front cover 69 and rear cover expand and contract as the second base 12 moves in the Y-axis direction.

工具交換装置20は主軸ヘッド7の前側に設け、円盤型の工具マガジン21を備える。工具マガジン21はフレーム71、複数のアーム73を備え、且つ工具4A、4Bを含む複数の工具4を収納可能である。フレーム71は円筒状である。複数のアーム73はフレーム71の外周に沿って揺動可能に設ける。工具交換装置20はマガジンモータ55(図3参照)により工具マガジン21をマガジン軸J周りに回動し、工具交換指令が指示する工具4を交換位置に位置決めする。工具交換指令はNCプログラムで指令する。交換位置は工具マガジン21の最下部位置である。工具交換装置20は主軸9が装着する使用済みの工具4と次に主軸9に装着する工具4を交換する。工具の交換は、主軸ヘッド7の上昇、工具マガジン21の回動、主軸ヘッド7の下降の一連の動作で行う。 The tool changer 20 is provided in front of the spindle head 7 and has a disk-shaped tool magazine 21. The tool magazine 21 has a frame 71 and multiple arms 73, and can store multiple tools 4 including tools 4A and 4B. The frame 71 is cylindrical. The multiple arms 73 are provided so as to be able to swing along the outer periphery of the frame 71. The tool changer 20 rotates the tool magazine 21 around the magazine axis J by the magazine motor 55 (see FIG. 3) and positions the tool 4 specified by the tool change command at the change position. The tool change command is commanded by an NC program. The change position is the lowest position of the tool magazine 21. The tool changer 20 replaces the used tool 4 attached to the spindle 9 with the tool 4 to be next attached to the spindle 9. The tool change is performed by a series of operations: raising the spindle head 7, rotating the tool magazine 21, and lowering the spindle head 7.

制御箱6は制御装置30(図3参照)を格納する。制御装置30は工作機械1に設けたZ軸モータ51、主軸モータ52、X軸モータ53、Y軸モータ54を制御し、第一台13及び工具4をX軸方向、Y軸方向、Z軸方向に沿って相対移動する。該時、第一台13上に固定した被削材3と主軸9に装着した工具4は相対移動し、被削材3に各種加工を施す。各種加工はドリル、タップ等を用いた穴空け加工、エンドミル、フライス等を用いた側面加工等である。制御装置30はマガジンモータ55を制御し、工具マガジン21を回動する。 The control box 6 houses the control device 30 (see Figure 3). The control device 30 controls the Z-axis motor 51, spindle motor 52, X-axis motor 53, and Y-axis motor 54 provided on the machine tool 1, and moves the first table 13 and the tool 4 relatively along the X-axis, Y-axis, and Z-axis directions. At that time, the workpiece 3 fixed on the first table 13 and the tool 4 attached to the spindle 9 move relatively to each other, and various types of processing are performed on the workpiece 3. The various types of processing include hole drilling using a drill, tap, etc., and side processing using an end mill, milling cutter, etc. The control device 30 controls the magazine motor 55 to rotate the tool magazine 21.

操作パネル15(図3参照)は工作機械1を覆うカバー(不図示)の外壁に設ける。操作パネル15は入力部16と表示部14(図3参照)を備える。入力部16は各種情報、操作指示等の入力を受付け後、該操作指示等を制御装置30に出力する。表示部14は制御装置30からの指令により、各種画面を表示する。 The operation panel 15 (see FIG. 3) is provided 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 14 (see FIG. 3). The input unit 16 accepts input of various information, operation instructions, etc., and then outputs the operation instructions, etc. to the control device 30. The display unit 14 displays various screens in response to commands from the control device 30.

図3を参照し、電気的構成を説明する。制御装置30と工作機械1はCPU31、ROM32、RAM33、記憶装置34、入出力部35、駆動回路51A~55A等を備える。CPU31は制御装置30を統括制御する。ROM32は主プログラム、質量プログラム等を記憶する。主プログラムはNCプログラムを一行ずつ読み込んで各種動作を実行する。NCプログラムは各種制御指令を含む複数行で構成し、CPU31は工作機械1の軸移動、工具交換等を含む各種動作を行単位で制御する。質量プログラムは質量取得処理(図5参照)を実行する為のプログラムである。RAM33は各種情報を一時的に記憶する。記憶装置34は不揮発性であり、且つNCプログラム、各種情報を記憶する。CPU31は作業者が操作パネル15の入力部16で入力したNCプログラムに加え、外部入力で読み込んだNCプログラム等を記憶装置34に記憶できる。 The electrical configuration will be described with reference to FIG. 3. The control device 30 and the machine tool 1 are equipped with a CPU 31, a ROM 32, a RAM 33, a storage device 34, an input/output unit 35, drive circuits 51A to 55A, etc. The CPU 31 controls the control device 30. The ROM 32 stores the main program, mass program, etc. The main program reads the NC program line by line and executes various operations. The NC program is composed of multiple lines including various control commands, and the CPU 31 controls various operations including the axis movement of the machine tool 1 and tool replacement on a line-by-line basis. The mass program is a program for executing the mass acquisition process (see FIG. 5). The RAM 33 temporarily stores various information. The storage device 34 is non-volatile and stores the NC program and various information. The CPU 31 can store in the storage device 34 the NC program input by the operator through the input unit 16 of the operation panel 15, as well as the NC program read by external input.

駆動回路51AはZ軸モータ51とエンコーダ51Bに接続する。駆動回路52Aは主軸モータ52とエンコーダ52Bに接続する。駆動回路53AはX軸モータ53とエンコーダ53Bに接続する。駆動回路54AはY軸モータ54とエンコーダ54Bに接続する。駆動回路55Aはマガジンモータ55とエンコーダ55Bに接続する。Z軸モータ51、主軸モータ52、X軸モータ53、Y軸モータ54、マガジンモータ55は何れもサーボモータである。駆動回路51A~55AはCPU31から指令を受け、対応するモータ51~55に指令に基づく駆動電流を夫々出力する。駆動回路51A~55Aはエンコーダ51B~55Bからフィードバック信号を受け、位置と速度(角速度)のフィードバック制御を行う。入出力部35は操作パネル15の入力部16と表示部14に夫々接続する。 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 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. The drive circuits 51A to 55A receive commands from the CPU 31 and output drive currents based on the commands to the corresponding motors 51 to 55, respectively. The drive circuits 51A to 55A receive feedback signals from the encoders 51B to 55B and perform feedback control of the position and speed (angular velocity). The input/output unit 35 is connected to the input unit 16 and the display unit 14 of the operation panel 15, respectively.

図4を参照し、第一台13に載せた積載物Wにより、基台2が撓む影響を補正する補正処理の概要を説明する。第一台13が後述する位置Pxに位置し、且つ第一台13に載せた積載物Wによる基台2の撓みに応じた量が、式(1)の如く第一台13のX軸方向の基準Rから位置Px迄の距離xに比例すると仮定する。本実施形態の基準Rは第一台13に載せた積載物Wによる基台2の撓みに応じた量が最小になるX軸の位置である。図4の例では基準Rは第一台13の移動可能範囲の中心であり、第一台13のX軸方向の中心が第二台12のX軸方向の中心、及び基台2のX軸方向の中心と一致する位置である。距離xは基準Rからの移動距離を示している。図4では第一台13が基準Rにある時を実線で示し、第一台13が位置Pxにある時を一点鎖線で示す。第一台13が位置Pxにある時、積載物Wは不図示である。第一台13が基準Rよりも右方にある時の距離をプラスの距離とし、第一台13が基準Rよりも左方にある時の距離をマイナスの距離とする。 With reference to FIG. 4, an outline of the correction process for correcting the effect of the deflection of the base 2 due to the load W placed on the first platform 13 will be described. It is assumed that the first platform 13 is located at a position Px described later, and the amount of deflection of the base 2 due to the load W placed on the first platform 13 is proportional to the distance x from the reference R in the X-axis direction of the first platform 13 to the position Px as shown in formula (1). The reference R in this embodiment is the X-axis position at which the amount of deflection of the base 2 due to the load W placed on the first platform 13 is minimized. In the example of FIG. 4, the reference R is the center of the movable range of the first platform 13, and is a position where the center of the X-axis direction of the first platform 13 coincides with the center of the X-axis direction of the second platform 12 and the center of the X-axis direction of the base 2. The distance x indicates the movement distance from the reference R. In FIG. 4, the first platform 13 is shown by a solid line when it is at the reference R, and the first platform 13 is shown by a dashed line when it is at the position Px. When the first platform 13 is at position Px, the load W is not shown. The distance when the first platform 13 is to the right of the reference R is a positive distance, and the distance when the first platform 13 is to the left of the reference R is a negative distance.

第一台13に載せた積載物Wにより、基台2が撓むことに起因するX軸方向の推定誤差E(x)は式(1)で求まる。E(x)は第一台13に載せた積載物Wによる基台2の撓みに応じた量とも言える。
E(x)=H×K×M×x ・・・式(1)
ここで、Kは機械固有の定数である。Mは第一台13に載せた積載物Wの質量である。積載物Wの質量Mは第一台13に設けた治具の質量と治具が保持する被削材3の質量の合計である。Hは所定位置から積載物Wの上端に応じた値(高さ)である。所定位置は基台2の上端と第一台13の上面11の間の位置であり、例えば第一台13に載せた積載物Wによる基台2の撓みによる第一台13の位置決め誤差が最小になる位置である。第一実施形態のHは所定位置から積載物Wの上端迄の高さH2であり記憶装置34に予め記憶する。第二実施形態のHは所定位置から工具4の先端迄の高さH1である。高さH1はCPU31が予め計算で求めた後、記憶装置34に予め記憶する。第一、第二実施形態では式(1)の内、K×M×Hを係数Cとして扱う。
The estimated error E(x) in the X-axis direction caused by the deflection of the base 2 due to the load W placed on the first platform 13 is calculated by the formula (1). E(x) can be said to be an amount corresponding to the deflection of the base 2 due to the load W placed on the first platform 13.
E(x)=H×K×M×x ...Formula (1)
Here, K is a constant specific to the machine. M is the mass of the load W placed on the first table 13. The mass M of the load W is the sum of the mass of the jig provided on the first table 13 and the mass of the workpiece 3 held by the jig. H is a value (height) according to the upper end of the load W from the predetermined position. The predetermined position is a position between the upper end of the base 2 and the upper surface 11 of the first table 13, and is, for example, a position where the positioning error of the first table 13 due to the deflection of the base 2 by the load W placed on the first table 13 is minimized. H in the first embodiment is the height H2 from the predetermined position to the upper end of the load W, which is stored in advance in the storage device 34. H in the second embodiment is the height H1 from the predetermined position to the tip of the tool 4. The height H1 is calculated in advance by the CPU 31 and then stored in advance in the storage device 34. In the first and second embodiments, K×M×H in formula (1) is treated as a coefficient C.

図5を参照し、質量取得処理を説明する。CPU31は工作機械1起動時、ROM32に記憶したプログラムを読出し、続けて質量取得処理を開始する。CPU31は第一台13に載せた積載物Wの質量Mを取得したか否かを判断する(S1)。積載物Wの質量Mは推定誤差E(x)を求める為の係数Cの設定に用いる。積載物Wの質量Mの取得方法は適宜設定してよい。CPU31は作業者が入力部16を操作して積載物Wの質量を入力時、入力値を積載物Wの質量Mとして取得してもよい。CPU31は積載物Wの質量Mをテーブル装置10による第一台13の加速度と加速時のトルクから求めてもよい。 The mass acquisition process will be described with reference to FIG. 5. When the machine tool 1 is started, the CPU 31 reads out the program stored in the ROM 32, and then starts the mass acquisition process. The CPU 31 determines whether or not the mass M of the load W placed on the first platform 13 has been acquired (S1). The mass M of the load W is used to set the coefficient C for determining the estimated error E(x). The method of acquiring the mass M of the load W may be set appropriately. When the worker operates the input unit 16 to input the mass of the load W, the CPU 31 may acquire the input value as the mass M of the load W. The CPU 31 may obtain the mass M of the load W from the acceleration of the first platform 13 by the table device 10 and the torque during acceleration.

積載物Wの質量Mを求める時、CPU31は以下の手順を実行する。一例としてX軸モータ53を使用する時を説明する。CPU31はX軸モータ53を駆動し、第一台13を静止状態から一定の速度Vとなる迄一定の加速度で加速する。その後、CPU31は第一台13を一定の速度Vで一定の距離X軸方向に移動させる。その後、CPU31は一定の減速度で減速して第一台13を停止する。加速時の推定積載物質量と減速時の推定積載物質量を、次の二つの式(2)、(3)で示す。式(2)では加速時の任意の速度V1の時の加速度をα、トルクをT1とする。式(3)では減速時の速度V1の時の加速度を-α、トルクをT2とする。kは総質量をモータ軸換算イナーシャに変換するパラメータである。総質量は積載物質量と積載物無し時の第一台13の質量との和である。
加速時の推定積載物質量=[(T1-粘性抵抗×V1+第一台13の摺動抵抗)/(α×k)]-積載物無し時の第一台13の質量 ・・・式(2)
減速時の推定積載物質量=-[(T2-粘性抵抗×V1+第一台13の摺動抵抗)/(α×k)]-積載物無し時の第一台13の質量 ・・・式(3)
式(2)、式(3)に基づく加速時の推定積載物質量と減速時の推定積載物質量の平均を、式(4)で示す。
加速時の推定積載物質量と減速時の推定積載物質量の平均=[(T1-T2)/(2×α×k)]-積載物無し時の第一台13の質量 ・・・式(4)
CPU31は式(4)を用いて機械の環境温度や経年変化によって生ずる変動分を相殺して積載物Wの質量Mを推定できる。
When calculating the mass M of the load W, the CPU 31 executes the following procedure. As an example, a case where the X-axis motor 53 is used will be described. The CPU 31 drives the X-axis motor 53 and accelerates the first platform 13 from a stationary state to a constant speed V at a constant acceleration. After that, the CPU 31 moves the first platform 13 in the X-axis direction at the constant speed V for a constant distance. After that, the CPU 31 decelerates at a constant deceleration to stop the first platform 13. The estimated load weight during acceleration and the estimated load weight during deceleration are shown in the following two equations (2) and (3). In equation (2), the acceleration at an arbitrary speed V1 during acceleration is α, and the torque is T1. In equation (3), the acceleration at a speed V1 during deceleration is -α, and the torque is T2. k is a parameter that converts the total mass into the motor shaft converted inertia. The total mass is the sum of the load weight and the mass of the first platform 13 without a load.
Estimated amount of loaded material during acceleration=[(T1-viscosity resistance x V1+sliding resistance of first platform 13)/(α x k)]-mass of first platform 13 without loaded material ...Equation (2)
Estimated amount of loaded material during deceleration=-[(T2-viscosity resistance x V1+sliding resistance of the first platform 13)/(α x k)]-mass of the first platform 13 without a loaded material ...Equation (3)
The average of the estimated load mass during acceleration and the estimated load mass during deceleration based on equations (2) and (3) is given by equation (4).
Average of the estimated weight of the loaded material during acceleration and the estimated weight of the loaded material during deceleration=[(T1-T2)/(2×α×k)]−mass of the first vehicle 13 without a load (Equation (4))
The CPU 31 can estimate the mass M of the load W by using equation (4) to offset fluctuations caused by the environmental temperature of the machine and aging.

積載物Wの質量Mを求める他の方法ではCPU31は工作機械1を早送り動作している間の加速度αとトルクTを式(5)に代入して負荷質量Qを推定する。早送り動作は被削材3に工具4を接近又は離隔する為、切削移動よりも速い速度で被削材3に対し主軸9を移動する動作である。
Q=T/α ・・・式(5)
CPU31は更に、式(6)に基づき積載物Wの質量Mを推定する。
積載物Wの質量M=負荷質量Q-送り機構の等価質量-第一台13の質量 ・・・式(6)
送り機構の等価質量はY軸移動機構18の構成要素のイナーシャの合計を質量に換算した値である。
In another method for calculating the mass M of the load W, the CPU 31 estimates the load mass Q by substituting the acceleration α and torque T during the fast-forward operation of the machine tool 1 into equation (5). The fast-forward operation is an operation in which the spindle 9 is moved relative to the workpiece 3 at a speed faster than the cutting movement in order to move the tool 4 closer to or farther away from the workpiece 3.
Q=T/α...Formula (5)
The CPU 31 further estimates the mass M of the load W based on the formula (6).
Mass M of the load W=load mass Q−equivalent mass of the feed mechanism−mass of the first platform 13 Equation (6)
The equivalent mass of the feed mechanism is a value obtained by converting the sum of the inertias of the components of the Y-axis movement mechanism 18 into mass.

CPU31は積載物Wの質量Mを取得時(S1:YES)、取得した質量Mを式(7)に代入して係数Cを更新し、更新した係数Cを記憶装置34に記憶する(S2)。CPU31は式(8)において、KとHは記憶装置34に記憶した定数を用いて係数Cを求める。
係数C=K×M×H ・・・式(7)
When the CPU 31 acquires the mass M of the load W (S1: YES), it assigns the acquired mass M to the formula (7) to update the coefficient C, and stores the updated coefficient C in the storage device 34 (S2). The CPU 31 obtains the coefficient C in the formula (8) using K and H as constants stored in the storage device 34.
Coefficient C=K×M×H (7)

積載物Wの質量Mを未取得時(S1:NO)、又はS2の次に、CPU31は終了指示を取得したか否かを判断する(S3)。作業者は入力部16を操作して終了指示を入力する。終了指示を未取得時(S3:NO)、CPU31は処理をS1に戻す。終了指示を取得時(S3:YES)、CPU31は質量取得処理を終了する。 When the mass M of the load W has not been acquired (S1: NO), or after S2, the CPU 31 determines whether an end command has been acquired (S3). The worker operates the input unit 16 to input an end command. When an end command has not been acquired (S3: NO), the CPU 31 returns the process to S1. When an end command has been acquired (S3: YES), the CPU 31 ends the mass acquisition process.

図6、図7を参照し、第一実施形態の主処理を説明する。CPU31はNCプログラム実行指示を取得時、ROM32に記憶した主プログラムを読出して行うことで、主処理を開始する。 The main processing of the first embodiment will be described with reference to Figures 6 and 7. When the CPU 31 receives an instruction to execute an NC program, it starts the main processing by reading and executing the main program stored in the ROM 32.

CPU31はNCプログラムを一ブロック読出し(S11)、読出したブロックが終了指令か否かを判断する(S12)。読出したブロックが終了指令ではない時(S12:NO)、CPU31は読出したブロックが軸動作指令か否かを判断する(S13)。軸動作は第一台13に対する主軸9の位置を相対的に移動する動作である。軸動作指令は位置決め指令又は切削指令である。位置決め指令は相対的に第一台13に対し主軸9を目標位置(目標値)に位置決めする指令である。切削指令は例えばタップ、ドリル等の工具4による穴空け、フライス、エンドミル等の工具4による側面加工を行う指令である。軸動作指令は第一位置指令、第二位置指令、第三位置指令の少なくとも何れかを含む。第一位置指令は第一台13のX軸方向の位置を指令する。第二位置指令は主軸ヘッド7の上下方向の位置を指令する。第三位置指令は第一台13のY軸方向の位置を指令する。 The CPU 31 reads one block of the NC program (S11) and judges whether the read block is an end command or not (S12). When the read block is not an end command (S12: NO), the CPU 31 judges whether the read block is an axis operation command or not (S13). The axis operation is an operation to move the position of the spindle 9 relative to the first table 13. The axis operation command is a positioning command or a cutting command. The positioning command is an command to position the spindle 9 at a target position (target value) relative to the first table 13. The cutting command is an command to perform, for example, drilling a hole with a tool 4 such as a tap or drill, or side processing with a tool 4 such as a milling cutter or end mill. The axis operation command includes at least one of a first position command, a second position command, and a third position command. The first position command commands the position of the first table 13 in the X-axis direction. The second position command commands the position of the spindle head 7 in the up-down direction. The third position command commands the position of the first table 13 in the Y-axis direction.

ブロックが「G0X200.Y250;」の時、CPU31は読出したブロックが軸動作指令と判断し(S13:YES)、記憶装置34を参照して係数Cを取得する(S14)。CPU31はブロックから第一台13のX軸方向の位置を指令する第一位置指令を取得する(S15)。ブロックが「G0X200.Y250;」の時、CPU31は第一位置指令「X200」を取得する。第一位置指令の「200」は基準Rからの距離に対応する。CPU31はS1で取得した質量Mに基づく係数Cと、第一位置指令の位置とを用い、第一台13に載せた積載物Wによる第二台12の撓みを補正する補正値を演算する(S16)。CPU31は第一位置指令のX座標の値xを式(1)に代入して推定誤差E(x)を求める。CPU31は式(8)を用い、補正した第一位置指令の位置x´を求める。
x´=x-E(x) ・・・式(8)
When the block is "G0X200.Y250;", the CPU 31 judges that the read block is an axis movement command (S13: YES) and acquires the coefficient C by referring to the storage device 34 (S14). The CPU 31 acquires the first position command that commands the position of the first platform 13 in the X-axis direction from the block (S15). When the block is "G0X200.Y250;", the CPU 31 acquires the first position command "X200". The "200" of the first position command corresponds to the distance from the reference R. The CPU 31 uses the coefficient C based on the mass M acquired in S1 and the position of the first position command to calculate a correction value that corrects the deflection of the second platform 12 due to the load W placed on the first platform 13 (S16). The CPU 31 substitutes the value x of the X-coordinate of the first position command into the formula (1) to obtain the estimated error E(x). The CPU 31 uses the formula (8) to obtain the position x' of the corrected first position command.
x'=x-E(x)...Formula (8)

CPU31はS11で読出したブロックに応じて軸動作を行う(S17)。CPU31は第一位置指令に応じたX軸方向の移動に関し、X軸モータ53を駆動してS16で補正した位置x´に第一台13をX軸方向移動する。位置決め指令「G0X200.Y250;」は第三位置指令「Y250」を含むので、CPU31はY軸方向の移動に関し、第三位置指令に応じてY軸モータ54を駆動して第一台13をY軸方向に移動する。CPU31は処理をS11に戻す。 The CPU 31 performs axial movement according to the block read out in S11 (S17). For movement in the X-axis direction according to the first position command, the CPU 31 drives the X-axis motor 53 to move the first table 13 in the X-axis direction to the position x' corrected in S16. Since the positioning command "G0X200.Y250;" includes the third position command "Y250", for movement in the Y-axis direction, the CPU 31 drives the Y-axis motor 54 in accordance with the third position command to move the first table 13 in the Y-axis direction. The CPU 31 returns the process to S11.

読出したブロックが軸動作指令でない時(S13:NO)、CPU31はブロックが示す制御指令に応じたその他の処理を実行する(S20)。軸動作指令でない制御指令はクーラント吐出指令等である。CPU31は処理をS11に戻す。読出したブロックが終了指令時(S12:YES)、CPU31は以上で主処理を終了する。 When the read block is not an axis operation command (S13: NO), the CPU 31 executes other processing according to the control command indicated by the block (S20). A control command that is not an axis operation command is a coolant discharge command, etc. The CPU 31 returns the processing to S11. When the read block is an end command (S12: YES), the CPU 31 ends the main processing.

図7は第一実施形態の評価結果を示す。積載物Wの質量Mが200kgである条件1での誤差測定値を白い四角で示し、積載物Wの質量Mが300kgである条件2での誤差測定値を白丸で示し、積載物Wの質量Mが400kgである条件3での誤差測定値を黒丸で示す。図7(A)の実線で示す直線81が条件1での推定誤差E(x)、点線で示す直線82が条件2での推定誤差E(x)、太線で示す直線83が条件3での推定誤差E(x)である。第一実施形態の評価では、CPU31はHに誤差測定時の工具4の先端の所定位置からの高さH1を設定し、所定位置、定数Kに誤差測定値に最小二乗法を適用して求めた値を設定した。図7(A)の如く、主処理に依り第一位置指令の位置を補正しない時、基準Rからの距離の絶対値が大きくなる程、第一台13のX軸方向の位置の誤差の絶対値が大きい。以降、X軸方向の位置の誤差を単に誤差とする。条件2は条件1よりも第一台13の誤差の絶対値が大きい。図7(B)の如く、積載物Wの質量Mに基づく係数Cと、第一位置指令の位置とを用い、第一位置指令の位置を補正した時、補正前に比べ、第一台13の誤差の絶対値が小さい。第一台13の誤差の絶対値は基準Rからの距離によらず15μm以下に収まる。故に第一実施形態の制御装置30は第一台13に載せる積載物Wによる基台2の撓みに応じた量を考慮して、第一台13の第一方向の位置決め誤差を低減できる。 Figure 7 shows the evaluation results of the first embodiment. The error measurement value under condition 1, where the mass M of the load W is 200 kg, is shown by a white square, the error measurement value under condition 2, where the mass M of the load W is 300 kg, is shown by a white circle, and the error measurement value under condition 3, where the mass M of the load W is 400 kg, is shown by a black circle. The solid line 81 in Figure 7 (A) is the estimated error E(x) under condition 1, the dotted line 82 is the estimated error E(x) under condition 2, and the thick line 83 is the estimated error E(x) under condition 3. In the evaluation of the first embodiment, the CPU 31 sets the height H1 from a predetermined position of the tip of the tool 4 at the time of error measurement to H, and sets the predetermined position and constant K to a value obtained by applying the least squares method to the error measurement value. As shown in Figure 7 (A), when the position of the first position command is not corrected by the main processing, the larger the absolute value of the distance from the reference R, the larger the absolute value of the error in the X-axis direction position of the first platform 13. Hereinafter, the position error in the X-axis direction will simply be referred to as the error. Condition 2 has a larger absolute value of the error of the first platform 13 than condition 1. As shown in FIG. 7B, when the position of the first position command is corrected using the coefficient C based on the mass M of the load W and the position of the first position command, the absolute value of the error of the first platform 13 is smaller than before correction. The absolute value of the error of the first platform 13 is within 15 μm regardless of the distance from the reference R. Therefore, the control device 30 of the first embodiment can reduce the positioning error in the first direction of the first platform 13 by taking into account the amount corresponding to the deflection of the base 2 due to the load W placed on the first platform 13.

図8~図10を参照し、第二実施形態の主処理を説明する。CPU31はNCプログラム実行指示を取得時、ROM32に記憶したプログラムを読出して実行することで、主処理を開始する。図8において、図6に示す第一実施形態の主処理と同様の処理には同じ符号を付与している。図8の主処理はS14~S17の処理に替えてS21の処理を行い、S20の処理に替えて、S22~S24の処理を行う点が異なる。図6と同様の処理は説明を省略する。 The main processing of the second embodiment will be described with reference to Figures 8 to 10. When the CPU 31 receives an instruction to execute an NC program, it starts the main processing by reading and executing a program stored in the ROM 32. In Figure 8, the same processes as those in the main processing of the first embodiment shown in Figure 6 are given the same reference numerals. The main processing in Figure 8 differs in that instead of steps S14 to S17, processing S21 is performed, and instead of step S20, processing S22 to S24 is performed. A description of the processes similar to those in Figure 6 will be omitted.

S21ではCPU31は図9の軸動作処理を行う。図9の如く、CPU31はS11で読出したブロックが位置決め指令か否かを判断する(S31)。S11で読出したブロックが位置決め指令時(S31:YES)、CPU31はS11で読出したブロックから第二位置指令を取得する(S32)。CPU31は主軸9が装着した工具4に応じた工具長補正量と第二位置指令に依り所定位置から工具4の先端迄の高さH1を取得する(S33)。工具長補正量はCPU31が後述のS22で取得後、記憶装置34に記憶してある。CPU31は第二位置指令が示す主軸9の所定位置からの高さから工具長補正量を差引いて、所定位置から工具4の先端迄の高さH1を求める。高さH1は所定位置からの積載物Wの高さH2に応じた値であり、高さH2よりも所定量高い。CPU31はS33で取得した高さH1を式(7)の高さHに代入し、係数Cを更新する(S34)。CPU31は式(7)において、KとMは記憶装置34に記憶した値を用いて係数Cを更新する。S34の処理に依り、係数CはS33で取得した高さH1に基づく値となる。工具長補正量の指定がない時、CPU31は工具長補正量を0として係数Cを求める。 In S21, the CPU 31 performs the axis operation process shown in FIG. 9. As shown in FIG. 9, the CPU 31 judges whether the block read in S11 is a positioning command (S31). When the block read in S11 is a positioning command (S31: YES), the CPU 31 acquires the second position command from the block read in S11 (S32). The CPU 31 acquires the height H1 from the specified position to the tip of the tool 4 based on the tool length correction amount corresponding to the tool 4 attached to the spindle 9 and the second position command (S33). The tool length correction amount is stored in the storage device 34 after being acquired by the CPU 31 in S22 described later. The CPU 31 subtracts the tool length correction amount from the height of the spindle 9 from the specified position indicated by the second position command to obtain the height H1 from the specified position to the tip of the tool 4. The height H1 is a value corresponding to the height H2 of the load W from the specified position, and is higher by a predetermined amount than the height H2. The CPU 31 substitutes the height H1 obtained in S33 for the height H in formula (7) and updates the coefficient C (S34). In formula (7), the CPU 31 updates the coefficient C using the values stored in the storage device 34 for K and M. Through the processing of S34, the coefficient C becomes a value based on the height H1 obtained in S33. When the tool length compensation amount is not specified, the CPU 31 determines the coefficient C by setting the tool length compensation amount to 0.

CPU31はS11で読出したブロックから第一位置指令を取得する(S35)。CPU31はS1で取得した質量Mと高さHに応じた係数CとS31の第二位置指令に対応する第一位置指令の位置とを用いS16と同様に第一位置指令が示す第一台13のX軸方向の位置を補正する(S36)。CPU31はS11で読出したブロックに応じて位置決め動作を行う(S37)。S17と同様に、CPU31は第一位置指令に応じたX軸方向の移動に関し、X軸モータ53を駆動してS36で補正した位置x´に第一台13を移動する。Y軸方向の移動に関しY軸モータ54を駆動し、Z軸方向の移動に関し、Z軸モータ51を駆動して第一台13と工具4を相対移動する。CPU31はS34で更新した係数Cを記憶装置34に記憶する(S42)。 The CPU 31 obtains the first position command from the block read in S11 (S35). The CPU 31 uses the coefficient C according to the mass M and height H obtained in S1 and the position of the first position command corresponding to the second position command of S31 to correct the X-axis direction position of the first table 13 indicated by the first position command in the same manner as in S16 (S36). The CPU 31 performs a positioning operation in accordance with the block read in S11 (S37). As in S17, the CPU 31 drives the X-axis motor 53 for the movement in the X-axis direction according to the first position command to move the first table 13 to the position x' corrected in S36. The CPU 31 drives the Y-axis motor 54 for the movement in the Y-axis direction, and drives the Z-axis motor 51 for the movement in the Z-axis direction to move the first table 13 and the tool 4 relatively. The CPU 31 stores the coefficient C updated in S34 in the storage device 34 (S42).

S11で読出したブロックが切削指令時(S31:NO)、CPU31は記憶装置34から係数Cを取得する(S38)。CPU31はS11で読出したブロックに第一位置指令がある時第一位置指令を取得する(S39)。CPU31はS38で記憶装置34から取得した係数CとS39で取得した第一位置指令の位置とを用い、S16と同様に第一位置指令の位置を補正する(S40)。CPU31はS11で読出したブロックに応じて切削動作を行う(S41)。S17と同様に、CPU31はX軸方向の移動に関し、X軸モータ53を駆動してS40で補正した位置x´に第一台13を移動する。CPU31はY軸方向の移動に関しY軸モータ54を駆動し、Z軸方向の移動に関しZ軸モータ51を駆動して第一台13と工具4を相対移動する。S41又はS42の次に、CPU31は処理を図8の主処理に戻す。CPU31はS21の後処理をS11に戻す。 When the block read in S11 is a cutting command (S31: NO), the CPU 31 acquires the coefficient C from the storage device 34 (S38). When the block read in S11 has a first position command, the CPU 31 acquires the first position command (S39). The CPU 31 uses the coefficient C acquired from the storage device 34 in S38 and the position of the first position command acquired in S39 to correct the position of the first position command in the same manner as in S16 (S40). The CPU 31 performs a cutting operation according to the block read in S11 (S41). As in S17, the CPU 31 drives the X-axis motor 53 for movement in the X-axis direction to move the first table 13 to the position x' corrected in S40. The CPU 31 drives the Y-axis motor 54 for movement in the Y-axis direction and drives the Z-axis motor 51 for movement in the Z-axis direction to move the first table 13 and the tool 4 relatively. After S41 or S42, the CPU 31 returns the process to the main process of FIG. 8. After S21, the CPU 31 returns to S11.

読出したブロックが軸動作指令ではない時(S13:NO)、CPU31は読出したブロックが工具長補正量を指定する指令であるか否かを判断する(S22)。読出したブロックが「G43 H01;」の時、CPU31は工具長補正量を指定する指令であると判断し(S22:YES)、ブロック「G43 H01;」が指定する工具長補正番号「01」に応じた工具長補正量を記憶装置34に記憶する(S23)。読出したブロックが工具長補正量を指定する指令でない時(S22:NO)、CPU31はS20と同様にブロックが示す制御指令に応じたその他の処理を実行する(S24)。S23又はS24の次に、CPU31は処理をS11に戻す。 When the read block is not an axis operation command (S13: NO), the CPU 31 judges whether the read block is a command specifying a tool length compensation amount (S22). When the read block is "G43 H01;", the CPU 31 judges that it is a command specifying a tool length compensation amount (S22: YES), and stores the tool length compensation amount corresponding to the tool length compensation number "01" specified by the block "G43 H01;" in the memory device 34 (S23). When the read block is not a command specifying a tool length compensation amount (S22: NO), the CPU 31 executes other processing corresponding to the control command indicated by the block, similar to S20 (S24). After S23 or S24, the CPU 31 returns the processing to S11.

図10は第二実施形態の評価結果を示す。高さH1が200mmである条件4での誤差測定値は白い四角で示し、高さH1が300mmである条件5での誤差測定値は白丸で示す。高さH1が400mmである条件6での誤差測定値は黒丸で示す。積載物Wの質量Mは全て300kgである。図10(A)の実線で示す直線84が条件4での推定誤差E(x)、点線で示す直線85が条件5での推定誤差E(x)、太線で示す直線86が条件6での推定誤差E(x)である。図10(A)の如く、主処理に依り第一位置指令の位置を補正しない時、基準Rからの距離の絶対値が大きくなる程、第一台13のX軸方向の位置の誤差の絶対値が大きくなる。図10(B)の如く、第二実施形態の主処理に依り、積載物Wの質量Mに基づく係数Cと、第一位置指令の位置とを用い、第一位置指令の位置を補正した時、補正前に比べ、第一台13のX軸方向の位置の誤差の絶対値が小さい。第二実施形態の主処理に依り、第一台13のX軸方向の位置の誤差の絶対値は基準Rからの距離及び高さH1によらず15μm以下に収まる。 Figure 10 shows the evaluation results of the second embodiment. The error measurement values under condition 4, where height H1 is 200 mm, are shown as white squares, and the error measurement values under condition 5, where height H1 is 300 mm, are shown as white circles. The error measurement values under condition 6, where height H1 is 400 mm, are shown as black circles. The masses M of the loads W are all 300 kg. The solid line 84 in Figure 10 (A) is the estimated error E(x) under condition 4, the dotted line 85 is the estimated error E(x) under condition 5, and the thick line 86 is the estimated error E(x) under condition 6. As shown in Figure 10 (A), when the position of the first position command is not corrected by the main processing, the larger the absolute value of the distance from the reference R, the larger the absolute value of the error in the position of the first platform 13 in the X-axis direction. As shown in FIG. 10B, when the position of the first position command is corrected using the coefficient C based on the mass M of the load W and the position of the first position command according to the main processing of the second embodiment, the absolute value of the position error in the X-axis direction of the first platform 13 is smaller than before correction. According to the main processing of the second embodiment, the absolute value of the position error in the X-axis direction of the first platform 13 is within 15 μm regardless of the distance from the reference R and the height H1.

図11の如く、積載物Wの重心が第一台13の第一方向の中心から離れた位置にある時、積載物Wと第一台13の重心を用いて第一位置指令の位置を補正してよい。変形例の制御装置30は式(2)に替えて式(9)で算出した推定誤差E(x)を用い、第二実施形態の主処理のS36、S40を行ってもよい。
E(x)=C×(x-xc)
=K×M×H×(x-xc) ・・・式(9)
xcは式(10)で表す。
xc=M×xw/(Mt+M) ・・・式(10)
Mtは無積載時の第一台13の質量であり、xwは積載物Wの重心と第一台13の第一方向中心の間の距離である。xwの取得方法は適宜設定してよい。CPU31は作業者が入力部16を操作してxwを入力時、入力値をxwとして取得してもよい。制御装置30は第一台13に載せた積載物Wを撮影した画像に基づき、xwを推定してもよい。変形例の制御装置30は第一台13上の積載物Wの重心の偏りを考慮して第一位置指令の位置を補正できる。
11 , when the center of gravity of the load W is located away from the center of the first platform 13 in the first direction, the position of the first position command may be corrected using the centers of gravity of the load W and the first platform 13. The control device 30 of the modified example may use the estimated error E(x) calculated by equation (9) instead of equation (2) and perform S36 and S40 of the main processing of the second embodiment.
E(x)=C×(x-xc)
=K×M×H×(x-xc)...Formula (9)
xc is expressed by equation (10).
xc=M×xw/(Mt+M)...Formula (10)
Mt is the mass of the first platform 13 when unloaded, and xw is the distance between the center of gravity of the load W and the center of the first direction of the first platform 13. The method of acquiring xw may be set appropriately. When the worker operates the input unit 16 to input xw, the CPU 31 may acquire the input value as xw. The control device 30 may estimate xw based on an image captured of the load W placed on the first platform 13. The control device 30 of the modified example can correct the position of the first position command by taking into account the deviation of the center of gravity of the load W on the first platform 13.

図12は変形例の評価結果を示す。図12(A)では、積載物Wの質量Mが200kg、且つ積載物Wの重心が第一台13の第一方向の中心から250mm右方に離れた位置にある条件7での誤差測定値は黒丸で示す。図12(A)では、式(2)を用いた推定誤差E(x)は点線で示す直線87であり、式(9)を用いた推定誤差E(x)は実線で示す直線87である。条件7の誤差測定値は基準Rから-150mmの時、0となる。条件7の誤差測定値は基準Rからの距離に対する誤差の変化の割合が、基準Rから-150mmよりも大きい条件よりも、基準Rから-150mmよりも小さい条件の方が大きかった。図12(B)では、式(2)を用いた推定誤差E(x)で第一位置指令の位置を補正した時の誤差測定値を白丸で示し、式(9)を用いた推定誤差E(x)で第一位置指令の位置を補正した時の誤差測定値を黒丸で示す。図12(B)の如く、基準Rからの距離が-150mm~100mmの範囲では、式(2)を用いた推定誤差E(x)で第一位置指令の位置を補正した時よりも、式(2)を用いた推定誤差E(x)で第一位置指令の位置を補正した時の方が誤差は小さかった。 Figure 12 shows the evaluation results of the modified example. In Figure 12 (A), the error measurement value under condition 7, where the mass M of the load W is 200 kg and the center of gravity of the load W is located 250 mm to the right of the center in the first direction of the first platform 13, is shown by a black circle. In Figure 12 (A), the estimated error E(x) using equation (2) is the straight line 87 shown by the dotted line, and the estimated error E(x) using equation (9) is the straight line 87 shown by the solid line. The error measurement value under condition 7 is 0 when the distance from the reference R is -150 mm. For the error measurement value under condition 7, the rate of change in error with respect to the distance from the reference R was greater under the condition where the distance was less than -150 mm from the reference R than under the condition where the distance was greater than -150 mm from the reference R. In Figure 12 (B), the error measurement value when the position of the first position command is corrected with the estimated error E(x) using equation (2) is shown by a white circle, and the error measurement value when the position of the first position command is corrected with the estimated error E(x) using equation (9) is shown by a black circle. As shown in Figure 12 (B), in the range of distances from the reference R from -150 mm to 100 mm, the error was smaller when the position of the first position command was corrected with the estimated error E(x) using equation (2) than when the position of the first position command was corrected with the estimated error E(x) using equation (2).

上記第一、第二実施形態、変形例の制御装置30において、第一台13、第二台12、X軸モータ53、基台2、Y軸モータ54、工作機械1、制御装置30は夫々本発明の第一台、第二台、第一駆動部、台支持部、第二駆動部、工作機械、制御装置の一例である。S1を行うCPU31は本発明の質量取得部、質量取得処理、質量取得工程の一例である。S15、S35、S39を行うCPU31は本発明の第一指令取得部、指令取得処理、指令取得工程の一例である。S16、S36、S40を行うCPU31は本発明の補正部、補正処理、補正工程の一例である。工具4、主軸9、主軸ヘッド7、コラム5、Z軸モータ51、記憶装置34は夫々本発明の工具、主軸、主軸ヘッド、ヘッド支持部、第三駆動部、記憶装置の一例である。S32を行うCPU31は本発明の第二指令取得部の一例である。S33を行うCPU31は本発明の高さ取得部の一例である。S31を行うCPU31は本発明の種別判断部の一例である。S42を行うCPU31は本発明の記憶制御部の一例である。X軸方向、Y軸方向は夫々本発明の第一方向、第二方向の一例である。 In the control device 30 of the first and second embodiments and modified examples, the first table 13, the second table 12, the X-axis motor 53, the base 2, the Y-axis motor 54, the machine tool 1, and the control device 30 are examples of the first table, the second table, the first drive unit, the table support unit, the second drive unit, the machine tool, and the control device of the present invention, respectively. The CPU 31 that performs S1 is an example of the mass acquisition unit, the mass acquisition process, and the mass acquisition step of the present invention. The CPU 31 that performs S15, S35, and S39 is an example of the first command acquisition unit, the command acquisition process, and the command acquisition step of the present invention. The CPU 31 that performs S16, S36, and S40 is an example of the correction unit, the correction process, and the correction step of the present invention. The tool 4, the spindle 9, the spindle head 7, the column 5, the Z-axis motor 51, and the storage device 34 are examples of the tool, the spindle, the spindle head, the head support unit, the third drive unit, and the storage device of the present invention, respectively. The CPU 31 that performs S32 is an example of the second command acquisition unit of the present invention. The CPU 31 that performs S33 is an example of the height acquisition unit of the present invention. The CPU 31 that performs S31 is an example of a type determination unit of the present invention. The CPU 31 that performs S42 is an example of a memory control unit of the present invention. The X-axis direction and the Y-axis direction are examples of a first direction and a second direction of the present invention, respectively.

制御装置30は第一台13、第二台12、X軸モータ53、基台2、Y軸モータ54を備える工作機械1を制御する。第一台13は積載物Wを載せる。第二台12は第一台13を水平方向と平行な第一方向に移動可能に支持する。X軸モータ53は第一台13を第一方向に移動する。基台2は第二台12を第一方向と交差する第二方向に移動可能に支持する。Y軸モータ54は第二台12を第二方向に移動する。CPU31は第一台13に載せた積載物Wの質量Mを取得する(S1)。CPU31は第一台13の第一方向の位置を指令する第一位置指令を取得する(S15;S35、S39)。CPU31は取得した質量Mに基づく係数Cと、第一位置指令の位置とを用い、第一台13に載せた積載物Wによる基台2の撓みに応じた量、第一位置指令の位置を補正する(S16;S36、S40)。制御装置30は積載物Wの質量Mに基づく係数Cと、第一位置指令の位置とを用い、第一位置指令の位置を補正するので、第一台13に載せる積載物Wによる基台2の撓みに応じた量を考慮して、第一台13の第一方向の位置決め誤差を従来よりも低減できる。 The control device 30 controls the machine tool 1, which includes a first table 13, a second table 12, an X-axis motor 53, a base 2, and a Y-axis motor 54. The first table 13 carries a load W. The second table 12 supports the first table 13 so that it can move in a first direction parallel to the horizontal direction. The X-axis motor 53 moves the first table 13 in the first direction. The base 2 supports the second table 12 so that it can move in a second direction intersecting the first direction. The Y-axis motor 54 moves the second table 12 in the second direction. The CPU 31 acquires the mass M of the load W placed on the first table 13 (S1). The CPU 31 acquires a first position command that commands the position of the first table 13 in the first direction (S15; S35, S39). The CPU 31 uses the coefficient C based on the acquired mass M and the position of the first position command to correct the position of the first position command by an amount corresponding to the deflection of the base 2 due to the load W placed on the first platform 13 (S16; S36, S40). The control device 30 corrects the position of the first position command using the coefficient C based on the mass M of the load W and the position of the first position command, so that the positioning error in the first direction of the first platform 13 can be reduced more than before by taking into account the amount corresponding to the deflection of the base 2 due to the load W placed on the first platform 13.

制御装置30の第一位置指令の位置は第一台13に載せた積載物Wによる基台2の撓みに応じた量が最小になる位置である基準Rからの距離で表す。制御装置30の第一位置指令の位置は基台2の撓みに応じた量が最小ではない位置を基準とする時の第一位置指令の位置よりも、第一台13に載せる積載物Wによる基台2の撓みに応じた値を表しやすい。故に制御装置30は基台2の撓みに応じた量が最小ではない位置を基準とする時よりも、基台2の撓みに応じた量の計算を簡単にできる。 The position of the first position command of the control device 30 is represented by the distance from the reference R, which is the position where the amount corresponding to the deflection of the base 2 due to the load W placed on the first platform 13 is the smallest. The position of the first position command of the control device 30 is more likely to represent a value corresponding to the deflection of the base 2 due to the load W placed on the first platform 13 than the position of the first position command when the reference is a position where the amount corresponding to the deflection of the base 2 is not the smallest. Therefore, the control device 30 can more easily calculate the amount corresponding to the deflection of the base 2 than when the reference is a position where the amount corresponding to the deflection of the base 2 is not the smallest.

制御装置30の第一台13に載せた積載物Wによる基台2の撓みに応じた量は係数Cと、距離の積である。制御装置30は基台2の撓みに応じた量の計算を簡単にできる。 The amount of deflection of the base 2 caused by the load W placed on the first platform 13 of the control device 30 is the product of the coefficient C and the distance. The control device 30 can easily calculate the amount of deflection of the base 2.

制御装置30の係数Cは工作機械1に固有の定数に基づく値である。制御装置30は補正に用いる係数Cを工作機械1に固有の定数に基づく値とすることで、工作機械1の全個体を測定することなく第一位置指令の位置を補正できる。 The coefficient C of the control device 30 is a value based on a constant specific to the machine tool 1. By setting the coefficient C used for correction to a value based on a constant specific to the machine tool 1, the control device 30 can correct the position of the first position command without measuring all individual machine tools 1.

制御装置30の基準Rは第一台13の移動可能範囲の中心である。制御装置30は基準Rが第一台13の移動可能範囲の端部にある時よりも、基台2の撓みに応じた量の最大値を小さくできる。 The reference R of the control device 30 is the center of the movable range of the first table 13. The control device 30 can make the maximum value of the amount corresponding to the deflection of the base 2 smaller than when the reference R is at the end of the movable range of the first table 13.

制御装置30の係数Cは基台2の下端と第一台13の上面11の間の所定位置からの積載物Wの高さH2に応じた値に基づく。制御装置30は所定位置からの積載物Wの高さH2を考慮して第一位置指令の位置を補正できる。 The coefficient C of the control device 30 is based on a value corresponding to the height H2 of the load W from a predetermined position between the lower end of the base 2 and the upper surface 11 of the first table 13. The control device 30 can correct the position of the first position command taking into account the height H2 of the load W from the predetermined position.

制御装置30の所定位置は第一台13に載せた積載物Wによる基台2の撓みによる第一台13の第一方向の位置の誤差が最小になる位置である。制御装置30は所定位置からの積載物Wの高さH1に応じた、第一台13に載せた積載物Wによる基台2の撓みに応じた誤差が最小になるように第一位置指令の位置を補正できる。 The predetermined position of the control device 30 is a position where the error in the position of the first platform 13 in the first direction caused by the deflection of the base 2 due to the load W placed on the first platform 13 is minimized. The control device 30 can correct the position of the first position command so that the error caused by the deflection of the base 2 due to the load W placed on the first platform 13, which is in accordance with the height H1 of the load W from the predetermined position, is minimized.

制御装置30の工作機械1は工具4を装着する主軸9と、主軸9を支持し、上下動可能な主軸ヘッド7と、主軸ヘッド7を上下方向に移動可能に支持するコラム5と、主軸ヘッド7を上下方向に移動するZ軸モータ51とを備える。CPU31は主軸ヘッド7の上下方向の位置を指令する第二位置指令を取得する(S35)。CPU31は主軸9が装着した工具4に応じた工具長補正量と第二位置指令に依り工具4の先端の所定位置からの高さH1を取得する(S33)。CPU31は積載物Wの高さH2に応じた値は取得した工具4の先端の所定位置からの高さH1である。制御装置30は補正に用いる係数Cを工具4の先端の所定位置からの高さH1に基づく値とすることで、第二位置指令が示す主軸ヘッド7の上下位置を考慮して第一位置指令の位置を補正できる。 The machine tool 1 of the control device 30 includes a spindle 9 on which the tool 4 is attached, a spindle head 7 that supports the spindle 9 and can move up and down, a column 5 that supports the spindle head 7 so that it can move in the vertical direction, and a Z-axis motor 51 that moves the spindle head 7 in the vertical direction. The CPU 31 acquires a second position command that commands the vertical position of the spindle head 7 (S35). The CPU 31 acquires the height H1 of the tip of the tool 4 from a predetermined position based on the tool length correction amount corresponding to the tool 4 attached to the spindle 9 and the second position command (S33). The value corresponding to the height H2 of the load W is the acquired height H1 of the tip of the tool 4 from a predetermined position. The control device 30 can correct the position of the first position command by taking into account the vertical position of the spindle head 7 indicated by the second position command by setting the coefficient C used for correction to a value based on the height H1 of the tip of the tool 4 from the predetermined position.

制御装置30のCPU31は第二位置指令が位置決め指令か切削指令かを判断する(S31)。CPU31は第二位置指令が位置決め指令であると判断したことに応じ(S31:YES)、工具4の先端の所定位置からの高さH1を取得する(S33)。CPU31は取得した工具4の先端の所定位置からの高さを用い係数Cを更新し(S34)、更新した係数Cと第二位置指令に対応する第一位置指令の位置とを用い、第一位置指令の位置を補正する(S36)。制御装置30は第二位置指令が位置決め指令である時の第二位置指令が示す主軸ヘッド7の上下位置を考慮して第二位置指令に対応する第一位置指令の位置を補正できる。故に制御装置30は第一台13に載せる積載物Wの所定位置からの高さH2が比較的大きい時でも、第一位置指令の位置を適切に補正できる。 The CPU 31 of the control device 30 judges whether the second position command is a positioning command or a cutting command (S31). In response to judging that the second position command is a positioning command (S31: YES), the CPU 31 acquires the height H1 of the tip of the tool 4 from a predetermined position (S33). The CPU 31 updates the coefficient C using the acquired height of the tip of the tool 4 from a predetermined position (S34), and corrects the position of the first position command using the updated coefficient C and the position of the first position command corresponding to the second position command (S36). The control device 30 can correct the position of the first position command corresponding to the second position command by taking into account the vertical position of the spindle head 7 indicated by the second position command when the second position command is a positioning command. Therefore, the control device 30 can appropriately correct the position of the first position command even when the height H2 of the load W placed on the first table 13 from the predetermined position is relatively large.

制御装置30は記憶装置34を備え、S34で更新した係数Cを記憶装置34に記憶する(S42)。CPU31は第二位置指令が切削指令であると判断したことに応じ(S31:NO)、記憶装置34に記憶した係数Cと第一位置指令の位置とを用い、第一位置指令の位置を補正する。制御装置30は削加工時に切削部分の大きさを第一位置指令が示す大きさよりも大きくする等の悪影響を抑制するように第一位置指令の位置を補正できる。 The control device 30 includes a storage device 34, and stores the coefficient C updated in S34 in the storage device 34 (S42). In response to determining that the second position command is a cutting command (S31: NO), the CPU 31 corrects the position of the first position command using the coefficient C stored in the storage device 34 and the position of the first position command. The control device 30 can correct the position of the first position command so as to suppress adverse effects during cutting, such as making the size of the cutting portion larger than the size indicated by the first position command.

制御装置30のCPU31は係数Cと、積載物Wと第一台13の重心を用いて補正した第一位置指令の位置とを用い、第一台13に載せた積載物Wによる基台2の撓みに応じた量、第一位置指令の位置を補正する(S36、S40)。制御装置30は積載物Wの第一台13の第一方向の配置を考慮して、第一台13に載せる積載物Wによる基台2の撓みに応じた量、第一位置指令の位置を適切に補正できる。 The CPU 31 of the control device 30 uses the coefficient C and the position of the first position command corrected using the center of gravity of the load W and the first platform 13 to correct the position of the first position command by an amount corresponding to the deflection of the base 2 due to the load W placed on the first platform 13 (S36, S40). The control device 30 can appropriately correct the position of the first position command by an amount corresponding to the deflection of the base 2 due to the load W placed on the first platform 13, taking into account the position of the load W in the first direction of the first platform 13.

本発明の制御装置、制御方法、制御プログラム、及び記憶媒体は上記実施形態の他に種々変更できる。制御装置30は工作機械1とは別の装置でもよい。工具4、主軸9、主軸ヘッド7、コラム5、Z軸モータ51、記憶装置34は適宜省略してよいし、構成を変更してよい。工作機械1は一種類の工具4のみを装着可能でもよく、工具4の先端高さH1は工具4の種類に依らず同じでもよい。第一方向、第二方向は適宜変更してよく、前後方向(Y軸方向)、左右方向(X軸方向)を第一方向、第二方向としてもよい。第一方向、第二方向は水平方向に平行で交差する方向であればよく、直交しなくてもよい。 The control device, control method, control program, and storage medium of the present invention can be modified in various ways in addition to the above-mentioned embodiments. The control device 30 may be a device separate from the machine tool 1. The tool 4, spindle 9, spindle head 7, column 5, Z-axis motor 51, and storage device 34 may be omitted or modified as appropriate. The machine tool 1 may be capable of mounting only one type of tool 4, and the tip height H1 of the tool 4 may be the same regardless of the type of tool 4. The first and second directions may be modified as appropriate, and the front-back direction (Y-axis direction) and the left-right direction (X-axis direction) may be the first and second directions. The first and second directions may be parallel to the horizontal direction and intersect with each other, and do not have to be perpendicular to each other.

制御装置30が制御処理を行う為のプログラムはCPU31が該プログラムを行う迄に、制御装置30の記憶装置34に記憶されればよい。従って、プログラムの取得方法、取得経路及びプログラムを記憶する機器の夫々は適宜変更してもよい。CPU31が行うプログラムはケーブル又は無線通信を介して、他の装置から受信し、フラッシュメモリ等の記憶装置に記憶してもよい。他の装置は例えば、PC、及びネットワーク網を介して接続されるサーバを含む。 The program for the control device 30 to perform control processing may be stored in the storage device 34 of the control device 30 before the CPU 31 executes the program. Therefore, the program acquisition method, acquisition path, and device that stores the program may each be changed as appropriate. The program executed by the CPU 31 may be received from another device via a cable or wireless communication and stored in a storage device such as a flash memory. The other device may include, for example, a PC and a server connected via a network.

制御装置30が行う処理の一部又は全部はCPU31とは別の電子機器(例えば、ASIC)が行ってもよい。制御装置30が行う処理は複数の電子機器(例えば、複数のCPU)が分散処理してもよい。制御装置30が行う処理の各ステップは必要に応じて順序の変更、ステップの省略、及び追加ができる。本発明の範囲は制御装置30上で稼動しているオペレーティングシステム(OS)等が、CPU31の指令で各処理の一部又は全部を行う態様も含む。例えば、上記実施形態に以下の変更を適宜加えてもよい。 A part or all of the processing performed by the control device 30 may be performed by an electronic device (e.g., an ASIC) other than the CPU 31. The processing performed by the control device 30 may be distributed among multiple electronic devices (e.g., multiple CPUs). The order of each step of the processing performed by the control device 30 may be changed, steps may be omitted, or steps may be added as necessary. The scope of the present invention also includes an embodiment in which an operating system (OS) running on the control device 30 performs a part or all of each process at the command of the CPU 31. For example, the following modifications may be made to the above embodiment as appropriate.

基準Rの位置は適宜変更してよい。基台2の撓みに応じた量の計算式は適宜変更してよい。係数Cの設定方法は適宜変更してよく、係数Cは工作機械1に固有の定数に応じた値でなくてもよい。所定位置は第一台13の上面11の位置であってもよく、所定位置からの積載物Wの高さに応じた値は工具4の先端の第一台13の上面11からの高さ、又は第一台13の上面11からの積載物Wの高さであってもよい。軸動作指令は早送り指令等の他の制御指令を含んでもよい。この時CPU31はS31とは別途、軸動作指令が切削指令であるか否かを判断してもよい。CPU31は軸動作指令が切削指令である時に、工具4の先端の所定位置からの高さH2を取得して、高さH2に応じて更新した係数Cを用いて第一位置指令の位置を補正してもよい。積載物Wの重心が第一台13の第一方向の中心から離れた位置にある時、制御装置30は第一位置指令の位置が所定範囲にある条件で、係数Cと、積載物Wと第一台13の重心を用いて補正した第一位置指令の位置とを用い、第一台13に載せた積載物Wによる基台2の撓みに応じた量、第一位置指令の位置を補正してよい。上記変形例は矛盾のない範囲で組合わせてもよい。 The position of the reference R may be changed as appropriate. The calculation formula for the amount corresponding to the deflection of the base 2 may be changed as appropriate. The method of setting the coefficient C may be changed as appropriate, and the coefficient C may not be a value corresponding to a constant specific to the machine tool 1. The predetermined position may be the position of the upper surface 11 of the first table 13, and the value corresponding to the height of the load W from the predetermined position may be the height of the tip of the tool 4 from the upper surface 11 of the first table 13, or the height of the load W from the upper surface 11 of the first table 13. The axis operation command may include other control commands such as a fast-forward command. At this time, the CPU 31 may determine whether the axis operation command is a cutting command separately from S31. When the axis operation command is a cutting command, the CPU 31 may obtain the height H2 of the tip of the tool 4 from the predetermined position, and correct the position of the first position command using the coefficient C updated according to the height H2. When the center of gravity of the load W is located away from the center of the first platform 13 in the first direction, the control device 30 may use the coefficient C and the position of the first position command corrected using the center of gravity of the load W and the first platform 13, and correct the position of the first position command by an amount corresponding to the deflection of the base 2 due to the load W placed on the first platform 13, provided that the position of the first position command is within a predetermined range. The above modified examples may be combined within a range that does not cause inconsistencies.

1 :工作機械
2 :基台
4 :工具
5 :コラム
7 :主軸ヘッド
9 :主軸
12 :第二台
13 :第一台
30 :制御装置
31 :CPU
34 :記憶装置
51 :Z軸モータ
53 :X軸モータ
54 :Y軸モータ
1: Machine tool 2: Base 4: Tool 5: Column 7: Spindle head 9: Spindle 12: Second table 13: First table 30: Control device 31: CPU
34: Storage device 51: Z-axis motor 53: X-axis motor 54: Y-axis motor

Claims (12)

積載物を載せる第一台と、前記第一台を水平方向と平行な第一方向に移動可能に支持する第二台と、前記第一台を前記第一方向に移動する第一駆動部と、前記第二台を前記第一方向と交差する第二方向に移動可能に支持する台支持部と、前記第二台を前記第二方向に移動する第二駆動部とを備える工作機械を制御する制御装置において、
前記第一台に載せた前記積載物の質量を取得する質量取得部と、
前記第一台の前記第一方向の位置を指令する第一位置指令を取得する第一指令取得部と、
前記質量取得部が取得した前記質量と前記工作機械に固有の定数に基づく係数と、前記第一位置指令の前記位置とを用い、前記台支持部が撓むことに起因する、前記第一位置指令の前記位置の前記第一方向の誤差の推定値を求め、前記第一位置指令の前記位置から前記推定値を減算することで、前記第一位置指令の前記位置を補正する補正部と
を備え
前記第一位置指令の前記位置は、前記推定値が最小になる位置である基準からの距離で表すことを特徴とする制御装置。
A control device for controlling a machine tool including a first table on which a load is placed, a second table supporting the first table so as to be movable in a first direction parallel to a horizontal direction, a first drive unit for moving the first table in the first direction, a table support unit supporting the second table so as to be movable in a second direction intersecting the first direction, and a second drive unit for moving the second table in the second direction,
a mass acquisition unit that acquires a mass of the load placed on the first platform;
a first command acquisition unit that acquires a first position command that commands a position of the first unit in the first direction;
a correction unit that uses the mass acquired by the mass acquisition unit and a coefficient based on a constant specific to the machine tool , and the position of the first position command to obtain an estimate of an error in the first direction of the position of the first position command caused by bending of the table support unit, and corrects the position of the first position command by subtracting the estimate from the position of the first position command ,
A control device, wherein the position of the first position command is expressed as a distance from a reference, which is a position where the estimated value is minimum .
前記推定値は、前記係数と、前記距離の積であることを特徴とする請求項に記載の制御装置。 2. The control device according to claim 1 , wherein the estimate is a product of the coefficient and the distance. 前記基準は前記第一台の移動可能範囲の中心であることを特徴とする請求項1又は2に記載の制御装置。 3. The control device according to claim 1 , wherein the reference is the center of a movable range of the first unit. 前記係数は、前記台支持部の下端と前記第一台の上面の間の所定位置からの前記積載物の高さに応じた値に基づくことを特徴とする請求項の何れかに記載の制御装置。 The control device according to any one of claims 1 to 3 , characterized in that the coefficient is based on a value corresponding to the height of the load from a predetermined position between the lower end of the platform support portion and the upper surface of the first platform. 前記所定位置は、前記第一台に載せた前記積載物による前記台支持部の撓みによる前記第一台の前記第一方向の位置の誤差の測定値と、前記第一位置指令の前記位置を補正するときの前記推定値との差が最小になるように、最小二乗法を適用して求めた位置であることを特徴とする請求項4に記載の制御装置。 The control device described in claim 4, characterized in that the specified position is a position obtained by applying the least squares method so as to minimize the difference between the measured value of the position error in the first direction of the first table due to the deflection of the table support part by the load placed on the first table and the estimated value when correcting the position of the first position command . 前記工作機械は工具を装着する主軸と、前記主軸を支持し、上下動可能な主軸ヘッドと、前記主軸ヘッドを上下方向に移動可能に支持するヘッド支持部と、前記主軸ヘッドを前記上下方向に移動する第三駆動部とを備え、
前記主軸ヘッドの前記上下方向の位置を指令する第二位置指令を取得する第二指令取得部と、
前記主軸が装着した前記工具に応じた工具長補正量と前記第二位置指令に依り、前記工具の先端の前記所定位置からの高さを取得する高さ取得部を有し、
前記積載物の高さに応じた値は、前記高さ取得部が取得した前記工具の前記先端の前記所定位置からの高さであることを特徴とする請求項又はに記載の制御装置。
The machine tool includes a spindle on which a tool is attached, a spindle head supporting the spindle and movable up and down, a head support unit supporting the spindle head so as to be movable in the up and down direction, and a third drive unit moving the spindle head in the up and down direction,
a second command acquisition unit that acquires a second position command that commands a position of the spindle head in the vertical direction;
a height acquisition unit that acquires a height of a tip end of the tool from the predetermined position based on a tool length correction amount corresponding to the tool attached to the spindle and the second position command,
6. The control device according to claim 4 , wherein the value according to the height of the loaded object is a height of the tip of the tool from the predetermined position acquired by the height acquisition unit.
前記第二位置指令が位置決め指令か切削指令かを判断する種別判断部を更に備え、
前記高さ取得部は、前記第二位置指令が前記位置決め指令であると前記種別判断部が判断したことに応じ前記工具の前記先端の前記所定位置からの高さを取得し、
前記補正部は、
前記高さ取得部が取得した前記工具の前記先端の前記所定位置からの高さを用い前記係数を更新し、
更新した前記係数と前記第一位置指令の前記位置とを用い、前記第一位置指令の前記位置を補正する、
ことを特徴とする請求項に記載の制御装置。
A type determination unit that determines whether the second position command is a positioning command or a cutting command,
the height acquisition unit acquires a height of the tip of the tool from the predetermined position in response to a determination by the type determination unit that the second position command is the positioning command,
The correction unit is
updating the coefficient using the height of the tip of the tool from the predetermined position acquired by the height acquisition unit;
correcting the position of the first position command using the updated coefficient and the position of the first position command;
7. The control device according to claim 6 .
記憶装置と、
前記補正部が更新した前記係数を前記記憶装置に記憶する記憶制御部とを更に備え、
前記補正部は、前記種別判断部が前記第二位置指令が前記切削指令であると判断したことに応じ、前記記憶装置に記憶した前記係数と前記第一位置指令の前記位置とを用い、前記第一位置指令の前記位置を補正することを特徴とする請求項に記載の制御装置。
A storage device;
a storage control unit that stores the coefficient updated by the correction unit in the storage device,
The control device according to claim 7, characterized in that, in response to the type determination unit determining that the second position command is the cutting command, the correction unit corrects the position of the first position command by using the coefficient stored in the memory device and the position of the first position command.
前記補正部は、前記係数と、前記積載物と前記第一台の重心を用いて補正した前記第一位置指令の前記位置とを用い、前記推定値を求め、前記第一位置指令の前記位置から前記推定値を減算することで、前記第一位置指令の前記位置を補正することを特徴とする請求項1~の何れかに記載の制御装置。 The control device according to any one of claims 1 to 8, characterized in that the correction unit uses the coefficient and the position of the first position command corrected using the center of gravity of the load and the first unit to obtain the estimated value , and corrects the position of the first position command by subtracting the estimated value from the position of the first position command. 積載物を載せる第一台と、前記第一台を水平方向と平行な第一方向に移動可能に支持する第二台と、前記第一台を前記第一方向に移動する第一駆動部と、前記第二台を前記第一方向と交差する第二方向に移動可能に支持する台支持部と、前記第二台を前記第二方向に移動する第二駆動部とを備える工作機械の制御方法において、
前記第一台に載せた前記積載物の質量を取得する質量取得工程と、
前記第一台の前記第一方向の位置を指令する位置指令を取得する指令取得工程と、
前記質量取得工程で取得した前記質量と前記工作機械に固有の定数に基づく係数と、前記位置指令の前記位置とを用い、前記台支持部が撓むことに起因する、前記位置指令の前記位置の前記第一方向の誤差の推定値を求め、前記位置指令の前記位置から前記推定値を減算することで、前記位置指令の前記位置を補正する補正工程と
を備え
前記位置指令の前記位置は、前記推定値が最小になる位置である基準からの距離で表すことを特徴とする制御方法。
A method for controlling a machine tool including a first table on which a load is placed, a second table supporting the first table so as to be movable in a first direction parallel to a horizontal direction, a first drive unit which moves the first table in the first direction, a table support unit which supports the second table so as to be movable in a second direction intersecting the first direction, and a second drive unit which moves the second table in the second direction, comprising:
a mass acquisition step of acquiring a mass of the load placed on the first platform;
a command acquisition step of acquiring a position command for instructing a position of the first unit in the first direction;
a correction step of calculating an estimate of an error in the position of the position command in the first direction caused by bending of the platform support part by using the mass acquired in the mass acquisition step, a coefficient based on a constant specific to the machine tool, and the position of the position command, and correcting the position of the position command by subtracting the estimate from the position of the position command ,
A control method, wherein the position of the position command is expressed as a distance from a reference, which is a position where the estimated value is minimum .
積載物を載せる第一台と、前記第一台を水平方向と平行な第一方向に移動可能に支持する第二台と、前記第一台を前記第一方向に移動する第一駆動部と、前記第二台を前記第一方向と交差する第二方向に移動可能に支持する台支持部と、前記第二台を前記第二方向に移動する第二駆動部とを備える工作機械を制御する制御装置の制御部が実行可能な制御プログラムにおいて、
前記第一台に載せた前記積載物の質量を取得する質量取得処理と、
前記第一台の前記第一方向の位置を指令する位置指令を取得する指令取得処理と、
前記質量取得処理で取得した前記質量と前記工作機械に固有の定数に基づく係数と、前記位置指令の前記位置とを用い、前記台支持部が撓むことに起因する、前記位置指令の前記位置の前記第一方向の誤差の推定値を求め、前記位置指令の前記位置から前記推定値を減算することで、前記位置指令の前記位置を補正する補正処理と
を前記制御装置の前記制御部に実行させる指示を含み、
前記位置指令の前記位置は、前記推定値が最小になる位置である基準からの距離で表すことを特徴とする制御プログラム。
A control program executable by a control unit of a control device for controlling a machine tool including a first table on which a load is placed, a second table supporting the first table so as to be movable in a first direction parallel to a horizontal direction, a first drive unit for moving the first table in the first direction, a table support unit supporting the second table so as to be movable in a second direction intersecting the first direction, and a second drive unit for moving the second table in the second direction,
a mass acquisition process for acquiring a mass of the load placed on the first platform;
a command acquisition process for acquiring a position command for instructing a position of the first device in the first direction;
a correction process for calculating an estimated value of an error in the position of the position command in the first direction caused by bending of the platform support part by using the mass acquired in the mass acquisition process and a coefficient based on a constant specific to the machine tool, and the position of the position command, and correcting the position of the position command by subtracting the estimated value from the position of the position command ,
A control program, wherein the position of the position command is expressed as a distance from a reference, which is a position where the estimated value is minimum .
積載物を載せる第一台と、前記第一台を水平方向と平行な第一方向に移動可能に支持する第二台と、前記第一台を前記第一方向に移動する第一駆動部と、前記第二台を前記第一方向と交差する第二方向に移動可能に支持する台支持部と、前記第二台を前記第二方向に移動する第二駆動部とを備える工作機械を制御する制御装置の制御部が実行可能な制御プログラムを記憶する記憶媒体において、
前記第一台に載せた前記積載物の質量を取得する質量取得処理と、
前記第一台の前記第一方向の位置を指令する位置指令を取得する指令取得処理と、
前記質量取得処理で取得した前記質量と前記工作機械に固有の定数に基づく係数と、前記位置指令の前記位置とを用い、前記台支持部が撓むことに起因する、前記位置指令の前記位置の前記第一方向の誤差の推定値を求め、前記位置指令の前記位置から前記推定値を減算することで、前記位置指令の前記位置を補正する補正処理と
を前記制御装置の前記制御部に実行させる指示を含む前記制御プログラムを記憶し
前記位置指令の前記位置は、前記推定値が最小になる位置である基準からの距離で表すことを特徴とする記憶媒体。
A storage medium storing a control program executable by a control unit of a control device for controlling a machine tool including a first table on which a load is placed, a second table supporting the first table so as to be movable in a first direction parallel to a horizontal direction, a first drive unit moving the first table in the first direction, a table support unit supporting the second table so as to be movable in a second direction intersecting the first direction, and a second drive unit moving the second table in the second direction,
a mass acquisition process for acquiring a mass of the load placed on the first platform;
a command acquisition process for acquiring a position command for instructing a position of the first device in the first direction;
a correction process for correcting the position of the position command by using the mass acquired in the mass acquisition process and a coefficient based on a constant specific to the machine tool , and the position of the position command, to obtain an estimated value of an error in the position of the position command in the first direction caused by bending of the platform support part, and subtracting the estimated value from the position of the position command;
A storage medium , wherein the position of the position command is represented by a distance from a reference, which is a position where the estimated value is minimum .
JP2021117904A 2021-07-16 2021-07-16 CONTROL DEVICE, CONTROL METHOD, CONTROL PROGRAM, AND STORAGE MEDIUM Active JP7683373B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021117904A JP7683373B2 (en) 2021-07-16 2021-07-16 CONTROL DEVICE, CONTROL METHOD, CONTROL PROGRAM, AND STORAGE MEDIUM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021117904A JP7683373B2 (en) 2021-07-16 2021-07-16 CONTROL DEVICE, CONTROL METHOD, CONTROL PROGRAM, AND STORAGE MEDIUM

Publications (2)

Publication Number Publication Date
JP2023013593A JP2023013593A (en) 2023-01-26
JP7683373B2 true JP7683373B2 (en) 2025-05-27

Family

ID=85128931

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021117904A Active JP7683373B2 (en) 2021-07-16 2021-07-16 CONTROL DEVICE, CONTROL METHOD, CONTROL PROGRAM, AND STORAGE MEDIUM

Country Status (1)

Country Link
JP (1) JP7683373B2 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019053598A (en) 2017-09-15 2019-04-04 オークマ株式会社 Numerical control device and numerical control method for machine tool

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04361194A (en) * 1991-06-07 1992-12-14 Tsubakimoto Chain Co Correcting method for position of x, y, z axis table taking deflection into consideration
JPH054150A (en) * 1991-06-26 1993-01-14 Tsubakimoto Chain Co Method and device for work position/attitude correction with table deflection taken into account

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019053598A (en) 2017-09-15 2019-04-04 オークマ株式会社 Numerical control device and numerical control method for machine tool

Also Published As

Publication number Publication date
JP2023013593A (en) 2023-01-26

Similar Documents

Publication Publication Date Title
US4815006A (en) Method and device for calibrating a sensor on an industrial robot
US5214592A (en) Machine tool position correcting method and apparatus
JP2017027360A (en) Machine error compensation system, error compensation method, and error compensation program
WO2011077791A1 (en) Control parameter adjustment method and adjustment device
JP2005214943A (en) Measuring coordinate correction method for three-dimensional measuring machine, and three-dimensional measuring system
JPH11502776A (en) Apparatus and method for calibration of multi-axis industrial robot
US20160107283A1 (en) Machine tool
US4354404A (en) Arrangement for increasing the precision of a machine tool
US11141855B2 (en) Robot system, method of controlling robot arm, recording medium, and method of manufacturing an article
JP7683372B2 (en) CONTROL DEVICE, CONTROL METHOD, CONTROL PROGRAM, AND STORAGE MEDIUM
US20070067052A1 (en) Control method for twin synchronization
US6821064B2 (en) Apparatus for compensating position errors of spindle head and machine tool provided with same
JP6582814B2 (en) Numerical controller and lost motion compensation method for numerical controller
JP7683373B2 (en) CONTROL DEVICE, CONTROL METHOD, CONTROL PROGRAM, AND STORAGE MEDIUM
JP7568461B2 (en) Control device, industrial machine and control method
US20230152074A1 (en) Repeated determination of a position of a movable part of a coordinate measuring machine
JPH054150A (en) Method and device for work position/attitude correction with table deflection taken into account
US5910721A (en) Position control system and position control method
JP7647451B2 (en) MACHINE TOOL, CONTROL METHOD, CONTROL PROGRAM, AND STORAGE MEDIUM
US11629775B2 (en) Parameter setting method and control apparatus
JP2023051318A (en) Numerical controller and control method
JPH05277894A (en) Collecting method for heat displacement of main spindle for machine tool
JP2010099753A (en) Pitch error correction method and pitch error correction device of machine tool
JP2011230199A (en) Drilling control method, program, and drilling machine
JPH02256481A (en) Relative distance control method between robot and work and correction data preparing device thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20240315

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20241217

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20241218

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20250205

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20250415

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20250428

R150 Certificate of patent or registration of utility model

Ref document number: 7683373

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150