JP5173936B2 - Numerical controller - Google Patents

Numerical controller Download PDF

Info

Publication number
JP5173936B2
JP5173936B2 JP2009126681A JP2009126681A JP5173936B2 JP 5173936 B2 JP5173936 B2 JP 5173936B2 JP 2009126681 A JP2009126681 A JP 2009126681A JP 2009126681 A JP2009126681 A JP 2009126681A JP 5173936 B2 JP5173936 B2 JP 5173936B2
Authority
JP
Japan
Prior art keywords
tool
control program
post
correction
workpiece
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.)
Expired - Fee Related
Application number
JP2009126681A
Other languages
Japanese (ja)
Other versions
JP2010277170A (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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2009126681A priority Critical patent/JP5173936B2/en
Publication of JP2010277170A publication Critical patent/JP2010277170A/en
Application granted granted Critical
Publication of JP5173936B2 publication Critical patent/JP5173936B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Numerical Control (AREA)

Description

本発明は、NC(Numerical Control)装置に関する。   The present invention relates to an NC (Numerical Control) apparatus.

従来、加工プログラムで刃物台の移動を制御し、被加工物の加工を行う数値制御装置(以下、NC装置という)が知られている。例えば、NC装置は、円筒形状をした被加工物に対して垂直な平面上を移動する刃物台上に工具を設置し、加工プログラムに応じて刃物台の位置を制御し、設置された工具を用いて、被加工物の加工を行う。   2. Description of the Related Art Conventionally, there is known a numerical control device (hereinafter referred to as an NC device) that controls the movement of a tool post by a processing program and performs processing of a workpiece. For example, the NC device installs a tool on a tool post that moves on a plane perpendicular to the cylindrical workpiece, controls the position of the tool post according to the machining program, and installs the installed tool. Used to process the workpiece.

ここで、複数の工具を同一の刃物台上に設置し、設置された工具が被加工物を加工するように刃物台を制御するNC装置が知られている(例えば、特許文献1参照)。このようなNC装置は、円筒形状の被加工物に対して、垂直な平面状に、被加工物を囲むようにして複数の工具を設置する刃物台を有している。そして、NC装置は、複数の工具が設置された刃物台を制御し、被加工物に対して加工を行う。   Here, there is known an NC device in which a plurality of tools are installed on the same tool rest and the tool rest is controlled so that the installed tools process the workpiece (for example, see Patent Document 1). Such an NC apparatus has a tool post on which a plurality of tools are placed so as to surround the workpiece in a plane perpendicular to the cylindrical workpiece. The NC device controls the tool post on which a plurality of tools are installed, and performs processing on the workpiece.

一方、上記した複数の工具を同一の刃物台上に有するNC装置は、複数の工具が設置された刃物台を制御するために、複雑な制御プログラムを必要とする。NC装置は、非加工物に対して、刃物台に設置された工具を用いて被加工物の加工を行う場合には、一つの座標系に基づいた移動方向および移動量を表したプログラムが必要となる。そのため、NC装置は、刃物台に設置された複数の工具ごとに座標変換を考慮したプログラムを必要とする。   On the other hand, the NC apparatus having the plurality of tools on the same tool rest requires a complicated control program in order to control the tool rest on which the plurality of tools are installed. NC machine needs a program that shows the direction and amount of movement based on one coordinate system when machining a workpiece using a tool installed on the tool post for a non-workpiece. It becomes. For this reason, the NC device requires a program that considers coordinate conversion for each of a plurality of tools installed on the tool post.

例えば、NC装置は、被加工物を中心として対向する二つの工具を用いて、加工を行う場合には、一方の工具を被加工物に対して近づける操作と、他方の工具を被加工物に対して近づける操作とで、刃物台の移動方向を逆にする必要がある。つまり、刃物台を制御するプログラムは、使用する工具が刃物台のどこに設置されているかによって、異なった移動方向を考慮して作成される必要がある。   For example, when performing machining using two tools that are opposed to each other with the workpiece as the center, the NC device is configured to bring one tool closer to the workpiece and the other tool to the workpiece. It is necessary to reverse the direction of movement of the tool post by the operation of bringing it closer. That is, the program for controlling the tool post needs to be created in consideration of different moving directions depending on where the tool to be used is installed on the tool post.

ここで、座標変換機能を有するNC装置が知られている(例えば、特許文献2参照)。このようなNC装置は、複数の刃物台と刃物台の制御に用いる複数の主軸を有している。NC装置は、任意の主軸を基準として作成された制御プログラムを、各刃物台ごとに変換し、変換されたプログラムを用いて、各刃物台を制御する。   Here, an NC apparatus having a coordinate conversion function is known (for example, see Patent Document 2). Such an NC device has a plurality of turrets and a plurality of spindles used for controlling the turrets. The NC device converts a control program created on the basis of an arbitrary spindle for each tool post, and controls each tool post using the converted program.

特開昭62−264807号公報JP 62-264807 A 特開平08−118200号公報Japanese Patent Laid-Open No. 08-118200

しかしながら、上記の座標変換機能を有するNC装置は、任意の主軸を基準として作成された制御プログラムを用いて、各刃物台を制御する。そのため、一つの刃物台に設置された複数の工具を用いる場合には、刃物が設置された位置ごとに異なった制御を行う必要があり、加工プログラムの作成が煩わしいという問題があった。   However, the NC device having the coordinate conversion function controls each tool post using a control program created based on an arbitrary spindle. Therefore, when using a plurality of tools installed on one turret, it is necessary to perform different control for each position where the tool is installed, and there is a problem that it is troublesome to create a machining program.

ここで、刃物台を制御する制御プログラムは、NC装置の機械構造を意識することなく、加工図面に基づいて作成できることが望ましい。そこで、本発明は、上記に鑑みてなされたものであって、工具の装着方向を意識しないプログラムを用いて、刃物台の移動方向を自動判別し、加工を行うNC装置を得ることを目的とする。   Here, it is desirable that the control program for controlling the tool post can be created based on the machining drawing without being conscious of the mechanical structure of the NC device. Therefore, the present invention has been made in view of the above, and an object of the present invention is to obtain an NC device that automatically determines the direction of movement of the tool post and performs processing using a program that is not conscious of the tool mounting direction. To do.

上述した課題を解決し、目的を達するために、本発明の数値制御装置は、複数の工具が設置された刃物台を有し、刃物台の移動方向を基に当該刃物台の位置を制御することにより被加工物に対する加工処理を行う数値制御装置において、前記刃物台の移動方向を基準とした第1座標系に基づいた前記刃物台の移動方向を示す装着方向と、前記工具の長さを考慮した前記刃物台の移動量を補正する補正量と、を、前記刃物台に設置された前記各工具に対応付けた工具情報を有し、工具選択命令と前記刃物台の移動命令とを含む制御プログラムを、前記工具情報に基づいて補正する補正手段と、補正された前記制御プログラムに基づいて前記刃物台の移動量を補正する制御手段と、を有し、前記補正手段は、前記制御プログラム中の前記工具選択命令で指定される工具に対応する前記装着方向と前記補正量とを前記工具情報から取得し、前記制御プログラム中の前記移動命令が前記刃物台の位置を制御するための座標として、前記工具が前記被加工物に対して向いている方向を基準とした第2座標系を用いた各工具の座標が設定されている場合には、取得した前記装着方向を用いて前記第1座標系を用いた座標となるように補正するとともに、取得した前記補正量を用いて前記刃物台の移動量を補正することを特徴とする。 In order to solve the above-described problems and achieve the object, the numerical control device of the present invention has a tool post on which a plurality of tools are installed, and controls the position of the tool post based on the moving direction of the tool post. In the numerical control apparatus that performs the processing on the workpiece, the mounting direction indicating the moving direction of the tool rest based on the first coordinate system based on the moving direction of the tool rest, and the length of the tool. Correction information for correcting the amount of movement of the tool post considered, and tool information associated with each tool installed on the tool post, including a tool selection command and a command for moving the tool post A correction unit that corrects the control program based on the tool information; and a control unit that corrects the amount of movement of the tool post based on the corrected control program. The correction unit includes the control program. Tool selection in The mounting direction and the correction amount corresponding to the tool specified by the command are acquired from the tool information, and the tool is used as coordinates for the movement command in the control program to control the position of the tool post. When the coordinates of each tool using the second coordinate system based on the direction facing the workpiece are set, the first coordinate system is used using the acquired mounting direction. And correcting the movement amount of the tool rest using the acquired correction amount .

本発明によれば、加工に用いる工具ごとの座標系で表した制御プログラムを、刃物台の座標系に自動で変換し、被加工物の加工を行うので、制御プログラムの作成を容易にするという効果を奏する。   According to the present invention, the control program expressed in the coordinate system for each tool used for machining is automatically converted into the coordinate system of the tool post and the workpiece is machined, which makes it easy to create a control program. There is an effect.

図1は、本発明に係る刃物台の構成例を示す図である。FIG. 1 is a diagram showing a configuration example of a tool post according to the present invention. 図2は、本発明に係るNC装置の構成例を示すブロック図である。FIG. 2 is a block diagram showing a configuration example of the NC apparatus according to the present invention. 図3は、本発明に係る工具情報の例を示す図である。FIG. 3 is a diagram showing an example of tool information according to the present invention. 図4は、本発明に係る補正手段のフローチャートを示す図である。FIG. 4 is a diagram showing a flowchart of the correction means according to the present invention. 図5は、本発明に係る制御プログラムの例を示す図である。FIG. 5 is a diagram showing an example of a control program according to the present invention. 図6は、従来のNC装置を説明するための図である。FIG. 6 is a diagram for explaining a conventional NC device.

以下に、本発明にかかるNC装置の実施の形態を図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。   Embodiments of an NC apparatus according to the present invention will be described below in detail with reference to the drawings. Note that the present invention is not limited to the embodiments.

(従来技術適用の問題点)
まず、図6を用いて、NC装置にかかる従来技術について説明する。従来のNC装置が有する刃物台1には、図6に示すように、工具2、工具3、工具4が設置されている。工具2は、工具3と直交するように設置された工具である。また、工具4は、工具2と逆方向に設置された工具である。
(Problems of applying conventional technology)
First, the prior art concerning NC apparatus is demonstrated using FIG. As shown in FIG. 6, a tool 2, a tool 3, and a tool 4 are installed on a tool post 1 of a conventional NC device. The tool 2 is a tool installed so as to be orthogonal to the tool 3. The tool 4 is a tool installed in the opposite direction to the tool 2.

NC装置は、被加工物5に対して、工具4を用いて加工処理を行う場合には、刃物台1をX方向に移動させる制御プログラムを必要とする。一方、NC装置は、工具2を用いて加工処理を行う場合には、刃物台1を−X方向に移動させる制御プログラムを必要とする。また、NC装置は、工具3を用いて加工処理を行う場合には、刃物台1を−Y方向に移動させる制御プログラムを必要とする。   The NC device requires a control program for moving the tool post 1 in the X direction when processing the workpiece 5 using the tool 4. On the other hand, the NC device requires a control program for moving the tool post 1 in the −X direction when performing processing using the tool 2. Further, the NC device requires a control program for moving the tool post 1 in the −Y direction when performing processing using the tool 3.

そのため、工具が設置された位置を考慮した制御プログラムを作成する必要があり、制御プログラムの作成が煩わしいという問題があった。   Therefore, there is a problem that it is necessary to create a control program in consideration of the position where the tool is installed, and the creation of the control program is troublesome.

実施の形態1.
次に、本発明にかかるNC装置について説明する。なお、従来と同じ部分については、説明を省略する。図1に示すように、本発明に係るNC装置が有する刃物台1は、工具2、工具3、工具4を有している。NC装置は、各工具を用いて、円筒形の被加工物5に対して加工処理を行う。また、NC装置は、被加工物5に対して垂直な平面上であって工具4が向いている方向をX軸、X軸に垂直な方向をY軸とする。
Embodiment 1 FIG.
Next, the NC device according to the present invention will be described. In addition, description is abbreviate | omitted about the same part as the past. As shown in FIG. 1, the tool post 1 included in the NC device according to the present invention includes a tool 2, a tool 3, and a tool 4. The NC apparatus performs processing on the cylindrical workpiece 5 using each tool. In the NC apparatus, a direction on the plane perpendicular to the workpiece 5 and facing the tool 4 is an X axis, and a direction perpendicular to the X axis is a Y axis.

また、便宜上、各工具からみた被加工物の方向を「−x」とする。つまり、工具2から見た「−x」方向は「−X」方向をしめす。また、工具3から見た「−x」方向は、「−Y」方向をしめす。また、工具4から見た「−x」方向は「X」方向を示す。   For convenience, the direction of the workpiece viewed from each tool is set to “−x”. That is, the “−x” direction viewed from the tool 2 indicates the “−X” direction. Further, the “−x” direction viewed from the tool 3 indicates the “−Y” direction. The “−x” direction viewed from the tool 4 indicates the “X” direction.

次に、図2を用いて、本発明にかかるNC装置が有する手段について説明する。NC装置7は、補正手段8および制御手段9を有している。また、NC装置7は、入力装置6から制御プログラムの入力をうけるものとする。   Next, means included in the NC apparatus according to the present invention will be described with reference to FIG. The NC device 7 includes a correction unit 8 and a control unit 9. The NC device 7 receives a control program from the input device 6.

補正手段8は、制御プログラムが、各工具ごとの座標系で作成されていた場合には各工具が設置された位置に応じて、刃物台1を制御するための座標系となるように補正する。具体的に、図3を用いて説明する。図3は、補正手段8が有する工具情報を表した図である。補正手段8は、図3に示した工具情報を用いて、制御プログラムを補正する。工具情報は、工具補正番号、装着方向、補正量が対応付けられた情報である。   When the control program is created in the coordinate system for each tool, the correction means 8 corrects the control program so that it becomes a coordinate system for controlling the tool post 1 according to the position where each tool is installed. . This will be specifically described with reference to FIG. FIG. 3 is a diagram showing the tool information that the correcting means 8 has. The correction means 8 corrects the control program using the tool information shown in FIG. The tool information is information in which a tool correction number, a mounting direction, and a correction amount are associated with each other.

ここで、工具補正番号とは、装着方法および補正量を選択するための番号である。装着方向とは、制御プログラムから被加工物5に対する処理、例えば切削加工指令がされた場合に、刃物台1が実際に移動する方向を指示するものである。補正量とは、用いる工具の長さ等を考慮して、刃物台1の移動量を補正するための数値である。   Here, the tool correction number is a number for selecting a mounting method and a correction amount. The mounting direction indicates a direction in which the tool post 1 actually moves when a processing program, for example, a cutting command is issued from the control program. The correction amount is a numerical value for correcting the movement amount of the tool post 1 in consideration of the length of the tool to be used.

制御手段9は、補正手段によって補正された制御プログラムを用いて、刃物台1の位置を制御し、刃物台1に設置された各工具で被加工物5の加工処理を行う。   The control unit 9 controls the position of the tool post 1 using the control program corrected by the correcting unit, and performs the processing of the workpiece 5 with each tool installed on the tool post 1.

制御プログラムは、工具補正番号を用いて、加工に用いる工具を選択する。また、制御プログラムは、選択された工具を移動させる距離を示す数値を含んでいる。ここで、本発明に係るNC装置7に対して入力される制御プログラムは、工具補正番号を用いて選択された工具から見た座標系で移動させる距離が入力されている。   The control program uses the tool correction number to select a tool to be used for machining. Further, the control program includes a numerical value indicating a distance for moving the selected tool. Here, in the control program input to the NC device 7 according to the present invention, the distance to be moved in the coordinate system viewed from the tool selected using the tool correction number is input.

次に、工具情報について説明する。NC装置7は、刃物台1に装着された工具2について、被加工物5の加工を行う場合には、刃物台1を「−X」方向に移動させる必要がある。ここで、制御プログラムは、工具2から見た「−x」方向に移動させる距離が入力されている。NC装置7は、工具2から見た「−x」方向と刃物台1から見た「−X」方向とが同一方向であるので、装着方向に「X」が格納された工具情報を工具補正番号11として記憶する。   Next, tool information will be described. The NC device 7 needs to move the tool rest 1 in the “−X” direction when processing the workpiece 5 with respect to the tool 2 mounted on the tool rest 1. Here, the distance to be moved in the “−x” direction viewed from the tool 2 is input to the control program. Since the “−x” direction viewed from the tool 2 and the “−X” direction viewed from the tool post 1 are the same direction, the NC device 7 performs tool correction on the tool information in which “X” is stored in the mounting direction. Store as number 11.

一方、NC装置7は、刃物台1に装着された工具3について、被加工物の加工を行う場合には、刃物台1を「−Y」方向に移動させる必要がある。ここで、制御プログラムは、工具3から見た「−x」方向に移動させる距離が入力されている。工具3から見た「−x」方向は、刃物台1から見た「−Y」方向となる。そのため、NC装置7は、装着方向として「Y」が格納された工具情報を工具補正番号21として記憶する。   On the other hand, the NC device 7 needs to move the tool post 1 in the “−Y” direction when processing the workpiece with respect to the tool 3 mounted on the tool post 1. Here, a distance to be moved in the “−x” direction viewed from the tool 3 is input to the control program. The “−x” direction viewed from the tool 3 is the “−Y” direction viewed from the tool post 1. Therefore, the NC device 7 stores the tool information in which “Y” is stored as the mounting direction as the tool correction number 21.

また、NC装置7は、刃物台1に装着された工具4について、被加工物の加工を行う場合には、刃物台1を「X」方向に移動させる必要がある。ここで、制御プログラムは、工具4から見た「−x」方向に移動させる距離が入力されている。工具4から見た「−x」方向は、刃物台1から見た「X」方向となる。そのため、NC装置7は、装着方向として「−X」が格納された工具情報を工具補正番号31として記憶する。   Further, the NC device 7 needs to move the tool rest 1 in the “X” direction when processing the workpiece with respect to the tool 4 mounted on the tool rest 1. Here, the distance to be moved in the “−x” direction viewed from the tool 4 is input to the control program. The “−x” direction viewed from the tool 4 is the “X” direction viewed from the tool post 1. Therefore, the NC device 7 stores the tool information in which “−X” is stored as the mounting direction as the tool correction number 31.

次に、制御プログラムから加工に用いる工具を選択し、選択された工具を用いて被加工物5の加工を行うために刃物台1の位置を調節する処理の流れについて図5を用いて説明する。ここで、図5は、制御プログラムの一例を表した図である。   Next, the flow of processing for selecting the tool to be used for machining from the control program and adjusting the position of the tool post 1 in order to machine the workpiece 5 using the selected tool will be described with reference to FIG. . Here, FIG. 5 is a diagram showing an example of the control program.

NC装置7は、制御プログラムの解析を行った結果、工具選択命令を検出した場合には、工具情報として記憶された工具補正番号と、指令された工具補正番号の照合を実施する。図5に示した場合には、制御プログラムの「N10T11」が最初に指令される工具選択命令である。「N10T11」は、工具2を使用して被加工物の加工を行う事を意味している。   When the NC device 7 detects a tool selection command as a result of analyzing the control program, the NC device 7 collates the tool correction number stored as the tool information with the commanded tool correction number. In the case shown in FIG. 5, “N10T11” of the control program is a tool selection command that is first commanded. “N10T11” means that the workpiece 2 is processed using the tool 2.

NC装置7は、制御プログラムの「N10T11」より、工具補正番号11を有する工具情報を検索し取得する。NC装置7は、工具補正番号11を有する工具情報を取得した場合には、工具補正番号11と対応付けられた装着方向「X」より、制御プログラムに記録された移動命令を、刃物台1の「X」軸方向の移動命令に変換する。また、NC装置7は、工具補正番号11と対応付けられた補正量「10.000」を刃物台1の移動に反映させる。   The NC device 7 searches for and acquires tool information having the tool correction number 11 from “N10T11” of the control program. When the NC device 7 has acquired the tool information having the tool correction number 11, the NC device 7 sends the movement command recorded in the control program from the mounting direction “X” associated with the tool correction number 11 to the tool post 1. It is converted into a movement command in the “X” axis direction. Further, the NC device 7 reflects the correction amount “10.000” associated with the tool correction number 11 in the movement of the tool rest 1.

次に、NC装置7は、制御プログラムの次の命令文を読取る。制御プログラムの「N11X−20」は、刃物台1を工具2から見た「−x」軸方向に20mm移動させる命令である。ここで、NC装置7は、工具情報を用いて、「−x」方向を「−X」方向と補正するので、刃物台1を「−X」方向に20mm移動させる。   Next, the NC device 7 reads the next command statement of the control program. “N11X-20” of the control program is a command for moving the tool post 1 by 20 mm in the “−x” axis direction viewed from the tool 2. Here, since the NC device 7 corrects the “−x” direction as the “−X” direction using the tool information, the turret 1 is moved 20 mm in the “−X” direction.

次に、NC装置7は、制御プログラムの次の命令文を読取る。NC装置7は、制御プログラムの「N20T21」より、工具補正番号21を有する工具情報を検索し取得する。NC装置7は、工具補正番号21を有する工具情報を取得した場合には、工具補正番号21と対応付けられた装着方向「Y」より、制御プログラムに記録された移動命令を、刃物台1の「Y」軸方向の移動命令に変換する。また、NC装置7は、工具補正番号21と対応付けられた補正量「20.000」を刃物台1の移動に反映させる。   Next, the NC device 7 reads the next command statement of the control program. The NC device 7 searches for and acquires tool information having the tool correction number 21 from “N20T21” of the control program. When the NC device 7 acquires the tool information having the tool correction number 21, the NC apparatus 7 sends the movement command recorded in the control program from the mounting direction “Y” associated with the tool correction number 21 to the tool post 1. It is converted into a movement command in the “Y” axis direction. Further, the NC device 7 reflects the correction amount “20.000” associated with the tool correction number 21 on the movement of the tool post 1.

次に、NC装置7は、制御プログラムの次の命令文を読取る。制御プログラムの「N21X−18」は、刃物台1を工具3から見た「−x」軸方向に18mm移動させる命令である。ここで、NC装置7は、工具情報を用いて、「−x」方向を「−Y」方向と修正するので、刃物台1を「−Y」方向に18mm移動させる。   Next, the NC device 7 reads the next command statement of the control program. “N21X-18” of the control program is a command for moving the tool post 1 by 18 mm in the “−x” axis direction viewed from the tool 3. Here, since the NC device 7 corrects the “−x” direction as the “−Y” direction using the tool information, the turret 1 is moved 18 mm in the “−Y” direction.

同様に、NC装置7は、制御プログラムの「N30T31」より、工具補正番号31を有する工具情報を検索し取得する。NC装置7は、工具補正番号31を有する工具情報を取得した場合には、工具補正番号31と対応付けられた装着方向「−X」より、制御プログラムに記録された移動命令を、刃物台1の「X」軸方向の移動命令であり、符号を反転させた移動命令に変換する。また、NC装置7は、工具補正番号31と対応付けられた補正量「30.000」を刃物台1の移動に反映させる。   Similarly, the NC device 7 searches for and acquires tool information having the tool correction number 31 from “N30T31” of the control program. When the NC device 7 acquires the tool information having the tool correction number 31, the NC apparatus 7 sends the movement command recorded in the control program from the mounting direction “-X” associated with the tool correction number 31 to the tool post 1 The “X” axis direction movement command is converted into a movement command with the sign reversed. Further, the NC device 7 reflects the correction amount “30.000” associated with the tool correction number 31 in the movement of the tool post 1.

次に、NC装置7は、制御プログラムの次の命令文を読取る。制御プログラムの「N31X−15」は、刃物台1を工具4から見た「−x」軸方向に15mm移動させる命令である。ここで、NC装置7は、工具情報を用いて、「−x」方向を「X」方向と修正するので、刃物台1を「X」方向に15mm移動させる。   Next, the NC device 7 reads the next command statement of the control program. “N31X-15” in the control program is a command for moving the tool post 1 by 15 mm in the “−x” axis direction viewed from the tool 4. Here, since the NC device 7 corrects the “−x” direction as the “X” direction using the tool information, the turret 1 is moved 15 mm in the “X” direction.

次に、NC装置7は、制御プログラムの「N40T00」を読取る。「N40T00」は、工具補正のキャンセルを意味する。すなわち、NC装置7は、工具補正番号00を有する工具情報が登録されていないため、工具補正キャンセル処理に移行する。NC装置7は、工具補正キャンセル処理として、装着方向によって補正されていた刃物台1の移動方向を「X」軸方向に戻し、工具補正量をキャンセルする。   Next, the NC device 7 reads “N40T00” of the control program. “N40T00” means cancellation of tool correction. That is, since the tool information having the tool correction number 00 is not registered, the NC device 7 proceeds to the tool correction cancel process. As the tool correction canceling process, the NC device 7 returns the moving direction of the tool post 1 corrected according to the mounting direction to the “X” axis direction, and cancels the tool correction amount.

次に、図4を用いて、実施の形態1に係るNC装置7が行う補正処理の流れについて説明する。ここで、図4は、NC装置7が行う処理の流れを説明するフローチャートである。NC装置7は、制御プログラムの読取を行い、工具選択指令を識別した場合には、処理を開始する。   Next, the flow of correction processing performed by the NC apparatus 7 according to the first embodiment will be described with reference to FIG. Here, FIG. 4 is a flowchart for explaining the flow of processing performed by the NC device 7. The NC device 7 reads the control program and starts processing when a tool selection command is identified.

NC装置7は、読取を行った制御プログラムが指定した工具補正番号を有する工具情報があるかを判別する(ステップS1)。NC装置7は、読取を行った制御プログラムの行に工具補正番号がある場合には(ステップS1肯定)、工具補正番号を読み取り、読取られた工具補正番号と対応付けられた工具情報を検索する(ステップS2)。   The NC device 7 determines whether there is tool information having a tool correction number designated by the control program that has read (step S1). When there is a tool correction number in the line of the control program that has been read (Yes in step S1), the NC device 7 reads the tool correction number and searches for tool information associated with the read tool correction number. (Step S2).

ここで、NC装置7は、工具補正番号が「11」であった場合には、刃物台1の移動方向を「X」方向に設定する(ステップS3)。一方、NC装置7は、工具補正番号が「21」であった場合には、刃物台1の移動方向を「Y」方向に設定する(ステップS4)。また、NC装置7は、工具補正番号が「31」であった場合には、刃物台1の移動方向を「−X」方向に設定する(ステップS5)。   Here, when the tool correction number is “11”, the NC device 7 sets the moving direction of the tool post 1 to the “X” direction (step S3). On the other hand, when the tool correction number is “21”, the NC device 7 sets the moving direction of the tool post 1 to the “Y” direction (step S4). If the tool correction number is “31”, the NC device 7 sets the movement direction of the tool post 1 to the “−X” direction (step S5).

その後、NC装置7は、刃物台1の移動方向に、各工具補正番号と対応付けられた補正量の分だけ刃物台1を移動させ(ステップS6)、処理を終了する。また、NC装置7は、読取を行った制御プログラムが指定した工具補正番号を有する工具情報が無かった場合には(ステップS1否定)、刃物台1の移動方向を「X」軸方向に戻し、補正量をキャンセルする(ステップS7)。その後、NC装置7は、処理を終了する。   Thereafter, the NC device 7 moves the tool rest 1 in the moving direction of the tool rest 1 by the correction amount associated with each tool correction number (step S6), and ends the process. Further, when there is no tool information having the tool correction number designated by the control program that has read (No at Step S1), the NC device 7 returns the moving direction of the tool post 1 to the “X” axis direction, The correction amount is canceled (step S7). Thereafter, the NC device 7 ends the process.

以上説明したように、本発明によれば、NC装置7に対して、各工具ごとの座標系で作成された制御プログラムを、選択された工具ごとに、刃物台1の座標系に補正する補正手段8を設ける。そのため、制御プログラムを作成する場合には、使用する工具から見た座標系で工具の移動量を表すことができるので、単純で理解しやすい制御プログラムが作成可能となる。また、制御プログラムの作成を容易にするという効果を奏する。   As described above, according to the present invention, the NC program 7 is corrected to correct the control program created in the coordinate system for each tool to the coordinate system of the tool post 1 for each selected tool. Means 8 are provided. Therefore, when creating a control program, the movement amount of the tool can be expressed in a coordinate system viewed from the tool to be used, so that a control program that is simple and easy to understand can be created. In addition, there is an effect that the creation of the control program is facilitated.

また、NC装置7は、使用する工具を工具補正番号を用いて選択し、刃物台1の移動方向を自動で変換することができる。そのため、制御プログラムを作成する場合には、使用する工具ごとに考慮すべき座標変換を行う必要がない。結果として、制御プログラム作成の際に人為的なミスを防止し、制御プログラム作成時間を短縮することができる。   Further, the NC device 7 can select a tool to be used using a tool correction number, and can automatically convert the moving direction of the tool post 1. Therefore, when creating a control program, there is no need to perform coordinate conversion that should be considered for each tool to be used. As a result, it is possible to prevent human error when creating the control program and to shorten the time for creating the control program.

なお、上記実施の形態1の説明において、説明した軸名は便宜上の指令であり、任意の軸名で指令できることは言うまでも無い。   In the description of the first embodiment, the described axis name is a command for convenience, and it goes without saying that an arbitrary axis name can be used.

以上のように、本発明は、数値制御装置への利用に有用であり、特に、一つの刃物台に複数の工具を有する数値制御装置に適している。   As described above, the present invention is useful for use in a numerical control device, and is particularly suitable for a numerical control device having a plurality of tools on one tool post.

1 刃物台
2 工具
3 工具
4 工具
6 入力装置
7 NC装置
8 補正手段
9 制御手段
1 Tool post 2 Tool 3 Tool 4 Tool 6 Input device 7 NC device 8 Correction means 9 Control means

Claims (1)

複数の工具が設置された刃物台を有し、刃物台の移動方向を基に当該刃物台の位置を制御することにより被加工物に対する加工処理を行う数値制御装置において、
前記刃物台の移動方向を基準とした第1座標系に基づいた前記刃物台の移動方向を示す装着方向と、前記工具の長さを考慮した前記刃物台の移動量を補正する補正量と、を、前記刃物台に設置された前記各工具に対応付けた工具情報を有し、工具選択命令と前記刃物台の移動命令とを含む制御プログラムを、前記工具情報に基づいて補正する補正手段と、
補正された前記制御プログラムに基づいて前記刃物台の移動量を補正する制御手段と、
を有し、
前記補正手段は、前記制御プログラム中の前記工具選択命令で指定される工具に対応する前記装着方向と前記補正量とを前記工具情報から取得し、前記制御プログラム中の前記移動命令が前記刃物台の位置を制御するための座標として、前記工具が前記被加工物に対して向いている方向を基準とした第2座標系を用いた各工具の座標が設定されている場合には、取得した前記装着方向を用いて前記第1座標系を用いた座標となるように補正するとともに、取得した前記補正量を用いて前記刃物台の移動量を補正することを特徴とする数値制御装置。
In a numerical control device that has a tool post on which a plurality of tools are installed and performs processing on a workpiece by controlling the position of the tool post based on the moving direction of the tool post,
A mounting direction indicating the moving direction of the tool rest based on the first coordinate system based on the moving direction of the tool rest, a correction amount for correcting the moving amount of the tool rest considering the length of the tool, and Correction means for correcting a control program including tool information associated with each tool installed on the tool rest and including a tool selection command and a movement command for the tool rest based on the tool information. ,
Control means for correcting the amount of movement of the tool post based on the corrected control program;
Have
The correction means obtains the mounting direction and the correction amount corresponding to the tool specified by the tool selection command in the control program from the tool information, and the movement command in the control program receives the tool rest. As the coordinates for controlling the position of the tool, the coordinates of each tool using the second coordinate system based on the direction in which the tool is facing the workpiece are set . A numerical control apparatus, wherein the mounting direction is used to correct the coordinates using the first coordinate system, and the movement amount of the tool post is corrected using the acquired correction amount .
JP2009126681A 2009-05-26 2009-05-26 Numerical controller Expired - Fee Related JP5173936B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009126681A JP5173936B2 (en) 2009-05-26 2009-05-26 Numerical controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009126681A JP5173936B2 (en) 2009-05-26 2009-05-26 Numerical controller

Publications (2)

Publication Number Publication Date
JP2010277170A JP2010277170A (en) 2010-12-09
JP5173936B2 true JP5173936B2 (en) 2013-04-03

Family

ID=43424107

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009126681A Expired - Fee Related JP5173936B2 (en) 2009-05-26 2009-05-26 Numerical controller

Country Status (1)

Country Link
JP (1) JP5173936B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0391009A (en) * 1989-09-04 1991-04-16 Tsuchiya Yoshifumi Tool setting method for numerically controlled lathe

Also Published As

Publication number Publication date
JP2010277170A (en) 2010-12-09

Similar Documents

Publication Publication Date Title
JP5905158B2 (en) Numerical controller
JP5554235B2 (en) Interference check device, interference check method, and machine tool provided with interference check device
JP5220183B2 (en) Numerical control device and control method of the numerical control device
JP4290639B2 (en) Numerical control device and numerical control machine tool
JP5159997B1 (en) Numerical controller
JP2015225617A (en) Numerical value control device and control method
US9983563B2 (en) Method and apparatus for controlling a machine tool
WO2014196066A1 (en) Numerical control device
JP2011161519A (en) Method and device for controlling machine tool
JP5886656B2 (en) Numerical controller
KR101722916B1 (en) 5-axis device fabricating surface continuously based on laser scanner and control method for the device
JP5173936B2 (en) Numerical controller
JP5059360B2 (en) Rapid feed control method for machine tools
JP2010033150A (en) Numerically controlled machine tool
KR101355222B1 (en) Computerized numerical control machine tool apparatus, controller thereof, control method of the apparatus and program thereof
JP2016091466A (en) Control method and controller for machine tool
JP5875740B1 (en) Numerical controller
US11320800B2 (en) Optimization device
US20150277423A1 (en) Method and apparatus for controlling a machine tool
JP2004348448A (en) Device and method of numerical control for machine tool
JPH04237307A (en) Automatic transformation device for coordinate axis
JP2020086589A (en) Parameter setting device, system and parameter setting method
JP2004148422A (en) Multi-axis machining device, machining method in multi-axis machining device and program
JP2011258138A (en) Correction tool locus information generation system, correction tool locus information generation method and correction tool locus information generation program
JP2019042867A (en) Machine tool, control method of machine tool, and control program of machine tool

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110616

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120920

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120925

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121030

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: 20121204

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121227

R150 Certificate of patent or registration of utility model

Ref document number: 5173936

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees