JPH0122105B2 - - Google Patents

Info

Publication number
JPH0122105B2
JPH0122105B2 JP58216841A JP21684183A JPH0122105B2 JP H0122105 B2 JPH0122105 B2 JP H0122105B2 JP 58216841 A JP58216841 A JP 58216841A JP 21684183 A JP21684183 A JP 21684183A JP H0122105 B2 JPH0122105 B2 JP H0122105B2
Authority
JP
Japan
Prior art keywords
tool
escape
movement
command
axis
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
Application number
JP58216841A
Other languages
Japanese (ja)
Other versions
JPS60108248A (en
Inventor
Nobuyuki Kitani
Motoaki Yoshino
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 JP21684183A priority Critical patent/JPS60108248A/en
Publication of JPS60108248A publication Critical patent/JPS60108248A/en
Publication of JPH0122105B2 publication Critical patent/JPH0122105B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/37Measurements
    • G05B2219/37245Breakage tool, failure
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/50Machine tool, machine tool null till machine tool work handling
    • G05B2219/50112Retract tool to a point

Landscapes

  • Automatic Control Of Machine Tools (AREA)
  • Auxiliary Devices For Machine Tools (AREA)
  • Machine Tool Units (AREA)
  • Numerical Control (AREA)

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、数値制御工作機械においてワーク加
工中に工具を逃がす工具逃げ制御装置に関し、特
に工具移動方向の法線方向に工具を逃がすことの
できる工具逃げ制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a tool escape control device for letting a tool escape during workpiece machining in a numerically controlled machine tool. This invention relates to a tool escape control device that can be used.

(従来技術) ワークを自動加工するため、工作機械の数値制
御化が盛んに行なわれている。この数値制御化の
ため、数値制御装置(以下NC装置と称す)が用
いられ、所望のNC加工プログラムに従つてNC
装置が工作機械の工具、テーブル等を移動制御す
ることにより、工作機械の工具がテーブルに搭載
されたワークに対し所望の加工を行なうようにし
ている。係る工具がワークを切削等の加工中に何
等かの異常(例えば工具破損等)が生じた時に
は、工具をワークから逃がし、ワークに誤つた加
工が行なわれないようにまた機械に不要な力が付
与されないように機械及びワークを保護してい
る。
(Prior Art) In order to automatically process workpieces, numerical control of machine tools is being actively implemented. To achieve this numerical control, a numerical control device (hereinafter referred to as an NC device) is used to control the NC processing according to the desired NC machining program.
The device controls the movement of the tools of the machine tool, the table, etc., so that the tools of the machine tool perform desired processing on the workpiece mounted on the table. If any abnormality (such as tool breakage) occurs while the tool is cutting or other processing on the workpiece, the tool should be removed from the workpiece and the machine should be protected from unnecessary machining so that the workpiece is not machined incorrectly. Machines and workpieces are protected from damage.

従来、工具をワークから逃がすため、予め逃げ
る方向と、逃げの量と、逃げの速度とをプログラ
ムしておき、異常発生時このプログラムを実行し
工具をワークから逃がすようにしている。一方、
工具移動方向に対し法線方向に工具をワークから
逃がすと、指令逃げ量において工具をワークから
最大距離離すことができ、しかも瞬時にワークか
ら工具を離すことができ、係る緊急時の逃げ方法
として最適である。
Conventionally, in order to let the tool escape from the workpiece, the escape direction, escape amount, and escape speed are programmed in advance, and when an abnormality occurs, this program is executed to make the tool escape from the workpiece. on the other hand,
If the tool is released from the workpiece in the normal direction to the tool movement direction, the tool can be separated from the workpiece by the maximum distance given the commanded escape amount, and the tool can be removed from the workpiece instantly. Optimal.

(従来技術の問題点) しかし、工具をワークから逃がすためのプログ
ラムによる従来の工具逃げ技術では逃げ方向が一
定に設定されていたため、直線移動時においては
法線方向に逃げ方向を設定することができるが、
円弧移動やオフセツト移動の最中に異常が発生し
た場合には、その時点での工具移動方向に対して
法線方向に工具を逃がすことができない。また、
工具を逃がす距離も、ワークの加工形状により最
適値が設定される必要があり、その速度もワーク
にカツタマークを付けないようにするには、適度
な速度が設定される必要があつた。
(Problems with the conventional technology) However, in the conventional tool escape technology using a program to release the tool from the workpiece, the escape direction was set to a constant value, so when moving in a straight line, the escape direction could not be set in the normal direction. You can, but
If an abnormality occurs during arc movement or offset movement, the tool cannot be released in the normal direction to the tool movement direction at that time. Also,
The distance for the tool to escape also needs to be set to an optimal value depending on the machining shape of the workpiece, and the speed also needs to be set at an appropriate speed to avoid leaving cut marks on the workpiece.

(発明の目的) 本発明の目的は、設定された工具の逃げ量、逃
げ速度にかかわらず、常にそれまでの工具移動方
向と垂直方向に工具を逃がすことのできる工具逃
げ制御装置を提供するにある。
(Object of the Invention) An object of the present invention is to provide a tool escape control device that can always escape a tool in a direction perpendicular to the previous tool movement direction, regardless of the set tool escape amount and escape speed. be.

(発明の概要) 本発明では、工具とワークを相対移動させる2
次元駆動機構を数値制御部が周期的に移動指令を
与えて工具をワークに対し指定された通路に沿つ
て移動せしめて加工を行なう加工システムにおい
て、数値制御部に該2次元駆動のための第1及び
第2の軸の移動指令を格納する記憶手段を設け、
工具逃げの必要時に該記憶手段に格納された第1
及び第2の移動指令から工具の相対移動方向と垂
直な方向に工具を移動させるための第1及び第2
の逃げ移動指令を算出し、これによつて2次元駆
動機構を駆動して工具を相対移動方向と垂直な方
向に移動させるようにしている。即ち、本発明で
は数値制御(NC)においては、指令通路を微小
線分に分割し、周期的に移動指令を与えて指令通
路に沿つて工具を相対移動させることから、この
移動指令は工具移動方向(ベクトル)を示し、こ
れを用いて工具移動方向と垂直な方向の移動指令
を得るようにしている。
(Summary of the invention) In the present invention, the tool and the workpiece are moved relative to each other.
In a machining system in which a numerical control unit periodically gives movement commands to a dimensional drive mechanism to move a tool along a specified path relative to a workpiece to perform machining, the numerical control unit has a control unit for the two-dimensional drive. Provided with a storage means for storing movement commands for the first and second axes,
The first data stored in the storage means when tool escape is required.
and a first and second movement command for moving the tool in a direction perpendicular to the relative movement direction of the tool from the second movement command.
An escape movement command is calculated, and the two-dimensional drive mechanism is driven by this command to move the tool in a direction perpendicular to the relative movement direction. That is, in the present invention, in numerical control (NC), the command path is divided into minute line segments and movement commands are given periodically to move the tool relatively along the command path. A direction (vector) is shown, and this is used to obtain a movement command in a direction perpendicular to the tool movement direction.

(実施例) 以下、本発明を実施例により詳細に説明する。(Example) Hereinafter, the present invention will be explained in detail with reference to Examples.

第1図は本発明の説明図である。第1図Aは直
線移動の例を示し、工具CTの指令通路PP1は微
小線分△vに分割して指令され、この移動指令△
vは周期的(例えば8ns)に駆動機構に与えられ、
工具CTは指令通路PP1上を相対移動する。第1
図Bは円弧移動の例を示し、工具CTの指令円弧
通路PP2は円弧補間によつて微小線分△vに分
割して指令され、この移動△vは周期的に駆動機
構に与えられ、工具CTは指令円弧通路PP2上を
相対移動する。第1図Cはオフセツトされた直線
移動する例を示し、プログラムされた通路PP3
に対しオフセツト量が順次増加するオフセツト指
令通路PP4に沿う工具CTの移動を示し、この場
合も同様に微小線分△vに分割して周期的に指令
される。このように移動指令△vが周期的に与え
られ、この移動指令がその時の工具移動指令方向
であることから、この周期的に指令される移動指
令を工具移動方向のベクトルとして記憶しておけ
ば、その時の工具移動方向が判明する。そして本
発明では、この記憶された瞬時瞬時の工具移動ベ
クトルから工具移動方向と垂直な方向の移動指令
を作成するようにしている。これを第2図により
説明する。前述の微小線分のベクトルを△vと
し、2次元移動の第1の軸方向(例えばX軸方
向)の成分をv1、第2の軸方向(例えばY軸方
向)の成分をv2とする。そして垂直な方向のベク
トルをqとし、その第1軸方向の成分をq1、第2
軸方向の成分をq2とする。
FIG. 1 is an explanatory diagram of the present invention. Fig. 1A shows an example of linear movement, where the command path PP1 of the tool CT is divided into minute line segments △v, and this movement command △
v is given to the drive mechanism periodically (e.g. 8 ns),
The tool CT moves relatively on the command path PP1. 1st
Figure B shows an example of circular movement, where the commanded circular path PP2 of the tool CT is divided into minute line segments △v by circular interpolation, and this movement △v is periodically given to the drive mechanism, CT moves relatively on the command arc path PP2. Figure 1C shows an example of offset linear movement, with programmed path PP3.
In contrast, the movement of the tool CT along the offset command path PP4 in which the offset amount increases sequentially is shown, and in this case as well, the command is periodically divided into minute line segments Δv. In this way, the movement command △v is given periodically, and since this movement command is the direction of the tool movement command at that time, it is possible to store this periodically commanded movement command as a vector in the tool movement direction. , the direction of tool movement at that time is known. In the present invention, a movement command in a direction perpendicular to the tool movement direction is created from the stored instantaneous tool movement vector. This will be explained with reference to FIG. Let the vector of the aforementioned minute line segment be △v, the component in the first axis direction (for example, the X-axis direction) of the two-dimensional movement be v 1 , and the component in the second axis direction (for example, the Y-axis direction) be v 2 do. The vector in the vertical direction is q, the component in the first axis direction is q 1 , and the component in the second axis is q 1 .
Let the axial component be q 2 .

即ち、△v→=(v1、v2) q→=(q1、q2) (1) ここで、周知のベクトルの法則より、 △v→・q→=0 (2) ∴v1q1+v2q2=0 従つて q2/q1=−v1/v2 (3) ここで、q=√2 12 2であるから、(3)式を変形
して、 q2 2=(−v1/v22×q2 1 q2 2=(−v1/v22×(q2−q2 2) ∴q2=q※v1/√2 12 2 (4) 同様にして、 q1=q×(−v2)/√2 12 2 (5) となる。
That is, △v→=(v 1 , v 2 ) q→=(q 1 , q 2 ) (1) Here, from the well-known law of vectors, △v→・q→=0 (2) ∴v 1 q 1 +v 2 q 2 = 0 Therefore, q 2 /q 1 = −v 1 /v 2 (3) Here, since q = √ 2 1 + 2 2 , transforming equation (3), q 2 2 = (−v 1 /v 2 ) 2 ×q 2 1 q 2 2 = (−v 1 /v 2 ) 2 × (q 2 −q 2 2 ) ∴q 2 =q*v 1 /√ 2 1 + 2 2 (4) Similarly, q 1 = q×(−v 2 )/√ 2 1 + 2 2 (5).

従つて、(4)、(5)式よりベクトルqの長さ即ち逃
げの距離を与えれば、ベクトル△v(v1、v2)よ
り垂直方向の移動指令q1、q2を求めることができ
る。実際には、このqの長さ(逃げ量)、逃げの
速度Fをプログラムにより予め与えておき、逃げ
の必要な時、このプログラムを読出し、q1、q2
求める。
Therefore, if the length of the vector q, that is, the escape distance is given from equations (4) and (5), the vertical movement commands q 1 and q 2 can be obtained from the vector △v (v 1 , v 2 ). can. In reality, the length of q (amount of escape) and the speed of escape F are given in advance by a program, and when escape is required, this program is read and q 1 and q 2 are determined.

例えば、この命令としてGコードとして、G47
(G48)QqFfの形で与えればよい、尚、G47は進
行方向左側への逃げを命令し、G48は進行方向右
側への逃げを命令している。従つて割込時に上述
のプログラムを実行して、(4)、(5)式よりq1、q2
求め、更に逃げ速度fによつて、工具を移動方向
の法線方向(垂直方向)に速度fで距離qだけ逃
がすことができる。
For example, as this command and G code, G47
(G48) It can be given in the form of QqFf. Furthermore, G47 commands escape to the left in the direction of travel, and G48 commands escape to the right in the direction of travel. Therefore, at the time of interrupt, execute the above program to find q 1 and q 2 from equations (4) and (5), and then move the tool in the normal direction (vertical direction) to the moving direction using the escape speed f. It is possible to escape by a distance q at a speed f.

第3図は本発明の一実施例ブロツク図であり、
図において、101は数値制御(NC)指令デー
タが穿孔されている紙テープであり、加工のため
の位置決め情報やM、S、T機能情報等のNC指
令データを蓄積したもの、102は数値制御
(NC)装置であり、紙テープ101から後述す
るテープリーダをしてNCデータを読取らせると
共に、読取られたNCデータを解読し、たとえば
M、S、T機能命令等であれば図示しない強電盤
を介して機械側へ送出し、又移動指令XC、YCで
あれば後段のパルス分配器に出力する。NC装置
102は、制御プログラムに従つて演算処理を実
行するプロセツサ102aと、所定の制御プログ
ラムを記憶するプログラムメモリ102bと、デ
ータを記憶するデータメモリ102cと、操作の
ための操作盤102dと、テープリーダ/パンチ
ヤ102eと、入出力ポート102f,102g
と、現在位置カウンタ102hと、表示装置10
2iと、これらを接続するアドレス・データバス
102jとで構成される。
FIG. 3 is a block diagram of an embodiment of the present invention.
In the figure, 101 is a paper tape perforated with numerical control (NC) command data, which stores NC command data such as positioning information for processing and M, S, and T function information; NC) device reads NC data from a paper tape 101 using a tape reader (to be described later), decodes the read NC data, and sends a power board (not shown) for M, S, T function commands, etc. If it is a movement command XC or YC, it is output to the subsequent pulse distributor. The NC device 102 includes a processor 102a that executes arithmetic processing according to a control program, a program memory 102b that stores a predetermined control program, a data memory 102c that stores data, an operation panel 102d for operation, and a tape. Reader/puncher 102e and input/output ports 102f, 102g
, the current position counter 102h, and the display device 10
2i, and an address/data bus 102j that connects them.

プログラムメモリ102bは、リードオンリー
メモリ(ROM)又は不揮発性メモリで構成さ
れ、工作機械SCMを数値制御するための数値制
御プログラム及び工具逃げ制御プログラムが記憶
されている。一方、データメモリ102cは、不
揮発性メモリで構成され、紙テープ101のNC
データ(加工位置データ等)を記憶する他に移動
指令△X、△Yを格納する移動指令格納エリア
PMが設けられている。
The program memory 102b is composed of a read-only memory (ROM) or a nonvolatile memory, and stores a numerical control program and a tool escape control program for numerically controlling the machine tool SCM. On the other hand, the data memory 102c is composed of a non-volatile memory, and is
Movement command storage area that stores movement commands △X, △Y in addition to storing data (machining position data, etc.)
PM is provided.

103はパルス分配器であり、移動指令△Xに
基いて公知のパルス分配演算を実行して指令速度
に応じた周波数の分配パルスPsを発生するもの
である。104は分配パルス列Psのパルス速度
が該パルス列の発生時に直線的に加速し、又該パ
ルス列の終了時に直線的に減速してパルス列Piを
発生する公知の加減速回路、105はテーブル
TBをX軸方向に送るためのX軸モータ、106
はX軸モータが所定量回転する毎に1個のフイー
ドバツクパルスFPを発生するパルスコーダ、1
07は誤差演算記憶部であり、たとえば可逆カウ
ンタにより構成され、加減速回路104から発生
した入力パルスPiの数とフイードバツクパルス
FPの差Erを記憶する。尚、この誤差演算記憶部
は図示の毎くPiとFPの差Erを演算する演算回路
107aとErを記憶する誤差レジスタ107b
とで構成してもよい。即ち、誤差演算記憶部10
7はX軸モータ105が正方向に回転するように
指令され、それに従つて回転しているものとすれ
ば入力パルスPiが発生する毎に該パルスPiをカウ
ントアツプし、又はフイードバツクパルスFPが
発生する毎にその内容をカウントダウンし、入力
パルス数とフイードバツクパルス数の差Erを誤
差レジスタ107bに記憶する。108は誤差レ
ジスタ107bの内容に比例したアナログ電圧を
発生するデジタルアナログ(DA)変換器、10
9は速度制御回路である。尚、パルス分配器10
3、加減速回路104、パルスコーダ106、誤
差演算記憶部107、DA変換器108及び速度
制御回路109でX軸ドライブ回路XDVを構成
し、Y軸側にも同一構成のY軸ドライブ回路
YDVが設けられている。110はY軸モータで
あり、入出力ポート102fに接続されたY軸ド
ライブ回路YDVにより駆動されテーブルTBをY
軸方向に駆動するものであり、TBはテーブルで
あり、ワークを搭載し、X軸及びY軸モータ10
5,110によつてX軸及びY軸の2次元駆動さ
れるもの、CTは工具であり、カツタ等で構成さ
れ、Z軸方向に駆動されるものである。
Reference numeral 103 denotes a pulse distributor, which executes a known pulse distribution calculation based on the movement command ΔX to generate a distribution pulse Ps of a frequency corresponding to the command speed. 104 is a known acceleration/deceleration circuit that linearly accelerates the pulse speed of the distribution pulse train Ps when the pulse train is generated and linearly decelerates it at the end of the pulse train to generate the pulse train Pi; 105 is a table;
X-axis motor for sending TB in the X-axis direction, 106
1 is a pulse coder that generates one feedback pulse FP every time the X-axis motor rotates a predetermined amount.
Reference numeral 07 denotes an error calculation storage unit, which is composed of, for example, a reversible counter, and stores the number of input pulses Pi generated from the acceleration/deceleration circuit 104 and feedback pulses.
Memorize the FP difference Er. As shown in the figure, this error calculation storage unit includes an arithmetic circuit 107a that calculates the difference Er between Pi and FP, and an error register 107b that stores Er.
It may be composed of That is, the error calculation storage section 10
7, the X-axis motor 105 is commanded to rotate in the forward direction, and if it is rotating accordingly, the input pulse Pi is counted up each time the input pulse Pi is generated, or the feedback pulse FP is Each time a pulse occurs, its contents are counted down, and the difference Er between the number of input pulses and the number of feedback pulses is stored in the error register 107b. 108 is a digital-to-analog (DA) converter that generates an analog voltage proportional to the contents of the error register 107b;
9 is a speed control circuit. In addition, the pulse distributor 10
3. The acceleration/deceleration circuit 104, pulse coder 106, error calculation storage section 107, DA converter 108, and speed control circuit 109 constitute an X-axis drive circuit XDV, and a Y-axis drive circuit with the same configuration is also provided on the Y-axis side.
YDV is provided. 110 is a Y-axis motor, which is driven by the Y-axis drive circuit YDV connected to the input/output port 102f to move the table TB to Y.
It is driven in the axial direction, TB is a table, the workpiece is mounted, and the X-axis and Y-axis motors 10
5 and 110 are two-dimensionally driven in the X-axis and Y-axis, and CT is a tool that is composed of a cutter or the like and is driven in the Z-axis direction.

次に、第3図実施例構成の動作について説明す
る。
Next, the operation of the embodiment configuration shown in FIG. 3 will be explained.

先ず、加工に先立ち、紙テープ101のNCデ
ータをテープリーダパンチヤ102eが読取り、
バス102jを介しデータメモリ102cに紙テ
ープ101のNCデータを格納する。次に操作盤
102dの操作によりスタート指令がバス102
jを介しプロセツサ102aに入力されると、プ
ロセツサ102aはプログラムメモリ102bの
加工制御プログラムを順次読出し、実行する。即
ち、データメモリ102cのNCデータを読出す
とともに、必要なパラメータを読出し、工具CT
によつてテーブルTB上のワークを指定形状に加
工させるため、工具CTをテーブルTBに対し指
定通路に沿つて相対移動させるべく、X軸移動指
令△X、Y軸移動指令△Yを算出する。前述の如
く指定通路は直線補間、円弧補間によつて微小線
分△vに分割されて制御されるので、プロセツサ
102aはこの微小線分△vに応じた△X、△Y
を算出する。
First, prior to processing, the tape reader puncher 102e reads the NC data of the paper tape 101,
The NC data of the paper tape 101 is stored in the data memory 102c via the bus 102j. Next, a start command is issued to the bus 102 by operating the operation panel 102d.
When the processing control programs are input to the processor 102a through the program memory 102b, the processor 102a sequentially reads and executes the machining control programs from the program memory 102b. That is, the NC data in the data memory 102c is read out, necessary parameters are read out, and the tool CT
In order to machine the workpiece on the table TB into a specified shape, an X-axis movement command ΔX and a Y-axis movement command ΔY are calculated to move the tool CT relative to the table TB along a specified path. As mentioned above, the designated path is controlled by being divided into minute line segments △v by linear interpolation and circular interpolation, so the processor 102a calculates △X, △Y according to the minute line segments △v.
Calculate.

この△X、△Yはバス102jを介しデータメ
モリ102cの格納エリアPMに格納される。一
方、△Xは入出力ポート102gへ、△Yは入出
力ポート102fへ与えられる。さて、入出力ポ
ート102gから移動指令がパルス分配器103
に与えられると、パルス分配器103は移動指令
△Xに基いてパルス分配演算を実行して分配パル
スPsを出力する。加減速回路104はこの分配
パルスPsを入力され、そのパルス速度を加減速
して指令パルス列Piを誤差演算記憶部107に入
力する。これにより誤差レジスタ107bの内容
は零でなくなるから、DA変換器108から電圧
が出力され、速度制御回路109によりモータ1
05は駆動され、テーブルTBはX軸方向に駆動
される。モータ105が所定量回転すればパルス
コーダ106からフイードバツクパルスFPが発
生し誤差演算記憶部107に記憶され、誤差レジ
スタ107bには指令パルスPiの数とフイードバ
ツクパルスFPの数との差Erが記憶されることに
なる。そして、以後誤差Erが零となるようにモ
ータ105がサーボ制御され、テーブルTBは微
小線分△vのX軸分移動される。同様に△Yは入
出力ポート102fよりY軸ドライブ回路YDV
に与えられて、Y軸モータ110を駆動してテー
ブルTBを微小線分△vのY軸分移動することに
なるから、テーブルTBは微小線分△vだけ移動
する。この△X、△Yは指令通路に従つて周期的
に与えられ、データメモリ102cの格納エリア
PMが書替えられるとともにX軸及びY軸ドライ
ブ回路XDV,YDVに与えられ、こうしてX軸、
Y軸モータ105,110が駆動され、従つて工
具CTはテーブルTBに対し指令通路上を相対移
動する。これによつてテーブルTB上の図示しな
いワークは工具CTによつて指令形状に加工され
る。
These ΔX and ΔY are stored in the storage area PM of the data memory 102c via the bus 102j. On the other hand, ΔX is supplied to the input/output port 102g, and ΔY is supplied to the input/output port 102f. Now, the movement command is sent from the input/output port 102g to the pulse distributor 103.
, the pulse distributor 103 executes a pulse distribution calculation based on the movement command ΔX and outputs a distribution pulse Ps. The acceleration/deceleration circuit 104 receives this distributed pulse Ps, accelerates or decelerates the pulse speed, and inputs a command pulse train Pi to the error calculation storage section 107. As a result, the contents of the error register 107b are no longer zero, so a voltage is output from the DA converter 108, and the speed control circuit 109 controls the motor 1.
05 is driven, and the table TB is driven in the X-axis direction. When the motor 105 rotates by a predetermined amount, a feedback pulse FP is generated from the pulse coder 106 and stored in the error calculation storage section 107, and the difference Er between the number of command pulses Pi and the number of feedback pulses FP is stored in the error register 107b. will be memorized. Thereafter, the motor 105 is servo-controlled so that the error Er becomes zero, and the table TB is moved by the minute line segment Δv along the X axis. Similarly, △Y is the Y-axis drive circuit YDV from the input/output port 102f.
is given, and the Y-axis motor 110 is driven to move the table TB by the minute line segment Δv on the Y axis, so the table TB moves by the minute line segment Δv. These △X and △Y are given periodically according to the command path, and are stored in the storage area of the data memory 102c.
PM is rewritten and given to the X-axis and Y-axis drive circuits XDV, YDV, thus
The Y-axis motors 105 and 110 are driven, so that the tool CT moves relative to the table TB on the command path. As a result, the workpiece (not shown) on the table TB is machined into the commanded shape by the tool CT.

さて、ここで工具破損等の異常が生じ、工具逃
げ動作を要する必要がある場合には、NC装置1
02のプロセツサ102aはこれを検知し、アラ
ーム処理プログラムを実行する。即ち、プロセツ
サ102aは加工のための数値制御プログラムの
実行を中断し、工具逃げ制御プログラムを実行す
る。これにより、プロセツサ102aは、データ
メモリ102cの格納エリアPMの△X、△Yを
読出すとともに、パラメータとし与えられている
逃げ量q、逃げ速度fを読出し、前述の第(4)式、
第(5)式を実行し、工具逃げのための移動指令△
XE(=q1)、△YE(=q2)を演算し、バス102
jを介し、△XEを入出力ポート102gへ、△
YEを入出力ポート102fへ与える。これによ
りx軸ドライブ回路XDV及びY軸ドライブ回路
YDVが各々X軸モータ105、Y軸モータ11
0を駆動し、テーブルTBを駆動して、結果とし
て工具CTを加工中の相対移動方向と垂直(法線
方向)に相対移動させ、工具CTをワークから逃
がす。その後は、工具CTをそのまま又は原点に
復帰させ、アラームを発し、オペレータの指示を
待つ。
Now, if an abnormality such as tool breakage occurs and it is necessary to perform a tool escape operation, the NC device 1
The processor 102a of 02 detects this and executes the alarm processing program. That is, the processor 102a interrupts the execution of the numerical control program for machining and executes the tool escape control program. As a result, the processor 102a reads out ΔX and ΔY in the storage area PM of the data memory 102c, as well as the escape amount q and escape speed f given as parameters, and calculates the above equation (4).
Execute equation (5) and move command △ for tool escape.
XE (= q 1 ) and △YE (= q 2 ) are calculated, and the bus 102
via j, △XE to input/output port 102g, △
Give YE to the input/output port 102f. This allows the x-axis drive circuit XDV and the Y-axis drive circuit to
YDV is the X-axis motor 105 and Y-axis motor 11, respectively.
0 is driven, the table TB is driven, and as a result, the tool CT is relatively moved perpendicularly (normal direction) to the relative movement direction during machining, and the tool CT is released from the workpiece. After that, the tool CT is left as is or returned to its origin, an alarm is issued, and the operator waits for instructions.

以上、本発明を一実施例により説明したが、本
発明は上述の実施例に限らず、本発明の主旨の範
囲内において種々の変形が可能であり、本発明の
範囲からこれらを排除するものではない。
Although the present invention has been described above using one embodiment, the present invention is not limited to the above-mentioned embodiment, and various modifications can be made within the scope of the gist of the present invention, and these are excluded from the scope of the present invention. isn't it.

(発明の効果) 以上説明したように、本発明によれば、2次元
駆動機構を駆動する第1及び第2のドライバ回路
にそれぞれ軸移動指令を周期的に出力し、工具を
ワークとの間で相対移動させて行なう加工中に自
動的に工具を逃がす工具逃げ制御装置において、
前記工具の逃げ量、逃げ速度を指令する指令手段
と、前記第1及び第2のドライバ回路の軸移動指
令を格納する記憶手段と、工具逃げの必要時に前
記指令手段から指令する逃げ量、逃げ速度と前記
記憶手段の移動指令とから相対移動方向に垂直な
逃げ移動指令を算出する演算手段と、前記軸移動
指令に代えて該逃げ移動指令をそれぞれ第1、第
2のドライバ回路に出力する出力手段とを具備
し、工具を工具逃げ時にそれまでの相対移動方向
と垂直方向に移動させるように2次元駆動機構を
駆動しているので、工具の相対移動が移動ベクト
ルの一定なもののみならず、円弧、オフセツト可
変の直線等の相対移動であつても、法線方向に工
具を逃がすことができるという効果を奏し、従つ
て工具を最速で最大距離ワークから離すことがで
きる。
(Effects of the Invention) As explained above, according to the present invention, axis movement commands are periodically output to the first and second driver circuits that drive the two-dimensional drive mechanism, and the tool is moved between the tool and the workpiece. In a tool escape control device that automatically releases the tool during machining by moving it relative to
a command means for commanding the escape amount and escape speed of the tool; a storage means for storing axis movement commands for the first and second driver circuits; and a command means for commanding the escape amount and escape speed from the command means when tool escape is necessary. calculation means for calculating an escape movement command perpendicular to the relative movement direction from the speed and the movement command of the storage means; and outputting the escape movement command in place of the axis movement command to the first and second driver circuits, respectively. Since the two-dimensional drive mechanism is driven to move the tool in a direction perpendicular to the relative movement direction up to that point when the tool escapes, if the relative movement of the tool is only with a constant movement vector, First, the tool can be moved away from the workpiece in the normal direction even when the relative movement is in a circular arc or in a straight line with a variable offset.

また、ワークの加工形状により設定された逃げ
量や、その速度にかかわらず、常にそれまでの工
具移動方向と垂直方向に工具を逃がすことがで
き、ワークにカツタマークを付けないようにする
など、ワークに対する不要な加工を防止し、機械
側にも不要な力が付与されることを防止しうる。
In addition, regardless of the relief amount set by the machining shape of the workpiece or its speed, the tool can always escape in the direction perpendicular to the tool movement direction up to that point, which prevents cut marks from being left on the workpiece. It is possible to prevent unnecessary machining on the machine and prevent unnecessary force from being applied to the machine.

しかも、現在加工中の移動指令を用いているの
で、正確にかつ自動的に工具を逃がすことができ
るという効果を奏する他に、容易にしかも簡単に
工具を逃がすことができるという効果も奏し、従
来の数値制御装置に対して特別の装置を付与する
ことなく、工具逃げ制御装置としての機能を与え
ることができるという実用上優れた効果も奏す
る。
Moreover, since it uses the movement command currently being processed, it not only has the effect of allowing the tool to be released accurately and automatically, but also has the effect of allowing the tool to be released easily and easily, which is better than before. The present invention also has an excellent practical effect in that it can function as a tool escape control device without adding any special device to the numerical control device.

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

第1図、第2図は本発明の原理説明図、第3図
は本発明による一実施例ブロツク図である。 図中、102……数値制御装置、102C……
データメモリ、XDV,YDV……ドライブ回路、
105……X軸モータ、110……Y軸モータ、
TB……テーブル、CT……工具。
1 and 2 are explanatory diagrams of the principle of the present invention, and FIG. 3 is a block diagram of an embodiment according to the present invention. In the figure, 102... numerical control device, 102C...
Data memory, XDV, YDV...drive circuit,
105...X-axis motor, 110...Y-axis motor,
TB...table, CT...tool.

Claims (1)

【特許請求の範囲】[Claims] 1 2次元駆動機構を駆動する第1及び第2のド
ライバ回路にそれぞれ軸移動指令を周期的に出力
し、工具をワークとの間で相対移動させて行なう
加工中に自動的に工具を逃がす工具逃げ制御装置
において、前記工具の逃げ量、逃げ速度を指令す
る指令手段と、前記第1及び第2のドライバ回路
の軸移動指令を格納する記憶手段と、工具逃げの
必要時に前記指令手段から指令する逃げ量、逃げ
速度と前記記憶手段の移動指令とから相対移動方
向に垂直な逃げ移動指令を算出する演算手段と、
前記軸移動指令に代えて該逃げ移動指令をそれぞ
れ第1、第2のドライバ回路に出力する出力手段
とを具備し、前記工具を工具逃げ時にそれまでの
相対移動方向と垂直方向に移動させることを特徴
とする工具逃げ制御装置。
1. A tool that periodically outputs axis movement commands to the first and second driver circuits that drive the two-dimensional drive mechanism, and automatically releases the tool during machining by moving the tool relative to the workpiece. The run-off control device includes command means for commanding the run-off amount and speed of the tool, storage means for storing axis movement commands for the first and second driver circuits, and commands from the command means when tool run-off is necessary. calculation means for calculating an escape movement command perpendicular to the relative movement direction from the escape amount and escape speed and the movement command of the storage means;
and an output means for outputting the escape movement command to the first and second driver circuits in place of the axis movement command, so that the tool is moved in a direction perpendicular to the previous relative movement direction when the tool escapes. A tool escape control device featuring:
JP21684183A 1983-11-17 1983-11-17 Tool escapement control system Granted JPS60108248A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21684183A JPS60108248A (en) 1983-11-17 1983-11-17 Tool escapement control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21684183A JPS60108248A (en) 1983-11-17 1983-11-17 Tool escapement control system

Publications (2)

Publication Number Publication Date
JPS60108248A JPS60108248A (en) 1985-06-13
JPH0122105B2 true JPH0122105B2 (en) 1989-04-25

Family

ID=16694736

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21684183A Granted JPS60108248A (en) 1983-11-17 1983-11-17 Tool escapement control system

Country Status (1)

Country Link
JP (1) JPS60108248A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6435606A (en) * 1987-07-30 1989-02-06 Fanuc Ltd Nc data preparing system for grooving
US5176424A (en) * 1988-06-10 1993-01-05 Mazda Motor Corporation Automobile seat assembly

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5316179A (en) * 1976-07-29 1978-02-14 Oki Electric Ind Co Ltd Numerical control system
JPS58132442A (en) * 1982-02-02 1983-08-06 Yamazaki Mazak Corp Method of controlling return of set-aside tool on numerical-controlled lathe

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5316179A (en) * 1976-07-29 1978-02-14 Oki Electric Ind Co Ltd Numerical control system
JPS58132442A (en) * 1982-02-02 1983-08-06 Yamazaki Mazak Corp Method of controlling return of set-aside tool on numerical-controlled lathe

Also Published As

Publication number Publication date
JPS60108248A (en) 1985-06-13

Similar Documents

Publication Publication Date Title
EP0440805B1 (en) Feed speed control method of numeric controller
JP3671020B2 (en) Numerical controller
EP0104409B1 (en) A method of establishing safe zones in a numerically controlled machine
US7689300B2 (en) Numerical control unit
EP1508843B1 (en) Numerical control apparatus
US20120010745A1 (en) Numerical controller for machine tool with function of controlling speed of arc operation
JP2009098982A (en) Working simulation device and its program
US20070185609A1 (en) Numerical control method
JPH0736514A (en) Three-dimensional tool diameter correction system
JP3459516B2 (en) Superposition control method by numerical controller
EP0364593B1 (en) Machine tool having two main spindles
JP2007304714A (en) Numerical control device
US7095203B2 (en) Numerical controller
JP5908552B1 (en) Machine tool controller
JP2008269483A (en) Numerical controller
JPH0122105B2 (en)
US4458326A (en) Method and apparatus for circular interpolation
US5347461A (en) Tool travel path creating method
JPH08106311A (en) Numerical controller
JPH07210225A (en) Numerical controller
JPH0272414A (en) Feeding speed control method for numeral control
JP4982170B2 (en) Machining control device and machining control program
EP0328665B1 (en) Numerical controller
JP7175340B2 (en) Machine tools, information processing devices and information processing programs
JPH07334223A (en) Tool spindle attitude control system