JPH07281720A - Coordinate error detecting system - Google Patents

Coordinate error detecting system

Info

Publication number
JPH07281720A
JPH07281720A JP6695494A JP6695494A JPH07281720A JP H07281720 A JPH07281720 A JP H07281720A JP 6695494 A JP6695494 A JP 6695494A JP 6695494 A JP6695494 A JP 6695494A JP H07281720 A JPH07281720 A JP H07281720A
Authority
JP
Japan
Prior art keywords
coordinate
machine
command
error detection
time
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
JP6695494A
Other languages
Japanese (ja)
Inventor
Eiji Genma
栄治 弦間
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 JP6695494A priority Critical patent/JPH07281720A/en
Publication of JPH07281720A publication Critical patent/JPH07281720A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide the coordinate error detecting system for a numerical controller so as to detect the error of machine coordinates caused by the fault of a work program to command move with an incremental dimension. CONSTITUTION:A work program 1 contains a coordinate error detecting command. A preprocessing arithmetic means 2 decodes the work program 1 and outputs a coordinate error detecting command and a moving command for a machine tool. A machine coordinate calculating means 3 judges whether the coordinate error detecting command is executed for the first time or after the second time and calculates the machine coordinate of the machine tool. A coordinate storage means 4 stores the machine coordinate in the case of the first coordinate error detecting command as a reference coordinate. A coordinate comparing means 5 compares the machine coordinate in the case of the coordinate error detecting command after the second time with the reference coordinate. When the machine coordinate is not matched with the reference coordinate, the execution of the work program is finished. Thus, since processing can be finished when there is any fault in the work program, it is not necessary to fix a position at a work starting point each time one work is finished.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は数値制御装置の座標誤差
検出方式に関し、特にインクレメンタルディメンション
で移動指令をする加工プログラムを繰り返し実行する数
値制御装置の座標誤差検出方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a coordinate error detection method for a numerical control device, and more particularly to a coordinate error detection method for a numerical control device that repeatedly executes a machining program that gives a movement command in incremental dimensions.

【0002】[0002]

【従来の技術】数値制御装置が加工を行う際に工具の移
動を指令する方法として、インクレメンタルディメンシ
ョン指令がある。インクレメンタルディメンション指令
は、現在位置からの移動量によって目的の位置を表す指
令方法である。
2. Description of the Related Art Incremental dimension command is a method for commanding the movement of a tool when a numerical controller performs machining. The incremental dimension command is a command method that represents a target position by the amount of movement from the current position.

【0003】図6は従来の方法によるインクレメンタル
ディメンション指令での加工を示す図である。これは、
ワーク7aを工具8aで旋削加工を行う場合であり、各
点(P10、P11、P12、P13、P14)の間の
移動はインクレメンタルディメンションで指令される。
FIG. 6 is a diagram showing processing by an incremental dimension command according to a conventional method. this is,
In the case where the workpiece 7a is turned by the tool 8a, the movement between the points (P10, P11, P12, P13, P14) is commanded by the incremental dimension.

【0004】先ず、加工開始点P10から点P11まで
を早送りで移動する。この点P11からワーク7aの切
削が開始される。点P11から点P12まで直線補間を
行う。点P12から点P13まで円弧補間を行う。点P
13、点P14まで直線補間を行う。最後に、加工開始
点P10で位置決めを行い、ワーク7aの切削が終了す
る。ワーク7aは切削が終わると、バーフィーダによっ
て次のワークと交換され、新たなワークは同じ切削経路
により加工される。
First, the machining start point P10 to point P11 is moved by fast-forwarding. The cutting of the work 7a is started from this point P11. Linear interpolation is performed from point P11 to point P12. Circular interpolation is performed from point P12 to point P13. Point P
13, linear interpolation is performed up to point P14. Finally, positioning is performed at the processing start point P10, and the cutting of the work 7a is completed. When the work 7a has been cut, the bar feeder replaces it with the next work, and the new work is processed by the same cutting path.

【0005】このように、数値制御装置は同じ加工を繰
り返し、加工が1サイクル終わるごとにバーフィーダに
よってワークを交換することによって、次々にワークを
加工することができる。
As described above, the numerical control device repeats the same machining, and the work can be machined one after another by exchanging the work by the bar feeder every one cycle of the machining.

【0006】[0006]

【発明が解決しようとする課題】しかし、従来の数値制
御装置では、加工が1サイクル終わるごとに工具を加工
開始点に戻さなければならなかった。そのため、ワーク
を一つ切削するのに余計な時間がかかり、加工効率を悪
くしていた。加工すべきワークが多いほど、加工効率の
悪さが問題になる。
However, in the conventional numerical control device, the tool had to be returned to the machining start point after each machining cycle. Therefore, it takes an extra time to cut one work, which deteriorates the processing efficiency. The more workpieces to be machined, the worse the machining efficiency becomes.

