JPH0916236A - Nc control system - Google Patents

Nc control system

Info

Publication number
JPH0916236A
JPH0916236A JP18473495A JP18473495A JPH0916236A JP H0916236 A JPH0916236 A JP H0916236A JP 18473495 A JP18473495 A JP 18473495A JP 18473495 A JP18473495 A JP 18473495A JP H0916236 A JPH0916236 A JP H0916236A
Authority
JP
Japan
Prior art keywords
data
general
machining
basic shape
variable data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP18473495A
Other languages
Japanese (ja)
Other versions
JP3580447B2 (en
Inventor
Kazuaki Serizawa
一明 芹沢
Tetsuya Ogawa
哲也 小川
Masahiro Koike
昌宏 小池
Kunihide Hayashi
久仁英 林
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.)
Howa Machinery Ltd
Original Assignee
Howa Machinery Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Howa Machinery Ltd filed Critical Howa Machinery Ltd
Priority to JP18473495A priority Critical patent/JP3580447B2/en
Publication of JPH0916236A publication Critical patent/JPH0916236A/en
Application granted granted Critical
Publication of JP3580447B2 publication Critical patent/JP3580447B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE: To provide an NC control system which makes it easy to modify and prepare a machining program and to check machining data and is small in the amount of transmitted data and high in reliability. CONSTITUTION: A general programmable controller 6 and a general NC device 3 are connected by a communication cable 5 through an NC-side programmable controller 4, variable data by basic shape patterns which are inputted from a touch panel 8 and stored in the machining data storage part 10 of the RAM of the general programmable controller 6 are transmitted to the general NC device 3, and the variable data are applied to variable description parts of the machining program for the patterns described previously in the general NC device 3 by a macroprogram corresponding to the basic shape patterns to bring a machine tool under NC control.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、工作機におけるNC
制御方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to NC for machine tools.
Related to the control method.

【0002】[0002]

【従来の技術】EIAコード(Gコード)で動作するN
C装置において、その外部からプログラムを与えるもの
として、例えばNCテープに加工用のNCプログラムを
記述しておき、これをテープリーダにかけてNC装置へ
送るものや、加工用のNCプログラムを外部のパソコン
などで作成し、これをNC装置へ送るもの等がある。
2. Description of the Related Art N operating with EIA code (G code)
In the C device, as a program to be given from the outside, for example, a NC program for processing is written on an NC tape and is sent to the NC device by a tape reader, or the NC program for processing is supplied to an external personal computer or the like. There is a device which is created by the above and is sent to the NC device.

【0003】[0003]

【発明が解決しようとする課題】上記のように、NC装
置に対してその外部で作成したNCプログラムを送るも
のでは、NCプログラムそのものを例えばテープなどに
記述しているので、外部のテープリーダやパソコンなど
からNC装置へ伝えられるデータは、プログラムの文
字、数字(加工データを含む)を表すEIAコード(G
コード)のキャラクタ羅列のデータである。このような
キャラクタを示すデータにおいて、NCプログラム中に
記述された加工データ、例えば、Y軸方向の削り代、Z
軸方向の孔深さなどという実加工データが、あるワーク
に対する加工を実行するに際して、妥当な値であるかど
うかという判断を下すことは、伝送されるキャラクタデ
ータが、プログラムを表すデータも含んでいるために極
めて困難である。また、NCプログラムそのものを伝送
するので、データ量が多く、通信時間が長くなる問題が
ある。また、ワークの変更により、加工データ(削り代
や、各種切削条件)が変更されると、これに対する新た
なプログラムを作成せねばならない問題もあり、プログ
ラムに精通していないと作業できない問題もあった。ま
た、外部にパソコンを用いるものでは、一般にデータ入
力装置にキーボードを使用しており、また、NCプログ
ラムをしばしばハードディスクなどに記憶させるが、作
業環境が塵埃の多い加工現場に近い場所であると、これ
らの装置に短期間で故障を生じ、システムの信頼度が低
い問題がある。また、従来のNC装置では、NC装置で
制御される機械を止めることなく、外部から別のNCプ
ログラムを伝送しようとすると、NC装置に、NC加工
中にNCプログラムを伝送可能とするバックグラウンド
データ入力装置を別途必要とし、これを使用すると極め
てコスト高となる問題があり、また、これを使用しない
と、制御対象機械をいちいち止めなくてはならず、加工
効率が悪い問題がある。これら従来技術に鑑み、本願の
主な課題は、作業者がNCプログラムの知識を持たなく
ても、容易にプログラム変更でき、かつ、NC装置への
データ通信量を少なくし、かつ、ワークに対する実加工
データをチェックし易く、システムの信頼性の高いNC
制御方式を提供することにある。また、本願の別の課題
は、特別な入力機器を別途用いることなく、NC装置に
よる加工中にも、次のNC制御の為のデータを送ること
ができ、制御対象機械の可動率を上げることのできるN
C制御方式を提供することにある。また、本願の別の課
題は、実加工データの入力が極めて容易なNC制御方式
を提供することにある。
As described above, in the case of sending the NC program created externally to the NC device, since the NC program itself is written on, for example, a tape, an external tape reader or The data transmitted from the personal computer to the NC device is the EIA code (G
Code) character enumeration data. In the data indicating such a character, the machining data described in the NC program, for example, the cutting allowance in the Y-axis direction, Z
It is necessary to determine whether the actual machining data such as the axial hole depth is a proper value when machining a certain work, because the transmitted character data also includes the data representing the program. It is extremely difficult because Further, since the NC program itself is transmitted, there is a problem that the amount of data is large and the communication time becomes long. In addition, when the machining data (cutting allowance and various cutting conditions) is changed due to the change of the work, there is a problem that a new program has to be created, and there is a problem that the work cannot be performed unless the user is familiar with the program. It was Further, in the case of using a personal computer externally, a keyboard is generally used as a data input device, and the NC program is often stored in a hard disk or the like, but if the working environment is close to a dusty processing site, There is a problem in that these devices fail in a short period of time and the reliability of the system is low. In addition, in the conventional NC device, if another NC program is transmitted from the outside without stopping the machine controlled by the NC device, the background data that enables the NC program to be transmitted to the NC device during the NC machining. There is a problem that an additional input device is required, and if this is used, the cost becomes extremely high. Further, if this is not used, the machine to be controlled must be stopped one by one, resulting in poor machining efficiency. In view of these conventional techniques, the main problem of the present application is that the program can be easily changed even if the operator does not have knowledge of the NC program, the amount of data communication to the NC device is reduced, and the actual work is performed. NC with easy processing data check and high system reliability
To provide a control method. Another object of the present application is to increase the mobility of the controlled machine by sending data for the next NC control even during machining by the NC device without using a special input device. N that can
It is to provide a C control method. Another object of the present application is to provide an NC control method in which it is extremely easy to input actual machining data.

【0004】[0004]

