JP2537325Y2 - Numerical control device with machine state discrimination function - Google Patents

Numerical control device with machine state discrimination function

Info

Publication number
JP2537325Y2
JP2537325Y2 JP10008990U JP10008990U JP2537325Y2 JP 2537325 Y2 JP2537325 Y2 JP 2537325Y2 JP 10008990 U JP10008990 U JP 10008990U JP 10008990 U JP10008990 U JP 10008990U JP 2537325 Y2 JP2537325 Y2 JP 2537325Y2
Authority
JP
Japan
Prior art keywords
machine state
block
program
axis
machining 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.)
Expired - Lifetime
Application number
JP10008990U
Other languages
Japanese (ja)
Other versions
JPH0458707U (en
Inventor
晃 大野
Original Assignee
日立精機株式会社
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 日立精機株式会社 filed Critical 日立精機株式会社
Priority to JP10008990U priority Critical patent/JP2537325Y2/en
Publication of JPH0458707U publication Critical patent/JPH0458707U/ja
Application granted granted Critical
Publication of JP2537325Y2 publication Critical patent/JP2537325Y2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【考案の詳細な説明】 〔産業上の利用分野〕 本考案は、特に数値制御装置(NC装置)において、プ
ログラムチェックを行う際に、マシンロックやバックグ
ラウンド描画等、機械状態を判別する機能を有する数値
制御装置に関する。
[Detailed description of the invention] [Industrial application field] This invention provides a function to determine the machine state, such as machine lock and background drawing, when performing a program check, especially in a numerical control device (NC device). And a numerical controller having the same.

〔従来の技術〕[Conventional technology]

数値制御(以下、NCと記載)工作機械において、NC加
工を行う場合には、オペレータが、NC加工プログラムを
作成することが多い。そして、このNC加工プログラムの
指令に基づいて、NC装置は、工具または被加工物を制御
し、被加工物の所望の形状、寸法に仕上げる。
When performing NC machining on a numerically controlled (hereinafter, referred to as NC) machine tool, an operator often creates an NC machining program. Then, based on the command of the NC machining program, the NC device controls the tool or the workpiece, and finishes the workpiece into a desired shape and dimensions.

また、オペレータは、NC加工プログラムを作成した時
に、プログラムミスが無いかどうかプログラムチェック
を行い、確認後、実際に加工を行う。
Further, when the NC machining program is created, the operator performs a program check to see if there is any program error, and after the confirmation, actually performs the machining.

一方、主軸にタッチセンサを装着して、被加工物に接
触させ、その位置情報より、穴径寸法の計測は基準穴の
芯出しを行う機能を有するNC工作機械も知られている。
この計測機能や芯出し機能には、スキップ機能(G31)
というGコード指令が使用されている。このスキップ機
能(G31)とは、このGコードに続く軸移動指令の途中
で、スキップ信号(タッチセンサよりのタッチ信号等)
が入力されると、この軸移動指令の残りを中断して、次
ブロックの指令を実行する。そして、NC装置は、スキッ
プ信号入力時の位置情報を利用して、寸法計測や芯出し
を行うのである。
On the other hand, there is also known an NC machine tool having a function of attaching a touch sensor to a main shaft and bringing the touched object into contact with a workpiece, and measuring the hole diameter from the position information and centering a reference hole.
The skip function (G31) is included in this measurement function and centering function.
G code command is used. This skip function (G31) is a skip signal (such as a touch signal from a touch sensor) during the axis movement command following this G code.
Is input, the remaining axis movement command is interrupted, and the command of the next block is executed. Then, the NC device performs dimension measurement and centering using the position information at the time of input of the skip signal.

〔考案が解決しようとする課題〕[Problems to be solved by the invention]

ところで、作成したNC加工プログラムをマシンロック
やバックグラウンド描画モードで、プログラムチェック
を行う場合には、このNC加工プログラムの指令に沿っ
て、NC工作機械の各軸を移動させずに、移動情報データ
の表示、又は描画表示のみを行う。
By the way, when checking the created NC machining program in machine lock or background drawing mode, according to the command of this NC machining program, without moving each axis of the NC machine tool, move information data Or display only.

このような場合に、スキップ機能(G31)の指令を含
むNC加工プログラムをプログラムチェックすると、軸移
動中にスキップ信号が入力されないため、軸移動指令最
終値まで移動情報データのカウントまたは描画を行い、
次ブロックを実行する。しかし、軸移動指令最終値まで
移動情報データがカウントされると、計測機能、芯出し
機能では、タッチ信号(スキップ信号)の入力無とさ
れ、タッチセンサの異常、または、被加工物の異常と判
断され、アラーム処理がなされてしまう。
In such a case, when the NC processing program including the command of the skip function (G31) is program-checked, the skip signal is not input during the axis movement, so the movement information data is counted or drawn up to the axis movement command final value.
Execute the next block. However, when the movement information data is counted up to the final value of the axis movement command, the measurement function and the centering function determine that the touch signal (skip signal) is not input, and that the touch sensor is abnormal or the workpiece is abnormal. Judgment is made and alarm processing is performed.

そのため、オペレータは、スキップ機能の指令(G3
1)を含む、NC加工プログラムのプログラムチェックを
マシンロックやバックグラウンド描画モードでは行われ
ないように、手動でジャンプさせる操作をしていたが、
非常に煩雑な作業となるという問題点を生じていた。
Therefore, the operator issues a skip function command (G3
In order to prevent the program check of the NC machining program including 1) from being performed in the machine lock or the background drawing mode, an operation to jump manually was performed.
There has been a problem that the operation is very complicated.

この考案は、NC工作機械の運転状態をチェックし、マ
シンロックやバックグランド描画モードが選択されてい
る場合には、スキップ機能の指令(G31)を含む、NC加
工プログラムのブロックを自動的にジャンプすることに
より、手動操作を必要としないで、NC加工プログラムチ
ェックを行うことができる機械状態判別機能を有するNC
装置を提供することにある。
This device checks the operation status of the NC machine tool and automatically jumps the NC machining program block including the skip function command (G31) when the machine lock or background drawing mode is selected. NC with a machine state discrimination function that can perform NC machining program checks without the need for manual operation
It is to provide a device.

〔課題を解決するための手段〕[Means for solving the problem]

前記課題を解決するために、本考案にかかる機械状態
判別機能を有する数値制御装置は、数値制御工作機械を
制御する数値制御装置であって、 前記数値制御工作機械が軸移動可能か否かの状態を記
憶している機械状態メモリと、 スキップ機能のGコード指令のブロックを含むNC加工
プログラムのプログラムチェックを行う際に、前記NC加
工プログラムの指令により前記機械状態メモリのデータ
を読み取り、前記機械状態メモリのデータが軸移動不可
の場合には、前記NC加工プログラムで指定されたシーケ
ンス番号に飛び越して、そのブロックにより実行させ、
軸移動可能の場合には、次ブロックを実行させる機械状
態判別手段とを有し、 前記数値制御工作機械の軸移動の状態を自動判別し
て、軸移動不可のとき、前記スキップ機能のGコード指
令のブロックを自動的に飛び越して、前記NC加工プログ
ラムを実行するように構成される。
In order to solve the above problems, a numerical control device having a machine state determination function according to the present invention is a numerical control device that controls a numerically controlled machine tool, and whether the numerically controlled machine tool is capable of axial movement. When performing a program check of an NC machining program including a machine code memory that stores a state and a block of a G code command of a skip function, the data of the machine status memory is read by the command of the NC machining program, If the data in the state memory is not axis-movable, jump to the sequence number specified in the NC machining program and execute with the block.
A machine state determining means for executing the next block when the axis can be moved; automatically determining the state of the axis movement of the numerically controlled machine tool; and when the axis cannot be moved, the G code of the skip function is provided. It is configured to automatically skip the command block and execute the NC machining program.

〔作用〕[Action]

NC加工プログラムの指令に沿って、軸移動をしないと
アラーム処理がされてしまう場合、例えば、自動芯出し
用NC加工プログラムの先頭に、機械状態判別用のブロッ
クを挿入しておく。
If the alarm processing is performed unless the axis is moved according to the command of the NC machining program, for example, a block for discriminating the machine state is inserted at the head of the NC machining program for automatic centering.

このNC加工プログラムを実行すると、機械状態判別手
段は、機械状態メモリの所定のアドレスに記憶されてい
る情報を読み出し、軸移動する場合には、そのまま次ブ
ロックを実行し、軸移動しない場合には、機械状態判別
用のブロックで測定されたシーケンス番号のブロックに
飛び越し、そのブロックの指令を実行する。
When this NC machining program is executed, the machine state determination means reads information stored at a predetermined address of the machine state memory, executes the next block as it is when the axis moves, and when the axis does not move, And jumps to the block of the sequence number measured by the machine state determination block, and executes the command of that block.

〔実施例〕〔Example〕

以下、本考案の機械状態判別機能を有するNC装置の一
実施例を図面に基づいて説明する。
Hereinafter, an embodiment of an NC device having a machine state determination function of the present invention will be described with reference to the drawings.

第1図は本考案の機能ブロック図、第2図は本考案の
処理を説明するフローチャート、第3図はNC加工プログ
ラムの説明図、第4図は機械状態メモリの説明図であ
る。
FIG. 1 is a functional block diagram of the present invention, FIG. 2 is a flowchart for explaining the processing of the present invention, FIG. 3 is an explanatory diagram of an NC machining program, and FIG. 4 is an explanatory diagram of a machine state memory.

第1図において、1はマイクロプロセッサ(CPU)で
あり、バスライン2が接続されている。
In FIG. 1, reference numeral 1 denotes a microprocessor (CPU) to which a bus line 2 is connected.

3はNC装置のシステムプログラムが記憶されているRO
M、4はデータ等が記憶されているRAMである。
3 is the RO where the system program of the NC unit is stored
M and 4 are RAMs in which data and the like are stored.

6は表示装置のCRT、7は入力手段のキーボード(K.
B.)である。
6 is a CRT of a display device, 7 is a keyboard (K.
B.).

8はNC加工プログラムが記憶されているNC加工プログ
ラムメモリである。
Reference numeral 8 denotes an NC machining program memory in which an NC machining program is stored.

5は機械状態が記憶されている機械状態メモリであ
り、例えば、手動操作盤11上のマシンロック選択スイッ
チがマシンロック側に操作されると所定のアドレス(実
施例では、#3010)の5ビット目の状態が「0」から
「1」に切替わる。また、バックグランド側よりこのア
ドレスを読み出すと8ビット目の状態が「1」にフォア
グランド側よりこのアドレスを読み出すと、8ビット目
の状態が「0」になる(第4図参照)。そして、その内
容は所定の操作により表示することも可能である。
Reference numeral 5 denotes a machine state memory in which the machine state is stored. For example, when the machine lock selection switch on the manual operation panel 11 is operated to the machine lock side, 5 bits of a predetermined address (# 3010 in the embodiment) are stored. The eye state switches from “0” to “1”. When this address is read from the background side, the state of the eighth bit becomes "1", and when this address is read from the foreground side, the state of the eighth bit becomes "0" (see FIG. 4). The contents can be displayed by a predetermined operation.

9は機械状態を判別処理する機械状態判別手段であ
る。
Reference numeral 9 denotes a machine state discriminating means for discriminating the machine state.

上記のように構成された本考案の機械状態判別処理を
第2図および第3図を用いて説明する。
The mechanical state determination processing of the present invention configured as described above will be described with reference to FIGS. 2 and 3. FIG.

第3図に示すように、NC加工プログラム「00001」の
サブプログラム「0 9050」には N100 1F[#3010 GE 16]GOTO 900; の機械状態判別用のブロックが挿入されているものとす
る。
As shown in FIG. 3, it is assumed that a block for machine state discrimination of N100 1F [# 3010 GE 16] GOTO 900; is inserted in the sub-program "0 9050" of the NC machining program "00001".

プログラムチェックを行うNC加工プログラムが特定さ
れたら、プロセッサ1はこのNC加工プログラムを1ブロ
ックずつ読み出してくる(ステップS21)。
When the NC processing program for performing the program check is specified, the processor 1 reads out the NC processing program block by block (step S21).

次に、プロセッサ1は、その読み出したブロックが機
械状態判別指令のブロックか否かを判断する(ステップ
S22)。もし、機械状態判別指令のブロックである場合
には、機械状態判別手段9のプログラムを読み出し実行
する(ステップS23)。
Next, the processor 1 determines whether or not the read block is a block of a machine state determination command (step S1).
S22). If the block is a machine state determination command block, the program of the machine state determination means 9 is read and executed (step S23).

ついで、機械状態メモリ5の所定のアドレスの状態を
読み取り、軸移動しない状態か否かを判別する(ステッ
プS24)。例えば、所定のアドレス(#3010)の5ビッ
ト目または8ビット目が「1」であるか「0」であるか
を判別する。もし、どちらかが「1」の時には、軸移動
しない状態であるので、前記機械状態判別指令ブロック
で指示されたシーケンスNo.(実施例では、N900)にジ
ャンプする(ステップS25)。
Next, the state of a predetermined address in the machine state memory 5 is read, and it is determined whether or not the axis does not move (step S24). For example, it is determined whether the fifth or eighth bit of the predetermined address (# 3010) is "1" or "0". If either of them is "1", the axis does not move, so that the sequence jumps to the sequence No. (N900 in the embodiment) specified by the machine state determination command block (step S25).

ステップS26において、読み出したブロックがプログ
ラムエンドか否かを判別し、プログラムエンドの場合に
は、本考案の処理を終了し、プログラムエンドでない場
合には、ステップS21以下の処理に戻り、次のブロック
を読み出す。また、ステップS22において、機械状態判
別指令ブロックでないと判断された場合には、読み出し
たブロックを実行し(ステップS27)、ステップS26に進
む。
In step S26, it is determined whether or not the read block is a program end, and if it is a program end, the process of the present invention is ended. Is read. If it is determined in step S22 that the block is not the machine state determination command block, the read block is executed (step S27), and the process proceeds to step S26.

ステップS24において、軸移動可能と判断された場合
にも、ステップS26に進む。
If it is determined in step S24 that the axis can be moved, the process proceeds to step S26.

このように、プログラムチェックをしているNC工作機
械の状態が軸移動可能か否かを自動判別して、スキップ
機能(G31)のブロックを飛び越させる操作を自動的に
行うことができる。そのことにより、オペレータは、煩
雑な飛び越すための手動操作を行う必要がなく、プログ
ラムチェックに専念することができ、プログラムチェッ
クが容易になった。
In this way, it is possible to automatically determine whether or not the state of the NC machine tool performing the program check is capable of axis movement, and to automatically perform the operation of skipping the block of the skip function (G31). As a result, the operator does not need to perform a complicated manual operation for jumping, can concentrate on the program check, and the program check becomes easy.

なお、上記実施例では、機械状態判別機能を自動計測
サブプログラムの場合で説明したが、これに限定される
ものではなくマシンロックやバックグラウンド描画のモ
ードなどのほか、スキップ機能(G31)を含むNC加工プ
ログラムをプログラムチェックする際に、軸移動させな
い機械状態の判別を必要とする場合であればよい。
In the above embodiment, the machine state determination function is described in the case of the automatic measurement subprogram. However, the present invention is not limited to this, and includes a skip function (G31) in addition to a machine lock mode and a background drawing mode. It is sufficient if it is necessary to determine the machine state in which the axis is not moved when the NC machining program is checked.

〔考案の効果〕[Effect of the invention]

以上本考案によれば、スキップ機能(G31)を含むNC
加工プログラムであって、機械状態判別用のブロックが
挿入されていれば、スキップ機能(G31)を含むブロッ
クを自動的に飛び越す動作を行うため、オペレータは煩
雑な手動操作を行う必要がなく、NC加工プログラムのプ
ログラムチェック作業が容易になった。
According to the present invention, the NC including the skip function (G31)
If it is a machining program and a block for discriminating the machine state is inserted, the operation including the skip function (G31) is automatically performed so that the operator does not need to perform complicated manual operations. Checking the machining program has become easier.

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

第1図は本考案の機能ブロック図、第2図は本考案の処
理を説明するフローチャート、第3図はNC加工プログラ
ムの説明図、第4図は機械状態メモリの説明図である。 1……マイクロプロセッサ(CPU)、2……バスライ
ン、3……ROM、4……RAM、5……機械状態メモリ、6
……表示装置のCRT、7……入力手段のキーボード、8
……NC加工プログラムメモリ、9……機械状態判別手
段、11……手動操作盤。
FIG. 1 is a functional block diagram of the present invention, FIG. 2 is a flowchart for explaining the processing of the present invention, FIG. 3 is an explanatory diagram of an NC machining program, and FIG. 4 is an explanatory diagram of a machine state memory. 1 ... microprocessor (CPU), 2 ... bus line, 3 ... ROM, 4 ... RAM, 5 ... machine state memory, 6
... CRT of display device, 7 ... Keyboard of input means, 8
…… NC machining program memory, 9 …… Mechanical state discriminating means, 11 …… Manual operation panel.

Claims (1)

(57)【実用新案登録請求の範囲】(57) [Scope of request for utility model registration] 【請求項1】数値制御工作機械を制御する数値制御装置
であって、 前記数値制御工作機械が軸移動可能か否かの状態を記憶
している機械状態メモリと、 スキップ機能のGコード指令のブロックを含むNC加工プ
ログラムのプログラムチェックを行う際に、前記NC加工
プログラムの指令により前記機械状態メモリのデータを
読み取り、前記機械状態メモリのデータが軸移動不可の
場合には、前記NC加工プログラムで指定されたシーケン
ス番号に飛び越して、そのブロックより実行させ、軸移
動可能の場合には、次ブロックを実行させる機械状態判
別手段とを有し、 前記数値制御工作機械の軸移動の状態を自動判別して、
軸移動不可のとき、前記スキップ機能のGコード指令の
ブロックを自動的に飛び越して、前記NC加工プログラム
を実行させることを特徴とする機械状態判別機能を有す
る数値制御装置。
1. A numerical control device for controlling a numerically controlled machine tool, comprising: a machine state memory for storing whether or not the numerically controlled machine tool is axially movable; and a G code command for a skip function. When performing a program check of the NC machining program including the block, the data of the machine state memory is read by a command of the NC machining program, and if the data of the machine state memory cannot be moved along the axis, the NC machining program executes the program. Machine state discriminating means for jumping to the designated sequence number, executing from the block, and executing the next block when the axis can be moved, automatically discriminating the axis movement state of the numerically controlled machine tool do it,
A numerical controller having a machine state discriminating function, wherein when the axis cannot be moved, the NC processing program is automatically executed by skipping over the block of the G code command of the skip function.
JP10008990U 1990-09-25 1990-09-25 Numerical control device with machine state discrimination function Expired - Lifetime JP2537325Y2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10008990U JP2537325Y2 (en) 1990-09-25 1990-09-25 Numerical control device with machine state discrimination function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10008990U JP2537325Y2 (en) 1990-09-25 1990-09-25 Numerical control device with machine state discrimination function

Publications (2)

Publication Number Publication Date
JPH0458707U JPH0458707U (en) 1992-05-20
JP2537325Y2 true JP2537325Y2 (en) 1997-05-28

Family

ID=31842481

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10008990U Expired - Lifetime JP2537325Y2 (en) 1990-09-25 1990-09-25 Numerical control device with machine state discrimination function

Country Status (1)

Country Link
JP (1) JP2537325Y2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7110851B2 (en) 2003-02-20 2006-09-19 Mitsubishi Denki Kabushiki Kaisha Numerically controlled device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7110851B2 (en) 2003-02-20 2006-09-19 Mitsubishi Denki Kabushiki Kaisha Numerically controlled device

Also Published As

Publication number Publication date
JPH0458707U (en) 1992-05-20

Similar Documents

Publication Publication Date Title
JP4578742B2 (en) Interference prevention device
JPH06187023A (en) Safety operation system for manipulator and safety operation system for robot
JP2014013539A (en) Numerical control device including program resuming function
JP7414507B2 (en) Control device, measurement system, measurement method
US7110851B2 (en) Numerically controlled device
US4328448A (en) Method for programmably controlling the sequence of execution of data blocks in a program
JP2757590B2 (en) Numerical control unit
JP2537325Y2 (en) Numerical control device with machine state discrimination function
JP2581725B2 (en) Three-dimensional shape processing laser device
JP2559273B2 (en) Numerical control device and screen display method of numerical control device
JP4265423B2 (en) Machine control device
JPH06282318A (en) Mumerically controlled machine tool
KR920005252B1 (en) Numerical controller
JPS60246408A (en) Working state display device
WO2022249304A1 (en) Control device for industrial machine
JP2707031B2 (en) Method and apparatus for checking machining program
JP3487713B2 (en) Fast-forward moving speed control method and device
JP3015639B2 (en) 3D measuring device
JP2895685B2 (en) Numerical control unit
JP4208600B2 (en) NC machine tool
JPH01210250A (en) Skip position control device
JPH08115114A (en) Stroke check system for cnc
JPH01147607A (en) Numerical controller
JPH0235503A (en) Searching method for relay coil in ladder diagram display
KR19980083294A (en) How to edit graphic G-code of numeric controller