【0007】工具を加工開始点に戻さずに続けて切削を
行えるようにすれば加工効率を上げることができるが、
インクレメンタルディメンション指令する際のプログラ
ミングミスによる機械座標に誤差があった場合、繰り返
し実行することによって誤差が累積してしまう。そし
て、機械座標のずれが大きくなり切削後のワークの寸法
が狂ってしまう。そのため、工具を加工開始点に戻さず
に続けて切削を行うことができず、必ず1サイクルごと
に加工開始点で位置決めを行う必要があった。
Although it is possible to improve the machining efficiency by making it possible to continue cutting without returning the tool to the machining start point,
If there is an error in the machine coordinates due to a programming error when instructing the incremental dimension, the error will be accumulated by repeatedly executing it. Then, the deviation of the machine coordinates becomes large, and the dimension of the work after cutting becomes incorrect. Therefore, it is not possible to continue cutting without returning the tool to the processing start point, and it is necessary to perform positioning at the processing start point every cycle.

【0008】このように、工具を加工開始点に戻さずに
続けて切削を行うと、加工プログラムの間違いにより機
械座標に誤差があった場合に、その誤差が累積して不良
ワークが発生してしまう。そして、その加工プログラム
の間違いを検出する手段がなかった。そのため、工具を
加工開始点に戻さずに続けて切削することができないと
いう問題があった。
As described above, when cutting is continued without returning the tool to the machining start point, if there is an error in the machine coordinates due to an error in the machining program, the error accumulates and a defective work piece occurs. I will end up. And there was no means to detect the mistake of the machining program. Therefore, there is a problem that the tool cannot be continuously cut without returning to the machining start point.

【0009】本発明はこのような点に鑑みてなされたも
のであり、インクレメンタルディメンションで移動指令
をする加工プログラムの間違いによる機械座標の誤差を
検出できる数値制御装置の座標誤差検出方式を提供する
ことを目的とする。
The present invention has been made in view of the above circumstances, and provides a coordinate error detection method for a numerical control device capable of detecting an error in a machine coordinate due to an error in a machining program that gives a movement command in the incremental dimension. The purpose is to

【0010】[0010]

【課題を解決するための手段】本発明では上記課題を解
決するために、インクレメンタルディメンションで移動
指令をする加工プログラムを繰り返し実行する数値制御
装置の座標誤差検出方式において、座標誤差検出指令を
含む加工プログラムを解読し、前記座標誤差検出指令と
工具の移動指令とを出力する前処理演算手段と、前記座
標誤差検出指令が出力されると、前記座標誤差検出指令
が1回目か2回目以降かを判断するとともに、工具の機
械座標を算出する機械座標算出手段と、1回目の前記座
標誤差検出指令の際の機械座標を、基準座標として格納
する座標記憶手段と、2回目以降の前記座標誤差検出指
令の際の機械座標と前記基準座標とを比較し、機械座標
と前記基準座標とが不一致の場合には加工プログラムの
実行を終了させる座標比較手段と、を有することを特徴
とする座標誤差検出方式が提供される。
In order to solve the above problems, the present invention includes a coordinate error detection command in a coordinate error detection method of a numerical control device that repeatedly executes a machining program that gives a movement command in incremental dimensions. When the preprocessing operation means for decoding the machining program and outputting the coordinate error detection command and the tool movement command and the coordinate error detection command are output, whether the coordinate error detection command is the first time or the second time or later. Machine coordinate calculation means for calculating the machine coordinate of the tool, the coordinate storage means for storing the machine coordinate at the time of the first coordinate error detection command as the reference coordinate, and the second and subsequent coordinate errors. The machine coordinates at the time of the detection command are compared with the reference coordinates, and when the machine coordinates do not match the reference coordinates, the execution of the machining program is terminated. Coordinate error detection method characterized by having a standard comparator, is provided.

【0011】[0011]

【作用】加工プログラムは、座標誤差検出指令を含んで
いる。前処理演算手段は、加工プログラムを解読し、座
標誤差検出指令と工具の移動指令とを出力する。機械座
標算出手段は、座標誤差検出指令の実行が1回目か、も
しくは2回目以降かを判断するとともに工具の機械座標
を算出する。座標記憶手段は、1回目の座標誤差検出指
令の際の機械座標を基準座標として格納する。座標比較
手段は、2回目以降の座標誤差検出指令の際に、そのと
きの機械座標と基準座標とを比較する。そして、機械座
標と基準座標とが不一致の場合には加工プログラムの実
行を終了させる。
The machining program includes a coordinate error detection command. The preprocessing calculation means decodes the machining program and outputs a coordinate error detection command and a tool movement command. The machine coordinate calculating means determines whether the execution of the coordinate error detection command is the first time or the second time and thereafter, and calculates the machine coordinate of the tool. The coordinate storage means stores the machine coordinate at the time of the first coordinate error detection command as the reference coordinate. The coordinate comparison means compares the machine coordinates at that time with the reference coordinates at the second and subsequent coordinate error detection commands. Then, when the machine coordinates and the reference coordinates do not match, the execution of the machining program is ended.