【課題を解決するための手段】主な課題解決の為に、複
数の基本形状パターンを組合わせて加工を行うに際し、
EIAコード(Gコード)で動作する汎用NC装置に、
多数の基本形状パターンに対応し、マクロプログラムに
よって、各基本形状パターンを加工するのに必要な変数
を含んで記述した複数の加工プログラムを記憶する加工
プログラム記憶部を設け、この汎用NC装置と汎用プロ
グラマブルコントローラとをデータ授受可能に接続し、
汎用プログラマブルコントローラには、汎用プログラマ
ブルコントローラからの情報の画面表示と、汎用プログ
ラマブルコントローラへの画面からの情報の入力を可能
としたタッチパネル式の入力表示手段を接続し、汎用プ
ログラマブルコントローラのRAM内には、加工すべき
多数の基本形状パターンに対する実加工用の変数データ
を基本形状パターンと対応して記憶する変数データ記憶
部を設け、汎用プログラマブルコントローラに記憶され
た基本形状パターンの変数データを汎用NC装置へ送信
し、汎用NC装置では、その変数データを、対応する加
工プログラムへ適用して、制御対象機械を動作させるこ
とを特徴とする。また、別の課題解決の為に、請求項2
では、汎用NC装置での加工に先立ち、汎用プログラマ
ブルコントローラに記憶された複数の基本形状パターン
の変数データを汎用NC装置へ送信してバッフアに格納
し、汎用NC装置で、そのバッファの変数データによる
加工中に、バッファ内の変数データが、加工プログラム
に適用されたことをチェックして、次の基本形状パター
ンの変数データを汎用プログラマブルコントローラへ要
求し、汎用プログラマブルコントローラは次の基本形状
パターンの変数データを汎用NC装置のバッファへ送信
することを特徴とする。また、他の課題解決の為に請求
項3では、汎用プログラマブルコントローラは、複数の
基本形状パターンを記憶する形状パターン記憶部を含
み、入力表示手段からの基本形状パターン選択指令によ
り、選択された基本形状パターンを入力表示手段の画面
に表示し、この表示されたパターン上に、直接、実加工
用の寸法を変数データとして入力するようにしたことを
特徴とする。また、請求項4では、汎用プログラマブル
コントローラは、各基本形状パターンごとに、変数デー
タの、基本形状パターンと対応した変数データ記憶部に
おける格納位置と、表示入力バッファの格納位置とを対
応づけるデータ変換テーブルを備えており、この表示入
力バッファの各データ格納位置は、前記入力表示手段の
画面上の表示位置と1対1に対応されていることを特徴
とする。
[Means for Solving the Problems] In order to solve the main problems, when machining a plurality of basic shape patterns in combination,
General-purpose NC device that operates with EIA code (G code),
A machining program storage unit is provided for storing a plurality of machining programs corresponding to a large number of basic shape patterns and including variables necessary for machining each basic shape pattern by a macro program. Connect to a programmable controller to exchange data,
The general-purpose programmable controller is connected to a screen display of information from the general-purpose programmable controller and a touch panel type input display means that enables input of information from the screen to the general-purpose programmable controller. A variable data storage unit is provided for storing variable data for actual machining corresponding to a large number of basic shape patterns to be machined in correspondence with the basic shape pattern, and the variable data of the basic shape pattern stored in the general-purpose programmable controller is used for the general-purpose NC device. The general-purpose NC device applies the variable data to a corresponding machining program to operate the controlled machine. Further, in order to solve another problem, claim 2
Then, before processing with the general-purpose NC device, the variable data of a plurality of basic shape patterns stored in the general-purpose programmable controller is sent to the general-purpose NC device and stored in the buffer, and the general-purpose NC device uses the variable data of the buffer. During machining, it checks that the variable data in the buffer has been applied to the machining program and requests the variable data of the next basic shape pattern to the general-purpose programmable controller. It is characterized in that the data is transmitted to the buffer of the general-purpose NC device. In order to solve another problem, according to claim 3, the general-purpose programmable controller includes a shape pattern storage unit that stores a plurality of basic shape patterns, and the basic pattern selected by a basic shape pattern selection command from the input display means. It is characterized in that the shape pattern is displayed on the screen of the input display means, and the dimensions for actual machining are directly input as variable data on the displayed pattern. Further, in claim 4, the general-purpose programmable controller performs, for each basic shape pattern, data conversion for associating the storage position of the variable data in the variable data storage unit corresponding to the basic shape pattern with the storage position of the display input buffer. A table is provided, and each data storage position of the display input buffer is in one-to-one correspondence with the display position on the screen of the input display means.

【0005】[0005]

