KR101178702B1 - Program creation device, numeric control device,and program creation method - Google Patents

Program creation device, numeric control device,and program creation method Download PDF

Info

Publication number
KR101178702B1
KR101178702B1 KR1020097025380A KR20097025380A KR101178702B1 KR 101178702 B1 KR101178702 B1 KR 101178702B1 KR 1020097025380 A KR1020097025380 A KR 1020097025380A KR 20097025380 A KR20097025380 A KR 20097025380A KR 101178702 B1 KR101178702 B1 KR 101178702B1
Authority
KR
South Korea
Prior art keywords
dimension
data
shape
shape data
elements
Prior art date
Application number
KR1020097025380A
Other languages
Korean (ko)
Other versions
KR20100011972A (en
Inventor
아키라 미야타
겐지 이리구치
다카시 이와사키
Original Assignee
미쓰비시덴키 가부시키가이샤
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 미쓰비시덴키 가부시키가이샤 filed Critical 미쓰비시덴키 가부시키가이샤
Priority claimed from PCT/JP2007/061424 external-priority patent/WO2008149431A1/en
Publication of KR20100011972A publication Critical patent/KR20100011972A/en
Application granted granted Critical
Publication of KR101178702B1 publication Critical patent/KR101178702B1/en

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B23MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
    • B23QDETAILS, COMPONENTS, OR ACCESSORIES FOR MACHINE TOOLS, e.g. ARRANGEMENTS FOR COPYING OR CONTROLLING; MACHINE TOOLS IN GENERAL CHARACTERISED BY THE CONSTRUCTION OF PARTICULAR DETAILS OR COMPONENTS; COMBINATIONS OR ASSOCIATIONS OF METAL-WORKING MACHINES, NOT DIRECTED TO A PARTICULAR RESULT
    • B23Q15/00Automatic control or regulation of feed movement, cutting velocity or position of tool or work
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/4093Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by part programming, e.g. entry of geometrical information as taken from a technical drawing, combining this with machining and material information to obtain control information, named part programme, for the NC machine
    • G05B19/40931Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by part programming, e.g. entry of geometrical information as taken from a technical drawing, combining this with machining and material information to obtain control information, named part programme, for the NC machine concerning programming of geometry
    • G05B19/40932Shape input
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/4097Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by using design data to control NC machines, e.g. CAD/CAM
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/35Nc in input of data, input till input file format
    • G05B2219/35001Data input, data handling, programming, monitoring of nc
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/35Nc in input of data, input till input file format
    • G05B2219/35061From cad make drawing with text for dimensions, scan it and read dimensions
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/35Nc in input of data, input till input file format
    • G05B2219/35223Tolerance, consider tolerance in design, design for assembly

Abstract

가공대상물의 형상데이터에 치수공차 데이터를 반영한 NC가공 프로그램을 작성하는 NC프로그래밍 지원장치에 있어서, 형상데이터와 치수공차 데이터에 근거하여, 가공대상물의 가공목표치수를 산출하는 가공목표치수 산출부(5)와, 도형요소를 이동시키는 방법에 관한 위치이동정보, 가공목표치수 및 형상데이터에 근거하여, 형상데이터에 포함되는 도형요소간의 치수가 가공목표치수가 되도록 도형요소의 이동위치를 설정하는 형상데이터 변형처리부(6)와, 형상데이터 및 각 도형요소의 이동위치를 이용하여 NC가공 프로그램을 작성하는 NC가공 프로그램 생성 처리부(7)를 구비한다.

Figure R1020097025380

In the NC programming support apparatus for creating an NC machining program in which dimensional tolerance data is reflected in shape data of a workpiece, a machining target dimension calculation unit (5) for calculating a machining target dimension of the workpiece based on the shape data and the dimensional tolerance data (5). ) And deformation of the shape data which sets the movement position of the figure element such that the dimension between the figure elements included in the shape data is the machining target dimension based on the position movement information, the machining target dimension and the shape data relating to the method of moving the figure element. And a processing unit 6 and an NC processing program generation processing unit 7 which creates an NC processing program using the shape data and the movement position of each figure element.

Figure R1020097025380

Description

프로그램 작성장치, 수치제어장치 및 프로그램 작성방법 {PROGRAM CREATION DEVICE, NUMERIC CONTROL DEVICE,AND PROGRAM CREATION METHOD}Program writing device, numerical control device and program writing method {PROGRAM CREATION DEVICE, NUMERIC CONTROL DEVICE, AND PROGRAM CREATION METHOD}

본 발명은 공작기계를 수치제어하기 위한 NC가공 프로그램을 작성하는 프로그램 작성장치, 수치제어장치 및 프로그램 작성방법에 관한 것이다.The present invention relates to a program preparation device, a numerical control device and a program creation method for creating an NC machining program for numerical control of a machine tool.

NC가공 프로그램에서 지시한 대로의 가공을 충실하고 또한 고정밀도로 진행시켜 나가는 수치제어 공작기계에서는 피가공물을 설계하는 설계자의 의도대로의 가공결과를 가져오는 NC가공 프로그램을 얼마나 용이하고 효율 좋게 작성하는지가 품질관리나 생산성의 관점으로부터 중요하게 된다.In the numerically controlled machine tools that faithfully and precisely process machining as instructed by the NC machining program, how easy and efficient is the NC machining program that produces machining results as designed by the designer of the workpiece? It becomes important from the viewpoint of quality control and productivity.

최근, 프로그램 작성장치의 NC프로그램 작성지원기능의 충실화가 진행되어, 오퍼레이터가 제작도면을 보면서 가공대상물의 좌표값을 설정함으로써 용이하게 NC가공 프로그램을 작성할 수 있게 되었다. 또, 설계자가 CAD 시스템을 이용하여 모델링한 CAD 데이터를 프로그램 작성장치로 직접 읽어들여 NC가공 프로그램의 작성을 행할 수 있는 장치도 등장하고 있다.In recent years, the NC program creation support function of the program generating apparatus has been improved, and the operator can easily create an NC machining program by setting the coordinate values of the workpiece while viewing the production drawing. In addition, devices that allow designers to directly read CAD data modeled using a CAD system into a program creation device and create an NC processing program have emerged.

그런데, 끼워맞춤(감합(嵌合))이나 치수공차 등의 피가공물의 제품으로서의 기능이나 성능에 관한 부위의 가공에 대해서는 끼워맞춤이나 치수공차를 가미한 가공목표치수를 NC가공 프로그램에 반영시켜 둘 필요가 있다. 특히, 상하(치수상한과 치수하한)의 치수허용차가 한쪽(치수상한 또는 치수하한)에 치우친 비대칭인 끼워맞춤이나 치수공차에서는 가공목표치수가 기준치수와는 다른 값이 되는 경우가 있다.By the way, in the machining of parts related to functions and performances as products of workpieces such as fittings and dimensional tolerances, it is necessary to reflect the machining target dimensions including fittings and dimensional tolerances in the NC machining program. There is. In particular, in asymmetrical fittings or dimensional tolerances in which the upper and lower (dimension upper limit and lower limit) are asymmetrically biased to one side (upper limit or lower limit), the machining target dimension may be different from the standard dimension.

제작도면을 보면서 NC가공 프로그램을 직접 프로그래밍(수정)하는 경우에는, 오퍼레이터가 손계산이나 계산기로 가공목표치수를 계산함과 동시에, 계산결과에 근거하여 보정한 좌표값을 NC가공 프로그램에 입력해 가는 방법이 채용되고 있었다. 이 방법으로는 NC가공 프로그램의 수정이 번잡하기 때문에 계산 실수나 입력 실수를 초래하기 쉽고, 작성된 NC가공 프로그램의 신뢰성이 부족하다고 하는 문제가 있었다.In the case of programming (correcting) the NC machining program directly while viewing the production drawing, the operator calculates the machining target dimension by hand calculation or calculator, and inputs the corrected coordinate values into the NC machining program based on the calculation result. The method was adopted. In this method, it is easy to cause a calculation mistake or an input mistake because the modification of the NC machining program is complicated, and there is a problem that the reliability of the created NC machining program is insufficient.

이 때문에, NC가공 프로그램 중에 기준치수와 공차정보(치수공차 등)를 직접 기술할 수 있도록 하여, 기술된 정보에 근거하여 수치제어장치가 가공처리를 행하는 방법이 제안되고 있다.For this reason, a method has been proposed in which the standard dimension and the tolerance information (dimension tolerance, etc.) can be directly described in the NC machining program, and the numerical control device performs the machining process based on the described information.

예를 들면, 특허문헌 1에 기재한 수치제어장치는 끼워맞춤의 기준치수와 공차영역 클래스에 근거하는 치수허용차 데이터를 미리 보존하고 있다. 그리고, 가공 프로그램상에 지령된 가공물의 끼워맞춤의 기준치수 및 공차영역 클래스를 나타내는 지령과, 이 지령에 대응하는 보존해 둔 치수허용차 데이터로부터 공차영역의 중앙위치를 산출하고, 산출한 중앙위치를 제어축의 이동지령으로서 축제어를 행하고 있다. 이것에 의해, 프로그래머는 가공도면상에 기록된 끼워맞춤의 부위의 기준치수 및 공차영역 클래스를 직접 프로그램하는 것이 가능하게 된다.For example, the numerical control device described in Patent Literature 1 stores in advance the dimension tolerance data based on the reference dimension of the fitting and the tolerance area class. The center position of the tolerance area is calculated from the command indicating the reference dimension and the tolerance area class of the fitting of the workpiece commanded on the machining program, and the stored dimension tolerance data corresponding to this command. A festival fish is used as a command for moving the control shaft. This allows the programmer to directly program the reference dimension and the tolerance area class of the fitting site recorded on the machining drawing.

또, 특허문헌 2에 기재의 수치제어장치의 자동 끼워맞춤 보정기는, NC지령 프로그램 중에서 소정의 구획(bound)기호에 끼워진 끼워맞춤 기호를 검출함과 동시에, 끼워맞춤 기호에 대응하는 치수와 NC지령 프로그램 중의 치수로부터 절삭치수를 산출하고 있다.In addition, the automatic fitting corrector of the numerical control device described in Patent Literature 2 detects a fitting symbol embedded in a predetermined bound symbol in the NC instruction program, and simultaneously measures a dimension and an NC instruction corresponding to the fitting symbol. The cutting dimension is calculated from the dimensions in the program.

또, 특허문헌 3에 기재한 가공제어방법에서는 가공 프로그램 중의 치수허용차 지정영역에 있어서, 치수허용차가 구체적인 수치로 나타내고 있는 경우는 그 수치에 근거하여 가공목표치수를 결정하고, 끼워맞춤 부호로 나타내고 있는 경우는 치수허용차 테이블을 검색하여 가공목표치수를 결정하고 있다.In the machining control method described in Patent Literature 3, when the dimension tolerance is indicated by a specific value in the dimension tolerance area designation area in the machining program, the machining target dimension is determined based on the numerical value and indicated by a fitting code. In this case, the machining target dimension is determined by searching the dimension tolerance table.

[특허문헌 1] 일본국 특개평4-245305호 공보[Patent Document 1] Japanese Patent Application Laid-Open No. 4-245305

[특허문헌 2] 일본국 특개소61-15204호 공보[Patent Document 2] Japanese Patent Application Laid-Open No. 61-15204

[특허문헌 3] 일본국 특개소60-201860호 공보[Patent Document 3] Japanese Patent Application Laid-Open No. 60-201860

<발명이 해결하고자 하는 과제>Problems to be Solved by the Invention

그렇지만, 상기 1번째 ~ 3번째의 종래기술에서는 산출하는 치수의 가공대상면이 단일한 경우로서, 또한 공차정보와 가공지령의 단위가 1대 1로 대응하며, 기준치수 및 공차정보를 기술하는 개소를 국재화(局在化)할 수 있는 경우밖에 중앙위치를 산출할 수 없다. 이 때문에, 예를 들면 축이나 구멍의 끼워맞춤과 같이 원통면의 지름에 대해서 공차정보가 지정된 경우나, 절대기준위치(프로그램 원점 등)로부터의 상대치수에 대해서 공차정보가 지정된 경우 밖에 NC가공 프로그램 중에 기준치수와 공차정보를 직접 기술할 수 없다고 하는 문제가 있었다. 환언하면, 면과 면의 거리 등 복수의 가공대상면이 관련되는 경우에는 기준치수 및 공차정보를 NC가공 프로그램 중에 직접 기술할 수 없다고 하는 문제가 있었다. 또, 오퍼레이터가 도면을 주의 깊게 분석하여 공차를 적절히 배분하여 기술하는 경우에는 오퍼레이터의 처리가 번잡하게 된다고 하는 문제가 있었다.However, in the first to the third prior arts, the case where the processing target surface of the dimension to be calculated is single, and the tolerance information and the machining instruction unit correspond one-to-one, and the point describing the standard dimension and the tolerance information The central position can only be calculated if it can be localized. For this reason, the NC machining program can only be used when tolerance information is specified for the diameter of the cylindrical surface, for example, fitting of an axis or a hole, or when tolerance information is specified for a relative dimension from an absolute reference position (program origin, etc.). There was a problem that the standard dimensions and tolerance information could not be described directly. In other words, there is a problem that reference dimensions and tolerance information cannot be directly described in the NC machining program when a plurality of machining target surfaces, such as the distance between the surfaces, are involved. In addition, when an operator carefully analyzes the drawings and appropriately distributes and describes the tolerances, there is a problem that the processing of the operator becomes complicated.

프로그램 작성장치가 CAD 데이터를 읽어들여 NC가공 프로그램을 작성하는 기능을 가지고 있는 경우에는, 미리 공차를 예상한 가공목표치수로 가공대상물의 형상을 모델링해 두는 방법이 채용된다. 이 방법에서는 설계자나 CAD 데이터 작성자에게 가공목표치수를 계산하여 NC가공 프로그램에 입력하는 작업을 강요하게 되어 본질적인 해결은 되지 않는다. 또, 설계상 의미가 있는 기준치수가 없어지므로, 설계자가 의도하지 않는 가공결과를 가져오는 NC가공 프로그램을 작성해 버릴 가능성이 있다고 하는 문제가 있었다.When the program generating apparatus has a function of reading the CAD data and creating an NC machining program, a method of modeling the shape of the object to be processed with a machining target dimension in which a tolerance is expected in advance is employed. This method forces the designer or CAD data creator to calculate the machining target dimension and input it into the NC machining program, which is not an inherent solution. In addition, there is a problem that there is a possibility that a NC machining program that produces a machining result that is not intended by the designer may be created because the reference dimension, which is meaningful in design, is lost.

