The present invention relates to a numerically controlled drive device comprising a device for detecting operating anomalies intended for detecting accidental collisions, comprising:
Such devices have already been used in the machine-tool field as described in document DE 34 26 863 A1.
Comparable drive devices are used in numerous other applications, such as robots, printing machines, equipment for textile production, injection molding machines, stamping and blanking, cranes, satellite antennas, telescopes, etc.
In the drive devices such as represented in
When using a machine tool, a robot or another item of equipment with an articulation driven by a servomotor, an element in motion may collide with another member of the machine, a workpiece to be machined or with a component of the environment. In this case, the problem to be solved consists in preventing and/or detecting the collision.
The preventive measure that is most widespread within the art, is the limitation of the travel of the spindle in question by means of end-of-travel contactors forming a hard-wired logic limitation, through the prior definition of bounds to the allowable domain of position settings constituting a software limitation, or else with the aid of mechanical stops forming a physical limitation. Within this context of the prevention of collisions, U.S. Pat. No. 5,347,459 has also proposed that the workspace be modeled so as to identify in advance interference between the bodies in relative motion. The drawback of this modeling procedure is the need to ascertain the kinematics of all the objects in the work zone, this information being unavailable for example in regard to a machine tool for the offcuts that could get jammed between the workpiece and the tool. In order to make up for this lack of knowledge regarding the location of bodies in the workspace, recourse has been had for example to vision systems, this nevertheless remaining a complex and expensive solution.
U.S. Pat. No. 4,820,895 proposes an electric touch sensor in the case of an electroerosion machine. Such a device can, according to patent DE 40 08 661 A1, serve in the alignment of a three-dimensional tool on a semi-finished workpiece, doing so through its capacity to detect tool-workpiece collisions accurately and without waste. However, the use of an electric touch sensor requires the presence of electrically conducting objects.
U.S. Pat. No. 5,119,006 has proposed that a certain number of criteria being monitored, such as the absolute value of the servodrive motor torque/current. The procedures described in this patent are restricted to drives with a rigid or very precise transmission, which require mechanical solutions that are needlessly expensive in the case of certain industrial applications for which the introduction of a second rule position sensor makes it possible to implement software procedures for compensating for errors related in particular to flexibility or to homokinetic defects. This compensation may give rise to taxing demands on the motor speed feedback loop, as well as to large speed tracking errors and so to large variations in the motor current. Moreover, if the inertia of the motor dominates the inertia of the load, referred to the motor side, then the effect of the forces of a collision on the motor current is negligible vis-á-vis the forces to be provided for a normal acceleration, respectively deceleration. Thus, the raw signals, such as proposed in U.S. Pat. No. 5,119,006 no longer contain the relevant information making it possible to identify a collision with sufficient sensitivity to avoid waste.
For better utilization for the detection of collision of the motor torque signals, respectively motor current and speed signals, U.S. Pat. No. 5,304,906 proposes the construction of a disturbing torque observer based on the parameters of the drive and the filtering parameters intended to reduce the influence of measurement noise at high frequency. However, the method proposed in this U.S. Pat. No. 5,304,906 is limited to a rigid model for the transmission of the drive. The procedure is thus insufficient for drives for which the flexibility of transmission and the homokinetic defects assume considerable significance. Moreover, the knowledge of the parameters such as the inertia and the torque constant of the motor is incompatible with numerous applications such as machine tools where the mass to be driven may easily vary by a factor of 5 during normal use of the installation.
Patent Application DE 199 60 834 A1 proposes that a rule position be measured on the driven part of the spindle and that this measurement be compared with an indirect measurement taken inside the transmission chain, so as to form an error signal. An abrupt increase in the said signal indicates that a collision or an abnormal incident has occurred. However, nothing is suggested therein other than to compare the temporal increase in the error signal with a limit fixed in advance. The problem with this error signal relating to position between motor and driven part is that it is marred by homokinetic errors, which are characteristic of normal operation and again lead to the triggering limit being fixed at an excessive value. On the other hand, the solution advocated is unsuitable when it is necessary to violently accelerate large inertias. Such is the case for the X and Y spindles of electroerosion machines, which serve to move the assembly of the workpiece to be machined and the tray filled with dielectric liquid, the driven masses possibly reaching as much as one tonne.
An aim of the present invention is remedy the aforesaid drawbacks and for this purpose it is one wherein the means of analysis comprise discrimination means devised in such a way as to analyze said error signals obtained in said predetermined intervals as a function of the path traversed in a spatial reference frame with a view to discriminating between errors due to an accidental collision and those due to at least one other cause.
By virtue of these characteristics, it is possible to reliably and rapidly detect accidental collisions, with a detection threshold that is considerably lowered with respect to known devices.
Favorably said transmission assembly possesses a flexibility of transmission which is used by virtue of said error signals as force gauge relating to the driving of the load.
These characteristics allow a very simple construction and a very advantageous cost price.
According to a preferred mode of execution, the means of discrimination comprise at least one restriction of the relevant domain of the data pertaining to the error signals over a limited movement of the load along the path forming at least one spatial window featuring a path traversed by the load devised in such a way as to discriminate between errors due to an accidental collision and those due to at least one other cause.
One thus obtains particularly dependable detection with a reduced detection threshold.
Advantageously the means of discrimination consist of spatial means of filtering adapted for discarding homokinetic errors and/or errors due to thermal variations.
By virtue of these characteristics, any detection defects may be efficaciously avoided.
According to an advantageous mode of execution the means of filtering comprise two circular arrays of data pertaining on the one hand to the movements of the load over said path and on the other hand to the error signals corresponding to these movements and at least one spatial rectangular window comprising the most recent data pertaining to said movements and to said error signals extracted from the two circular arrays.
One thus obtains a detection device of original principle and great reliability.
According to another favorable mode of execution, the means of filtering comprise at least one spatially invariant linear filter which comprises an exponential spatial window.
This mode is especially practical, since it makes it possible to obtain fast and dependable detection of anomalies with a calculation unit of smallish size.
The invention also relates to a method of detecting operating anomalies intended for detecting accidental collisions on numerically controlled drive devices comprising:
By virtue of this method a detection of accidental collisions may be obtained in a simple and reliable manner with a smallish detection threshold as compared with known methods.
Other advantages emerge from the description hereinafter setting forth the invention in greater detail with the aid of drawings which represent diagrammatically and by way of example two modes of execution.
a to 3f illustrate the variations in different signals during a forward and return movement of the load.
a shows the positions xr[mm] occupied by the load as a function of time t[s].
b illustrates the current IM[A] of the motor as a function of time t[s].
c illustrates the variations in the error signal d[microns] as a function of time t[sec].
d shows the variations in the error signal d[microns] as a function of the positions xR[mm] occupied by the load.
e illustrates a magnified part of
f shows the variations in the signal Δdmax=max dK-min dK [microns] as a function of time t [s].
a to 6d illustrate the variations in different signals during a movement with a stoppage (collision) of the load.
a is a chart of the positions xR [mm] occupied by the load as a function of time t[s].
b illustrates the current IM [A] of the motor as a function of time t[s].
c shows the variations in the error signal d[microns] as a function of time t[s].
d illustrates the variations in the error signal d[microns] as a function of the positions [xR] occupied by the load.
a to 7h illustrate the variations in different signals of a spatially invariant filter used in a second exemplary mode.
a and 7b are charts of the output signal of the filter y(k) as a function of the positions xR(k) for a fast and slow movement.
c and 7d show the positions xR(k) as a function of the various measurement points k.
e and 7f illustrate the output signal of the filter y(k) as a function of the various measurement points k.
g and 7h correspond to charts of the value of the error signal d(k) of the various measurement points k.
The numerically controlled drive device of the present invention possesses a general configuration such as illustrated in
Means of calculation, in the form of a calculation unit 20, are devised so as to calculate at predetermined time intervals an error signal d according to the equation
d=xR−rXM
where r is equal to the reduction ratio of the transmission assembly 12a.
The error signal d therefore corresponds to the deviation between the position of the load and the motor position in relation to the load.
In the configuration illustrated in
Other transmission elements are conceivable, such as shafts, harmonic-drive, etc.
However, it is preferable to choose components having no play. Elements, such as a gear with no prestress, exhibiting play on reversal, for example, are easily subject to perturbing oscillations sustained by the servocontrol and will require particular constraining precautions.
The error signal d illustrated in
The teachings given by DE 199 60 834 A1 suggest observation of an abrupt increase in the error d, stated otherwise a quantity of the type Δd/Δt. We shall see that such an approach compels the fixing of exaggerated detection limits so as to be able to ignore the sum of the defects detailed hereinbelow, which must be tolerated, being as they are typical of normal operation in particular collisionless.
As illustrative example, it is proposed to consider the y spindle of an electroerosion machine. The inertia of the motor 14 equals 0.31 g m2, the reduction ratio of the belt transmission 11-13 is 5, the pitch of the screw 17 is 5 mm/turn, the mass of the table carrying the workpieces to be machined varies between 620-1120 kg, the rigidity of the transmission is k=175 N/μm.
c, 3d and 3e illustrate the signal d of a drive of the type shown in
The homokinetic error originates from defects of manufacture of the screw and for disturbances generated by the system for recirculating the balls inside the nut. For the particular case illustrated in
To this fluctuating quantity are added the errors of thermal type which are manifested as a drift in the signal d as a function of position xR since the length of the screw and thus the reduction ratio r changes.
For a steel ballscrew of length 440 mm, for example, whose thermal expansion coefficient equals 12 microns per meter and degree Kelvin, the error for a variation of 1° C. engenders a defect of 5.28 microns. Such a temperature variation may originate from changes of the air in the workshop, the exposure of the machine to sunlight, or even local warming engendered by the motions of the spindle and friction in the ball bearings. These thermal type errors explain in the plot of
In the same plot of
According to the present invention, the flexibility of transmission is used as force gauge regarding the load which generates said transmission error signal d whose components are discriminated and filtered of the homokinetic defects so as to avoid triggering a false collision alarm in the presence of tolerable defects. In order to perform said filtering, the spatial increases in the error signal are observed, instead of monitoring its abrupt temporal increases.
The significant point is that the error signals d are processed by analysis means comprising discrimination means devised so as to analyze the error signals obtained in the intervals predetermined as a function of the path xR traversed in a spatial reference frame d, xR with a view to discriminating between errors due to an accidental collision and those due to at least one other cause.
The influence of homokinetic errors of transmission are dispensed with by means of a restriction of the relevant spatial domain of the data regarding a limited movement by forming at least one spatial window featuring a path traversed by the load devised in such a way as to discriminate between errors due to an accidental collision and those of other causes.
This restriction of the relevant spatial domain is achieved either by virtue of a rectangular window and a circular array properly managed according to the first mode of execution, or by virtue of one or more exponential windows according to the second mode of execution whose manner of operation associated with the spatially invariant filters (linear space invariant LSI) will be explained hereinbelow.
These means of filtering by restriction of the spatial domain are chosen experimentally so as to discard homokinetic errors and/or thermal errors.
The first mode of execution with a rectangular window in space is based on the software architecture illustrated in
The first and second values of position xM and xR are provided to the calculation unit 20 which establishes the error signal d=xR−r xM.
The values of d and xR are recorded in two circular arrays 44 and 45 of size n, n being for example 50.
The index 1 denotes the most recent sample recorded. Recording is performed in accordance with a predetermined sampling period, for example 2 msec.
From these logged data is extracted a subset of the most recent successive samples D={i:1≧i≧i max} for which the domain of the positions traversed remains less than a limit Lx or width of the spatial window, such that
It is judicious to choose the width of the spatial window Lx at a fraction of the period of the local homokinetic error; for example, for a periodicity at 7 mm, one advantageously chooses Lx=0.1 mm. By decreasing LX, the homokinetic defects are ignored more and more, not allowing the detection of collisions other than with regard to more and more rigid members. A large spatial window LX allows the detection of soft members, but the homokinetic defects are almost unattenuated and the detection level Ld,rel must be chosen likewise large, thereby reducing the sensitivity of the method to detect a collision.
Stated otherwise, the subset 43 of the most recent successive samples D={i:1≧i≧i max} may be viewed as a sliding rectangular spatial window in which are found as abscissa the movements xR by the load and as ordinate the error d=xR−r xM.
It is essential that the path taken into account in said window
remain independent of the velocity of the spindle in the case of temporal sampling, for example at regular intervals h of 2 msec.
It should be noted here that a spatial sampling, obtained by replacing for example the pulses of the clock with pulses similar to those of a clock but produced by the encoder 15 (
A collision will be characterized by the overstepping of a limit Ld,rel, defined hereinbelow, of the dynamic range of d over the subset D chosen in the rectangular window 43 according to the operation
where
Stated otherwise, each time the size and the content of the window 43, realized by the circular memories, are updated, we retain the maximum value d and the minimum value d from among the subset D of relevant samples (log), so as to form the difference thereof and then compare it with a threshold value Ld,rel. Each sample of pairs of values xR(k), dK is stored with the same weight in the rectangular window, hence the name rectangular.
The prior choices of the threshold Ld,rel, and of the width of the sliding window Lx, that is to say the calibration of the device need to be made on an installation in good working order.
The value of Ld,rel will be fixed by observation and analysis of the amplitude and of the shape of the local homokinetic error. It is proposed that the tailoring of the triggering limit Ld,rel be based on the empirical properties of the drives concerned. The procedure consists in recording the domain of variation of d over the subset D chosen, for a certain number of relevant situations which must not trigger the collision detection, in particular:
Thus, the highest
for normal operation is evaluated. The triggering limit Ld,rel is chosen with a sufficient margin, such that Ld,rel is fixed at m % of the maximum value of Δdmax, m advantageously lying between 120 and 250, very favorably between 140 and 200 and preferably being equal to 150.
f shows such a tailoring graph for a high speed movement, the case identified as being the most critical for the drive concerned. The maximum of Δdmax at 2 microns, labeled 31, is attained upon reversal of the direction of motion because of the energy recovered upon the reversal of the motion. It has been possible to reduce the influence of the homokinetic defects of the mechanical transmission to 0.8 microns maximum, labeled 32 in this figure. For the case shown, the triggering limit may thus be chosen at Ld,rel=3 microns, while allowing a safety margin of 50%; to be compared with the 20 to 30 microns necessary for the methods known in the state of the art and emerging from observation of
By virtue of the invention the collision detection threshold may therefore be lowered by a factor of six to seven as compared with the known methods.
As shown in
in the rectangular window 43 carries out a high-pass filtering which removes from the signal d the spatial component corresponding to the pseudo-period of around 7 mm, as well as to the drifts of thermal type. Expressed in a more general manner, the influence of the thermal and homokinetic errors of transmission are dispensed with by means of a restriction of the relevant spatial domain of the data regarding a limited movement; hence the possibility of placing the limit Ld,rel at a smaller value allowing better sensitivity.
In the most widespread cases when the sampling is regulated by a clock, the limits of the spatial window of a predetermined length do not generally coincide with the moment of measurement of the samples of pairs of variables xR and d. It is therefore necessary to perform an interpolation which is especially useful in the case of high speed movement when a small number of samples is used, for example 3 samples.
The most recent spatial limit of the spatial window is not interpolated, whereas the oldest spatial limit furthest from the window by a width LX forms the subject of an interpolation for the value of the error signal d.
This interpolation value is then stored as oldest sample of the spatial window. No interpolation is necessary if the sampling h is spatial instead of being temporal.
For the embodiment of the detection device, it is preferable to combine the operations described hereinabove into a single software function, called periodically, for example with a periodicity h of 2 msec.
This management of the log 51 comprises the following steps:
52: Firstly the point of insertion of the new information regarding position and error signal xR(k), d(k) in the circular array is determined.
53: If the circular array is full, then the oldest point is deleted so as to make room for a new data item; the length traversed in the segment thus removed is deleted from the length of the total path traversed during the log.
54: The information regarding position xR and error signal d is inserted.
55: The corresponding length traversed is added to the length of the total path traversed during the log.
56: The nub of the invention consists in reducing the size of the array considered to a subset of length traversed limited to Lx. This operation determining the relevant subset D requires the traversal of the circular array. The corresponding calculational burden limits the maximum size n of the circular array as a function of the calculation unit available. For the oldest segment of the log, the coordinates of the point corresponding precisely to the length LX must be interpolated separately. This additional functionality in step 56 serves to improve the precision of the algorithm, especially at high speed of movement of the load where the ultimate number of samples is small, for example close to 3.
57: The dynamic range of the kinetic defect d is evaluated by determining Δdmax.
58: Finally the dynamic range Δdmax is compared with the limit Ld, rel.
The application of the present invention to the detection of a collision on a stop 19 equipped with elastic washers as illustrated in
The mode of execution described hereinabove in regard to the principle of a rectangular sliding spatial window, while being precise is nevertheless relatively complex. It is necessary to manage a circular memory in which a number n of samples, 50 for example, is stored, from which number is extracted a variable number of relevant samples, from 3 to 50, depending on whether the speed is large or small.
The samplings are generally regulated by a clock, and therefore do not coincide with the relevant spatial bounds for the observation of the phenomenon. This makes it necessary, in particular when the number of samples retained is small, to make corrections by interpolation on the oldest sample, in order to guarantee precision.
To ascertain the dynamic range of the error signal, all the samples must be reviewed each time the software function is called, hence the need for suitable dimensioning so as not to overstep the limit duration of the processor's calculation loop.
Making the assumption of a moderate acceleration, for example of the order of 0.5 m/sec2 associated in the present case with a fast sampling period of 2 m/sec, a numerical integration by a spatially invariant, first order linear filter (LSI) makes it possible to provide a simpler and more economical mode of execution as summarized in
The essence of the operations is contained in the block 81 and consists in carrying out a mapping into the spatial domain of the temporal information of the error signal d(k) regulated by the sampling clock. The block 81 contains the blocks 82, 83, 84, 85 for the management of the log of d by means of an LSI characterized by spatial constant xS. It should be noted that xS is analogous to the movement LX defining D of the first mode of execution which carries out the restriction of the relevant domain of the data over a limited movement.
The block 86 detects the collision by performing the comparison with the threshold value Ld,rel,Isi.
The blocks 82 to 85 are similar to the blocks 52 to 57 of
The same variables xR(k), d(k) as are present in
The expression ξ(k)=a1(k) ξ(k−1)+b0(k) d(k) of the block 84 must be viewed as a low-pass filter on the signal d(k).
ξ(k−1) represents the state of ξ(k) during the previous calculation loop, that is to say for example 2 msec before the present instant.
Stated otherwise, ξ(k−1) is the memory of the log of the error signal, comparable to the circular memory 44 of
The calculation of ξ(k) depends, according to the expression of block 84, on the spatial filtering parameters a1(k) and b0(k) calculated previously at 83 and updated at each calculation cycle, for example, each 2 msec.
b0(k) follows simply from a1(k), i.e. b0(k)=1−a1(k)
The exponential law written down at 83 demonstrates that the filtering constants depend on the path traversed during the last period ΔxR(k)=xR(k)−xR(k−1) calculated in the block 82.
where xS [microns] is the space constant of the exponential window, see
The calculation of a1(k) according to this procedure ensures that the input/output properties of the filter, in the case of temporal sampling, are independent of the speed of the spindle, thus carrying out a mapping into the spatial domain of the temporal information regulated by the sampling clock.
a1(k) and b0(k) are fixed if the speed of the spindle is constant or if a spatial sampling is carried out directly.
As stated above, the expression ξ(k) symbolized in the block 84 of
Stated otherwise, ξ(k) retains only the components of the error signal that are characterized by low spatial frequencies and correspond in the case represented in
Finally, the expression y(k)=−ξ(k)+d(k) of block 85 of
of the first mode of execution and which removes from the signal d(k) the spatial components that one wishes to tolerate.
This spatial filtering carried out by blocks 84 and 85 therefore makes it possible to dispense with the influence of the homokinetic transmission errors and enables, in the operation |y(k)|>Ld,rel,Isi of block 86, the collision detection limit Ld,rel,Isi to be placed at a lower value resulting in better sensitivity to the risk of collision that one wishes to detect.
As already stated above ξ(k−1) is the memory of the log of the error signal, comparable to the circular memory 44 of
a to 7h show the characteristics of a spatially invariant filter (LSI) of order 1 realizing an exponential window. For the case illustrated, the input to the filter d(k) is chosen in such a way that d(k)=0 for all xR(k)<0, and d(k)=1 for all xR(k)≧0. This exemplary filter, being determined by the value of its spatial constant xS=1, is then characterized by a relation between the position signal xR(k) and the output signal y(k) identical for all monotonic traversals xR(k).
In
b, d, f and h are characterized by a larger density of samples on account of the lower average speed.
Of course, the embodiments described hereinabove exhibit no limiting character and may be modified in any desirable way within the framework as defined by claim 1. In particular, the applications make it possible by the second mode of execution are not limited to the use of simple spatially invariant filters (LSI) of order 1. The above explanations make it possible to implement high-pass and low-pass filters in the spatial domain so as to dispense with a large part of the homokinetic defects. By choosing other values of spatial constant xS, the theory of digital filters makes it possible to extend the procedure and to combine well-known bandstop or bandpass filters so that the tolerable homokinetic components of the error signal can be extracted still more finely. The device and the method described may also be applied to apparatuses and machines having several spindles and to circular or any non-linear movements.
Number | Date | Country | Kind |
---|---|---|---|
00735/04 | Apr 2004 | CH | national |