METHOD OF ENTERING PROFILE INFORMATION

Abstract: Profile information is input interactively without giving any particular attention to the chamfering or rounding at corners of a workpiece. After the definition of the profile is finished, the interactive screen (13a) for inputting the corner shapes is displayed (13), angles subtended by the neighbouring corner elements (EL(i), EL(i+1); (i=1,2,...) are calculated, and the intersecting angles are compared with the set angles to find the intersecting positions that can be regarded as protruding or indented corners. Under this condition, decision is made of (i) which set is collectively defined, all the corners (including protruding and indented corners), or the protruding corners alone, or the indented corners alone; and (ii) which process is done, rounding or chamfering. Then the profile information thus specified, including predetermined dimensions, are entered for the particular set of corners (either the protruding or indented corners above or both of them).

Description: This invention relates to a part profile input method and, more particularly, to a part profile input method in an NC data creating apparatus in which a part profile is specified by inputting profile elements of a part using keys, and NC data are created to perform machining in accordance with the specified part profile. An automatic programming system is available in which a conversational display and a function key (soft key) display are each presented in accordance with each step of a plurality of data input steps, a function key (soft key) conforming to a prescribed function and appearing on the function key display is pressed to thereby execute processing corresponding to the function, and an NC program is prepared using data inputted while referring to the conversational display. An automatic programming system of this kind, which will be described with reference to Fig. 6, successively displays predetermined prompt images (the conversational display) on a display screen in accordance with the following steps: (1) a first step of selecting execution of "AUTOMATIC PROGRAMMING"; (2) a second step of selecting data to be inputted, or in other words, a data input step to be executed next; (3) a third step of selecting the material of a blank; (4) a fourth step of setting surface roughness; (5) a fifth step of selecting a drawing format; (6) a sixth step of inputting the blank profile and the dimensions thereof; (7) a seventh step of inputting a part profile and the dimensions thereof; (8) an eighth step of inputting the machining reference point and turret position; (9) a ninth step of selecting a machining process; (10) a tenth step of selecting a tool and inputting tool data; (11) an eleventh step of deciding machining conditions; (12) a twelfth step of inputting cutting direction; (13) a thirteenth step of inputting cutting limits; (14) a fourteenth step of inputting whether or not an area is to be cut by the same tool; and (15) a fifteenth step of computing a tool path (i.e. of preparing NC data). An operator responds to these prompts by entering the necessary data from a keyboard. Finally, an NC program (NC data) is created using all of the entered data. In the part profile input step (the seventh step) performed by this NC data creating apparatus, a prompt (ES = ) calling for a part profile element is displayed on the display screen, as shown in Fig. 7. In response to this prompt, arrow keys (↑, →, ↓, ←, ↗, ↙, ↘, ↖, , ), a thread-cutting key, a chamfering key (C key), a rounding key (R key), a grooving key (G key) and a corner-removal key, which are provided on a keyboard, are operated in accordance with the part profile while a design drawing is observed. The part profile is thus inputted. Whenever a single part profile element is inputted using an arrow key, a prompt calling for the dimensions of this element is displayed. In response to this prompt, dimensions taken from the design drawing are inputted, whereupon profile element symbols PFS and graphic images PFG of these profile elements appear on the display screen. For example, when linear elements are inputted by pressing the arrow keys indicated by ↑, →, ↓, ←, ↗, ↙, ↖, ↘, prompts appear calling for the X coordinate (X E ) of the end point of the straight line, the Z coordinate (Z E ) of this end point, whether or not this straight line contacts the preceding profile element or the next profile element, the angle (A) which the straight line forms with the Z axis, etc. The dimensions written on the drawing are entered in response to these prompts. However, when the prescribed dimensions are not written on the drawing (as in the case of the angle formed with the Z axis, for example), this input is not required. When a circular arc is inputted by pressing the arrow keys indicated by and , prompts appear calling for the X and Z coordinates (X E ,Z E ) of the end point of the circular arc, the X and Z coordinates (X C ,Z C ) of the center of the circular arc, the radius R of the circular arc, and whether the arc contacts the preceding profile element or the next profile element. The dimensions written on the drawing are inputted in response to these prompts. When chamfering is inputted by the C key, a prompt calling for the amount of chamfering appears. When rounding is inputted by the R key, a prompt inquiring about the radius of rounding is displayed. In response, the dimensions are entered in similar fashion. When inputting of all profile elements is completed, all of the profile element symbols PFS of the part profile the overall part profile figure PFG are displayed on the display screen. In a machining operation such as turning, there are cases where all corner portions C1 ∼ C5 are provided with a prescribed chamfer or roundness, as shown in Fig. 8(a), or where all the outside corner portions (projecting corners) K1 ∼ K3 among the corner portions are provided with a prescribed chamfer or roundness, as shown in Fig. 8(b), or where all inside corner portions S1 ∼ S2 are provided with a prescribed chamfer or roundness, as shown in Fig. 8(c). In accordance with the conventional method, chamfering or rounding is designated by pressing the C key or R key each time at every corner portion even in the cases just described. As a result, the operation for inputting the part profile is a troublesome one. Accordingly, an object of the present invention is to provide a part profile input method in which operability for part profile input is enhanced by designating rounding or chamfering at outside and inside corners in a simple manner. GB-A-21555661 discloses an interactive conversational part profile input method according to the preamble of claim 1, wherein intersection portions between graphic elements are designated as chamfers or rounded shapes, and wherein information regarding the shapes and sizes of these portions are inputted from a keyboard. According to the present invention there is provided an interactive conversational part profile input method in an NC data creating apparatus comprising a display unit and input keys, wherein data corresponding to profile elements of a specified part profile are inputted to the NC data creating apparatus for visualizing said profile elements on the display unit and for creating NC data to perform machining in accordance with the specified part profile, the method comprising: a part profile definition step wherein the profile elements are inputted and the part profile is displayed which does not take the chamfered and/or rounded shapes of corner portions into consideration; presenting a conversational display for input of corner shapes at the end of said part profile definition step; and inputting information enabling the shapes of the corner portions to be defined characterised in that: the part profile elements are inputted using arrow keys; the NC data creating apparatus automatically determines the positions of all those intersections between profile elements which are to be regarded as outside corners or inside corners by comparing the angle of intersection between each two mutually adjacent profile elements with a preset angle; and when the NC data creating apparatus automatically determines that it has been specified that shapes of all corner portions, or shapes of all outside corner portions, or shapes of all inside corner portions, are to be defined collectively, and whether the shapes are rounded or chamfered shapes, the NC data creating apparatus then automatically completes the part profile by inserting said specified rounded shapes and/or chamfered shapes, which are in the form of preset dimensions, at all specified corner positions, or all specified outside corner portions, or all specified inside corner portions, as the case may be. A part profile is inputted conversationally without giving any consideration to chamfering or rounding of corner portions of the part. At the end of part profile definition, a conversational display for inputting of corner shape is presented, the angle made by intersection of mutually adjacent profile elements is computed, and the position of an intersection to be regarded as an outside corner or inside corner is determined by comparing each angle of intersection with a set angle. Under these circumstances, when it is specified (i) whether the shapes of all corner portions (inclusive of outside and inside corners), the shapes of all outside corner portions or the shapes of all inside corner portions are to be defined collectively, and (ii) whether the shapes are rounded or chamfered shapes, the part profile is inputted by inserting the specified rounded shapes or chamfered shapes, which are in the form of preset dimensions, at the specified corners (all corner portions, all outside corner portions, all inside corner portions). Brief Description of the Drawings Fig. 1 is a block diagram of an NC apparatus having an automatic programming function for realizing the method of the present invention; Fig. 2 is an external view of a CRT/MDI unit in the NC apparatus; Figs. 3 and 4 are examples of conversational displays, in which Fig. 3 is a display for inputting corner shapes collectively and Fig. 4 is a display for inputting outside corner shapes in succession; Fig. 5 is a flowchart of processing according to the present invention; Figs. 6 and 7 are views for describing part profile input according to the prior art; and Fig. 8 is a view for describing the drawbacks of the prior-art method. Fig. 1 is a block diagram of an NC apparatus having an automatic programming function for realizing the method of the present invention, Fig. 2 is an external view of a CRT/MDI unit, Figs. 3 and 4 are examples of conversational displays for inputting corner shapes, and Fig. 5 is a flowchart of processing according to the present invention. In Fig. 1, numeral 11 denotes an automatic programming unit, 12 an NC control unit, 13 a graphic display unit (CRT) 14 a keyboard, and 15, 16 changeover units. The changeover units 15, 16 are illustrated as being switches for the sake of the description. In actuality, however, changeover is effected by software processing. The automatic programming unit 11 and NC control unit 12 are of microcomputer construction and incorporate an internal processor, a control program memory (ROM) and a RAM. The graphic display unit 13 and keyboard 14 are integrated into a single unit, as shown in Fig. 2, which is usually referred to as a CRT/MDI unit. As shown in Fig. 1, the display screen is divided into a conversational display area 13a and a soft key area 13b. Keys 13c, 13c (see Fig. 2)... are provided to correspond to the soft key area. Pressing one of the keys enables the corresponding function displayed in the soft key area to be inputted. The keyboard 14 has an NC mode/automatic programming mode selection key 14a and a key group 14b, which includes keys serving as both arrow and numeric keys as well as the C key and R key. Part profile input processing according to the invention will now be described in accordance with the flowchart of Fig. 5 while referring to Figs. 1 through 4. It will be assumed that the dimensions of chamfer and roundness to be inserted at a corner portion and an angle A s regarded as a corner (a portion at which an angle A i defined by mutually adjacent blocks is less than A s is regarded to be a corner) have been preset in the RAM of the automatic programming unit 11 in the form of parameters. Operating the key 14a (Fig. 2) on the keyboard 14 causes the changeover units 15, 16 to devote the graphic display unit 13 and keyboard 14 to the automatic programming unit 11. Thereafter, in accordance with the programming function of the automatic programming unit 11, processing up to the seventh step is executed conversationally in a manner similar to the flow of the conventional method shown in Fig. 6, thereby inputting a part profile which does not take the chamfered and rounded shapes of corner portions into consideration. If a soft key "NEXT PAGE" (see Fig. 1) is pressed in the seventh step, a corner shape input processing routine is started and the processor of the automatic programming unit 11 performs the operation 1 → i (step 101). The processor subsequently computes an intersection angle A i made by profile elements EL i , EL i+1 of i-th and (i+1)-th blocks, respectively (step 102). In the case of a projecting corner (namely a corner forming a projection), A i represents the angle on the inner side of the corner; in the case of a recessed corner (namely a corner forming a cavity), A i represents the angle which is not on the inner side of the corner. Next, the angle A i and a preset angle A s are compared in terms of magnitude (step 103). If A i >A s holds, the intersection between the i-th block and (i+1)-th block is not regarded to be a corner (step 104. If A i ≦A s holds, it is determined whether the intersection defines a projection or cavity (step 105). If the intersection defines a projection, it is regarded to be a corner as well as an outside corner (step 106). If the intersection defines a cavity, it is regarded to be a corner as well as an inside corner (step 107). It is checked to see whether the above-described corner identification processing has ended for all intersections (step 108). If the corner identification processing has not ended, the operation i+1 → i is performed (step 109) and processing from step 102 onward is repeated. If corner identification processing for all corners has ended, however, the processor of the automatic programming unit 11 causes an initial display 13a for corner shape input and the soft key display 13b to be presented on the display unit 13 (step 110), as shown in Fig. 1. It should be noted that the corner identification processing can be carried out after the initial display 13a is presented. If it is desired to chamfer or round all of the corner portions, the operator presses a soft key "ALL CORNERS". A soft key "ALL OUTSIDE CORNERS" is pressed if it is desired to chamfer or round all outside corners, a soft key "ALL INSIDE CORNERS" if it is desired to chamfer or round all inside corners, a soft key "OUTSIDE CORNER" if it is desired to chamfer or round outside corners one at a time, and a soft key "INSIDE CORNER" if it is desired to chamfer or round inside corners one at a time (step 111). If the soft key "ALL CORNERS" is pressed, the processor causes a display for collective input of corner shapes, in which cursors C1 ∼ C4 are displayed at all of the corners, to be presented (step 112), as shown in Fig. 3. If the soft key "ALL OUTSIDE CORNERS" is pressed, the processor causes a display for collective input of outside corner shapes, in which cursors are displayed at all of the outside corners, to be presented (step 113). If the soft key "ALL INSIDE CORNERS" is pressed, the processor causes a display for collective input of inside corner shapes, in which cursors are displayed at all of the inside corners, to be presented (step 114). Since the dimensions of the chamfered or rounded shape (i.e., radius if roundness is to be inserted and the amount of chamfering if a chamfer is to be inserted) appear on the display for collective input of corner shape, the operator judges whether these dimensions are suitable or not (step 115). If it is desired to revise the dimensions, then revised dimensions are inputted from the keyboard 14 (step 116). The revised dimensions are displayed in place of the old. Thereafter, if chamfers are to be inserted at the intersections indicated by the cursors, the operator presses the soft key "C". In response, the processor inserts the chamfered shape having the displayed dimensions at the corner portions designated by the cursors (steps 117 - 119). If roundness (corner R) is to be inserted at the portions designated by the cursors, the operator presses the soft key "R". In response, the processor inserts roundness having the displayed radius at the corner portions designated by the cursors (steps 120 - 122). If it is unnecessary to collectively input neither a chamfer nor roundness, the soft key "ABORT" is pressed (step 123). If the predetermined shapes are inputted at all corner portions, all outside corner portions or all inside corner portions through the foregoing operation, processing is then repeated from step 110 onward. If the soft key "OUTSIDE CORNER" is pressed at the step 111, the processor presents a display for successive input of outside corner shapes, in which a cursor CS is displayed at an initial outside corner (step 124), as shown in Fig. 4. Thereafter, the operator presses a cursor shift soft key "CURSOR ↑" or "CURSOR ↓" to position the cursor at the desired outside corner (step 125). It should be noted that the cursor is positioned at the immediately preceding outside corner each time the soft key "CURSOR ↑" is pressed and at the immediately following outside corner each time the soft key "CURSOR ↓" is pressed. Since the dimensions of chamfering or rounding appear on the display for successive input of outside corner shape, the operator judges whether these dimensions are suitable or not (step 126). If it is desired to revise the dimensions, then revised dimensions are inputted from the keyboard 14 (step 127). The revised dimensions are displayed in place of the old. If the soft key "C" or "R" is subsequently pressed (step 128), the processor inserts the chamfered shape or rounded shape having the displayed dimensions at the outside corner portion designated by the cursor (step 129) and the cursor CS is situated at the next outside corner (step 130). The operator decides whether it is necessary to insert a shape at another outside corner by the display for successive input of outside corner shapes. If this is necessary, then processing from the step 125 onward is repeated (step 131). If input is unnecessary, a soft key "RETURN TO DISPLAY" is pressed (step 132) and processing from the step 110 onward is subsequently repeated. If the soft key "INSIDE CORNER" is pressed at the step 111, the processor presents a display for successive input of inside corner shapes, in which a cursor is displayed at an initial inside corner (step 133) Thereafter, the operator presses a cursor shift soft key "CURSOR ↑" or "CURSOR ↓" to position the cursor at the desired inside corner (step 134). Since the dimensions of chamfering or rounding appear on the display for successive input of inside corner shape, the operator judges whether these dimensions are suitable or not (step 135). If it is desired to revise the dimensions, then revised dimensions are inputted from the keyboard 14 (step 136). If the soft key "C" or "R" is subsequently pressed (step 137), the processor inserts the chamfered shape or rounded shape having the displayed dimensions at the inside corner portion designated by the cursor (step 138) and the cursor is situated at the next inside corner (step 139). The operator decides whether it is necessary to insert a shape at another inside corner by the display for successive input of inside corner shapes. If this is necessary, then processing from the step 134 onward is repeated (step 140). If input is unnecessary, the soft key "RETURN TO DISPLAY" is pressed (step 132) and processing from the step 110 onward is subsequently repeated. When input of all corner shapes ends, the soft key "NEXT PAGE" on the initial display (Fig. 1) is pressed to display the next conversational page (step 141) and automatic programming processing is subsequently continued. In accordance with the present invention, the arrangement is such that a part profile is inputted without considering the chamfered shape or rounded shape of corner portions, after which the chamfered shapes or rounded shapes of all corner portions, all outside corner portions or all inside corner portions are defined collectively. As a result, the rounding or chamfering of corners can be designated in a simple manner to make the part profile input operation easier.

Claims: An interactive conversational part profile input method in an NC data creating apparatus comprising a display unit and input keys, wherein data corresponding to profile elements of a specified part profile are inputted to the NC data creating apparatus for visualizing said profile elements on the display unit and for creating NC data to perform machining in accordance with the specified part profile, the method comprising: a part profile definition step wherein the profile elements are inputted and the part profile is displayed which does not take the chamfered and/or rounded shapes of corner portions into consideration; presenting a conversational display for input of corner shapes at the end of said part profile definition step; and inputting information enabling the shapes of the corner portions to be defined characterised in that: the part profile elements are inputted using arrow keys operating to determine the direction of the profile element in accordance with the arrow of the key; the NC data creating apparatus automatically determines the positions of all those intersections between profile elements which are to be regarded as outside corners or inside corners by comparing the angle of intersection between each two mutually adjacent profile elements with a preset angle; and when the NC data creating apparatus automatically determines that it has been specified that shapes of all corner portions, or shapes of all outside corner portions, or shapes of all inside corner portions, are to be defined collectively, and whether the shapes are rounded or chamfered shapes, the NC data creating apparatus then automatically completes the part profile by inserting said specified rounded shapes and/or chamfered shapes, which are in the form of preset dimensions, at all specified corner positions, or all specified outside corner portions, or all specified inside corner portions, as the case may be. A part profile input method according to claim 1, characterized in that when an angle on an inner side of a projecting corner of a blank is less than the preset angle, the corner is an outside corner portion, and when an angle not on an inner side of a recessed corner of a blank is less than the preset value, the corner is an inside corner portion. A part profile input method according to claim 1 or 2, characterized in that said conversational display for input of corner shapes includes an inputted part profile image and soft key images for inputting all corner portions, all outside corner portions and all inside corner portions. A part profile input method according to any preceding claim, characterized in that when it is designated whether to collectively define the shapes of all corner portions, all outside corner portions or all inside corner portions, the positions of all intersections of said designated portions are indicated by cursors and preset shape dimensions are displayed. A part profile input method according to claim 4, characterized in that said shape dimensions are capable of being changed.

Inventors: MATSUMURA TERUYUKI, NAGASHIMA NORITAKE FANUC HINO-, MATSUMURA, TERUYUKI, NAGASHIMA, NORITAKE FANUC HINO-RYO
Applicants: FANUC LTD, FANUC LTD.
Application year: 1988
Main classification: G05B19
IPC codes: G05B19