본 발명은 상기한 점을 감안하여 이루어진 것으로서, 복수의 가공대상면이 관련되는 경우라도 치수공차에 나타내진 설계 의도를 반영한 NC가공 프로그램을 용이하게 작성할 수 있는 프로그램 작성장치, 수치제어장치 및 프로그램 작성방법을 얻는 것을 목적으로 한다.SUMMARY OF THE INVENTION The present invention has been made in view of the above, and a program creation device, a numerical control device, and a program creation that can easily create an NC machining program reflecting the design intention shown in the dimensional tolerance even when a plurality of machining target surfaces are involved. The purpose is to get a way.

<과제를 해결하기 위한 수단>MEANS FOR SOLVING THE PROBLEMS [

상술한 과제를 해결하여 목적을 달성하기 위해서, 본 발명은 가공대상물의 형상데이터와 상기 형상데이터의 치수공차 데이터에 근거하여, 상기 형상데이터에 상기 치수공차 데이터를 반영한 NC가공 프로그램을 작성하는 프로그램 작성장치에 있어서, 상기 형상데이터와 상기 치수공차 데이터에 근거하여, 상기 가공대상물의 가공목표치수를 산출하는 가공목표치수 산출부와, 상기 가공목표치수 산출부가 산출한 가공목표치수와 상기 형상데이터에 근거하여, 상기 형상데이터에 포함되는 도형요소간의 치수가 상기 가공목표치수에 대응하는 치수가 되도록 상기 도형요소의 이동위치를 설정하는 형상데이터 변형처리부와, 상기 형상데이터 및 상기 형상데이터 변형처리부가 설정한 각 도형요소의 이동위치를 이용하여 NC가공 프로그램을 작성하는 가공 프로그램 작성부를 구비하고, 상기 치수공차 데이터는 상기 도형요소를 이동시키는 방법에 관한 위치이동정보를 포함하며, 상기 형상데이터 변형처리부는 상기 위치이동정보에 근거하여 상기 도형요소의 이동위치를 설정하는 것을 특징으로 한다.MEANS TO SOLVE THE PROBLEM In order to solve the above-mentioned subject and achieve the objective, this invention produces the program which produces the NC machining program which reflects the said dimension tolerance data to the said shape data based on the shape data of the object to be processed and the dimension tolerance data of the said shape data. An apparatus, comprising: a machining target dimension calculating section for calculating a machining target dimension of the workpiece based on the shape data and the dimensional tolerance data; and a machining target dimension calculated by the machining target dimension calculating section and the shape data. And a shape data deformation processing unit for setting the movement position of the shape elements so that the size between the shape elements included in the shape data becomes a size corresponding to the processing target dimension, and the shape data and the shape data deformation processing unit are set. Machining to create NC machining program using the movement position of each figure element And a program preparation unit, wherein the dimension tolerance data includes position movement information about a method of moving the figure element, and wherein the shape data deformation processing unit sets the movement position of the figure element based on the position movement information. It features.

<발명의 효과>EFFECTS OF THE INVENTION [

본 발명에 관한 프로그램 작성장치는 도형요소를 이동시키는 방법에 관한 위치이동정보에 근거하여, 형상데이터에 포함되는 도형요소간의 치수가 가공목표치수가 되도록 도형요소의 이동위치를 설정하므로, 복수의 가공대상면이 관련되는 경우라도 치수공차를 반영한 NC가공 프로그램을 용이하게 작성하는 것이 가능하게 된다는 효과를 나타낸다.The program generating apparatus according to the present invention sets the movement positions of the figure elements so that the dimensions between the figure elements included in the shape data are the target machining dimensions based on the position movement information on the method of moving the figure elements. Even if a face is involved, it is possible to easily create an NC machining program that reflects a dimensional tolerance.

도 1은 실시형태 1에 관한 NC프로그래밍 지원장치의 구성을 나타내는 블럭도면이다.1 is a block diagram showing the configuration of an NC programming support apparatus according to the first embodiment.

도 2는 치수공차 데이터 테이블의 구성의 일례를 나타내는 도면이다.2 is a diagram illustrating an example of the configuration of a dimension tolerance data table.

도 3은 조정모드가 「요소 1 고정」인 경우의 형상데이터의 이동변형방법을 설명하기 위한 도면이다.FIG. 3 is a diagram for explaining the movement deformation method of shape data when the adjustment mode is "element 1 fixed".

도 4는 조정모드가 「중앙 고정」인 경우의 형상데이터의 이동변형방법을 설 명하기 위한 도면이다.4 is a diagram for explaining a method of transforming movement of shape data when the adjustment mode is "center fixed".

도 5는 조정모드가 「자동」인 경우의 형상데이터의 이동변형방법을 설명하기 위한 도면이다.FIG. 5 is a diagram for explaining the movement deformation method of shape data when the adjustment mode is "automatic".

도 6은 가공대상형상과 치수공차 데이터의 일례를 나타내는 도면이다.Fig. 6 is a diagram showing an example of the object to be processed and the dimension tolerance data.

도 7은 도 6에 나타낸 치수 중 비대칭인 치수공차를 가지는 치수공차 데이터 테이블의 구성을 나타내는 도면이다.FIG. 7 is a diagram illustrating a configuration of a dimension tolerance data table having an asymmetric dimension tolerance among the dimensions shown in FIG. 6.

도 8은 본 발명의 실시형태 1에 관한 NC프로그래밍 지원장치의 동작순서를 나타내는 플로우차트이다.8 is a flowchart showing the operation procedure of the NC programming support apparatus according to Embodiment 1 of the present invention.

도 9는 그룹마다 도형요소의 변형처리순서를 나타내는 플로우차트이다.9 is a flowchart showing the deformation processing procedure of figure elements for each group.

도 10은 본 발명의 실시형태 2에 관한 NC프로그래밍 지원장치의 구성을 나타내는 블럭도면이다.Fig. 10 is a block diagram showing the structure of the NC programming support apparatus according to Embodiment 2 of the present invention.

도 11은 점도형 데이터 테이블의 구성의 일례를 나타내는 도면이다.It is a figure which shows an example of the structure of a viscosity data table.

도 12는 점도형 데이터의 이동변형방법을 설명하기 위한 도면이다.12 is a diagram for explaining a method of moving deformation of viscosity data.

도 13은 점도형에 관련된 도형요소군(群)의 이동변형방법을 설명하기 위한 도면이다.It is a figure for demonstrating the movement deformation method of the figure element group which concerns on a viscosity form.

도 14는 공작장치의 구성의 일례를 나타내는 도면이다.It is a figure which shows an example of the structure of a machine tool.

<부호의 설명><Code description>

1 CAD 데이터 입력부1 CAD data input section

2 형상데이터 보존부2 Shape Data Preservation Section

3 대화조작 처리부3 Conversation processing part

4 치수공차 데이터 보존부4 Dimensional tolerance data storage

5 가공목표치수 산출부5 Machining target dimension calculation part

6 형상데이터 변형처리부6 Shape Data Deformation Processing Unit

7 NC가공 프로그램 생성 처리부7 NC machining program generation processing part

8 표시부8 display

9 지시 입력부9 instruction input

10 점도형 데이터 보존부10 Viscosity Data Preservation Section

20 CAD 데이터20 CAD data

30 NC가공 프로그램30 NC machining program

51, 52 치수공차 데이터 테이블51, 52 Dimensional Tolerance Data Table

53 점도형 데이터 테이블53 Viscosity Data Table

61 ~ 63 형상데이터61 ~ 63 shape data

101, 102 프로그래밍 지원장치101, 102 Programmable Supporting Device

110 제어부110 control unit

150 수치제어장치150 numerical control unit

201 공작장치201 Machine Tool

205 가공부205 machining

210 피가공물210 Workpiece

301A, 302A, 302B, 401A, 401B, 402A, 402B, 501A, 501B, 502A, 502B, 503A, 601A ~ 605A, 607A ~ 609A, 701A ~ 704A 능선301A, 302A, 302B, 401A, 401B, 402A, 402B, 501A, 501B, 502A, 502B, 503A, 601A to 605A, 607A to 609A, 701A to 704A

801A, 801B 점도형801A, 801B Viscosity Type

<발명을 실시하기 위한 바람직한 형태>BEST MODE FOR CARRYING OUT THE INVENTION [

이하에, 본 발명에 관한 프로그램 작성장치, 수치제어장치 및 프로그램 작성방법의 실시형태를 도면에 근거하여 상세하게 설명한다. 또한, 이 실시형태에 의해 이 발명이 한정되는 것은 아니다.EMBODIMENT OF THE INVENTION Below, embodiment of the program preparation apparatus, the numerical control apparatus, and the program preparation method which concern on this invention is described in detail based on drawing. In addition, this invention is not limited by this embodiment.

실시형태 1.Embodiment 1

도 1은 본 발명의 실시형태 1에 관한 NC프로그래밍 지원장치의 구성을 나타내는 블럭도면이다. NC프로그래밍 지원장치(프로그램 작성장치)(101)는 CAD 데이터 입력부(1), 형상데이터 보존부(2), 대화조작 처리부(3), 치수공차 데이터 보존부(4), 가공목표치수 산출부(5), 형상데이터 변형처리부(6), NC가공 프로그램 생성 처리부(가공 프로그램 작성부)(7), 표시부(8), 지시 입력부(9)를 가지고 있다.1 is a block diagram showing the configuration of an NC programming support apparatus according to Embodiment 1 of the present invention. The NC programming support device (programmer) 101 includes a CAD data input unit 1, a shape data storage unit 2, an interactive operation processing unit 3, a dimension tolerance data storage unit 4, and a machining target dimension calculation unit ( 5), the shape data deformation processing unit 6, the NC processing program generating processing unit (processing program preparing unit) 7, the display unit 8, and the instruction input unit 9 are included.

CAD 데이터 입력부(1)는 CAD 데이터 작성장치나 CAD 데이터 기억장치 등의 외부장치 등으로부터 CAD 데이터(20)를 입력하고, 형상데이터 보존부(2)로 보낸다. CAD 데이터(20)는 CAD 시스템 등을 이용하여 작성된 가공대상물(피가공물)의 형상데이터(가공대상물의 기준치수)나 CAD 시스템상에서 설정한 치수공차에 관한 데이터 등을 포함하여 구성되어 있다. 형상데이터 보존부(2)는 CAD 데이터 입력부(1)로부터의 CAD 데이터(20)를 기억하는 메모리 등의 기억수단이다.The CAD data input unit 1 inputs the CAD data 20 from an external device such as a CAD data creating device or a CAD data storage device, and sends the CAD data 20 to the shape data storage unit 2. The CAD data 20 is configured to include shape data (reference dimension of the object to be processed) created using a CAD system or the like, data on dimensional tolerances set on the CAD system, and the like. The shape data storage section 2 is a storage means such as a memory for storing the CAD data 20 from the CAD data input section 1.

표시부(8)는 액정 모니터 등의 표시단말로서, CAD 데이터(20), 유저에 의해서 지정된 형상데이터의 도형요소, 유저에 의해서 입력된 치수공차 데이터 등을 표 시한다.The display unit 8 is a display terminal such as a liquid crystal monitor and displays CAD data 20, figure elements of shape data designated by the user, dimensional tolerance data input by the user, and the like.

지시 입력부(9)는 마우스나 키보드를 구비하여 구성되며, 유저로부터의 지시정보(후술하는 조정모드 등)나 치수공차 데이터 등을 입력한다. 입력된 지시정보나 치수공차 데이터 등은 대화조작 처리부(3)로 보내진다.The instruction input section 9 includes a mouse and a keyboard, and inputs instruction information (such as an adjustment mode described later), dimension tolerance data, and the like from the user. Input instruction information, dimension tolerance data, and the like are sent to the interactive operation processing unit 3.

대화조작 처리부(3)는 형상데이터 보존부(2)에 보존되어 있는 CAD 데이터(20)를 표시부(8)에 표시시킴과 동시에, 지시 입력부(9)로부터의 지시정보를 입력한다. 대화조작 처리부(3)는, 예를 들면 오퍼레이터가 마우스 등에 의해서 지정한 형상데이터의 도형요소와, 오퍼레이터가 키보드로부터 입력한 도형요소에 대응하는 치수공차 데이터를 지시 입력부(9)로부터 받아들인다. 대화조작 처리부(3)는 지시 입력부(9)로부터의 지시정보에 근거하여, CAD 데이터(20)의 형상데이터의 도형요소와 치수공차 데이터를 대응시킴과 동시에, 대응시킨 데이터(후술의 치수공차 데이터 테이블(51))를 치수공차 데이터 보존부(4)에 기억시킨다. 치수공차 데이터 보존부(4)는 대화조작 처리부(3)로부터의 치수공차 데이터 테이블(51)을 기억하는 메모리 등의 기억수단이다.The interactive operation processing unit 3 displays the CAD data 20 stored in the shape data storage unit 2 on the display unit 8 and inputs the instruction information from the instruction input unit 9. The interactive operation processing unit 3 receives, for example, from the instruction input unit 9 the figure element of the shape data designated by the operator by the mouse or the like and the dimension tolerance data corresponding to the figure element input by the operator from the keyboard. On the basis of the instruction information from the instruction input section 9, the interactive operation processing section 3 associates the figure element of the shape data of the CAD data 20 with the dimension tolerance data, and corresponds to the corresponding data (dimension tolerance data described later). The table 51 is stored in the dimension tolerance data storage section 4. The dimension tolerance data storage section 4 is a storage means such as a memory for storing the dimension tolerance data table 51 from the interactive operation processing section 3.

가공목표치수 산출부(5)는 치수공차 데이터 보존부(4)에 보존된 치수공차 데이터 테이블(51)을 읽어내어, 기준치수와 치수공차를 이용하여 가공목표치수를 계산한다. 가공목표치수 산출부(5)는 산출한 가공목표치수를 형상데이터 변형처리부(6)에 입력한다.The machining target dimension calculation unit 5 reads the dimensional tolerance data table 51 stored in the dimensional tolerance data storage unit 4, and calculates the machining target dimension using the standard dimension and the dimensional tolerance. The machining target dimension calculating section 5 inputs the calculated machining target dimension into the shape data deformation processing section 6.

형상데이터 변형처리부(6)는 가공목표치수 산출부(5)의 계산결과(가공목표치수)와 형상데이터 보존부(2)에 보존된 형상데이터와 조정모드를 이용하여, 형상데 이터 중 치수공차 데이터에 관계하고 있는 각 도형요소의 이동량을 산출하며, 가공목표치수를 만족하도록 형상데이터를 변형(도형요소의 위치를 이동)시킨다. 형상데이터 변형처리부(6)는 변형 후의 형상데이터를 NC가공 프로그램 생성 처리부(7)에 입력한다. NC가공 프로그램 생성 처리부(7)는 변형 후의 형상데이터의 각 도형요소의 위치에 근거하여 NC가공 프로그램(30)을 생성하여 외부 출력한다.The shape data deformation processing unit 6 uses the calculation result (machining target dimension) of the machining target dimension calculation unit 5 and the shape data and the adjustment mode stored in the shape data storage unit 2 to adjust the dimensional tolerances among the shape data. The amount of movement of each figure element related to the data is calculated, and the shape data is deformed (moving the position of the figure element) to satisfy the machining target dimension. The shape data deformation processing unit 6 inputs the shape data after deformation into the NC processing program generation processing unit 7. The NC machining program generation processor 7 generates the NC machining program 30 based on the position of each figure element of the deformed shape data and outputs it externally.

여기서, 치수공차 데이터 보존부(4)에 보존되는 치수공차 데이터 테이블(51)의 구성에 대해 설명한다. 도 2는 치수공차 데이터 테이블의 구성의 일례를 나타내는 도면이다. 치수공차 데이터 테이블(51)은 치수공차 데이터를 식별하는 정보(「No.」)와, 「도형요소 1」과, 「도형요소 2」와, 「치수종별」과, 「기준치수」와, 「상한치수 허용차」와, 「하한치수 허용차」와, 「조정모드」가 각각 대응된 정보 테이블이다. 치수공차 데이터 테이블(51)에서는 각 행이 1개의 치수공차 데이터를 나타내고 있다.Here, the structure of the dimension tolerance data table 51 stored in the dimension tolerance data storage part 4 is demonstrated. 2 is a diagram illustrating an example of the configuration of a dimension tolerance data table. The dimension tolerance data table 51 includes information for identifying the dimension tolerance data ("No."), "shape element 1", "shape element 2", "dimension type", "reference dimension", " The upper limit dimension tolerance ", the" lower limit dimension tolerance ", and the" adjustment mode "are corresponding information tables, respectively. In the dimension tolerance data table 51, each row represents one dimension tolerance data.

「도형요소 1」의 필드 및 「도형요소 2」의 필드는 치수공차 데이터의 설정 대상이 되는 도형요소 또는 도형요소의 조합을 나타내고 있고, 형상데이터 보존부(2)에 보존된 형상데이터의 도형요소(면, 능선, 정점 등)의 ID(「No.」)와 대응되어 있다. 「도형요소 1」의 필드는 형상데이터를 구성하는 한쪽의 도형요소를 나타내며, 「도형요소 2」의 필드는 형상데이터를 구성하는 다른 쪽의 도형요소를 나타내고 있다.The fields of the shape element 1 and the shape element 2 indicate a combination of figure elements or figure elements to which the dimension tolerance data are set, and figure elements of the shape data stored in the shape data storage section 2. It corresponds to the ID ("No.") of (plane, ridge, vertex, etc.). The field of "shape element 1" represents one figure element constituting the shape data, and the field of "shape element 2" represents the other figure element constituting the shape data.

끼워맞춤과 같은 축이나 구멍의 지름에 대한 치수공차의 경우, 이 치수공차는 「도형요소 1」에서 정의되고, 「도형요소 2」의 필드는 무시된다. 「치수종별 」의 필드는 치수공차 데이터의 치수의 종별이 거리, 각도, 지름 등 중 어느 한 종류인지를 나타내는 정보이다.In the case of dimensional tolerances for the diameter of the axis or hole such as the fitting, this dimensional tolerance is defined in "Shape 1", and the field of "Shape 2" is ignored. The field "Dimension type" is information indicating whether the type of the dimension of the dimension tolerance data is one of a distance, an angle, a diameter, and the like.

「기준치수」의 필드는 도형요소의 기준의 치수(CAD 데이터(20)로부터 추출한 치수 등)를 나타내고 있다. 「상한치수 허용차」의 필드 및 「하한치수 허용차」의 필드는 치수공차 데이터의 「기준치수」로부터의 상하의 허용치수의 차이(상한의 허용치수차와 하한의 허용치수차)를 나타내고 있다.A field of "reference dimension" shows the reference dimension of the figure element (such as the dimension extracted from the CAD data 20). The fields of "upper limit tolerance" and "lower limit tolerance" indicate the difference between the upper and lower allowable dimensions (the upper limit allowable dimension and the lower limit allowable aberration) from the "standard dimension" of the dimensional tolerance data.

「조정모드」의 필드는 본 발명의 주된 특징으로서, 치수공차 데이터에 근거하여 도형요소를 이동변형시킬 때의 이동변형방법(형상데이터를 변형시키는 방법)(도형요소를 이동시키는 방법에 관한 위치이동정보)를 나타내고 있다. 「조정모드」는, 예를 들면 「요소 1 고정」, 「요소 2 고정」, 「중앙 고정」, 「자동」 중 어느 하나를 나타낸다.The field of "Adjustment mode" is a main feature of the present invention and is a movement deformation method (method for deforming the shape data) when moving the figure element based on the dimensional tolerance data (position movement about the method of moving the figure element). Information). "Adjustment mode" shows any one of "element 1 fixed", "element 2 fixed", "center fixed", and "automatic", for example.

「요소 1 고정」은 「도형요소 1」을 고정하고 「도형요소 2」를 이동시키는 방법이며, 「요소 2 고정」은 「도형요소 2」를 고정하고 「도형요소 1」을 이동시키는 방법이다. 「중앙 고정」은 「도형요소 1」과 「도형요소 2」 사이의 중심을 고정하고, 「도형요소 1」과 「도형요소 2」를 균등하게 이동시키는 방법이며, 「자동」은 「도형요소 1」과 「도형요소 2」 중 어느 한쪽이 「요소 1 고정」, 「요소 2 고정」, 「중앙 고정」 중 어느 한쪽에 의해서 이동한 경우에, 이동한 도형요소를 고정함과 동시에, 이동하고 있지 않은 도형요소를 이동시키는 방법이다."Element 1 fixing" is a method of fixing "shape element 1" and moving "shape element 2", and "fixing element 2" is a method of fixing "shape element 2" and moving of "shape element 1". "Central fixation" is a method of fixing the center between "shape element 1" and "shape element 2" and moving "shape element 1" and "shape element 2" evenly, and "automatic" means "shape element 1". ”And` `figure 2 '' move by any one of` `fix element 1 '',` `fix element 2 '', or` `center fix ''. How to move figure elements

끼워맞춤과 같이 단일한 도형요소를 대상으로 하는 경우, 「조정모드」의 필드는 무시된다. 「조정모드」의 필드는 오퍼레이터 등에 의해서 지시 입력부(9)로 부터 입력되는 것이다. 「조정모드」 이외의 「도형요소 1」, 「도형요소 2」, 「치수종별」, 「기준치수」, 「상한치수 허용차」, 「하한치수 허용차」는 CAD 데이터(20)로부터 추출해도 되고, 오퍼레이터 등에 의해서 지시 입력부(9)로부터 입력시켜도 된다.When a single figure element is targeted, such as a fitting, the field of "adjustment mode" is ignored. The field of "adjustment mode" is input from the instruction | indication input part 9 by an operator etc. In addition to the "adjustment mode", "shape element 1", "shape element 2", "dimension type", "reference dimension", "upper limit tolerance", and "lower limit dimension tolerance" may be extracted from the CAD data 20, You may input from the instruction | indication input part 9 by an operator etc.

가공목표치수 산출부(5)에 의해서 계산되는 가공목표치수는 치수공차 데이터 테이블(51)에 격납된 「기준치수」, 「상한치수 허용차」, 「하한치수 허용차」를 만족하는 범위에 들어가는 치수값이며, 「기준치수」, 「상한치수 허용차」, 「하한치수 허용차」에 근거하여 결정된다. 가공목표치수 산출부(5)는, 예를 들면 식 (1)에 근거하여 가공목표치수를 산출한다.The machining target dimension calculated by the machining target dimension calculation unit 5 falls within a range satisfying the “standard dimension”, “upper limit tolerance” and “lower limit tolerance” stored in the dimensional tolerance data table 51. It is determined based on "standard dimension", "upper limit tolerance", and "lower limit tolerance". The machining target dimension calculation unit 5 calculates the machining target dimension based on, for example, Equation (1).

가공목표치수 = 기준치수 + (상한치수 허용차 + 하한치수 허용차) / 2 … (1)Machining target dimension = reference dimension + (upper limit tolerance + lower limit tolerance) / 2. (One)

다음으로, 「조정모드」의 종류에 의해서 치수공차 데이터의 도형요소가 어떻게 이동변형되는지와, 치수공차 데이터의 작성 처리를 도 3 ~ 도 5를 이용하여 설명한다. 우선, 치수공차 데이터의 「조정모드」가 「요소 1 고정」인 경우의 이동변형의 방법에 대해 설명한다. 도 3은 조정모드가 「요소 1 고정」인 경우의 형상데이터의 이동변형방법을 설명하기 위한 도면이다.Next, how the figure element of the dimension tolerance data is moved and deformed according to the type of "adjustment mode" and the process of creating the dimension tolerance data will be described with reference to FIGS. First, a description will be given of the movement deformation method when the "adjustment mode" of the dimensional tolerance data is "element 1 fixed". FIG. 3 is a diagram for explaining the movement deformation method of shape data when the adjustment mode is "element 1 fixed".

오퍼레이터가 형상데이터(61)의 능선(301A(도형요소 1) 및 302A(도형요소 2))에 대해서 치수공차 데이터를 설정할 때에, 「조정모드」로서 「요소 1 고정」이 지정되면, 대화조작 처리부(3)는 형상데이터(61)에 대응하는 치수공차 데이터(D11)를 작성한다.When the operator sets the dimension tolerance data for the ridge lines 301A (figure element 1) and 302A (figure element 2) of the shape data 61, if "element 1 fixed" is specified as the "adjustment mode", the interactive operation processing unit (3) creates dimension tolerance data D11 corresponding to the shape data 61.

구체적으로는, 대화조작 처리부(3)는 치수공차 데이터(D11)로서, 형상데이터(61)의 능선(301A)을 CAD 데이터(20)로부터 추출하여 「도형요소 1」로 설정함과 동시에, 능선(302A)을 CAD 데이터(20)로부터 추출하여 「도형요소 2」로 설정한다. 또한, 치수공차 데이터(D11)에 오퍼레이터에 의해서 지정된 「요소 1 고정」의 「조정모드」를 포함해 둔다. 대화조작 처리부(3)는 CAD 데이터(20)의 형상데이터(61)에 대응하는 치수공차 데이터(D11)를 치수공차 데이터 보존부(4)에 보존시킨다.Specifically, the interactive operation processing unit 3 extracts the ridge line 301A of the shape data 61 from the CAD data 20 as the dimension tolerance data D11, sets it to "shape element 1," and at the same time, the ridge line 302A is extracted from the CAD data 20 and set to "Figure 2". In addition, the dimension tolerance data D11 includes the "adjustment mode" of "fixed element 1" specified by the operator. The interactive operation processing section 3 stores the dimension tolerance data D11 corresponding to the shape data 61 of the CAD data 20 in the dimension tolerance data storage section 4.

형상데이터 변형처리부(6)는 가공목표치수를 만족하도록 능선(301A, 302A)을 이동변형할 때에 「도형요소 1」의 능선(301A)을 이동시키지 않고 고정하고, 「도형요소 2」의 능선(302A)을 이동시킨다. 이 때의 이동량(Δ)은 가공목표치수(Y1)와 변형전의 형상치수(이동변형 전의 능선(301A)과 능선(302A) 사이의 거리)(X1)와의 차이가 된다. 형상데이터(61)의 능선(302A)은 이동량(Δ)의 이동처리에 의해서 이동 후의 능선(302B)이 된다.When the shape data deformation processing unit 6 moves and deforms the ridge lines 301A and 302A so as to satisfy the machining target dimension, the shape data deformation processing unit 6 fixes the ridge lines 301A of the “shape element 1” without moving, and the ridge lines of the “shape element 2” ( 302A). The movement amount Δ at this time becomes a difference between the machining target dimension Y1 and the shape dimension before the deformation (the distance between the ridge line 301A before the movement deformation and the ridge line 302A) X1. The ridge line 302A of the shape data 61 becomes the ridge line 302B after the movement by the movement process of the movement amount Δ.

「조정모드」가 「요소 2 고정」인 경우는 도형요소의 고정과 이동의 입장이 역으로 되는 점을 제외하고는 「요소 1 고정」의 처리와 동일하다. 즉, 「요소 2 고정」의 경우, 「도형요소 2」의 능선(302A)을 이동시키지 않고 고정하고, 「도형요소 1」의 능선(301A)을 이동시킨다.When "adjustment mode" is "element 2 fixed", it is the same as the process of "element 1 fixed" except that the position of fixation and movement of a figure element is reversed. In other words, in the case of "fixing element 2", the ridge line 302A of "shape element 2" is fixed without moving, and the ridge line 301A of "shape element 1" is moved.

다음으로, 치수공차 데이터의 「조정모드」가 「중앙 고정」인 경우의 이동변형의 방법에 대해 설명한다. 도 4는 조정모드가 「중앙 고정」인 경우의 형상데이터의 이동변형방법을 설명하기 위한 도면이다.Next, a description will be given of the movement deformation method when the "adjustment mode" of the dimensional tolerance data is "center fixed". FIG. 4 is a diagram for explaining a method of moving deformation of shape data when the adjustment mode is "center fixed".

오퍼레이터가 형상데이터(62)의 능선(401A(도형요소 1) 및 402A(도형요소 2))에 대해서 치수공차 데이터를 설정할 때에, 「조정모드」로서 「중앙 고정」이 지정되면, 대화조작 처리부(3)는 형상데이터(62)에 대응하는 치수공차 데이터(D12)를 작성한다.When the operator sets the dimension tolerance data for the ridge lines 401A (figure 1) and 402A (figure 2) of the shape data 62, if "center fixed" is specified as the "adjustment mode", the interactive operation processing unit ( 3) creates dimension tolerance data D12 corresponding to the shape data 62.

구체적으로는, 대화조작 처리부(3)는 치수공차 데이터(D12)로서, 형상데이터(62)의 능선(401A)을 CAD 데이터(20)로부터 추출하여 「도형요소 1」로 설정함과 동시에, 능선(402A)을 CAD 데이터(20)로부터 추출하여 「도형요소 2」로 설정한다. 또한, 치수공차 데이터(D12)에 오퍼레이터에 의해서 지정된 「중앙 고정」의 「조정모드」를 포함해 둔다. 대화조작 처리부(3)는 CAD 데이터(20)의 형상데이터(62)에 대응하는 치수공차 데이터(D12)를 치수공차 데이터 보존부(4)에 보존시킨다.Specifically, the interactive operation processing unit 3 extracts the ridge line 401A of the shape data 62 from the CAD data 20 as the dimension tolerance data D12, sets it to "shape element 1," and at the same time, the ridge line 402A is extracted from the CAD data 20 and set as "shape element 2". In addition, the dimension tolerance data D12 includes the "adjustment mode" of "center fixed" specified by the operator. The interactive operation processing section 3 stores the dimension tolerance data D12 corresponding to the shape data 62 of the CAD data 20 in the dimension tolerance data storage section 4.

형상데이터 변형처리부(6)는 치수공차 데이터(D12)의 가공목표치수를 만족하도록 능선(401A, 402A)을 이동변형할 때에, 능선(401A, 402A)의 중간(중심선) 위치를 이동시키지 않고 고정하고, 「도형요소 1」의 능선(401A)과 「도형요소 2」의 능선(402A)을 균등량만큼 이동시킨다. 이 때의 각 이동량(Δ)은 가공목표치수(Y2)와 변형 전의 형상치수(이동변형 전의 능선(401A)과 능선(402A) 사이의 거리)(X2)와의 차이의 절반이 된다. 형상데이터(62)의 능선(401A)은 이동량(Δ)의 이동처리에 의해서 이동 후의 능선(401B)이 되며, 형상데이터(62)의 능선(402A)은 이동량(Δ)의 이동처리에 의해서 이동 후의 능선(402B)이 된다.When the shape data deformation processing unit 6 moves and deforms the ridge lines 401A and 402A to satisfy the machining target dimension of the dimension tolerance data D12, the shape data deformation processing unit 6 is fixed without moving the intermediate (center line) position of the ridge lines 401A and 402A. Then, the ridge line 401A of "shape element 1" and the ridge line 402A of "shape element 2" are moved by an equal amount. At this time, each shift amount Δ is half of the difference between the machining target dimension Y2 and the shape dimension before the deformation (the distance between the ridge line 401A and the ridge line 402A before the movement deformation) X2. The ridge line 401A of the shape data 62 becomes the ridge line 401B after the movement by the movement process of the movement amount Δ, and the ridge line 402A of the shape data 62 moves by the movement process of the movement amount Δ It becomes a subsequent ridge 402B.

다음으로, 치수공차 데이터의 「조정모드」가 「자동」인 경우의 이동변형의 방법에 대해 설명한다. 도 5는 조정모드가 「자동」인 경우의 형상데이터의 이동변 형방법을 설명하기 위한 도면이다.Next, a description will be given of the movement deformation method when the "adjustment mode" of the dimensional tolerance data is "automatic". Fig. 5 is a diagram for explaining a method of transforming movement of shape data when the adjustment mode is "automatic".

이미 치수공차 데이터 보존부(4)에는 능선(502A, 503A)에 대한 치수공차 데이터(D13)가 보존되어 있는 것으로 한다. 오퍼레이터가 형상데이터(63)의 능선(501A(도형요소 1) 및 502A(도형요소 2))에 대해서 치수공차 데이터를 설정할 때에, 「조정모드」로서 「자동」이 지정되면, 대화조작 처리부(3)는 형상데이터(63)에 대응하는 치수공차 데이터(D14)를 작성한다.It is assumed that the dimension tolerance data D13 for the ridge lines 502A and 503A are already stored in the dimension tolerance data storage unit 4. When the operator sets the dimension tolerance data for the ridge lines 501A (figure element 1) and 502A (figure element 2) of the shape data 63, if "automatic" is specified as the "adjustment mode", the interactive operation processing unit 3 ) Creates dimension tolerance data D14 corresponding to the shape data 63.

이 때, 치수공차 데이터(D14)의 「도형요소 1」필드 또는 「도형요소 2」필드 중 어느 한쪽은 치수공차 데이터(D13) 내의 어느 한쪽의 도형요소와 같은 것이 된다. 형상데이터(63)의 경우, 치수공차 데이터(D13)의 도형요소에 능선(502A)과 능선(503A)이 포함되므로, 치수공차 데이터(D14)의 「도형요소 1」 또는 「도형요소 2」 중 어느 한쪽의 필드는 능선(502A)이나 능선(503A)이 된다. 도 5에서는 치수공차 데이터(D14)의 「도형요소 2」의 필드가 치수공차 데이터(D13)의 「도형요소 1」의 필드와 같은 값인 경우를 나타내고 있다.At this time, either the "shape element 1" field or the "shape element 2" field of the dimension tolerance data D14 is the same as any one of the figure elements in the dimension tolerance data D13. In the case of the shape data 63, the ridge line 502A and the ridge line 503A are included in the figure element of the dimension tolerance data D13, so that the shape element 63 or the figure element 2 of the dimension tolerance data D14 is included. Either field becomes a ridge 502A or a ridge 503A. In FIG. 5, the case where the "shape element 2" field of the dimension tolerance data D14 is the same value as the field of the "shape element 1" of the dimension tolerance data D13 is shown.

NC프로그래밍 지원장치(101)에서는 우선 대화조작 처리부(3)가 CAD 데이터(20)의 형상데이터(63)에 대응하는 치수공차 데이터(D14)를 치수공차 데이터 보존부(4)에 보존시킨다. 이 때, 대화조작 처리부(3)는 치수공차 데이터(D14)로서 형상데이터(63)의 능선(501A)을 CAD 데이터(20)로부터 추출하여 「도형요소 1」으로 설정함과 동시에, 능선(502A)을 CAD 데이터(20)로부터 추출하여 「도형요소 2」로 설정한다. 또한, 치수공차 데이터(D14)에 오퍼레이터에 의해서 지정된 「자동」의 「조정모드」를 포함해 둔다. 대화조작 처리부(3)는 CAD 데이터(20)의 형상데이터(63)에 대응하는 치수공차 데이터(D14)를 치수공차 데이터 보존부(4)에 보존시킨다.In the NC programming support device 101, the interactive operation processing section 3 first stores the dimension tolerance data D14 corresponding to the shape data 63 of the CAD data 20 in the dimension tolerance data storage section 4. At this time, the interactive operation processing unit 3 extracts the ridge line 501A of the shape data 63 from the CAD data 20 as the dimension tolerance data D14, sets it to "shape element 1," and at the same time, the ridge line 502A. ) Is extracted from the CAD data 20 and set as "Figure 2". In addition, the dimension tolerance data D14 includes the "automatic" adjustment mode specified by the operator. The interactive operation processing section 3 stores the dimension tolerance data D14 corresponding to the shape data 63 of the CAD data 20 in the dimension tolerance data storage section 4.

