Abstract:
A numerically controlled machine tool for producing tangential entry into a compensated contour and for the tangential leaving from a compensated contour. The numerically controlled machine tool also produces the interior or exterior rounding of intersections between two contours.

Description:
BACKGROUND OF THE INVENTION 
     This invention relates to a numerically controlled machine tool which moves along a workpiece to create the desired contour. 
     A numerically controlled machine tool is programmed to receive information indicating the desired contour for the workpiece. German unexamined patent specification OS No. 30 05 738 discloses a machine tool capable of compensating for its tool radius. The tool follows a compensated contour separated from the desired contour by the distance of the radius of the tool so that the workpiece is machined to conform to the desired contour. 
     As the tool is initially brought into contact with the workpiece its direction must change to begin machining the desired contour. At this direction change the movement of the tool must be briefly stopped to avoid cutting too deeply into the workpiece. This delay adds to the processing time for machining the workpiece. 
     SUMMARY OF THE INVENTION 
     This invention is directed to a numerically controlled machine tool which takes input indicating desired rounding radii for arcs to be followed by the tool upon entry and exit from contact with the workpiece and determines the center of curvature of the arcs and the end points of the arcs so that the tool can enter and leave contact with the workpiece with constant path velocity. The machine tool can also determine from a rounding radius, an arcuate path to follow between two intersecting contours such that the tool may maintain a constant velocity throughout. A constant path velocity is maintained by entering and leaving the contour tangent to the contour. This results in a substantial shortening of the processing time. Conveniently only the rounding radius need be input to receive the advantages of the invention. The invention thus makes possible the rounding of edges with arbitrary rounding radii as well as tangential entry into a contour and exit from a contour. 
     Other objects and advantages of the invention will become apparent during the following description of the presently preferred embodiment of the invention taken in conjunction with the drawings. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a schematic diagram of a three axis milling machine; 
     FIG. 2 is a block circuit diagram of a numerical path control for two dimension position regulation; 
     FIG. 3 shows a workpiece contour and the compensated contour path of the machine tool according to the invention; 
     FIG. 4 is a flow diagram of the program performed by the radius circuit; 
     FIGS. 4a 1 , and 4a 2  are a flow diagram of the rounding entry subroutine; 
     FIGS. 4b, 4b(1 1 ), 4b(1 2 ), 4b(2 1 ), 4b(2 2 ), 4b(3), 4b(4 1 ) and 4b(4 2 ) are a flow diagram of the rounding intersection subroutine with its subroutines for the four combinations of contour intersections; and 
     FIGS. 4c 1  and 5c 2  are a flow diagram of the rounding exit subroutine. 
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS 
     Referring now to FIG. 1, a three axis milling machine 1 is shown schematically. A workpiece 3 to be processed is positioned securely atop a slide piece 2 which is drivable in the X direction on a bed which is not shown. A milling tool 7 is carried by spindle head 6. Spindle head 6 may be moved in the Y direction along a cantilever 4. The cantilever 4 is drivable on an upright 5 vertically in the Z direction. The following description only considers movements of the workpiece 3 in the X direction and of the tool 7 in the Y direction. 
     A numerical path control 8 is connected to the machine tool, as schematically shown in FIG. 2, for controlling the tool&#39;s positioning. 
     The control for the positioning in the X direction is a closed loop which includes a desired value/actual value comparator 9 1  of the numerical path control 8. The comparator 9 1  produces an analog output which is connected to the first input of a motor regulator 10 1  to determine the feed speed. The output of the motor regulator 10 1  acts upon a motor 11 1 . The motor by means of a spindle 12 brings about the movement of the slide piece 2 in the X direction. The motor 11 1  is also coupled to a tachometer 13 1  whose output is connected to the second input of the motor regulator 10 1 . A position measuring device 14 1  is also coupled to the spindle 12 to produce output signals indicating the actual value of the positions of the workpiece 3 in the X axis. These output signals are supplied to the desired spindle head 6 is achieved by means of a spindle 15. The circuitry is the same as in the X direction control loop and the corresponding circuit blocks are indicated with the same reference symbols but with a subscript 2. 
     The numerical path control 8 includes the computer 16, a memory 17 and an input unit 18. The input unit 18 has a keyboard 20 for controlling the running of the program and a display field 21 for the display of the actual values of the position of the workpiece 2 and the tool 7 in the X, Y and Z directions. The actual value positions are fed from the position measuring devices 14 into the computer 16 and the input unit 18. 
     According to the invention, there is provided a radius circuit 22 in addition to the computer 16. A desired rounding radius is supplied on the keyboard 19. The radius circuit 22 transforms the rounding radius R into rounding arc parameters including the center of curvature of the arc and the entering and leaving points of the arc. These parameters are sent into the computer 16 for point-by-point computation of the rounding arc RK. The radius circuit 22 is activated by a rounding signal S R  which is supplied through operation of a rounding key 23 in the keyboard 20. The rounding radius R is transmitted from the input units 18 into the memory 17 where it is temporarily stored. The radius circuit 22 is preferably a microcomputer of high operating speed programmed to produce the rounding arc parameters. 
     Computer 16 is further capable of providing straight line interpolation as well as tool radius compensation. Straight line interpolation is the provision of desired positions along a straight line by the computer 16. Tool radius compensation is where for a given contour K the computer calculates a compensated contour K&#39;. The compensated contour K&#39; is delivered through control 8 to the directional control loops for the X and Y directions and to the control loop for the Z direction which is not represented in FIG. 2. Thus, the center point M of the tool 7 moves along the compensated contour K&#39; equidistant to the prescribed contour K. 
     The operation of the invention can be explained more fully by referring to FIG. 3. A prescribed contour K composed of two intersecting straight lines G 2  and G 3  is to be milled in a workpiece 2. The intersection point P 2  of the two lines is to be rounded off with a rounding arc RK 2  having a rounding radius R 2 . At the start of the operation the center M of the tool 7 is at a prescribed point P 0  (X 0 ,Y 0 ). An instruction which reads as follows is input on the input unit 18, &#34;straight line to point P 1  (X 1 ,Y 1 ) with tool radius correction beginning at point P 1 , rounding with rounding radius R 1  and straight line to point P 2  (X 2 ,Y 2 )&#34;. The radius circuit 22 calculates the starting point P 0  &#39; (X 0  &#39;,Y 0  &#39;) and the end point A (X A , Y A ) as well as the center M 1  of the rounding arc RK 1 . These parameters are supplied to the computer 16 for arc interpolation of the rounding arc RK 1 . 
     The operation of the radius circuit 22 is best understood in conjunction with the flow charts in FIGS. 4a-c. When the rounding key 23 is depressed the radius circuit 22 begins its analysis and calculation as in FIG. 4. The circuit looks to see whether radius compensation is needed on the first contour and/or the second contour. As seen in the diagram, the radius circuit can then easily determine whether the rounding arc will be used to enter into a contour to be machined, to exit from a contour that was machined or as a transition between two contours. For the instruction just described in the previous paragraph, the radius circuit 22 will be calculating the parameters for a rounding arc which will be used for entering into a contour 2 to be machined. Therefore, it will perform the rounding entry subroutine described in the flow chart of FIGS. 4a 1  and 4a 2 . The radius circuit 22 first determines the direction of the contour 2 to be entered. Then it calculates the position of the end point A of the rounding arc by compensating for the tool radius in relation to the starting point P 1  of the contour 2. The straight line between the initial point P 0  and the end point A makes an angle with the starting direction of the contour 2. This angle is looked at to determine on which side of contour 2 the midpoint M should be placed. Since tangential entry is desired the midpoint M is placed on a line perpendicular to the starting direction of contour 2 and at the distance of the rounding radius R from the end point P A . The starting point of the arc P 0  &#39; is calculated from the triangle P 0  MP 0  &#39;. The angle of this triangle at point P 0  &#39; is 90° since tangential entry into the arc is desired. It is also known that the length of the side P 0  &#39;M is equal to the rounding radius and that the length of the line between P 0  and M can be easily determined as those two points have been fixed. Thus, P 0  &#39; can be geometrically determined. Having determined the end points of the rounding arc the straight line P 0  -P 0  &#39; and the circular arc P 0  &#39;-P A  are ready to be interpolated. 
     Continuing with the machining operation in FIG. 3 the next instruction is, &#34;straight line to point P 2  (X 2 ,Y 2 ) with continued tool radius compensation, rounding with rounding radius R 2  and straight line to point P 3  (X 3 ,Y 3 )&#34;. The radius circuit 22 then calculates the starting point P 2  &#39; (X 2  &#39;,Y 2  &#39;) and the end point P 2&#34;  (X 2  &#34;,Y 2  &#34;) of the prescribed contour, as well as with consideration of the tool radius compensation, corresponding points P 2  &#39;&#34; (X 2  &#39;&#34;,Y 2  &#39;&#34;) and P 2  &#34;&#34; (X 2  &#34;&#34;,Y 2  &#34;&#34;). These points are supplied to the computer 16 for arc interpolation of the correct compensated rounding arc RK&#39;. 
     These points for the intersection of two contours is determined by the radius circuit 22 by its performance of the rounding intersection subroutine shown in FIG. 4b. The rounding intersection subroutine has subroutines of its own for each possible combination of intersections between straight lines and circles. For the desired contour shown in FIG. 3 the radius circuit 22 will perform the subroutine for straight line-rounding-straight line found in FIGS. 4b(1 1 ) and 4b(1 2 ). 
     The final instruction to complete the operation shown in FIG. 3 is &#34;straight line to point P 3  (X 3 ,Y 3 ) with tool radius compensation, rounding with rounding radius R 3  and straight line to point P 4  (X 4 ,Y 4 ) without tool radius compensation&#34;. The radius circuit 22 calculates the starting point E (X E ,Y E ) and the end point P 4  &#39; (X 4  &#39;,Y 4  &#39;) as well as the center M 3  of the rounding arc RK 3  by performing the rounding exit subroutine shown in FIGS. 4c 1  and 4c 2 . These parameters are then supplied to the computer 16 for arc interpolation of the rounding arc RK 3 . 
     The center M of the tool 7 can be moved from the initial point P 0  to the point P 4  at a constant speed, since the rounding arc RK 1 , RK&#39; and RK 3  are tangential to their adjoining straight lines T 1 , K&#39; and T 4 . The prescribed contour K may be composed of any arrangement of straight lines and/or circular arcs. If subsequent rounding arcs are to have the same rounding radius then the value of the radius may be conveniently stored in the memory 17. 
     Of course, it should be understood that various changes and modifications to the preferred embodiment described above will be apparent to those skilled in the art. Changes may be made without departing from the spirit and the scope of the invention and without diminishing its attendant advantages. It is therefore intended that such changes and modifications be covered by the following claims.