【0012】[0012]

【実施例】以下、本発明の一実施例を図面に基づいて説
明する。図1は本発明の概略構成を示すブロック図であ
る。加工プログラム1は、インクレメンタルディメンシ
ョン指令での加工を繰り返し行うためにプログラムされ
ており、座標誤差検出指令を含んでいる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a schematic configuration of the present invention. The machining program 1 is programmed to repeatedly perform machining with the incremental dimension command, and includes a coordinate error detection command.

【0013】前処理演算手段2は加工プログラム1を解
読し、座標誤差検出指令は機械座標算出手段3に出力
し、軸の移動指令は補間手段6に出力する。補間手段6
は、移動指令をうけて補間処理を行い補間パルスを出力
する。軸制御回路18は補間パルスに従ってサーボアン
プ19に移動指令を出力し、サーボアンプ19はその指
令に従いサーボモータ24を駆動する。この図において
は説明を分かりやすくするために、軸制御回路18、サ
ーボアンプ19、およびサーボモータ24は一つずつし
か図示していないが、実際には各移動軸ごとにそれぞれ
設けられている。
The preprocessing operation means 2 decodes the machining program 1, outputs a coordinate error detection command to the machine coordinate calculation means 3, and outputs an axis movement command to the interpolation means 6. Interpolation means 6
Receives the movement command, performs interpolation processing, and outputs an interpolation pulse. The axis control circuit 18 outputs a movement command to the servo amplifier 19 according to the interpolation pulse, and the servo amplifier 19 drives the servo motor 24 according to the command. Although only one axis control circuit 18, one servo amplifier 19 and one servo motor 24 are shown in the figure for easy understanding of the description, each axis is actually provided for each moving axis.

【0014】機械座標算出手段3は、座標誤差検出指令
を受け取ると、そのときの機械座標を求める。つまり、
工具はインクレメンタルディメンション指令で移動して
いるため、そのときの機械座標は加工プログラムでは指
定されていない。そのため、加工開始点からのインクレ
メンタルディメンションの値を全て加算することによっ
て、現在の機械座標を求める。さらに、座標誤差検出指
令の実行が1回目であるか、あるいは2回目以降である
かを判断する。
Upon receiving the coordinate error detection command, the machine coordinate calculation means 3 obtains the machine coordinate at that time. That is,
Since the tool is moved by the incremental dimension command, the machine coordinates at that time are not specified in the machining program. Therefore, the current machine coordinates are obtained by adding all the values of the incremental dimension from the processing start point. Further, it is determined whether the coordinate error detection command has been executed for the first time or after the second time.

【0015】座標記憶手段4は、座標誤差検出指令の実
行が1回目の場合に、前処理演算手段2で求められた機
械座標を格納する。この格納された機械座標を基準座標
とする。座標比較手段5は、座標誤差検出指令の実行が
2回目以降の場合に、前処理演算手段2で求められた機
械座標と基準座標とを比較する。その結果不一致だった
場合、前処理演算手段2に対し加工プログラム1の実行
を終了させると同時に、グラフィック制御回路15にア
ラームメッセージの出力指令を出力する。グラフィック
制御回路15はアラームメッセージの出力指令を受け取
ると、表示装置16にアラームメッセージを表示する。
The coordinate storage means 4 stores the machine coordinates obtained by the preprocessing operation means 2 when the coordinate error detection command is executed for the first time. The stored machine coordinates are used as reference coordinates. The coordinate comparison means 5 compares the machine coordinates obtained by the preprocessing operation means 2 with the reference coordinates when the coordinate error detection command is executed for the second time and thereafter. If they do not coincide with each other as a result, the execution of the machining program 1 is terminated for the preprocessing operation means 2, and at the same time, an output command of an alarm message is output to the graphic control circuit 15. Upon receiving the alarm message output command, the graphic control circuit 15 displays the alarm message on the display device 16.