형상데이터 변형처리부(6)는 치수공차 데이터(D14)의 가공목표치수를 만족하도록 능선(501A, 502A)을 이동변형할 때에, 일단, 도형요소를 공유하는 다른 치수공차 데이터(여기서는 치수공차 데이터(D13))의 이동변형이 종료할 때까지, 치수공차 데이터(D14)의 이동변형을 보류한다.When the shape data deformation processing unit 6 moves and deforms the ridge lines 501A and 502A to satisfy the machining target dimension of the dimensional tolerance data D14, other dimensional tolerance data (here, dimensional tolerance data) The movement deformation of the dimension tolerance data D14 is suspended until the movement deformation of D13)) is completed.

치수공차 데이터(D13)의 이동변형이 종료하면, 형상데이터 변형처리부(6)는 이동변형이 종료한 치수공차 데이터(D13)의 도형요소를 고정하면서, 치수공차 데이터(D14)의 이동변형을 행한다.When the movement deformation of the dimension tolerance data D13 ends, the shape data deformation processing unit 6 performs the movement deformation of the dimension tolerance data D14 while fixing the figure element of the dimension tolerance data D13 in which the movement deformation is completed. .

도 5에 나타내는 형상데이터(63)의 경우, 치수공차 데이터(D13)가 「요소 2 고정」이므로, 「도형요소 2」의 능선(503A)을 고정하고, 「도형요소 1」의 능선(502A)을 이동시켜 능선(502B)으로 한다(s1). 이것에 의해, 치수공차 데이터(D13)의 「도형요소 1」과 「도형요소 2」의 가공목표치수가 치수공차 데이터(D13)에 대응하는 가공목표치수(Y3)로 된다.In the case of the shape data 63 shown in FIG. 5, since the dimensional tolerance data D13 is "element 2 fixed", the ridge line 503A of the "shape element 2" is fixed and the ridge line 502A of the "shape element 1". Move to make ridgeline 502B (s1). As a result, the machining target dimensions of &quot; shape element 1 &quot; and &quot; shape element 2 &quot; in the dimensional tolerance data D13 become the machining target dimension Y3 corresponding to the dimensional tolerance data D13.

