KR100401635B1 - Method for check grammer a manufacture programming of numerical control type machine tool - Google Patents

Method for check grammer a manufacture programming of numerical control type machine tool Download PDF

Info

Publication number
KR100401635B1
KR100401635B1 KR10-2001-0044436A KR20010044436A KR100401635B1 KR 100401635 B1 KR100401635 B1 KR 100401635B1 KR 20010044436 A KR20010044436 A KR 20010044436A KR 100401635 B1 KR100401635 B1 KR 100401635B1
Authority
KR
South Korea
Prior art keywords
grammar
search
block
code
address
Prior art date
Application number
KR10-2001-0044436A
Other languages
Korean (ko)
Other versions
KR20030009803A (en
Inventor
유제석
Original Assignee
현대자동차주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 현대자동차주식회사 filed Critical 현대자동차주식회사
Priority to KR10-2001-0044436A priority Critical patent/KR100401635B1/en
Publication of KR20030009803A publication Critical patent/KR20030009803A/en
Application granted granted Critical
Publication of KR100401635B1 publication Critical patent/KR100401635B1/en

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • 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/40937Numerical 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 machining or material parameters, pocket machining
    • 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/35088Using graph grammars to describe parts

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Manufacturing & Machinery (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Geometry (AREA)
  • Numerical Control (AREA)

Abstract

본 발명은 수치제어공작기계를 이용하여 임의의 공작물을 가공하기 위해 작성되는 가공 프로그램의 문법이 셋업 되는 해당 NC에 정해진 고유의 코드 형식으로 정의되어 있는지의 여부를 사전에 검색할 수 있도록 한 것이다.The present invention makes it possible to search in advance whether or not the grammar of a machining program created for machining any workpiece using a numerically controlled machine tool is defined in a specific code format defined in the NC to be set up.

본 발명은 공작물에 대한 가공 요구에 따라 각 NC별로 정의된 코드 형식으로 가공 프로그램을 작성하고, 작성된 가공 프로그램을 적용하고자 하는 NC의 코드 형식에 따라 문법 정의 파일을 변환한 다음 문법 검색을 실행시키며, 문법 검색 실행이 선택되면 검색할 블록을 선택하며, 선택된 블록내의 문법 정의 파일 내용을 판독하고, 검색 블록내의 글자를 대문자로 변환한 다음 검색 블록내의 빈칸을 삭제하며, 검색 블록 내의 G-코드 정의와 어드레스 정의 파일을 분석하여 문법 검색을 수행 한 다음 오류가 검출되는 경우 해당 정보를 표시수단을 통해 지시하는 것을 특징으로 한다. 따라서, 하나의 공작물을 서로 다른 제작사의 NC를 이용하여 가공하는 경우 각 NC에 작성된 가공 프로그램의 문법이 정상적으로 작성 되었는지의 여부를 사전에 검색할 수 있어 공정시간의 단축을 제공하고, 가공 프로그램의 오류를 실 가공하기 이전에 발견할 수 있어 공작물 및 기계를 안정되게 보호한다.The present invention creates a part program in a code format defined for each NC according to a machining request for a workpiece, converts a grammar definition file according to the code format of the NC to which the created part program is to be applied, and then executes a grammar search. When Run grammar search is selected, select the block to search, read the contents of the grammar definition file in the selected block, convert the letters in the search block to uppercase, delete the blanks in the search block, and define the G-code definitions in the search block. After analyzing the address definition file, the grammar search is performed, and if an error is detected, the corresponding information is indicated through the display means. Therefore, when one workpiece is machined using NCs of different manufacturers, it is possible to search in advance whether or not the grammar of the part program written in each NC is normally written, providing a reduction in process time and an error in the part program. Can be found prior to threading to provide reliable protection for workpieces and machines.

Description

공작기계의 가공 프로그램 문법 검색방법{METHOD FOR CHECK GRAMMER A MANUFACTURE PROGRAMMING OF NUMERICAL CONTROL TYPE MACHINE TOOL}METHODE FOR CHECK GRAMMER A MANUFACTURE PROGRAMMING OF NUMERICAL CONTROL TYPE MACHINE TOOL}

본 발명은 수치제어공작기계(NUMERICAL CONTROL TYPE MACHINE TOOL : 이하 "NC" 라 한다.)에 셋업되는 공작물 가공 프로그램을 검색하는 방법에 관한 것으로, 더 상세하게는 임의의 공작물을 가공하기 위하여 작성되는 가공 프로그램의 문법이 셋업되는 해당 NC에 정해진 고유의 코드 형식으로 정의되어 있는지의 여부를 사전에 검색할 수 있도록 한 공작기계의 가공 프로그램 문법 검색방법에 관한 것이다.The present invention relates to a method for retrieving a workpiece machining program set up in a numerical control machine tool (hereinafter referred to as "NC"), and more particularly, to a machining created for machining any workpiece. The present invention relates to a method for retrieving a part program grammar of a machine tool, which enables to search in advance whether a grammar of a program is defined in a specific code format defined in a corresponding NC to be set up.

일반적으로 NC는 공작물에 대한 작업을 자동으로 진행되는 장치로서, 기계에 동작을 지령하는 장치와 기계가 지령된 명령에 따라 정상적으로 움직이고 있는지의 여부를 검출하는 장치, 모재를 가공하기 위한 목표값과 가공되어지는 현재의 검출값을 비교하여 목표값과 편차가 있는 경우 목표값으로의 가공이 이루어지도록 하는 보정장치로 구성된다.In general, NC is a device that automatically performs work on a workpiece, a device that commands movement to the machine, a device that detects whether the machine is moving normally according to the commanded command, a target value for machining the base metal, and a machining Compensation apparatus for comparing the current detected value to be processed to the target value if there is a deviation from the target value.

이러한, NC를 이용하여 임의의 공작물을 가공하기 위해서는 작업자는 공작물에 대한 도면으로부터 공작물의 모양과 치수, 가공순서, 절삭속도, 절삭공구의 종류 및 크기 등에 대한 조건을 NC에서 정해져 있는 고유의 코드형식에 따라 외부의 프로그램 개발장치를 이용하여 가공 프로그램을 작성한 다음 통신이나 플로피 디스크 및 기타의 방법을 이용하여 해당 NC에 셋업 한 다음 해당 공작물에 대한 가공이 이루어지도록 하고 있다.In order to process an arbitrary workpiece using the NC, an operator uses a unique code format defined by the NC to determine the shape and dimensions of the workpiece, the processing order, the cutting speed, the type and size of the cutting tool, and the like from the drawing of the workpiece. According to the program, a part program is created using an external program development device, then set up in the NC using communication, floppy disk, and other methods, and then the machining of the workpiece is performed.

이와 같은 NC의 경우 각 제작사 마다 가공 프로그램 문법을 검색하는 기능을 가지고 있으나, 통상적으로 자사 NC의 가공 프로그램 문법만을 검사할 수 있도록 되어 있으며, 반드시 해당 NC상에서만 가능하도록 되어 있으며, 동일한 제작성능과 사양을 갖고 있더라도 제작 회사마다 가공 프로그램을 작성하는 고유의 코드 형식이 서로 상이하게 설정되어 있다.In the case of such NC, each manufacturer has a function to search the part program grammar, but normally only the part program grammar of the company's NC can be inspected. Even if they have the same, the unique code formats for creating a part program are set differently for each manufacturing company.

따라서, 동일한 공작물을 서로 다른 제작사의 NC를 이용하여 가공하기 위해서는 작업자는 각 제작사의 NC에 정해져 있는 고유 코드의 형식에 따라 가공 프로그램을 작성하여야 하고, 작성된 가공 프로그램을 해당 NC에 플로피 디스크나 통신및 기타의 방법을 이용하여 셋업 한 이후 작성된 가공 프로그램이 해당 NC에 정의된 코드형식으로 작성되었는지의 여부를 문법 검색함으로써 임의의 공작물에 대한 가공에 있어 오류가 발생되지 않도록 하고 있다.Therefore, in order to process the same workpieces using NCs of different manufacturers, the operator must create a machining program in accordance with the format of the unique code defined in each NC of the manufacturer. The grammar search checks whether the part program created after the setup using the other method is written in the code format defined in the NC to prevent errors in machining of any workpiece.

전술한 바와 같이 종래에는 가공 프로그램의 문법을 검색하기 위해서는 반드시 해당 NC에 셋업 한 다음 검색을 실행할 수 있으며, 검색 결과 가공 프로그램에 문제점이 발견되는 경우 해당 가공 프로그램을 외부의 개발 장치를 이용하여 재 작성한 다음 해당 NC에 다시 셋업 하여야 하는 번거로운 문제점이 있다.As described above, in order to search the grammar of the part program, it is necessary to set up the NC and execute the search. If a problem is found in the part program, the part program is rewritten using an external development device. Then there is a cumbersome problem of having to set up the NC again.

또한, 서로 다른 제작사의 여러 종류 NC를 사용하는 작업자가 한가지의 공작물을 가공하기 위하여 각 NC에 맞는 가공 프로그램을 작성하는 과정에서 실수로 코드 값을 잘못 입력하는 경우가 발생하게 되며, 이로 인하여 공정시간의 지연이 수시로 발생하게 되고, 치명적인 오류가 생겨 가공 완료된 공작물을 못쓰게 되는 문제점이 발생한다.In addition, an operator who uses several types of NCs from different manufacturers accidentally enters a wrong code value while creating a part program for each NC in order to process a single workpiece. The delay occurs frequently, and a fatal error occurs, which causes a problem that the finished workpiece cannot be used.

또한, 작업자의 실수로 인하여 잘못된 코드 형식의 가공 프로그램으로 NC가 운용되는 경우 발생하게 되며, 이로 인하여 고가의 NC에 치명적인 고장이 발생하게 되는 문제점이 있다.In addition, when the NC is operated by the machining program of the wrong code type due to the operator's mistake, there is a problem that a fatal failure occurs in expensive NC.

본 발명은 상기와 같은 문제점을 해결하기 위한 것으로, 그 목적은 NC가 인식할 수 있도록 코드 형식으로 제작된 임의의 공작물에 대한 가공 프로그램에 대하여 각 NC의 코드 형식에 따라 문법 정의 파일을 변경시켜 가공 프로그램을 검색할 수 있도록 함으로써, 공정시간의 지연과 가공 프로그램 및 NC의 오류를 미연에 방지하도록 한 것이다.The present invention is to solve the above problems, the object is to change the grammar definition file according to the code format of each NC for the machining program for any workpiece produced in code format so that the NC can recognize By making the program searchable, delays in processing time and errors in the part program and NC are prevented.

도 1은 본 발명에 따른 공작기계의 가공 프로그램 문법 검색장치에 대한 구성 블록도.1 is a block diagram of a machine program grammar retrieval apparatus of a machine tool according to the present invention.

도 2는 본 발명에서 공작기계의 가공 프로그램 문법 검색방법을 구현하기 위한 흐름도.2 is a flow chart for implementing a method for retrieving a part program grammar of a machine tool in the present invention.

<도면의 주요부분에 대한 부호의 설명><Description of the symbols for the main parts of the drawings>

10 : 키 입력부 20 : 외부 입력모듈10: key input unit 20: external input module

30 : 전원부 40 : 제어부30: power supply unit 40: control unit

50 : 표시부50: display unit

상기와 바와 같은 목적을 실현하기 위한 본 발명은, 공작물에 대한 가공 요구에 따라 각 NC별로 정의된 코드 형식으로 가공 프로그램을 작성하는 과정과, 작성된 가공 프로그램을 적용하고자 하는 NC의 코드 형식에 따라 문법 정의 파일을 변환한 다음 문법 검색 실행을 실행시키는 과정과, 문법 검색 실행이 선택되면 검색할 블록을 선택하며, 선택된 블록내의 문법 정의 파일 내용을 판독하는 과정과, 검색 블록내의 글자를 대문자로 변환한 다음 검색 블록내의 빈칸을 삭제하는 과정과, 검색 블록 내의 G-코드 정의와 어드레스 정의 파일을 분석하여 문법 검색을 수행하며, 오류가 검출되는 경우 해당 정보를 표시수단을 통해 지시하는 과정을 포함하는 것을 특징으로 한다.The present invention for achieving the object as described above, the process of creating a part program in the code format defined for each NC in accordance with the machining request for the workpiece, and the grammar in accordance with the code format of the NC to apply the created part program Converts the definition file and executes a grammar search run, selects a block to search if grammar search run is selected, reads the grammar definition file contents in the selected block, and converts the letters in the search block to uppercase. Deleting the blanks in the next search block, analyzing the G-code definition and the address definition file in the search block, performing a grammar search, and instructing the corresponding information through the display means when an error is detected. It features.

상기에서 문법 검색 실행으로 선택되는 검색할 블록은 가공 프로그램을 구성하는 복수개의 블록중에서 하나의 블록만이 선택되며, 가공 프로그램에 대한 문법 검색은 프로그램을 구성하는 첫 번째 블록부터 최종 블록까지 단계적으로 선택되는 것을 특징으로 한다.Only one block is selected from among a plurality of blocks constituting the part program, and the grammar search for the part program is selected step by step from the first block constituting the program. It is characterized by.

또한, 상기에서 가공 프로그램의 문법 검색은 선택된 블록을 구성하는 어드레스 정의 파일과 G-코드 정의 파일 분석을 통해 수행하는 것을 특징으로 한다.In the above, the grammar search of the part program is performed by analyzing the address definition file and the G-code definition file constituting the selected block.

이하, 첨부된 도면을 참조하여 본 발명의 바람직한 일 실시예를 상세하게 설명하면 다음과 같다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 1에서 알 수 있는 바와 같이, 본 발명에 따른 공작기계의 가공 프로그램문법 검색장치는, 키 입력부(10)와, 외부입력모듈(20), 전원부(30), 제어부(40) 및 표시부(50로 이루어지는데, 키 입력부(10)는 가공 요청된 공작물의 도면으로부터 가공 프로그램을 작성하기 위한 키 코드를 입력하는 장치로 도면의 분석을 통해 공작물의 모양과 치수, 가공순서, 절삭 공구의 속도, 종류 및 크기 등을 선정한 다음 가공시키고자 하는 NC에서 정의한 코드값을 입력한다.As can be seen in Figure 1, the machining program grammar search apparatus of the machine tool according to the present invention, the key input unit 10, the external input module 20, the power supply unit 30, the control unit 40 and the display unit 50 The key input unit 10 is a device for inputting a key code for creating a machining program from a drawing of a workpiece requested to be processed, and through the analysis of the drawing, the shape and dimensions of the workpiece, the processing sequence, the speed and type of the cutting tool. After selecting the size and size, and input the code value defined in the NC to be processed.

외부입력모듈(20)은 외부 입력 통신장치로, CAD/CAM과 같은 장치와 통신 접속되어 작성된 공작물에 대한 가공 프로그램을 시리얼 인터페이싱하거나 별도의 가공 프로그램 장치를 통해 작성되어 플로피 디스크나 CD를 통해 저장된 가공 프로그램을 판독하여 셋업시키는 기능을 수행한다.The external input module 20 is an external input communication device, which serially interfaces a machining program for a workpiece created by communicating with a device such as CAD / CAM or is stored through a separate machining program device and stored through a floppy disk or CD. Read and set up the program.

전원부(30)는 임의의 공작물에 작성된 가공 프로그램의 문법 검색이 수행될 수 있도록 시스템의 각 부하에 전원을 공급하는 기능을 담당한다.The power supply unit 30 is responsible for supplying power to each load of the system so that the grammar search of the machining program written on any workpiece can be performed.

제어부(40)는 키입력부(10)나 외부입력모듈(20)을 통해 임의의 공작물에 대한 가공 프로그램이 셋업 된 이후 해당 가공 프로그램이 임의의 공작물을 가공하고자 하는 NC에 적합한 코드의 형식으로 작성되었는지를 검색하는 신호의 입력이 검출되는 경우 해당 가공 프로그램을 분석하여 정상적으로 작성되었는지를 판단한 이후 판단된 결과의 정보를 출력한다.The controller 40 determines whether the corresponding part program is written in the form of a code suitable for the NC to which the desired part is to be machined after the part program for the workpiece is set up through the key input unit 10 or the external input module 20. When an input of a signal for searching for is detected, the corresponding program is analyzed to determine whether it is normally written, and then information about the determined result is output.

표시부(50)는 액정표시장치나 기타의 표시장치로 이루어지며, 제어부(40)에서 출력되는 가공 프로그램에 대한 검색결과를 작업자 혹은 시스템의 운용자가 인식할 수 있도록 코드나 문자 혹은 그래프의 형식으로 표시하여 준다.The display unit 50 is composed of a liquid crystal display device or other display device, and displays the search results for the processing program output from the control unit 40 in the form of code, text, or graph so that an operator or an operator of the system can recognize the result. Give it.

전술한 바와 같은 기능을 포함하는 본 발명의 구성에서 임의의 공작물에 대하여 작성된 가공 프로그램의 검색을 실행하는 동작에 대하여 첨부된 도 2와 함께 설명하면 다음과 같다.The operation of executing a search of a machining program created for an arbitrary workpiece in the configuration of the present invention including the functions as described above will be described with reference to FIG.

임의의 공작물에 대한 가공 요구가 있게 되면 작업자 혹은 가공 프로그램 개발자는 공작물의 도면을 분석한 다음 시스템의 키입력부(10)나 별도의 프로그램 작성장치를 이용하여 해당 공작물을 가공시키기 위한 각각의 NC에 적합한 가공 프로그램을 작성한다(S101)(S102).When a machining request is made for an arbitrary workpiece, the operator or part program developer analyzes the drawing of the workpiece and then fits the respective NC to machine the workpiece using the system's key input 10 or a separate program generator. A machining program is created (S101) (S102).

상기와 같이 가공 요청된 공작물에 대하여 각 NC별로 가공 프로그램의 작성이 완료된 상태에서 작업자 혹은 가공 프로그램의 개발자가 키입력부(10)를 통해 작성된 가공 프로그램이 각 제작사의 NC별로 설정되어 있는 코드 형식에 적합하게 작성되었는지의 여부를 검색하기 위하여 임의의 NC와 해당 NC에 대하여 작성된 가공 프로그램을 선택한 다음 키 입력부(10)를 이용하여 표시부(50)에 디스플레이되는 문법 검색 실행을 선택하게 되면(S103), 제어부(30) 내의 프로세서는 해당 가공 프로그램인 Grammer.dll의 기능을 읽어들여 검색할 블록을 선택한다(S104).As described above, the machining program created by the operator or the developer of the machining program through the key input unit 10 is suitable for the code format set for each manufacturer's NC in the state in which the machining program is completed for each NC. In order to search whether or not the program is written in advance, the selected grammar search program is displayed on the display unit 50 using the key input unit 10, and then the controller is selected. The processor in 30 selects a block to be retrieved by reading a function of the corresponding machining program Grammer.dll (S104).

상기에서 가공 프로그램은 복수개의 블록이 집합되어 구성되므로, 검색할 블록이 선택되면 통상적으로 해당 가공 프로그램을 구성하는 제1블록을 선택하게 된다.In the above-described machining program, a plurality of blocks are collected and configured, and when a block to be searched is selected, a first block constituting the machining program is usually selected.

상기와 같이 가공 프로그램에 대한 블록의 선택이 수행되어지면 제어부(30)는 해당 블록을 구성하고 있는 문법 정의 파일의 내용을 판독하게 된다(S105).When the block selection for the machining program is performed as described above, the controller 30 reads the contents of the grammar definition file constituting the block (S105).

상기에서 문법 정의 파일은 제작사별 NC의 종류에 따라 G-코드와 어드레스의 형태와 종류 등이 정의되며, 어드레스 정의 부분인 첫 번째 파트와 G-코드 정의 부분인 두 번째 파트로 나누어진다.In the above grammar definition file, the type and type of G-code and address are defined according to the type of NC of each manufacturer. The grammar definition file is divided into the first part which is an address definition part and the second part which is a G-code definition part.

어드레스 정의의 경우 NC에 정의되어 있는 어드레스의 수 만큼 '0'부터 순서적으로 번호가 매겨지는 어드레스 번호, NC에서 쓰이는 어드레스를 표현하는 글자를 정의하는 것으로 알파벳으로 표현되고 한 글자 또는 여러 글자와 기호로 구성될 수 있으며 기호들 중에서 ','기호를 사용하는 경우 '!'로 대신하는 어드레스 표현, 정수는 '1'로 실수는 '0'으로 정의하는 어드레스 종류, 정의된 어드레스가 갖을 수 있는 최소값인 어드레스 최소값, 정의된 어드레스가 갖을 수 있는 최대값인 어드레스 최대값으로 이루어진다.In case of address definition, it defines the address number which is numbered sequentially from '0' as many as the number of addresses defined in NC, and the letter representing the address used in NC. If you use ',' symbol among symbols, the address expression is replaced with '!', Integer is '1', real number is '0', and the minimum address can be defined. In address minimum value, the address maximum value which is the maximum value that the defined address can have.

예를들어, A0,N,1,1,9999999; 블록번호 어드레스로 정의되는 경우,For example, A0, N, 1,1,9999999; If defined with a block number address,

어드레스 정의는 '블록번호 어드레스', 어드레스 번호는 'A0', 어드레스 표현은 'N', 어드레스 종류는 '정수', 최소값은 '1', 최대값은 '9999999'이다.The address definition is 'block number address', the address number is 'A0', the address representation is 'N', the address type is 'integer', the minimum value is '1' and the maximum value is '9999999'.

또한, A1,X,0,-99999.999,99999.999 X축 어드레스Also, A1, X, 0, -99999.999,99999.999 X-axis address

A2,Y,0,-99999.999,99999.999 Y축 어드레스A2, Y, 0, -99999.999,99999.999 Y-axis address

A3,Z,0,-99999.999,99999.999 Z축 어드레스로 정의되는 경우,A3, Z, 0, -99999.999,99999.999 When defined with Z-axis address,

어드레스의 정의는 'X,Y,Z축의 어드레스'이고, 어드레스 번호는 'A1,A2,A3'이며, 어드레스 표현은 'A,Y,Z'로 하고, 어드레스 종류는 전부 실수이며, 최대값과 최소값은 X,Y,Z축 모두 동일하게 '-99999.999'와 '99999.999'이다.The address is defined as 'address on the X, Y, Z axis', the address number is 'A1, A2, A3', the address expression is 'A, Y, Z', and the address types are all real numbers. The minimum values are '-99999.999' and '99999.999' for both X, Y and Z axes.

또한, A21,!C,0,-99999.999,99999.999 ChamferAlso, A21,! C, 0, -99999.999,99999.999 Chamfer

A22,!R,0,-99999.999,99999.999 Round 로 정의되는 경우,If defined as A22,! R, 0, -99999.999,99999.999 Round

어드레스 정의는 '챔퍼'와 '라운드'이고, 어드레스 번호는 'A21','A22'이며, 어드레스 표현은 '!C(,C)','!R(,R)'이며, 어드레스 종류는 전부 실수이고, 최소값과 최대값은 챔퍼와 라운드 모두 동일하게 '-99999.999'와 '99999.999'이다.The address definitions are 'chamfer' and 'round', the address numbers are 'A21' and 'A22', the address expression is '! C (, C)', '! R (, R)', and the address types are all It is a real number, and the minimum and maximum values are '-99999.999' and '99999.999', which are the same for both the chamfer and the round.

상기의 문법 정의 파일에서 G-코드의 정의는 각 제작사의 NC마다 정의되어 있는 고유의 실행 명령 코드인 G-코드, 각 제작사의 NC 마다 정의되어 있는 고유의 G-코드 그룹번호인 G-코드 모달 그룹번호, 단독으로만 쓰일 수 있는 G-코드는 '1'로 정의하고 아니면 '0'으로 정의하는 단독블록 지령 코드, G-코드 마다 꼭 사용되어야 하는 어드레스 앞에 ''을 입력한 후에 어드레스를 입력하고 같이 사용하는 어드레스가 정의되어 있지 않은 G-코드일 경우 '*'을 입력하는 필요한 어드레스 정의로 이루어진다.In the grammar definition file, the definition of G-code is G-code, which is a unique execution command code defined for each manufacturer's NC, and G-code modal, which is a unique G-code group number defined for each manufacturer's NC. Group number, G-code that can be used alone can be defined as '1' or single block command code that is defined as '0', then input the address after '' in front of the address that must be used for each G-code. In the case of an undefined G-code, the required address definition is entered.

예를들어, M100 NC에서의 경우For example, for M100 NC

G00,1,0,*,:G00,1,0, * ,:

G01,1,0,*,: 로 정의되는 경우,If it is defined as G01,1,0, * ,:

'G00'은 급속 이송명령을 나타내고, 'G01'은 직선 이송명령을 나타내며, 'G-코드 모달 그룹은 '1'로 정의되고, 단독명령 코드는 아니며 같이 사용해야 하는 어드레스는 존재하지 않는다.'G00' represents a rapid traverse command, 'G01' represents a linear traverse command, the 'G-code modal group is defined as' 1', it is not a single command code and there is no address to use together.

또한, G04,0,1,*,:Also, G04,0,1, * ,:

G06.1,1,0,X,Y,Z,: 로 정의되는 경우,If it is defined as G06.1,1,0, X, Y, Z ,:

'G04'는 드웰 지정 명령이고, G-코드 모달 그룹은 '0' 이며, 단독블록 명령 코드이며, 동일 블록에 다른 G-코드를 명령할 수 없으며, 그 코드와 함께 사용되는 어드레스 이외의 어드레스는 명령되더라도 무시된다.'G04' is a dwell designation command, G-code modal group is '0', single block command code, no other G-code can be commanded in the same block, and addresses other than the address used with the code are It is ignored even if ordered.

''G06.1'은 스플라인 보간 명령이고, G-코드 모달 그룹은 '1'이며, 단독명령코드는 아니며 같이 사용할 수 있는 어드레스는 'X,Y,Z'가 존재한다.'G06.1' is a spline interpolation instruction, G-code modal group is '1', it is not a single instruction code, and the address that can be used together is 'X, Y, Z'.

또한, G81,9,0,R,X,Y,Z,: 로 정의되는 경우,In addition, when defined as G81,9,0, R, X, Y, Z ,:

'G81'은 드릴 싸이클 겸 스폿 보오링 싸이클 명령이고, G-코드 모달 그룹은 '9'이며, 단독 블록명령 코드는 아니며, 같이 사용해야 되는 어드레스는 'R,X,Y,Z'가 존재하며, 그 중에서 반드시 사용되어야 하는 어드레스는 'R'이다.'G81' is a drill cycle and spot boring cycle instruction, the G-code modal group is '9', not a single block instruction code, and the address to be used together is 'R, X, Y, Z'. Among them, the address that must be used is 'R'.

전술한 바와 같은 어드레스와 G-코드 정의 파트의 구조로 이루어지는 문법 정의 파일 내용의 판독이 완료되면 제어부(30)내의 검색 프로세서는 검색하고자 하는 블록내의 글자를 대문자로 변환한 다음(S106), 검색하는 블록 내에 존재하고 있는 빈칸을 검출하여 삭제한다(S107).When the reading of the grammar definition file contents having the structure of the address and the G-code definition part as described above is completed, the search processor in the control unit 30 converts the letters in the block to be searched to uppercase (S106). The blank space existing in the block is detected and deleted (S107).

이후, 제어부(30) 내의 프로세서에서 상기와 같은 전처리 동작이 완료되면 정의된 블록에 대하여 문법 검색을 수행하여 오류가 존재하는지의 여부를 판단한다 (S108)(S109).Subsequently, when the above-described preprocessing operation is completed in the processor in the controller 30, a grammar search is performed on the defined block to determine whether an error exists (S108) (S109).

상기 정의된 블록에서의 문법 검색은 정의된 블록내에 빈 블록이 존재하는지를 검색하고, 정의된 블록의 블록 번호가 존재하는지를 검색하며, 알 수 없는 G-코드가 존재하는지를 검색하며, 단독 사용 G-코드가 존재하는지를 검색하며, 같은 G-코드 그룹의 G-코드가 같은 블록에 존재하는지를 검색하며, 알 수 없는 어드레스가 존재하는지를 검색하고, 어드레스의 포맷 형식을 검색하며, G-코드에서 필요한 어드레스의 존재 여부를 검색하고, 어드레스 값의 최소/최대값의 범위를 검색하며, 같은 라인에 어드레스 문자와 값의 상관 관계 검색을 통해 정의된 블록에 대한 문법 검색을 진행한다.The grammar search in the defined block searches for the presence of an empty block within the defined block, the existence of the block number of the defined block, the search for the unknown G-code, and the exclusive use of the G-code. Search for the presence of a G-code in the same block, search for the existence of an unknown address, search the format format of an address, and the presence of the required address in the G-code. It searches for whether or not, searches the range of the minimum / maximum value of the address value, and searches the grammar for the defined block by searching the correlation between the address character and the value on the same line.

상기와 같은 절차로 문법 검색을 수행한 블록에 오류가 존재하지 않는 것으로 판단되면 현재 문법 검색을 수행한 블록의 다음 블록에 대하여 문법 검색을 수행하고, 현재 문법 검색을 수행한 블록에 오류가 존재하는 것이 판단되면 제어부(40)내의 프로세서는 검색된 오류 정보를 표시부(50)에 출력하여 가공 프로그램의 작성자 혹은 작업자에게 지시하여 준다(S110).If it is determined that the error does not exist in the block where the grammar search is performed by the above procedure, the grammar search is performed on the next block of the block that has performed the current grammar search, and the error exists in the block where the grammar search is currently performed. If it is determined that the processor in the controller 40 outputs the retrieved error information to the display unit 50 and instructs the creator or operator of the machining program (S110).

상기 표시부(50)에 지시되는 오류의 정보는 작업자 혹은 프로그램 작성자가 쉽게 알아 볼 수 있도록 오류가 발생한 블록번호나 블록 위치가 문자나 그래프 혹은 기타의 방법으로 지시되며, 해당 G-코드가 표시되어 작업자 혹은 프로그램 작성자가 쉽게 알아 볼 수 있도록 하여 준다.예를 들어, "XX에 문법 검색할 불럭이 존재하지 않습니다.", "XX에 블록 번호가 존재하지 않습니다.", "XX에 알려지지 않은 G 코드가 존재합니다.", "XX는 다른 G 코드와 사용할 수 없습니다.", "XX의 G 코드 그룹은 X의 G 코드가 한 블록안에 반복되어 있습니다." 등으로 지시된다.The information of the error indicated on the display unit 50 is indicated by the letter or graph or other method of the block number or block location where the error occurs so that the operator or the programmer can easily recognize the corresponding G-code. Or, the program writer can easily recognize it. For example, "There is no block to search for grammar in XX", "There are no block numbers in XX", "G code unknown to XX. Exists. "," XX cannot be used with other G codes. "," The G code group of XX has the G code of X repeated in one block. " And the like.

상기와 같은 동작을 통해 하나의 블록에 대하여 문법 검색이 완료되면 다음 블록에 대하여 문법 검색을 수행하며, 이러한 일련의 동작은 임의의 공작물에 대하여 작성된 가공 프로그램을 구성하고 있는 전체 블록에 대하여 순차적으로 수행하며, 최종 블록에 대한 문법 검색이 완료되면 검색 동작을 중지한다(S111).When the grammar search is completed for one block through the above operation, the grammar search is performed for the next block, and this series of operations are sequentially performed for all the blocks constituting the machining program created for the arbitrary workpiece. When the grammar search for the final block is completed, the search operation is stopped (S111).

상술한 바와 같이 본 발명은 하나의 공작물을 서로 다른 제작사의 NC를 이용하여 가공하는 경우 각 제작사의 NC에 작성된 가공 프로그램을 NC에 셋업하기 이전에 가공 프로그램의 문법이 정상적으로 작성 되었는지의 여부를 사전에 검색할 수 있어 공정시간의 단축을 제공하고, 가공 프로그램의 오류를 실 가공하기 이전에 발견할 수 있어 공작물 및 기계를 안정되게 보호한다.As described above, in the present invention, when machining a single workpiece using NCs of different manufacturers, it is necessary to determine whether or not the grammar of the machining program is normally written before setting up a machining program written in NC of each manufacturer in NC. Searching provides a shorter process time, and errors in the part program can be found before actual machining, providing reliable protection of workpieces and machines.

또한, 가공 프로그램의 작성자 및 NC 작업자도 NC의 문법 파일을 쉽게 수정하거나 작성할 수 있어 가공 프로그램의 오류 검출을 수행할 수 있어, NC 사용에 안정성 및 신뢰성을 제공한다.In addition, the author of the part program and the NC operator can also easily modify or create the NC grammar file to perform error detection of the part program, providing stability and reliability in the use of the NC.

또한, 본 발명은 하나의 공작물을 서로 다른 제작사의 NC 여러대를 이용하여 가공하는 경우 공작물에 대하여 작성된 가공 프로그램을 각 NC의 코드 형식에 따라 NC 문법 정의 파일을 바꾸어 줌으로서 작성된 프로그램의 적용 여부를 검색할 수 있다.In addition, in the present invention, when a single workpiece is processed using several NCs of different manufacturers, the application of the created program is changed by changing the NC grammar definition file according to the code format of each NC. You can search.

본 발명은 도면에 도시된 일 실시예를 참고로 설명되었으나 이는 예시적인 것에 불과하며, 당해 기술 분야에서 통상의 지식을 가진 자라면 이로부터 다양한 변형 및 균등한 실시예가 가능하다는 점을 이해할 것이다. 따라서 본 발명의 진정한 보호 범위는 첨부된 특허청구범위에 의해서만 정해져야 할 것이다.Although the present invention has been described with reference to one embodiment shown in the drawings, this is merely exemplary, and it will be understood by those skilled in the art that various modifications and equivalent embodiments are possible. Therefore, the true scope of protection of the present invention should be defined only by the appended claims.

Claims (5)

공작물에 대한 가공 요구에 따라 각 NC별로 정의된 코드 형식으로 NC가 인식할 수 있는 기계어인 가공 프로그램을 작성하는 과정과;Creating a machining program, which is a machine language that can be recognized by the NC, in a code format defined for each NC according to a machining request for a workpiece; 작성된 가공 프로그램을 적용하고자 하는 NC의 코드 형식에 따라 문법 정의 파일을 변환한 다음 검색할 블록을 선택하여 문법 검색 실행을 실행시키는 과정과;Converting a grammar definition file according to the NC code format to which the created part program is to be applied, and then selecting a block to be searched to execute a grammar search execution; 선택된 블록내 문법 정의 파일 내용의 Grammer.dll 파일을 판독하는 과정과;Reading a Grammer.dll file of grammar definition file contents in a selected block; 상기 판독된 Grammer.dll 파일의 글자를 대문자로 변환한 다음 검색 블록내에 존재하는 빈칸을 삭제하는 과정과;Converting the letters of the read Grammer.dll file to uppercase and then deleting the blanks existing in the search block; 검색 블록 내의 G-코드 정의와 어드레스 정의 파일을 분석하여 문법 검색을 수행하며, 오류가 검출되는 경우 해당 정보를 표시수단을 통해 지시하는 과정 및;Analyzing the G-code definition and the address definition file in the search block to perform a grammar search, and instructing the corresponding information through the display means when an error is detected; 오류가 검출되는 문법 정의 파일을 수정하여 해당 NC의 가공 프로그램으로 설정하는 과정을 포함하는 것을 특징으로 하는 공작기계의 가공 프로그램 문법 검색방법.A method for retrieving a grammar definition of a machine tool, comprising: modifying a grammar definition file in which an error is detected and setting it as a machining program of a corresponding NC. 제1항에 있어서,The method of claim 1, 상기 문법 검색 실행으로 선택되는 검색할 블록은 가공 프로그램을 구성하는 복수개의 블록중에서 하나의 블록만이 선택되는 것을 특징으로 하는 공작기계의 가공 프로그램 문법 검색방법.And wherein only one block is selected from among a plurality of blocks constituting a machining program as a block to be selected by the grammar search execution. 제1항에 있어서,The method of claim 1, 상기 가공 프로그램에 대한 문법 검색은 프로그램을 구성하는 첫 번째 블록부터 최종 블록까지 단계적으로 선택되는 것을 특징으로 하는 공작기계의 가공 프로그램 문법 검색방법.The grammar search for the part program is selected step by step from the first block to the final block constituting the program. 제1항에 있어서,The method of claim 1, 상기 가공 프로그램의 문법 검색은 선택된 블록을 구성하는 어드레스 정의 파일과 G-코드 정의 파일 분석을 통해 수행하는 것을 특징으로 하는 공작기계의 가공 프로그램 문법 검색방법.The grammar search of the machining program is performed by analyzing the address definition file and the G-code definition file constituting the selected block. 제1항에 있어서,The method of claim 1, 상기 가공 프로그램의 문법 검색은 빈 블록의 검색과 블록번호의 존재여부, 알 수 없는 G-코드의 존재 여부, 단독 사용 G-코드의 존재여부, 같은 G-코드 그룹의 G-코드가 같은 블록 내에 존재하는지, 알 수 없는 어드레스의 존재여부, 어드레스의 포맷여부, G-코드에서 필요한 어드레스의 존재여부, 어드레스값의 범위, 같은 라인에서 어드레스 문자와 값과 상관관계 검색으로 문법 검색을 수행하는 것을 특징으로 하는 공작기계의 가공 프로그램 문법 검색방법.The grammar search of the part program searches for an empty block and whether a block number exists, whether an unknown G-code exists, whether a single-use G-code exists, or a G-code of the same G-code group within the same block. The grammar search is performed by correlation between the address character and the value on the same line, whether there is an unknown address, whether an address is formatted, whether an address is present in a G-code, whether an address exists, and whether a range of address values is present. To search the part program grammar of a machine tool.
KR10-2001-0044436A 2001-07-24 2001-07-24 Method for check grammer a manufacture programming of numerical control type machine tool KR100401635B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR10-2001-0044436A KR100401635B1 (en) 2001-07-24 2001-07-24 Method for check grammer a manufacture programming of numerical control type machine tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR10-2001-0044436A KR100401635B1 (en) 2001-07-24 2001-07-24 Method for check grammer a manufacture programming of numerical control type machine tool

Publications (2)

Publication Number Publication Date
KR20030009803A KR20030009803A (en) 2003-02-05
KR100401635B1 true KR100401635B1 (en) 2003-10-17

Family

ID=27716332

Family Applications (1)

Application Number Title Priority Date Filing Date
KR10-2001-0044436A KR100401635B1 (en) 2001-07-24 2001-07-24 Method for check grammer a manufacture programming of numerical control type machine tool

Country Status (1)

Country Link
KR (1) KR100401635B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116088420B (en) * 2022-12-08 2024-09-17 哈尔滨工业大学 Numerical control machine tool code type identification and anomaly detection method based on random forest

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0277903A (en) * 1988-09-14 1990-03-19 Fanuc Ltd Numerical control method
JPH0863219A (en) * 1994-08-24 1996-03-08 Okuma Mach Works Ltd Numerical controller with fast program check function
KR19980083295A (en) * 1997-05-13 1998-12-05 이종수 G-Code Extension Method of Numerical Controller
KR19980083294A (en) * 1997-05-13 1998-12-05 이종수 How to edit graphic G-code of numeric controller

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0277903A (en) * 1988-09-14 1990-03-19 Fanuc Ltd Numerical control method
JPH0863219A (en) * 1994-08-24 1996-03-08 Okuma Mach Works Ltd Numerical controller with fast program check function
KR19980083295A (en) * 1997-05-13 1998-12-05 이종수 G-Code Extension Method of Numerical Controller
KR19980083294A (en) * 1997-05-13 1998-12-05 이종수 How to edit graphic G-code of numeric controller

Also Published As

Publication number Publication date
KR20030009803A (en) 2003-02-05

Similar Documents

Publication Publication Date Title
US6502007B1 (en) Optimization method and device of NC program in NC machining
JP5000543B2 (en) Machine tool control method and apparatus therefor
KR100421788B1 (en) NC program analysis device and processing method in CNC processing
US10775768B2 (en) Machine control program creating device
US20140172148A1 (en) Method and system for programmable numerical control
EP3088978B1 (en) Control apparatus for machine tool
US6591156B1 (en) Method and apparatus for providing numerical control information
JP4593142B2 (en) System for manufacturing a workpiece under computer control and method for measuring a manufactured workpiece
CN107203188A (en) Method for processing workpiece in lathe with the process time of optimization
EP2104013B1 (en) Numerical controller with machining restart function
JPH03177903A (en) Method and device for production of nc working data
JPH03158908A (en) Automatic programming system in compound working machine
KR100401635B1 (en) Method for check grammer a manufacture programming of numerical control type machine tool
US4328448A (en) Method for programmably controlling the sequence of execution of data blocks in a program
EP0107794A1 (en) Numerical control system
JP2000089813A (en) Working program editing method and controller for machine tool
JP4501244B2 (en) NC device for electric discharge machining and electric discharge machining method
KR100398004B1 (en) Method for g-code generation of numerical control type machine tool
Yusof et al. Comparison of Communication with the CNC Systems
KR19980083295A (en) G-Code Extension Method of Numerical Controller
To A Computer Science View 67
KR20050008982A (en) Method of Operating a Multi Drill Post Processor
JPH02310608A (en) System for changing order of tools
JPH04269149A (en) Nc data preparation for hole machining
JPS63271609A (en) Operation design aiding device

Legal Events

Date Code Title Description
A201 Request for examination
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: 20061002

Year of fee payment: 4

LAPS Lapse due to unpaid annual fee