[go: up one dir, main page]

JPH0916237A - Method and device for preparing machining data on long-sized material - Google Patents

Method and device for preparing machining data on long-sized material

Info

Publication number
JPH0916237A
JPH0916237A JP18473595A JP18473595A JPH0916237A JP H0916237 A JPH0916237 A JP H0916237A JP 18473595 A JP18473595 A JP 18473595A JP 18473595 A JP18473595 A JP 18473595A JP H0916237 A JPH0916237 A JP H0916237A
Authority
JP
Japan
Prior art keywords
machining
group
origin
data
processing
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
JP18473595A
Other languages
Japanese (ja)
Other versions
JP3567441B2 (en
Inventor
Tatsuhiko Masuda
龍彦 増田
Hiroyuki Kitamura
寛之 北村
Hiroshi Kawachi
博司 川地
Kazuaki Serizawa
一明 芹沢
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 JP18473595A priority Critical patent/JP3567441B2/en
Publication of JPH0916237A publication Critical patent/JPH0916237A/en
Application granted granted Critical
Publication of JP3567441B2 publication Critical patent/JP3567441B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE: To provide an NC data generating method which facilitates changes of machining sizes of long-sized materials constituting window sash. CONSTITUTION: The long-sized materials are put together with basic shape patterns which have no change in position and classified into left-end, right-end, and an intermediate machining groups 20, 30, and 40, the respective basic shape patterns of the left-end machining group 20 are defined on a coordinate system based upon an origin 21 matching a machining origin, and the intermediate and right-end machining groups 30 and 40 are defined on local coordinate systems based upon different origins 31 and 41 made different in coordinates from the origin 21 only in the X-axial direction; and origin shift quantities SM and L (L is overall length; actually measured value) between the origin 21 and origins 31 and 41 are given to convert the local coordinate systems into the machine coordinate system.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、窓枠や戸枠、そうし
た枠に嵌めこまれる障子、戸、網戸といった建具を構成
するアルミ、あるいは他の材質の枠材、框材のような長
尺材を加工する場合に用いて好適な加工データ作成方
法、装置に関し、詳しくは、加工寸法を同じくする加工
形状を有し、その全長が異なる長尺材の加工を行うとき
の加工データ変更を容易に行いうる加工データ作成方
法、装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a window frame, a door frame, a shoji which is fitted into such a frame, aluminum which constitutes a fitting such as a door or a screen, or a long material such as a frame material or a frame material of other materials. Regarding the processing data creation method and device suitable for processing materials, in detail, it is easy to change the processing data when processing long materials that have the same processing dimensions and different lengths. The present invention relates to a method and apparatus for creating processed data that can be used in any of

【0002】[0002]

【従来の技術】前述のような枠材は、例えばアルミサッ
シの窓枠の場合、図10に示すように、左右の竪枠20
1,202の上下端部、及び中間部に切欠部201a,
201b,201cを設け、上下端部の切欠部201
a,201bには、上下枠203,204端部を嵌めこ
み、中間部の切欠部201cには横枠205端部を嵌め
こみ、この上下枠203,204端部と横枠205端部
に、竪枠201,202の壁部201dに設けたネジ孔
206を介して取付ねじ207を螺合して、窓枠200
を枠組みしている。こうした窓枠200では、建物の窓
開口部に合わせてその縦横のサイズが決定されるので、
竪枠201,202、横枠205、上下枠203,20
4が、夫々同じ断面形状、断面寸法を持つ型材であっ
て、枠組した窓枠の全体の大きさのみが異なるという場
合が多い。このような場合、大きい窓枠と小さい窓枠と
では、夫々の窓枠を構成する前記各枠は、その全長と、
端部、中間部の切欠部の長手方向位置は異なるが、切欠
部やその切欠部に形成されるねじ孔の加工寸法、切欠部
に対するねじ孔の位置などは、組み合わされる枠の断面
形状、断面寸法が変わらないために全く同じになる。従
来、長尺材に切欠部やねじ孔などの加工を行う場合に
は、工作機械の1つの加工原点を基準として、各切欠部
やねじ孔の座標を入力し、工作機械の工具と長尺材の相
対位置関係を制御し、加工していた。一方、長尺材では
ないが、同一形状の加工を同一ワークに対して、異なる
位置、異なる方向に多数加工するような場合に好適なN
Cデータ作成方法として、基本形状に対して、その加工
寸法を独立した座標系で定義し、このローカル座標系
と、機械座標系との間の、X、Y(及びZ)方向と、図
形の回転方向角度のシフト量を与えることにより、実際
の加工においては、ローカル座標系を機械座標系に変換
して加工を行うようにしたものがある(特開昭60−5
5411号)。
2. Description of the Related Art In the case of an aluminum sash window frame, for example, the above-mentioned frame material is used as shown in FIG.
Cutouts 201a in the upper and lower end portions of the intermediate portion 1,202,
201b and 201c are provided, and the cutouts 201 at the upper and lower ends are provided.
a, 201b, the upper and lower frames 203, 204 end portions are fitted, the middle cutout portion 201c is fitted with a horizontal frame 205 end portion, and the upper and lower frames 203, 204 end portions and the horizontal frame 205 end portions are A mounting screw 207 is screwed through a screw hole 206 provided in the wall portion 201d of each of the vertical frames 201 and 202, so that the window frame 200
Has a framework. In such a window frame 200, since the vertical and horizontal sizes are determined according to the window opening of the building,
Vertical frames 201, 202, horizontal frames 205, upper and lower frames 203, 20
In many cases, 4 are mold materials having the same cross-sectional shape and cross-sectional dimensions, and only the overall size of the framed window frame is different. In such a case, in the large window frame and the small window frame, each of the frames forming each window frame has the entire length,
The longitudinal positions of the cutouts at the end and the middle are different, but the machining dimensions of the cutouts and the screw holes formed in the cutouts, the positions of the screw holes with respect to the cutouts, etc. They are exactly the same because the dimensions do not change. Conventionally, when machining notches and screw holes on long materials, the coordinates of each notch and screw hole are entered with reference to one machining origin of the machine tool, and the machine tool and It was processed by controlling the relative positional relationship of the materials. On the other hand, although it is not a long material, N is suitable for processing many workpieces of the same shape in different positions and in different directions on the same workpiece.
As the C data creation method, the machining dimension is defined for the basic shape by an independent coordinate system, and the X, Y (and Z) directions between this local coordinate system and the machine coordinate system and the figure In the actual machining, there is a machine in which the local coordinate system is converted into the machine coordinate system to perform the machining by giving a shift amount of the rotation direction angle (JP-A-60-5).
5411).