이 후, 치수공차 데이터(D14)가 「자동」이므로, 치수공차 데이터(D13)의 「도형요소 1」과 같은 치수공차 데이터(D14)의 「도형요소 2」(능선(502A))를 고정한다. 그리고, 치수공차 데이터(D14)의 「도형요소 1」(능선(501A))을 이동시켜 능선(501B)으로 한다(s2). 이것에 의해, 치수공차 데이터(D14)의 「도형요소 1」과 「도형요소 2」의 가공목표치수가 치수공차 데이터(D14)에 대응하는 가공목표치수(Y4)로 된다.After that, since the dimension tolerance data D14 is "automatic", "shape element 2" (ridgeline 502A) of the dimension tolerance data D14, such as "shape element 1" of the dimension tolerance data D13, is fixed. . Then, the "shape element 1" (ridgeline 501A) of the dimension tolerance data D14 is moved to the ridgeline 501B (s2). As a result, the machining target dimensions of "shape element 1" and "shape element 2" of the dimensional tolerance data D14 become the machining target dimension Y4 corresponding to the dimensional tolerance data D14.

환언하면, 본 실시형태에서는, 형상데이터 변형처리부(6)는 이동변형이 끝난 측의 도형요소(여기서는 능선(502A))를 기준으로 가공목표치수를 만족하도록 반대 측의 도형요소(능선(501A))를 이동변형한다.In other words, in the present embodiment, the shape data deformation processing unit 6 is the figure element on the opposite side (ridge line 501A) so as to satisfy the machining target dimension with respect to the figure element (here, ridge line 502A) on the side of the movement deformation. Move and transform).

또한, 다른 치수공차 데이터와 도형요소를 공유하지 않는 치수공차 데이터의 조정모드가 「자동」인 경우는, 예를 들면 양측의 도형요소를 균등하게 이동변형하는 「조정모드」 = 「중앙 고정」으로 동등하게 취급한다.When the adjustment mode of the dimension tolerance data that does not share figure elements with other dimension tolerance data is "automatic", for example, "adjustment mode" = "fixed center" to equally move and deform figure elements on both sides. Treat it equally.

다음으로, 도 6 ~ 도 8을 참조하여 실시형태 1에 관한 NC프로그래밍 지원장치의 동작순서를 설명한다. 도 6은 가공대상형상과 치수공차 데이터의 일례를 나타내는 도면이다. 도 6에서는 가공대상형상의 설계자에 의해서 지정되는 5개소의 치수와 치수공차를 일례로서 나타내고 있고, 그 외의 치수에 대해서는 설명의 편의상 생략하고 있다.Next, the operation procedure of the NC programming support apparatus concerning Embodiment 1 is demonstrated with reference to FIGS. Fig. 6 is a diagram showing an example of the object to be processed and the dimension tolerance data. In FIG. 6, five dimensions and the dimension tolerance designated by the designer of a process target shape are shown as an example, and other dimensions are abbreviate | omitted for convenience of description.

도 6의 가공대상형상에는 능선(601A ~ 605A, 607A ~ 609A)이 포함되어 있다. 그리고, 능선(601A)과 능선(603A) 사이의 「기준치수」(거리)는 80.0(㎜)이며, 「상한치수 허용차」는 +0.05이고, 「하한치수 허용차」는 +0.01이다. 또, 능선(602A)과 능선(603A) 사이의 「기준치수」는 40.0이며, 「상한치수 허용차」는 +0.03이고, 「하한치수 허용차」는 -0.01이다.The object to be processed in FIG. 6 includes ridge lines 601A to 605A and 607A to 609A. The "reference dimension" (distance) between the ridge line 601A and the ridge line 603A is 80.0 (mm), the "upper limit tolerance" is +0.05, and the "lower limit dimension tolerance" is +0.01. The "reference dimension" between the ridge line 602A and the ridge line 603A is 40.0, the "upper limit tolerance" is +0.03, and the "lower limit dimension tolerance" is -0.01.

또, 능선(604A)과 능선(605A) 사이의 「기준치수」는 35.0이며, 「상한치수 허용차」는 +0.03이고, 「하한치수 허용차」는 +0.01이다. 또, 능선(607A)과 능선(608A) 사이의 「기준치수」는 25.0이며, 「상한치수 허용차」는 +0.03이고, 「하한치수 허용차」는 +0.01이다. 또, 능선(608A)과 능선(609A) 사이의 「기준치수 」는 70.0이며, 「상한치수 허용차」는 +0.03이고, 「하한치수 허용차」는 -0.03이다.The "reference dimension" between the ridgeline 604A and the ridgeline 605A is 35.0, the "upper limit tolerance" is +0.03, and the "lower limit dimension tolerance" is +0.01. The "reference dimension" between the ridge line 607A and the ridge line 608A is 25.0, the "upper limit tolerance" is +0.03, and the "lower limit dimension tolerance" is +0.01. The "reference dimension" between the ridgeline 608A and the ridgeline 609A is 70.0, the "upper limit tolerance" is +0.03, and the "lower limit tolerance" is -0.03.

도 7은 도 6에 나타낸 치수 중 비대칭인 치수공차를 가지는 치수공차 데이터 테이블의 구성을 나타내는 도면이다. 도 7에서는 도 6에 나타낸 5개소의 비대칭인 치수공차를 가지는 치수에 대해서, 오퍼레이터가 치수공차 데이터를 설정했을 때의 치수공차 데이터 보존부(4)의 내용을 나타내고 있다. 도 7의 치수공차 데이터 테이블(52)은 치수공차 데이터 테이블(51)의 요소에 더하여 치수공차 데이터가 속하는 그룹명의 정보를 포함하고 있다.FIG. 7 is a diagram illustrating a configuration of a dimension tolerance data table having an asymmetric dimension tolerance among the dimensions shown in FIG. 6. In FIG. 7, the content of the dimension tolerance data storage part 4 when the operator set the dimension tolerance data about the dimension which has five asymmetric dimension tolerances shown in FIG. 6 is shown. In addition to the elements of the dimension tolerance data table 51, the dimension tolerance data table 52 of FIG. 7 contains the information of the group name to which the dimension tolerance data belongs.

치수공차 데이터(D21)는 「도형요소 1」이 능선(601A)이고, 「도형요소 2」가 능선(603A)이다. 80㎜의 기준치수가 지정된 치수공차 데이터(D21)의 「조정모드」가 「요소 1 고정」이므로, 형상데이터 변형처리부(6)는 능선(601A)을 이동시키지 않게 한다.In the dimension tolerance data D21, the "shape element 1" is the ridge line 601A, and the "shape element 2" the ridge line 603A. Since the "adjustment mode" of the specified dimension tolerance data D21 of "80 mm" is "element 1 fixed", the shape data deformation processing unit 6 does not move the ridge line 601A.

