A method for preparing numerical control information

Abstract: Data necessary for machining is divided into several items and then entered, item-by-item, in accordance with certain rules, in an apparatus for preparing numerical control information. The apparatus responds by executing predeter­ mined arithmetic and editing operations to prepare the numerical control information. To input the data, language and graphics readily understandable by one who can prepare or comprehend an ordinary blueprint are displayed on a display screen provided on the apparatus, the display using ordinary characters and symbols to request that the operator enter the required data. The operator responds to the request by using ordinary numerals, characters and symbols to enter the required data in the apparatus for preparing the numerical control information.

Description: This invention relates to a method for preparing numerical control information. In numerically controlled machining it is required that a variety of numerical control (NC) information be entered in a numerical control device so that a machine tool employing the NC device may machine a workpiece drawn out on a blueprint. An increase in the productivity of a numerically controlled machine tool could be expected if it were possible for an ordinary individual to enter the NC information quickly and accurately in a simple manner. Ordinarily the NC information for the control of a machine tool is stored by punching it in a paper NC tape or by writing it in a portable bubble cassette memory. The numerical control device, while reading the NC information several blocks at a time for the NC tape or from the portable bubble cassette memory, processes the information and sends commands to the NC machine tool which responds by performing the prescribed machining operation. The NC information stored on the NC tape or in the portable bubble cassette memory is prepared by manual calculation or by using a computer. The manual calculation method used, for example, in the numerical control of a contour, proceeds in the following manner for a simple two-dimensional figure. First, the diagram of the blueprint is divided into blocks of line segments and arcs, and information relating to each of the blocks is assembled line-by-line in the form of a list or table, thereby to create a process sheet. Information is prepared in accordance with the process sheet and is then stored sequentially on the NC tape or in the portable bubble cassette memory. In accordance with the computer method, input language for automatic programming is used to prepare a part program for each workpiece, an appropriate medium is used to input the part program in an apparatus that prepares numerical control information through use of a computer, the apparatus prepares the numerical control information automatically on the basis of the input data, and the numerical control information is stored on an NC tape or in a portable bubble cassette memory. Both of these methods for preparing NC information are disadvantageous because an individual not accustomed to such practice would have to remember how to prepare process sheets or would have to memorize the input language for automatic programming. An individual not having received such training would find it almost impossible to prepare the NC information. Furthermore, even an individual skilled in NC information preparation finds the task a troublesome one when adopting the conventional methods described above. Hence there is great demand for a system that would enable an NC machining procedure to be input and processed quickly, simply and accurately by an operator of ordinary skill. Until now a novel system of this type has not been realized in the art. DE-A-1 574 606 discloses a method of preparing numerical control information for use in operating a machine tool, in which an input keyboard carries a plurality of keys having different article shapes shown thereon. An operator can initiate preparing numerical control information for machining an article of a particular shape by pressing the key displaying that shape. However, the operator is restricted to those shapes shown on the keys and cannot define his own shapes beyond these. In the published Proceedings of the 16th Annual Meeting and Technical Conference of the Numerical Control Society, 25th - 28th March 1979, pages 56-71, Los Angeles, Spring Lake, U.S.A., D.C. Beran writes an Article entitled "Numerical control programming via computer graphics" which describes another method of preparing numerical control information but which requires a skilled programmer using a programming language, as is apparent from the introduction to the Article. Finally, the Journal ZwF 74 (1979) part 10, pages 482 to 486, discloses a method of preparing numerical control information for use in operating a machine tool, comprising the steps of the preamble of the attached claim 1. The present invention may enable even an inexperienced operator to prepare numerical control information relating to arbitrary article shapes quickly, simply and accurately. Also, it may enable numerical control informaton to be preapred in a simple manner without the use of a special language. According to the present invention there is provided a method of preparing numerical control information as set out in claim 1. Other features and advantages of examples of the invention will be apparent from the following description taken in conjunction with the accompanying drawings, in which: Fig. 1 is in perspective view a numerical control information preparing apparatus for practicing the present invention; Fig. 2 is a front view of an input keyboard; Fig. 3 is a front view of a symbol keyboard; Fig. 4 is a front view of a function keyboard; Fig. 5 is a view showing a pattern which appears on a display screen during the input of data relating to coordinate system selection; Fig. 6 is a view of a pattern which appears on a display screen during the input of data relating to part shape; Fig. 7 is a sectional view showing the shape of a machined part; Figs. 8 and 9 are views of other patterns displayed on a display screen during the input of data relating to part shape; Fig. 10 is a view showing a comparison between shape symbols and numbers corresponding thereto; Fig. 11 is a view showing shape codes stored in a memory located within the apparatus for preparing numerical control information; Fig. 12 is a view of still another pattern which appears on a display screen during the input of data relating to part shape; Fig. 13 is a view which is useful in describing the manner in which registered graphics are added together to form new registered graphics; Fig. 14 is a view of a pattern which appears on a display screen during the input of data relating to starting stock dimensions; Figs 15 through 20 are views useful in describing the input of data relating to the dimensions of a part; Fig. 21 is a view of a pattern which appears on a display screen during the input of data relating to machining areas; Fig. 22 is a view of another pattern which appears on a display screen during the input of data relating to machining areas; Fig. 23 is a view of a pattern which appears on a display screen during the input of data relating to a machining starting point; Fig. 24 is a view of a pattern which appears on a display screen during the input of data relating to tool type selection. Fig. 25 is a view of a pattern which appears on a display screen during the input of data for specifying a selective tool; Fig. 26 is a view of a pattern which appears on a display screen during the input of data relating to a machining schedule; Fig. 27 is a view of a pattern which appears on a display screen during the input of data required for processing a machining schedule; Fig. 28 is a view of a pattern indicating a tool path; Fig. 29 is a view of a pattern which appears on a display screen during the input of data relating to the dimensions of a special starting stock; Fig. 30 is a block diagram showing the construction of an apparatus for preparing numerical control information; and Fig. 31 is a perspective view showing another embodiment of apparatus for preparing numerical control information. When preparing numerical control information according to a preferred example of the present invention, data required for a machining operation is divided into main items shown below, the machining data is entered, item-by-item, in a numerical information preparing apparatus in accordance with certain rules, and predetermined arithmetic and editing operations are executed within said apparatus on the basis of the input data, thereby to prepare numerical control information. Main items (1) Selection of coordinate system This data indicates in which of four quadrants a workpiece is placed for projection. In other words, the data indicates whether the drawing on a blueprint is expressed in terms of a first, second, third or fourth angle projection. The data giving such indication is applied as an input to the NC information preparing apparatus which will be described later. (2) Input of figures The contour of the finished workpiece or part as represented on the blueprint is specified through the use of graphic symbols or the like. The resulting data is then applied as an input. (3) Input of shape and dimensions of stock material Data is obtained to give an indication of the shape and dimensions of the principal portions of the starting stock which is to be machined. This data also is applied as an input. (4) Input of part dimensions Data is obtained to give an indication of the final dimensions of each portion of the finished workpiece. This data is applied as an input. (5) Designation of rough machining areas When cutting a workpiece from the starting stock by cutting work, rough cutting down to a certain region measured from the stock surface is carried out in order, say, to shorten machining time. Data indicative of the rough-cut region is obtained and applied as an input. If the rough-cut regions extend over several regions because of the shape of the starting stock, the shape intended for the workpiece and the shape of the cutting tool, then data indicative of each of these regions is obtained and applied as an input. (6) Designation of machining starting point It is necessary at the start of machining to determine the position of the machining starting point in order to indicate where the cutting tool is initially located. Therefore the position of the machining starting point is set in advance, and the data indicative thereof is applied as an input. (7) Selection of appropriate tools When a single machine tool is equipped with a plurality of tools, as in the case of a turret lathe or machining center, various tools are selected by the machining portion of the machine tool, and those tools best suited for the various locations on the workpiece must be employed. Data indicating what tools are to be used and in what order is, therefore, extremely important in the machining process. This data is obtained and applied as an input. (8) Designation of appropriate tool information A wide variety of tool information exists in connection with tools used for cutting work. For example, such information includes the shape and dimensions peculiar to each tool and, when tools are mounted on a pedestal or holder, the distance from the center of the mounting arrangement to the cutting end of each tool. True machining information cannot be obtained unless the information of the type described is given for each and every tool that is to be employed. The pertinent data must therefore be acquired and applied as an input. (9) Designation of machining schedule In order to cut a single part from the starting stock and work the part into a finished item, a variety of machining operations must be applied, such as rough cutting applied to surfaces and to internal portions, boring, surface finishing and threading. It is therefore necessary to acquire, for every portion of the article, information indicative of the kind of machining to be applied and where it is to be applied. The pertinent data is applied as an input. (10) Processing of machining schedule Once the machining schedule has been designated, the information necessary for processing the schedule is provided, and the paths over which the tools are to move are computed for such information. The method of supplying the above data to the apparatus for preparing the NC information makes no use whatsoever of special programming language, unlike the method employed in the prior art. Instead, the apparatus presents a visual display of terminology and graphic representations which may be readily comprehended by one having ordinary skill in blueprint reading or preparation, and assists the operator in inputting the necessary data by displaying commonly employed characters and symbols on a display screen. An operator using such characters and symbols enters the necessary data into the apparatus for preparing numerical control (NC) information. The apparatus will be referred to as "the present apparatus" hereinafter. Inquiries and the operator's responses to the inquiries take place for each of the main items mentioned above and in accordance with a predetermined sequence within each main item. The operator, merely by pressing a key for advancing processing upon the completion of a single information input, is able to advance each processing step in accordance with the predetermined sequence without error. The present apparatus, following entry of the total data relating to part machining, uses the data to prepare NC information necessary for the fabrication of the part specified by the blueprint. When an arrangement is adopted in which the results of tool path computations are fed to an interpolator, the present apparatus provides a numerical control information preparation system in a numerical control device. When the results of the tool path computations are punched in a paper tape using an NC tape format, or when they are stored in a tape bubble cassette, the present apparatus provides a numerical control information preparation system in a device for automatic NC tape preparation, or in a device for automatic NC programming. The apparatus for preparing numerical control information includes a keyboard section, as shown in Fig. 1, for entering information. This section includes an input keyboard 1 provided with such keys as numeric keys, an addition key, subtraction key, multiplication key, division key and keys for a comma and parentheses, as depicted in Fig. 2, a symbol keyboard 2 having symbol keys used to express the figures shown on a blueprint, and keys such as an IN key for loading data into memory, as illustrated in Fig. 3, and a function keyboard 3 provided with a TURN PAGE key and other functions keys, as shown in Fig. 4. The apparatus further includes a graphic display screen 4 that makes use of a CRT. The display screen 4 has an upper portion which includes a horizontal section for displaying input data item identification, a central portion for displaying input data and graphics as well as preset data which has been called, and a lower portion which includes a horizontal section for displaying input information. This section displays inquiries made by the present apparatus, and the operator's responses to the inquiries. A terminal 5 in Fig. 1 is adapted to send data from the apparatus to an NC information output unit such as a tape puncher, a portable bubble cassette or a cassette magnetic tape. A terminal 6 is adapted to send data from the apparatus to an NC interpolator. The system and apparatus described above permits an ordinary technician to prepare an NC tape simply and accurately without the use of special language, and allows production speed to be increased in comparison with the prior art. While the equipment for entering data into the present apparatus generally employs a keyboard of the type described above, a data input unit using a Rand tablet may be employed to input the data, or a device that enables inputs to made orally can be substituted for the keyboard. Using either of the latter arrangements makes it much easier to input graphics than with the keyboard arrangement. It is of course possible to use the keyboard for entering data such as numerical values, and to use the Rand tablet or oral arrangement solely for the input of graphics. To facilitate the understanding of the present invention, an inventive system will be described for a case in which numerical control information relating to a turning operation is prepared. (1) Selection of coordinate system, as shown in Fig. 5. When the START key on the function keyboard shown in Fig. 4 is pressed, graphics and characters relating to coordinate system selection are displayed on the graphic display screen 4 depicted in Fig. 1. In other words, the screen 4 presents a display of four diagrams representing first, second, third and fourth angle projections, along with numerals 1, 2, 3, 4 representing the respective quadrants corresponding to the four displayed graphics. In addition, a numeral 1, 2, 3 or 4 is displayed in a section reading "PRESET COORDINATE SYSTEM:". The numeral is that of a single coordinate system preset as an initial value. Further, the lower portion of the screen, namely an input information display section 51, reads "COORDINATE SYSTEM=" and presents a display of the information entered by the operator. The operator, depending upon the quadrant in which the part is represented on the blueprint, and using the input keyboard 1 and symbol keyboard 2, shown in Figs. 2 and 3, respectively, presses the "1" key and then the IN key, the "2" key and then the IN key, the "3" key and then the IN key, or the "4" key and then the IN key, thereby to supply the present apparatus with the data indicating whether the blueprint has been prepared by the first, second, third or fourth angle projections. The coordinate system corresponding to the numerical values input by this operation is used throughout the data processing that follows. When the preset value (i.e., the preset coordinate system) is to be used as is, the operator need merely press the IN key. When the selection of the coordinate system is completed in this manner, the number of the new coordinate system, selected and entered into the present apparatus in the above fashion, is displayed in the "PRESENT COORDINATE SYSTEM:" section. Instead of displaying the data for all four quadrants on the CRT screen simultaneously and then selecting the desired data as described above, it is possible to display the coordinate systems, or shapes representing them, individually in sequence using a first key, and then select the coordinate system which is desired using a second key. Operation shifts to the next item following the input of the total data necessary for selecting the coordinate system. (2) Input of figures Next, information necessary for inputting the graphics is displayed on the display screen 4 in the manner shown in Fig. 6. Specifically, the upper portion of the screen presents a display reading "PART SHAPE", signifying an information input operation for the shape of the particular part. Graphic inputs are not limited to one part; information relating to the shapes of a plurality of parts can be entered and stored in memory. Therefore, a registered graphics display section 63 is provided immediately below the "PART SHAPE" section. The display section 63 consists of up to several dozen lines for displaying code numbers and shapes, in symbolic form, corresponding to the respective parts. In addition, the lowermost section of the display screen 4 consists of two rows. The first row is a selected information display section 62 for displaying a code number selected from the plurality of code numbers mentioned above, as well as the graphic representation, in symbolic form, corresponding to the code number. The second row is an input information display section 61. When no information relating to the shape of a part or parts has been fed into a storage device located in the present apparatus, only the code numbers, starting from 001, appear sequentially in the registered graphics display section 63, and only the expression "CODE=" appears in the input information display section 61. Assume that a figure drawn out on a blueprint and shown in Fig. 7 is to be input for the code number 001. In this case the operator presses the key "0" twice and the key "1" once and the input keyboard shown in Fig. 2. This caused "001" to be displayed in the input information display section 61. Next, the operator presses the key IN on the symbol keyboard of Fig. 3 to enter the code number 001 into the present apparatus. This causes "001" to be displayed in the selected information display section 62 shown in Fig. 6 and, at the same time, causes the input information display section 61 to switch over to a display reading "SHAPE=". Thus, the apparatus urges the operator to input the information regarding the configurations to be machined using the symbol keyboard 2. The operator, while referring to the graphic representation shown in Fig. 7, presses the → key corresponding to the straight line 7.1, the ↓ key corresponding to the straight line 7.2, the key → key corresponding to the straight line 7.3, the C key corresponding to the corner portion 7.4, the ↓ key corresponding to the straight line 7.5, the R key corresponding to the small arc 7.6, the ← key corresponding to the straight line 7.7, the ↓ key corresponding to the straight line 7.8, and the ← key corresponding to the straight line 7.9. This causes the symbols →, ↓, →, C, ↓, R, ←, ↓, ← to appear successively in the input information display section 61, as depicted in Fig. 8. Lastly, the operator presses the key IN to supply the storage device in the present apparatus with the information indicated by the graphic symbols, to display the graphic symbols "→, ↓, →, C, ↓, R, ←, ↓, ←" after the code number 001 on the graphic display screen 4, and to register the graphic representation of Fig. 7 at the code number 001. At the same time, the graphic symbols "→, ↓, →, C, ↓, R, ←, ↓ , ←" are displayed after "001=" in the selected information display section 62. The shape defined by the symbols displayed in the selected information display section 62 represents the shape the machined part will assume. If it is required to input other graphics in addition to that described above, the foregoing operation is repeated to register the graphics as represented by the symbols in Fig. 9. In this way sets of representations of respective shapes of articles able to be machined are prestored as data in a memory by an operator entering via the keyboard a series of items of data (e.g. arrows) which indicate the directions of extent of successive edges of an outline of each article, each of said data items being enterable separately by the operator and representing a specific direction of extent. Since the registered graphic information is not destroyed until reloading, standard graphic information of the type which appears every time an NC tape is prepared is not destroyed at the time of NC tape preparation but is registered in the storage device of the present apparatus and need only be read from the storage device and reused when new IC information is prepared. A case will now be described in which graphic information registered in the present apparatus is extracted and reused as input information. The prestored shape data is successively recalled for activating the display device according to a predetermined sequence and the article shapes are displayed to an operator as successive inquiries according to said sequence by means of characters and/or symbols. Thus, displayed after each code number providing with others a sequence of inquiries in the registered graphic display section 63 is a set (figure code) of symbols which corresponds to the respective code number and which represents the registered graphic shape. The sets are arranged in the form of a menu which the operator scans to locate the set of symbols representing the graphic that he wishes to input. The operator, once he has found the sets of symbols representing the desired graphic, punches in the code number using the input keys shown in Fig. 2. For example, assume that the operator wishes to call the graphic registered at code 001. In this case, the operator presses the keys "0", "0", "1", in that order, causing the code number "001" to appear in the input information display section 61, as shown in Fig. 9, and causing the "CODE=" display to change to the "SHAPE=" display, also as shown in Fig. 9. At the same time, "001=→ ↓ →C ↓ R← ↓ ←" appears in the selected information display section 62. Then, upon checking that the displayed symbols and the shape of the part drawn out on the blueprint are correct, the operator presses the IN key. The graphic information displayed in selected information display section 62 therefore serves as the information for the next machining operation. When the operator calls a previously registered graphic and wishes to modify its content upon checking the shape of the part, he presses the symbol key or keys for the new shape when "SHAPE=" appears in the input information display section 61, and then presses the IN key. This modifies the content registered after the code number 001, and modifies the content of the selected information display section 62. It also causes "CODE=" to appear in the input information display section 61. Other previously registered graphic information is modified by continuing the foregoing series of operations. The code numbers consist of three digits, as shown in Fig. 6. Graphic registration is possible for code numbers up to 999 if the storage capacity so permits, but it would be quite impossible to display the information corresponding to all 999 code numbers simultaneously on the same display screen. Any of several expedients can be adopted to deal with this situation. For example, the function keyboard 3 can be provided with a TURN PAGE key, as shown in Fig. 4, or it is possible to adopt an arrangement in which, when the code number is entered in the input information display section 61, the page including that code number is also displayed. Or, in another alternative, an arrangement can be adopted wherein code numbers are advanced sequentially to display the registered codes and graphic symbols one after another, thereby enabling a search of a large number of codes and graphics. In the embodiment described above, the shapes and directions of line segments defining the contour of a part expressed on blueprint are represented by arrows and characters, though they are actually stored in memory as numerals and characters. When the information in the storage device is displayed on the display screen 4, a generator is used to convert the numerals into the arrow symbols so that said information can be displayed in an easily understandable fashion in the form of arrows and characters. If the generator is considered too costly, a table showing the correspondance between the arrow symbols and numerals can be prepared, as shown in Fig. 10, so that numerals can be employed instead of the arrows to express the shapes of the line segments. This makes it possible to dispense with the generator for the number-to-arrow conversion, and even with that portion of the keyboard 2 used to input the arrows for the graphic display, in which case keyboard 1 could be used to input the graphics. This would enable the present apparatus to be provided at a lower cost. Fig. 11 shows a comparison between shape codes corresponding to code numbers when the shape codes are expressed as numerals and characters (alphanumerics), and the shape codes when they are expressed in terms of the shape symbols, namely the arrow marks. For reference, Fig. 11 shows also the contours of parts corresponding to the respective shape codes. Fig. 12 shows an example in which the shape codes corresponding to the code numbers are displayed on the display screen 4 in terms of both the shape symbols (arrows and characters) and alphanumerics. There are many cases where an auxiliary portion such as a flange or boss is added to a certain fundamental shape in order to provide the desired part. The present apparatus allows this to be accomplished by adding a previously registered shape code for the auxiliary portion to the previously registered shape code for the fundamental shape. This will now be described in greater detail. First, assume that the input information display section 61 reads "CODE=". Using the input keyboard, the operator punches in a code number, such as "003", for the new shape, and enters this code by pressing the IN key. This causes the input information display section to change over to the "SHAPE=" display. Now assume that the operator wishes to combine the shape specified at code number 001 and the auxiliary shape specified at code number 002 to create a new shape code, as shown in Fig. 13. In this case the operator uses the input keyboard 1 to punch in "001+002", and then presses the IN key to enter this data. This in effect inputs the shape code or shape symbol group of the type specified at code number 003 in Fig. 13. The shape corresponding to this code number is shown at the lower righthand side of Fig. 13. The above operation is not limited to the addition of two code numbers but can be used to add three or more code numbers as well. Operation shifts to the next item following the input of the total data necessary for entering the graphics in the manner described above. (3) Input of shape and dimensions of starting stock The graphic display screen 4 displays information corresponding to stock dimension inputs, as shown in Fig. 14. Specifically, the upper section of the display screen now reads "STARTING STOCK DIMENSIONS", signifying an information input operation for the shape and dimensions of the starting stock. Starting stock to be subjected to a turning machining operation may be broadly classified into round bar stock, pipe stock and stock of a special shape. The screen 4 displays the shape of each stock type, shape numbers 1, 2 and 3 corresponding to the stock shape, and specified dimensions (outer diameter, inner diameter and length) for each stock shape, the dimensions being identified by D, D 0 and L. The horizontally extending phantom lines in the graphic displayed on screen 4 in Fig. 14 represent the axes of revolution (turning center) of the corresponding starting stock. When the starting stock employed at a factory includes a number of specimens of standardized shape and dimensions, entering such shape and dimension data individually each time an NC tape is prepared is a troublesome task. The lower righthand portion of the display screen 4 therefore is provided with a set value display section 142. Specifically, the arrangement is such that the values indicating the standardized shapes and dimensions are registered in advance and then used as they are whenever necessary. The set value display section 142 displays these shape and dimension values which will have been registered earlier in the manner described above. Provided at the lowermost portion of the display screen 4 is an input information display section 141 that initially presents a display reading "STARTING STOCK TYPE" which is an inquiry addressed to the operator. The operator, viewing the display screen 4, selects the number (1, 2 or 3) conforming to the starting stock which will be machined, punches in the number using the input keyboard shown in Fig. 2, and then enters the number by pressing the IN key on the symbol keyboard. For example, assume that the starting stock is a round bar. In this case the operator presses the "1" key and then the IN key. If the starting stock is a pipe, he presses the "2" key and then the IN key, and if it is a starting stock of a special shape, he presses the "3" key and then the IN key. Thus, the present apparatus is supplied with the desired stock shape input. If, by way of example, the operator has selected the pipe shape, the word "PIPE" will be displayed in the set value display section 142 after the inquiry "STARTING STOCK TYPE". When the stock shape input operation is completed in the manner described above, the "STARTING STOCK" inquiry vanishes and the inquiry "L=" appears. The operator therefore uses the input keyboard 1 to punch in the numerical value for the length of the starting stock, and then presses the IN key on the symbol keyboard. This causes the length information to enter the present apparatus and to be displayed in the set value display section 142. At the same time, the inquiry "D" vanishes and the inquiry "D" appears in the input information display section 141. Now the operator uses the input keyboard to type in the outer diameter of the starting stock, and then presses the IN key. This enters the outer diameter information in the present apparatus, displays the outer diameter in the set value display section 142, and switches the inquiry from "D" to "D 0 ". Now the operator uses the input keyboard to specify the inner diameter of the starting stock, and then presses the IN key. This enters the inner diameter information in the present apparatus and displays the inner diameter in the set value display section 142. This operation ends the input of information regarding the stock dimensions. If the starting stock type selected by the operator is the stock having the special shape (in which case the operator presses the keys "3" and IN as described above), the operator enters the information giving the length and outer diameter of the stock. Information specifying the special shape of the stock is entered via the same method described above in connection with the entry of the graphic information specifying the contours of the completed parts. The dimensions of each portion of the special starting stock must also be entered but, since the method of doing so is the same as that for inputting part dimensions, which will be described next, said method will not be explained in this section. (4) Input of part dimensions When the operation for entering the shape and dimension information relating to the starting stock has been completed, the starting stock shape previously selected in the manner just described is displayed on the screen 4 in the section 153 in the form of a dashed line. The figure of the starting stock is of a size conforming to the input dimensions, and it is displayed using the previously selected coordinate system. Characters B 1 , B 2 , B 3 , B 4 are displayed at the respective corners of the figure. The example depicted in Fig. 15 is for pipe starting stock, using a first quadrant coordinate system (coordinate system for a first angle projection). Displayed in section 152 is a group of previously input shape symbols specifying the contour of a part. The section 151 at the lowermost portion of the screen 4 displays inquiries regarding part dimensions, the operator responding to the inquiries by inputting dimensional values using the input keyboard 1 shown in Fig. 2. The inquiries for the necessary dimensions that appear in section 151 are displayed in the same order as the shape symbols inputs specifying the part shape. In other words, the first dimensional inquiry corresponds to the shape symbol at the far left of section 152, with the inquiries following the order of the shape symbols from left to right. The present apparatus comprehends each entry of dimension data made by the operator and responds by drawing out the contour of the part as the corresponding item of data is received. For example, in Fig. 15, the inquiry "D=" appears in section 151 with regard to the shape symbol → displayed at the far left of section 152. The operator responds to the inquiry by inputting the value "50" which will then appear after the "D=" in section 151, as shown in Fig. 16. The present apparatus immediately responds by drawing out a straight line a (x=50) and by displaying a serial number "1" at the starting point of the line. The serial number is for identifying a particular point on the part, as will be described later. Next, the inquiry that appears in the section 151 is "L=" relating to the length of the straight line segment a just drawn. The operator responds by entering the prescribed dimensional value. For example, using the input keyboard 1, the operator punches in the value "20" and then presses the IN key on the symbol keyboard 2. This causes the line a to be divided into a segment corresponding to the length "20", with the serial number "2" appearing at the end point of the line segment, as shown in Fig. 17. It will be seen that the shape symbol → at the far left of section 152 vanishes when the dimensional value concerning this symbol has been fed into the present apparatus. Next, processing is executed for the shape symbol ↓. This is accomplished by direction and length processing for a line segment b in a manner entirely similar to that just described. Specifically, the shape to be processed is given by ↓. Accordingly, a downwardly directed, vertically extending straight line b is drawn on the screen 4 starting from serial number "2", as depicted in Fig. 17. The operator, in response to an inquiry "D=" regarding the length of the drawn line b, enters the prescribed value using the input keyboard. For example, if the operator enters the value "40" and presses the IN key, the line b is divided into a segment whose end point corresponds to a diameter of "40", as shown in Fig. 18. A serial number "3" appears at said end point. It will be seen that the second shape symbol ↓ vanishes from the screen 4 when the operator has completed entering the dimensional information concerning said shape symbol. Next, in accordance with the shape symbol →, the present apparatus draws out a rightwardly extending straight line c from the end point of the line segment b , as shown in Fig. 18. The operator then follows the procedure described above to set the length of a line segment c' shown in Fig. 19. The operator continues processing data in this manner, the data being obtained from a part drawing similar to that shown in Fig. 7, but with the prescribed dimensions having been added thereto. In accordance with this procedure, a graphical representation of the type shown in Fig. 20 is drawn out on the display screen 4. This completes the entry of the part dimensions. When inputting the dimensions there will be cases where, say, a length of 100 mm is to be divided into 30 mm and 70 mm portions, with the 30 mm data and 70 mm data being entered separately, but where the 30 mm data is not written on the blueprint. When such is the case, if "100-70" is entered consecutively using the input keyboard and the IN key is then pressed, the 30 mm data will enter the present apparatus. Data can be entered in a similar manner using addition, subtraction, multiplication and division operations. (5) Designation of rough machining areas When the operator has completed entering the information relating to part dimensions, the words "Rough Cutting Area Partitioning" appear superimposed on the graphic of Fig. 20, as shown in Fig. 21. Both the cutting tool and machining procedure differ depending upon the area of the starting stock to be machined by turning. Specifically, they differ depending upon whether the inner or outer diameter of the starting stock is to be cut, or upon whether the end faces of the starting stock are to be cut. Machining areas must therefore be decided in accordance with the particular machining objective. To machine the starting stock into the previously input shape shown in Fig. 20, the starting stock is divided into an external machining area S, internal machining area T and end machining area U. To accomplish this, the operator uses the input keyboard shown in Fig. 2 and the shape symbol input keyboard shown in Fig. 3 to punch in "B", "5", "=", "5" and " ↑ ", and then presses the IN key. The apparatus responds by drawing an upwardly extending dotted line V from the point marked by serial number "5" on the part contour being displayed on the screen 4, and by attaching the label "B5" to the intersection of this line with the dotted line connecting points B1 and B2. Next, the operator punches in "B", "6", "=", "6" and "↓" and then presses the IN key, whereupon the apparatus responds by drawing a downwardly extending dotted line W from the point marked by serial number 6, and by attaching the label "B6" to the intersection of this line with the dotted line connecting points "B3" and "B4". Providing the new points B5 and B6 in this manner divides the figure of the starting stock into the external, internal and end face machining areas S, T and U, respectively, and enters the corresponding information in the present apparatus at the same time. The operator may choose to divide up the machining areas in a different manner. If he punches in "B" "5", "=", "4" "↖" and presses the IN key, and then punches in "B", "6", "=", "5" "↘" and presses the IN key, the points B5, B6 are obtained as shown in Fig. 22, allowing the operator to designate a different set of rough machining areas. Employing the foregoing methods allows the operator to designate rough machining areas at will. When the input of information necessary for the rough machining area designation has been completed, operation shifts to the next step. (6) Designation of machining starting point The graphic display screen 4 displays information for designating the machining starting point, as depicted in Fig. 23. Specifically, the uppermost portion of the screen reads "MACHINING STARTING POINT", signifying a machining starting point instruction. Drawn out at the central portion of the screen on the selected coordinate system are a workpiece 23.1 and a tool 23.2. The input information display section 23.3 at the lowermost portion of the screen 4 presents a display reading "MACHINING STARTING POINT (X o )=", requesting that the operator input the X o coordinate of the machining starting point. The operator complies by punching in the X o value using the input keyboard 1 and then by pressing the IN key on the symbol input keyboard 2. This applies the value of X o to the present apparatus as an input and causes the inquiry "MACHINING STARTING POINT (Z o )=" to appear in the input information display section 23.3, thereby requesting that the operator enter the value of Z o . He responds by entering the value in the same way that he entered the value X o . It should be noted the previously registered machining starting point data is displayed in the input information display section 23.4. When the operator wishes to make use of this data, he merely presses the IN key on the symbol input keyboard in response to an inquiry. The next operation starts when the input of information necessary for designating the machining starting point has been completed. (7) Selection of appropriate tools The graphic display screen 4 is adapted to display information relating to the selection of appropriate tools, as shown in Fig. 24. The uppermost portion of the screen reads "TOOL TYPE" or "MACHINING TYPE". Displayed immediately therebelow is list of tool or machining types, in the form of a menu, which the operator scans to locate the desired tool. A tool number precedes each tool type to facilitate tool selection. The input information display section ne.1 displays an inquiry "NO=" requesting that the operator perform a tool selection. The operator responds by punching in the tool number using the input keyboard 1 and then by pressing the IN key on the symbol input keyboard 2. This inputs the information for the selected tool and permits the operation to shift to the next step. (8) Designation of appropriate tool information The graphic display screen next displays information relating to the designation of appropriate tool information as illustrated in Fig. 25. The uppermost portion of the screen reads "OUTER DIAMETER CUTTING TOOL INFORMATION". The screen displays also the item, numerical value and figure for specifying the appropriate tool. For example, assume that the operator has selected the tool No. 2 for "OUTER DIAMETER CUTTING" in the foregoing tool selection step in order to cut the outer diameter of the workpiece, the tool having been selected from the list displayed on the screen 4, as shown in Fig. 24. The input of the pertinent information causes the screen 4 to display items necessary for the outer diameter cutting tool information, numerical values preset for this particular tool, and the figure of the cutting tool to facilitate the operator's understanding of the situation. The input information display section 25.1 at the lowermost portion of the screen 4 makes requests for the necessary data, the operator responding by entering numerical values such as each inquiry appears. In other words, when the inquiry "TOOL NUMBER" appears in the input information display section 25.1, the operator enters, say, tool number "01" by pressing the appropriate keys on the input keyboard 1 and then by pressing the IN key on the symbol keyboard 2. Inputting this information causes "01" to appear after "TOOL NUMBER" in the central portion of the screen, and causes the inquiry "TOOL NOSE POSITION X:" to appear in the input information display section 25.1. The operator responds by using the numerical keys on the input keyboard to punch in the value for the X dimension drawn on the screen 4 at the righthand side, and by pressing the IN key on the symbol input keyboard. This enters the appropriate information and causes the input value to be displayed after "TOOL NOSE POSITION X" at the central portion of the screen. The operator continues responding to the inquiries in the above fashion to sequentially enter the tool information. If the operator wishes to employ preset values in responding to the inquiries, he need merely press the IN key after the particular inquiry appears. More than one tool may be used to machine a single part; several tools are commonly used in practice. When all of the necessary data with respect to a single tool has been entered in the manner described above, the image displayed on the screen 4 returns to that shown in Fig. 24 to permit the selection of another tool. The selection of tools and the entry of the necessary information for each tool are repeated for as many tools as necessary. When the image on screen 4 returns to that shown in Fig. 24 following the input of the total tool information, the operator presses the "0" key and then the IN key to end the process and to shift operation to the next step. (9) Designation of machining schedule and processing of machining schedule When all of the necessary tool information has been entered by the operator, a display relating to machining schedule information appears on the display screen 4, as shown in Fig. 26. The upper portion of the screen reads "MACHINING TAPE". Displayed immediately therebelow is a menu of various machining operations. In addition, numbers are displayed before each machining operation indication in order to assist the operator in selecting the machining schedule. The input information display section 26.1 at the lowermost portion of the screen displays a "NO=" inquiry, requesting that the operator select a machining schedule. The operator responds by punching in the number of the required machining operation and then by pressing the IN key. For example, to select the "OUTER DIAMETER ROUGH MACHINING" operation, the operator presses the "3" key and then the IN key, whereby the information appearing on the screen 4 is replaced by material relating to rough machining of the outer diameter as shown in Fig. 27, in order to permit the present apparatus to begin processing for automatic preparation of NC information. Thus, in the manner described above, the present apparatus is supplied with input data necessary for preparing NC information. This data includes the shape and dimensions of the starting stock, the shape and dimensions of the finished part, the rough machining areas, the type and dimensions of the tool or tools to be used, and the coordinates of the machining starting point. As illustrated in Fig. 27, the upper half of the display screen 4 displays, both graphically and alphanumerically, the coordinate axes, starting stock shape, part shape and rough machining areas and the like, and the lower half of the screen displays the names of items of information necessary for executing the machining operations which the operator previously selected using the display of Fig. 26. All of the above is the result of the information so far entered by the operator. The input information display section 27.1 at the lowermost portion of the screen 4 displays inquiries to which the operator responds as they appear. Data frequently used in each item can be preset and then employed whenever necessary without having to be entered again by the operator. When the necessary information has been entered by the operator, the present apparatus computes the tool path and draws out the tool path on the screen 4 as shown in Fig. 28. The derived data is converted into NC data for the particular NC machine tool by means of post-processor program and is then fed out through the terminal 5 to a tape puncher to prepare an NC tape. Alternatively, the data may be sent through the terminal 6 to a pulse distributor to control the NC machine tool directly. Upon the completion of such processing, the present apparatus returns to the machining schedule selection step illustrated in Fig. 26 and stands by for numerical inputs from the operator in order to prepare subsequent machining information. (10) Input of shape and dimensions of special starting stock In the selection of starting stock shape described above in connection with Item (3), there are cases where special starting stock is selected. When the operator enters the information giving the length and outer diameter of the special starting stock, the starting stock appears in the selected quadrant on the display screen 4, with the outer diameter thereof being represented by a dashed line, as shown in Fig. 29. Next, the operator follows the same method employed for entering part shapes. That is, the operator observes the figure of the displayed special starting stock and presses the proper symbol keys in accordance with the contour of the stock. This causes the section 29.1 at the bottom of the display screen 4 to display a shape code such as "→ ↘ → ↘ ↓ ←". The operator then presses the IN key, causing a "D=" inquiry to appear in the input information display section 29.2. When the operator responds by entering "D=55", a straight line X=55 is drawn out on the screen, and "B1" is attached to the starting point. The next inquiry to appear relates to the length of a segment r of the straight line just drawn, the inquiry appearing as "L=" in input information display section 29.2. When the operator responds by entering the value 30 for this dimension, the line segment r corresponding to the length of "30" appears as shown in Fig. 29, and B2 appears at the end point of the line segment. This completes processing for the initial shape symbol "→", said shape symbol vanishing from the left-hand side of the display screen 4. The operator repeats this input operation in a similar manner for the other shape symbols to draw the contour of the special starting stock by means of the solid line within the dashed line that represents the outer diameter of the special starting stock. The input operation for the data relating to the shape and dimensions of the special starting stock ends when the solid line has completely defined the stock shape. The present invention has been described in connection with an embodiment relating to a turning machining operation. However, the invention can be similarly applied to other NC machining operations, such as milling and wirecut discharge machining operations. Fig. 30 shows a block diagram illustrating the construction of inventive apparatus for preparing numerical control information. A main central processing unit 100 is provided for preparing the NC information by processing the various data entering from a data input unit. A picture information memory 101 stores, picture-by-picture, all of the picture information which is displayed on the display screen 4 item-by-item. For example, such picture information consists of the graphics and alphanumerics necessary for selecting a coordinate system, as shown in Fig. 5. An input data memory 102 stores numerical values and other data input by the operator in response to inquiries which appear on the display screen 4. A control program memory 104 stores a control program. Numeral 105 denotes an arithmetic processor, 106 a data bus, and 107 an address bus. A central processing unit 200, considerably smaller than the central processing unit 100 administers data processing on the input/output unit side. Numeral 201 denotes initial program loader, 202 a memory for storing the control program, and 203 a cassette tape memory for storing edited numerical control information and the like. A display control circuit 204 includes a character generator, a graphics generator for generating signals indicative of the graphics actually displayed on the display screen 4, a frame memory for storing one frame of graphic information, and a frame memory for storing one frame of alphanumeric information. Numeral 205 denotes a CRT display, 206 a printer control circuit, and 207 a printer which enables the data displayed on the CRT display 205 to be printed out when so desired. A puncher 208 incorporates a paper tape reader PTR and a paper tape puncher PTP. Numerals 209, 210 and 211 denotes an XY plotter, data bus and address bus, respectively. Numeral 300 designated a keyboard, and 400 an interface memory for the transfer of information between the main side and input/output side. Numeral 500 denotes an NC device for controlling a machine tool 501. The latter can be accomplished under the control of the central processing unit 200 using NC information stored in the cassette tape memory 203. Although not shown in Fig. 30, it is possible to provide information input devices such as a Rand tablet and audio input device in addition to the keyboard 300. Furthermore, as shown in Fig. 1, the present apparatus is provided separately of the NC device. However, for the purpose of size reduction, the present apparatus can be mounted on a panel 502, as shown in Fig. 31, and then fit into the front side of the NC device to become an integral part thereof. As many apparently widely different embodiments of this invention may be made without departing from the spirit and scope thereof, it is to be understood that the invention is not limited to the specific embodiments thereof except as defined in the appended claims. In general there is provided a system for preparing numerical control information wherein data necessary for machining is divided into several items and then entered, item-by-item, in accordance with certain rules, in an apparatus for preparing numerical control information. The apparatus responds by executing predetermined arithmetic and editing operations to prepare the numerical control information. To input the data, language and graphics readily understandable by one who can prepare or comprehend an ordinary blueprint are displayed using ordinary characters and symbols to request that the operator enter the required data. The operator responds to the request by using ordinary numerals, characters and symbols to enter the required data in the apparatus for preparing the numerical control information.