【0003】[0003]

【発明が解決しようとする課題】前者の従来技術では、
工作機械の1つの加工原点を基準として、長尺材の多数
の切欠部や、これに関連するねじ孔位置の座標を別々に
入力して、これに基づいて加工していたので、前記のよ
うに切欠部や、ねじ孔の寸法、切欠部に対するねじ孔位
置が同じで、長尺材の長手寸法や、切欠部の長手位置が
異なるのみ、というような場合には、長尺材の全長の長
短にあわせて、その都度、多くの加工部分の多数の座標
を入力変更せねばならず、そうした加工データの入力に
手間取る問題があった。後者の技術では、独立したロー
カル座標系と機械座標系のシフト量を変更するだけで、
ワークの異なる位置に同一加工を行い得るNCデータが
得られるので、データ入力が容易であるが、それでも、
前記技術では、少なくとも、X、Y及び、回転方向の3
つのシフト量を与えねばならず、長尺材のように長手方
向の位置のみが異なるワークに対しては、この技術にお
いても、未だデータ入力の煩雑さが残る問題がある。こ
の発明の課題は、同一加工形状を有する、長さの異なる
長尺材に対する加工データの変更を容易にする加工デー
タの作成方法、及びその作成方法を実施する加工データ
作成装置を提供することにある。また、サッシ材におい
ては、前述のように、竪枠に上下枠が枠組みされるの
で、上下枠の長手端部の切欠部寸法は、端部からの寸法
が正確でないと、枠組したときに端部がうまく枠組みさ
れない問題がある。本願の他の課題は、このような問題
を生じないように、加工データを容易に変更できる作成
方法を提供することにある。
In the former prior art,
With one machining origin of the machine tool as a reference, a large number of notches in the long material and the coordinates of the screw hole positions related to this were input separately, and machining was performed based on this If the notch, the screw hole size, and the screw hole position relative to the notch are the same, but only the longitudinal dimension of the long material and the longitudinal position of the notch are different, There is a problem in that it is time-consuming to input such processing data because it is necessary to input and change a large number of coordinates of many processing parts each time according to length and shortness. With the latter technology, simply changing the shift amount of the independent local coordinate system and machine coordinate system,
Since NC data that can perform the same machining at different positions of the work can be obtained, it is easy to input data, but still,
According to the above technique, at least X, Y, and three directions of rotation are used.
One shift amount must be given, and for a work such as a long material that is different only in the position in the longitudinal direction, this technique also has a problem that the data input is still complicated. An object of the present invention is to provide a machining data creation method that facilitates modification of machining data for long materials having the same machining shape and different lengths, and a machining data creation device that implements the creation method. is there. Further, in the sash material, as described above, since the upper and lower frames are framed by the vertical frame, the notch size of the longitudinal ends of the upper and lower frames is not correct when the frame is assembled unless the size from the end is accurate. There is a problem that the division is not well framed. Another object of the present application is to provide a creating method capable of easily modifying processed data so as not to cause such a problem.