치수공차 데이터(D22)는 「도형요소 1」이 능선(602A)이며, 「도형요소 2」가 능선(603A)이다. 40㎜의 기준치수가 지정된 치수공차 데이터(D22)는 치수공차 데이터(D21)와 능선(603A)을 공유하고 있고, 조정모드가 「자동」으로 되어 있다. 이 때문에, 형상데이터 변형처리부(6)는 능선(603A)을 이동시키지 않게 한다.In the dimension tolerance data D22, the "shape element 1" is the ridge line 602A, and the "shape element 2" the ridge line 603A. The dimension tolerance data D22 in which the reference dimension of 40 mm is specified shares the dimensional tolerance data D21 with the ridge line 603A, and the adjustment mode is "automatic". For this reason, the shape data deformation | transformation processing part 6 does not move ridgeline 603A.

치수공차 데이터(D23)는 「도형요소 1」이 능선(604A)이며, 「도형요소 2」가 능선(605A)이다. 35㎜의 기준치수가 지정된 치수공차 데이터(D23)는 「조정모드」가 「중앙 고정」이므로, 형상데이터 변형처리부(6)는 도형요소의 중심선에 대해서 각 도형요소가 대칭이 되도록 능선(604A, 605A)을 이동시킨다.In the dimension tolerance data D23, the "shape element 1" is the ridge line 604A, and the "shape element 2" the ridge line 605A. Since the "adjustment mode" is "fixed center" in the dimension tolerance data D23 having a reference dimension of 35 mm, the shape data deformation processing unit 6 has ridge lines 604A and 605A so that each figure element is symmetric with respect to the center line of the figure element. Move).

치수공차 데이터(D24)는 「도형요소 1」이 능선(607A)이며, 「도형요소 2」가 능선(608A)이다. 25㎜의 기준치수가 지정된 치수공차 데이터(D24)는 「조정모드」가 「요소 2 고정」이므로, 형상데이터 변형처리부(6)는 능선(608A)을 이동시키지 않게 한다.In the dimension tolerance data D24, the "shape element 1" is the ridge line 607A, and the "shape element 2" the ridge line 608A. Since the "adjustment mode" is "element 2 fixed", the shape data deformation processing part 6 does not let the ridgeline 608A move.

도 6에 나타낸 기준치수치가 70㎜의 치수공차 데이터(능선(608A, 609A))는 「상한치수 허용차」는 +0.03이고, 「하한치수 허용차」는 -0.03이므로, 형상데이터 변형처리부(6)는 능선(608A, 609A)을 이동시키지 않게 한다.In the dimensional tolerance data (ridge lines 608A, 609A) having a reference dimension shown in FIG. 6, the "upper limit tolerance" is +0.03, and the "lower limit dimension tolerance" is -0.03, so that the shape data deformation processing unit 6 Do not move the ridges 608A and 609A.

치수공차 데이터(D21 ~ D24) 가운데, 치수공차 데이터(D21, D22)는 능선(603A)을 공유하고 있다. 따라서, 치수공차 데이터(D21, D22)는 각각 그룹(G1)의 치수공차 데이터가 된다. 한편, 치수공차 데이터(D23, D24)는 각각 다른 치수공차 데이터와 도형요소를 공유하고 있지 않다. 이 때문에, 치수공차 데이터(D23, D24)는 각각 그룹(G1)과는 다른 그룹(G2, G3)의 치수공차 데이터가 된다.Among the dimension tolerance data D21 to D24, the dimension tolerance data D21 and D22 share the ridge line 603A. Therefore, the dimension tolerance data D21 and D22 become the dimension tolerance data of the group G1, respectively. On the other hand, the dimension tolerance data D23 and D24 do not share different dimension tolerance data and figure elements. For this reason, the dimension tolerance data D23 and D24 become the dimension tolerance data of the group G2 and G3 different from the group G1, respectively.

도 8은 본 발명의 실시형태 1에 관한 NC프로그래밍 지원장치의 동작순서를 나타내는 플로우차트이다. 도 8에서는 형상데이터 변형처리부(6)의 동작순서의 일례를 나타내고 있다.8 is a flowchart showing the operation procedure of the NC programming support apparatus according to Embodiment 1 of the present invention. 8 shows an example of the operation procedure of the shape data deformation processing unit 6.

형상데이터 변형처리부(6)는 우선 치수공차 데이터 보존부(4)에 보존되고 있는 치수공차 데이터 테이블(51) 내의 치수공차 데이터를 도형요소를 공용하는 그룹마다 분류한다(스텝 S1).The shape data deformation processing unit 6 first classifies the dimension tolerance data in the dimension tolerance data table 51 stored in the dimension tolerance data storage unit 4 for each group sharing the figure element (step S1).

다음으로, 형상데이터 변형처리부(6)는 가공목표치수 산출부(5)의 계산결과(가공목표치수)와 형상데이터 보존부(2)에 보존된 형상데이터를 이용하여, 분류한 그룹마다 각 도형요소의 이동량을 산출해 간다. 형상데이터 변형처리부(6)는 우선 도형요소의 이동량을 산출하고 있지 않은 미처리의 그룹이 있는지 여부를 확인한다(스텝 S2). 도형요소의 이동량을 산출하고 있지 않은 미처리의 그룹이 있는 경우(스텝 S2, 예), 형상데이터 변형처리부(6)는 미처리의 그룹에 대해서 도형요소의 이동량을 산출하여 형상데이터를 변형(변형 계산)시킨다(스텝 S3).Next, the shape data deformation processing unit 6 uses the calculation result (machining target dimension) of the machining target size calculation unit 5 and the shape data stored in the shape data storage unit 2 to form each figure for each group classified. The amount of movement of the element is calculated. The shape data deformation processing unit 6 first checks whether there is an unprocessed group for which the movement amount of the figure element is not calculated (step S2). If there is an unprocessed group that does not calculate the movement amount of the figure element (step S2, YES), the shape data deformation processing unit 6 deforms the shape data by calculating the movement amount of the figure element for the unprocessed group (deformation calculation). (Step S3).

형상데이터 변형처리부(6)는 미처리의 그룹이 없어질 때까지 그룹마다 변형처리를 반복한다(스텝 S2 ~ S3). 도형요소의 이동량을 산출하고 있지 않은 미처리의 그룹이 없어지면(스텝 S2, 아니오), 형상데이터 변형처리부(6)는 도형요소의 변형처리를 종료한다.The shape data deformation processing unit 6 repeats the deformation processing for each group until the unprocessed group disappears (steps S2 to S3). If there is no unprocessed group for which the movement amount of the figure element has not been calculated (step S2, NO), the shape data deformation processing unit 6 ends the deformation process of the figure element.

여기서, 스텝 S3의 처리(그룹마다 도형요소의 변형처리)를 상세하게 설명한다. 도 9는 그룹마다 도형요소의 변형처리순서를 나타내는 플로우차트이다. 도 9에서는 1개의 그룹에 대해서 형상데이터 변형처리부(6)가 도형요소의 변형처리를 행하는 경우의 처리 순서를 나타내고 있다.Here, the processing (deformation processing of figure elements for each group) in step S3 will be described in detail. 9 is a flowchart showing the deformation processing procedure of figure elements for each group. In FIG. 9, the process sequence at the time of shape data deformation processing part 6 deforming a figure element with respect to one group is shown.

형상데이터 변형처리부(6)는 처리대상의 그룹에 속하는 치수공차 데이터가 단지 1개이고, 또한 치수공차 데이터의 「조정모드」가 「자동」인지 여부를 판단한다(스텝 S10).The shape data deformation processing unit 6 determines whether there is only one dimension tolerance data belonging to the group to be processed, and whether the "adjustment mode" of the dimension tolerance data is "automatic" (step S10).

그룹에 속하는 치수공차 데이터가 단지 1개이고, 또한 치수공차 데이터의 「조정모드」 = 「자동」인 경우(스텝 S10, 예), 형상데이터 변형처리부(6)는 「조정모드」가 「중앙 고정」인 경우와 동일하게 도형요소의 변형처리(디폴트)를 행하고, 도형요소의 변형처리를 종료한다(스텝 S20). 이 후, 형상데이터 변형처리부(6) 는 다음의 그룹의 도형요소의 변형처리가 있으면, 도 8의 플로우차트로 나타낸 스텝 S2, S3의 처리를 반복한다(리턴).When there is only one dimension tolerance data belonging to the group and "adjustment mode" = "automatic" of the dimension tolerance data (step S10, YES), the shape data deformation processing unit 6 causes the "adjustment mode" to "center fixed". In the same manner as in, the deformation process (default) of the figure element is performed, and the deformation process of the figure element is finished (step S20). Thereafter, the shape data deformation processing unit 6 repeats the processing of steps S2 and S3 shown in the flowchart of FIG. 8 if there is deformation processing of the next group of figure elements (return).

그룹에 속하는 치수공차 데이터가 복수인 경우나, 「조정모드」 = 「자동」이 아닌 치수공차 데이터가 그룹에 포함되어 있는 경우(스텝 S10, 아니오), 형상데이터 변형처리부(6)는 처리대상의 그룹에 「조정모드」 = 「자동」이 아닌 치수공차 데이터가 복수 개 포함되어 있는지 여부를 판단한다(스텝 S30).When there is a plurality of dimension tolerance data belonging to the group, or when the dimension tolerance data other than "adjustment mode" = "automatic" is included in the group (step S10, NO), the shape data deformation processing unit 6 It is determined whether the group contains a plurality of dimension tolerance data other than "adjustment mode" = "automatic" (step S30).

처리대상의 그룹에 「조정모드」 = 「자동」 이외의 치수공차 데이터가 복수 개 포함되어 있는 경우(스텝 S30, 예), 형상데이터 변형처리부(6)는 도형요소의 변형처리 불능으로서 에러 종료한다. 또, 형상데이터 변형처리부(6)는 처리대상의 그룹에 「조정모드」 = 「자동」인 치수공차 데이터가 복수 개 포함되어 있는 경우에도 도형요소의 변형처리 불능으로서 에러 종료한다.When a plurality of dimension tolerance data other than "Adjustment mode" = "Automatic" is included in the group to be processed (step S30, Yes), the shape data deformation processing unit 6 ends the error as the deformation processing of the figure element is impossible. . In addition, the shape data deformation processing unit 6 ends the error as the deformation processing of the figure element is impossible even when a plurality of dimension tolerance data of "adjustment mode" = "automatic" is included in the group to be processed.

처리대상의 그룹에 「조정모드」 = 「자동」 이외의 치수공차 데이터가 1개만 포함되어 있는 경우(스텝 S30, 아니오), 형상데이터 변형처리부(6)는 미처리의 치수공차 데이터가 없어질 때까지 각각의 치수공차 데이터의 처리를 반복한다(스텝 S40 ~ S140).If only one dimension tolerance data other than "Adjustment mode" = "Automatic" is included in the group to be processed (step S30, NO), the shape data deformation processing unit 6 until the unprocessed dimension tolerance data disappears. The processing of the respective dimension tolerance data is repeated (steps S40 to S140).

구체적으로는, 형상데이터 변형처리부(6)는 우선 미처리의 치수공차 데이터가 있는지 여부를 확인한다(스텝 S40). 미처리의 치수공차 데이터가 있는 경우(스텝 S40, 예), 형상데이터 변형처리부(6)는 미처리의 치수공차 데이터 중 어느 한쪽을 선택한다(스텝 S50).Specifically, the shape data deformation processing unit 6 first checks whether there is unprocessed dimensional tolerance data (step S40). When there is unprocessed dimensional tolerance data (step S40, YES), the shape data deformation processing unit 6 selects any one of unprocessed dimensional tolerance data (step S50).

그리고, 형상데이터 변형처리부(6)는 선택한 치수공차 데이터의 「조정모드 」가 「요소 1 고정」인지 여부를 판단한다(스텝 S60). 치수공차 데이터의 「조정모드」가 「요소 1 고정」인 경우(스텝 S60, 예), 형상데이터 변형처리부(6)는 「도형요소 1」을 고정함과 동시에 「도형요소 2」를 이동시켜, 「도형요소 1」과 「도형요소 2」의 위치를 확정시킨다(스텝 S70).The shape data deformation processing unit 6 then determines whether the "adjustment mode" of the selected dimensional tolerance data is "element 1 fixed" (step S60). When the "adjustment mode" of the dimension tolerance data is "element 1 fixed" (step S60, YES), the shape data deformation processing unit 6 fixes the "element 1" and moves the "element 2", The positions of "shape element 1" and "shape element 2" are determined (step S70).

치수공차 데이터의 「조정모드」가 「요소 1 고정」이 아닌 경우(스텝 S60, 아니오), 형상데이터 변형처리부(6)는 선택한 치수공차 데이터의 「조정모드」가 「요소 2 고정」인지 여부를 판단한다(스텝 S80). 치수공차 데이터의 「조정모드」가 「요소 2 고정」인 경우(스텝 S80, 예), 형상데이터 변형처리부(6)는 「도형요소 2」를 고정함과 동시에 「도형요소 1」을 이동시켜, 「도형요소 1」과 「도형요소 2」의 위치를 확정시킨다(스텝 S90).If the "adjustment mode" of the dimensional tolerance data is not "element 1 fixed" (step S60, NO), the shape data deformation processing unit 6 determines whether the "adjustment mode" of the selected dimensional tolerance data is "element 2 fixed". It judges (step S80). When the "adjustment mode" of the dimensional tolerance data is "element 2 fixed" (step S80, YES), the shape data deformation processing unit 6 moves "shape element 1" while fixing "shape element 2". The positions of "shape element 1" and "shape element 2" are determined (step S90).

치수공차 데이터의 「조정모드」가 「요소 2 고정」이 아닌 경우(스텝 S80, 아니오), 형상데이터 변형처리부(6)는 선택한 치수공차 데이터의 「조정모드」가 「중앙 고정」인지 여부를 판단한다(스텝 S100). 치수공차 데이터의 「조정모드」가 「중앙 고정」인 경우(스텝 S100, 예), 형상데이터 변형처리부(6)는 「도형요소 1」과 「도형요소 2」의 중앙부를 고정함과 동시에 「도형요소 1」과 「도형요소 2」를 균등하게 이동(이동변형)시켜서, 「도형요소 1」과 「도형요소 2」의 위치를 확정시킨다(스텝 S110).If the "adjustment mode" of the dimensional tolerance data is not "element 2 fixed" (step S80, NO), the shape data deformation processing unit 6 determines whether the "adjustment mode" of the selected dimensional tolerance data is "center fixed". (Step S100). When the "adjustment mode" of the dimensional tolerance data is "center fixed" (step S100, YES), the shape data deformation processing unit 6 fixes the center portions of the "shape element 1" and "shape element 2" and at the same time The element 1 "and the" shape element 2 "are moved equally (moving deformation), and the position of" shape element 1 "and the" shape element 2 "is determined (step S110).

