Electronic polynomial interpolation device for numeric controls of machine tools, particularly milling machines for the machining of dies, and machine comprising said device

Abstract: The device comprises a first section (25) , which comprises logic circuit means which generate the law of motion along the machine operative trajectory arc, and a second section with a set of three digital polynomial generators (27-28-29), each of which receives from the motion law generator means the instantaneous value of the curvilinear coordinate and, from an external processing unit, the polynomial coefficients related to the trajectory arc to be generated and the sampling and sub-sampling pulses; the polynomial generators of the second section are suitable for providing, on the respective outputs, the corresponding components of the instantaneous speed vectors of each point of the trajectory, generated by adding and multiplying the polynomial coefficients and the curvilinear coordinate.

Description: The present invention relates to an electronic polynomial interpolation device for numeric controls of machine tools, particularly milling machines for the machining of dies, and to a machine which comprises said device. In the machining of metallic dies made of steel, cast iron or aluminum and intended for the production of articles made of sheet metal or plastic or composite materials, the completely automatic finishing of said die by means of machine tools has now become fundamentally important. Manual restarting of the finishing operations is in fact a task which requires great specialization and very long times, with consequent unacceptable production costs. In the design of dies, the appearance of computerized systems commonly known by the acronym CAD (Computer Aided Design) has allowed to mathematically define the surface of said die, regardless of its complexity, and to consequently generate parameters. When these parameters are processed by other computerized systems commonly known by the acronym CAM (Computer Aided Manufacturing), suitable for generating trajectories, they allow, by means of the numeric control system, to move the tool of the machines so as to reproduce the mathematically expressed surfaces. The greatest disadvantage of these known automation systems currently consists of the interaction between the CAM systems and numeric controls due to the intrinsic limitations of the latter. Currently known numeric controls in fact require the trajectory of the path of the tool, which is generated by a CAM system starting from the mathematical definition of the surface of the part to be machined, to be a broken line, generally with a large number of segments in order to contain chordal error. This, first of all, significantly limits the advancement speeds of the tool, which decrease as the allowed chordal error decreases and in any case become critical for values in the range of 10,000 mm/min due to the large amount of data to be processed. The intrinsic nature of broken-line trajectories in any case leads, even if chordal error is kept within very narrow limits, to the generation of "faceted" surfaces which require the subsequent and undesirable manual finishing of the die. A numerically controlled machine tool having a spherical cutter which travels on a predetermined path which is computed by an interpolator is known from GB-A-1 424 767. In case cutters with different diameters are used a correction algorithm is provided to compensate for the difference in the cutter diameter such that work piece measurements remain constant. The path "per se" is computed by a linear-circular three-coordinates interpolator adapted for circular interpolation so that information reproduced by the interpolator defines a circular path travelled by the cutter in cutting planes perpendicular to the axes of the bodies of rotation making up together with flat portion of the desired surface of a work. US-A-4 663 726 describes a robot control utilizing cubic spline interpolation. As explained at column 3, US-A-4 663 726 is mainly concemed with controlling via a feedback loop the robot arm and determining the polynomial coefficients. The aim of the present invention is to eliminate these disadvantages, and, within the scope of this general aim, said invention has the important object of providing an electronic device which is suitable for directly interpolating tool trajectory arcs which are represented by polynomials of the n-th degree and are expressed as a function of a parameter, hereinafter termed curvilinear coordinate, which varies between zero and the length of said section of trajectory, thus obtaining corresponding continuous surfaces of the machined part which require no manual finishing intervention. Another important object of the present invention is to provide a device which can significantly increase the tool movement speed and allow the acceleration and deceleration of the movement in the trajectory arc being considered, thus ensuring the correct blending together of contiguous arcs, even in the presence of blendings in which the surface has points of marked discontinuity (for example salient cusps). A further object of the present invention is to provide an interpolation device which has a simple circuit structure, is highly reliable in operation and is suitable for being interfaced with any machine tool with at least three degrees of freedom and with any CAM trajectory generation system. In order to achieve this aim, these important objects and others which will become apparent from the following detailed description, the present invention relates to an electronic polynomial interpolation device for numeric controls of machine tools, particularly milling machines for the machining of dies, as defined in claim 1. The first section generates a speed diagram according to the law of uniformly accelerated motion, along the ends of the trajectory arc being considered, by adding and subtracting constant-value acceleration steps by means of binary adders and accumulators. In the second section, each polynomial generator comprises a register for the parallel accumulation of the polynomial coefficients, the serial output whereof is operatively connected to a chain which comprises an adder and an accumulator which, activated by the sub-sampling pulses, compute the polynomial which represents the trajectory reduced to a recursive form consisting of additions and multiplications. The speed outputs of each polynomial generator are operatively connected, with the interposition of a register, of a digital/analog converter and of an operational amplifier, to the motor for the actuation of the tool along the respective coordinated axis. A fixed optical rule and an optical sensor moved by the drive shaft provide a datum which corresponds to the actual instantaneous position of the tool with respect to said axis; the actual position is compared with the theoretical one in order to obtain a positive or negative correction datum in terms of speed to be sent to the actuation motor. BRIEF DESCRIPTION OF THE DRAWINGS Further characteristics, purposes and advantages will become apparent from the following detailed description and with reference to the accompanying drawings, given by way of non-limitative example, wherein: figure 1 is a block diagram of an automatic numeric-control actuation system for a machine tool which comprises the polynomial generation device according to the present invention, figure 2 is a diagram of a generic trajectory of the r-th degree followed by the tool of the machine of figure 1, figure 3 is a block diagram of the interpolation device according to the invention, figures 4, 5 and 6 are explanatory diagrams related to the first section of the interpolation device of figure 3, figures 7 and 8 are detailed block diagrams of the first section of the interpolation device, figure 9 is a detailed block diagram of one of the polynomial generators of the second section of the interpolation device, figure 10 is a schematic view of a machine tool with three degrees of freedom and of the manner in which it is driven with the device according to the invention, figure 11 is a detailed block diagram of the means for comparing the actual position with the theoretical position of the tool in order to generate a correction signal. In the diagram of figure 1, the reference numeral 10 indicates a known CAD-CAM system for mathematically expressing generic surfaces and for generating tool trajectories starting from the mathematical definition of the surface. The reference numeral 11 indicates a generic machine tool, for example a milling machine, which is operatively connected to the system by means of a microprocessor µP, an interface 12 provided with a memory, a control module 13 and the polynomial interpolation device according to the invention, which is generally indicated by the reference numeral 20. A programmable logic unit 15, controlled by the microprocessor µP, is furthermore provided for the auxiliary functions of the machine tool 11, such as cooling and lubrication pump management, temperature sensing and checking and the like, and programming of the speed of the tool-holder spindle. The system 10 generates the trajectory of the tool in the form of numeric data and sends the data to the microprocessor µP, which stores them in the memory of the interface 12. By means of the same interface 12, the microprocessor µP sends the data to the interpolator 20 which, at discrete time intervals, generates the speed and position of the axes of the machine tool 11. Depending on the actual position of the axes of the machine 11, the control module 13 corrects the position at discrete time intervals so that the trajectory followed by the tool is as close as possible to the theoretical one generated by the system 10. Figure 2 illustrates a generic trajectory A-B which indicates the positions assumed in the course of time by the tool UT of the machine 11. A generic position of the tool is indicated by the vector P referred to a set of three Cartesian coordinates x-y-z and is expressed as follows: P = Px . i + Py . j + Pz . k where i, j and k are the unit vectors of the set of three Cartesian coordinates. The components Px-Py-Pz of the vector are represented by respective polynomials of the r-th degree expressed as a function of a parameter "u" which is termed curvilinear coordinate and varies between 0 (zero) and the length of the trajectory: The degree r of the polynomial can be rather high (r >= 11) in the case of complex trajectories. The entire trajectory can however be divided into sub-trajectory portions of a degree m <= r; in particular, it is advantageous to divide the trajectory into portions represented by polynomials which can be expressed by means of expressions (2), in which m = 3 (cubic expressions). The interpolator device 20 is provided, as input data, with the coefficients of the polynomials represented in (2), the curvilinear length of the sub-trajectory arc i,i+1 S, the speed i,i+1 V at which the sub-trajectory is to be followed, the maximum acceleration i,i+1 A allowed along the sub-trajectory and the squared exit speed i,i+1 VQ o , as well as with a percentage factor FP provided by the microprocessor µP. Furthermore, since the system is of the sampled numeric type, the device 20 is also supplied with sampling pulses nT, where T is the sampling interval (for example T=1 ms), and with sub-sampling pulses sT; n is the set of integers comprised between -∞ and +∞ and s=n+h/(m+1), where h varies between 0 (zero) and (m+1) with m equal to the degree of the polynomials to be generated. With reference to figure 3 the device 20 substantially comprises a first section 25 which constitutes the generator of the law of motion along the trajectory arc and a second section composed of a set of three polynomial generators 27, 28, 29 which will be described hereinafter. The task of the section 25 is to calculate, at discrete intervals nT, the position and the speed at the point P (nT). The notations of figure 4 are used; said figure illustrates a sub-trajectory arc i,i+1. The curvilinear coordinate i,i+1 S(nT) is the position, at discrete intervals nT, of the vector P (nT) with respect to the origin of the arc i, the value i,i+1 V (nT) is the vectorial speed at discrete intervals nT; i,i+1 V i and i,i+1 V o are the vectorial speeds of input into and output from the sub-trajectory arc. The law of motion along the sub-trajectory arc being considered is of the uniformly accelerated type and is plotted on speed and time coordinates in the diagram "δ" of figure 5. A first logic circuit 30 (figure 7) of the first section 25 calculates the speed i,i+1 V (nT) at the instant nT and, by integrating said speed, calculates the value of the curvilinear coordinate u = i,i+1 S(nT), the trend whereof is expressed in time by the curve "γ" of figure 6. For this purpose, the logic circuit 30 comprises a first binary adder 31 which, at intervals nT, performs the sum between the speed V[(n-1)T] and the positive or negative acceleration steps i,i+1 A+, i,i+1 A- present at the outputs of respective selectors 32-33. The result of the sum operation is stored in an accumulator 34 so as to have available, at every instant, the speed datum related to the preceding instant. The accumulator 34 is reset at the beginning of each sub-trajectory. A second adder 35 integrates the speed V(nT) to obtain the curvilinear coordinate S(nT)=u by adding, at each instant nT, the speed V(nT) to the curvilinear coordinate related to the preceding instant (n-1)T stored in a respective second accumulator 36. A comparator 37 compares the curvilinear coordinate i,i+1 S(nT) and the total curvilinear distance i,i+1 S to recognize the end of the sub-trajectory arc and generate a signal i+1 NA indicating a new arc. A multiplier circuit 38 furthermore calculates the square VQ(nT) of the speed V(nT) and a comparator 39 compares said squared value with a control value VQQ c (nT) which is calculated by a second logic circuit 40 (figure 8) of the section 25, in order to provide a criterion for the activation of the selector 32 or of the selector 33 depending on whether acceleration or deceleration is to be performed along the sub-trajectory being considered. In order to calculate the control value VQQ c (nT), having selected uniformly decelerated motion, in order to reach the quadratic value i,i+1 VQ o of the speed it is necessary to check, at each instant, that the difference i,i+1 VQ(nT) - i,i+1 VQ o is always smaller than twice the product of the acceleration i,i+1 A and the space [ i,i+1 S]-[ i, i +1 S(nT)] which is still to be lowered to end the sub-trajectory arc, and it is necessary to decelerate if the difference between said squared speed exceeds the indicated value. This check is performed by the circuit 40, wherein a binary subtractor 41 performs the subtraction [ i,i+1A S]-[ i , i+1 S(nT)], and a first binary multiplier 42 performs the product of the subtraction and of the acceleration i,i+1 A which has been pre-multiplied by two in a binary duplicator 43. An adder 44 adds the output value of the multiplier 42 to the square of the speed i,i+1 VQ o of output from the sub-trajectory arc, and two multiplier circuits 45, 46 calculate the square of the product between the maximum allowed speed i,i+1 V and the percentage factor FP. A comparator 47 compares the outputs of the adder 44 and of the multiplier 46 and drives two selectors 48, 49 which always give the comparison value i,i+1 VQQ c (nT) the smallest of the two values which input said comparator. The output u = i,i+1 S(nT) of the first section 25 is multiplexed at the input of the polynomial generators 27, 28, 29 which compose the second section of the device 20; each of the generators has the purpose of generating discrete positions and discrete speeds for each of the axes X, Y and Z along which the tool UT of the machine 11 moves. For this purpose, each polynomial generator comprises a logic circuit 50, which is illustrated in detail in figure 9, and which, by successive sums and multiplications of the polynomial coefficients and of the curvilinear coordinate, calculates the respective polynomial (2) reduced to the following recursive form (for r=3): i,i+1 P x = [( i,i+1 a 3x u + i,i+1 a 2x ).u + i,i+1 a 1x ].u + i,i+1 a x and likewise for the components Py and Pz. The circuit is substantially composed of a shift register 51 in which the coefficients of the polynomial to be generated are accumulated in parallel and at each sampling instant nT; in the case of a cubic polynomial, the coefficients are of the following type: i,i+1 a 3x ; i,i+1 a 2x ; i,i+1 a 1x ; i,i+1 a x . The sub-sampling pulses sT (in the case of m = 3, a cubic polynomial, four sub-sampling pulses for each sampling pulse) also input the register 51. At each sub-sampling pulse sT, a coefficient of the polynomial inputs a binary adder 52 starting from i,i+1 a 3x and followed, in the subsequent sub-sampling intervals, by i,i+1 a 2x ; i,i+1 a 1x and finally by i,i+1 a x . A binary multiplier 53 performs, again at each sub-sampling interval, the product of the curvilinear coordinate u = i,i+1 S(nT) and of the output value of the adder 52 at the preceding instant, which is stored in an accumulator 54; the accumulator 54 is reset at each sampling interval nT by a reset pulse R. In this manner, the polynomial Px reduced to its recursive form is calculated at each sampling cycle nT. A first register 55 and a second register 56, as well as a binary subtractor 57, are arranged at the output of the binary adder 52. The datum of desired or theoretical position P tx (nT) is taken from the first register 55. The desired or theoretical speed datum V tx (nT) is taken from the output of the subtractor 57 and is obtained by means of the subtraction of the position at the instant nT from the position at the preceding instant (n-1)T which is performed by said subtractor 57. As shown in detail in figure 10, the outputs V tx,y,z (nT) of the polynomial generators 27, 28 and 29 said outputs representing the desired or theoretical speed values feed, with converter and amplifier units CAx, CAy, CAz interposed, respective motors Mx, My, Mz of the machine tool. Each converter and amplifier unit comprises a register 60, a digital/analog converter 61 and a multi-stage operational power amplifier 62 feedback by a speedometer generator Dx, Dy, Dz actuated by the respective motor. The motor Mx is associated with a movement unit GMx which is rigidly coupled to the base BA of the machine and comprises a ball bearing nut CHx which is moved: along the x axis, by a worm screw VSFx which is moved by the motor Mx. Similarly, the motor My is associated with an identical movement unit GMY which however, differently from the unit GMx, is movable along the y axis and is moved along the y axis by the nut CHx of the unit Mx. In turn, the nut CHy of the unit GMy, which is movable along the y axis and is actuated by the screw VSFy, moves the entire unit GMz along the z axis; the tool UT which generates the die ST, is supported in a known manner by a mandrel which rotates at a programmed speed, and it is rigidly associated with the nut CHz which is also movable along the z axis and is actuated by the screw VSFz. A micro-line optical rule REx, REy and REz is rigidly associated with the frame of each movement unit, and a respective optical sensor SOx, SOy, SOz co-operates with each rule; the signals of the sensors SOx, SOy, SOz are converted, by means of respective position counters 70 x,y,z and registers 71 x,y,z , into a datum which corresponds to the actual positions Px(nT), Py(nT) and Pz(nT) of the tool. A set of three logic circuits 80 compares the actual positions with the theoretical ones calculated by the polynomial generators 27, 28, 29 in order to generate a correction signal V(nT) x,y,z in terms of speed. For this purpose, as illustrated in the detail of figure 11, each circuit 80 comprises a subtractor 81 which calculates the difference between the desired or theoretical position and the actual one, a multiplier 82 which performs the product of the result of the subtraction and of the gain G x,y,z of the respective control loop, and an adder 83 which adds the respective desired or theoretical speed Vt x,y,z (nT) at the instant being considered to the result of said product. Without altering the concept of the invention, the details of execution and the embodiments may naturally be varied extensively with respect to what is described and illustrated by way of non-limitative example without thereby abandoning the scope of the invention. In particular, the device 20 might be replaced with a single sequential logic unit, for example a microprocessor programmed to generate the law of motion along the arc or sub-arcs of the machine operative trajectory, to integrate the speed diagram related to said law of motion, to obtain the curvilinear coordinate of said trajectory, and to calculate the polynomial which represents the trajectory reduced to a recursive form of additions and multiplications. Where technical features mentioned in any claim are followed by reference signs, those reference signs have been included for the sole purpose of increasing the intelligibility of the claims and accordingly such reference signs do not have any limiting effect on the scope of each element identified by way of example by such reference signs.

