KR19980083295A - G-Code Extension Method of Numerical Controller - Google Patents

G-Code Extension Method of Numerical Controller Download PDF

Info

Publication number
KR19980083295A
KR19980083295A KR1019970018543A KR19970018543A KR19980083295A KR 19980083295 A KR19980083295 A KR 19980083295A KR 1019970018543 A KR1019970018543 A KR 1019970018543A KR 19970018543 A KR19970018543 A KR 19970018543A KR 19980083295 A KR19980083295 A KR 19980083295A
Authority
KR
South Korea
Prior art keywords
program
numerical controller
code
machining
contour data
Prior art date
Application number
KR1019970018543A
Other languages
Korean (ko)
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 KR1019970018543A priority Critical patent/KR19980083295A/en
Publication of KR19980083295A publication Critical patent/KR19980083295A/en

Links

Abstract

본 발명은 수치제어기의 지-코드 확장방법에 관한 것으로, 종래의 기술에 있어서는 작성된 프로그램이 어떠한 형상을 가공하는지 알기 어려울 뿐만 아니라 프로그램을 작성하기 위해 공구 위치 등의 여러 가지의 계산이 필요하며, 추후에 작성된 프로그램을 수정할 때에 프로그램을 이해하는데 어려움이 있어 많은 시간과 노력이 필요한 문제점이 있었다.The present invention relates to a method for extending a geocode of a numerical controller. In the related art, it is not only difficult to know what shape the created program processes, but also various calculations such as tool positions are required to create a program. There is a problem that requires a lot of time and effort because of difficulty in understanding the program when modifying the program written in.

따라서, 본 발명은 상기와 같은 종래의 문제점을 해결하기 위하여 창안한 것으로, 새로운 지-코드를 사용하여 복잡한 폐 다각형에 대한 가공 프로그램을 단순화하여 내부적으로 처리하는 방법을 제공하여 파트 프로그램의 작성 전에 미리 윤곽 데이터를 정의함으로써, 파트 프로그램 작성시의 오류를 제거하여 수치제어기의 효율을 높이는 효과가 있다.Accordingly, the present invention has been devised to solve the above-mentioned conventional problems, and provides a method of internally simplifying a machining program for a complex closed polygon using a new G-code, and beforehand before creating a part program. By defining the contour data, there is an effect of eliminating an error in the part program creation and increasing the efficiency of the numerical controller.

Description

수치제어기의 지-코드 확장방법G-Code Extension Method of Numerical Controller

본 발명은 수치제어기의 지-코드 확장방법에 관한 것으로, 특히 밀링용 폐 다각형 포켓을 가공하기 위하여 내부 경로 및 윤곽의 경로를 파트 프로그램에 모두 정의해야 하는 기존의 방법을 다각형의 윤곽과 가공여유, 내부 경로의 절삭 간격 및 절삭 깊이 등의 파라미터만을 정의하여 파트 프로그램 작성을 용이하게 하고, 내부 처리속도를 개선한 수치제어기의 지-코드 확장방법에 관한 것이다.The present invention relates to a method for expanding a geocode of a numerical controller. In particular, in order to process closed polygon pockets for milling, the conventional method of defining both an internal path and a path of a contour in a part program includes a polygon contour and a processing margin, The present invention relates to a method for expanding a G-code of a numerical controller that facilitates the creation of a part program by defining only parameters such as a cutting distance and a cutting depth of an internal path, and improves an internal processing speed.

하나의 가공 프로그램은 설명부(description), 프로그램 번호, 절삭조건 지령부(cutting conditions commands), 보간 지령부(interpolation commands), 절삭조건 해제 지령부(cutting conditions cancellation commands), 보조장치 지령부로 구성되어 있는데, 상기 설명부는 프로그램이 아닌 프로그램을 설명하기 위한 정보, 즉 사용기계, 작성날짜, 공구의 종류 등의 코맨트부분이며, 상기 프로그램 번호는 지령절의 문장번호를 지시하는 부분이고, 상기 절삭조건 지령부는 기계가 공작물을 가공하기 위해서는 기계의 작동조건이나 기타 작업조건을 지시해야 하는데 이 부분에서 그러한 조건들, 즉 프로그램의 시작점, 최고회전수, 공구번호, 절삭속도, 회전방향, 이송속도 등과 같은 여러 가지 보조기능을 정의하며, 상기 보간지령부는 절삭이 본격적으로 이루어지는 절삭조건 해제 지령부는 로보트와 같은 기타 보조장치를 이용할 수 있도록 사용자를 위한 코드를 준비한 부분이다.One part program consists of a description, program number, cutting conditions commands, interpolation commands, cutting conditions cancellation commands and auxiliary device commands. Wherein, the description section is not a program, but information for describing the program, that is, a comment portion of the machine used, the creation date, the type of tool, etc., the program number is a portion indicating the sentence number of the command section, the cutting condition command section In order to machine a workpiece, the machine must indicate the operating conditions of the machine or other working conditions, in which the conditions such as the starting point of the program, the maximum number of revolutions, the tool number, the cutting speed, the direction of rotation, the feedrate, etc. A secondary function is defined, and the interpolation command part is a cutting condition releasing command in which cutting is performed in earnest. Is part of preparing the code for the user to take advantage of other auxiliary devices such as robots.