치수공차 데이터의 「조정모드」가 「중앙 고정」이 아닌 경우(스텝 S100, 아니오), 형상데이터 변형처리부(6)는 선택한 치수공차 데이터의 「도형요소 1」과 「도형요소 2」 중 어느 한쪽의 위치가 이미 확정이 마무리된 상태인지 여부를 판 단한다(스텝 S120). 「도형요소 1」과 「도형요소 2」 중 어느 한쪽의 위치가 이미 확정이 마무리된 상태인 경우(스텝 S120, 예), 형상데이터 변형처리부(6)는 「조정모드」가 「자동」이므로, 「도형요소 1」과 「도형요소 2」 중 위치 확정하고 있지 않은 쪽의 도형요소(다른 쪽의 도형요소)를 이동시켜, 「도형요소 1」과 「도형요소 2」의 위치를 확정시킨다(스텝 S130). 이 때, 위치가 이미 확정이 마무리된 도형요소는 위치를 고정해 두고 이동시키지 않는다.If the "adjustment mode" of the dimension tolerance data is not "center fixed" (step S100, NO), the shape data deformation processing unit 6 selects either one of "shape element 1" and "shape element 2" of the selected dimension tolerance data. It is judged whether or not the position of has already been confirmed (step S120). When the position of either of the "shape element 1" and "shape element 2" has already been determined (step S120, Yes), the shape data deformation processing unit 6 has the "adjustment mode" as "automatic", The position of the shape element 1 and the shape element 2 is determined by moving the figure element (the other figure element) that is not positioned among the figure element 1 and the figure 2. S130). At this time, the figure element whose position has already been determined is fixed and is not moved.

「도형요소 1」과 「도형요소 2」 중 양쪽 모두 위치가 확정하고 있지 않은 경우(스텝 S120, 아니오), 형상데이터 변형처리부(6)는 다음의 미처리의 치수공차 데이터를 선택한다(스텝 S140). 환언하면, 「도형요소 1」과 「도형요소 2」 중 어느 쪽의 도형요소의 위치도 미확정인 경우는 이동처리를 일단 보류하여 다른 미처리의 치수공차 데이터를 먼저 처리한다. 그리고, 형상데이터 변형처리부(6)는 선택한 치수공차 데이터에 대해서 스텝 S60 ~ S140 가운데, 이동처리의 보류에 수반하여 선택한 치수공차 데이터(다음의 미처리의 치수공차 데이터)에 따른 처리를 행한다.If the position is not determined in both of the "shape element 1" and "shape element 2" (step S120, NO), the shape data deformation processing part 6 selects the next unprocessed dimension tolerance data (step S140). . In other words, if the position of any of the figure elements 1 and 2 is undetermined, the movement process is once held, and the other unprocessed dimensional tolerance data is processed first. And the shape data deformation | transformation processing part 6 performs the process according to the selected dimension tolerance data (next unprocessed dimension tolerance data) with the suspension of a movement process among steps S60-S140 about the selected dimension tolerance data.

「도형요소 1」과 「도형요소 2」의 위치를 확정시킨 후(스텝 S70, S90, S110, S130의 처리 후), 형상데이터 변형처리부(6)는 미처리의 치수공차 데이터가 있는지 여부를 확인한다(스텝 S40).After the positions of the "shape element 1" and "shape element 2" are determined (after the processing of steps S70, S90, S110, and S130), the shape data deformation processing unit 6 checks whether there is unprocessed dimensional tolerance data. (Step S40).

형상데이터 변형처리부(6)는 미처리의 치수공차 데이터가 없어질 때까지, 스텝 S40 ~ S140의 처리를 반복한다. 미처리의 치수공차 데이터가 없어지면(스텝 S40, 아니오), 형상데이터 변형처리부(6)는 처리대상의 그룹에 포함되어 있는 도형 요소의 변형처리를 종료한다.The shape data deformation processing unit 6 repeats the processing of steps S40 to S140 until the unprocessed dimensional tolerance data disappears. If the unprocessed dimensional tolerance data is lost (step S40, NO), the shape data deformation processing unit 6 ends the deformation processing of the figure element included in the group to be processed.

형상데이터 변형처리부(6)에 의한 형상데이터의 변형처리가 종료하면, NC가공 프로그램 생성 처리부(7)는 변형 후의 형상데이터의 각 도형요소의 형상과 위치에 근거하여 NC가공 프로그램을 생성하여 외부 출력한다.When the deformation processing of the shape data by the shape data deformation processing unit 6 is completed, the NC processing program generation processing unit 7 generates an NC processing program based on the shape and position of each figure element of the shape data after deformation and outputs the external output. do.

이것에 의해, 오퍼레이터가 치수공차를 반영한 가공대상형상의 변형결과를 용이하게 예측할 수 있으므로, 설계자의 의도(치수공차)를 반영한 적절한 NC가공 프로그램을 용이하게 효율 좋게 작성하는 것이 가능하게 된다. 또, 형상의 변형에 관한 개소에 대해서만 치수공차 데이터를 설정하면 되기 때문에, 적은 시간과 노력으로 소망의 NC가공 프로그램을 용이하게 작성하는 것이 가능하게 된다.As a result, since the operator can easily predict the deformation result of the object to be processed that reflects the dimensional tolerance, it is possible to easily and efficiently create an appropriate NC machining program that reflects the intention (dimension tolerance) of the designer. In addition, since the dimension tolerance data need only be set at the point regarding the deformation of the shape, it is possible to easily create a desired NC machining program with little time and effort.

또한, 스텝 S20에서는 그룹 내의 치수공차 데이터가 단지 1개(「조정모드」가 「자동」)인 경우에, 「조정모드」가 「중앙 고정」인 경우와 동일하게 도형요소의 변형처리를 행했지만, 다른 방법에 의해서 도형요소의 변형처리를 행해도 된다. 예를 들면, 「조정모드」가 「요소 1 고정」이나 「요소 2 고정」인 경우와 동일하게 도형요소의 변형처리를 행해도 된다.In addition, in step S20, when there is only one dimension tolerance data in the group ("adjustment mode" is "automatic"), deformation processing of the figure elements is performed in the same manner as in the case where the "adjustment mode" is "fixed center". Alternatively, the figure element may be deformed by another method. For example, deformation processing of figure elements may be performed similarly to the case where "adjustment mode" is "element 1 fixed" or "element 2 fixed".

또, 가공목표치수 산출부(5)에 의한 가공목표치수의 산출방법은 식 (1)을 이용한 산출방법에 한정되지 않는다. 예를 들면, 상한치수 허용차와 하한치수 허용차를 소정의 비율(예를 들면 3 : 1 등)로 곱한 값을 이용하여 가공목표치수를 산출해도 된다. 예를 들면, 상한치수 허용차와 하한치수 허용차를 n : m으로 곱한 값을 이용하는 경우, 가공목표치수 산출부(5)는 식 (2)에 근거하여 가공목표치수를 산출한다.In addition, the calculation method of the processing target dimension by the processing target dimension calculation part 5 is not limited to the calculation method using Formula (1). For example, the machining target dimension may be calculated using a value obtained by multiplying the upper limit tolerance and the lower limit tolerance by a predetermined ratio (for example, 3: 1, etc.). For example, when using the value obtained by multiplying the upper limit tolerance and the lower limit tolerance by n: m, the machining target dimension calculating unit 5 calculates the machining target dimension based on equation (2).

가공목표치수 = 기준치수 + ((m × 상한치수 허용차) + (n × 하한치수 허용차)) / (n + m) … (2)Machining target dimension = reference dimension + ((m × upper limit tolerance) + (n × lower limit tolerance)) / (n + m). (2)

또한, 본 실시형태에서는 형상데이터가 2차원인 경우를 일례로서 도형요소의 변형처리를 설명했지만, NC프로그래밍 지원장치(101)는 3차원의 형상데이터에 대해서 도형요소의 변형처리를 실시해도 된다. 이 경우도 형상데이터가 2차원인 경우와 동일한 구성, 동일한 처리 순서에 의해서 도형요소의 변형처리를 행할 수 있다.In addition, in this embodiment, the deformation process of a figure element was demonstrated as an example using the case where shape data is two-dimensional, However, NC programming support apparatus 101 may perform the deformation process of a figure element with respect to three-dimensional shape data. Also in this case, the deformation processing of the figure element can be performed by the same configuration and the same processing procedure as when the shape data is two-dimensional.

또, 「조정모드」의 값(종별)은 「요소 1 고정」, 「요소 2 고정」, 「중앙 고정」, 「자동」의 4 종류로 한정되는 것은 아니다. 예를 들면, 가공목표치수와 형상치수와의 차이를 양측의 도형요소로 배분하는 비율을 지정하는 데이터 형식이라도 된다. 이 경우에는 양측의 도형요소를 예를 들면 50% : 50%로 배분하는 것은 「중앙 고정」과 등가인 의미를 가지게 된다.The value (type) of the "adjustment mode" is not limited to four types of "element 1 fixed", "element 2 fixed", "center fixed", and "automatic". For example, it may be a data format for specifying the ratio of distributing the difference between the machining target dimension and the shape dimension to the figure elements on both sides. In this case, distributing the figure elements on both sides by, for example, 50%: 50% has the meaning equivalent to "center fixed".

또한, 형상데이터 보존부(2)에 기억시켜 두는 가공대상물의 형상데이터는 CAD 데이터(20)의 형상데이터에 한정하지 않고, 다른 데이터라도 된다. 또, 치수공차 데이터 가운데, 「조정모드」 이외의 항목은 CAD 데이터(20)로부터 추출하는 경우에 한정하지 않고, 필요에 따라서 오퍼레이터가 보충해도 된다.The shape data of the object to be stored in the shape data storage section 2 is not limited to the shape data of the CAD data 20 but may be other data. In addition, among the dimension tolerance data, items other than the "adjustment mode" are not limited to the case of extracting from the CAD data 20, and an operator may supplement them as needed.

또, 실시형태 1에 관한 NC프로그래밍 지원장치(101)를 공작기계의 수치제어장치의 내부에 조립함으로써, NC프로그래밍 지원장치(101)가 생성한 NC가공 프로그램을 공작기계로 직접 실행시키는 것이 가능하게 된다.In addition, by assembling the NC programming support apparatus 101 according to the first embodiment into the numerical control apparatus of the machine tool, the NC machining program generated by the NC programming support apparatus 101 can be directly executed by the machine tool. do.

이와 같이 실시형태 1에 의하면, 가공목표치수가 형상데이터의 치수와는 다른 부위(상하의 치수허용차가 한쪽으로 치우친 비대칭인 끼워맞춤이나 치수공차가 지정되는 형상데이터)를 가지는 가공대상물의 NC가공 프로그램을 작성할 때에, 끼워맞춤이나 치수공차에 관한 도형요소에 대해서만 치수공차 데이터(조정모드등)를 설정하는 것만으로 소망의 출력결과(NC가공 프로그램)를 얻을 수 있다. 이것에 의해, 도형요소의 이동변형에 관련되지 않은 개소에 대해서는 치수공차 데이터의 설정을 생략할 수 있어, NC가공 프로그램을 작성할 때의 시간과 노력을 억제하는 것이 가능하게 된다. 따라서, 치수공차에 나타낸 설계의도를 반영한 NC가공 프로그램을 용이하게 작성하는 것이 가능하게 된다.Thus, according to Embodiment 1, NC machining program of a to-be-processed object which has a site | part which differs from the dimension of a shape data (shape data in which asymmetrical fitting and dimension tolerance which the upper and lower dimension tolerances are biased to one side) is created is created. At this time, the desired output result (NC machining program) can be obtained only by setting the dimension tolerance data (adjustment mode, etc.) only for the figure elements related to the fitting and the dimension tolerance. As a result, the setting of the dimensional tolerance data can be omitted for the part not related to the movement deformation of the figure element, and it is possible to reduce the time and effort when creating the NC machining program. Therefore, it becomes possible to easily create an NC machining program that reflects the design intention shown in the dimension tolerance.

또, 도형요소가 복수의 치수공차 데이터에 의해서 공유되고 있는 경우에는, 이 공유되고 있는 도형요소가 도형요소를 공유하고 있는 치수공차 데이터의 각각의 가공목표치수에 대응하는 치수가 되도록 도형요소의 이동위치를 설정하므로, 도형요소가 복수의 치수공차 데이터에 의해서 공유되고 있는 경우라도 용이하게 NC가공 프로그램을 작성하는 것이 가능하게 된다.In addition, when a figure element is shared by a plurality of dimension tolerance data, the figure element is moved so that this shared figure element becomes a dimension corresponding to each machining target dimension of the dimension tolerance data sharing the figure element. Since the position is set, it is possible to easily create an NC machining program even when a figure element is shared by a plurality of dimensional tolerance data.

실시형태 2.Embodiment 2 Fig.

다음으로, 도 10 ~ 도 13을 참조하여 본 발명의 실시형태 2에 대해 설명한다. 실시형태 2에서는 복수의 도형요소를 도형요소군으로서 일체화하고, 도형요소군의 대표 기준점을 이동시키는 것에 의해서 가공대상물의 NC가공 프로그램을 작성한다.Next, Embodiment 2 of this invention is described with reference to FIGS. 10-13. In Embodiment 2, the NC machining program of a to-be-processed object is created by integrating a some figure element as a figure element group, and moving the representative reference point of a figure element group.

도 10은 본 발명의 실시형태 2에 관한 NC프로그래밍 지원장치의 구성을 나타내는 블럭도면이다. 도 10의 각 구성요소 가운데, 도 1에 나타내는 실시형태 1의 NC프로그래밍 지원장치(101)와 동일 기능을 달성하는 구성요소에 대해서는 동일 번 호를 부여하고 있고, 중복하는 설명은 생략한다.Fig. 10 is a block diagram showing the structure of the NC programming support apparatus according to Embodiment 2 of the present invention. Among the components of FIG. 10, the same numerals are assigned to components that achieve the same functions as the NC programming support apparatus 101 of the first embodiment shown in FIG. 1, and overlapping descriptions are omitted.

