ROBOTIC MOVEMENT OF OBJECT OVER A WORKPIECE SURFACE

Abstract: A system for robotic control of an object (30) having x, y and z axis translational movement and C and D axis rotational movement capability. The object (30), which may be a robotic element such as a manipulator or machining tool or a laser beam positioner is controlled by the system for automatic tracking and orientation of the object (30) over the surface of a workpiece (40). It provides controllable movement and orientation of the object (30) along selectable axes for accurate tracking of the workpiece (40) surface by the object (30). The system allows processing of the workpiece (40) by the object (30) even when the axis of the object (30) is oriented at an angle other than normal to the surface of the workpiece (40). The system when used to control a laser beam provides for control of the focal point of the beam at a particular displacement from the machining nozzle tip (80), using a least mean squares curve fitting technique and a sampled capacitive sensing device operative in the refractory interval between laser pulses and further provides for identification of a mounting fixture unique to a workpiece (40) by sensing coding on the surface of the fixture thereby to select a particular part machining program.

Description: ROBOTIC MOVEMENT OF OBJECT OVER A WORKPIECE SURFACE Background of the Invention This application is a continuation in part of application SN 07/929,942 filed August 14, 1992. This invention relates generally to the automatic or robotic control of the movement and positioning of an object relative to the surface of a workpiece. In specific embodiments it may relate to the control of an object such as a machine tool relative to the surface of a workpiece which is to be machined or, alternatively, to the control of an object which may be a laser beam positioner for directing a laser beam to a impinge upon a particular point on the surface of a workpiece for machining or working the surface. While the invention generally relates to apparatus and methods for determining and controlling the position and orientation of a tool head relative to a workpiece for carrying out programmed instructions for manufacturing operations, in its laser machining embodiment it more specifically relates to measuring and controlling the distance between the tool and the workpiece as the machine operates, determining the location of the focal point of the laser beam and optimally aligning the beam axis to a desired orientation relative to the surface of the workpiece and for calculating the orientation of a tool control axis normal to a complex surface of a workpiece. The system also includes provision for recognizing the programs to be run for a sequence of operations by recognizing the tooling of the workpiece to identify the part program of operations related to the particular workpiece. Determining Normal vector to part surface In many robotic or automatic positioning systems it is often necessary to have the ability to orient an object such a a tool to a specific angle and to bring an operating point of a workpiece engaging portion of the object into position at a single point or a along a series of points on the surface of a workpiece. In such instances it is necessary to determine the unit normal vector at a series of points along the surface of the workpiece. Specifically, in multi-axis laser machining or processing (i.e. cutting and welding) , two alternative methods are commonly used to cause the focus point of the beam to follow a precisely programmed path on the surface of a three dimensional part. 1. Beam motion. Two orthogonal rotary axes fitted with appropriate 45° tilted mirrors, are carried on a 3 dimensional linear coordinate system to move the beams in the preferred embodiment of the invention. In alternative embodiments optical fibers may be used to move and aim the laser beam in place of the mirrors. 2. The part being processed is rotated under a beam pointed downward by two orthogonal rotary axes commonly called a rotary tilt table. The two methods theoretically achieve the same purpose, that is, causing the focal point of the beam to follow a precise path on the part surface while keeping the orientation of the beam to the part surface at a programmed angle, usually 90°. Cutting and welding normal (90°) to the part surface has several beneficial effects. Less reflection of the laser beam occurs, causing more power to be absorbed by the workpiece, resulting in faster cutting and deeper penetration welding. The part is effectively thinner when cutting normal to the surface. Other advantages to orienting the beam to be normal to the surface include better processing gas flow dynamics through the nozzle and through the cut part and an ability to assure the forming of a square cut edge. When programming the machining operations for a part, using a full three dimensional cad cam system, for example, the computer calculates the precise angles of the two rotary stages of the laser positioner so that in practice the unit normal vector which points out of the part surface at the point of incidence is exactly aligned with the axis of the focused beam, the so called d vector. While computers are adept at calculating the compound angles necessary to produce a correct d vector of a laser beam that will "poke into" the part surface unit normal vector, humans are not 5 nearly as good at estimating the correct d vector when "teaching" a part program how to follow the specific contours of an actual workpiece. Even with special software such as tool center point (focal lock) which causes motion of the rotary 10 axes without losing the focal point (nozzle tip) location, d axis estimations are often poor. Errors of 5° to 10° are common. When the errors are then embedded in the part machining program, they can cause jerky motion of the beam 15 positioner, which results in poor cut quality, particularly if the taught reference points are closely spaced. Sampled sensing Automatic focus control is mandatory in 20 laser cutting and welding processes if the shape of the part being cut or welded does not exactly conform to the part program which guides the laser nozzle or other tool over the part at, desirably, a constant separation or gap between the nozzle 25 tip and the part. It is often the case that the part is either warped or fixtured slightly out of the correct position or moves due to stress relief as it is being cut or welded. If the gap varies appreciably from the specified value, the focal 30 point of the laser beam, located a small distance below the nozzle tip, will not be in the correct location relative to the part and the beam will be "out of focus." If this occurs, the machining processes of cutting, welding, etc. are no longer under control and unsatisfactory cuts or welds will usually result. It is very desirable, if not mandatory, that the gap be sensed just under the tip of the nozzle i.e. along the axis of the tip rather than offset from the nozzle tip axis. This is quite easily accomplished with capacitive sensors, where the capacitance between the tip of the copper nozzle and the conductive part becomes the frequency determining element of an oscillator. The frequency of the oscillator is inversely proportional to the capacitance which is itself directly proportional to the gap distance. Thus, the separation of the tip and part is sensed just below the nozzle tip. Examples of such sensing techniques are shown in Tikijian U.S. patent 3,596,050 which measures the change in capacitance between the part and a metal plate mounted with the tool and in Schmall United States patent 4,298,784 which measures the capacitance as well as an inductance change as a function of the distance from the workpiece to the tool and the lateral position of the workpiece relative to the tool. Such systems, because they rely upon measurement of capacitance between the tool and the workpiece are not suitable for continuously monitoring the tool to workpiece distance while the tool operates if the tool creates an ionized plume as does a C0 2 laser welding system. Eddy current sensors which provide an alternative method for measuring the gap, ideally would have a winding or coil in the nozzle itself in order to measure the gap in close proximity to the focal point of the laser beam. However, a metallic nozzle cannot readily be used in such a system since the nozzle itself would absorb much of the eddy current, rendering the sensor quite 5 insensitive. Furthermore, nonmetallic nozzles often cannot withstand the intense heat of a weld plume. In any case, an imbedded eddy current coil would exhibit temperature effects which are often indistinguishable from eddy current effects due to 10 the temperature coefficient of resistance of copper wire. While a ferrite nozzle would minimize such temperature effects, the relatively low Curie temperature of ferrite renders it useless if it is in close proximity to the beam 15 due to the high temperature of the nozzle caused by radiation from the weld plume. Offsetting the eddy current sensor renders it less useful as a sensor, since it is not sensing in close proximity to where the cutting or welding is being done. 20 While the capacitive sensor is preferred in the prior art for establishing the distance for laser cutting, it is useless for C0 2 laser welding, since the conductive weld plume, or plasma, which surrounds the nozzle tip essentially 25 shunts or short circuits the capacitance between the nozzle tip and the part so that monitoring the distance is impossible during periods when the beam is in operation. It is also understood that the capacitance measuring problems caused by the 30 conductance of the weld plume are not necessarily limited to systems employing C0 2 lasers but also may be aplicable to Yag and Tig lasers or any other process which causes ionization between the operating point of the tool and the surface of the workpiece. Selectable seek automatic focus control Most automatic focus controls also referred to as AFCs, utilized in laser machining systems utilize a small, often easily damaged, linear servo system which moves the lens/nozzle assembly in a direction parallel to the beam and nozzle under the control of a gap sensor which may use either a capacitor, an eddy current sensor, or some combination thereof. Such sensors sense the gap between the nozzle and the workpiece and command the lens servo system of the beam positioner to keep the gap constant when the workpiece deviates from its expected position relative to the part program. This may be caused by the part's motion while being laser cut or simply that the part is not exactly the same shape as called for in the part program. In any case, motion of the AFC axis is fixed parallel to the beam and nozzle. On a more general basis, it is necessary for the robotic system or the automatic positioning system to be able to maintain the orientation of the object, i.e. the machine tool, robot manipulator or laser beam, relative to the surface of the workpiece and to hold the positioning of the operating point of the workpiece engaging portion of the object relative to points on the surface of the workpiece. In the case of the laser beam positioning system embodimenst of the present invention this involves holding the orientation of the laser beam at a particular orientation relative to the unit normal vector at various points on the workpiece surface while holding a predetermined distance from the surface of the part. In embodiments of the system where the object is a rotating machine tool, the operating point may be the drilling or milling point of the tool and the system functions to align the tool with the surface of the workpiece and orients the rotational axis of the tool relative to the unit normal vector. In other embodiments of the invention, the system functions similarly, positioning and orienting the object to apply the operating point of the workpiece engaging portion to a series of selected points on the surface of the workpiece without having other portions of the object contact the workpiece. This method of control of the laser tool or nozzle has several disadvantages. 1. The linear lens/nozzle servo is delicate, easily damaged in a collision with a part or fixture, and is expensive. 2. The AFC does not know the exact position of the focal point if the lens servo is off of its nominal programmable position (due to part displacement error) , which is usually the case. This is due to the fact that the positioner control using the gap sensor is only in a local position loop, which is dedicated only to keeping the gap constant. Information relative to its displacement of the focal point from the programmed location is not known by the main position loop. 3. Although it is sometimes necessary for an AFC to seek the part surface and maintain a constant gap in an axis not parallel to the axis of the laser beam and lens/nozzle assembly, the prior art AFC systems do not permit such control. Focal Point locating The focal length of economical, commercially available lenses used to focus laser beams is specified by the manufacturer to a tolerance of several percent. A common technique used in industrial laser material processing where energetic lasers are used to cut and weld materials is to move the lens assembly so that the true focal point moves above and "below" the surface of the material. When a C0 2 laser is used, if one adjusts the laser power correctly, a blue spark is observed which is indicative of the laser beam interacting with material when one is at or near the focal point, with the bluest spark, i.e. the hottest spark occurring when the focal point is positioned on the surface of the part. However, it is difficult to find the focal point in this manner to an accuracy of better than approximately ± 0.5 mm. While such accuracy may be acceptable for 2 dimensional (2 axis) cutting or welding, it is often not acceptable for three-dimensional (5 axis) cutting and welding, since the focal point location becomes part of the coordinate system and the focal point of the laser beam may not track the desired point in space. An additional reason that it is difficult to find the exact focal point is that no discrete point exists. Rather the beam makes a smooth transition symmetrically through a focal region. Since there is no discrete focal point but a continuous "waist" to the beam, the operator is left to judge where the bluest blue occurs, a judgment decision on which two different operators often disagree on and which a single operator often cannot accurately repeat from one trial to the next. Thus, finding the focal point by prior art "cut and try" means that require judgment by the operator is often not an accurate or repeatable procedure. Another method for finding the focal point is to measure, or listen to, the acoustic emissions emanating from the workpiece as the focal point of the beam passes from a point above the part surface to a point on the part surface and finally to a point below the part surface. Since the energy density of the beam is greatest at the focal point, the acoustic emission is greatest when the focal point is at the part surface. Without further aid, the operator would have to judge at what point the loudest emissions are heard, or measure with a microphone and meter, to determine the focal point. Automatic Fixture Identification Finally, it is advantageous for users of laser machines to have a means to select a corresponding part program based on the identity of the part being machined. In the currently available systems, the operator identifies the part to be processed and manually selects the program to be run on the machine. Summary of the Invention The present invention relates generally to several specific aspects of providing automatic control of the positioning and orientation of an object such as a laser beam positioner device or a machine tool or a robotic manipulator at selected positions relative to the surface of a workpiece. Unit normal vector determination The automatic control according to the present invention is unique in that it uses the existing x, y and z translational axes upon which the two rotary axes, C and D, of the beam positioner ride to effect control of the distance between the operating point of the workpiece engaging portion of the object and the surface of the workpiece to allow, in some cases the point to trace the surface of the workpiece. In the case of a laser beam control the system is operated to hold focus, or, a constant gap between the tip of the nozzle and the workpiece. Since the d direction of the laser beam emitted from the beam positioner is a function only of angles C and D, the laser process controller computer uses the C/D angle data to produce a vector equal to d using the three linear axes. Translation-in this case is parallel to the direction of the beam. In a preferred laser machining embodiment of the present invention a capacitive sensor measures the capacitance between the nozzle tip and the workpiece and a servo position loop causes the linear axes to move in the direction of the d vector or any other desired vector to achieve a constant value of capacitance and hence a constant distance between the nozzle tip and the part. Other gap sensing means can also be used in connection with the determination of the unit normal vector. With the automatic focus control ("AFC") arrangement of the preferred embodiment of the present invention, the location of the focal point is always known and it is used to compute the amount of travel required of the linear axes to achieve a constant distance between the nozzle tip and the workpiece. This contrasts with other types of focus control which use a small linear servo system to move the lens and nozzle assembly to keep a constant gap between the nozzle tip and the workpiece. It is an object of this invention- to provide an automatic control system for automatically orienting an axis of an object with a predetermined vector while tracking an operating point of a workpiece engaging portion of the object over a predetermined and selected path on the surface of the workpiece. It is also an object of this invention to provide an AFC system for a laser machining system which automatically aligns the laser beam normal to the surface of the workpiece. The object can be obtained by providing, in a system for robotic control of an operating point of a workpiece engaging portion of an object along orthogonal object translation axes x, y, and z and orthogonal rotational axes C and D of a multiaxis object positioning apparatus, a method for determining a unit normal vector at a point on the surface of the workpiece, said method comprising the steps of a) positioning an operating point of the workpiece engaging portion of the object at a reference point on the surface of the workpiece b) adjusting the C and D object positioning axes to orient a major axis of the object substantially normal to the surface of the workpiece and the x, y, and z axis to position the operating point of the workpiece engaging portion of the object coincident with the reference point to orient the major axis, d' of the object approximately normal to the surface of the workpiece at the reference point c) defining a local orthogonal coordinate system u, v, and w where w is the unit normal vector of the workpiece, is aligned with the -d by varying the C and D axis rotations and the origin of said local coordinate system is positioned coincident with the operating point of the workpiece engaging portion of the object by variation of the x, y, and z axis positions d) creating an object moving program in the local coordinate system to move the operating point of the workpiece engaging portion of the object to three points PI, P2 and P3 on the workpiece surface which are non- coilinear and define a plane to which the true unit normal vector is normal, said points positioned preferably equidistant from the origin of the local coordinate system e) executing the object moving program in the local coordinate system while the object positioning apparatus is active thereby to avoid collision between the object and the workpiece and while recording the coordinates of the x, y, z, C and D axes at points pi p2 and p3 while the AFC maintains constant positioning of the operating point of workpiece engaging portion of the object relative to the workpiece surface f) computing the orientation of a true unit normal vector to the workpiece at the reference point by calculating the cross product of the vectors vl between PI and P2 and v2 between PI and P3, or n = _2 j _ x V 2 |V, V 2 | g) adjusting the angles of C and D rotational axes to orient d of the workpiece engaging portion of the object such that an adjusted d is aligned with and in opposition to the unit normal vector n at the reference point of the workpiece. Sampled Sensing It is an object of the present invention to provide a object orienting and positioning system, specifically a machining system in which the control of the distance between the an operating point on a workpiece engaging portion of the object, for example, a laser machining nozzle for delivery of a laser beam and an inert gas, and the workpiece is sensed by a capacitive sensor which is sampled only during the refractory interval between pulses to avoid the errors introduced by the conductive plume present when the laser beam is turned on. The object above can be attained by provision, in a system for machining a workpiece with a laser beam tool, a control means for maintaining a controlled distance between the tool and a workpiece surface, according to the present invention, comprising capacitive sensor means for measuring the capacitance between the tool and the surface of the workpiece, beam control means for driving the laser beam for the tool with in periodic pulses separated by a refractory interval, sampling means for taking a measurement of the capacitance between the tool and the workpiece during the refractory interval. Selectable seek laser beam automatic focus control There is a need in robotic and automatic orientation and positioning systems for establishment of separate axes for moving the object relative to the surface of a workpiece. In order to best illustrate this principle, the explanation below is written in terms of the a laser beam automatic focus control although the same principles are equally applicable to robotic and automatic orientation and positioning systems as well. Consider a metal cylinder such as a jet engine combustion chamber. Being large and made of relatively thin metal, it is usually "out of round" or has "run out", i.e. its radius varies as a function of rotation. See Fig. 2. Runout errors of 0.1 inch or more are common. A front view of the cylinder would show a wall displacement from its nominal or expected position of ΔR = R- ^ - R m i-, as a function of rotation. See Fig. 3. If one is cutting normal to the surface, there is no problem; however, if one is cutting at an angle which is intentionally off normal to the surface, then large errors between the desired, i.e. the programmed, cut path and the actual cut path on the part will result. In order to fully appreciate the magnitude of the errors, consider the following: Specifications require that a row of holes be cut in a cylinder at an angle 75° off normal to the part surface, or 15° off the plane of the part, and that the row of holes be on a "water line", e.g., a straight line in the front view. It can be shown that autofocus in the direction of the beam causes a sinusoidal displacement of holes relative to the desired waterline where amplitude is proportional to the amount of runout and the angle off normal at which cutting occurs. If φ = 0° e.g. the beam is normal to the part surface, then tan = 0 and no displacement error results. However, if φ = 75°, then tan 75° = 3.73. Therefore E = 3.73 X ΔR. If ΔR = 0.1 inch, then 3.73 X .1 = .373 inches! It is necessary to allow cutting to be conducted at an angle other than perpendicular to the surface of the workpiece without having a row of holes exhibit a substantial deviation from a straight waterline. Another object of the present invention is providing autofocus control of the focal point of a laser beam by defining a vector using the linear axes of the machine, which is then used for alignment of the beam axis of the nozzle as the nozzle is moved along the axis in response to the error signal from the sensor. The object above can be attained by providing in a system having an automatic focus control for moving the focal point of a laser beam by movements along orthogonal machine translation axes x, y, and z and C and D rotational axes of an adjustable beam directing head mounted on the machine, a method in accordance with the present invention for positioning the focal point of a laser beam at selected points relative to the surface of a workpiece, the method comprising the steps of a) by varying the orientation of the C and D rotational axes thereby to adjust the beam axis of the directing head to an expected predetermined orientation relative to the surface of the workpiece and aligning the x, y, and z axes to place the beam on one of the selected points, b) using a gap sensor for generating a signal proportional to the displacement between the directing head and the surface of the workpiece and moving the directing head along a selected x, y and z coordinate axis to maintain a predetermined direction as the beam focal point is moved through selected points. The selectable seek feature of the preset invention operates by allowing the AFC to seek along a selected axis, such as the x axis when cutting off normal rather than seeking along the unit normal axis, d. The selectable seek operation of the system allows the user to determine the vector direction that will be followed by the AFC in achieving a constant gap. In most operations this selected axis corresponds to d, i.e. parallel to the beam, but in selected examples it can be selected to move in another direction such as the x axis. Focal point locating and control In laser machining embodiments of the present invention where acoustic or optical emissions are tested to find the focal point of the laser beam by operator impression, much greater accuracy and repeatability can be obtained by using least squares curve fitting techniques on the data to determine the coefficient a 1; a 2 of a parabola of the form y(x)= a 0 + ajX + a 2 X 2 . This technique fits the data to a known parabola with the least error. It is an object of the present invention to provide a least squares curve fitting technique to enhance the accuracy of positioning the beam focal point on the workpiece surface. The object above may be attained in a system for machining a workpiece with a laser beam tool which includes control means for maintaining a controlled distance between the tool and a workpiece surface, apparatus for determining when the focal point of the laser beam is optimally positioned at the surface of the workpiece, said apparatus comprising, in combination, means for monitoring an indicia of optimal beam interaction with the surface of the workpiece as the focal point of the beam is moved toward the surface of the workpiece from above and below the workpiece, means for recording the coordinates corresponding to the point where the indicia indicated maximum activity for movement of the beam in both directions toward the surface of the workpiece, and means for analyzing the coordinate points obtained in the recording and analyzing steps above by a least squares method to obtain the coordinates for commanding the machine to maintain an optimum gap distance for positioning the focal point of the beam at the surface of the workpiece. Fixture Identification It is an object of the present invention to provide apparatus for simplifying the selection of the program to be run for performing operations upon a particular workpiece. The object above can be attained by provision of a fixture identification feature of which provides a means for a user to identify a fixture and select a part program based on that identification. More specifically the object may be attained in a system for machining a workpiece with a laser beam tool including means for measuring the distance between a sensor positionable by the automatic focus control of the machine and a workpiece surface, means for determining the programs to be run by the machine to process a workpiece in accordance with one of a plurality of processing programs, said means comprising, in combination, sensor means for measuring an indicia applied to a fixture for a workpiece, means for automatically and sequentially moving the sensor means to a series of reference points at predetermined locations on the fixture in accordance with a fixture identification program and measuring the indicia at each point, and means for decoding the indicia pattern to identify and select the program to be run by the machine in accordance with the coding on the particular fixture. Brief Description of the Drawings Fig. 1 is a perspective view of a beam positioning device used in a preferred embodiment of the present invention with the x, y and z translational and C and D rotational axes labelled and showing, in phantom outline, rotation of the machining nozzle 90° about both the C and D rotational axes; Fig. 2 is an illustration showing variation of the radius of a workpiece as a function of rotation; Fig. 3 illustrates the movement of the workpiece wall positions as the radius varies; Fig. 4 is a block diagram of the sampled gap sensing apparatus according to the present invention; Fig. 5 shows the orientation of the d and n axes in the x, y, z and C D system; Fig. 6 shows vector translation; Fig. 7 illustrates transformation of the u, v and w coordinates into the x, y, z system; Figs. 8 through 9a further illustrate the y coordinate transformations; Fig. 10 shows the errors in the normal vector which occur due to nozzle gap errors when the workpiece radius is small relative to the radius of points ~ ? P 2 and P 3 ; Figs. 11 A and B illustrate the least square curve fitting technique; and Fig. 12 is a diagram showing the equipment arrangement for the focal point locating method. Detailed Description of the Invention The various aspects of the present invention are all related to either robotic positioning systems or a machining system for performing various machining operations on a workpiece under control of a computer numerical control (CNC) system. The system in all instances positions an object such as a robotic manipulator, a machining tool or laser beam positioner at a desired orientation and aligns a operating point of a workpiece engaging portion of the object with predetermined selected points on the surface of the workpiece. In a preferred embodiment of the invention, the machining operations involve use of a laser beam to perform the machining operations although the various embodiments of the present invention are not necessarily limited to laser machining systems. A suitable CNC laser machining system is disclosed in U.S. Patent 4,555,610, assigned to the assignee of the present application. The machining system of U.S. Patent 4,555,610 is a system which moves a cutting head along three translational axes. Addition of a beam positioning head 12 to the x axis translational beam 20 of the machining system allows for rotational movement of nozzle 30 about additional axes C and D as shown in Fig. 1. Normal vector determining The ability to constantly monitor the distance between the nozzle and the surface of the workpiece provided using the sampled sensing apparatus above allows improved operation of the automatic focus control of a laser beam tool typically used for cutting or welding. The automatic focus control according to the present invention differs from prior systems by using the existing x y z system axes upon which the two rotary axes C and D ride to effect focus control, or, a by controlling a constant gap between the tip of the nozzle and the workpiece. Since the d direction of the beam delivered by the positioner is a function only of angles C and D, as shown in Fig. 5, the laser process controller or computer uses the C/D angle data to produce a vector equal to d using the three linear axes. Vector translation in this case is parallel to the direction of the beam. The capacitive sensor of Fig. 2, as illustrated in Fig. 6, measures the capacitance between the nozzle tip and the workpiece and the servo position loop of the CNC, and causes the linear axes of the machine to move in the direction of the d vector to maintain a constant value of capacitance and hence a constant distance between the nozzle tip and the part as the nozzle is moved across the surface of the part in response to the machining program. With the automatic control of the present invention, the location of the focal point is always known and it is used to compute the amount of travel required of the linear axes to achieve a constant gap. The control methodology of the present invention contrasts with other types of focus control known in the prior art which use a small linear servo system to move the lens and nozzle assembly on the beam axis only in order to keep a constant gap between the nozzle tip and the workpiece. In such systems lens/nozzle servo has a limited range, typically 0 ±0.2 inches from nominal, and operates independently of the part program. Thus the location of the focal point is known only when the lens servo is in its nominal or "no error" position, a situation which is not usually the case or focus control wouldn't be needed. The success of the method of measuring the part surface normal vector in accordance with the present invention depends on two distinguishing features of the inventive system. 1. The location of the focal point in space is always known due to the unique AFC method. 2. The ability to establish a new focal coordinate system whose normal is the d axis vector, e.g. the direction of the beam. The local coordinate system has u, v, w coordinates which are uniquely transformable back to the xyz coordinate system of the machine, as shown in Fig. 7. A point p in uvw local space can be written in vector form, as p = (p.u)u + (p.v)v + (p.w)w where "." indicates the dot product, a scalar. Thus (p.u) is the u component of p, etc. The focal point becomes the origin of the new coordinate system and is also known in the machine coordinate system. Likewise u, v, and w are known in terms of the machine coordinate system. A point p programmed with respect to the origin (0,0,0) of the local coordinate system can be translated into the machine coordinate system at will. Steps for finding unit normal vector: 1. The beam positioning head (d axis) is pointed approximately normal to the part surface after translating the focal point of the laser beam to the correct point, usually a point located on a scribed line on a part to be processed. This is the usual teaching process. 2. At this point a plane is set perpendicular to the beam positioning head d axis and a local orthogonal coordinate system is established based on user criteria but where w = -d. The focal point becomes the origin of the new coordinate system. 3. A part program for the machine is then written in the local coordinate system with respect to its original focal point. The program is written to define three points on the part surface, in the u/v plane which must be non-collinear and preferably equidistant from the local origin. The distance from the three points to the origin is user selectable, as will be explained later. See Fig. 8. The part program causes the beam positioning head focal point to move from the origin to point P,, P 2 and P 3 while under automatic focus control, while maintaining a constant gap between nozzle and workpiece, and the coordinates of all points P,, P 2 , P 3 plus the focal point are then recorded for each point. These three points define the actual plane of the part surface, a plane whose normal vector is the unit normal vector. The points may be recorded in either coordinate system so each point in one coordinate system in transformable into the other. What is important is that the part program be executed in the local coordinate system with AFC on to avoid collision between the nozzle and the part since the part program was written in the u, v plane (e.g. w = 0) , the part surface itself will not generally be in the uv plane unless a perfect guess was made and d = -n exactly. AFC then, causes the plane of the part to be measured, since the gap between the nozzle and the part is constant. 4. A vector Vj is established from Pj to P 2 and a second vector V 2 is established between Pj and P 3 . V. = P 2 - i V 2 = P 3 - P, See Fig. 9. Vector V, X V 2 produces a vector normal to the plane of the part and V ] X V, = n = Ii + Jj * + Kk where I, J, K |V, X V 2 | are the components of the unit normal vector and n is the true unit surface normal vector. In this case, it is important that the points be programmed in order with counterclockwise rotation or else the crossproduct will reverse direction. 5. The objective now is to cause the C and D axes to move, by changing their angles, in such a way as to cause d to equa - n ^ ^ e true normal vector, thus causing the beam positioning head to sense the surface normal vector and automatically align itself to it. A number of relationships exist for relating angles C and D to the unit normal vector, n. Among them: C = - tan - 1 (I/J) , D = - sin (K) where I, J and K are the components of the calculated unit normal vector in the machine coordinate system. When angles C and D are changed to the new calculated values, then vector d will be parallel to n and point is the opposite direction, e.g. d = -n. 6. The programmed radius of points Pj, P 2 , P 3 above the data point which is the origin of the local system provides a good estimation of n at the origin if the radius is small compared to the radius of curvature of the part at that point. However, if the radius is too small, changes in height of the nozzle above the part, due perhaps to slight focus control errors in the w direction will cause larger relative angular movement of n than if the radius were larger. See Fig. 10, which shows that ri is deflected a much greater amount with a constant error δ in sensing the true part surface. We have found that a radius of .05" for the points surrounding the taught point is satisfactory in most instances. What is important is: 1. Knowing the coordinates of the focal point while under control. 2. Establishing a local coordinate system whose origin and focal point (a desired point on the part surface) and the orthogonal system is known with respect to the machine coordinate system. 3. Writing a part program in the local coordinate system to cause the machine to move to Pj, P 2 and P 3 and record the coordinates with AFC active to avoid collisions between the nozzle and the part. 4. Defining the true unit normal vector n as the cross product of the vectors 5. change to the new coordinate values such the new d = - n. Note that 3 above allows a standard part program defining P 1# P 2 and P 3 be written regardless of the orientation of the beam positioner head. As an added refinement, one could allow points P 1# P 2 and P 3 to be taken in any order or any rotation (clockwise or counterclockwise, e.g. CW or CCW) if the following test is made. (This could occur if manual teaching of P,, P 2 and P 3 were done) . We expect that the calculated normal vector will be of opposite sign of the 5 taught d axis vector since they are pointed roughly 180° from each other. Thus the dot product of d and n, d*n should be <0. If it is not, then the sign of the cross product since it was taken in the wrong order or rotation, e.g. : n 2 = -nj or I = -Ij, J 2 = -Jj, K 2 = -K] 15 Sampled Sensing In utilizing the system of Patent 4,555,610 with the beam positioning head shown in Fig. 1, it is necessary to provide a-means to hold a constant gap between the nozzle tip 82 and the 20 workpiece. That is accomplished in the present invention by using a capacitive sensing technique to sample the gap distance between laser pulses. It has been determined, by measurement, that if a pulsed laser beam were used for welding 25 that there is a finite time delay between when the beam is switched on and the formation of a conductive plasma plume. It was also determined that there is a finite time delay between when the laser beam is switched off and the plasma decays 30 to zero. A circuit for measuring the gap between the nozzle 30 and the workpiece 40 is shown in Figure 4. A conductive nozzle tip 80 is isolated from the remainder of the beam positioner by an insulator 82. The conductive tip 80 is connected to an oscillator circuit 84. The capacitance of the gap between tip 80 and the surface of the workpiece is a part of an oscillator tuning circuit forming a part of circuit 84 which produces an output frequency proportional to the size of the gap. The frequency output of oscillator 84 is connected to a conventional frequency to voltage conversion circuit 86 which produces an output voltage proportional to the received frequency. A low pass filter 88 is used to smooth the waveform of the frequency to voltage converter 86. The analog output of the low pass filter 88 is sampled by an analog to digital converter 90 which provides a digital representation of the magnitude of the gap to the AFC servo control loop circuitry each time that the analog signal is sampled. The sampling command to analog to digital converter 90 is initiated by the leading edge of the laser command pulse 92 which is synchronized with a clocking signal from a 100Hz source by a time delay means such as a one-shot multivibrator 96 which produces a short sampling signal 98 for the analog to digital converter 90 which causes the analog to digital converter 90 to sample the gap capacitance in the time interval between the leading edge of the laser turn on command pulse and the time that the conductive plume appears. In a preferred form of the invention, as shown in Figure 4, the sample and hold was synchronized to occur at the leading edge of the pulse which turns the beam on, sampling and holding a voltage proportional to the gap between the nozzle and workpiece during the time interval before the plasma forms. In a typical system, the time delays between the edge of the laser drive pulse and the commencement or decay of the 5 conductive plume were approximately 200 to 400 μsec. One could also sample and hold after a proper time interval after the laser turned off and the plasma decayed, a time interval of about 10 500 μsec. The sampling of the nozzle to workpiece gap distance was repeated at a 100 H-, minimum sampling rate in the preferred embodiment to preserve system stability for a servo system having a particular position loop bandwidth. 15 The nozzle tip 80 and the metallic workpiece can be thought of as two plates of a capacitor 100 whose capacitance is inversely proportional to the gap, d. C = EA 20 d Where E = permittivity constant and A = effective area. The frequency of the oscillator 84 is proportional to: 1 25 C and hence is directly proportional to d, the gap. As the gap varies, the oscillator frequency varies accordingly. The frequency to voltage converter 86 converts the oscillator frequency to a voltage 30 proportional to the gap (after filtering) . The function of the low pass filter 88 is to filter out the oscillator carrier frequency, leaving an analog voltage proportional to the gap. The analog to digital convertor 90 samples the output of filter 88 during the sample time and holds the digital information until the next sample period. The sample time (in this case) is synchronized to the leading edge of the "laser on" pulse. Data is held before the plasma forms. Sampling is repeated at a sufficiently high rate to achieve adequate system stability. The stored digital data, proportional to the gap, is fed to the computer where it is compared to the desired gap, whereupon the system is caused to move in such a way as to achieve the desired gap. In order to maximize the effective laser power, it is important that the ratio of laser off time to laser on time be minimized; that is, the laser off time (sample time) should be much less than the sampling period (e.g. 1/100H-.) . If sample time, T 0 =200 μsec, and the sampling period, T s = 1/100 H-, = 100 μsec, then average laser power P = P 0 (T. - Tn) = 9.8 μsec T s 10 μsec = .98 P 0 where P 0 is the CW (continuous wave) power. It is also important that the frequency of the capacitive sensor oscillator 84 be sufficiently high so that its recovery time from the perturbation caused by the conductive plasma is much less than the sample time (200 μsec) so that the oscillator is fully settled and stable before the data is sampled and held. Selectable seek automatic focus control The ability of the machining system of the present invention to control the gap between the nozzle and the workpiece and the ability of the system to determine the unit normal vector to the surface of the workpiece allow the system to operate to reduce certain system machining errors. Consider a metal cylinder such as a jet engine combustion chamber. Being large and made of relatively thin metal, it is usually "out of round" or has "run out", i.e. its radius varies as a function of rotation. Runout errors of 0.1 inch or more are common. A front view of the cylinder would show a wall displacement from its nominal or expected position of ΔR = R-, ^ - R-^, as shown in Fig. 3. If one is cutting with the beam axis oriented normal to the surface, there is no problem; however, if one is cutting at an angle which is intentionally off normal to the surface, then large errors between the desired, i.e. the programmed, cut path and the actual cut path on the part will result. In order to fully appreciate the magnitude of the errors, consider the following: Specifications require that a row of holes be cut in a cylinder at an angle 75° off normal to the part surface, or 15° off the plane of the part, and that the row of holes be on a "water line", e.g., a straight line in the front view. Fig. 3 shows the hole displacement error due to autofocus which only operates in a direction parallel to the beam. It can be shown that autofocus in the direction of the beam causes a sinusoidal displacement of holes relative to the desired waterline where amplitude is proportional to the amount of runout and the angle off normal at which cutting occurs. If φ = 0° e.g. the beam is normal to the part surface, then tanφ = 0 and no displacement error results. However, if φ = 75°, then tan 75° = 3.73. Therefore E = 3.73 X ΔR. If ΔR = 0.1 inch, then 3.73 X .1 = .373 inches! The system of the present invention uses the linear axes of the machine to produce the vector that AFC of the nozzle will move parallel to in response to an error signal from the gap sensor (in the case of the preferred embodiment of the invention, the capacitive sensor used in a sampling interval when the beam is off) . The desired vector is often parallel to the beam, and is user selectable, but when cutting or welding off normal to the part surface, a vector normal to the part surface is chosen as the AFC axis. Focal point locating In setting up the system of the present invention and teaching the system the coordinates of the points necessary to establish the part machining program a determination must be made as to the location of the focal point of the laser beam. As stated above, the crude determination of the location of the focal point can be made by sensing the changes in acoustic noise or in appearance of the plume as the location is varied. In either case, whether using acoustic or of emission to find the focal point, much greater accuracy and repeatability can be obtained by using least squares curve fitting techniques on the data to determine the coefficient a 1# a 2 of a parabola of the form y(x)= a 0 + a,X + a 2 X 2 . This technique fits the data to a known parabola with the least error. The location of the focal point can then be calculated by differentiating the position equation If y is equal to the amplitude of the acoustic emission and x represents the location of the focal point, then data points of y as a function of x might look as on Fig. 11. Fig. 11 shows acoustic emission as a function of distance x. The position of the focal point is at the maxima of the curve. The focal point is then calculated by setting dy_ = a, + a 2 X = 0 dx then X = -a ! 2 2 , thus the location of the focal point can be very accurately calculated. Since the focal region is symmetrical about the focal point, a high degree of data fit to a parabola is ensured. Classical least squares curve fitting equations are used to determine coefficients a 0 , a,, a 2 . It is useful to make two passes on the material, one from above the focal point and one from below. Averaging the two answers removes time delays on reading the data as a source of error. As shown on Fig. 12, the computer which controls the operation of the machine may be programmed using conventional programming techniques to sample and store acoustic emission data, calculate coefficients a 0 , a,, a 2 and calculate the location of the maxima X = -a, 2 2 . In addition, the quality of the data can be determined by calculating the standard deviation of the data and comparing it to a known good number. Fixture identification The usefulness of the system in accordance with the present invention is enhanced by providing automatic means for determining what part is on the object positioning machine to be processed and for automatically calling up the machining program appropriate to that part. In a preferred embodiment of the present invention the system identifies the fixture in which the workpiece is mounted and selects the appropriate program to determine the machining or other operations to be performed based upon that identification. One of the methods to provide for identification of the fixture is by scanning. Scanning is the process where a fixture is evaluated in some way to determine its fixture identification number - the fixture ID. While there are a number of ways to scan a fixture, such as with a barcode reader, in a preferred embodiment of the invention a unique method of scanning using the AFC for the positioning system will be the principal method used. Scanning with the AFC is accomplished by placing a sequence of metal pegs on the fixture in a pattern that corresponds to a binary representation of the fixture ID. Up to 16 pegs may be placed on a fixture allowing fixture identification numbers from 0 to 65,535. In other possible embodiments, holes in the plate at predetermined locaions may equally well be used to provide a scannable code readable to determine which part machining program is required for a particular part. A specific part program stored in the system, the scanning program, moves the positioner to the scan start location, using standard codes, activates the AFC momentarily to set the proper height over the first peg (which must be present, see below) , and issues a scan command. The scan command contains the scan direction, the number of positions to read, and the spacing between pegs. The positioner moves in the scan direction while taking AFC readings at the programmed intervals. The first two digits of each code must be a 1 (metal present) followed by a 0 (metal absent) to establish the threshold count. The threshold will be calculated as the midpoint between these first two readings. The threshold will change with changes in calibration and/or standoff distance. Each subsequent reading will be evaluated as a 0 or 1 binary digit by comparing the AFC count at that position to the threshold count. All machining programs that can be selected by a fixture scan will be entered in a scan table as part of the scanning part program. Each table entry may contain an ID number, a program name, and an optional line number. The number of entries in the scan table is limited only by memory size. After completing a scan, the CNC compares the resulting binary number with the values in the scan table. If a match is found, the associated part program file is activated and executed (starting from the entered line number, or from line 1 if no line number was entered in the table) . If no ID match is found, or the file does not exist, the program halts and an error message is displayed. Each part program returns control to the scanning program on completion so that scanning can continue.

