JPH01244513A - Numerical controller - Google Patents

Numerical controller

Info

Publication number
JPH01244513A
JPH01244513A JP7119488A JP7119488A JPH01244513A JP H01244513 A JPH01244513 A JP H01244513A JP 7119488 A JP7119488 A JP 7119488A JP 7119488 A JP7119488 A JP 7119488A JP H01244513 A JPH01244513 A JP H01244513A
Authority
JP
Japan
Prior art keywords
tool
command
movement
block
detecting means
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP7119488A
Other languages
Japanese (ja)
Inventor
Akira Nagamine
永峰 侃
Mitsuo Kinoshita
木下 三男
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.)
Fanuc Corp
Original Assignee
Fanuc 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 Fanuc Corp filed Critical Fanuc Corp
Priority to JP7119488A priority Critical patent/JPH01244513A/en
Publication of JPH01244513A publication Critical patent/JPH01244513A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the measurement precision of a work position and a tool position and to perform the automatic measurement processing free from destruction of a tool or the like by detecting a stop position in a position detecting block executed with the skip signal from a detecting means. CONSTITUTION:A detecting means like a position detecting sensor is arranged in a movement route where the tool is moved, and the skip signal is inputted from the detecting means to an input circuit 8 when a work or the tool is brought into contact with this detecting means. Current limitation of the servo motor of a moving axis is commanded from an output circuit 5. At this time, a program command block is advanced to the next by the skip signal to command abortion of movement. Error data of each shaft stored in a servo control part as an extent of movement which is not executed out of the movement extent command value commanded from the output circuit 5 is subtracted from this movement extent command value to operate the stop position of the axis, which is actually stopped by current limitation, by the operation commanded by the next command block in a CPU 1. Thus, a numerical controller is obtained which improves the measurement precision and is free from destruction of the tool or the like.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、スキップ機能を利用して自動計測処理を行な
う数値制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a numerical control device that performs automatic measurement processing using a skip function.

(従来の技術) 通常の数値制御工作機械で加工精度を向上させるために
は、指令プログラムに対する工具やワークの位置を正確
に知ることが重要になる。こうした位置の測定にあたっ
て、従来からスキップ機能が利用され、あるいは工具長
の測定には工具長自動測定機能が利用されていた。後者
は、例えばG37・・・;を指令し、工具を所定の測定
位置に向かって移動させ、途中で速度を低下させながら
測定器から測定位置到達信号が出るまで移動させ、測定
位置にくると、自動的に工具移動を停止して、測定位置
に到達した時の座標値と指令された座標値との差から工
具長を補正しようとするものである。
(Prior Art) In order to improve machining accuracy with ordinary numerically controlled machine tools, it is important to accurately know the positions of tools and workpieces relative to command programs. Conventionally, a skip function has been used to measure such positions, or an automatic tool length measurement function has been used to measure tool length. The latter commands, for example, G37...;, moves the tool toward a predetermined measurement position, reduces the speed along the way, and moves until a measurement position arrival signal is output from the measuring instrument, and when it reaches the measurement position. , the tool movement is automatically stopped and the tool length is corrected based on the difference between the coordinate values when the measurement position is reached and the commanded coordinate values.

また、前者では、例えばG31・・・;を指令し、それ
に続く指令として位置表示指令を与え、この指令の途中
に外部からスキップ信号を人力してこの残りの指令を中
止し、次のブロックを実行する。この場合に、スキップ
信号としてリミットスイッチなどから位置検出信号を外
部から丁度良いタイミングで入れて、強制的に穆動指令
ブロックを中断し、動作終了としていた。
In the former case, for example, G31...; is given, a position display command is given as a subsequent command, and in the middle of this command, a skip signal is input from the outside to cancel the remaining commands, and the next block is started. Execute. In this case, a position detection signal from a limit switch or the like is externally input as a skip signal at just the right timing to forcibly interrupt the movement command block and terminate the operation.

(発明が解決しようとする課題) このような従来の数値制御装置で自動計測処理を行なう
とぎ、スキップ機能によりワークの位置あるいは工具の
位置を検出する際に、検出器からのスキップ信号にノイ
ズが含まれていたり、検出器が正常に作用しなかったと
き、あるいは移動速度が犬ぎすぎるとサーボの遅れなど
により検出精度が低下し、検出位置が不正確になる。ま
た、工具やワークが検出器と衝突して破損するおそれか
生じるなどの問題があった。
(Problem to be Solved by the Invention) When performing automatic measurement processing with such a conventional numerical control device, noise is generated in the skip signal from the detector when detecting the position of the workpiece or tool using the skip function. If the sensor is included, the detector does not work properly, or the moving speed is too fast, the detection accuracy will decrease due to servo delays and the detected position will become inaccurate. Further, there is a problem that the tool or workpiece may collide with the detector and be damaged.