도1은 가공 프로그램을 작성하는 흐름도로서, 이에 도시된 바와 같이 먼저 작업도면을 해석한 다음 공정을 분석하고, 공구를 결정한 다음 상기 공정분석에 따른 공구의 이송궤적을 계산하며, 파트 프로그램을 작성하여 모의가공을 하고, 이상이 없을 때에 실제가공을 한다.1 is a flowchart for creating a machining program. As shown in FIG. 1, a work drawing is first analyzed, a process is analyzed, a tool is determined, a feed trajectory of a tool according to the process analysis is calculated, and a part program is created. Simulate the machining and do the actual machining when there is no abnormality.

도2는 종래 수치제어기의 구성을 보인 블록도로서, 이에 도시된 바와 같이 시스템 프로그램을 저장하는 롬(ROM, 10)과; 상기 롬(10)에 저장되어 있는 시스템 프로그램을 시스템버스를 통해 읽어들여 프로그램의 로직에 따라 수치제어기를 전체적으로 제어하는 중앙처리장치(CPU, 11)와; 설정된 가공 프로그램을 저장하는 메모리(12)와; 디스플레이장치와 키입력장치로 구성되어 수치제어기에 필요한 정보를 상기 키입력장치를 통해 입력하고, 사용자에게 필요한 각종 정보를 상기 디스플레이장치를 통해 보게하는 등의 입출력을 담당하는 입력장치(CRT/MDI, 13)와; 기계의 회전 및 직선운동을 담당하는 서보기구(15)와; 상기 중앙처리장치(CPU 11)에서 이동명령 또는 회전명령 신호를 전송받아 이 명령신호를 상기 서보기구(15)를 기동하게 하는 신호로 변환하는 축제어부(14)와; 스위치, 조작판넬 스위치, 각종 외부 구동장치 등 여러 외부 장치들로부터 입력신호를 전송받아 수치제어기의 흐름 제어 프로그램에 따라 작업을 한후에 상기 중앙처리장치(CPU, 11)에 전달하고, 상기 중앙처리장치(CPU, 11)로 부터 외부 장치에 대한 출력신호를 받아 해당 장치에 신호를 전송하는 피엘씨(PLC, 16)와; 수치 제어기와 외부 장치간에 가공 프로그램을 수신받을 수 있으며, 이 수치제어기를 관리하는 상위 시스템으로부터 명령을 전송받고, 수행한 결과를 전송하는 디지탈 입/출력부(17,18)로 구성된 것으로, 가공 프로그램이 입력장치(CRT/MDI, 13)를 통하여 사용자가 입력을 하면 메모리(12)에 저장되고, 실행시에 중앙처리장치(CPU, 11)에서 롬(10)의 프로그램되어 있는 순서대로 데이터를 처리하여 축 제어부(14), 피엘씨(PLC, 16) 등의 출력장치를 통해 결과를 보낸다.Fig. 2 is a block diagram showing the configuration of a conventional numerical controller, which includes a ROM (ROM) 10 for storing a system program as shown therein; A central processing unit (CPU) 11 which reads a system program stored in the ROM 10 through a system bus and controls the numerical controller as a whole according to the logic of the program; A memory 12 for storing a set machining program; Input device composed of a display device and a key input device for input / output such as inputting information necessary for the numerical controller through the key input device and viewing various information necessary for the user through the display device (CRT / MDI, 13); A servo mechanism 15 that is responsible for the rotation and linear motion of the machine; A festive control unit (14) which receives a movement command or a rotation command signal from the CPU 11 and converts the command signal into a signal for starting the servo mechanism 15; After receiving input signals from various external devices such as switches, operation panel switches, and various external driving devices, and performing operations according to the flow control program of the numerical controller, the controller transmits the input signals to the central processing unit (CPU) 11, A PLC (PLC) 16 which receives an output signal for an external device from the CPU 11 and transmits a signal to the corresponding device; It is possible to receive a machining program between the numerical controller and an external device, and it is composed of digital input / output units (17, 18) for receiving a command from an upper system managing the numerical controller and transmitting the result. When a user inputs through this input device (CRT / MDI) 13, it is stored in the memory 12, and at the time of execution, the central processing unit (CPU) 11 processes the data in the programmed order of the ROM 10. To send the result through an output device such as an axis control unit 14, PLC 16, or the like.

