JPH0731254U - Numerical control device - Google Patents

Numerical control device

Info

Publication number
JPH0731254U
JPH0731254U JP5909593U JP5909593U JPH0731254U JP H0731254 U JPH0731254 U JP H0731254U JP 5909593 U JP5909593 U JP 5909593U JP 5909593 U JP5909593 U JP 5909593U JP H0731254 U JPH0731254 U JP H0731254U
Authority
JP
Japan
Prior art keywords
skip
command
block
axis
program
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.)
Granted
Application number
JP5909593U
Other languages
Japanese (ja)
Other versions
JP2606240Y2 (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.)
DMG Mori Co Ltd
Original Assignee
DMG Mori Co Ltd
Mori Seiki Co 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 DMG Mori Co Ltd, Mori Seiki Co Ltd filed Critical DMG Mori Co Ltd
Priority to JP1993059095U priority Critical patent/JP2606240Y2/en
Publication of JPH0731254U publication Critical patent/JPH0731254U/en
Application granted granted Critical
Publication of JP2606240Y2 publication Critical patent/JP2606240Y2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Machine Tool Sensing Apparatuses (AREA)

Abstract

(57)【要約】 【目的】 スキップ機能を伴わない軸移動であって
も、接触式検出器からの検出信号によって軸移動を停止
でき、もって接触式検出器を破損することなく自動測定
作業を行うことができる数値制御装置を提供する。 【構成】 プログラムの各ブロックの命令で処理を
実行するとともに、外部の接触検出器2から入力される
スキップ信号Sg1によって強制的に処理を中止し、次
ブロックの処理に移行するスキップ機能を有する数値制
御装置1においてスキップ信号Sg1が入力されたと
き、当該実行中のブロックにスキップ機能用Gコード
(スキップ命令)が存在するか否かを判断するスキップ
条件判断手段10と、スキップ機能用Gコードが存在し
ないとき軸停止処理を行う軸制御部7とを備える。
(57) [Abstract] [Purpose] Even if the axis movement does not involve a skip function, the axis movement can be stopped by the detection signal from the contact-type detector, which allows automatic measurement work without damaging the contact-type detector. Provided is a numerical control device capable of performing. [Numerical value having a skip function for executing a process by an instruction of each block of a program, forcibly stopping the process by a skip signal Sg1 input from an external contact detector 2, and shifting to a process of a next block When the skip signal Sg1 is input to the control device 1, the skip condition determining means 10 for determining whether or not the skip function G code (skip instruction) exists in the block being executed, and the skip function G code are provided. And an axis control unit 7 that performs an axis stop process when it does not exist.

Description

【考案の詳細な説明】[Detailed description of the device]

【0001】[0001]

【産業上の利用分野】[Industrial applications]

本考案は、接触式検出器からの接触信号(以下、スキップ信号という)に基づ いて自動計測を行う数値制御装置に関し、詳細には、上記スキップ信号が入力さ れた場合に、当該ブロックにスキップ命令が存在しない場合でも、上記検出器を 損傷することがないようにした数値制御装置に関する。 The present invention relates to a numerical control device that performs automatic measurement based on a contact signal from a contact-type detector (hereinafter referred to as a skip signal). More specifically, when the skip signal is input to the block, The present invention relates to a numerical control device that prevents damage to the detector even if there is no skip command.

【0002】[0002]

【従来の技術】[Prior art]

NC工作機械や三次元測定器等に用いられる数値制御装置は、被測定物や工具 の寸法等を自動的に計測する自動計測機能を備え、例えばマシニングセンタにお いては、プログラムの同一ブロックにスキップ機能用Gコード(スキップ命令) に続いて軸移動用命令を配置することによって、テーブル上に載置固定されたワ ークに、該テーブルに対して相対移動する主軸に装着された接触式検出器を、該 主軸を所定の送り速度(スキップ信号の出力タイミングにばらつきの生じない範 囲の低速の送り速度)で相対的に移動させて接触させ、これにより上記スキップ 信号を上記制御装置に入力し、該接触時の制御軸座標に基づいて、必要に応じて ワーク寸法やワーク座標補正料等の演算処理を行うとともに、その軸移動指令の 実行を中止して次の指令ブロックにスキップする。 Numerical control devices used in NC machine tools and coordinate measuring machines have an automatic measurement function that automatically measures the dimensions of objects and tools to be measured. For example, in a machining center, skip to the same block of a program. By placing a function G code (skip command) followed by a command for axis movement, a contact type detection mounted on a spindle that moves relative to the table is fixed to a work mounted and fixed on the table. The main shaft relative to the main shaft at a predetermined feed speed (a low feed speed within a range where the output timing of the skip signal does not vary) to bring them into contact with each other, thereby inputting the skip signal to the control device. Then, based on the control axis coordinates at the time of contact, calculation processing of the work size, work coordinate correction fee, etc. is performed as necessary, and the execution of the axis movement command is stopped. Skip of the directive block.

【0003】 上述のようなスキップ機能を用いると、その軸移動は、上記所定の低速の送り 速度となりそれだけ時間がかかることとなる。そこで従来から、上記軸移動時間 を短縮し効率良く測定作業を行うために、出来る限り接触式検出器を被測定物の 測定点近傍まで早送りでアプローチ(予備位置決め)した後、スキップ機能を伴 う軸移動指令を行うようプログラムしていた。When the skip function as described above is used, the axis movement becomes the above-mentioned predetermined low feed rate, and it takes time accordingly. Therefore, conventionally, in order to shorten the axis movement time and perform measurement work efficiently, the contact type detector is approached as fast as possible to the vicinity of the measurement point of the DUT (preliminary positioning), followed by a skip function. I was programmed to issue an axis move command.

【0004】[0004]

【考案が解決しようとする課題】[Problems to be solved by the device]

ところが、上記従来の数値制御装置においては、スキップ機能を伴う軸移動の 前のアプローチ点(目標指令位置)を被測定物の測定点に接近させてプログラム すると、被測定物の取付け誤差等によりアプローチでの軸移動中に接触式検出器 が被測定物に接触することがあり、この場合でも軸移動を停止することなく目標 指令位置のアプローチ点まで早送りで位置決めされることから、接触式検出器を 破損するという問題があった。 However, in the conventional numerical control device described above, if the approach point (target command position) before the axis movement accompanied by the skip function is programmed close to the measurement point of the DUT, the approach may occur due to installation error of the DUT. The contact-type detector may come into contact with the object to be measured during the axis movement at, and even in this case, the contact-type detector is positioned by the rapid feed to the approach point of the target command position without stopping the axis movement. There was a problem of breaking.

【0005】 また、プログラム作成における上記スキップ機能用Gコードや目標指令位置座 標等の入力ミスによって、上記同様の問題が発生する恐れがある。In addition, there is a possibility that the same problem as described above may occur due to an input error in the G code for the skip function, the target command position coordinate, etc. in the program creation.

【0006】 本考案は、上記従来の問題点に鑑みてなされたもので、スキップ機能を伴わな い軸移動命令であっても、接触式検出器からのスキップ信号によって軸移動を停 止でき、もって接触式検出器を破損することなく自動測定作業を行うことができ る数値制御装置を提供することを目的としている。The present invention has been made in view of the above-mentioned conventional problems, and even if an axis movement command without a skip function is used, the axis movement can be stopped by a skip signal from the contact type detector. Therefore, it is an object of the present invention to provide a numerical control device capable of performing automatic measurement work without damaging the contact type detector.

【0007】[0007]

【課題を解決するための手段】[Means for Solving the Problems]

本考案は、プログラムの各ブロックの命令で処理を実行するとともに、外部の 接触検出手段から入力されるスキップ信号によって強制的に処理を中止し、次ブ ロックの処理に移行するスキップ機能を有する数値制御装置において、上記スキ ップ信号が入力されたとき当該実行中のブロックにスキップ命令が存在するか否 かを判断するスキップ条件判断手段と、スキップ命令が存在しないと判断された とき軸移動を停止するための軸停止指令を出力する軸制御手段とを備えたことを 特徴としている。 The present invention executes a process by the instruction of each block of the program, and also has a skip function that forcibly cancels the process by the skip signal input from the external contact detection means and shifts to the process of the next block. In the control device, when the above skip signal is input, skip condition judging means for judging whether or not a skip command exists in the block being executed, and axis movement when it is judged that no skip command exists. It is characterized in that it is provided with axis control means for outputting an axis stop command for stopping.

【0008】[0008]

【作用】[Action]

本考案の数値制御装置によれば、接触検出手段が接触検出器の被測定物との接 触を検知し、該接触検出手段から上記スキップ条件判断手段にスキップ信号が出 力されると、該条件判断手段が当該実行中のブロックにスキップ命令が存在する か否かを判断し、存在しなければ軸制御手段により軸移動停止処理が行われる。 なお、スキップ命令が存在すれば通常のスキップ処理が行われる。 According to the numerical controller of the present invention, when the contact detecting means detects the contact of the contact detector with the object to be measured, and when the contact detecting means outputs a skip signal to the skip condition judging means, The condition judging means judges whether or not there is a skip command in the block being executed, and if not present, the axis control means carries out the axis movement stop processing. If there is a skip command, normal skip processing is performed.

【0009】 このように、接触検出手段からのスキップ信号が入力された場合、当該実行中 のブロックにスキップ命令が存在しないときは、軸移動を停止させるようにした ので、被測定物の取付誤差やプログラム作成における入力ミス等による接触検出 手段の損傷を回避でき、もって自動測定作業を安全に確実に行うことができる。As described above, when the skip signal is input from the contact detection means, the axis movement is stopped when the skip command does not exist in the block being executed. It is possible to avoid damage to the contact detection means due to input errors in programming, and to safely and reliably perform automatic measurement work.

【0010】[0010]

【実施例】【Example】

以下、本考案の実施例を添付図面に基づいて説明する。 図1ないし図5は本考案の一実施例による数値制御装置を説明するための図で あり、図1は上記制御装置の基本的構成を示すブロック構成図、図2は上記制御 装置の条件判断部の処理手順を説明するためのフローチャート図、図3は上記制 御装置のプログラム解析部の処理手順を説明するためのフローチャート図、図4 はスキップ機能用Gコードを付与して作成された測定用プログラム例の説明図、 図5は図4のプログラムの動作を説明するための模式図である。 Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. 1 to 5 are views for explaining a numerical controller according to an embodiment of the present invention. FIG. 1 is a block diagram showing a basic configuration of the controller, and FIG. 2 is a condition judgment of the controller. FIG. 3 is a flow chart for explaining the processing procedure of the control section, FIG. 3 is a flow chart for explaining the processing procedure of the program analysis section of the control device, and FIG. 4 is a measurement created by adding a G code for skip function. FIG. 5 is a schematic diagram for explaining the operation of the program of FIG. 4, and FIG.

【0011】 これらの図において、9はコラム三軸移動型測定器であって、ベッド91上に は、サドル92,コラム93を介して、先端に公知のタッチプローブ(接触式検 出器)2が装着された検出器保持軸94がそれぞれ直交する3軸(X軸,Y軸, Z軸)方向に移動可能に支持されている。そして、上記タッチプローブ2は、上 記各軸に配設されたボールネジ95,軸駆動用モータ6を介して後述する数値制 御装置1によって移動駆動され、テーブル96上に載置固定された被測定物97 に接触することによりスキップ信号Sg1を発生するよう構成されている。In these figures, reference numeral 9 denotes a column triaxial movement type measuring instrument, on the bed 91, a saddle 92 and a column 93 are used, and a known touch probe (contact type detector) 2 is attached to the tip. The detector holding shafts 94 mounted with are supported so as to be movable in three orthogonal directions (X axis, Y axis, Z axis). The touch probe 2 is moved and driven by a numerical control device 1 described later via a ball screw 95 arranged on each of the above-mentioned shafts and a shaft driving motor 6, and is mounted and fixed on a table 96. It is configured to generate the skip signal Sg1 by touching the measurement object 97.

【0012】 上記数値制御装置1は、プログラム記憶部3、プログラム解析部4、条件判断 部5、軸制御部7、アラーム表示部8、及び図示しない座標演算部により構成さ れており、上記プログラム記憶部3,プログラム解析部4,及び条件判断部5に よって本考案のスキップ条件判断手段10が実現され、また上記軸制御部7によ って本考案の軸制御手段が実現される。なお、上記スキップ条件判断手段及び軸 制御手段は、ソフトウェアによって、あるいはハードウェアによって実現される 。The numerical control device 1 includes a program storage unit 3, a program analysis unit 4, a condition determination unit 5, an axis control unit 7, an alarm display unit 8, and a coordinate calculation unit (not shown). The storage unit 3, the program analysis unit 4, and the condition determination unit 5 implement the skip condition determination means 10 of the present invention, and the axis control unit 7 implements the axis control means of the present invention. The skip condition determining means and the axis control means are realized by software or hardware.

【0013】 上記数値制御装置1は、測定用プログラムの各ブロックの命令で処理を実行す ることによって上記被測定物97の任意の測定位置に上記タッチプローブ2を接 触させて、該タッチプローブ2からのスキップ信号Sg1に基づいて上記座標演 算部によって各測定位置の座標位置を記憶し、必要に応じて上記被測定物97の 寸法等の演算処理を行い、あるいは上記スキップ信号Sg1によって強制的に処 理を中止し、次ブロックの処理に移行するスキップ機能を有するものである。The numerical controller 1 causes the touch probe 2 to contact an arbitrary measurement position of the object to be measured 97 by executing a process in accordance with an instruction of each block of the measurement program, and the touch probe 2 The coordinate position of each measurement position is stored by the coordinate calculation unit based on the skip signal Sg1 from 2 and the calculation processing of the dimension of the DUT 97 is performed as necessary, or the skip signal Sg1 is used to force the calculation. It has a skip function to stop processing and move to the processing of the next block.

【0014】 上記プログラム記憶部3は、外部プログラム作成装置等により予め作成された 測定用プログラムデータを記憶するもので、例えば、半導体メモリや磁気記憶媒 体等によって構成される。上記測定用プログラムデータは、図4に示すように、 複数のブロックにより構成されており、プログラムの開始,終了ブロック(N1 ,N9)のG90,M30はそれぞれ、アブソリュート座標指令定義用Gコード ,プログラム終了用Mコードを示している。The program storage unit 3 stores measurement program data created in advance by an external program creation device or the like, and is composed of, for example, a semiconductor memory or a magnetic storage medium. As shown in FIG. 4, the measurement program data is composed of a plurality of blocks. G90 and M30 of the program start and end blocks (N1 and N9) are the absolute coordinate command definition G code and program, respectively. The M code for termination is shown.

【0015】 また、測定動作を行うブロック(N5)には、上記タッチプローブ2より発生 されるスキップ信号Sg1によって次ブロック(N6)の処理に移行するスキッ プ命令(スキップ機能用GコードG31)が、軸移動命令(X100.0)とと もに付加されている。また、上記ブロックN5の前後には移動速度を高める早送 り軸移動指令用Gコード(G00)が軸移動命令(X0.0)とともに付加され ている。In addition, in the block (N5) that performs the measurement operation, a skip command (skip function G code G31) that shifts to the process of the next block (N6) by the skip signal Sg1 generated from the touch probe 2 is provided. , Axis movement command (X100.0) is added. Further, before and after the block N5, a fast-forwarding axis movement command G code (G00) for increasing the movement speed is added together with the axis movement command (X0.0).

【0016】 なお、上記軸移動命令(X100.0)は、図5に示すX=100の目標指令 位置への、また上記命令(X0.0)は同図X=0のアプローチ位置への、それ ぞれの軸移動命令であり、図4の(A)(B)の処理はそれぞれ図5のA,Bの 動作に対応している。The axis movement command (X100.0) is to the target command position of X = 100 shown in FIG. 5, and the command (X0.0) is to the approach position of X = 0 in FIG. These are axis movement commands respectively, and the processes of (A) and (B) of FIG. 4 correspond to the operations of A and B of FIG. 5, respectively.

【0017】 上記プログラム解析部4は、上述のプログラム記憶部3より入力された上記測 定用プログラムデータを、いわゆるインタプリタ方式(逐次実行方式)で順次ブ ロック単位ごとに解析・実行し、上記各部に指令を出力するものである。具体的 には、プログラムデータ中の実行ブロックに上記スキップ機能用Gコード(G3 1)を確認すると条件判断部5にスキップ指令Sg3を、また、軸移動命令を確 認すると軸制御部7へ軸移動指令Sg6を各々出力する。そして、後述の条件判 断部5のスキップ実行指令Sg7,軸停止指令Sg4を確認すると実行ブロック の処理を停止するとともに、スキップ実行指令Sg7の場合には次ブロックの解 析・実行すなわちスキップ処理を行うよう構成されている。The program analysis unit 4 sequentially analyzes and executes the measurement program data input from the program storage unit 3 in block units by a so-called interpreter method (sequential execution method), and each unit described above. The command is output to. Specifically, if the above-mentioned skip function G code (G31) is confirmed in the execution block in the program data, the skip command Sg3 is sent to the condition judgment unit 5, and if the axis movement command is confirmed, the axis control unit 7 is sent to the axis control unit 7. The movement command Sg6 is output. When the skip execution command Sg7 and the axis stop command Sg4 of the condition judgment unit 5 described later are confirmed, the processing of the execution block is stopped, and in the case of the skip execution command Sg7, the analysis / execution of the next block, that is, the skip processing is executed. Is configured to do.

【0018】 上記条件判断部5は、スキップ条件の基本的な判断を行うものであって、上記 プログラム解析部4からのスキップ指令Sg3および上記タッチプローブ2から のスキップ信号Sg1を判断して、条件が満たされると(スキップ指令時にスキ ップ信号Sg1が入力されると)上記プログラム解析部4へスキップ実行指令S g7を出力し、条件が満たされないと(スキップ指令時外にスキップ信号Sg1 が入力されたとき)プログラム解析部4および軸制御部7へそれぞれ軸停止指令 Sg4を出力するとともに、アラーム表示部8にアラーム表示指令Sg9を出力 するよう構成されている。The condition determination unit 5 is for making a basic determination of a skip condition, and determines the skip command Sg3 from the program analysis unit 4 and the skip signal Sg1 from the touch probe 2 to determine the condition. Is satisfied (when the skip signal Sg1 is input at the time of the skip command), the skip execution command Sg7 is output to the program analysis unit 4 and when the condition is not satisfied (the skip signal Sg1 is input outside the time of the skip command). It is configured to output the axis stop command Sg4 to the program analysis unit 4 and the axis control unit 7 respectively, and to output the alarm display command Sg9 to the alarm display unit 8 when it is performed.

【0019】 上記軸制御部7は、上記プログラム解析部4からの軸移動指令Sg6および上 記軸駆動用モータ6の軸端部の回転検出器からのフィードバック信号Sg5に基 づいて上記軸駆動用モータ6を回転駆動し、上記タッチプローブ2を上記軸移動 指令Sg6に従って位置決めするとともに、上記条件判断部5からの軸停止指令 Sg4を判断して上記駆動用モータ6を停止制御するよう構成されている。The axis control section 7 drives the axis based on the axis movement command Sg6 from the program analysis section 4 and the feedback signal Sg5 from the rotation detector of the shaft end of the axis driving motor 6 described above. The motor 6 is driven to rotate, the touch probe 2 is positioned according to the axis movement command Sg6, and the axis stop command Sg4 from the condition judgment unit 5 is judged to stop the driving motor 6. There is.

【0020】 上記アラーム表示部8は、上記条件判断部5からのアラーム表示指令Sg9を 判断して、被測定物97のテーブル96への装着ミスや測定プログラムの作成ミ ス等によって、スキップ機能を伴わない軸移動中に上記タッチプローブ2が被測 定物97に接触したことを作業者にCRTやブザー等により視覚的に又は聴覚的 に警告するものである。The alarm display unit 8 judges the alarm display command Sg9 from the condition judgment unit 5 and executes a skip function due to a mounting error of the object to be measured 97 on the table 96 or a measurement program creation miss. The operator is visually or audibly alerted by a CRT or a buzzer that the touch probe 2 has come into contact with the object to be measured 97 while the shaft is not moving.

【0021】 次に、本実施例の作用効果を説明する。 上記数値制御装置1に外部よりプログラム実行指令が入力されると、上記プロ グラム解析部4に上記プログラム記憶部3から実行用プログラムデータが入力さ れ、上記解析部4が順次ブロック単位ごとに解析・実行して、各部に上記プログ ラムに応じた指令を出力し処理を行う。Next, the function and effect of this embodiment will be described. When a program execution command is input to the numerical controller 1 from the outside, execution program data is input from the program storage unit 3 to the program analysis unit 4, and the analysis unit 4 sequentially analyzes each block unit.・ Execute and output the command corresponding to the above program to each part and perform the processing.

【0022】 まず、図2に基づいて上記条件判断部5の動作を説明する。 上記プログラム解析部4による処理の間、条件判断部5はタッチプローブ2か らのスキップ信号Sg1の入力を常時監視している(ステップS1)。そして、 上記プログラム解析部4からの軸移動指令Sg6によってタッチプローブ2が移 動して被測定物97に接触し、上記条件判断部5にスキップ信号Sg1が入力さ れると、上記プログラム解析部4における実行ブロック内のスキップ機能用Gコ ードの有無をスキップ指令Sg3により判断する(ステップS2)。上記スキッ プ機能用Gコードが指令されていないと判断すると、プログラム解析部4,軸制 御部7へそれぞれ軸停止指令Sg4を出力し(ステップS3)、該軸停止指令S g4により、プログラム解析部4は実行ブロック処理を停止し、軸制御部7は駆 動中の制御軸6を停止する。また、上記条件判断部5よりアラーム表示部8へア ラーム表示指令Sg9が出力され(ステップS4)、アラーム表示部8はスキッ プ機能を伴わない軸移動中にタッチプローブ2が被測定物97に接触したことを 作業者に警告する。First, the operation of the condition determination unit 5 will be described with reference to FIG. During the processing by the program analysis unit 4, the condition determination unit 5 constantly monitors the input of the skip signal Sg1 from the touch probe 2 (step S1). When the touch probe 2 is moved by the axis movement command Sg6 from the program analysis unit 4 and comes into contact with the DUT 97, and the skip signal Sg1 is input to the condition determination unit 5, the program analysis unit 4 is input. The presence or absence of the G code for the skip function in the execution block is determined by the skip command Sg3 (step S2). When it is determined that the G code for the skip function is not commanded, the axis stop command Sg4 is output to the program analysis unit 4 and the axis control unit 7 (step S3), and the program analysis is performed by the axis stop command Sg4. The section 4 stops the execution block processing, and the axis control section 7 stops the driving control axis 6. Further, the condition determination unit 5 outputs an alarm display command Sg9 to the alarm display unit 8 (step S4), and the alarm display unit 8 causes the touch probe 2 to contact the DUT 97 during axis movement without the skip function. Warn the operator of contact.

【0023】 上記ステップS2において、上記プログラム解析部4からスキップ指令Sg3 が入力されると、上記プログラム解析部4にスキップ実行指令Sg7を出力し( ステップS5)、また上記図示しない座標演算部によって測定位置の座標位置を 算出し、必要に応じて該座標位置より被加工物97の寸法等を演算する。上記プ ログラム解析部4は、上記スキップ実行指令Sg7が入力されると通常のスキッ プ処理、すなわち実行ブロックの処理を中止し次ブロックの解析・実行を開始す る。In step S2, when the skip command Sg3 is input from the program analysis unit 4, the skip execution command Sg7 is output to the program analysis unit 4 (step S5), and the measurement is performed by the coordinate calculation unit (not shown). The coordinate position of the position is calculated, and the dimension or the like of the workpiece 97 is calculated from the coordinate position if necessary. When the skip execution command Sg7 is input, the program analysis unit 4 stops the normal skip processing, that is, the processing of the execution block and starts the analysis / execution of the next block.

【0024】 次に、図3に基づいて上記条件判断部5より各指令を受けたプログラム解析部 4のプログラム処理手順について述べる。 上記プログラム解析部4は、プログラム記憶部3に記憶された測定用プログラ ムデータを順次ブロック単位で解析・実行するとともに(ステップS11)、実 行ブロックの処理が完了するまで条件判断部5からのスキップ実行指令Sg7お よび軸停止指令Sg4の判断を繰り返し(ステップS12,S13)、スキップ 実行指令Sg7が入力されると実行ブロックの処理を中止して次ブロックの解析 ・実行を開始し(ステップS11)、軸停止指令Sg4が入力されると実行ブロ ックの処理を停止する(ステップS16)。そして、実行ブロックの処理が完了 すると(ステップS14)、プログラム終了でなければ(ステップS15)、次 ブロックの処理を開始する(ステップS11)。Next, a program processing procedure of the program analysis unit 4 which receives each command from the condition determination unit 5 will be described with reference to FIG. The program analysis unit 4 sequentially analyzes and executes the measurement program data stored in the program storage unit 3 in block units (step S11), and skips from the condition determination unit 5 until the execution block processing is completed. The execution command Sg7 and the axis stop command Sg4 are repeatedly determined (steps S12 and S13), and when the skip execution command Sg7 is input, the processing of the execution block is stopped and the analysis / execution of the next block is started (step S11). When the axis stop command Sg4 is input, the execution block processing is stopped (step S16). When the processing of the execution block is completed (step S14), if the program is not completed (step S15), the processing of the next block is started (step S11).

【0025】 次に、図4,5に基づいて上記装置の動作について説明する。 上記プログラム解析部4に図4に示すプログラムが読み込まれ実行されると、 まずブロックN1において以下ブロックの軸移動命令の値がアブソリュート座標 に定義される。そして、測定作業の前のブロックN4で図5に示すX=0のアプ ローチ位置にタッチプローブ2が早送りで位置決めされる。次に、ブロックN5 で図5A方向にX=100の目標指令位置に向けて上記タッチプローブ2が作動 され、該タッチプローブ2が図5のスキップ位置に達すると被測定物97と接触 し、上記スキップ信号Sg1が条件判断部5に入力される(図2ステップS1参 照)。ここで、上記ブロックN5はスキップ指令用Gコード(G31)を備えて いるためスキップ機能が作用し(図2ステップS1,S2,S5)、ただちに処 理がブロックN6に移行して、上記タッチプローブ2が図5B方向に上記アプロ ーチ位置に早送りで位置決めされる。Next, the operation of the above device will be described with reference to FIGS. When the program shown in FIG. 4 is read and executed by the program analysis unit 4, first, in block N1, the value of the axis movement command of the following block is defined in absolute coordinates. Then, in the block N4 before the measurement work, the touch probe 2 is fast-positioned at the approach position of X = 0 shown in FIG. Next, in block N5, the touch probe 2 is actuated toward the target command position of X = 100 in the direction of FIG. 5A. When the touch probe 2 reaches the skip position of FIG. The skip signal Sg1 is input to the condition determination unit 5 (see step S1 in FIG. 2). Here, since the block N5 is provided with the skip command G code (G31), the skip function operates (steps S1, S2 and S5 in FIG. 2), and the process immediately shifts to the block N6 to perform the touch probe. 2 is fast-forwarded to the approach position shown in FIG. 5B.

【0026】 また、プログラムの作成ミス等により上記ブロックN5に上記Gコード(G3 1)が存在しないときには、図2ステップS3に示すように、軸停止指令Sg4 により上記タッチプローブ2が停止される。なお、取付誤差等により、上記ブロ ックN4における移動中にタッチプローブ2が被測定物97に接触し、スキップ 信号Sg1が入力されると、このブロックN4にはスキップ命令が存在しないこ とから、この場合もタッチプローブ2が停止される。If the G code (G31) does not exist in the block N5 due to a mistake in creating a program, the touch probe 2 is stopped by the axis stop command Sg4, as shown in step S3 of FIG. If the touch probe 2 comes into contact with the DUT 97 while the block N4 is moving and the skip signal Sg1 is input due to an attachment error or the like, there is no skip command in this block N4. Also in this case, the touch probe 2 is stopped.

【0027】 このように本実施例では、数値制御装置1に条件判断部5を設け、接触式検出 器2が被測定物97に接触した時にプログラム内にスキップ指令がなければ、上 記条件判断部5により軸停止指令Sg4を出力し、処理を停止するようにしたの で、上記X=0のアプローチ位置を被測定物97に接近させてプログラムした時 の、上記被測定物97の取付け位置の誤差による上記検出器2の損傷を回避でき る。また、プログラムのスキップ命令の誤記等の作成ミス等による上記接触式検 出器2の損傷も同様に回避できる。As described above, in the present embodiment, the numerical controller 1 is provided with the condition judging unit 5, and when there is no skip command in the program when the contact type detector 2 contacts the object to be measured 97, the above condition judging is made. Since the part 5 outputs the axis stop command Sg4 to stop the processing, the mounting position of the object to be measured 97 when the approach position of X = 0 is programmed close to the object to be measured 97. It is possible to avoid damage to the detector 2 due to the error. In addition, damage to the contact type detector 2 due to mistakes such as erroneous writing of a skip command of the program can be similarly avoided.

【0028】 なお、上記実施例では本考案を三次元測定器に採用した例を説明したが、本考 案の数値制御装置はこれに限定されるものではなく、例えば、自動的に工具の交 換が可能な主軸に測定用プローブを装着して行うワーク計測装置や、テーブルマ ウントセンサによる工具長測定装置等、スキップ機能を伴う軸移動を用いて測定 作業が行われる装置であれば何れにも適用できる。In the above embodiment, an example in which the present invention is applied to a three-dimensional measuring instrument has been described, but the numerical control device of the present invention is not limited to this. Any device that performs measurement work using axis movement with a skip function, such as a workpiece measuring device that is equipped with a measuring probe attached to a replaceable spindle or a tool length measuring device that uses a table mount sensor. Applicable.

【0029】[0029]

【考案の効果】[Effect of device]

以上のように本考案に係る数値制御装置では、プログラムにスキップ命令がな い時に接触式検出器からスキップ信号が出力されると、上記装置に設けたスキッ プ条件判断手段及び軸制御手段により軸移動を停止させるようにしたので、プロ グラム作成ミスや被測定物の取付け誤差等による上記接触式検出器の損傷を回避 できる効果がある。 As described above, in the numerical control device according to the present invention, when the skip signal is output from the contact type detector when there is no skip command in the program, the axis condition is controlled by the skip condition determination means and the axis control means provided in the above device. Since the movement is stopped, there is an effect that the contact type detector can be prevented from being damaged due to an error in creating a program or an error in mounting the object to be measured.

【図面の簡単な説明】[Brief description of drawings]

【図1】本考案の一実施例による数値制御装置の基本的
構成を示すブロック構成図である。
FIG. 1 is a block diagram showing a basic configuration of a numerical controller according to an embodiment of the present invention.

【図2】上記制御装置の条件判断部の処理手順を説明す
るためのフローチャート図である。
FIG. 2 is a flow chart diagram for explaining a processing procedure of a condition determination unit of the control device.

【図3】上記制御装置のプログラム解析部の処理手順を
説明するためのフローチャート図である。
FIG. 3 is a flow chart diagram for explaining a processing procedure of a program analysis unit of the control device.

【図4】スキップ機能用Gコードを付与して作成された
測定用プログラムの例である。
FIG. 4 is an example of a measurement program created by adding a G code for a skip function.

【図5】上記測定用プログラムの動作を説明するための
模式図である。
FIG. 5 is a schematic diagram for explaining the operation of the measurement program.

【符号の説明】[Explanation of symbols]

1 数値制御装置 2 タッチプローブ(接触検出手段) 7 軸制御部(軸制御手段) 10 スキップ条件判断手段 Sg1 スキップ信号 Sg3 スキップ指令 Sg4 軸停止指令 DESCRIPTION OF SYMBOLS 1 Numerical control device 2 Touch probe (contact detection means) 7 Axis control unit (axis control means) 10 Skip condition determination means Sg1 Skip signal Sg3 Skip command Sg4 Axis stop command

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] 【請求項1】 プログラムの各ブロックの命令で処理を
実行するとともに、外部の接触検出手段から入力される
スキップ信号によって強制的に処理を中止し、次ブロッ
クの処理に移行するスキップ機能を有する数値制御装置
において、上記スキップ信号が入力されたとき当該実行
中のブロックにスキップ命令が存在するか否かを判断す
るスキップ条件判断手段と、スキップ命令が存在しない
と判断されたとき軸移動を停止するための軸停止指令を
出力する軸制御手段とを備えたことを特徴とする数値制
御装置。
1. A numerical value having a skip function for executing processing by an instruction of each block of a program, forcibly stopping the processing by a skip signal input from an external contact detection means, and shifting to processing of the next block. In the control device, when the skip signal is input, skip condition determining means for determining whether or not a skip instruction exists in the block being executed, and axis movement is stopped when it is determined that the skip instruction does not exist. And a shaft control means for outputting a shaft stop command for the purpose of the numerical control device.
JP1993059095U 1993-11-02 1993-11-02 Numerical control unit Expired - Fee Related JP2606240Y2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1993059095U JP2606240Y2 (en) 1993-11-02 1993-11-02 Numerical control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1993059095U JP2606240Y2 (en) 1993-11-02 1993-11-02 Numerical control unit