【0016】図2は本発明を実施するための数値制御装
置のハードウェアの概略構成図である。プロセッサ11
はROM12に格納されたシステムプログラムに従って
数値制御装置全体を制御する。RAM13には加工プロ
グラム、各種のデータ、および基準座標が格納される。
不揮発性メモリ14は、電源切断後も保持すべきパラメ
ータ、ピッチ誤差補正量、工具補正量等が格納されてい
る。
FIG. 2 is a schematic block diagram of the hardware of the numerical controller for implementing the present invention. Processor 11
Controls the entire numerical controller according to the system program stored in the ROM 12. The RAM 13 stores a machining program, various data, and reference coordinates.
The non-volatile memory 14 stores parameters, pitch error correction amounts, tool correction amounts, etc. that should be retained even after the power is turned off.

【0017】グラフィック制御回路15はディジタル信
号を表示用の信号に変換し、表示装置16に与える。表
示装置16にはCRTあるいは液晶表示装置が使用され
る。表示装置16は対話形式で加工プログラムを作成し
ていくときに、形状、加工条件、および座標誤差が検出
された際のアラームメッセージ等を表示する。キーボー
ド17はシンボリックキー、数値キー等からなり、必要
な図形データ、NCデータをこれらのキーを使用して入
力する。グラフィック制御回路15、表示装置16、ソ
フトウェアキー23、およびキーボード17でCRT/
MDI装置25を構成している。
The graphic control circuit 15 converts the digital signal into a signal for display and gives it to the display device 16. A CRT or a liquid crystal display device is used as the display device 16. The display device 16 displays a shape, a machining condition, an alarm message when a coordinate error is detected, and the like when the machining program is created interactively. The keyboard 17 is composed of symbolic keys, numerical keys, etc., and necessary graphic data and NC data are input using these keys. The graphic control circuit 15, the display device 16, the software key 23, and the keyboard 17 are used for CRT /
The MDI device 25 is configured.

【0018】軸制御回路18はプロセッサ11から、軸
の移動指令を受けて、その移動指令をサーボアンプ19
に出力する。サーボアンプ19は移動指令を受けて、工
作機械20のサーボモータを駆動する。これらの構成要
素はバス21によって互いに結合されている。
The axis control circuit 18 receives an axis movement command from the processor 11 and outputs the movement command to the servo amplifier 19
Output to. The servo amplifier 19 receives the movement command and drives the servo motor of the machine tool 20. These components are coupled to each other by a bus 21.

【0019】プログラマブル・マシン・コントローラ
(PMC)22はNCプログラムの実行時に、バス21
経由でT機能信号(工具選択指令)等を受け取る。そし
て、この信号をシーケンス・プログラムで処理して、動
作指令として信号を出力し、工作機械20を制御する。
また、工作機械20から状態信号を受けて、シーケンス
処理を行い、バス21を経由して、プロセッサ11に必
要な入力信号を転送する。
The programmable machine controller (PMC) 22 uses the bus 21 when executing the NC program.
Receives T function signal (tool selection command) etc. via. Then, this signal is processed by the sequence program, a signal is output as an operation command, and the machine tool 20 is controlled.
Further, it receives a status signal from the machine tool 20, performs a sequence process, and transfers a necessary input signal to the processor 11 via the bus 21.

【0020】図3は本発明によるワークの加工例を示す
図である。これは旋削加工であり、この図において各点
間(P0〜P1、P1〜P2、P2〜P3、P3〜P
4、P4〜P5、P5〜P6、P6〜P1)の工具8の
移動は、インクレメンタルディメンション指令である。
工具8は加工開始点P0から点P1へ早送りで移動した
後、点P1からワーク7の切削が開始される。点P1か
ら点P2までは直線補間、点P2から点P3は円弧補
間、点P3から点P4は直線補間である。そして、点P
4から点P5まで早送りで移動した後、座標誤差検出指
令が出されると、点P5の機械座標を算出しRAM13
(図2に示す)に格納する。この格納された座標が基準
座標である。その後、早送りで点P6に移動し、さらに
点P1に移動する。この間に、ワーク7はバーフィーダ
によって次のワークと交換される。これで1回目のサイ
クルが終わる。
FIG. 3 is a view showing an example of machining a work according to the present invention. This is a turning process, and in this figure, between points (P0 to P1, P1 to P2, P2 to P3, P3 to P).
4, P4-P5, P5-P6, P6-P1) movement of the tool 8 is an incremental dimension command.
The tool 8 moves from the machining start point P0 to the point P1 by rapid feed, and then the cutting of the work 7 is started from the point P1. The points P1 to P2 are linearly interpolated, the points P2 to P3 are circularly interpolated, and the points P3 to P4 are linearly interpolated. And the point P
When the coordinate error detection command is issued after moving from 4 to the point P5 by fast-forwarding, the machine coordinate of the point P5 is calculated and the RAM 13
(Shown in FIG. 2). The stored coordinates are the reference coordinates. After that, it moves fast to point P6 and then to point P1. During this time, the work 7 is exchanged for the next work by the bar feeder. This completes the first cycle.