도3은 종래 폐 다각형 형상의 가공도로서, 이에 도시된 바와 같이 사용자가 캠(CAM)을 이용하거나 계산을 통하여 내부경로(1∼13)를 산출해야 하고, 산출된 결과는 프로그램 형태로 만들어져 수치제어기에 입력되며, 수치제어기는 프로그램 작성시 사용자의 편의를 위해 공구의 셴디라인으로 작성된 가공경로를 실제 공구의 경로(공구 경, 공구 길이 보정)로 보정해 주는 롬(10)에 프로그램되어 있는 구문해석 프로그램을 통하여 프로그램을 순차적으로 해석하여 가공을 위한 보간정보를 생성하여 보간기로 출력한다.3 is a process diagram of a conventional closed polygonal shape. As shown in FIG. 3, the user must calculate the internal paths 1 to 13 by using a cam or a calculation, and the calculated result is made in a program form. Entered into the controller, the numerical controller is programmed in the ROM (10) to correct the machining path created by the Shendy line of the tool for the user's convenience when writing the program to the path of the actual tool (tool diameter, tool length compensation) The program is interpreted sequentially through an analysis program to generate interpolation information for machining and output to the interpolator.

결국, 다각형 가공을 위한 프로그램의 크기와 해석기의 해석시간은 다각형의 내부경로의 개수에 비례한다.As a result, the size of the program for polygon processing and the analysis time of the analyzer are proportional to the number of internal paths of the polygon.

상기와 같이 종래의 기술에 있어서는 작성된 프로그램이 어떠한 형상을 가공하는지 알기 어려울 뿐만 아니라 프로그램을 작성하기 위해 공구 위치 등의 여러 가지의 계산이 필요하며, 추후에 작성된 프로그램을 수정할 때에 프로그램을 이해하는데 어려움이 있어 많은 시간과 노력이 필요한 문제점이 있었다.As described above, in the conventional technology, it is difficult to know what shape the created program processes, as well as various calculations such as tool position in order to create the program, and it is difficult to understand the program when modifying the created program later. There was a problem that required a lot of time and effort.

따라서, 본 발명은 상기와 같은 종래의 문제점을 해결하기 위하여 창안한 것으로, 새로운 지-코드를 사용하여 복잡한 폐 다각형에 대한 가공 프로그램을 단순화하여 내부적으로 처리하는 방법을 제공함에 목적이 있다.Accordingly, the present invention has been made to solve the above-mentioned conventional problems, and an object of the present invention is to provide a method of internally simplifying a machining program for a complex closed polygon using a new G-code.

도1은 가공 프로그램을 작성하는 흐름도.1 is a flowchart for creating a machining program;

도2는 종래 수치제어기의 구성을 보인 블록도.Figure 2 is a block diagram showing the configuration of a conventional numerical controller.

도3은 종래 폐 다각형 형상의 가공도.Figure 3 is a processing diagram of a conventional closed polygonal shape.

도4는 본 발명에 따른 구문해석 프로그램에서의 처리 흐름도.4 is a process flow diagram in a syntax analysis program according to the present invention;

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

10 : 롬(ROM) 11 : 중앙처리장치10: ROM 11: Central Processing Unit

12 : 메모리 13 : 입력장치(CRT/MDI)12: memory 13: input device (CRT / MDI)

14 : 축제어부 15 : 서보기구14 Festival Fisherman 15 Servo Mechanism

16 : 피엘씨(PLC) 17,18 : 디지탈 입/출력부16: PLC 17,18: Digital input / output