NC프로그래밍 지원장치(102)는 NC프로그래밍 지원장치(101)의 기능(CAD 데이터 입력부(1), 형상데이터 보존부(2), 대화조작 처리부(3), 치수공차 데이터 보존부(4), 가공목표치수 산출부(5), 형상데이터 변형처리부(6), NC가공 프로그램 생성 처리부(7), 표시부(8), 지시 입력부(9))에 더하여, 점도형 데이터 보존부(10)를 가지고 있다. 점도형 데이터 보존부(10)는 형상데이터의 도형요소군에 관한 정보(후술의 점도형 데이터 테이블(53))를 기억하는 메모리 등의 기억수단이다.The NC programming support device 102 performs functions of the NC programming support device 101 (CAD data input unit 1, shape data storage unit 2, interactive operation processing unit 3, dimensional tolerance data storage unit 4, processing In addition to the target dimension calculation unit 5, the shape data deformation processing unit 6, the NC processing program generation processing unit 7, the display unit 8, and the instruction input unit 9, a viscosity data storage unit 10 is provided. . The viscous data storage unit 10 is a storage means such as a memory for storing information on the figure element group of the shape data (viscosity data table 53 described later).

NC프로그래밍 지원장치(102)의 대화조작 처리부(3)는 치수공차의 설정처리에 더하여, 오퍼레이터가 지정한 형상데이터의 복수의 도형요소를 도형요소군으로서 일체화한다. 그리고, 일체화한 도형요소군의 대표 기준점의 위치에 점도형을 작성하고, 점도형과 도형요소군을 관련지어 점도형 데이터를 점도형 데이터 테이블로서 점도형 데이터 보존부(10)에 보존한다. 또, 대화조작 처리부(3)는 치수공차를 설정 조작시킬 때에, 가공대상형상을 나타내는 도형요소에 더하여, 점도형도 설정 대상으로 하여 치수공차를 설정한다.In addition to the setting processing of the dimension tolerance, the interactive operation processing unit 3 of the NC programming support device 102 integrates a plurality of figure elements of shape data designated by the operator as a figure element group. Then, a viscosity type is created at the position of the representative reference point of the integrated figure element group, and the viscosity type data is stored in the viscosity type data storage section 10 as the viscosity type data table by associating the viscosity type and the figure element group. When the dimensional tolerance is set and operated, the interactive operation processing unit 3 sets the dimensional tolerance as the viscosity degree setting target, in addition to the figure element representing the shape to be processed.

또, NC프로그래밍 지원장치(102)의 형상데이터 변형처리부(6)는 가공목표치수를 만족하도록 치수공차 데이터에 관계하는 도형요소를 이동변형시킬 때, 이동변형의 대상이 점도형인 경우는 점도형 데이터 보존부(10)에 보존되어 있는 점도형 데이터를 읽어내어 당해 점도형 데이터에 관련된 도형요소군을 점도형의 이동에 연동하여 이동변형시킨다. 환언하면, 본 실시형태에서는 복수로 이루어진 형상데이터를 1개의 도형요소군을 나타내는 점데이터로서 취급한다. 그리고, 점데이터로서 취 급하는 도형요소군 내에서는 각 도형요소의 치수공차를 치수공차 데이터 0로 하고, 점데이터의 이동과 동일한 만큼 도형요소를 상대이동시킨다.In addition, when the shape data deformation processing unit 6 of the NC programming support device 102 moves and deforms the figure element related to the dimensional tolerance data so as to satisfy the machining target dimension, the viscosity data is obtained when the object of the moving deformation is a viscosity type. The viscosity type data stored in the storage unit 10 is read out, and the group of figure elements related to the viscosity type data is shifted in conjunction with the movement of the viscosity type. In other words, in this embodiment, shape data consisting of a plurality is treated as point data representing one figure element group. In the figure element group treated as point data, the dimension tolerance of each figure element is set to the dimension tolerance data 0, and the figure elements are relatively moved as much as the movement of the point data.

여기서, 점도형 데이터 보존부(10)에 보존되는 점도형 데이터 테이블의 구성에 대해 설명한다. 도 11은 점도형 데이터 테이블의 구성의 일례를 나타내는 도면이다. 도 11에서는 각 행이 1개의 점도형 데이터를 나타내고 있다.Here, the structure of the viscosity data table stored in the viscosity data storage part 10 is demonstrated. It is a figure which shows an example of the structure of a viscosity data table. In FIG. 11, each row shows one viscosity type data.

점도형 데이터 테이블(53)은 점도형 데이터를 식별하는 정보(「ID」)와 「X좌표」와, 「Y좌표」와, 점도형 데이터에 관련하고 있는 도형요소의 리스트(「도형요소 리스트」)가 각각 대응된 정보 테이블이다.The viscosity data table 53 includes information ("ID") identifying the viscosity data, "X coordinate", "Y coordinate", and a list of figure elements associated with the viscosity data ("shape element list"). Are the corresponding information tables.

「ID」의 필드는 각 점도형을 일의적으로 식별 가능한 번호이며, 가공대상형상을 나타내는 도형요소의 ID와는 겹치지 않도록 번호를 붙인다. 「X좌표」의 필드 및 「Y좌표」의 필드는 점도형에 관련된 도형요소군의 대표 기준점의 위치(점도형의 좌표)를 나타내고 있다. 「도형요소 리스트」의 필드는 점도형에 관련된 도형요소군 내의 각 도형 데이터(도형요소)의 ID의 리스트를 나타내고 있다.A field of "ID" is a number which can uniquely identify each viscosity type, and numbers it so that it may not overlap with ID of the figure element which shows the process target shape. The field of the "X coordinate" and the "Y coordinate" field indicate the position (coordinate of the viscosity type) of the representative reference point of the figure element group related to the viscosity type. A field of the "shape element list" shows a list of IDs of the figure data (shape elements) in the figure element group related to the viscosity form.

다음으로, 도 12, 13을 참조하여 실시형태 2에 관한 NC프로그래밍 지원장치의 동작순서를 설명한다. 도 12는 가공대상형상, 점도형 데이터, 치수공차 데이터의 일례를 나타내는 도면이다. 도 12에서는 설계자가 능선(701A, 702A, 703A)으로 이루어진 폭 15㎜의 홈 형상의 중심과 능선(704A)과의 사이에 치수공차를 지정한 상태를 나타내고 있다(s11).Next, with reference to FIG. 12, 13, the operation procedure of the NC programming support apparatus which concerns on Embodiment 2 is demonstrated. It is a figure which shows an example of a process object shape, a viscosity type data, and a dimension tolerance data. In FIG. 12, the designer has shown the state which specified the dimension tolerance between the center of the groove shape of width 15mm which consists of ridge lines 701A, 702A, and 703A, and the ridge line 704A (s11).

대화조작 처리부(3)는 오퍼레이터로부터의 지시에 근거하여, 홈 형상을 구성하는 도형요소군(능선(701A, 702A, 703A))을 일체화하고, 그 중앙위치를 대표 기준 점으로 한 점도형(801A)을 작성한다(s12).The interactive operation processing unit 3 integrates a group of figure elements (ridge lines 701A, 702A, 703A) constituting the groove shape based on the instruction from the operator, and the viscosity type 801A having its center position as a representative reference point. ) (S12).

대화조작 처리부(3)는 점도형(801A)을 지정한 점도형 데이터를 점도형 데이터 보존부(10)의 점도형 데이터 테이블(53)에 기억시킨다. 점도형 데이터 테이블(53)에 등록하는 점도형 데이터는 도형요소군의 대표 기준점인 점도형(801A), 점도형(801A)의 X좌표와 Y좌표, 「도형요소 리스트」(능선(701A, 702A, 703A)의 ID) 등을 포함하고 있다(s13).The interactive operation processing unit 3 stores the viscosity type data in which the viscosity type 801A is designated in the viscosity type data table 53 of the viscosity type data storage part 10. The viscosity data registered in the viscosity data table 53 includes the viscosity type 801A which is a representative reference point of the figure element group, the X coordinate and the Y coordinate of the viscosity type 801A, and the "shape element list" (ridge lines 701A and 702A). , ID of 703A), and the like (s13).

대화조작 처리부(3)는 홈 형상의 중심(점도형(801A))과 능선(704A)과의 사이의 치수공차 데이터(조정모드등)를 설정하고, 치수공차 데이터 보존부(4)의 치수공차 데이터 테이블(52)에 기억시킨다(s14). 점도형(801A)과 능선(704A)과의 사이의 치수공차 데이터는 점도형(801A)의 X좌표와 Y좌표, CAD 데이터(20) 내의 형상데이터, 오퍼레이터로부터의 지시 등에 기초하여 설정된다.The interactive operation processing section 3 sets the dimension tolerance data (adjustment mode, etc.) between the center of the groove shape (viscosity type 801A) and the ridge line 704A, and the dimension tolerance of the dimension tolerance data storage section 4 The data table 52 is stored (s14). Dimensional tolerance data between the viscous mold 801A and the ridgeline 704A is set based on the X coordinate and the Y coordinate of the viscosity mold 801A, the shape data in the CAD data 20, instructions from the operator, and the like.

본 실시형태에서는, 치수공차 데이터의 설정대상도형(도형요소의 변형처리)에 점도형을 포함하고 있으므로, 형상데이터 변형처리부(6)는 도형요소를 변형처리할 때에 필요에 따라서 점도형(801A)의 위치를 이동시킨다.In the present embodiment, since the viscosity object is included in the set target shape (deformation process of the shape element) of the dimensional tolerance data, the shape data deformation processing part 6 deforms the viscosity type 801A as necessary when deforming the figure element. Move the position of.

도 13은 점도형이 이동될 때의 점도형에 관련된 도형요소군의 이동변형방법을 설명하기 위한 도면이다. 도 13에서는 도 12에 나타낸 점도형(801A)을 이동시켰을 경우의 능선(701A, 702A, 703A)의 이동처리를 나타내고 있다.FIG. 13 is a view for explaining a method of moving deformation of a group of figure elements related to a viscosity type when the viscosity type is moved. In FIG. 13, the movement process of ridgeline 701A, 702A, 703A when the viscosity type 801A shown in FIG. 12 is moved is shown.

도 13에 나타내는 바와 같이, 점도형(801A)이 점도형(801B)의 위치로 이동되면, 이 이동에 연동하여 점도형(801A)에 관련된 능선(701A, 702A, 703A)이 점도형(801A)의 이동량과 동일한 이동량만큼 이동변형된다. 이 때, 능선(701A, 702A, 703A)은 점도형(801A)으로부터 점도형(801B)으로의 이동방향과 동일한 방향으로 이동된다.As shown in FIG. 13, when the viscosity type 801A is moved to the position of the viscosity type 801B, the ridge lines 701A, 702A, and 703A associated with the viscosity type 801A are linked to this movement to form the viscosity type 801A. The movement is deformed by the same amount of movement as. At this time, the ridge lines 701A, 702A, and 703A are moved in the same direction as the moving direction from the viscosity mold 801A to the viscosity mold 801B.

이것에 의해, 형태나 크기는 불변이지만 그 위치가 치수공차의 영향으로 바뀌는 가공대상물(도형요소군)의 부위에 대해서도 오퍼레이터가 치수공차를 반영한 가공대상형상의 변형결과를 용이하게 예측할 수 있다. 이것에 의해, 설계자의 의도를 반영한 적절한 NC가공 프로그램을 용이하게 효율 좋게 작성하는 것이 가능하게 된다. 또, 실시형태 1(NC프로그래밍 지원장치(101))의 경우와 마찬가지로, 변형에 관한 개소에 대해서만 치수공차 데이터를 설정하면 되기 때문에, 적은 시간과 노력으로 소망한 NC가공 프로그램을 작성하는 것이 가능하게 된다.As a result, the operator can easily predict the deformation result of the object to be processed reflecting the dimensional tolerance even for a part of the object to be processed (group of shaped elements) whose shape and size are invariable but whose position changes due to the influence of the dimensional tolerance. This makes it possible to easily and efficiently create an appropriate NC machining program that reflects the intention of the designer. In addition, as in the case of the first embodiment (NC programming support apparatus 101), since the dimension tolerance data need only be set for a part related to deformation, it is possible to create a desired NC machining program with little time and effort. do.

또한, 본 실시형태에서는, 형상데이터가 2차원인 경우를 일례로서 도형요소의 변형처리를 설명했지만, NC프로그래밍 지원장치(102)는 3차원의 형상데이터에 대해서 도형요소의 변형처리를 실시해도 된다. 이 경우도 형상데이터가 2차원의 경우와 동일한 구성, 동일한 처리 순서에 의해서 도형요소의 변형처리를 행할 수 있다.In addition, in this embodiment, the deformation process of a figure element was demonstrated using the case where shape data is two-dimensional as an example, The NC programming support apparatus 102 may perform the deformation process of a figure element with respect to three-dimensional shape data. . Also in this case, the deformation processing of the figure element can be performed by the same configuration and the same processing procedure as those of the shape data.

또, NC프로그래밍 지원장치(102)를 공작기계의 수치제어장치의 내부에 조립함으로써, NC프로그래밍 지원장치(102)가 생성한 NC가공 프로그램을 공작기계로 직접 실행시키는 것이 가능하게 된다.Moreover, by assembling the NC programming support device 102 inside the numerical control device of the machine tool, the NC machining program generated by the NC programming support device 102 can be directly executed by the machine tool.

여기서 공작기계의 구성에 대해 설명한다. 도 14는 공작장치의 구성의 일례를 나타내는 도면이다. 공작장치(공작기계)(201)는 수치제어장치(150)와 가공부(205)를 가지고 있고, 가공부(205)는 수치제어장치(150)로부터의 제어지시에 근 거하여 피가공물(210)을 가공한다.Here, the configuration of the machine tool will be described. It is a figure which shows an example of the structure of a machine tool. The machine tool (machine tool) 201 has a numerical control device 150 and a processing part 205, and the processing part 205 is based on the control instruction from the numerical control device 150 to be processed. Process.

수치제어장치(150)는 NC프로그래밍 지원장치(102)와 제어부(110)를 구비하고 있고, 제어부(110)는 NC프로그래밍 지원장치(102)가 작성한 NC프로그램을 이용하여 가공부(205)를 제어한다. 이것에 의해, 공작장치(201)는 NC프로그래밍 지원장치(102)가 생성한 NC가공 프로그램을 실행하여 피가공물(210)을 가공하는 것이 가능하게 된다. 또한, 수치제어장치(150)에 조립한 NC프로그래밍 지원장치는 NC프로그래밍 지원장치(102)에 한정되지 않고, NC프로그래밍 지원장치(101)라도 된다.Numerical control device 150 includes an NC programming support device 102 and a control unit 110, the control unit 110 controls the processing unit 205 using the NC program created by the NC programming support device 102. do. As a result, the machine tool 201 can execute the NC machining program generated by the NC programming support device 102 to process the workpiece 210. The NC programming support device assembled to the numerical control device 150 is not limited to the NC programming support device 102 but may be the NC programming support device 101.

또, 본 실시형태에서는 점도형(801A)과 능선(704A)과의 사이의 치수공차 데이터에 근거하여, 점도형(801A)을 이동시키는 경우에 대해 설명했지만, 점도형과 점도형 사이로 설정된 치수공차 데이터에 근거하여, 점도형을 이동시켜도 된다. 또, 점도형(801A)의 위치를 이동시키는 경우에 한정하지 않고, 능선 등의 도형데이터의 위치를 이동시켜도 된다. 또, 도형요소군의 대표 기준점의 위치는 도형요소군의 중앙위치에 한정하지 않고 어느 쪽의 위치라도 된다. 또, 도형요소군의 기준 위치는 점도형 이외의 선분이나 면이라도 된다.In this embodiment, the case where the viscosity mold 801A is moved based on the dimension tolerance data between the viscosity mold 801A and the ridgeline 704A has been described, but the dimension tolerance set between the viscosity mold and the viscosity mold The viscosity type may be moved based on the data. In addition, the position of figure data, such as a ridgeline, may be moved, not limited to moving the position of the viscosity type 801A. The position of the representative reference point of the figure element group may be any position, not limited to the center position of the figure element group. The reference position of the figure element group may be line segments or faces other than the viscosity type.