【0021】2回目のサイクルでは、P1からP5まで
は1回目のサイクルと同じである。そして、点P5に移
動した後、座標誤差検出指令が出されると、点P5の機
械座標が算出する。そして、算出された機械座標と基準
座標とを比較する。比較の結果一致すれば加工を継続す
る。逆に、不一致の場合は加工を終了する。
In the second cycle, P1 to P5 are the same as the first cycle. Then, when the coordinate error detection command is issued after moving to the point P5, the machine coordinate of the point P5 is calculated. Then, the calculated machine coordinates are compared with the reference coordinates. If they match as a result of the comparison, the machining is continued. On the contrary, if they do not match, the processing is finished.

【0022】図4は本発明を実施するための加工プログ
ラムの例を示す図である。この加工プログラム1は、図
3に示す加工を行うためのプログラムであり、この例で
は「G51」を座標誤差検出指令とする。図3の各点間
の移動量(X軸方向の移動量、Z軸方向の移動量)は次
の通りとする。 点P0→点P1(a1 ,b1 )。 点P1→点P2(0 ,b2 )。 点P2→点P3(a3 ,b3 )。 点P3→点P4(a4 ,b4 )。 点P4→点P5(a5 ,0 )。 点P5→点P6(0 ,b6 )。 点P6→点P1(a7 ,0 )。 また、点P2から点P3までの円弧の半径は「r0 」と
する。
FIG. 4 is a diagram showing an example of a machining program for carrying out the present invention. This machining program 1 is a program for performing the machining shown in FIG. 3, and in this example, “G51” is the coordinate error detection command. The amount of movement between the points in FIG. 3 (the amount of movement in the X-axis direction, the amount of movement in the Z-axis direction) is as follows. Point P0 → point P1 (a 1 , b 1 ). Point P1 → Point P2 (0, b 2 ). Point P2 → point P3 (a 3 , b 3 ). Point P3 → point P4 (a 4 , b 4 ). Point P4 → point P5 (a 5 , 0). Point P5 → point P6 (0, b 6 ). Point P6 → Point P1 (a 7 , 0). Further, the radius of the circular arc from the point P2 to the point P3 is “r 0 ”.

【0023】この加工プログラム1は、シーケンスナン
バーN020のブロックからシーケンスナンバーN09
0のブロック間でループしており、シーケンスナンバー
N060のブロックが座標誤差検出指令である。
This machining program 1 starts from the block with the sequence number N020 to the sequence number N09.
The block having the sequence number N060 is a coordinate error detection command.

【0024】シーケンスナンバーN010のブロック
で、工具8を加工開始点P0から点P1(Ua1 、Wb
1 )へ早送り(G00)で移動する。シーケンスナンバ
ーN020のブロックで、点P1から点P2(Wb2
へ直線補間(G01)で切削送りを行う。送り速度は3
0mm/minである。
In the block of sequence number N010, the tool 8 is moved from the machining start point P0 to the point P1 (Ua 1 , Wb).
Move to 1 ) by fast forward (G00). In the block of sequence number N020, from point P1 to point P2 (Wb 2 )
Cutting feed is performed by linear interpolation (G01). Feed rate is 3
It is 0 mm / min.

【0025】シーケンスナンバーN030のブロック
で、点P2から点P3(Ua3 Wb 3 )へ円弧補間
(G02)で切削送りを行う。円弧の半径はr0 (Rr
0 )である。
Block with sequence number N030
And from point P2 to point P3 (Ua3 Wb 3) To circular interpolation
Cutting feed is performed in (G02). The radius of the arc is r0(Rr
0).