本発明は、上記課題を解決するためになされたもので、
スキップ機能を利用して自動計測する上で、開側精度を
高め、かつ工具等の破損の恐れのない数値制御装置を提
供することを目的としている。
The present invention was made to solve the above problems, and
The purpose of the present invention is to provide a numerical control device that increases the accuracy of the opening side and eliminates the risk of damage to tools and the like when performing automatic measurements using a skip function.

(課題を解決するための手段) 本発明によれば、移動指令ブロックの実行を所定のタイ
ミングで打ち切り、次の指令ブロックを実行するスキッ
プ機能に基づいて軸を駆動することにより、ワーク位置
或は工具長の検出を行なう数値制御装置において、被検
出位置に設置される検出手段と、軸駆動トルクの制限を
指令する指令手段と、前記軸のトルク制限指令による停
止位置を移動量指令値と軸毎の誤差データとから演算す
る演算手段とを具備し、前記検出手段からのスキップ信
号により実行される位置検出ブロックで停止位置の検出
を行なうことを特徴とする数値制御装置を提供できる。
(Means for Solving the Problems) According to the present invention, the workpiece position or In a numerical control device that detects tool length, there is a detection means installed at a detected position, a command means for commanding a limit on shaft drive torque, and a stop position according to a torque limit command for the axis, which is determined by a movement amount command value and an axis. It is possible to provide a numerical control device characterized in that the stop position is detected by a position detection block executed by a skip signal from the detection means.

(作用) 本発明の数値制御装置では、自動計測処理にあたって検
出手段と軸とが干渉した際に、軸駆動l・ルクを制限す
ることで過大トルクを制限し、かつ指令された移動量指
令値と軸毎の誤差データとから正確に停止位置の決定が
行なえる。
(Function) In the numerical control device of the present invention, when there is interference between the detection means and the shaft during automatic measurement processing, excessive torque is limited by limiting the shaft drive l/rook, and the specified movement amount command value is The stopping position can be determined accurately from the error data for each axis.

(実施例) 以下、本発明の一実施例を図面に従って詳細に説明する
(Example) Hereinafter, an example of the present invention will be described in detail with reference to the drawings.

第1図は、本発明の数値制御装置の一実施例を示すブロ
ック図である。1は中央処理装置(CPU)、2は数値
制御装置全体の制御を行なうプログラムが記憶されてい
るROM、3は演算処理等に使用されるRAM、4は不
揮発性メモリで、加工を行なう指令プログラムを記憶す
る。5は、工作機械等のサーボモータ等に接続される出
力回路である。テープリーダ6は、指令プログラムが記
憶されたNCテープ7を読み取るためのもので、指令内
容が上記不揮発性メモリ4に格納される。
FIG. 1 is a block diagram showing an embodiment of the numerical control device of the present invention. 1 is a central processing unit (CPU), 2 is a ROM that stores a program that controls the entire numerical control device, 3 is a RAM used for arithmetic processing, etc., and 4 is a nonvolatile memory that stores command programs for machining. remember. 5 is an output circuit connected to a servo motor or the like of a machine tool or the like. The tape reader 6 is for reading an NC tape 7 on which a command program is stored, and the contents of the command are stored in the nonvolatile memory 4.

なお、不揮発性メモリ4を設けることなく、NCテープ
から直接指令内容を入力して処理しても良い。8は入力
回路であり、この入力回路8に所定のスキップ信号が人
力したとき、スキップ機能が実行される。
Note that the command contents may be input directly from the NC tape and processed without providing the nonvolatile memory 4. 8 is an input circuit, and when a predetermined skip signal is input to this input circuit 8, a skip function is executed.