Claims: A polynomial interpolation device for the numeric control of machine tools, particularly milling machines for the machining of dies, the tool thereof having to follow a machine trajectory constituted by a sequence of operative trajectory arcs each defined by a polynomial with curvilinear coordinates as variables, said device comprising: a processor unit (10) generating polynomial coefficients defining each operative trajectory arc of said sequence of trajectory arcs of said tool, and an interpolator (20) connected to said processor unit (10), characterized in that said interpolator (20) comprises: a first section (25) which includes logic circuit means (30) which operates according to a preset law of motion for generating a speed diagram of the tool along said operative trajectory arc and calculates therefrom an instantaneous value of said curvilinear coordinates of said trajectory arc; and a second section (27,28,29) with a set of three digital polynomial generators, each of said digital polynomial generators receiving from said first section (25) said instantaneous value of said curvilinear coordinates and from said processor unit (10) said polynomial coefficients, said digital polynomial generators of said second section (27,28,29) providing, on respective outputs, the corresponding components of the instantaneous position vectors and of the instantaneous speed vectors of each point of said trajectory arc, generated by addition and multiplication of said polynomial coefficients and of said instantaneous curvilinear coordinates. Device according to claim 1, characterized in that said first section (25) generates a speed diagram according to the law of uniformly accelerated motion across the ends of the trajectory arc being considered. Device according to claims 1 or 2, characterized in that the logic circuit means (30) of the first section (25) generate the speed diagram by adding or subtracting constant-value acceleration steps. Device according to one or more of claims 1-3, characterized in that the logic circuit means (30) of the first section (25) is suitable for calculating the instantaneous value of the curvilinear coordinate of the trajectory by integrating the diagram of the speed which represents the law of motion. Device according to one or more of claims 1-4, characterized in that said processor unit (10) comprises a microprocessor-based external auxiliary system capable of mathematically defining a surface. Device according to one or more of claims 1-5, characterized in that the logic circuit means (30) of said first section (25) comprise a first binary adder (31) which performs, at each sampling interval, the sum of the speed related to the preceding instant and of the positive or negative acceleration steps which are preset at the outputs of respective selectors (32,33), a first binary accumulator (34) in which the value of the sum is stored, a second binary adder (35) which integrates the speed related to a given instant by adding to said speed the curvilinear coordinate related to the preceding instant, which is stored in a second binary accumulator (36), and a first binary comparator (37) which compares the curvilinear coordinate at the instant being considered and the total curvilinear distance in order to recognize the end of the trajectory arc and to generate a signal indicating a new arc. Device according to claim 6, characterized in that said logic circuit means (30) of the first section (25) furthermore comprises a first binary multiplier circuit (38) which is suitable for calculating, at each sampling interval, the square of the generated speed, and a second binary comparator (39) which compares said squared value with a control value to provide a criterion for activating said selectors (32,33) depending on whether acceleration or deceleration is to be performed along the sub-trajectory being considered. Device according to claims 6 and 7, characterized in that the logic circuit means (30) of said first section (25) furthermore comprises a logic circuit (40) for generating said control value, said logic circuit (40) comprising a binary subtractor (41) which subtracts, at each sampling interval, the length of the sub-trajectory arc from the curvilinear coordinate, a second binary multiplier (42) which performs the product of said subtraction and of twice the acceleration step, a third binary adder (44) which adds the output value of said second binary multiplier (42) to the square of the speed of exit from the sub-trajectory arc, two further binary multipliers (45,46) which calculate the square of the product of the maximum allowed speed and of a percentage factor, and a digital comparator (47) which compares the output of a first (46) of said two further binary multipliers (45,46) with that of said third adder (44) to drive two further selectors (48,49) which assign the lowest of the two values which enter said digital comparator (47) to the comparison value. Device according to one or more of claims 1-5, characterized in that each polynomial generator of the second section (27,28,29) comprises a shift register (51) for the parallel accumulation of the polynomial coefficients and wherein the serial output of the shift register is operatively connected to a chain which comprises a binary multiplier (53), a binary adder (52) and a binary accumulator (54) which are suitable for calculating the polynomial which represents said instantaneous position vectors and said instantaneous speed vectors of each point of said trajectory arc reduced to a recursive form of additions and multiplications of the polynomial coefficients and of the curvilinear coordinate. Device according to one or more of claims 1-9, characterized in that the length of the registers of the polynomial generators is proportionate to the degree of the polynomial to be generated and is equal to the degree of said polynomial + 1. Device according to claims 9-10, characterized in that the polynomial coefficients are accumulated in the shift register (51) at each sampling interval and are transferred in a scalar manner to the binary adder (52) at each sub-sampling pulse. Device according to one or more of claims 9-11, characterized in that the binary multiplier (53) performs, at each sub-sampling interval, the product of the curvilinear coordinate and of the output value of the adder (52) related to the preceding interval, which is stored in said accumulator (54). Device according to one or more of the preceding claims, characterized in that it comprises a microprocessor which is programmed to generate the law of motion along the machine operative trajectory arc, to integrate the speed diagram related to said law of motion, to obtain the curvilinear coordinate of said trajectory and to calculate the polynomial which represents said instantaneous position vectors and said instantaneous speed vectors of each point of said trajectory arc reduced to a recursive form of additions and multiplications. Machine tool (11), particularly milling machine for the machining of dies, characterized by the polynomial interpolator of one or more of claims 1-13. Machine tool according to claim 14, characterized in that the speed outputs of the polynomial generators, said outputs representing the desired speed, drive, with converted and amplifier units (CAx, CAy, CAz) interposed, motors (Mx, My, Mz) of respective units (GMx, GMy, GMz) for moving the machine tool (11), and in that each movement unit (GMx, GMy, GMz) comprises a rule (REx, REy, REz) and an optical sensor (SOx, SOy, SOz) which co-operate and are suitable for providing the actual position of the tool along the related coordinated machine axis and a set of three logic circuits (80) inserted in respective control loops, each of which compares the actual positions along the corresponding machine axis with the desired ones provided by the polynomial generators in order to generate a corresponding correction signal in terms of speed. Machine tool according to claim 15, characterized in that the logic circuit (80) of each control loop comprises a binary subtractor (81) which calculates the difference between the desired position and the actual one, a binary multiplier (82) which multiplies the result of the subtraction by the gain of the respective control loop, and an adder (83) which adds the respective desired speed at the instant being considered to the result of said product.

Inventors: LEVI MONTALCINI PIERA, RACCIU ANTONIO, LEVI MONTALCINI, PIERA, RACCIU, ANTONIO
Applicants: ADVANCED DATA PROCESSING, ADVANCED DATA PROCESSING ADP S.R.L.
Application year: 1990
Main classification: G05B19
IPC codes: G05B19