Claims: I claim: 1. In a system for machining a workpiece with a laser beam tool, control means for maintaining a controlled distance between the tool and a workpiece surface, said control means comprising, in combination: a. capacitive sensor means for measuring the capacitance between the tool and the surface of the workpiece; b. beam control means for driving the laser beam for the tool with periodic pulses separated by a refractory interval b. sampling means for taking a measurement of the capacitance between the tool and the workpiece during the refractory interval. 2. In a system having an automatic focus control for moving the focal point of a laser beam by movements along orthogonal machine translation axes x, y, and z and orthogonal rotational axes C and D of a multiaxis processing head mounted on the machine, a method for determining a unit normal vector at a point on the surface of a workpiece, said method comprising the steps of: a) positioning the focal point of the beam on a reference point on the surface of the workpiece; b) adjusting the C and D processing head axes to orient the beam substantially normal to the surface of the workpiece and the x, y, and z axis to position the focal point coincident with the reference point to orient the beam axis, d' of the directing head approximately normal to the surface of the workpiece at the reference point; c) defining a local orthogonal coordinate system u, v, and w where w is the unit normal vector of the workpiece, is aligned with the -d by varying the C and D axis rotations and the origin of said local coordinate system is positioned coincident with the focal point of the beam by variation of the x, y, and z axis positions; d) creating a beam focal point moving program in the local coordinate system to move the focal point of the beam to three points PI, P2 and P3 on the workpiece surface which are non- collinear and define a plane to which the true unit normal vector is normal, said points positioned preferably equidistant from the origin of the local coordinate system; e) executing the beam focal point moving program in the local coordinate system while the automatic focus control is active thereby to avoid collision between the adjustable head and the workpiece and while recording the coordinates of the x, y, z, C and D axes at points pi p2 and p3 while the AFC maintains a constant gap; f) computing the orientation of a true unit normal vector to the workpiece at the reference point by calculating the cross product of the vectors vl between PI and P2 and v2 between Pi and P3, or n = _§_,_ x V 2 |V, V 2 | g) adjusting the angles of C and D rotational axes to orient d of the adjustable head such that an adjusted d is aligned with and in opposition to the unit normal vector n at the reference point of the workpiece. 3. In a system having an automatic focus control for moving the focal point of a laser beam by movements along orthogonal machine translation axes x, y, and z and C and D rotational axes of an adjustable beam directing head mounted on the machine, a method for positioning the focal point of a laser beam at selected points on a surface of a workpiece, comprising the steps of: a) varying the orientation of the C and D rotational axes thereby to adjust the beam axis of the directing head an expected predetermined orientation relative to the surface of the workpiece and aligning the x, y, and z axes to place the beam on one of the selected points; b) using a gap sensor for generating a signal proportional to the displacement between the directing head and the surface of the workpiece and moving the directing head along a selected x, y, and z coordinate axis to maintain a predetermined displacement as the beam focal point is moved through selected points. 4. The invention of claim 3 wherein the predetermined orientation of the beam axis, d is normal to the surface of the workpiece. 5. In a system for machining a workpiece with a laser beam tool which includes control means for maintaining a controlled distance between the tool and a workpiece surface, a method for determining when the focal point of the laser beam is optimally positioned at the surface of the workpiece, said method comprising the steps of: a. monitoring an indicia of optimal beam interaction with the surface of the workpiece as the focal point of the beam is moved toward the surface of the workpiece from above and below the workpiece; b. recording the coordinates corresponding to the point where the indicia indicated maximum activity for movement of the beam in both directions toward the surface of the workpiece; and c. analyzing the coordinate points obtained in a. and b. above by a least squares method to obtain the optimum gap distance for positioning the focal point of the beam at the surface of the workpiece. 6. The method of claim 5 wherein the indicia of optimal beam interaction with the workpiece is the acoustic noise generated as the beam cuts the surface of the workpiece. 7. The method of claim 5 wherein the indicia of optimal beam interaction with the workpiece is the intensity of the blue spark generated as the beam cuts the surface of the workpiece. 8. In a system for machining a workpiece with a laser beam tool which includes control means for maintaining a controlled distance between the tool and a workpiece surface, apparatus for determining when the focal point of the laser beam is optimally positioned at the surface of the workpiece, said apparatus comprising, in combination: a. means for monitoring an indicia of optimal beam interaction with the surface of the workpiece as the focal point of the beam is moved toward the surface of the workpiece from above and below the workpiece; b. means for recording the coordinates corresponding to the point where the indicia indicated maximum activity for movement of the beam in both directions toward the surface of the workpiece; and c. means for analyzing the coordinate points obtained in a. and b. above by a least squares method to obtain the coordinates for commanding the machine to maintain an optimum gap distance for positioning the focal point of the beam at the surface of the workpiece. 9. The apparatus of claim 8 wherein means for monitoring the indicia of optimal beam interaction with the workpiece is acoustic means for measuring the acoustic noise generated as the beam cuts the surface of the workpiece. 10. The method of claim 8 wherein the means for monitoring the indicia of optimal beam interaction with the workpiece is an optical means for detecting the intensity of the blue spark generated as the beam cuts the surface of the workpiece. 11. In a system for machining a workpiece with a laser beam tool including means for measuring the distance between a sensor positionable by the automatic focus control of the machine and a workpiece surface, means for determining the programs to be run by the machine to process a workpiece in accordance with one of a plurality of processing programs, said means comprising, in combination: a. sensor means for measuring an indicia applied to a fixture for a workpiece; b. means for automatically and sequentially moving the sensor means to a series of reference points at predetermined locations on the fixture in accordance with a fixture' identification program and measuring the indicia at each point; and c. means for decoding the indicia pattern to identify and select the program to be run by the machine in accordance with the coding on the particular fixture. 12. In a system for machining a workpiece with a laser beam tool including means for measuring the distance between a sensor positionable by the automatic focus control of the machine and a workpiece surface, means for determining the programs to be run by the machine to process a workpiece in accordance with one of a plurality of processing programs, said means comprising, in combination: a. sensor means for measuring the capacitance between it and the surface of the workpiece; b. means for automatically and sequentially moving the sensor means to a series of reference points at predetermined locations on a fixture in accordance with a fixture identification program and measuring the capacitance at each point to determine whether or not a peg is present; and c. means for decoding the peg pattern to identify and select the program to be run by the machine in accordance with the coding on the particular fixture. 13. In a system for robotic control of an operating point of a workpiece engaging portion of an object along orthogonal object translation axes x, y, and z and orthogonal rotational axes C and D of a multiaxis object positioning apparatus, a method for determining a unit normal vector at a point on the surface of the workpiece, said method comprising the steps of: a) positioning an operating point of the workpiece engaging portion of the object at a reference point on the surface of the workpiece; b) adjusting the C and D object positioning axes to orient a major axis of the object substantially normal to the surface of the workpiece and the x, y, and z axis to position the operating point of the workpiece engaging portion of the object coincident with the reference point to orient the major axis, d' of the object approximately normal to the surface of the workpiece at the reference point; c) defining a local orthogonal coordinate system u, v, and w where w is the unit normal vector of the workpiece, is aligned with the -d by varying the C and D axis rotations and the origin of said local coordinate system is positioned coincident with the operating point of the workpiece engaging portion of the object by variation of the x, y, and z axis positions; d) creating an object moving program in the local coordinate system to move the operating point of the workpiece engaging portion of the object to three points PI, P2 and P3 on the workpiece surface which are non-collinear and define a plane to which the true unit normal vector is normal, said points positioned preferably equidistant from the origin of the local coordinate system; e) executing the object moving program in the local coordinate system while the object positioning apparatus is active thereby to avoid collision between the object and the workpiece and while recording the coordinates of the x, y, z, C and D axes at points pi p2 and p3 while the AFC maintains constant positioning of the operating point of workpiece engaging portion of the object relative to the workpiece surface; f) computing the orientation of a true unit normal vector to the workpiece at the reference point by calculating the cross product of the vectors vl between PI and P2 and v2 between PI and P3, or g) adjusting the angles of C and D rotational axes to orient d of the workpiece engaging portion of the object such that an adjusted d is aligned with and in opposition to the unit normal vector at the reference point of the workpiece. 14. The system of claim 13 wherein the object is a laser beam tool and the tool workpiece engaging portion is the focal point of a laser beam delivered by the tool and the laser beam is aligned with the major axis of the tool. 15. The system of claim 13 wherein the operating point of the workpiece engaging portion of the object is a rotating tool for performing a machining operation on the surface of the workpiece.

Inventors: MARTIN DAN, SCHMIDT ROBERT H, MARTIN, DAN, SCHMIDT, ROBERT, H.
Applicants: LUMONICS CORP, LUMONICS CORPORATION
Application year: 1993
Main classification: B23K26
IPC codes: B23K26, B25J9