이와 같은 목적을 달성하기 위한 본 발명의 구성은 도2에 도시된 바와 같이 시스템 프로그램을 저장하는 롬(ROM, 10)과; 상기 롬(10)에 저장되어 있는 시스템 프로그램을 시스템버스를 통해 읽어들여 프로그램의 로직에 따라 수치제어기를 전체적으로 제어하는 중앙처리장치(CPU, 11)와; 설정된 가공 프로그램을 저장하는 메모리(12)와; 디스플레이장치와 키입력장치로 구성되어 수치제어기에 필요한 정보를 상기 키입력장치를 통해 입력하고, 사용자에게 필요한 각종 정보를 상기 디스플레이장치를 통해 보게하는 등의 입출력을 담당하는 입력장치(CRT/MDI, 13)와; 기계의 회전 및 직선운동을 담당하는 서보기구(15)와; 상기 중앙처리장치(CPU 11)에서 이동명령 또는 회전명령 신호를 전송받아 이 명령신호를 상기 서보기구(15)를 기동하게 하는 신호로 변환하는 축제어부(14)와; 스위치, 조작판넬 스위치, 각종 외부 구동장치 등 여러 외부 장치들로부터 입력신호를 전송받아 수치제어기의 흐름 제어 프로그램에 따라 작업을 한후에 상기 중앙처리장치(CPU, 11)에 전달하고, 상기 중앙처리장치(CPU, 11)로 부터 외부 장치에 대한 출력신호를 받아 해당 장치에 신호를 전송하는 피엘씨(PLC, 16)와; 수치제어기와 외부 장치간에 가공 프로그램을 수신받을 수 있으며, 이 수치제어기를 관리하는 상위 시스템으로부터 명령을 전송받고, 수행한 결과를 전송하는 디지탈 입/출력부(17,18)로 구성한다.The configuration of the present invention for achieving the above object is a ROM (ROM) 10 for storing a system program as shown in Figure 2; A central processing unit (CPU) 11 which reads a system program stored in the ROM 10 through a system bus and controls the numerical controller as a whole according to the logic of the program; A memory 12 for storing a set machining program; Input device composed of a display device and a key input device for input / output such as inputting information necessary for the numerical controller through the key input device and viewing various information necessary for the user through the display device (CRT / MDI, 13); A servo mechanism 15 that is responsible for the rotation and linear motion of the machine; A festive control unit (14) which receives a movement command or a rotation command signal from the CPU 11 and converts the command signal into a signal for starting the servo mechanism 15; After receiving input signals from various external devices such as switches, operation panel switches, and various external driving devices, and performing operations according to the flow control program of the numerical controller, the controller transmits the input signals to the central processing unit (CPU) 11, A PLC (PLC) 16 which receives an output signal for an external device from the CPU 11 and transmits a signal to the corresponding device; It is possible to receive a machining program between the numerical controller and an external device, and to receive a command from an upper system managing the numerical controller, and to configure the digital input / output units 17 and 18 for transmitting the result.

그리고, 방법에 있어서는 소정 개수의 다각형 윤곽 데이터를 정의하여 입력하는 제1 단계와; 상기 제1 단계에서 입력된 다각형 윤곽 데이터에 해당하는 지-코드를 인식하는 제2 단계와; 상기 제2 단계에서 인식한 지-코드에 의해 내부경로를 생성하는 제3 단계와; 상기 제1 단계에서 입력된 윤곽 데이터를 기준으로 진행경로를 결정하는 제4 단계와; 상기 제4 단계에서 결정된 진행경로에 따라 가공동작을 수행시키는 제5 단계로 이루어진 것을 특징으로 한다.The method includes: a first step of defining and inputting a predetermined number of polygonal contour data; A second step of recognizing a G-code corresponding to the polygonal contour data input in the first step; A third step of generating an internal path by the G-code recognized in the second step; A fourth step of determining a progress path based on the contour data input in the first step; And a fifth step of performing the machining operation according to the progress path determined in the fourth step.

도4는 본 발명에 따른 구문해석 프로그램에서의 처리 흐름도로서, 이에 도시한 바와 같이 프로그램 파일을 오픈하여 블록(라인) 단위로 판독하여 구문을 해석하고, 윤곽 데이터에 해당하는 지-코드가 입력되었는지를 판단하여 입력되었으면 내부경로 생성을 위한 연산을 하여 중간 데이터로 변환하여 파일이 끝났는가를 판단하여 종료하거나 처음으로 돌아가 파일이 끝날 때까지 계속하여 동작한다.4 is a flowchart of a syntax analysis program according to the present invention. As shown therein, a program file is opened and read in block (line) units to interpret syntax, and whether a G-code corresponding to contour data is input. If the input is judged, the operation to generate the internal path is performed to convert the data into intermediate data to determine whether the file is finished and continue or continue until the end of the file.