【作用】本願では、加工ワークにおける実加工データ
(切込み深さであるとか、取り代であるとか、切削条件
(工具回転数、工具番号、送り速度等)のみを汎用NC
装置へ送り、汎用NC装置で、対応する加工プログラム
の中の変数記述部分にこれを適用してNC制御をするよ
うにしたので、登録されている基本形状パターンを加工
する場合であれば、その基本形状パターンに対する変数
データを与えるだけで、NCプログラムを記述すること
なく容易にNC加工を実行できる。そして、予め加工ワ
ークに関する情報(巾、厚み、長さ、材質等)を与えて
おくことで、これらの変数データが、そのワークを加工
するのに、妥当な値であるかどうかを容易に判別可能と
なり、加工ミスを防止でき、その上、NCプログラムそ
のものを伝送しない為、データ通信量が少なく、短時間
で通信できる。また、多数の変数データを汎用プログラ
マブルコントローラのRAM内に記憶させ、また、デー
タなどの入出力を、タッチパネルで行うので、フロッピ
ディスクなどに記憶させ、入出力をキーボードから行う
場合に比べて塵埃に強くシステムの信頼性が高い。請求
項2では、複数の基本形状パターンの各変数データを予
めNC側のバッッファに送りこんでおき、加工中にNC
側でバッファ内の変数データが加工プログラムに適用さ
れたことを確認して、次の変数データを汎用プログラマ
ブルコントローラに要求する。従って、変数データの授
受と、NC装置による加工とが同時に進行する。請求項
3では、タッチパネルの画面に基本加工形状を表示し、
その表示画面に対して寸法入力ができるので、だれにで
も簡単に入力できる。請求項4では、入力表示手段にタ
ッチパネルを用いて入力を簡単にする本願において、変
数データ記憶部での変数データの格納位置と、表示入力
バッファの格納位置との対応をとるデータ変換テーブル
を採用し、この表示入力バッファは、そのデータ格納位
置をタッチパネル上の表示位置と1対1に対応させてあ
るので、データの登録順やデータ格納領域の大小に係ら
ず、表示時には、単に表示入力バッファに従って表示す
るだけでよいから、表示用のシーケンスプログラムを共
通にでき、また、表示と、格納の為のデータ変換も、デ
ータ変換テーブルに従って行われるため、基本形状パタ
ーンごとに異なるデータ変換プログラムを多数用意しな
くてよい上に、新たな基本形状パターンを追加するとき
にも、その基本形状パターンに対応したデータ変換テー
ブルを用意すれば、データ変換プログラムを変更する必
要がない。
In the present application, only the actual machining data (such as the cutting depth, the machining allowance, etc.) of the machined work and the cutting conditions (tool rotation speed, tool number, feed speed, etc.) are used for general purpose NC.
When the registered basic shape pattern is machined, the general NC machine is applied to the variable description part in the corresponding machining program to perform NC control. By giving variable data for the basic shape pattern, NC machining can be easily executed without writing an NC program. Then, by giving information (width, thickness, length, material, etc.) related to the workpiece in advance, it is easy to determine whether these variable data are appropriate values for machining the workpiece. It is possible to prevent processing errors, and since the NC program itself is not transmitted, the amount of data communication is small and communication can be performed in a short time. In addition, a large number of variable data are stored in the RAM of the general-purpose programmable controller, and since input / output of data etc. is performed with the touch panel, it is stored in a floppy disk etc. Strong and reliable system. In claim 2, each variable data of a plurality of basic shape patterns is sent in advance to the NC side buffer and the NC is processed during machining.
The side confirms that the variable data in the buffer has been applied to the machining program, and requests the next variable data from the general-purpose programmable controller. Therefore, the exchange of variable data and the processing by the NC device simultaneously proceed. In claim 3, the basic machining shape is displayed on the screen of the touch panel,
The dimensions can be entered on the display screen, making it easy for anyone to enter. According to a fourth aspect of the present invention, in the present application in which a touch panel is used as the input display means to simplify the input, a data conversion table that associates the storage position of the variable data in the variable data storage unit with the storage position of the display input buffer is adopted. However, since this display input buffer has a one-to-one correspondence between the data storage position and the display position on the touch panel, regardless of the data registration order or the size of the data storage area, the display input buffer is simply displayed. Since it is only necessary to display in accordance with the above, it is possible to use a common sequence program for display, and since data conversion for display and storage is also performed according to the data conversion table, there are many different data conversion programs for each basic shape pattern. In addition to not having to prepare, even when adding a new basic shape pattern, the basic shape pattern is supported By preparing the chromatography data conversion table, it is not necessary to change the data conversion program.

【0006】[0006]

【実施例】図1に示すように、NC制御装置1は、工作
機械2を直接制御する、EIAコード(Gコード)で動
作する汎用NC装置3と、汎用NC装置3に設けられた
プログラマブルコントローラ4(以下、NC側PC4:
主に通信を制御する)を介して汎用NC装置3との間
で、データ、指令等をやり取りするようにI/O通信ま
たは、それに準じた通信ケーブル5で接続された汎用プ
ログラマブルコントローラ6(以下、汎用PC6)と、
汎用PC6とデータ授受可能に通信ケーブル7を介して
接続された入力表示手段8とを備えている。この入力表
示手段8は、一般のキーボードとディスプレイの組合わ
せと異なり、本願では、汎用PC6からの情報を画面に
表示し、また、汎用PC6への入力を、画面から行うこ
とのできるタッチパネル式のものである。加工の為の工
作機械2は、平面図により図7に示される。この工作機
械2は、主軸2aが垂直下方を向いた竪型のマシニング
センタで、X軸方向(ワーク長手方向)とY軸方向(ワ
ーク幅方向)とZ軸方向(上下方向、図7で紙面に垂直
な方向)の直交3軸方向に、主軸2a、すなわち、工具
Tが移動するようになっている。データ作成装置は、入
力表示手段8と汎用PC6とで構成される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS As shown in FIG. 1, an NC control device 1 includes a general-purpose NC device 3 that directly controls a machine tool 2 and operates with an EIA code (G code), and a programmable controller provided in the general-purpose NC device 3. 4 (hereinafter, NC side PC4:
A general-purpose programmable controller 6 (hereinafter referred to as a general-purpose programmable controller 6 connected to the general-purpose NC device 3 via I / O communication or a communication cable 5 conforming thereto so as to exchange data, commands, etc. , A general-purpose PC6),
It comprises a general-purpose PC 6 and an input display means 8 connected via a communication cable 7 so that data can be exchanged. Unlike the combination of a general keyboard and a display, this input display means 8 is a touch panel type that can display information from the general-purpose PC 6 on the screen and can perform input to the general-purpose PC 6 from the screen in the present application. It is a thing. The machine tool 2 for machining is shown in plan view in FIG. This machine tool 2 is a vertical machining center in which a main shaft 2a faces vertically downward, and has an X-axis direction (workpiece longitudinal direction), a Y-axis direction (workpiece width direction), and a Z-axis direction (vertical direction, in FIG. 7). The main shaft 2a, that is, the tool T moves in three orthogonal directions (vertical direction). The data creation device comprises an input display means 8 and a general-purpose PC 6.

【0007】このNC制御装置で扱われるワークは、図
10に示すような、枠組みされてサッシ窓枠200を構
成する左右の竪枠201,202、上下枠203,20
4、横枠205あるいは、この窓枠200にはめこまれ
る障子の上下框、左右竪框となどいった長尺材であり、
その加工形状は、例えば竪枠201について説明する
と、図9のように、長手方向両端、中間に設けられ、上
下枠203,204端部、横枠205端部が嵌まり込む
ように断面の折曲片部201e,201e(図8)を削
除した切欠部201a,201b,201cや、竪枠2
01を介して上下枠203,204や横枠205のねじ
溝に止めねじ207をねじ込むために、竪枠201の壁
部201dに設けた多数のねじ孔206などから成って
いる。
Workpieces handled by this NC control device are framed as shown in FIG. 10 to form the sash window frame 200. The left and right vertical frames 201 and 202, and the upper and lower frames 203 and 20.
4, a long frame such as the horizontal frame 205 or the upper and lower frames of the shoji that are fitted in the window frame 200, the left and right vertical frames,
The processed shape will be explained, for example, with respect to the vertical frame 201, as shown in FIG. Cutouts 201a, 201b, 201c in which the bent piece portions 201e, 201e (FIG. 8) are removed, and the vertical frame 2
In order to screw the setscrews 207 into the screw grooves of the upper and lower frames 203, 204 and the horizontal frame 205 via 01, it is composed of a large number of screw holes 206 provided in the wall portion 201d of the vertical frame 201.

【0008】このようなワークを加工するために、ワー
クの加工形状を分類し、一つの工具で行いうる加工の基
本的な形状毎に一まとめにして、いくつかの基本形状パ
ターンとして、汎用PC6のRAM内の形状パターン記
憶部25に記憶してある。基本形状パターンは、図2に
示すような形状、孔あけ、あるいは、パターン1,3,
4,6,11,12の加工後において、そのR部分にス
ロッタ加工を施すためのスロッタ加工などに分類されて
いる。
In order to machine such a work, the machining shapes of the work are classified, and the basic shapes of the machining that can be performed by one tool are grouped together, and a general-purpose PC 6 is provided as several basic shape patterns. It is stored in the shape pattern storage unit 25 in the RAM. The basic shape pattern is a shape, a hole, or patterns 1, 3, 3 as shown in FIG.
After the machining of 4, 6, 11, and 12, the slots are classified into the slotter machining for performing the slotter machining on the R portion.

【0009】このようなワークの加工部分は、枠組され
る相手の枠材が同じであれば、切欠きと、ねじ孔の相対
位置関係は同じである。そのため、互いに相対位置関係
を変えない関係にある加工部分をまとめて、図7に示す
ように、左、右端加工グループ20,30と、中間加工
グループ40とに区分している。そして各加工グループ
に含まれるいくつかの基本形状パターンに対する実寸法
は、各加工グループで共通の原点を基準とした独立した
座標系で定義されるようにしてある。すなわち、図7の
ワークでは、左端加工グループ20に属する基本形状パ
ターンは、パターン1(上側切欠き),パターン3(下
側切欠き),パターン51(スロッタ加工)、パターン
63(孔あけ)であり、これらは、機械の加工原点と一
致した原点21基準の座標系で定義され、その機械の加
工原点21は、枠材の左端面200Lを含む平面内に位
置している。また、右端加工グループ30には、パター
ン4,6,51,64が属し、これらは、機械の加工原
点21とワーク長手方向(X軸方向)の座標のみをずら
した原点31を基準とするローカル座標系で定義され、
原点31は枠材の右端面200Rを含む平面内に位置し
ている。また、中間加工グループ40は、パターン1
1,12、51、63が含まれ、これらも、機械の加工
原点21とワーク長手方向座標のみをずらした原点41
を基準とするローカル座標系で定義されるようになって
いる。尚、中間加工グループ40は、本実施例では、左
端加工グループ20の原点21からのシフト量SMが与
えられる左端基準加工グループのみを示したが、この他
に、右端加工グループ30の原点31からのシフト量A
が与えられる中間加工グループ(図7の部分45のよう
な角孔部と、ねじ孔)があるときには、これも、別の原
点46を基準としたローカル座標系で記述される。
In the machined portion of such a work, the relative positional relationship between the notch and the screw hole is the same as long as the frame material of the mating frame is the same. Therefore, as shown in FIG. 7, the machining parts having a relative positional relationship that is not changed are grouped into left and right end machining groups 20 and 30 and an intermediate machining group 40. The actual dimensions for some basic shape patterns included in each processing group are defined by independent coordinate systems with the origin common to each processing group. That is, in the work of FIG. 7, the basic shape patterns belonging to the left end processing group 20 are pattern 1 (upper cutout), pattern 3 (lower cutout), pattern 51 (slotter processing), and pattern 63 (drilling). Yes, these are defined by a coordinate system based on an origin 21 that coincides with the machining origin of the machine, and the machining origin 21 of the machine is located in a plane including the left end face 200L of the frame material. Further, patterns 4, 6, 51, 64 belong to the right end machining group 30, and these are local with respect to an origin 31 obtained by shifting only the machining origin 21 of the machine and the coordinate in the workpiece longitudinal direction (X-axis direction). Defined in the coordinate system,
The origin 31 is located in the plane including the right end surface 200R of the frame material. Further, the intermediate processing group 40 has the pattern 1
1, 12, 51, 63 are also included, and these are also the origin 41 of the machine, which is the machining origin 21 and the work longitudinal coordinate.
Is defined in the local coordinate system based on. In the present embodiment, the intermediate machining group 40 shows only the left end reference machining group to which the shift amount SM from the origin 21 of the left end machining group 20 is given, but in addition to this, from the origin 31 of the right end machining group 30. Shift amount A
When there is an intermediate machining group (a square hole portion such as the portion 45 in FIG. 7 and a screw hole) to which is given, this is also described in a local coordinate system with another origin 46 as a reference.

【0010】汎用PC6内のRAMには、図3に示すデ
ータの入出力に関する制御プログラムが記憶してあり、
この制御プログラムにより、上述のワークに対する加工
データを作成するようになっている。制御プログラムの
各制御ステップは、機能実現手段を示し、ステップS3
は、その型材に共通のデータ(型材の厚み、幅、全長な
ど)を入力する手段、ステップS4は、前記加工グルー
プを選択する加工グループ選択手段で、中間加工グルー
プ40を選択すると、機械の加工原点21からのX軸方
向の原点シフト量SMを入力するようになっていて、座
標系間の原点シフト量入力手段も兼ねている。もちろ
ん、中間加工グループにワークの右端を基準とした右端
加工基準グループがあれば、右端の座標系の原点41か
らの原点シフト量Aが入力されることはいうまでもな
い。また、ステップS5は、加工パターン選択手段で、
前述の基本形状パターンから、選択した加工グループに
含まれる基本形状パターンを選択する手段である。ま
た、ステップS7は、選択した基本形状パターンに対し
て、切削条件、工具選択を含んで、実際の加工寸法を設
定する寸法入力手段である。これらの入力は、すべて前
記タッチパネル8の画面上から行われる。また、ステッ
プS8、S9は、画面から入力されたデータを変数デー
タ記憶部のどこに格納するのかを、後述のデータ変換テ
ーブルを参照し、所定の格納位置に格納する、データ格
納指令手段である。また、ステップS14は、加工に先
立って、後述の変数データを複数加工パターン分(ここ
では、3パターン)をNC側PC4へ送る送信手段、ス
テップS15は、NC側で加工を開始した後、NC側か
らの要求で、加工パターン変数データを、1パターンず
つ図番データが終わるまで送り出す送信手段である。
A control program relating to the input / output of data shown in FIG. 3 is stored in the RAM in the general-purpose PC 6,
With this control program, processing data for the above-mentioned work is created. Each control step of the control program indicates a function realizing means, and step S3
Is a means for inputting common data (thickness, width, total length, etc.) of the mold material, and step S4 is a machining group selecting means for selecting the machining group. When the intermediate machining group 40 is selected, machining of the machine is performed. The origin shift amount SM in the X-axis direction from the origin 21 is input, and it also serves as an origin shift amount input means between coordinate systems. Of course, if the intermediate processing group has the right end processing reference group with the right end of the work as a reference, the origin shift amount A from the origin 41 of the coordinate system at the right end is input. Further, step S5 is a processing pattern selection means,
It is a means for selecting a basic shape pattern included in the selected processing group from the above-mentioned basic shape patterns. Step S7 is a dimension input means for setting the actual machining dimension including the cutting condition and the tool selection for the selected basic shape pattern. All of these inputs are performed on the screen of the touch panel 8. Further, steps S8 and S9 are data storage command means for referring to a data conversion table, which will be described later, as to where in the variable data storage section the data input from the screen is stored, and storing the data in a predetermined storage position. Further, step S14 is a transmission means for sending variable data, which will be described later, for a plurality of processing patterns (here, three patterns) to the PC 4 on the NC side prior to the processing, and step S15 is for starting NC processing on the NC side and then executing NC. It is a transmission means for transmitting the machining pattern variable data one pattern at a time until the drawing number data ends, in response to a request from the side.

【0011】汎用PC6のRAM内には、製品図番単位
の加工データ記憶部10が複数設けてある。各加工デー
タ記憶部10は、図5に示すように、その先頭から図番
データ記憶部11、その図番のワークの共通データ記憶
部12、どの加工グループにどの基本形状パターンが含
まれるかを管理し、加工グループの区切りを行うグルー
プ管理データ記憶部13、左端加工グループデータ記憶
部14、中間加工グループデータ記憶部15、右端部加
工データ記憶部16が、順に並んでいる。各加工グルー
プデータ記憶部14,15,16は、基本形状パターン
に対する変数データを各基本形状パターンと対応して記
憶した複数の変数データ記憶部17から構成される。
In the RAM of the general-purpose PC 6, a plurality of processed data storage units 10 for each product drawing number are provided. As shown in FIG. 5, each machining data storage unit 10 includes a drawing number data storage unit 11, a common data storage unit 12 for the work of the drawing number, which machining group contains which basic shape pattern, as shown in FIG. A group management data storage unit 13 that manages and delimits processing groups, a left end processing group data storage unit 14, an intermediate processing group data storage unit 15, and a right end processing data storage unit 16 are arranged in order. Each processing group data storage unit 14, 15, 16 is composed of a plurality of variable data storage units 17 that store variable data for the basic shape pattern in association with each basic shape pattern.

【0012】汎用PC6は、タッチパネル8との間での
データのやり取りを行うための表示入力バッファ50を
備えている。このバッフア50の多数のデータ格納位置
a,b,c,d,e…は、タッチパネル8に表示される
各種の基本形状パターンに対する寸法、各種データの入
力、表示位置と1対1で対応しており、データ格納位置
が表示位置を示すデータとなっている。また、汎用PC
6のRAM内には、このバッファ50の格納位置と、前
述の変数データ記憶部17におけるデータ格納位置との
対応関係を示すデータ変換テーブル51が設けてある。
データ変換テーブル51には、バッファ50の格納位置
に先頭から格納されたデータが、変数データ記憶部17
の先頭番地(変数データの先頭は、必ずパターン種別に
設定してある)から順に、どのようなデータサイズで記
憶されるのか(即ち、格納位置)などがデータ種別コー
ドで記述して前記バッファの格納位置と対応づけてあ
る。従って、データ入力の際に、前記フローチャートの
ステップS8において、画面上のある位置に入力された
データは、これと対応したバッファ50の格納位置に格
納され、ここでデータ変換テーブル51を参照すること
により、データサイズの小さいものは、変数データ記憶
部17のメモリ単位(16bit)を複数に区切るよう
に順に格納され、記憶エリアを節約して、すなわち、R
AMに記憶するのに適した形で格納されるようになって
いる。また、このように格納されたデータを読みだすと
きにも、読出指定された加工パターンがどのパターンか
により、そのパターンに対応したデータ変換テーブル5
1を参照することで、その変数データ記憶部17の先頭
番地の最初の8bitの加工パターン種別データの次の
4bitが工具番号、その次が基準、グループの判別デ
ータであるというように、変数データ記憶部にメモリを
できるだけ節約して記憶してある情報を切り出して、こ
の切り出したデータをバッファ50の対応する格納位置
へ、表示に適した形式として格納するようになってい
る。従って、基準形状パターンの形状の差によるデータ
の並び順、データの占める記憶エリアの大きさ等、変数
データの構造が異なっても、各基本形状パターンごとに
準備したデータ変換テーブル51を参照することによ
り、変数記憶エリアでの記憶形式と、バッファ50での
記憶形式との間でデータの変更が行われるので、各基本
形状パターンに対応して、そのようなデータ変更の為の
プログラムを多数準備する必要はない。なお、このデー
タ変更テーブル51は、図1に示すメンテナンス用パソ
コン52により書き替えでき、これによって、新たな基
本形状パターンの追加があっても、その追加した基本形
状パターン用のテーブルを準備すれば、データ変換の為
のプログラムを手直しすることなく、新たなパターンに
よるデータ記憶と参照ができる。
The general-purpose PC 6 has a display input buffer 50 for exchanging data with the touch panel 8. A large number of data storage positions a, b, c, d, e ... Of the buffer 50 are in one-to-one correspondence with dimensions for various basic shape patterns displayed on the touch panel 8, input of various data, and display positions. The data storage position is data indicating the display position. Also, a general-purpose PC
A data conversion table 51 showing the correspondence relationship between the storage position of the buffer 50 and the data storage position in the variable data storage unit 17 is provided in the RAM 6 of FIG.
In the data conversion table 51, the data stored from the beginning in the storage position of the buffer 50 is stored in the variable data storage unit 17
From the beginning address (the beginning of the variable data is always set to the pattern type), the data size to be stored (that is, the storage position) is described by the data type code and stored in the buffer. It is associated with the storage location. Therefore, at the time of data input, the data input at a certain position on the screen in step S8 of the flowchart is stored in the corresponding storage position of the buffer 50, and the data conversion table 51 is referred to here. Thus, the data having a small data size is sequentially stored so as to divide the memory unit (16 bits) of the variable data storage unit 17 into a plurality of sections, thereby saving the storage area, that is, R
It is adapted to be stored in a form suitable for storage in the AM. Further, even when the data stored in this way is read out, the data conversion table 5 corresponding to the pattern to be read depends on which pattern is the processed pattern.
By referring to 1, the variable data is stored such that the next 4 bits of the machining pattern type data of the first 8 bits of the head address of the variable data storage unit 17 are the tool number, the next is the reference and group discrimination data. The stored information is cut out by saving the memory in the storage unit as much as possible, and the cut out data is stored in the corresponding storage position of the buffer 50 in a format suitable for display. Therefore, the data conversion table 51 prepared for each basic shape pattern should be referred to even if the structure of variable data is different, such as the arrangement order of data due to the difference in the shape of the reference shape pattern, the size of the storage area occupied by the data, and the like. As a result, data is changed between the storage format in the variable storage area and the storage format in the buffer 50. Therefore, a large number of programs for such data modification are prepared for each basic shape pattern. do not have to. The data change table 51 can be rewritten by the maintenance personal computer 52 shown in FIG. 1, so that even if a new basic shape pattern is added, a table for the added basic shape pattern can be prepared. , Data can be stored and referenced by a new pattern without modifying the program for data conversion.

【0013】そして、制御プログラムに含まれる表示プ
ログラムを、表示命令に表示位置と表示内容(バッファ
50のデータ格納位置に格納されたデータ)をパラメー
タとして記述しておくことにより、バッファ50を先頭
から順に読み出しながら、バッファ50のデータ格納位
置の示す表示位置データとその格納内容とを、表示プロ
グラムの前記パラメータに適用すれば、対応する画面上
の位置に対応する格納データが表示されるので、各基本
形状パターンの形状の差による変数データの並び順(デ
ータ構造)が異なっていても、表示プログラムを全く共
通のものとすることができることになる。
Then, the display program included in the control program is described in the display command with the display position and the display content (data stored in the data storage position of the buffer 50) as parameters, so that the buffer 50 starts from the beginning. When the display position data indicated by the data storage position of the buffer 50 and the stored contents are applied to the parameters of the display program while reading sequentially, the stored data corresponding to the corresponding position on the screen is displayed. Even if the arrangement order (data structure) of the variable data is different due to the difference in the shapes of the basic shape patterns, the display programs can be made completely common.

【0014】次に、汎用NC装置3には、前記各基本形
状パターンと対応して、切削条件、工具条件、その加工
パターンを加工するのに必要な寸法、原点のシフト量な
ど、前記タッチパルから変数データとして入力され、実
際の加工を行うのに必要なデータを変数として記述した
加工プログラムが、基本形状パターンと同じ数だけ、E
IMコード(Gコード)を用いたマクロプログラムとし
て記述され、これらは、加工プログラム記憶部55に記
憶されている。また、汎用NC装置3内には、やはりマ
クロプログラムで記述され、送られてきた変数データ
が、ワークを加工するのに妥当な値かどうか、すなわ
ち、共通データとして与えられるワーク幅寸法よりY軸
方向の切り込み寸法がおおきくはないか、あるいは、ワ
ークの高さ寸法に対してZ方向の切削深さが大きくない
か、ねじ孔のピッチがワーク幅を越えていないかなどの
判別を行うようになっている、データのチェックプログ
ラム56が設けてある。この判別は、加工に先立って行
われ、万一、加工に不都合なデータがあると、そのデー
タによる加工を中止し、不良品がでないようにすると共
に、作業者に注意を促すようになっている。
Next, in the general-purpose NC device 3, corresponding to each of the basic shape patterns, cutting conditions, tool conditions, dimensions required to process the machining pattern, shift amount of the origin, etc. The machining program that is input as variable data and describes the data necessary for actual machining as variables has the same number as the basic shape pattern.
It is described as a macro program using IM code (G code), and these are stored in the machining program storage unit 55. Further, in the general-purpose NC device 3, whether the variable data described and transmitted by the macro program is a proper value for machining the work, that is, the Y-axis from the work width dimension given as common data Whether the depth of cut in the direction is large, the cutting depth in the Z direction is not large relative to the height of the work, or the pitch of the screw holes does not exceed the work width. A data check program 56 is provided. This determination is performed prior to processing, and if there is any data that is inconvenient for processing, the processing is stopped based on that data to prevent defective products and to alert the operator. There is.

【0015】主に通信を司るNC側PC4には、変数デ
ータ格納バッファ60が設けてある。この格納バッファ
60には、前記汎用PC6から送信されてきた複数の加
工パターン単位の変数データが記憶される。汎用NC装
置3の制御プログラムは、図4(a)に示される。ステ
ップS21は起動指令の有無判別ステップ、ステップ2
2はデータ読出ステップ、ステップ23は前記チェック
プログラムによるデータチェックステップ、ステップS
24は、変数を対応するパターン加工プログラムに適用
し、必要であれば、ローカル座標系を機械座標系に変換
する変数データの適用ステップ、ステップ25は機械へ
の制御指令出力ステップ、ステップ26は加工終了判別
ステップである。
A variable data storage buffer 60 is provided in the NC side PC 4 which mainly controls communication. The storage buffer 60 stores variable data in units of a plurality of processing patterns transmitted from the general-purpose PC 6. The control program of the general-purpose NC device 3 is shown in FIG. Step S21 is a step of determining the presence / absence of a start command, Step 2
2 is a data reading step, step 23 is a data checking step by the checking program, step S
24 is a step of applying variables to the corresponding pattern processing program, and if necessary, step of applying variable data for converting the local coordinate system to the machine coordinate system, step 25 is a step of outputting a control command to the machine, and step 26 is processing. This is an end determination step.

【0016】NC側PC4の制御プログラムを図4
(b)に示す。ステップS27は、汎用NC装置3で読
み出された結果、バッファ60内変数データが加工パタ
ーン1つ分減ったかどうかを判別するデータ格納状態検
知ステップ、ステップS28は加工パターン1つ分減っ
たときに、汎用PC6に次の加工パターン1つ分の加工
データの要求を出すデータ要求ステップ、ステップS2
9は汎用PC6からのデータを受信する受信ステップで
ある。本願では、このように、汎用NC装置3が変数デ
ータ格納バッファ60に格納されたデータを参照して、
マクロプログラムにより機械を制御する一方で、NC側
PC4により、変数データの減り具合を見ながら、汎用
PC6に次のデータを要求しているので、機械制御とデ
ータ転送が同時に行われ、その結果、データ転送の時
に、機械制御を止めるようにしている従来装置に比べ、
円滑なデータ転送が行われ、また、変数データのみを汎
用PC6からNC装置3側へ送る構成としたので、従来
のように、マクロプログラムを伝達する方式に比べ、デ
ータ量を少なくでき、伝達時間が短縮される。
The control program of the NC side PC4 is shown in FIG.
(B). Step S27 is a data storage state detection step of determining whether or not the variable data in the buffer 60 has been reduced by one machining pattern as a result of being read by the general-purpose NC device 3, and step S28 is when one machining pattern is reduced. , A data request step for issuing a request for processing data for the next processing pattern to the general-purpose PC 6, step S2
Reference numeral 9 is a receiving step for receiving data from the general-purpose PC 6. In the present application, as described above, the general-purpose NC device 3 refers to the data stored in the variable data storage buffer 60,
While controlling the machine by the macro program, the NC side PC 4 requests the next data from the general purpose PC 6 while checking the reduction of the variable data, so the machine control and the data transfer are performed at the same time, and as a result, Compared to conventional devices that stop machine control when transferring data,
Since data is smoothly transferred and only the variable data is sent from the general-purpose PC 6 to the NC device 3, the amount of data can be reduced and the transfer time can be reduced as compared with the conventional method of transferring a macro program. Is shortened.

【0017】次に図3,図4により作用を説明する。デ
ータ入力では、ステップS1,S2を経て、ステップS
3で加工ワークに対する図番と、型材データ(厚さ、
幅、全長など)を入力する。次に、加工グループを選択
する。図7のワークでは、左端加工グループ20、右端
加工グループ30、中間加工グループ40の3つである
ので、各加工グループにおいて、ステップS5でその加
工グループに属する基本形状パターンを選択する。例え
ば左端加工グループ20では、まず、パターン1が選択
され、そのパターンがタッチパネル8上に表示され、そ
の画面上のデータ入力、表示位置をタッチして、そこ
へ、データを直接入力する。データ入力時には、タッチ
パネル8の表示画面がキーボード画面に切り替わり、そ
のキーボード画面から入力が行われる。パターン1で
は、切欠きの寸法A、B、C、工具No,機械の加工原
点21に対する基準か、そうでないか、工具径、工具種
別などといった工具データや、図示しないが、各軸方向
の切削速度などの切削条件も入力される。寸法は、原点
(ここでは機械の加工原点と一致)21を基準に入力さ
れる。このように入力された各データは、入力表示バッ
ファ50の対応する格納位置に格納され、パターン1の
データ変換テーブル51を参照して、左端加工グループ
データ記憶部14のパターン1用変数データ記憶部17
に、データ形式をデータ格納に適した形式にして、前述
のように順に格納していく。左端加工グループ20に属
する他の加工パターン(パターン3,63、51)に対
しても、ステップ10を経て同様にデータ入力され、図
5に示すように左端加工グループデータ記憶部14に順
に記憶される。そして、ステップS11を経て、残る加
工グループ30,40について、同様の作業を繰り返
す。中間加工グループ40を選択するとき、前記機械の
加工原点21からの原点シフト量SMの入力が促され、
その上で、ローカル原点41を基準とした寸法入力が行
われる。この原点シフト量SMも、変数データとして中
間加工グループデータ記憶部15に記憶される。こうし
て1つの図番についての複数の加工グループ20,3
0,40に対する複数の基本形状パターンの変数データ
を入力し終えた後、ステップS12で他の図番入力があ
れば、ステップS1へ戻って入力を繰り返す。
Next, the operation will be described with reference to FIGS. In data input, through steps S1 and S2, step S
The drawing number and the mold material data (thickness,
Width, total length, etc.). Next, a processing group is selected. Since there are three left end machining groups 20, right end machining groups 30, and intermediate machining groups 40 in the work of FIG. 7, a basic shape pattern belonging to the machining group is selected in step S5 in each machining group. For example, in the left end processing group 20, first, the pattern 1 is selected, the pattern is displayed on the touch panel 8, the data input and display position on the screen are touched, and the data is directly input thereto. At the time of data input, the display screen of the touch panel 8 is switched to the keyboard screen, and the input is performed from the keyboard screen. In the pattern 1, the notch dimensions A, B, C, the tool No, the reference for the machining origin 21 of the machine, whether it is not, tool data such as the tool diameter and the tool type, and cutting in each axial direction (not shown). Cutting conditions such as speed are also entered. The dimensions are input with an origin (here, coincident with the machining origin of the machine) 21 as a reference. Each data thus input is stored in the corresponding storage position of the input display buffer 50, and with reference to the data conversion table 51 of the pattern 1, the variable data storage unit for the pattern 1 of the left end processing group data storage unit 14 is stored. 17
First, the data format is changed to a format suitable for data storage, and the data is sequentially stored as described above. Data is similarly input to other processing patterns (patterns 3, 63, 51) belonging to the left end processing group 20 and stored in the left end processing group data storage unit 14 in order as shown in FIG. It Then, through step S11, the same work is repeated for the remaining processing groups 30 and 40. When selecting the intermediate machining group 40, the input of the origin shift amount SM from the machining origin 21 of the machine is prompted,
Then, dimension input is performed with the local origin 41 as a reference. This origin shift amount SM is also stored in the intermediate machining group data storage unit 15 as variable data. Thus, a plurality of processing groups 20, 3 for one drawing number
After inputting the variable data of a plurality of basic shape patterns for 0 and 40, if there is another drawing number input in step S12, the process returns to step S1 to repeat the input.

【0018】次に、型材の長手方向のデータのみが異な
るワークについて、変数データを作成する場合について
説明する。ステップS2でデータ変更を選択して、ステ
ップS16で、作成しようとするワークと長手方向のみ
の関係が異なり、加工グループの基本形状パターンの変
数データが同じワークの図番をタッチパネル8から入力
する。そして、ローカル座標系で記述されている加工グ
ループと、加工原点21と一致している座標系で記述さ
れている加工グループ(ここでは左端加工グループ2
0)の間の長手方向の原点シフト量を変更し、その上
で、新たな図番を付して、加工データ記憶部に追加、記
憶する。このように、前に記憶したワークと加工グルー
プの基本形状パターンが同じで、その変数データも同じ
ワークであって、各加工グループ間の長手方向関係が異
なるだけのワークについて、変数データを作成するとき
には、前のデータを読みだして、加工原点21との間の
長手方向の原点シフト量のみを変更するだけで良く、デ
ータ変更がきわめて容易となる。
Next, a case will be described in which variable data is created for workpieces that differ only in the longitudinal data of the mold material. In step S2, the data change is selected, and in step S16, the drawing number of the work having the same variable data of the basic shape pattern of the machining group, which differs from the work to be created only in the longitudinal direction, is input from the touch panel 8. Then, the machining group described in the local coordinate system and the machining group described in the coordinate system that coincides with the machining origin 21 (here, the leftmost machining group 2
The origin shift amount in the longitudinal direction between 0) is changed, and then a new drawing number is added and added and stored in the processed data storage unit. In this way, the variable data is created for a workpiece that has the same basic shape pattern as the previously stored workpiece and machining group, and has the same variable data, and only the longitudinal relationship between the machining groups is different. Sometimes, it is only necessary to read out the previous data and change only the origin shift amount in the longitudinal direction with respect to the machining origin 21, which makes the data change extremely easy.

【0019】次に、ステップS2でデータ送信を選択し
て、ステップS13で加工対象となるワークの図番を入
力する。これにより、該当する図番データを加工データ
記憶部から選択し、図5に示す共通データ、グループ管
理データ、これに続く、加工グループデータが読みださ
れる。図番データ1を例に取ると、加工グループデータ
の読出しは、ここでは図5に示す左端加工グループデー
タ20の先頭から、順に、パターン1用変数データ、パ
ターン3用変数データ、パターン63用変数データの、
3つのパターン変数データのセットが、NC側PC4へ
送信される。NC側PC4は、図4(b)のステップS
29で前記データを受信し、バッファ60へ後納する。
Next, in step S2, data transmission is selected, and in step S13, the drawing number of the work to be processed is input. As a result, the corresponding drawing number data is selected from the processed data storage unit, and the common data shown in FIG. 5, the group management data, and the subsequent processed group data are read. Taking the drawing number data 1 as an example, the processing group data is read out from the left end processing group data 20 shown in FIG. 5 in this order from the head of the pattern 1 variable data, the pattern 3 variable data, and the pattern 63 variable. Of data,
The set of three pattern variable data is transmitted to the PC 4 on the NC side. The NC-side PC 4 performs step S in FIG.
The data is received at 29 and stored later in the buffer 60.

【0020】そして、汎用NC装置3が起動されると、
図4(a)のステップ22でバッファ60内のデータを
順に読出す。バッファ60内には、ワークの全長、幅等
の共通データがあるので、これらの共通データを用い
て、変数データが妥当な値であるかどうかなどのデータ
チェックがステップS23で行われる。そして、変数デ
ータをパターンに対応した加工パターンプログラムの変
数記述部に適用する。そして、パターンごとにステップ
S25で機械制御指令が出される。NC装置3がこうし
て機械制御を行っている間に、NC側PC4は、そのバ
ッファ60内の変数データがパターン1つ分だけ減った
かどうかを判別し、1つ分減っていれば、次のパターン
1つ分の変数データを汎用PC6に要求する。この要求
を受けて、汎用PC6からは、次のパターン51用変数
データが送り出される。このように、NC装置3が加工
制御を行っていると同時に、変数パターンを次々とNC
側PC4へ送りこむので、従来のようにデータを待つ
間、加工を停止する必要がなく円滑な加工が行い得る。
When the general-purpose NC device 3 is activated,
In step 22 of FIG. 4A, the data in the buffer 60 is sequentially read. Since there is common data such as the total length and width of the work in the buffer 60, a data check is performed in step S23 using such common data to determine whether or not the variable data has an appropriate value. Then, the variable data is applied to the variable description part of the machining pattern program corresponding to the pattern. Then, a machine control command is issued in step S25 for each pattern. While the NC device 3 is performing the machine control in this way, the NC side PC 4 determines whether or not the variable data in the buffer 60 has decreased by one pattern, and if the variable data has decreased by one, the next pattern Request one variable data from the general-purpose PC 6. In response to this request, the general-purpose PC 6 sends the next variable data for the pattern 51. In this way, the NC device 3 is performing the machining control and at the same time, the variable patterns are sequentially changed to NC.
Since the data is sent to the side PC 4, it is not necessary to stop the processing while waiting for data as in the conventional case, and smooth processing can be performed.

【0021】次に、中間加工グループ40の変数データ
が送られてくると、加工原点21と一致した座標系でな
いローカル座標系で記述されているので、その変数デー
タには、原点からのシフト量SMも加味され、ステップ
S24でローカル座標系から、加工原点を基準とした機
械座標系への座標変換が行われる。また、右端部加工グ
ループ30も、原点31を基準としたローカル座標系で
記述してあるが、右端加工グループの加工をする前に、
与えられた全長Lを基に、工具をワークの右端部よりさ
らに右側位置に移動させ、その後左へ移動させて工具を
右端面に当接させ、この時に工具、ワーク、ワークテー
ブル、機械本体、主軸ヘッドを介して電気的に閉じる回
路により、その工具のX軸方向位置からワーク全長を検
出し、このワーク全長の実寸法を、原点シフト量として
右端加工グループ30の加工の時に適用する。これによ
り、ワーク全長に多少のバラツキがあっても、右端加工
グループ30の加工基準は、実際のワークの右端面20
0Rを基準に行われるので、そのX軸方向の切り込み深
さが確実に保証される。そして、これらのパターンにつ
いてもステップS25で機械制御指令が出され、1つの
図番についてのすべての加工が終了するとステップS2
6を経て加工が終了する。尚、右端加工グループ30
も、実寸法を測ることなく、加工原点21からのX軸方
向の原点シフト量として全長Lを適用して、ローカル座
標系から機械座標系への変換を行ってもよい。
Next, when the variable data of the intermediate machining group 40 is sent, since it is described in the local coordinate system other than the coordinate system that coincides with the machining origin 21, the variable data has a shift amount from the origin. SM is also taken into consideration, and in step S24, coordinate conversion from the local coordinate system to the machine coordinate system with the machining origin as a reference is performed. The right end machining group 30 is also described in the local coordinate system with the origin 31 as a reference, but before machining the right end machining group,
Based on the given total length L, the tool is moved further to the right side position from the right end of the work, and then moved to the left to bring the tool into contact with the right end face. At this time, the tool, work, work table, machine body, The circuit which is electrically closed via the spindle head detects the total length of the work from the position of the tool in the X-axis direction, and the actual size of the total length of the work is applied as the origin shift amount during the machining of the right end machining group 30. As a result, even if there is some variation in the total length of the work, the processing standard of the right end processing group 30 is the right end surface 20 of the actual work.
Since it is performed based on 0R, the depth of cut in the X-axis direction is surely guaranteed. Then, for these patterns, a machine control command is issued in step S25, and when all the machining for one drawing number is completed, step S2
The processing is completed through 6. In addition, the right end processing group 30
Alternatively, the total length L may be applied as the origin shift amount in the X-axis direction from the machining origin 21 without measuring the actual dimension, and conversion from the local coordinate system to the machine coordinate system may be performed.

【0022】[0022]

【発明の効果】以上のように本願発明では、加工ワーク
における実加工データ(切込み深さであるとか、取り代
であるとか、切削条件(工具回転数、工具番号、送り速
度等)のみを汎用NC装置へ送り、汎用NC装置で、対
応する加工プログラムの中の変数記述部分にこれを適用
してNC制御をするようにしたので、NCプログラムを
記述することなく、変数データの変更のみで、基本形状
パターンに基づく加工ができる。また、加工ワークに関
する情報(巾、厚み、長さ、材質等)を与えておくこと
で、これらの変数データが、そのワークを加工するの
に、妥当な値であるかどうかを容易に判別可能となり、
加工ミスを防止でき、その上、NCプログラムそのもの
を伝送しない為、データ通信量が少なく、短時間で通信
できる。また、多数の変数データを汎用PCのRAM内
に記憶させ、また、データなどの入出力を、タッチパネ
ルで行うので、フロッピディスクなどに記憶させ、入出
力をキーボードから行う場合に比べて塵埃に強く、故障
しにくく信頼性の高いシステムを提供できる。また、本
願では、複数の基本形状パターンの各変数データを予め
NC側のバッッファに送りこんでおき、加工中にNC側
でバッファ内の変数データが加工プログラムに適用され
たことを確認して、次の変数データを汎用PCに要求す
るようにしたので、従来のようにNC装置のバックグラ
ウンドを利用して入力を行う特別な装置を用いることな
く、変数データの授受と、NC装置による加工とを同時
に進行させることができ、制御対象機械を停止すること
なく、NC加工を行うことができる。また、本願ではタ
ッチパネルの画面に基本加工形状を表示し、その表示画
面に対して寸法入力ができるので、だれにでも簡単に入
力できる利点がある。また、本願では、入力表示手段に
タッチパネルを用いて入力を簡単にしたものであって
も、データの登録順やデータ格納領域の大小に係らず、
表示時には、単に表示入力バッファに従って表示するだ
けでよいから、表示用のシーケンスプログラムを共通に
でき、また、表示と、格納の為のデータ変換も、データ
変換テーブルに従って行われるため、基本形状パターン
ごとに異なるデータ変換プログラムを多数用意しなくて
よい利点がある。
As described above, according to the present invention, only the actual machining data (such as the cutting depth, the machining allowance, etc.) and the cutting conditions (the tool rotation speed, the tool number, the feed rate, etc.) in the machined work are used for general purpose. Since it was sent to the NC device and the general NC device applied this to the variable description part in the corresponding machining program for NC control, it is only necessary to change the variable data without writing the NC program. Machining based on the basic shape pattern is possible.Also, by giving information (width, thickness, length, material, etc.) related to the machined work, these variable data can be used as appropriate values to machine the work. It becomes possible to easily determine whether or not
Processing errors can be prevented, and since the NC program itself is not transmitted, the amount of data communication is small and communication can be performed in a short time. In addition, a large number of variable data are stored in the RAM of a general-purpose PC, and input / output of data etc. is performed by a touch panel, so it is more resistant to dust than when stored in a floppy disk or the like and input / output is performed from a keyboard. It is possible to provide a highly reliable system that is hard to break down. Further, in the present application, each variable data of a plurality of basic shape patterns is sent to the buffer on the NC side in advance, and during machining, it is confirmed that the variable data in the buffer has been applied to the machining program on the NC side. Since the general-purpose PC is required to request the variable data of the above, the exchange of the variable data and the processing by the NC device can be performed without using a special device for inputting by using the background of the NC device as in the past. It is possible to proceed at the same time, and NC machining can be performed without stopping the controlled machine. Further, in the present application, since the basic machining shape is displayed on the screen of the touch panel and the dimension can be input on the display screen, there is an advantage that anyone can easily input it. Further, in the present application, even if the input is made simple by using the touch panel as the input display means, regardless of the order of data registration or the size of the data storage area,
At the time of display, it is only necessary to display in accordance with the display input buffer, so the sequence program for display can be shared, and since the data conversion for display and storage is also performed according to the data conversion table, it is possible to The advantage is that it is not necessary to prepare many different data conversion programs.

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

【図1】NC制御装置の全体ブロック図である。FIG. 1 is an overall block diagram of an NC control device.

【図2】基本形状パターンの説明図である。FIG. 2 is an explanatory diagram of a basic shape pattern.

【図3】汎用PC装置の制御フローチャートである。FIG. 3 is a control flowchart of a general-purpose PC device.

【図4】汎用NC装置と、NC側PCの制御フローチャ
ートである。
FIG. 4 is a control flowchart of a general-purpose NC device and an NC-side PC.

【図5】加工データ記憶部における、図番毎の変数デー
タの格納構造を示す図である。
FIG. 5 is a diagram showing a storage structure of variable data for each drawing number in a processed data storage unit.

【図6】データ変換テーブルの作用説明図である。FIG. 6 is an explanatory diagram of the operation of a data conversion table.

【図7】加工ワークと、加工機械及び、座標関係、加工
グループの別を示す図である。
FIG. 7 is a diagram showing a machining work, a machining machine, coordinate relationships, and machining groups.

【図8】図7のVIII視図である。8 is a view taken along line VIII of FIG. 7. FIG.

【図9】図XのIX視図である。9 is a view taken along line IX in FIG.

【図10】サッシ窓枠の正面図である。FIG. 10 is a front view of a sash window frame.

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

2 工作機械 、3 汎用NC装置 4 NC側プログラマブルコントローラ 、5,7 通
信ケーブル 6 汎用プログラマブルコントローラ 8 入力表示手段 10 加工データ記憶部 14,15,16 グループデータ記憶部 17 変数データ記憶部 25 形状パターン記憶部 50 入力表示バッファ 51 データ変換テーブル 55 加工プログラム記憶部 56 チェックプログラム 60 変数データ格納バッファ
2 machine tool, 3 general-purpose NC device 4, NC-side programmable controller, 5, 7 communication cable 6 general-purpose programmable controller 8 input display means 10 machining data storage unit 14, 15, 16 group data storage unit 17 variable data storage unit 25 shape pattern storage Part 50 Input display buffer 51 Data conversion table 55 Machining program storage unit 56 Check program 60 Variable data storage buffer

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 複数の基本形状パターンを組合わせて加
工を行うに際し、EIAコード(Gコード)で動作する
汎用NC装置に、多数の基本形状パターンに対応し、マ
クロプログラムによって、各基本形状パターンを加工す
るのに必要な変数を含んで記述した複数の加工プログラ
ムを記憶する加工プログラム記憶部を設け、この汎用N
C装置と汎用プログラマブルコントローラとをデータ授
受可能に接続し、汎用プログラマブルコントローラに
は、汎用プログラマブルコントローラからの情報の画面
表示と、汎用プログラマブルコントローラへの画面から
の情報の入力を可能としたタッチパネル式の入力表示手
段を接続し、汎用プログラマブルコントローラのRAM
内には、加工すべき多数の基本形状パターンに対する実
加工用の変数データを基本形状パターンと対応して記憶
する変数データ記憶部を設け、汎用プログラマブルコン
トローラに記憶された基本形状パターンの変数データを
汎用NC装置へ送信し、汎用NC装置では、その変数デ
ータを、対応する加工プログラムへ適用して、制御対象
機械を動作させることを特徴とするNC制御方式。
1. When processing a plurality of basic shape patterns in combination, a general-purpose NC device that operates with an EIA code (G code) is compatible with a large number of basic shape patterns, and each basic shape pattern is processed by a macro program. Is provided with a machining program storage section for storing a plurality of machining programs described including variables necessary for machining.
A C-device and a general-purpose programmable controller are connected so that data can be exchanged, and the general-purpose programmable controller has a touch-panel type that enables screen display of information from the general-purpose programmable controller and input of information from the screen to the general-purpose programmable controller. RAM of general-purpose programmable controller connected to input display means
In the inside, a variable data storage section for storing variable data for actual machining for a large number of basic shape patterns to be machined corresponding to the basic shape pattern is provided, and variable data of the basic shape pattern stored in the general-purpose programmable controller is stored. An NC control method characterized by transmitting the data to a general-purpose NC device, and applying the variable data to the corresponding machining program in the general-purpose NC device to operate the controlled machine.
【請求項2】 汎用NC装置での加工に先立ち、汎用プ
ログラマブルコントローラに記憶された複数の基本形状
パターンの変数データを汎用NC装置へ送信してバッフ
アに格納し、汎用NC装置で、そのバッファの変数デー
タによる加工中に、バッファ内の変数データが、加工プ
ログラムに適用されたことをチェックして、次の基本形
状パターンの変数データを汎用プログラマブルコントロ
ーラへ要求し、汎用プログラマブルコントローラは次の
基本形状パターンの変数データを汎用NC装置のバッフ
ァへ送信することを特徴とする請求項1記載のNC制御
方式。
2. Prior to processing by a general-purpose NC device, variable data of a plurality of basic shape patterns stored in a general-purpose programmable controller is transmitted to the general-purpose NC device and stored in a buffer, and the general-purpose NC device stores its buffer data. During machining with the variable data, it checks that the variable data in the buffer has been applied to the machining program and requests the variable data of the next basic shape pattern to the general-purpose programmable controller. 2. The NC control method according to claim 1, wherein the variable data of the pattern is transmitted to a buffer of the general-purpose NC device.
【請求項3】 汎用プログラマブルコントローラは、複
数の基本形状パターンを記憶する形状パターン記憶部を
含み、入力表示手段からの基本形状パターン選択指令に
より、選択された基本形状パターンを入力表示手段の画
面に表示し、この表示されたパターン上に、直接、実加
工用の寸法を変数データとして入力するようにしたこと
を特徴とする請求項1または2記載のNC制御方式。
3. A general-purpose programmable controller includes a shape pattern storage unit for storing a plurality of basic shape patterns, and the selected basic shape pattern is displayed on the screen of the input display means by a basic shape pattern selection command from the input display means. 3. The NC control system according to claim 1, wherein the NC pattern is displayed, and the dimensions for actual machining are directly input as variable data on the displayed pattern.
【請求項4】 汎用プログラマブルコントローラは、各
基本形状パターンごとに、変数データの、基本形状パタ
ーンと対応した変数データ記憶部における格納位置と、
表示入力バッファの格納位置とを対応づけるデータ変換
テーブルを備えており、この表示入力バッファの各デー
タ格納位置は、前記入力表示手段の画面上の表示位置と
1対1に対応されていることを特徴とする請求項3記載
のNC制御方式。
4. The general-purpose programmable controller, for each basic shape pattern, a storage position of variable data in a variable data storage unit corresponding to the basic shape pattern,
A data conversion table that correlates the storage positions of the display input buffer is provided, and each data storage position of the display input buffer is in one-to-one correspondence with the display position on the screen of the input display means. The NC control system according to claim 3, which is characterized in that.
JP18473495A 1995-06-27 1995-06-27 NC control method Expired - Lifetime JP3580447B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18473495A JP3580447B2 (en) 1995-06-27 1995-06-27 NC control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18473495A JP3580447B2 (en) 1995-06-27 1995-06-27 NC control method

Publications (2)

Publication Number Publication Date
JPH0916236A true JPH0916236A (en) 1997-01-17
JP3580447B2 JP3580447B2 (en) 2004-10-20

Family

ID=16158436

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18473495A Expired - Lifetime JP3580447B2 (en) 1995-06-27 1995-06-27 NC control method

Country Status (1)

Country Link
JP (1) JP3580447B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003519858A (en) * 2000-01-10 2003-06-24 シーメンス アクチエンゲゼルシヤフト General motion control system
JP2003519859A (en) * 2000-01-10 2003-06-24 シーメンス アクチエンゲゼルシヤフト General motion control system
JP2005100327A (en) * 2003-09-25 2005-04-14 Heidelberger Druckmas Ag Cnc manufacturing system having central data bank
JP2005266970A (en) * 2004-03-16 2005-09-29 Honda Motor Co Ltd Sequence controller
JP2010188443A (en) * 2009-02-16 2010-09-02 Nakamura Tome Precision Ind Co Ltd Device for grinding outer periphery of platelike workpiece

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003519858A (en) * 2000-01-10 2003-06-24 シーメンス アクチエンゲゼルシヤフト General motion control system
JP2003519859A (en) * 2000-01-10 2003-06-24 シーメンス アクチエンゲゼルシヤフト General motion control system
JP2005100327A (en) * 2003-09-25 2005-04-14 Heidelberger Druckmas Ag Cnc manufacturing system having central data bank
JP4593142B2 (en) * 2003-09-25 2010-12-08 ハイデルベルガー ドルツクマシーネン アクチエンゲゼルシヤフト System for manufacturing a workpiece under computer control and method for measuring a manufactured workpiece
JP2005266970A (en) * 2004-03-16 2005-09-29 Honda Motor Co Ltd Sequence controller
JP2010188443A (en) * 2009-02-16 2010-09-02 Nakamura Tome Precision Ind Co Ltd Device for grinding outer periphery of platelike workpiece

Also Published As

Publication number Publication date
JP3580447B2 (en) 2004-10-20

Similar Documents

Publication Publication Date Title
US4513379A (en) Customization window for a computer numerical control system
KR850000362B1 (en) Background of the invention
EP0129091B1 (en) Numerical control system, graphics display unit and machine tool
CN101489718A (en) Numerical controller
JP4593142B2 (en) System for manufacturing a workpiece under computer control and method for measuring a manufactured workpiece
US6314336B1 (en) Numerically controlled machining apparatus for automatically exchanging tools and workpieces
CN101183257A (en) CAM software processing technology
JPH0916236A (en) Nc control system
JPH11296217A (en) Method and device for transferring program file in nc device
JP2973770B2 (en) Numerically controlled machine tools
JPH0916237A (en) Method and device for preparing machining data on long-sized material
WO1990001735A1 (en) Machining data display system
JPH0513019B2 (en)
JPH02172646A (en) Numerical control device
JPH0446706B2 (en)
JP3180801B2 (en) Numerically controlled machine tools
JPH02306308A (en) Automatic programming device
JPH0391808A (en) Data transfer method for ic card
JP3203265B2 (en) Control method of processing machine group in FMS
JP2875801B2 (en) DNC equipment
JPS63136107A (en) Nc data input control device
JPH05274020A (en) Method and device for tool offset shape data input type numerical control
JPH02113306A (en) Nc drilling machine control system
JPH01310847A (en) Information management system for machining line
JPH05237741A (en) Nc data originating method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040301

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040507

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040607

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040702

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040715

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090730

Year of fee payment: 5

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090730

Year of fee payment: 5

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100730

Year of fee payment: 6

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100730

Year of fee payment: 6

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110730

Year of fee payment: 7

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120730

Year of fee payment: 8

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130730

Year of fee payment: 9

EXPY Cancellation because of completion of term