【0004】[0004]

【課題を解決するための手段】前記課題の解決の為に、
請求項1では、サッシ窓を構成する枠材、框材等の長尺
材を加工するに際し、長尺材に対して行われる加工部分
を、互いに位置関係が不変な加工部分ごとに左、右端加
工グループ、中間加工グループに区分し、各加工グルー
プにおける加工形状を、長尺材の長手方向座標のみを違
えた別々の原点を基準とするローカル座標系で定義し、
機械の加工原点を左右端加工グループのいずれか一方の
座標系の原点と一致させ、その原点と各座標系との間の
長手方向の原点シフト量を与えて各加工グループの加工
位置を決定することを特徴とする。また、請求項2で
は、サッシ窓を構成する枠材、框材等の長尺材を加工す
るに際し、長尺材に対して行われる加工部分を、互いに
位置関係が不変な加工部分ごとに、左、右端加工グルー
プ、中間加工グループに区分し、各加工グループにおけ
る加工形状を、長尺材の長手方向座標のみを違えた別々
の原点を基準としたローカル座標系で定義し、機械の加
工原点を左右端加工グループのいずれか一方の座標系の
原点と一致させ、他方の端加工グループの端面を含む面
内にその他方の端加工グループの座標系の原点を位置さ
せ、中間加工グループが加工基準とする端加工グループ
の原点と中間加工グループの長手方向の原点シフト量を
与え、前記他方の端加工グループの座標系と加工原点の
座標系との間の原点シフト量には、長尺材の長手方向の
実寸法を与えて各加工グループの加工位置を決定するこ
とを特徴とする。請求項3のように、請求項1,2の中
間加工グループはさらに2グループに区分されてもよ
い。請求項4では、サッシ窓を構成する枠材、框材等の
長尺材に対して行われる多種の加工の基本形状パターン
を記憶する形状パターン記憶部と、長尺材の加工グルー
プを左右端加工グループ、中間加工グループに区分し
て、各加工グループにおける加工形状を前記基本形状パ
ターンから選択するパターン選択手段と、各加工グルー
プで選択された基本形状パターンに夫々長尺材の長手方
向にのみ位置を違えて設定される別々の原点を基準とし
たローカル座標系で実加工用の寸法を定義する寸法入力
手段と、前記各加工グループで選択された基本形状パタ
ーンとそれに対する実加工用の加工寸法を、各加工グル
ープごとに記憶したグループデータ記憶部が複数集合し
て構成される長尺材の図番単位の加工データ記憶部と、
左、または右端加工グループの原点と一致した機械の加
工原点と他のローカル座標系間の長手方向の原点シフト
量を与える原点シフト量入力手段とを備えたことを特徴
とする。
[Means for Solving the Problems] In order to solve the above problems,
According to claim 1, when processing a long material such as a frame material and a frame material forming a sash window, the processing portions to be processed with respect to the long material are left and right ends for each processing portion whose positional relationship does not change. It is divided into machining groups and intermediate machining groups, and the machining shapes in each machining group are defined in a local coordinate system with different origins as the only different longitudinal coordinates of the long material.
Match the machining origin of the machine with the origin of one of the coordinate systems of the left and right machining groups, and determine the machining position of each machining group by giving the origin shift amount in the longitudinal direction between that origin and each coordinate system. It is characterized by Further, in claim 2, when processing a long material such as a frame material and a frame material forming a sash window, a processing portion performed on the long material is processed for each processing portion whose positional relationship is invariable. It is divided into left and right end machining groups and intermediate machining groups, and the machining shape in each machining group is defined by the local coordinate system based on different origins that differ only in the longitudinal coordinate of the long material. Is aligned with the origin of one of the coordinate systems of the left and right edge machining groups, and the origin of the coordinate system of the other edge machining group is positioned within the plane including the end surface of the other edge machining group, and the intermediate machining group is machined. The origin of the reference edge machining group and the origin shift amount in the longitudinal direction of the intermediate machining group are given, and the origin shift amount between the coordinate system of the other edge machining group and the coordinate system of the machining origin is the long material. In the longitudinal direction And determining a processing position of each machining group giving dimensions. As in claim 3, the intermediate processing group of claims 1 and 2 may be further divided into two groups. According to claim 4, a shape pattern storage unit that stores a basic shape pattern of various types of processing performed on a long material such as a frame material and a frame material that configures a sash window, and a processing group of the long material is provided at left and right ends. Pattern selection means for selecting the machining shape in each machining group from the basic shape patterns divided into machining groups and intermediate machining groups, and the basic shape patterns selected in each machining group, respectively, only in the longitudinal direction of the long material. Dimension input means for defining dimensions for actual machining in a local coordinate system based on different origins set at different positions, basic shape patterns selected in each machining group, and machining for actual machining corresponding thereto A machining data storage unit for each drawing number of a long material configured by collecting a plurality of group data storage units that store dimensions for each machining group,
The present invention is characterized by including a machining origin of the machine that coincides with the origin of the left or right end machining group and an origin shift amount input means for providing an origin shift amount in the longitudinal direction between other local coordinate systems.

