|Publication number||US4890234 A|
|Application number||US 07/150,654|
|Publication date||Dec 26, 1989|
|Filing date||May 12, 1987|
|Priority date||May 15, 1986|
|Also published as||EP0270679A1, EP0270679A4, WO1987007046A1|
|Publication number||07150654, 150654, PCT/1987/295, PCT/JP/1987/000295, PCT/JP/1987/00295, PCT/JP/87/000295, PCT/JP/87/00295, PCT/JP1987/000295, PCT/JP1987/00295, PCT/JP1987000295, PCT/JP198700295, PCT/JP87/000295, PCT/JP87/00295, PCT/JP87000295, PCT/JP8700295, US 4890234 A, US 4890234A, US-A-4890234, US4890234 A, US4890234A|
|Inventors||Kunio Tanaka, Yasushi Onishi|
|Original Assignee||Fanuc Ltd.|
|Export Citation||BiBTeX, EndNote, RefMan|
|Patent Citations (7), Referenced by (17), Classifications (8), Legal Events (6)|
|External Links: USPTO, USPTO Assignment, Espacenet|
This invention relates to a method of modifying NC data and, more particularly, to an NC data modification method through which NC data in a format executable by an NC unit are modified into NC data having a different executable format.
In automatic programming for creating NC data using an automatic programming language such as APT or FAPT, (a) a part program based on the automatic programming language is created by defining points, straight lines and circular arcs using simple symbols (this is referred to as "figure definition"), and then defining a tool path using the defined points, straight lines and circular arcs (referred to as "motion statement definition"), and (b) the part program based on the automatic programming language is subsequently converted, by using an NC data output table, into NC data comprising NC data (EIA codes or ISO codes) in a format capable of being executed by an NC unit. The NC data output table stores NC data output formats for various commands, such as a linear interpolation command, circular interpolation command and coordinate system setting command. By referring to the table, the part program is converted into NC data in the format to be executed and is then delivered as an output. For example, the following command format for linear interpolation is stored in the table to deal with linear interpolation:
and the following command format for circular interpolation is stored in the table to deal with circular interpolation:
There are cases where it is desired to have machining, which is similar to that performed by a first numerically controlled machine tool already in operation, executed by a second numerically controlled machine tool of a type different from that of the first numerically controlled machine tool. If the NC data formats for both of the numerically controlled machine tools are the same when the above is the case, then the second numerically controlled machine tool can be controlled using the NC data of the first numerically controlled machine tool as it is.
If the NC data formats of the two numerically controlled machine tools are different, on the other hand, the NC data output table of the automatic programming apparatus is modified for the sake of the second numerically controlled machine tool, the NC data for the second numerically controlled machine tool are created using the already prepared part program based on the automatic programming language, and the second numerically controlled machine tool is controlled in accordance with these NC data.
However, the conventional method of dealing with NC data formats that differ is a troublesome one since the NC data output table of the automatic programming apparatus must be modified. In addition, there are cases where the part program based on the automatic programming language no longer exists. In such case the conventional method cannot be applied and the NC data form must be modified by a manual operation.
Accordingly, an object of the present invention is to provide an NC data modification method through which NC data having an executable format can be automatically changed to NC data of another type without using a part program based on automatic programming language.
Even if the formats of first NC data and second NC data differ, in most cases they differ only in terms of G codes, M codes or coordinate command codes. Accordingly, a G-code conversion table (GTB) giving the correlation between the G codes of the first NC data and second NC data, an M-code conversion table (MTB) giving the correlation between the M codes of the first NC data and second NC data, and a coordinate command code conversion table (PTB) giving the correlation between coordinate command codes (X, Y, Z, I, J, K codes) of the first NC data and second NC data are preregistered in a memory as conversion tables for converting the first NC data into the second NC data, and the format of the first NC data is changed to the format of the second NC data by making use of these conversion tables (GTB, MTB, PTB).
FIG. 1 is a block diagram illustrating an apparatus for realizing the NC data modification method of the present invention, and
FIG. 2 is a flowchart of processing according to the present invention.
FIG. 1 is a block diagram illustrating an apparatus for realizing the NC data modification method of the present invention, and FIG. 2 is a flowchart of processing according to the present invention.
In FIG. 1, numeral 101 denotes a ROM in which a control program has been stored, 102 a processor for executing NC data modification processing under the control of the control program, and 103 a RAM.
The RAM 103 stores NC data conversion tables for converting NC data having an NC unit-executable format into NC data having another executable format, and also stores read NC data and the results of processing. Stored in the RAM 103 as these conversion tables are a G-code conversion table GTB for converting G codes in certain NC data into G codes in other NC data, an M-code conversion table MTB for converting M codes in certain NC data into M codes in other NC data, and a coordinate command code conversion table PTB for converting coordinate command codes in certain NC data into coordinate command codes in other NC data.
The G-code conversion table GTB indicates the correlation between G codes (G00-G99) and functions in each type of data. The functions, which refer to positioning, linear cutting, circular cutting, coordinate system setting, absolute commands, incremental commands and the like, are expressed by respective codes (function codes) G codes differ depending upon the type of NC data, even if the functions are the same. For example, the G code of coordinate system setting is "G50" in NC data of Type 1 and "G92" in NC data of Type 2.
The M-code conversion table GTB indicates the correlation between M codes (M00-M99) and functions in each type of data. The functions, which refer to forward spindle rotation, reverse spindle rotation, spindle stop, coolant on, coolant off and the like, are expressed by respective codes (function codes). M codes differ depending upon the type of NC data, even if the functions are the same. For example, the M codes of forward spindle rotation and reverse spindle rotation are "M02" and "M03", respectively, in NC data of Type 1 and "M03", "M02", respectively, in NC data of Type 2.
The coordinate command code conversion table PTB indicates the command unit for each axis of X, Y, Z, I, J and K codes, whether a command is absolute or incremental, whether a decimal point is present, etc. For example, to command 1 mm of movement along the X axis, "X1000" is the command in the NC data of Type 1 and "X10000" is the command in the NC data of Type 2.
Numeral 104 denotes a keyboard, 105 a display unit, and 106 a disc controller. FLD represents a floppy. NC data are stored on the floppy FLD.
The NC data modification method of the present invention will now be described in accordance with the flowchart shown in FIG. 2.
(1) The floppy FLD storing the original NC data is set in the disc drive of the disc controller 106, and the data are read from the floppy and stored in an NC data storage area of the RAM 103.
The type of the original NC data (assumed to be Type 1) and the type of the NC data to be obtained by the conversion (assumed to be Type 2) are inputted from the keyboard 104, and a conversion execution command is inputted from the keyboard.
(2) In response, the processor 102 reads the original NC data out of the RAM 103 one word at a time and executes the following processing under the control of the control program:
(3) First, the processor checks whether the read word is the alphabetic character G.
(4) If the word is not G, it is checked whether the word is the alphabetic character M.
(5) If the word is not M either, it is checked whether the word is a word address word (e.g. X, Y, Z, I, J, K) commanding a coordinate value.
(6) If the answer received at step (5) is NO, then the word read at step (2) is stored in the RAM 103 in a storage area that is for storing the(purposive NC data.
(7) Thereafter, it is checked whether this is the end of the NC data. If it is, then processing is terminated; if it is not, then processing is executed from step (2) onward. It should be noted that the end of data is indicated if M02 (program end) or M30 (tape end) is identified.
(8) If the word read is determined at step (3) to be the alphabetic character G, then the processor 102 goes to the RAM 103 to read the two-digit numerical value □□ that follows the alphabetic character G. It is assumed here that □□ is 50.
(9) Next, the processor refers to the G-code table GTB to obtain the function of G□□(=G50) in the original data (i.e. the function in the NC data of Type 1). Note that the function of G50 is the coordinate system setting function.
(10) When the function has been found, the processor goes to the G-code conversion table GTB to obtain the G code (G00) in the desired NC data (the NC data of Type 2) conforming to the abovementioned function. In this example, G00 is G92.
(11) Thereafter, G00 is stored in the RAM 103 in the desired NC data storage area thereof, after which processing is executed from step (7) onward.
(12) If the decision rendered at step (4) is that the read word is the alphabetic character M, then the processor 102 goes to the RAM 103 to read the two-digit numerical value ΔΔ that follows the alphabetic character M.
(13) Next, the processor refers to the M-code table MTB to obtain the function of MΔΔ in the original data (the NC data of Type 1).
(14) When the function has been found, the processor goes to the M-code conversion table MTB to obtain the M code (M∇∇) in the desired NC data (the NC data of Type 2) conforming to the abovementioned function.
(15) Thereafter, the M code (M∇∇) is stored in the RAM 103 in the desired NC data storage area thereof, after which processing is executed from step (7) onward.
(16) If the decision rendered at step (5) is that the read word is a word address word for a coordinate value command, then the processor 102 goes to the RAM 103 to read the numerical value that follows the alphabetic character, thereafter refers to the coordinate command code conversion table PTB to convert the code into the Type 2 coordinate command code, then stores this code in the RAM 103 in the desired NC data storage area thereof and thereafter executes processing from step (7) onward.
When NC data of Type 2 have thus been obtained from NC data of Type 1, these data are outputted to a floppy or other external storage medium.
It should be noted that an automatic programming apparatus or an NC unit can be provided with the abovementioned functions. If an NC unit is provided with these functions, NC control can be executed while the data conversion is made one block at a time.
In a case where a plurality of numerically controlled machine tools are to be subjected to direct control (group management control), then numerically controlled machined tools that differ from one another (see CNC1, CNC2, . . . in FIG. 1) can be made to execute the same NC machining simultaneously with one type of NC data if a central host computer is provided with the abovementioned functions.
The foregoing relates to a case where the correlation between G or M codes and functions is registered for NC data of each type. However, it is possible to adopt an arrangement in which, in a combination of all types of NC data, a correlation is stored between G codes of NC data of a certain type and G codes of NC data of another type.
Further, the foregoing relates to a case where all tables are stored, namely the G-code conversion table, M-code convertion table and coordinate command code conversion table. However, it is permissible to store only one of these tables or to store other conversion tables.
In accordance with the present invention as described above, the arrangement is such that conversion tables for converting first NC data into second NC data are preregistered, and the format of the first NC data is changed into the format of the second NC data by using these tables. Accordingly, the invention is useful in that NC data can be changed automatically to NC data having a different data format without using a part program based on automatic programming language.
|Cited Patent||Filing date||Publication date||Applicant||Title|
|US4086633 *||Jun 11, 1976||Apr 25, 1978||Oki Electric Industry Co., Ltd.||Numerical control system with program access function|
|US4092720 *||Oct 6, 1976||May 30, 1978||U.S. Philips Corporation||Multi-tool machine provided with a numerical control system|
|US4484286 *||Apr 29, 1981||Nov 20, 1984||Fujitsu Fanuc Limited||Numerical control system|
|US4530046 *||Mar 17, 1983||Jul 16, 1985||Toyoda Koki Kabushiki Kaisha||Method of inputting machining information to a machine tool numerical controller and apparatus therefor|
|US4587608 *||Oct 29, 1983||May 6, 1986||Fanuc Ltd.||Method of automatically creating numerical control data in one of a plurality of data formats|
|US4591968 *||Apr 1, 1983||May 27, 1986||Fanuc Ltd.||Numerical control method|
|US4692872 *||Jul 5, 1985||Sep 8, 1987||Fanuc Ltd||Numerical control system with plural groups of miscellaneous functions|
|Citing Patent||Filing date||Publication date||Applicant||Title|
|US5028923 *||Jan 23, 1989||Jul 2, 1991||Fanuc Ltd||ISO/EIA code converting method|
|US5057995 *||Apr 15, 1988||Oct 15, 1991||Fanuc Ltd.||Robot control apparatus|
|US5099413 *||Dec 6, 1988||Mar 24, 1992||Sadashiro Sakai||System which reads type and position of task element marks on a matrix of program tasks for automatically generating programs|
|US5159558 *||Oct 23, 1989||Oct 27, 1992||Fanuc Ltd||Part program execution method for converting a part program into numerical control data|
|US5229950 *||Apr 5, 1991||Jul 20, 1993||Mitsubishi Denki K.K.||Numerical control unit|
|US5270918 *||Nov 1, 1990||Dec 14, 1993||Fanuc Ltd.||Automatic programming method|
|US5608641 *||Aug 29, 1994||Mar 4, 1997||Johannes Heidenhain Gmbh||Method and apparatus for simplifying the task of retrieving and accessing a segment of a numerical control (NC) program|
|US5784281 *||Aug 23, 1996||Jul 21, 1998||Qcam||Non-graphical automation of machine controls|
|US5901329 *||Feb 7, 1995||May 4, 1999||Fujitsu Limited||Data processing terminal which determines a type of an external device|
|US5914876 *||Jun 5, 1996||Jun 22, 1999||Mitsubishi Denki Kabushiki Kaisha||Numerical controller having expanded control word set|
|US6557765||Jan 21, 1999||May 6, 2003||Fujitsu Limited||Data processing terminal|
|US8041445 *||Jan 31, 2006||Oct 18, 2011||Postech Academy-Industry Foundation||Transformation method of G-code into step-Nc part program|
|US20060253846 *||Mar 23, 2006||Nov 9, 2006||Fanuc Ltd||Program conversion apparatus|
|US20080234857 *||Mar 17, 2008||Sep 25, 2008||Fanuc Ltd||Numerical controller capable of executing G-code commands in path table operation|
|US20080281462 *||Jan 31, 2006||Nov 13, 2008||Postech Foundation||Transformation Method Of G-Code Into Step-Nc Part Program|
|US20080281463 *||Jan 31, 2006||Nov 13, 2008||Suh Suk Hwan||Method of Non-Linear Process Planning and Internet-Based Step-Nc System Using the Same|
|US20130345854 *||Jun 19, 2013||Dec 26, 2013||Mitutoyo Corporation||Control method, non-transitory computer readable medium and controller of numerical control machine tool|
|U.S. Classification||700/181, 318/568.1|
|International Classification||G05B19/4093, G05B19/408|
|Cooperative Classification||G05B19/408, G05B2219/35534, G05B2219/36242|
|Jan 7, 1988||AS||Assignment|
Owner name: FANUC LTD., 3580, SHIBOKUSA AZA-KOMANBA, OSHINO-MU
Free format text: ASSIGNMENT OF ASSIGNORS INTEREST.;ASSIGNORS:TANAKA, KUNIO;ONISHI, YASUSHI;REEL/FRAME:004859/0457
Effective date: 19871225
Owner name: FANUC LTD., A CORP. OF JAPAN, JAPAN
Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:TANAKA, KUNIO;ONISHI, YASUSHI;REEL/FRAME:004859/0457
Effective date: 19871225
|Dec 25, 1990||CC||Certificate of correction|
|Jun 10, 1993||FPAY||Fee payment|
Year of fee payment: 4
|Aug 5, 1997||REMI||Maintenance fee reminder mailed|
|Dec 28, 1997||LAPS||Lapse for failure to pay maintenance fees|
|Mar 10, 1998||FP||Expired due to failure to pay maintenance fee|
Effective date: 19971231