Claims: A method of preparing numerical control information for use in operating a machine tool comprising the steps of: programming the shape of an article to be machined; displaying characters and/or symbols relating to the shape of the article to be machined; and inputting by an operator prescribed data in the form of characters and/or symbols and numerical values relating to the article; characterised in that: sets of representations of respective shapes of articles are prestored as data in a memory by an operator entering via a data input device (1,2,3) a series of items of data (→ ↓ C,R) which indicate the directions of extent of successive edges of an outline of each respective article, each of said data items (→ ↓ C,R) being entered separately by the operator and representing a specific direction of extent; the prestored shape data is successively recalled for activating a display device (4) according to a predetermined sequence of sets of representations of respective article shapes; the article shapes are displayed to an operator as successive inquiries having codes (001, 002, 003...) according to said sequence, by means of characters and/or symbols (→ ↓ C,R) displaying to the operator the directions of extent of successive edges of the outlines of the displayed article shapes; the operator chooses a required shape from amongst the displayed article outlines, by comparing an article shape to be machined with the displayed article outlines as represented by said characters and/or symbols (→ ↓ C,R) until he locates a displayed article outline which corresponds to the article shape to be machined as regards the directions of extent of the successive edges of its outline; the operator inputs the located displayed article shape by using a data input device (1,2,3) to enter the code thereof; and subsequently inputs the dimensions of the article shape to be machined by inputting the dimensions to be ascribed to said successive edges of the outline thereof. A method for preparing numerical control information according to claim 1, characterised in that the data input device (1, 2, 3) comprises a keyboard. A method for preparing numerical control information according to claim 1, characterised in that the data input device comprises a Rand tablet. A method for preparing numerical control information according to claim 1, characterised in that the data input device comprises both a Rand tablet and a keyboard, input data being obtained from both said Rand tablet and said keyboard. A method for preparing numerical control information according to claim 1, in which the data input device comprises an oral input device. A method according to any preceding claim, characterised by displaying inquiries and inputting data relating to coordinate system selection information (Fig. 5), shape information (Fig. 6), starting stock shape and dimension information (Fig. 14), part dimension information (Fig. 16), rough cutting area designation information (Fig. 21), machining starting point machining information (Fig. 23), appropriate tool selection information (Fig. 24), appropriate tool information designation information (Fig. 25), machining schedule designation information (Fig. 26), and machining schedule processing information (Fig. 27), said information relating to a figure drawn out on a blueprint, necessary data being input in the form of numerical values and graphics in accordance with said inquiries, thereby to prepare said numerical control information. A method according to any preceding claim, characterised in that figures representing selectable coordinate systems and numerical values corresponding thereto are displayed on the display device (4), a coordinate system, corresponding to numerical information input from numerical value input means on said data input device, being used in the preparation of said numerical control information (Fig. 5). A method according to claim 7, characterised in that the display screen of the display device (4) can be divided into a plurality of display sections in each of which can be displayed a graphic representing a selectable coordinate system, the pressing of a key on a keyboard serving as display section designating information, or coordinate values input from a Rand tablet serving as-the display section designating information, the coordinate system which is displayed in the designated display section being used in the preparation of said numerical control information. A method according to any of claims 1 to 6, characterised in that a plurality of shapes representing selectable coordinate systems are sequentially displayed on a display screen of said graphic display device (4) and desired shapes may be selected, the selected coordinate system being used in order to prepare said numerical control information (Fig. 5). A method according to claim 9, characterised in that there are provided a first key for sequentially displaying on the display screen a plurality of shapes representing coordinate systems, and a second key for selecting a desired coordinate system, the display of a graphic representing a coordinate system being changed by said first key, a coordinate system being selected by said second key. A method according to any preceding claim, characterised in that a numerical control information preparation device (30) is capable of recognizing the shape of a part on the basis of shape information input by shape symbol keys (Fig. 3), capable of inputting graphic symbols, provided on said data input device (1, 2, 3). A method according to claim 11, characterised in that shape symbol keys indicative of line segments for constituting the contour of a part are provided with directionality (Fig. 3), the shape of a part being recognized successively on the basis of the shape symbols and directional information possessed by the pressed keys. A method according to claim 11 or 12, characterised in that said numerical control information preparation device (30) provides a shape registration system, the shape of a part being stored in the memory, as information indicative of a retrievable shape, by creating a shape code in the form of a sequence of shape symbols constituting the contour of the part, and by attaching registration code numbers to the shape of said part (Fig. 11). A method according to claim 13, characterised in that a new registration code is designated with respect to a shape code input by the input device or with respect to a shape code read from the memory, the registration codes being registered in new designated addresses of the memory. A method according to any preceding claim, characterised in that registration codes corresponding to a plurality of previously defined shape codes can be added together by means of a numerical value input keyboard on the data input device, thereby to form information relating to a new shape obtained by combining the shapes designated by the shape codes (Fig. 13). A method according to any of claims 11, 12, 13, 14 and 15 in which, instead of shape symbol keys (Fig. 3) numerical value keys (Fig. 2) are made to correspond to shape symbols for entering the shape of a part, the numerical value keys being used to input information indicative of the shape of the part. A method according to any preceding claim, wherein selectable predetermined starting stock shapes and numerical values corresponding thereto are displayed on the display screen of said graphic display device, a starting stock shape corresponding to numerical information input by numerical value input means on said data input device being used in the preparation of said numerical control information (Fig. 14). A method according to any preceding claim, characterised in that the shape of a special starting stock can be input by said input device by using shape symbols keys on said data input device (Fig. 14). A method according to any preceding claim, characterised in that part portions, requiring an input of starting stock shape and dimension information, are displayed on a display screen of said graphic display device and numerical values, relating to said port portions, used in the preparation of said numerical control information are input sequentially by numerical input means on said data input device. A method according to any preceding claim, characterised in that a portion of a part contour, which portion corresponds to a shape symbol that applies directionality to the portion of the part contour, is drawn out on a display screen of said graphic display device, and wherein dimensions are specified by establishing correspondance between the length of said portion of the part contour and a numerical value input by numerical value keys on said data input device, said numerical control information being prepared by repeating this operation to successively input portions of the part contour (Figs. 15 to 20). A method according to claim 20, characterised in that a part contour of specified dimensions is displayed within the contour of a starting stock drawn out on the display screen (Fig. 20). A method according to claim 20 or claim 21, characterised in that a part shape symbol stored in the memory is read from said memory and displayed on the display screen of the graphic display device, a part shape symbol vanishing from the display screen whenever there is an input of information relating to a segment of the part contour corresponding to said part shape symbol (Figs. 17, 18 and 19). A method according to any preceding claim, characterised in that the contour of a part is drawn out within the contour of a starting stock displayed on a display screen of said graphic display device, and wherein there is an input of information that partitions, by means of line segments, the region between the part contour and starting stock contour along the boundary of a machining area, which information is input to a numerical control information preparation device and is employed in the preparation of said numerical control information (Figs. 21 and 22). A method according to claim 23, characterised in that position indicating symbols are assigned to specified points on the contours of the starting stock and part, and the specified points are interconnected thereby to describe machining areas, specified point information and line segment information describing the machining areas being employed in the preparation of said numerical control information. A method according to any preceding claim, characterised in that a list is displayed on a display screen of said graphic display device, said list comprising information relating to tools used in machining a part, and numbers corresponding to said tools, and wherein numbers of tools selected from said list are input by said data input device and employed in the preparation of said numerical control information (Fig. 24). A method according to any preceding claim, characterised in that an item for characterizing the type of a selected tool is displayed on a display screen of said graphic display device, and the specific tool selected for each item is input by using said data input device and is employed in the preparation of said numerical control information (Fig. 25). A method according to claim 26, characterised in that information corresponding to the items for characterizing the shape and type of a tool is displayed along with the shape of the tool on the display screen (Fig. 25). A method according to any preceding claim, characterised in that a list is displayed on a display screen of said graphic display device, said list comprising machining content and numbers correspondent thereto, and numbers specifying machining content that are selected from said list are input by said data input device and employed in the preparation of said numerical control information. A method according to any preceding claim, characterised in that graphics indicating machining area, and items of data necessary for computing a machining schedule, are displayed on a display screen of said graphic display device, said data being input sequentially using said data input device and employed in the preparation of said numerical control information (Fig. 27). A method according to claim 29, characterised in that a tool path is drawn out in a machining area upon completing entry of the necessary data and processing for tool path computation (Fig. 28).

Inventors: HAJIMU KISHI, KUNIO TANAKA, MASAKI SEKI, TAKASHI TAKEGAHARA, HAJIMU, KISHI, KUNIO, TANAKA, MASAKI, SEKI, TAKASHI, TAKEGAHARA
Applicants: FANUC LTD, FANUC LTD.
Application year: 1981
Main classification: G05B19
IPC codes: G05B19, B23Q15, G06F17