【0005】[0005]

【作用】本願請求項1の方法では、長尺材の、互いに位
置関係が一定の加工部分をグループとし、そのグループ
での加工形状を、長尺材の長手方向座標のみが異なる原
点を夫々基準としたローカル座標系で定義したので、異
なる長手寸法のワークに対して、同一形状の加工を行う
ときの加工データの変更が、長尺材の長手方向のみの座
標系間の原点シフト量を与えるだけでよく、データ入力
の手間がない。請求項2では、長尺材の左右端加工グル
ープは、夫々各端面を基準で加工を行うことになり、長
尺材に長手方向の切断誤差があっても、左右端加工グル
ープの加工を行うときには、夫々端面からの寸法が正確
となる。請求項4では、長尺材に対する加工データを、
図番単位で記憶しているので、一旦、加工グループの基
本形状パターンに対する加工データを入力した後は、図
番指定をするだけで、直ちにその加工に必要なデータを
NC装置に提供でき、段取変えが極めて容易である。
According to the method of claim 1, the processed portions of the long material having a fixed positional relationship with each other are grouped, and the machined shapes in the group are set to the origins which are different only in the longitudinal coordinate of the long material. Since it is defined by the local coordinate system, changing the machining data when machining the same shape for workpieces with different longitudinal dimensions gives the origin shift amount between coordinate systems only in the longitudinal direction of long materials. All you need is no data entry. In the second aspect, the left and right end processing groups of the long material are processed based on the respective end faces, and even if the long material has a cutting error in the longitudinal direction, the left and right end processing groups are processed. At times, the dimension from the end face is accurate. In claim 4, the processing data for the long material is
Since the data is stored in the drawing number unit, once the processing data for the basic shape pattern of the processing group is input, the data required for the processing can be immediately provided to the NC device by simply specifying the drawing number. It is extremely easy to replace.

【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]