Publications (2)

Publication Number Publication Date
JPH0731254U true JPH0731254U (en) 1995-06-13
JP2606240Y2 JP2606240Y2 (en) 2000-10-10

Family

ID=13103436

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1993059095U Expired - Fee Related JP2606240Y2 (en) 1993-11-02 1993-11-02 Numerical control unit

Country Status (1)

Country Link
JP (1) JP2606240Y2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012018093A (en) * 2010-07-08 2012-01-26 Mori Seiki Co Ltd Tool length measuring process and tool length measuring device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012018093A (en) * 2010-07-08 2012-01-26 Mori Seiki Co Ltd Tool length measuring process and tool length measuring device

Also Published As

Publication number Publication date
JP2606240Y2 (en) 2000-10-10

Similar Documents

Publication Publication Date Title
JP3923053B2 (en) Robot teaching device
EP1243992B1 (en) Tool presetter and tool offset amount calculation method
CN101249618A (en) Machine tool having workpiece reference position setting function by contact detection
US20190266296A1 (en) Machining simulation device of machine tool
US11740062B2 (en) Control device, measurement system, and measurement method
US5491638A (en) Method of controlling a coordinate measuring apparatus
US6856853B2 (en) Simulation device
CN110737241B (en) Numerical control device, numerical control method, and storage device storing numerical control program
JPH0731254U (en) Numerical control device
JP3405744B2 (en) Measuring method of workpiece and time-dependent change in machine tool
US10996655B2 (en) Numerical controller
JPH1195821A (en) Contact detection method and device therefor
JP3064043B2 (en) Machining method in which workpiece deformation due to clamp is corrected, and NC machine tool for implementing the method
JP4549150B2 (en) Interference area setting method for machine tools
JP4396554B2 (en) Numerical control apparatus, numerical control method, and control program
WO2023228356A1 (en) Numerical control device and computer-readable storage medium
WO2024116223A1 (en) Robot control device
JPH07210228A (en) Control method for measuring system using nc machine tool
JP4066178B2 (en) Machine tool and its abnormality inspection method
JP2005040929A (en) Machining center
JP4441367B2 (en) Method of welding workpieces using a welding robot
KR100224862B1 (en) Apparatus and method for callibration of robot arm
JP3855629B2 (en) Robot interference detection device
JP5547601B2 (en) Numerical controller
JPH0655407A (en) Collision prevention device of machine tool

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20000704

LAPS Cancellation because of no payment of annual fees