上記構成の数値制御装置は、指令プログラムに含まれる
移動指令ブロックの実行を所定のタイミングで打ち切り
、次の指令ブロックを実行するスキップ機能が、例えは
準備機能コードG31により与えられる。この準備機能
コードG31に基づいて軸を駆動することにより、ワー
ク位置或は工具長の検出が自動的に行なわれる。
The numerical control device configured as described above is provided with a skip function, for example, by the preparation function code G31, to terminate the execution of the movement command block included in the command program at a predetermined timing and execute the next command block. By driving the axis based on this preparation function code G31, the workpiece position or tool length is automatically detected.

つまりワークあるいは工具を移動する移動経路に位置検
出用のセンサなとの検出手段を配置し、この検出手段に
ワークや工具が接触したときそこからスキップ信号が入
力回路8から人力される。
In other words, a detection means such as a sensor for position detection is placed on the movement path of the workpiece or tool, and when the workpiece or tool comes into contact with this detection means, a skip signal is manually inputted from the input circuit 8.

これにより、出力回路5からは、移動中の軸のサーボモ
ータの電流制限が指令される。このときスキップ信号に
よりプログラム指令ブロックが次に進み、移動の打ち切
りが指令される。電流制限されて実際に停止した軸の停
止位置は、CPU 1における次の指令ブロックで指令
される演算により、出力回路8から指令された移動量指
令値から、この指令のうち実行されなかった移動量とし
てサーボ制御部に記憶される軸毎の誤差データを差し引
くことで、演算される。
As a result, the output circuit 5 issues a command to limit the current of the servo motor of the moving axis. At this time, the skip signal causes the program command block to advance to the next one and commands to abort the movement. The stop position of the axis that actually stopped due to current restriction is determined from the movement amount command value commanded from the output circuit 8 by calculation commanded in the next command block in the CPU 1. It is calculated by subtracting the error data for each axis stored in the servo control unit as a quantity.

第2図は、本発明の詳細な説明する流れ図である。自動
計測処理プログラムにより、RAM3から処理ブロック
中のGコードを読み取って、それがスキップ機能命令(
G31)の場合に(ステップa)、サーボ制御部に電流
制限を指令し、工具の移動による検出器との干渉をチエ
ツクする(ステップb)。
FIG. 2 is a detailed flow diagram of the present invention. The automatic measurement processing program reads the G code in the processing block from RAM3 and indicates that it is a skip function command (
In the case of G31) (step a), the servo control section is commanded to limit the current, and interference with the detector due to tool movement is checked (step b).

干渉により検出されるスキップ信号が人力することによ
り(ステップc)、スキップ処理が行なわれる。つまり
、スキップ信号により移動を打ち切る。電流制限される
ことによって工具は検出器に接触した状態で停止し、そ
の後に移動指令が与えられると、それはサーボ制御部の
誤差回路中のエラー量として記憶されるので、次の処理
ブロックに進んだとき、そのエラー量が読み取られる(
ステップe)。このスキップ処理により指令された停止
指令位置とエラー量との差が検出位置として演算され、
表示される(ステップf)。これが工具の実際の停止位
置を示すから、正確な位置検出が可能になる。なお、ト
ルク制限と同時に誤差過大エラーチエツク機能や、イン
ポジションチエツク機能は停止しておく必要がある。
Skip processing is performed by manually applying a skip signal detected due to interference (step c). In other words, the movement is terminated by the skip signal. By limiting the current, the tool stops in contact with the detector, and when a movement command is given after that, it is stored as an error amount in the error circuit of the servo control section, and the tool proceeds to the next processing block. , the amount of error is read (
Step e). The difference between the stop command position commanded by this skip processing and the error amount is calculated as the detected position,
displayed (step f). Since this indicates the actual stop position of the tool, accurate position detection is possible. Note that it is necessary to stop the excessive error check function and the in-position check function at the same time as limiting the torque.

以上、この発明をある程度詳細にその最も好ましい実施
態様について説明したが、その好ましい実施態様の説明
は、構成の詳細な部分についての変形、特許請求の範囲
に記載された本発明の精神に反しない限りでの種々な変
形、あるいはそれらを組み合わせたものに変更すること
ができることは明らかである。
As above, this invention has been described in some detail with respect to its most preferred embodiment, but the description of the preferred embodiment does not include variations in detailed parts of the configuration or contrary to the spirit of the invention as described in the claims. It is clear that various modifications or combinations thereof may be made.