【発明の効果】以上のように本願発明によれば、サッシ
材の如き長尺材において、互いに位置関係が不変な加工
形状をまとめて、長尺材の左、右端加工グループと中間
加工グループに区分し、端加工グループの一方の座標系
を機械座標系と一致させ、各加工グループを夫々長尺材
の長手方向座標のみを違えた別々の原点を基準とするロ
ーカル座標系で定義し、機械座標系と一致した座標系
と、他の座標系との間の長手方向の原点シフト量を与え
て、各加工グループの加工位置を決定するようにしたの
で、長尺材の端部から中間加工グループまでの距離が異
なるワークに対してのデータ設定の際には、原点シフト
量のみを変更入力すればよく、従来のように、X、Y,
回転方向と3つのシフトデータを必要とするものに比
べ、データ変更作業が極めて容易となる。また、機械原
点を含まない端部加工グループの座標系と、機械原点を
含む端部加工グループとの距離に、長尺材の長手実寸法
を適用するものでは、その加工データによって加工した
ときには、左右端部加工グループの加工形状が、それぞ
れ端面基準で行われ、長尺材の長さに切断誤差があって
も、端面からの切り込み量に誤差を生じることがなく、
枠として組んだときに、正確に組上がる利点がある。ま
た、一旦、1つの図番が付与される長尺材について、左
右、中間加工グループの寸法データ、各座標系間の原点
シフト量を入力すると、それらのデータは、図番単位で
まとめて記憶されるようにしたので、ある図番の長尺材
を加工しようとするとき、その図番を入力するのみで、
加工に必要な加工データをNC装置に提供でき、段取り
変えが極めて容易となり、加工能率を上げることができ
る利点がある。
As described above, according to the present invention, in a long material such as a sash material, machining shapes whose positional relations are invariant to each other are grouped into a left and right end machining group and an intermediate machining group of the long material. By dividing, the one coordinate system of the end machining group is made to coincide with the machine coordinate system, and each machining group is defined by the local coordinate system based on different origins that differ only in the longitudinal coordinate of the long material. Since the origin shift amount in the longitudinal direction between the coordinate system that matches the coordinate system and other coordinate systems is given to determine the machining position of each machining group, it is possible to perform intermediate machining from the end of the long material. When setting data for workpieces with different distances to the group, only the origin shift amount needs to be changed and input.
The data change operation is extremely easy as compared with the case where the rotation direction and three shift data are required. In addition, in the case where the actual length of the long material is applied to the distance between the coordinate system of the end machining group that does not include the machine origin and the end machining group that includes the machine origin, when machining with that machining data, The processing shapes of the left and right edge processing groups are performed on the basis of the end faces, and even if there is a cutting error in the length of the long material, there is no error in the cutting amount from the end surface.
When assembled as a frame, it has the advantage of being assembled correctly. Also, once the dimension data of the left and right, the intermediate processing group, and the origin shift amount between each coordinate system are input for a long material to which one drawing number is added, these data are stored together in the drawing number unit. Since it was done, when trying to process a long material of a certain drawing number, just enter the drawing number,
There is an advantage that the machining data necessary for machining can be provided to the NC device, the setup change can be extremely facilitated, and the machining efficiency can be improved.

【図面の簡単な説明】[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]

1 NC制御装置 2 工作機械 3 汎用NC装置 4 NC側プログラマブルコントローラ 6 汎用プログラマブルコントローラ 8 入力表示手段 10 加工データ記憶部 14,15,16 グループデータ記憶部 17 変数データ記憶部 20 左端加工グループ 21 機械加工原点 25 形状パターン記憶部 30 右端加工グループ 31 原点(右端加工グループの) 40 中間加工グループ 41 原点(中間加工グループの) 55 加工プログラム記憶部 60 変数データ格納バッファ SM 原点シフト量 1 NC control device 2 Machine tool 3 General-purpose NC device 4 NC-side programmable controller 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 20 Left end machining group 21 Machining Origin 25 Shape pattern memory 30 Right edge machining group 31 Origin (right edge machining group) 40 Intermediate machining group 41 Origin (intermediate machining group) 55 Machining program memory 60 Variable data storage buffer SM Origin shift amount

