NON-CONTACT DIGITIZING METHOD

Abstract: In order to produce tracing data on a model shape by controlling an attitude of a tracer head, while tracing the tridimensional model shape in non-contact, a measuring shaft of the tracer head is rotatably controlled in an optimum direction with respect to a model surface at all times. By providing two non-contact distance detectors (5a, 5b) on the tracer head (4), a normal vector of the model surface (6) is determined on the basis of a measured value obtained by sampling tracing data from the tracer head (4). In that case, a direction of the normal vector is determined from an outer-product of the surface vector within a range in which an angle made by an axial vector using a measuring point of the measuring shaft of the tracer head (4) as a starting point and the normal vector at the measuring point does not exceed 90°. The tracer head (4) is rotatably controlled in a direction of a projection obtained by projecting this normal vector on a predetermined flat plane.

Description: The present invention relates to a non-contact digitizing method, and more specifically, to a non-contact digitizing method for creating a tracing data of a configuration of a three-dimensional model by controlling the attitude of a tracer head and tracing the configuration of the model while not in contact therewith. BACKGROUND ART Recently, a non-contact trace control apparatus has been developed to trace a configuration of a model by using a non-contact distance sensing unit. An optical distance sensing unit is used as this non-contact distance sensing unit and is fixed to the extreme end of a tracer head, and a tracing is carried out by sensing a distance to a surface of a model. This tracing method eliminates any possibility of damage to a model, and accordingly, can be applied to a model composed of a soft material, and thus the applications for which a trace machining can be utilized are expected to increase. In general, a function for tracing a configuration of a model, sensing data of the locus of the traced configuration at all times, and automatically outputting the data to an NC tape or the like is referred to as a digitizing method. A non-contact digitizing method enables digitizing data to be calculated without damage to a model surface. In this connection, when a portion of a model having a large angle of inclination is traced by a conventional non-contact trace control apparatus, a problem arises in that a tracing accuracy of this portion is poor, and thus digitizing data having a pinpoint accuracy cannot be obtained. For example, when a surface of a model almost perpendicular to the surface on which the model is installed is traced, and the measurement axis of a tracer head is almost parallel with the surface of the model, a circular spot on the surface of the model is enlarged and distorted to become an oval shape and thus the distance sensing resolution is lowered. Therefore, to perform a non-contact digitizing with a high accuracy, a configuration of a model must be traced by using a tracer head able to be inclined in a direction optimum to a model surface, instead of a tracer head fixed in the direction (Z-axis direction) perpendicular to a plane on which the model is installed. To solve the above problem, the inventors filed a patent application (Publication No. Hei 3-60956), wherein a tracer head is provided with two non-contact distance sensing units, normal vector on a model surface is determined based on a measured value obtained by sampling tracing data from the tracer head, and the tracer head is controlled in the direction of a projection obtained by projecting the normal vector onto a predetermined plane. The invention disclosed in the preceding patent application relates to a non-contact trace control apparatus whereby three points are selected from a plurality of measured points, two surface vectors are determined from these three points, and the outer product of these surface vectors is calculated to determine the normal vector. Since, however, an order in which the surface vectors are multiplied is not fixed, a problem arises in that, when the order is reversed, two normal vectors facing in completely opposite directions are determined. At this time, when a normal vector N having a positive value NZ of a Z-axis component is selected, this problem usually can be solved. Nevertheless, a normal vector N having a negative value NZ may be selected as a correct normal vector, particularly when a configuration of a model having a vertical or almost vertical surface is traced, due to a measurement error caused by a non-contact distance sensing mechanism or a calculation error caused by a calculating mechanism. Consequently, a normal vector that is unsuitable as a normal vector of a model surface is selected in the above non-contact trace control apparatus, the measurement axis of the tracer head is rotated by 180°, and thus a problem arises in that the tracer head cannot perform the required measurement or interferes with the model surface. Taking the above into consideration, an object of the present invention is to provide a non-contact digitizing method by which a tracer head is controlled to rotate in an optimum direction with respect to a model surface at all times To attain the above object, according to the present invention, there is provided a non-contact digitizing method for creating tracing data corresponding to the configuration of a three-dimensional model while carrying out a non-contact tracing of the configuration of the model, the method comprising the steps of: determining at least two surface vectors based on three measured distances, by measuring distances to a plurality of measurement points on the surface of the model from a tracer head at an inclined measurement axis in which the rotation thereof is controlled; determining the direction of a normal vector from the outer product of the surface vectors in a range which the angle between an axial vector starting from the measurement point of the measurement axis of the tracer head and the normal vector at the measurement point does not exceed 90°; and sequentially creating the tracing data by controlling the rotation of the measurement axis of the tracer head based upon a Projection obtained by projecting the normal vector on a plane on which the model is installed. The Z-axis direction component (NZ) of a normal vector on the model is usually assumed to be NZ > 0. This is because that a configuration of a model to which a non-contact digitizing is applied has no overhung portion and a tracing is not carried out in a region where NZ is negative. According to the present invention, when a normal vector is calculated, the direction of the normal vector is determined to be within the range in which the angle between the axial vector of the measurement axis and the normal vector does not exceed 90°. Consequently, a normal vector having a Z-axis direction component (NZ) in which NZ ≧ 0 is selected. As a result, when a configuration of a model having a vertical or almost vertical surface is traced, a correct normal vector can be selected even if a measurement error is caused by a non-contact distance sensing mechanism or a calculation error is caused by a calculation mechanism. Namely, the rotation of the measurement axis of the tracer head can be always controlled in an optimum direction with respect to a model surface. BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is a block diagram showing an arrangement of a non-contact digitizing control apparatus; Figure 2 is a diagram showing a tracer head in detail; Figure 3 is a diagram explaining the control of the rotation of a tracer head; Figure 4 is a diagram showing two normal vectors facing in opposite directions at a measurement point; Figure 5 is a diagram explaining a case in which a normal vector has a negative Z-axis direction component NZ; and Figure 6 is a flowchart for calculating a rotation angle. BEST MODE OF CARRYING OUT THE INVENTION An embodiment of the present invention will be described below with reference to the drawings. Figure 1 is a block diagram showing an arrangement of a non-contact digitizing control apparatus and peripheral units. A processor 11 of the digitizing control apparatus 1 reads a system program stored in a ROM 12 through a bus 10, and controls the operation of the digitizing control apparatus 1 as a whole in accordance with this system program. A RAM 13 for temporarily storing data stores measurement data from a non-contact distance sensing mechanism of a tracing machine tool, described later, and other temporary data. A non-volatile memory 14 is supplied with power from a not-shown battery and stores various parameters and the like, such as tracing directions, tracing speeds and the like, input from an operator's panel 2 through an interface 15. Distance sensing units 5a and 5b are provided with the tracer head 4 of the tracing machine tool 3. A semiconductor laser, reflected light amount type distance sensing unit or the like using a light emitting diode as a light source is used for the distance sensing units 5a and 5b. Here, measurement values La and Lb of distances to a model surface along measurement axes 4a, 4b are converted to digital values by A/D converters 16a and 16b in the digitizing control apparatus 1 and sequentially read by the processor 11. The processor 11 calculates displacement amounts of the respective axes based on the A/D converted digital values and signals from present position registers 19x, 19y and 19z, described later, and generates speed commands Vx, Vy and Vz for the respective axes by a known art based on these displacement amounts and a commanded tracing direction and tracing speed. These speed commands are converted to analog values by D/A converters 17x, 17y and 17z and input to servo amplifiers 18x, 18y and 18z, and the servo amplifiers 18x and 18y drive the servo motors 32x and 32y of the tracing machine tool 3 based on these speed commands, whereby a table 31 is moved in an X-axis direction and a Y-direction perpendicular to the surface of paper. Further, the servo amplifier 18z drives a servo motor 32z to move the tracer head 4 and a tool 34 in a Z-axis direction. The servo motors 32x, 32y and 32z are provided with pulse coders 33x, 33y and 33z that generate sensing pulses FPx, FPy and FPz each time these servo motors 32x, 32y and 32z are rotated by a predetermined amount. The present position registers 19x, 19y and 19z in the digitizing control apparatus 1 count up and down the sensing pulses FPx, FPy and FPz, respectively, in accordance with a rotational direction, determine present position data Xa, Ya and Za in the respective axis directions, and input same to the processor 11 as control data. Further, the processor 11 samples the measurement values La and Lb of the distance sensing units 5a and 5b at a predetermined sampling time, and at the same time, controls the above respective axes and determines a normal vector on the model surface by a calculation method, described below, by using the sampling values. A rotation command SC is created in correspondence with the projection vector obtained by projecting the normal vector onto an X - Y plane, and is converted to an analog value by a D/A con verter 17c. A servo amplifier 18c drives a servo motor 32c based on the rotation command SC and controls the tracer head 4 while inclining the measurement axis 4a of the tracer head 4 about the Z-axis by a predetermined angle. At the same time, the table 31 is moved in the commanded tracing direction at the commanded tracing speed, and thus a workpiece 35 is machined to the same configuration as that of the model 6 by the tool 34 having a Z-axis which is controlled in the same way as the tracer head 4. Note, when the surface of the model 6 is almost vertical, the Z-axis direction component value NZ of a proper normal vector may be negative due to a measurement error caused by the distance sensing units 5a and 5b and a calculation error caused by the processor 11. In this case, unless a rotation command SC is created by selecting the projection vector obtained by projecting the normal vector onto the X - Y plane, even if the above NZ value is negative, by changing a calculation method of determining the direction of the normal vector, the attitude of the tracer head 4 is rotated in a reverse direction to that required by an operator. To solve this problem, i.e., that the attitude of the tracer head 4 subject to the above rotation control is not stabilized, the present invention determines the direction of a normal vector in such a manner that the processor 11 calculates the outer product of surface vectors to be in a range such that an angle between an axial vector starting from a measurement point of the measurement axis 4a of the tracer head 4 on the surface of the model 6 and a normal vector at this measurement point does not exceed 90°. Figure 2 is a detailed diagram of the tracer head 4, wherein the distance sensing unit 5a is mounted to the tracer head 4 at an inclined angle  with respect to the Z-axis, and the measurement axis 4a is rotated by a C-axis by a command angle  c of the rotation command SC. Further, the distance sensing unit 5b is mounted on the outside of the distance sensing unit 5a and is controlled to rotate by the commanded angle  c in the same way as the distance sensing unit 5a. With this arrangement, the measurement axis 4a of the distance sensing unit 5a is controlled to rotate in an optimum direction with respect to an inclined angle of the surface of the model 6, i.e., to a position nearest to the normal of the model 6. Further, as described above, a distance La from the distance sensing unit 5a to a measurement point Pa on the model 6 is kept constant by a value measured by the distance sensing unit 5a and fed back to the digitizing control apparatus 1. The distance La is set to the distance between the measurement axis of the distance sensing unit 5a and the point at which the measurement axis intersects the Z-axis, and the measurement point Pa is not moved even if the tracer head 4 is rotated by the C-axis, and thus a distance L between the tracer head 4 and the model 6 is kept constant. In the same way, the distance measurement unit 5b measures a distance Lb to a measurement point Pb on the model 6 therefrom and inputs same to the digitizing control unit 1. Next, a method of calculating a rotational angle of the tracer head 4 will be described with reference to Figure 3. A tracing operation is carried out by moving the tracer head 4 in the X-axis direction, relatively with respect to the model 6, at a predetermined tracing speed, and at the same time, measurement data of two points Pn and Qn is sampled at predetermined intervals. Coordinate values of the points Pn - 1, Qn - 1, Pn, Qn, Pn + 1, Qn + 1, ... on the model 6 are determined based on these measured values and present positional data output from the present position register. A surface vector S1 [X2 - X1, Y2 - Y1, Z2 - Z1] is determined from, for example, the coordinate values (X1, Y1, Z1) of the point Pn and the coordinate values (X2, Y2, Z2) of the point Qn. Further, a surface vector S2 [X3 - X1, Y3 - Y1, Z3 - Z1] is determined from the coordinate values (X3, Y3, Z3) of the point Pn - 1 and the coordinate values (X1, Y1, Z1) of the point Pn. In this case, measurement data obtained by a preceding sampling is stored in the RAM 13 or the like as the coordinate values of the point Pn - 1. An outer product of these two surface vectors S1 and S2 is calculated by the following formula, whereby a normal vector Nn at the point Pn can be determined. Nn = S1 x S2 (where, Nn, S1 and S2 represent vectors.) Here, the Z-axis direction component (NZ) of the normal vector Nn on the model 6 is usually assumed to be NZ ≧ 0. This is because that a configuration of a model to which a non-contact digitizing is applied has no overhung portion and a tracing is not carried out in a region where NZ is negative. Next, an angle  c between a projection vector N obtained by projecting the normal vector Nn onto the X - Y plane and the X-axis is determined by the following formula and output as a command value to a C-axis.  c = tan -1 (Jn/In) where, In: X component of the vector Nn Jn: Y component of the vector Nn This angle  c is changed in correspondence with an inclination of the model 6 and becomes another angle  cq at, for example, a point Pq. The tracer head 4 is rotated in accordance with the change of these angles  c,  cq. Figure 4 shows two normal vectors facing in exactly opposite directions at a measurement point. The two surface vectors S1 and S2 are determined from measurement points p, a and b, and normal vectors N1 and N2 are calculated by calculating the outer product of these surface vectors S1 and S2. More specifically, if an order of multiplying the surface vectors S1 and S2 is not fixed in the calculation of the normal vector, the two normal vectors N1 and N2 facing in exactly opposite directions will be determined when the order for multiplying same is reversed. Consequently, if the vector N2 in Figure 4, which is not suitable as the normal vector on the model surface, is selected, the tracer head 4 does not properly correspond to the inclination of the model 6 when rotated. Figure 5 is a diagram explaining a case in which the Z-axis direction component value NZ of a normal vector is made negative at the measurement point p, because the surface of the model 6 is almost vertical. Here, only the case in which the vertical surface 61 of the model 6 is not overhung is assumed, and thus an angle α ( ≦ 90 ° ) exists between a surface 62 on which the model is installed and the vertical surface 61. Therefore, it is not necessary to assume the axial vector of the measurement axis of the tracer head, i.e., a unit axis vector A starting from the measurement point p to which a measurement light is irradiated, and a vector to be determined by the calculation of an outer product is the normal vector N1 of the two normal vectors N1 and N2. The Z-axis direction component NZ1 of the normal vector N1 is usually NZ1 ≧ 0. Even if an order for multiplying surface vectors is reversed in the calculation of a normal vector, a normal vector facing in a correct direction can be selected by selecting a normal vector having a Z-axis direction component NZ of NZ ≧ 0, and thus the rotation of the measurement axis of the tracer head can be controlled in an optimum direction with respect to a model surface. Nevertheless, when a configuration of the model having the vertical surface 61 or a surface near to the vertical is traced as described above, the Z-axis direction component (NZ1) of the normal vector N1 may be determined as a negative value and the Z-axis direction component (NZ2) of the other normal vector N2 may be determined as a positive value. According to the non-contact digitizing method of the present invention, one of the two normal vectors N1 and N2 is selected, depending upon whether or not the respective axial components (AX, AY, AZ) and (NX, NY, NZ) of a unit axis vector A starting from the measurement point p to which a measurement light is irradiated and a unit normal vector N satisfy the following formula. AX x NX + AY x NY + AZ x NZ ≧ 0 The left side portion of the above formula is equal to the cosine of the angle  between the unit axis vector A and the unit normal vector N from the principle of an inner product. Therefore, when this formula is not established, a value of cos is negative, which means that the angle  is larger than 90°. More specifically, as apparent from Figure 5, when the normal vector N2 having the angle  larger than 90 ° is selected, a rotational direction of the tracer head 4 is determined such that the tracer head 4 tries to determine a measurement point from the backside of the vertical surface 61 of the model 6, and when the rotation of the tracer head 4 is controlled in this state, the measurement axis of the tracer head 4 is rotated by 180°, and thus the tracer head 4 cannot carry out the measurement or may interfere with the model surface. Figure 6 is a flowchart used to calculate a rotational angle, wherein numerals prefixed with an "SP" indicate the numbers of steps of the process. [SP1] Values measured by the distance sensing units 5a and 5b are sampled at predetermined intervals. [SP2] The vector S1 is determined from the values measured by the respective distance sensing units this time. [SP3] The vector S2 is determined from the value measured by the distance sensing unit 5a this time and the value measured last time. [SP4] The outer product of the vectors S1 and S2 is calculated and the direction of the normal vector N is determined to be in the range in which the angle between the axial vector starting from the measurement point and the normal vector at the measurement point does not exceed 90°. [SP5] The angle  c between a projection obtained when the thus determined normal vector N is projected onto the X - Y plane and the X-axis, is calculated. Note, in the above embodiment, the normal vector is determined based on one of the data measured last sampling time and the data measured this sampling time, with respect to the two sensing points. If, however, the three points on the model surface obtained by the samplings this time and last time are specified, two surface vectors using one of these points as a start point can be determined. Further, a triangulation type, eddy current type or ultrasonic type distance sensing unit may be used as the distance sensing unit, in addition to the reflected light amount type distance sensing unit. The present invention can be of course applied to a digitizing control apparatus which does not have a tracing function for simultaneously machining a model but has only a function for automatically outputting data obtained from a model configuration to an NC tape and the like. As described above, according to the present invention, since a proper normal vector can be selected even if a measurement error is caused by a non-contact distance sensing mechanism or a calculation error is caused by a calculation mechanism when a vertical or almost vertical model surface is traced, the rotation of the measurement axis of the tracer head can be always controlled in an optimum direction with respect to the model surface. With this arrangement, since the tracer head is stably controlled to cause the measurement axis of a distance measurement means to face in a direction as perpendicular as possible to a model surface, to thus prevent a lowering of the measurement accuracy of the distance measurement means, a distance can be measured with a pinpoint accuracy to thereby improve the tracing accuracy. Consequently, according to the digitizing control apparatus of the present invention, tracing data can be effectively obtained at a high speed and low cost by making use of a spot system by which a distance is sensed by irradiating a spot light to a model.