이상에서 설명한 바와 같이 본 발명 수치제어기의 지-코드 확장방법은 파트 프로그램의 작성 전에 미리 윤곽 데이터를 정의함으로써, 파트 프로그램 작성시의 오류를 제거하여 수치제어기의 효율을 높이는 효과가 있다.As described above, the G-code extension method of the numerical controller of the present invention has the effect of improving the efficiency of the numerical controller by eliminating errors in the part program creation by defining contour data before creating the part program.

Claims (1)

소정 개수의 다각형 윤곽 데이터를 정의하여 입력하는 제1 단계와; 상기 제1 단계에서 입력된 다각형 윤곽 데이터에 해당하는 지-코드를 인식하는 제2 단계와; 상기 제2 단계에서 인식한 지-코드에 의해 내부경로를 생성하는 제3 단계와; 상기 제1 단계에서 입력된 윤곽 데이터를 기준으로 진행경로를 결정하는 제4 단계와; 상기 제4 단계에서 결정된 진행경로에 따라 가공동작을 수행시키는 제5 단계로 이루어진 것을 특징으로 하는 수치제어기의 지-코드 확장방법.A first step of defining and inputting a predetermined number of polygonal contour data; A second step of recognizing a G-code corresponding to the polygonal contour data input in the first step; A third step of generating an internal path by the G-code recognized in the second step; A fourth step of determining a progress path based on the contour data input in the first step; And a fifth step of performing a machining operation according to the progress path determined in the fourth step.
KR1019970018543A 1997-05-13 1997-05-13 G-Code Extension Method of Numerical Controller KR19980083295A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019970018543A KR19980083295A (en) 1997-05-13 1997-05-13 G-Code Extension Method of Numerical Controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019970018543A KR19980083295A (en) 1997-05-13 1997-05-13 G-Code Extension Method of Numerical Controller

Publications (1)

Publication Number Publication Date
KR19980083295A true KR19980083295A (en) 1998-12-05

Family

ID=65990900

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019970018543A KR19980083295A (en) 1997-05-13 1997-05-13 G-Code Extension Method of Numerical Controller

Country Status (1)

Country Link
KR (1) KR19980083295A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100398004B1 (en) * 2001-12-18 2003-09-17 현대자동차주식회사 Method for g-code generation of numerical control type machine tool
KR100401635B1 (en) * 2001-07-24 2003-10-17 현대자동차주식회사 Method for check grammer a manufacture programming of numerical control type machine tool

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100401635B1 (en) * 2001-07-24 2003-10-17 현대자동차주식회사 Method for check grammer a manufacture programming of numerical control type machine tool
KR100398004B1 (en) * 2001-12-18 2003-09-17 현대자동차주식회사 Method for g-code generation of numerical control type machine tool

Similar Documents

Publication Publication Date Title
EP0606649B1 (en) Numerically controlled machine tool and method to re-execute a machining program after it has been stopped
US10007254B2 (en) CAM integrated CNC control of machines
US20100063608A1 (en) Method and System for Programmable Numerical Control
CN109725600B (en) Post-processor device, machining program generating method, CNC machining system, and computer-readable information recording medium
US7058473B2 (en) Method and device for generation of machining program
JP2012094159A (en) Method and system for controlling machine tool using direct transfer of machine working data
CN107368039A (en) Numerical control device
JP2009509780A (en) Methods for optimization of machining processes in machines
US4737919A (en) Numerical control sequential translator
KR19980083295A (en) G-Code Extension Method of Numerical Controller
US6658317B2 (en) Method for setting a moving position in a machine tool
JP2009538744A (en) Method for controlling turning and NC machine suitable for turning
JPH0370242B2 (en)
KR910007052B1 (en) Numerical control device
WO2023053349A1 (en) Numerical control device
KR19980083294A (en) How to edit graphic G-code of numeric controller
US20030093165A1 (en) Programming method for creating a control program of an industrial machine
KR0136142B1 (en) The method of graphic simulation using numerical control apparatus
JP2002091526A (en) Numerical controller
CN116057486A (en) Post-processor development assistance device, post-processor development assistance system, and computer-executable method
KR100398004B1 (en) Method for g-code generation of numerical control type machine tool
Chatelain et al. Productivity assessment from advanced integration of canned cycles to CAD/CAM software
JPS62121515A (en) Numerical controller
KR100401635B1 (en) Method for check grammer a manufacture programming of numerical control type machine tool
JPH04100122A (en) Nc working program executing device

Legal Events

Date Code Title Description
WITN Withdrawal due to no request for examination