───────────────────────────────────────────────────── フロントページの続き (72)発明者 林 久仁英 愛知県豊川市蔵子2丁目9−8 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Kunihide Hayashi 2-9-8 Kurako, Toyokawa City, Aichi Prefecture

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 サッシ窓を構成する枠材、框材等の長尺
材を加工するに際し、長尺材に対して行われる加工部分
を、互いに位置関係が不変な加工部分ごとに左、右端加
工グループ、中間加工グループに区分し、各加工グルー
プにおける加工形状を、長尺材の長手方向座標のみを違
えた別々の原点を基準とするローカル座標系で定義し、
機械の加工原点を左右端加工グループのいずれか一方の
座標系の原点と一致させ、その原点と各座標系との間の
長手方向の原点シフト量を与えて各加工グループの加工
位置を決定することを特徴とする長尺材の加工データ作
成方法。
1. When processing a long material such as a frame material or a frame material that constitutes a sash window, the left and right ends of the processing portions to be processed with respect to the long material are set for each of the processing portions whose positional relationship does not change. It is divided into machining groups and intermediate machining groups, and the machining shapes in each machining group are defined in a local coordinate system with different origins as the only different longitudinal coordinates of the long material.
Match the machining origin of the machine with the origin of one of the coordinate systems of the left and right machining groups, and determine the machining position of each machining group by giving the origin shift amount in the longitudinal direction between that origin and each coordinate system. A method for creating processing data for long materials, which is characterized in that
【請求項2】 サッシ窓を構成する枠材、框材等の長尺
材を加工するに際し、長尺材に対して行われる加工部分
を、互いに位置関係が不変な加工部分ごとに、左、右端
加工グループ、中間加工グループに区分し、各加工グル
ープにおける加工形状を、長尺材の長手方向座標のみを
違えた別々の原点を基準としたローカル座標系で定義
し、機械の加工原点を左右端加工グループのいずれか一
方の座標系の原点と一致させ、他方の端加工グループの
端面を含む面内にその他方の端加工グループの座標系の
原点を位置させ、中間加工グループが加工基準とする端
加工グループの原点と中間加工グループの長手方向の原
点シフト量を与え、前記他方の端加工グループの座標系
と加工原点の座標系との間の原点シフト量には、長尺材
の長手方向の実寸法を与えて各加工グループの加工位置
を決定することを特徴とする長尺材の加工データ作成方
法。
2. When processing a long material such as a frame material and a frame material forming a sash window, a processing portion to be performed on the long material is left for each processing portion whose positional relationship is invariable. It is divided into the right end machining group and the intermediate machining group, and the machining shape in each machining group is defined by the local coordinate system based on different origins that differ only in the longitudinal coordinate of the long material, and the machining origin of the machine is left and right. Align the origin of the coordinate system of one of the edge machining groups with the origin of the coordinate system of the other edge machining group within the plane including the end face of the other edge machining group, and make the intermediate machining group the machining reference. The origin shift amount in the longitudinal direction of the end machining group and the intermediate machining group is given, and the origin shift amount between the coordinate system of the other end machining group and the coordinate system of the machining origin is the longitudinal length of the long material. The actual size of the direction A machining data creation method for a long material, which is characterized in that a machining position of each machining group is given.
【請求項3】 中間加工グループは更に、左端加工グル
ープの原点を基準とする左端基準加工グループと、右端
加工グループの原点を基準とする右端基準加工グループ
とに区分してあることを特徴とする請求項2記載の長尺
材の加工データ作成方法。
3. The intermediate processing group is further divided into a left end reference processing group based on the origin of the left end processing group and a right end reference processing group based on the origin of the right end processing group. The method for creating processing data of a long material according to claim 2.
【請求項4】 サッシ窓を構成する枠材、框材等の長尺
材に対して行われる多種の加工の基本形状パターンを記
憶する形状パターン記憶部と、長尺材の加工グループを
左右端加工グループ、中間加工グループに区分して、各
加工グループにおける加工形状を前記基本形状パターン
から選択するパターン選択手段と、各加工グループで選
択された基本形状パターンに夫々長尺材の長手方向にの
み位置を違えて設定される別々の原点を基準としたロー
カル座標系で実加工用の寸法を定義する寸法入力手段
と、前記各加工グループで選択された基本形状パターン
とそれに対する実加工用の加工寸法を、各加工グループ
ごとに記憶したグループデータ記憶部が複数集合して構
成される長尺材の図番単位の加工データ記憶部と、左、
または右端加工グループの原点と一致した機械の加工原
点と他のローカル座標系間の長手方向の原点シフト量を
与える原点シフト量入力手段とを備えたことを特徴とす
る長尺材の加工データ作成装置。
4. A shape pattern storage unit for storing a basic shape pattern of various types of processing performed on a long material such as a frame material and a frame material forming a sash window, and a processing group for the long material on the left and right ends. Pattern selection means for selecting the machining shape in each machining group from the basic shape patterns divided into machining groups and intermediate machining groups, and the basic shape patterns selected in each machining group, respectively, only in the longitudinal direction of the long material. Dimension input means for defining dimensions for actual machining in a local coordinate system based on different origins set at different positions, basic shape patterns selected in each machining group, and machining for actual machining corresponding thereto A machining data storage unit in the drawing number unit of a long material configured by collecting a plurality of group data storage units that store dimensions for each machining group, and left,
Alternatively, it is possible to prepare machining data for a long material, which is provided with a machining origin of the machine that coincides with the origin of the right end machining group and an origin shift amount input means for giving an origin shift amount in the longitudinal direction between other local coordinate systems. apparatus.
JP18473595A 1995-06-27 1995-06-27 Method and apparatus for creating processing data of long material Expired - Lifetime JP3567441B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18473595A JP3567441B2 (en) 1995-06-27 1995-06-27 Method and apparatus for creating processing data of long material

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18473595A JP3567441B2 (en) 1995-06-27 1995-06-27 Method and apparatus for creating processing data of long material