Claims: A non-contact digitizing method for creating tracing data corresponding to the configuration of a three-dimensional model (6) while carrying out a non-contact tracing of the configuration of the model, the method comprising the steps of: determining at least two surface vectors based on three measured distances, by measuring distances to a plurality of measurement points (p) on the surface of the model from a tracer head (4) at an inclined measurement axis in which the rotation thereof is controlled; determining the direction of a normal vector (N) from the outer product of the surface vectors in a range which the angle between an axial vector starting from the measurement point of the measurement axis of the tracer head and the normal vector at the measurement point does not exceed 90°; and sequentially creating the tracing data by controlling the rotation of the measurement axis of the tracer head based upon a projection obtained by projecting the normal vector on a plane on which the model is installed. A non-contact digitising method according to claim 1, wherein the step of determining the surface vectors comprises the steps of determining the coordinate values of three different points on the model surface (6) based on the three measured distances, and determining first and second plane vectors directed to one point of the three coordinate values to the other two points thereof, respectively. A non-contact digitizing method according to claim 1, wherein the step of determining the direction of the normal vector (N) depending upon whether the respective axial components (AX, AY, AZ) and (NX, NY, NZ) of a unit axis vector starting from the measurement point and a unit normal vector satisfy the following formula. AX x NX + AY x NY + AZ x NZ ≧ O

Inventors: MATSUMOTO EIJI, MATSUURA HITOSHI, MATSUMOTO, EIJI, MATSUURA, HITOSHI, MATSUMOTO, EIJI FANUC DAI-3 VIRA-KARAMATSU, MATSUURA, HITOSHI KEIO YAMADA MANSION 2-202
Applicants: FANUC LTD, FANUC LTD.
Application year: 1991
Main classification: B23Q35
IPC codes: G01B21, G05B19, B23Q33, B23Q35