(発明の効果) 以上説明したように、本発明によれば、ワーク位置や工
具位置の計測精度を高め、かつ工具等の破損の恐れのな
い自動計測処理が可能な数値制御装置を提供できる。
(Effects of the Invention) As described above, according to the present invention, it is possible to provide a numerical control device that can improve the measurement accuracy of workpiece positions and tool positions and can perform automatic measurement processing without fear of damage to tools and the like.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は、本発明の一実施例を示すブロック図、第2図
は、上記実施例の動作説明図である。 1・・・CPU、4・・・不揮発性メモリ、5・・・出
力回路。 特許出願人 ファナック株式会社 代 理 人 弁理士 辻   實 第2図
FIG. 1 is a block diagram showing one embodiment of the present invention, and FIG. 2 is an explanatory diagram of the operation of the above embodiment. 1...CPU, 4...Nonvolatile memory, 5...Output circuit. Patent applicant: Representative of FANUC Co., Ltd. Patent attorney: Minoru Tsuji Figure 2

Claims (1)

【特許請求の範囲】[Claims]  移動指令ブロックの実行を所定のタイミングで打ち切
り、次の指令ブロックを実行するスキップ機能に基づい
て軸を駆動することにより、ワーク位置或は工具長の検
出を行なう数値制御装置において、被検出位置に設置さ
れる検出手段と、軸駆動トルクの制限を指令する指令手
段と、前記軸のトルク制限指令による停止位置を移動量
指令値と軸毎の誤差データとから演算する演算手段とを
具備し、前記検出手段からのスキップ信号により実行さ
れる位置検出ブロックで停止位置の検出を行なうことを
特徴とする数値制御装置。
In a numerical control device that detects the workpiece position or tool length, the execution of the movement command block is stopped at a predetermined timing and the axis is driven based on the skip function that executes the next command block. The apparatus comprises a detection means installed, a command means for commanding the limitation of the shaft drive torque, and a calculation means for calculating the stop position of the shaft according to the torque limit command from the movement amount command value and the error data for each axis, A numerical control device characterized in that a stop position is detected by a position detection block executed by a skip signal from the detection means.
JP7119488A 1988-03-25 1988-03-25 Numerical controller Pending JPH01244513A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7119488A JPH01244513A (en) 1988-03-25 1988-03-25 Numerical controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7119488A JPH01244513A (en) 1988-03-25 1988-03-25 Numerical controller

Publications (1)

Publication Number Publication Date
JPH01244513A true JPH01244513A (en) 1989-09-28

Family

ID=13453615

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7119488A Pending JPH01244513A (en) 1988-03-25 1988-03-25 Numerical controller

Country Status (1)

Country Link
JP (1) JPH01244513A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05282017A (en) * 1992-03-31 1993-10-29 Fanuc Ltd Skip control method of numerical controller

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62175810A (en) * 1986-01-29 1987-08-01 Omron Tateisi Electronics Co Industrial robot controller

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62175810A (en) * 1986-01-29 1987-08-01 Omron Tateisi Electronics Co Industrial robot controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05282017A (en) * 1992-03-31 1993-10-29 Fanuc Ltd Skip control method of numerical controller

Similar Documents

Publication Publication Date Title
US4281385A (en) Control system for a machine tool
JP2807461B2 (en) Three-dimensional shape processing laser device
EP0510204A4 (en) Method of evaluating operating accuracy in numerically controlled machine.
JPH03180909A (en) Numerical controller
JPH01244513A (en) Numerical controller
KR0132901B1 (en) Numerical control apparatus
JP3648054B2 (en) Automatic determination method of spindle or attachment correction value
JP2581725B2 (en) Three-dimensional shape processing laser device
EP0204001B1 (en) Device for measuring moving distance of a numerical control apparatus
JP2002328707A (en) Numerical controller
JPH07210228A (en) Control method for measuring system using nc machine tool
KR100224862B1 (en) Apparatus and method for callibration of robot arm
JPS63191552A (en) Numerically controlled (nc) machine tool equipped with measurement probe error compensation function
JPH0646848U (en) Tool breakage detector
JPH04111003A (en) Nc device
JPH0553586B2 (en)
KR100458453B1 (en) A correction apparatus and correction method for a automatic lathe
JPS597546A (en) Measuring method of tool length
JPH0566820A (en) Numerical controller having measuring function
JPH0731254U (en) Numerical control device
JPS61188095A (en) Position controller in industrial robot
JPS60146652A (en) Tool length measuring method
JPH01210250A (en) Skip position control device
JPS62241640A (en) Workpiece mounting error correction device in machining center
JPH0351549B2 (en)