Publications (2)

Publication Number Publication Date
JPH0916237A true JPH0916237A (en) 1997-01-17
JP3567441B2 JP3567441B2 (en) 2004-09-22

Family

ID=16158453

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18473595A Expired - Lifetime JP3567441B2 (en) 1995-06-27 1995-06-27 Method and apparatus for creating processing data of long material

Country Status (1)

Country Link
JP (1) JP3567441B2 (en)

Also Published As

Publication number Publication date
JP3567441B2 (en) 2004-09-22

Similar Documents

Publication Publication Date Title
US4530046A (en) Method of inputting machining information to a machine tool numerical controller and apparatus therefor
KR850000362B1 (en) Background of the invention
US4513366A (en) Menu programmed machine tool numerical controller with an interference checking function
EP0129091B1 (en) Numerical control system, graphics display unit and machine tool
JP4593142B2 (en) System for manufacturing a workpiece under computer control and method for measuring a manufactured workpiece
US4878172A (en) Four-axis lathe NC program creation method
JP2008112269A (en) Machining simulation system
KR20210062440A (en) Manufacturing apparatus of machine tool using digital twin and the method thereof
US6546127B1 (en) System and method for real time three-dimensional model display in machine tool
CN101183257A (en) CAM software processing technology
JP3580447B2 (en) NC control method
JPH0916237A (en) Method and device for preparing machining data on long-sized material
US5029068A (en) NC data creation method
CN1229707A (en) Graphic dialogue milling machine control system and operation method
CN109732399B (en) Tool setting method and device for numerical control machine tool, electronic equipment and storage medium
JP3532255B2 (en) Input data display method for interactive numerical controller
JP3248081B2 (en) Automatic program creation device with automatic cutting axis change function
JPS6323565B2 (en)
US6681144B1 (en) Process and system for working a workpiece through numerically controlled machine tools
JPH0863216A (en) Machining time measuring system
JP3925506B2 (en) CAD / CAM equipment
Coole et al. Analysis of robot system capabilities in machining of full scale prototypes for sanitary ware industry
JPH02306308A (en) Automatic programming device
JPH08211914A (en) Processing data management system
JP3203265B2 (en) Control method of processing machine group in FMS

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: 20040412

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040420

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: 20040524

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040606

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: 20090625

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090625

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100625

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20100625

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110625

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20120625

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20130625

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20140625

Year of fee payment: 10

EXPY Cancellation because of completion of term