【0026】シーケンスナンバーN040のブロック
で、点P3から点P4(Ua4 Wb 4 )へ直線補間
(G01)で切削送りを行う。シーケンスナンバーN0
50のブロックで、点P4から点P5(Ua5 )へ早送
り(G00)で移動する。
Block of sequence number N040
And from point P3 to point P4 (UaFour Wb Four) To linear interpolation
Cutting feed is performed at (G01). Sequence number N0
In blocks of 50, points P4 to P5 (UaFiveFast forward to
Move with R (G00).

【0027】シーケンスナンバーN060のブロック
で、座標誤差検出指令(G51)が出される。シーケン
スナンバーN070のブロックで、点P5から点P6
(Wb6 )へ早送り(G00)で移動する。
A coordinate error detection command (G51) is issued in the block of sequence number N060. Point P5 to point P6 in the block of sequence number N070
Move to (Wb 6 ) by fast forward (G00).

【0028】シーケンスナンバーN080のブロック
で、点P6から点P1(Ua7 )へ早送り(G00)で
移動する。シーケンスナンバーN090のブロックで、
シーケンスナンバーN020のブロックにジャンプ(G
OTO 020)する。
In the block with the sequence number N080, it moves from point P6 to point P1 (Ua 7 ) by fast forward (G00). In the block of sequence number N090,
Jump to the block with sequence number N020 (G
OTO 020).

【0029】シーケンスナンバーN100のブロック
(M99)は、この加工プログラムを呼び出したプログ
ラムに復帰する指令である。図5は本発明の処理手順を
示すフローチャートである。このフローチャートを図1
のブロック図を用いて説明する。
The block (M99) of the sequence number N100 is a command for returning to the program that called this machining program. FIG. 5 is a flowchart showing the processing procedure of the present invention. This flowchart is shown in Figure 1.
This will be described with reference to the block diagram of FIG.

【0030】ステップ1では、前処理演算手段2が加工
プログラム1を解読し座標誤差検出指令を出力すると、
機械座標算出手段3が加工プログラム1の実行(座標誤
差検出指令の実行回数で判断する)が1回目か、あるい
は2回目以降かを判断し、1回目の場合はステップ2へ
進み、2回目以降の場合はステップ5へ進む。
In step 1, when the preprocessing operation means 2 decodes the machining program 1 and outputs a coordinate error detection command,
The machine coordinate calculation means 3 determines whether the execution of the machining program 1 (judgment based on the number of executions of the coordinate error detection command) is the first time or the second time or later. If the first time, the process proceeds to step 2 and the second time or later. In the case of, go to step 5.

【0031】ステップ2では機械座標算出手段3が、座
標誤差検出指令が出力されたときの工具の機械座標を算
出する。ステップ3では座標記憶手段4が、ステップ2
で算出された機械座標を、基準座標として記憶する。
In step 2, the machine coordinate calculating means 3 calculates the machine coordinate of the tool when the coordinate error detection command is output. In step 3, the coordinate storage means 4 executes step 2
The machine coordinates calculated in step 1 are stored as reference coordinates.

【0032】ステップ4では前処理演算手段2が、加工
プログラムを解読し、全てのワークの加工が終わった場
合は加工を終了し、そうでない場合は加工を継続するた
めステップ1に進む。
At step 4, the preprocessing operation means 2 decodes the machining program, and if all the workpieces have been machined, the machining is terminated, and if not, the machining is continued and the process proceeds to step 1.

【0033】ステップ5では機械座標算出手段3が、座
標誤差検出指令が出力されたときの工具の機械座標を算
出する。ステップ6では座標比較手段5が、ステップ3
で座標記憶手段3が記憶した基準座標とステップ5で算
出した機械座標を比較し、一致していた場合はステップ
4に進み、不一致の場合はステップ7に進む。
In step 5, the machine coordinate calculating means 3 calculates the machine coordinate of the tool when the coordinate error detection command is output. In step 6, the coordinate comparison means 5 executes step 3
The reference coordinates stored in the coordinate storage means 3 are compared with the machine coordinates calculated in step 5. If they match, the process proceeds to step 4, and if they do not match, the process proceeds to step 7.

【0034】ステップ7では座標比較手段5が、表示装
置16にアラームメッセージを出力し、さらに、前処理
演算手段2に加工プログラム1の実行を中止させること
により、処理を終了する。
In step 7, the coordinate comparison means 5 outputs an alarm message to the display device 16, and further causes the preprocessing calculation means 2 to stop the execution of the machining program 1, thereby ending the processing.

【0035】このように、インクレメンタルディメンシ
ョン指令での加工プログラムを繰り返し実行する場合
に、1回目の実行の際に予め決められた場所で機械座標
を基準座標として記憶し、2回目以降の実行の際には同
じ場所での機械座標と基準座標を比較するようにしたた
め、インクレメンタルディメンション指令による加工プ
ログラムの間違いによる移動距離のずれを検出し、その
間違いを見つけることができる。作業者は、表示装置に
表示されたアラームメッセージによって、加工プログラ
ムに間違いがあったことを確認することができる。さら
に、移動距離のずれが検出されたときは、すぐに加工プ
ログラムの実行を終了させるため、不良ワークの発生を
防ぐことができる。このことにより、繰り返し加工を行
う際に、ワークを一つ加工する度に工具を加工開始点に
戻す必要がなくなり、加工の高速化が図れる。
In this way, when the machining program with the incremental dimension command is repeatedly executed, the machine coordinates are stored as the reference coordinates at a predetermined location during the first execution, and the second and subsequent executions are performed. In this case, the machine coordinates and the reference coordinates at the same place are compared, so that it is possible to detect the deviation of the movement distance due to an error in the machining program due to the incremental dimension command and find the error. The operator can confirm that there is an error in the machining program by the alarm message displayed on the display device. Further, when the deviation of the movement distance is detected, the execution of the machining program is immediately ended, so that the occurrence of a defective work can be prevented. This eliminates the need to return the tool to the machining start point every time one workpiece is machined when performing repetitive machining, and the machining can be speeded up.

【0036】上記の説明では、機械座標と基準座標を比
較し不一致の場合に処理を終了するとしたが、誤差の許
容範囲を設け、機械座標と基準座標との差の絶対値が誤
差の許容範囲以内の場合には、処理を継続するようにす
ることもできる。例えば、許容範囲を0.01mmに設
定し、機械座標と基準座標との誤差が0.01mm以下
の場合には処理を継続する。
In the above description, the machine coordinates are compared with the reference coordinates and the processing is terminated if they do not match. However, an error tolerance range is provided, and the absolute value of the difference between the machine coordinates and the reference coordinates is the error tolerance range. If it is within the range, the processing can be continued. For example, the allowable range is set to 0.01 mm and the process is continued when the error between the machine coordinates and the reference coordinates is 0.01 mm or less.

【0037】誤差の許容範囲を設けた場合、機械座標と
基準座標との誤差は加工を繰り返す度に累積するため、
いずれ許容範囲を超えてしまう。しかし、許容範囲が
0.01mmのときに、プログラミングの間違いにより
発生する誤差が1μmであった場合、許容範囲を超える
までには10回のループが必要である。もし、加工する
べきワークが10個以下の場合には、加工プログラムを
直す必要がない。
When the allowable range of the error is set, the error between the machine coordinate and the reference coordinate is accumulated every time the machining is repeated,
Eventually it will exceed the allowable range. However, when the allowable range is 0.01 mm and the error caused by programming error is 1 μm, 10 loops are required until the allowable range is exceeded. If the number of workpieces to be machined is 10 or less, there is no need to modify the machining program.

【0038】このように、誤差の許容範囲を設けること
によって、作業者が不必要な加工プログラムの修正作業
を行わずにすみ、加工プログラムの作成に費やす時間を
短くすることができる。
As described above, by providing the allowable range of the error, it is possible for the operator to avoid unnecessary modification work of the machining program, and to shorten the time spent for creating the machining program.

【0039】[0039]

【発明の効果】以上説明したように本発明では、インク
レメンタルディメンション指令での加工プログラムを繰
り返し実行する場合に、1回目の実行の際に予め決めら
れた場所で機械座標を基準座標として記憶し、2回目以
降の実行の際には同じ場所でのそのときの機械座標と、
1回目で記憶されている基準座標とを比較し、不一致の
場合には処理を終了させるようにしたため、加工プログ
ラムの間違いによる機械座標の誤差を発見することがで
き、不良ワークの発生を防ぐことができる。よって、ワ
ークを一つ加工する度に工具を加工開始点に戻すことを
せずに、繰り返し加工を行うことができる。
As described above, according to the present invention, when the machining program with the incremental dimension command is repeatedly executed, the machine coordinates are stored as the reference coordinates at a predetermined location when the machining program is executed for the first time. At the time of the second and subsequent executions, the machine coordinates at the same place at that time,
Since it compares the reference coordinates stored in the first time and ends the process if they do not match, it is possible to find the error in the machine coordinates due to an error in the machining program and prevent the occurrence of defective work. You can Therefore, it is possible to perform repeated machining without returning the tool to the machining start point every time one workpiece is machined.

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

【図1】本発明の概略構成を示すブロック図である。FIG. 1 is a block diagram showing a schematic configuration of the present invention.

【図2】本発明を実施するための数値制御装置のハード
ウェアの概略構成図である。
FIG. 2 is a schematic configuration diagram of hardware of a numerical control device for carrying out the present invention.

【図3】本発明によるワークの加工例を示す図である。FIG. 3 is a diagram showing an example of processing a work according to the present invention.

【図4】本発明を実施するための加工プログラムの例を
示す図である。
FIG. 4 is a diagram showing an example of a machining program for implementing the present invention.

【図5】本発明の処理手順を示すフローチャートであ
る。
FIG. 5 is a flowchart showing a processing procedure of the present invention.

【図6】従来の方法によるインクレメンタルディメンシ
ョン指令での加工を示す図である。
FIG. 6 is a diagram showing processing by an incremental dimension command according to a conventional method.

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

1 加工プログラム 2 前処理演算手段 3 機械座標算出手段 4 座標記憶手段 5 座標比較手段 6 補間手段 15 グラフィック制御回路 16 表示装置 18 軸制御回路 19 サーボアンプ 24 サーボモータ 1 Machining program 2 Pre-processing calculation means 3 Machine coordinate calculation means 4 Coordinate storage means 5 Coordinate comparison means 6 Interpolation means 15 Graphic control circuit 16 Display device 18 Axis control circuit 19 Servo amplifier 24 Servo motor

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 インクレメンタルディメンションで移動
指令をする加工プログラムを繰り返し実行する数値制御
装置の座標誤差検出方式において、 座標誤差検出指令を含む加工プログラムを解読し、前記
座標誤差検出指令と工具の移動指令とを出力する前処理
演算手段と、 前記座標誤差検出指令が出力されると、前記座標誤差検
出指令が1回目か2回目以降かを判断するとともに、工
具の機械座標を算出する機械座標算出手段と、 1回目の前記座標誤差検出指令の際の機械座標を、基準
座標として格納する座標記憶手段と、 2回目以降の前記座標誤差検出指令の際の機械座標と前
記基準座標とを比較し、機械座標と前記基準座標とが不
一致の場合には加工プログラムの実行を終了させる座標
比較手段と、 を有することを特徴とする座標誤差検出方式。
1. A coordinate error detection method for a numerical controller that repeatedly executes a machining program that issues a movement command with an incremental dimension. The machining program including the coordinate error detection command is decoded to move the coordinate error detection command and the tool. When a coordinate error detection command is output, a pre-processing operation unit that outputs a command and a machine coordinate calculation that determines whether the coordinate error detection command is the first time or the second time and the machine coordinate of the tool are calculated. Means for storing the machine coordinates at the time of the first coordinate error detection command as reference coordinates, and comparing the machine coordinates at the time of the second and subsequent coordinate error detection commands with the reference coordinates. And a coordinate comparing means for terminating the execution of the machining program when the machine coordinate and the reference coordinate do not match. Out method.
【請求項2】 前記座標比較手段は、2回目以降の前記
座標誤差検出指令の際の機械座標と前記基準座標との誤
差が、予め設定された値を超えていると加工プログラム
の実行を終了させることを特徴とする請求項1記載の座
標誤差検出方式。
2. The coordinate comparing means ends the execution of the machining program when the error between the machine coordinate and the reference coordinate at the second and subsequent coordinate error detection commands exceeds a preset value. The coordinate error detection method according to claim 1, wherein the coordinate error detection method is performed.
JP6695494A 1994-04-05 1994-04-05 Coordinate error detecting system Pending JPH07281720A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6695494A JPH07281720A (en) 1994-04-05 1994-04-05 Coordinate error detecting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6695494A JPH07281720A (en) 1994-04-05 1994-04-05 Coordinate error detecting system

Publications (1)

Publication Number Publication Date
JPH07281720A true JPH07281720A (en) 1995-10-27

Family

ID=13330934

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6695494A Pending JPH07281720A (en) 1994-04-05 1994-04-05 Coordinate error detecting system

Country Status (1)

Country Link
JP (1) JPH07281720A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010173030A (en) * 2009-01-30 2010-08-12 Hitachi Ltd Rotating angle determination system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010173030A (en) * 2009-01-30 2010-08-12 Hitachi Ltd Rotating angle determination system

Similar Documents

Publication Publication Date Title
EP0046032B1 (en) Method of numerical control
JP4271159B2 (en) Interactive numerical controller
EP1688808B1 (en) Numerical controller
JP4233540B2 (en) Numerical control device that drives each axis motor using table format data
US10324444B2 (en) Numerical controller including tool retracting function for avoidance of interference
EP0397887B1 (en) Method of correcting machining program
EP1720083B1 (en) Numerical controller
US7123984B2 (en) Threading control method and apparatus therefor
KR930011227B1 (en) Numerical controller
EP1835367A2 (en) Machine with program check function
US5170034A (en) Method and apparatus for welding robot control
JPH06202723A (en) Numerically controlled machine tool
US4458326A (en) Method and apparatus for circular interpolation
JPH07281720A (en) Coordinate error detecting system
US7580770B2 (en) Numerical controller
US5910199A (en) Method and apparatus for fast threading pullout in a numerically controlled threading application
EP0364600B1 (en) Round screw machining method
JP4070744B2 (en) Synchronous control device
US20180181101A1 (en) Numerical controller
JPH0370242B2 (en)
JP3405797B2 (en) Laser output control system
JP7448377B2 (en) Processing program management device, management system, and management method
JPH04269152A (en) Control unit for internal circle cutting in numerical control machine tool
JP4233559B2 (en) Numerically controlled machine tool
US5347461A (en) Tool travel path creating method