이와 같이 실시형태 2에 의하면, 국소적으로 본 형태나 크기는 원래의 형상데이터의 대응하는 부위(도형요소군)와 같지만, 비대칭인 치수공차가 지정된 것에 의해서, 가공대상물 전체에 대한 부위의 위치가 다른 위치에 나타나는 가공대상물의 NC가공 프로그램을 작성할 때에, 부위를 구성하는 각각의 도형요소에 대해서 치수공차 데이터를 설정하지 않고, 부위를 대표하는 점도형에 대해서 치수공차 데이터(조정모드)를 설정하는 것만으로 소망한 출력 결과(NC가공 프로그램)를 얻을 수 있다.As described above, according to the second embodiment, the locally viewed shape and size are the same as the corresponding portions (figure element groups) of the original shape data. When creating an NC machining program for a workpiece to appear at different positions, the dimension tolerance data (adjustment mode) is set for the viscosity type representing the site without setting the dimension tolerance data for each figure element constituting the site. Only desired output result (NC machining program) can be obtained.

이것에 의해, 적은 수의 치수공차 데이터를 설정하는 것만으로 NC가공 프로그램을 얻을 수 있어, NC가공 프로그램을 작성할 때의 시간과 노력을 억제하는 것이 가능하게 된다. 따라서, 치수공차에 나타내진 설계의도를 반영한 NC가공 프로그램을 용이하게 작성하는 것이 가능하게 된다.As a result, the NC machining program can be obtained only by setting a small number of dimensional tolerance data, and the time and effort in creating the NC machining program can be reduced. Therefore, it becomes possible to easily create an NC machining program that reflects the design intention shown in the dimension tolerance.

또한, 상기의 실시형태 1, 2에서 설명한 NC가공 프로그램의 작성처리는 미리 준비해 둔 프로그램을 퍼스널 컴퓨터 등의 컴퓨터에서 실행함으로써 행해도 된다.The NC processing program creation process described in the first and second embodiments described above may be performed by executing a program prepared in advance on a computer such as a personal computer.

이상과 같이, 본 발명에 관한 프로그램 작성장치, 수치제어장치 및 프로그램 작성방법은 공작기계를 수치제어하기 위한 NC가공 프로그램의 작성에 적절하다.As described above, the program preparation device, the numerical control device and the program creation method according to the present invention are suitable for the preparation of an NC machining program for numerically controlling a machine tool.

Claims (8)

가공대상물의 형상데이터와 상기 형상데이터의 치수공차 데이터에 근거하여, 상기 형상데이터에 상기 치수공차 데이터를 반영한 NC가공 프로그램을 작성하는 프로그램 작성장치에 있어서,In the program preparation device for creating an NC machining program reflecting the dimensional tolerance data in the shape data based on the shape data of the object to be processed and the dimensional tolerance data of the shape data, 상기 형상데이터와 상기 치수공차 데이터에 근거하여, 상기 가공대상물의 가공목표치수를 산출하는 가공목표치수 산출부와,A machining target dimension calculation unit configured to calculate a machining target dimension of the workpiece based on the shape data and the dimension tolerance data; 상기 가공목표치수 산출부가 산출한 가공목표치수와 상기 형상데이터에 근거하여, 상기 형상데이터에 포함되는 도형요소간의 치수가 상기 가공목표치수에 대응하는 치수가 되도록 상기 도형요소의 이동위치를 설정하는 형상데이터 변형처리부와,A shape for setting the movement position of the figure element such that the dimension between the figure element included in the shape data is a dimension corresponding to the machining target dimension based on the machining target dimension calculated by the machining target dimension calculation unit; A data transformation processing unit, 상기 형상데이터 및 상기 형상데이터 변형처리부가 설정한 각 도형요소의 이동위치를 이용하여 NC가공 프로그램을 작성하는 가공 프로그램 작성부를 구비하고,And a machining program preparation unit for creating an NC machining program using the movement position of each figure element set by the shape data and the shape data deformation processing unit. 상기 치수공차 데이터는 설계의도를 반영시키면서 상기 도형요소간의 치수가 상기 가공목표치수에 대응하는 치수가 되도록 상기 각 도형요소를 이동변형할 때에 이용되는 정보로서, 상기 각 도형요소의 이동변형방법을 나타내는 조정모드 정보를 포함하며,The dimensional tolerance data is information used when moving each figure element so that the dimension between the figure elements becomes a dimension corresponding to the processing target dimension while reflecting the design intention. Contains adjustment mode information, 상기 형상데이터 변형처리부는,The shape data deformation processing unit, 상기 조정모드에 근거하여, 설계의도를 반영시키면서 상기 도형요소간의 치수가 상기 가공목표치수에 대응하는 치수가 되도록, 상기 도형요소의 이동위치를 설정하는 것을 특징으로 하는 프로그램 작성장치.And a moving position of the figure elements so as to reflect the design intention so that the dimension between the figure elements becomes a dimension corresponding to the machining target dimension, based on the adjustment mode. 청구항 1에 있어서,The method according to claim 1, 상기 형상데이터 변형처리부는,The shape data deformation processing unit, 상기 도형요소가 복수의 치수공차 데이터에 의해서 공유되고 있는 경우에는, 이 공유되고 있는 도형요소가 상기 도형요소를 공유하고 있는 치수공차 데이터의 각 가공목표치수에 대응하는 치수가 되도록 상기 도형요소의 이동위치를 설정하는 것을 특징으로 하는 프로그램 작성장치.When the figure element is shared by a plurality of dimensional tolerance data, the figure element is moved so that this figure figure is a dimension corresponding to each machining target dimension of the dimensional tolerance data sharing the figure element. Program setting apparatus, characterized in that for setting the position. 청구항 1에 있어서,The method according to claim 1, 상기 도형요소는 복수의 도형요소를 포함한 도형요소군(群)이고,The figure element is a figure element group including a plurality of figure elements, 상기 형상데이터 변형처리부는 상기 도형요소군에 대응하는 소정 좌표의 이동위치를 설정하는 것을 특징으로 하는 프로그램 작성장치.And the shape data deformation processing unit sets a movement position of a predetermined coordinate corresponding to the figure element group. 청구항 1에 있어서,The method according to claim 1, 상기 도형요소의 하나는 적어도 2개의 서브요소를 가지고,One of the figure elements has at least two sub-elements, 상기 조정모드는, 상기 적어도 2개의 서브요소 중 하나의 요소를 고정하고 다른 요소를 이동시키는 제1 모드와, 상기 적어도 2개의 서브요소 중 제1의 요소를 고정하고 제2의 요소를 이동시키고, 또 제2의 요소를 고정하고 제1의 요소를 이동시키는 자동모드를 구비한 조정모드군(群)으로부터 선택되는 것을 특징으로 하는 프로그램 작성장치.The adjusting mode includes a first mode of fixing one element of the at least two sub elements and moving another element, fixing the first element of the at least two sub elements and moving a second element, And a adjustment mode group having an automatic mode for fixing the second element and moving the first element. 청구항 1에 있어서,The method according to claim 1, 상기 도형요소의 하나는 적어도 2개의 서브요소를 가지고,One of the figure elements has at least two sub-elements, 상기 치수공차 데이터는, 상기 도형요소의 ID 및 상기 적어도 2개의 서브요소의 각각의 ID, 치수종별, 기준치수, 적어도 2개의 치수허용차, 상기 조정모드를 가지고,The dimension tolerance data has an ID of the figure element and each ID of the at least two sub elements, a dimension type, a reference dimension, at least two dimension tolerances, and the adjustment mode. 상기 조정모드는, 상기 적어도 2개의 서브요소 중 하나의 요소를 고정하고 다른 요소를 이동시키는 제1 모드와, 서브요소의 모두가 고정한 중심으로부터 이동하는 제2 모드와, 상기 적어도 2개의 서브요소 중 제1의 요소를 고정하고 제2의 요소를 이동시키고, 또 제2의 요소를 고정하고 제1의 요소를 이동시키는 제3 모드를 구비하는 것을 특징으로 하는 프로그램 작성장치.The adjustment mode includes a first mode of fixing one element of the at least two sub-elements and moving another element, a second mode of moving from a center to which all of the sub-elements are fixed, and among the at least two sub-elements. And a third mode of fixing the first element, moving the second element, and fixing the second element and moving the first element. 청구항 1에 있어서,The method according to claim 1, 상기 가공목표치수는, 다른 조정모드에 대해 따로 따로 연산되는 것을 특징으로 하는 프로그램 작성장치.And said machining target dimension is calculated separately for another adjustment mode. 청구항 1 내지 6 중 어느 한 항에 기재한 프로그램 작성장치를 구비하며, 상기 NC가공 프로그램에 근거하여 상기 가공대상물의 가공제어를 행하는 수치제어장치.The numerical control apparatus provided with the program production apparatus as described in any one of Claims 1-6, and performs the process control of the said process object based on the said NC processing program. 가공대상물의 형상데이터와 상기 형상데이터의 치수공차 데이터에 근거하여, 상기 형상데이터에 상기 치수공차 데이터를 반영한 NC가공 프로그램을 작성하는 프로그램 작성방법에 있어서,In the program creation method of creating an NC machining program reflecting the dimensional tolerance data in the shape data based on the shape data of the object to be processed and the dimensional tolerance data of the shape data, 상기 형상데이터와 상기 치수공차 데이터에 근거하여, 상기 가공대상물의 가공목표치수를 산출하는 가공목표치수 산출 스텝과,A machining target dimension calculating step of calculating a machining target dimension of the workpiece based on the shape data and the dimension tolerance data; 산출한 가공목표치수와 상기 형상데이터에 근거하여, 상기 형상데이터에 포함되는 도형요소간의 치수가 상기 가공목표치수에 대응하는 치수가 되도록 상기 도형요소의 이동위치를 설정하는 이동위치 설정 스텝과,A movement position setting step of setting a movement position of the figure element such that the dimension between the figure elements included in the shape data becomes a dimension corresponding to the machining target dimension based on the calculated machining target dimension and the shape data; 상기 형상데이터 및 설정한 각 도형요소의 이동위치를 이용하여 NC가공 프로그램을 작성하는 가공 프로그램 작성 스텝을 포함하고,A machining program creation step of creating an NC machining program using the shape data and the movement position of each figure element set; 상기 치수공차 데이터는 설계의도를 반영시키면서 상기 도형요소간의 치수가 상기 가공목표치수에 대응하는 치수가 되도록 상기 각 도형요소를 이동변형할 때에 이용되는 정보로서, 상기 각 도형요소의 이동변형방법을 나타내는 조정모드 정보를 포함하며,The dimensional tolerance data is information used when moving each figure element so that the dimension between the figure elements becomes a dimension corresponding to the processing target dimension while reflecting the design intention. Contains adjustment mode information, 상기 이동위치 설정 스텝은,The moving position setting step, 상기 조정모드에 근거하여, 설계의도를 반영시키면서 상기 도형요소간의 치수가 상기 가공목표치수에 대응하는 치수가 되도록, 상기 도형요소의 이동위치를 설정하는 것을 특징으로 하는 프로그램 작성방법.And a moving position of said figure element is set so that the dimension between said figure elements becomes a dimension corresponding to said processing target dimension while reflecting a design intention based on said adjustment mode.
KR1020097025380A 2007-06-06 2007-06-06 Program creation device, numeric control device,and program creation method KR101178702B1 (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2007/061424 WO2008149431A1 (en) 2007-06-06 2007-06-06 Program creation device, numeric control device, and program creation method

Publications (2)

Publication Number Publication Date
KR20100011972A KR20100011972A (en) 2010-02-03
KR101178702B1 true KR101178702B1 (en) 2012-08-30

Family

ID=42086312

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020097025380A KR101178702B1 (en) 2007-06-06 2007-06-06 Program creation device, numeric control device,and program creation method

Country Status (1)

Country Link
KR (1) KR101178702B1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020015036A1 (en) 2000-08-07 2002-02-07 Koji Shiroyama CAD consulting method, method for detecting inappropriate shape change, data storage medium, and a computer program product
JP7061596B2 (en) * 2019-11-12 2022-04-28 株式会社藤商事 Pachinko machine

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020015036A1 (en) 2000-08-07 2002-02-07 Koji Shiroyama CAD consulting method, method for detecting inappropriate shape change, data storage medium, and a computer program product
JP7061596B2 (en) * 2019-11-12 2022-04-28 株式会社藤商事 Pachinko machine

Also Published As

Publication number Publication date
KR20100011972A (en) 2010-02-03

Similar Documents

Publication Publication Date Title
JP5020315B2 (en) Program creation device, numerical control device, and program creation method
CN106126767B (en) System and method for compensating global and local offsets in a computer controlled system
CN103460151B (en) Method and Work treatment installation for processing workpiece by numerically controlled Work treatment installation
CN102445922B (en) For the method and apparatus of Compound Machining
EP2634659A1 (en) Method and device for generating tool path
EP2048558A1 (en) Program creating device and program creating method
US20030043177A1 (en) Exploded view automatic creation apparatus, storage media and methods
CA2459744A1 (en) Nurbs based cnc machine process using boolean substraction
JP2013154446A (en) Method of calculating workpiece assembling procedure, assembling procedure calculation program, and automatic assembly robot
CN106003056B (en) Change robot trajectory initially set
JP6900863B2 (en) Control unit, control method and control program
KR101178702B1 (en) Program creation device, numeric control device,and program creation method
Kim et al. A study on the precision machinability of ball end milling by cutting speed optimization
RU2438849C2 (en) Device for developing programmes, device for computer numerical control, programme generation method
Petráček et al. Effect of CNC interpolator parameter settings on toolpath precision and quality in corner neighborhoods
CN110058571B (en) Display system and display method
JP5289644B1 (en) Automatic programming apparatus and method
JP2007058748A (en) Interpolation path generation method in nc processing of curved surface
JP7473321B2 (en) Simulation device, numerical control device, and simulation method
JPH08212270A (en) Production instruction system
US20170308053A1 (en) Numerical control device
RU2362200C2 (en) Programmer and programming method
CN117600691B (en) Laser galvanometer correction system and laser galvanometer correction method
JP7180524B2 (en) Program editing device, program editing method, and program editing program
Oduola et al. A comparative study of product development process using computer numerical control and rapid prototyping methods

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20150730

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20160727

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20170804

Year of fee payment: 6

FPAY Annual fee payment

Payment date: 20180801

Year of fee payment: 7

FPAY Annual fee payment

Payment date: 20190730

Year of fee payment: 8