Method for controlling shape measuring apparatus
10274297 ยท 2019-04-30
Assignee
Inventors
Cpc classification
G06F3/04842
PHYSICS
G05B2219/37452
PHYSICS
International classification
G06F3/0484
PHYSICS
G06F3/0481
PHYSICS
Abstract
A method for nominal scanning measurement includes allowing a user to select a shape of an object to be measured from a geometric shape menu prepared in advance, allowing the user to input, according to the selected geometric shape, a parameter to specify the geometric shape, allowing the user to select a measurement path from a measurement path menu prepared in advance, allowing the user to input, according to the selected measurement path, a parameter to specify the measurement path, calculating, based on the selected geometric shape, the input parameter of the geometric shape, the selected measurement path, and the input parameter of the measurement path, measurement points on a workpiece and a normal line direction at each of measurement points using a calculation formula prepared in advance, and calculating a path for scanning measurement to move while scanning a sequence of the measurement points.
Claims
1. A method for controlling a shape measuring apparatus which includes a probe having a stylus head at a tip and a moving mechanism to move the probe, and measures a shape of a workpiece by detecting contact between the stylus head and a surface of the workpiece, the method comprising: receiving a selection of allowing a user to select a geometric shape type of an object to be measured from a geometric shape menu prepared in advance; specify a geometric shape corresponding to the selected geometric shape type; receiving a selection of allowing the user to select a measurement path type from a measurement path menu prepared in advance; receiving, according to the selected measurement path type, an input parameter to specify a measurement path corresponding to the measurement path type; based on the selected geometric shape type, the input parameter of the geometric shape, the selected measurement path type, and the input parameter of the measurement path, calculating, by a processor of the shape measuring apparatus, a plurality of measurement points on the workpiece to be scanned, and a normal line direction at each of the measurement points on the workpiece using a calculation formula prepared in advance; calculating, by the processor, a path for scanning measurement to move while scanning a sequence of the measurement points; and performing, by the shape measuring apparatus and using the probe, the scanning measurement to scan the path for the scanning measurement.
2. The method for controlling the shape measuring apparatus according to claim 1, wherein the geometric shape menu includes, at least, a sphere type, a columnar body type, a cone body type, and a plane type.
3. The method for controlling the shape measuring apparatus according to claim 1, wherein the measurement path menu includes, at least, a spiral type and a sine curve type.
4. The method for controlling the shape measuring apparatus according to claim 1, further comprising performing shape analysis of the workpiece based on the scanning measurement.
5. The method for controlling the shape measuring apparatus according to claim 1, further comprising: presenting a number of turns and a number of sampling points corresponding to the selected measurement path type.
6. The method for controlling the shape measuring apparatus according to claim 1, wherein the normal line direction is generated such that an amount of deflection becomes constant.
7. The method for controlling the shape measuring apparatus according to claim 6, wherein a trajectory correction vector is generated to correct a deviation between center coordinates and a path of the stylus head.
8. The method for controlling the shape measuring apparatus according to claim 6, wherein a trajectory correction vector is generated to correct a deviation in the selected measurement path type.
9. A non-transitory computer readable medium storing a control program for the shape measuring apparatus which includes a probe having a stylus head at a tip and a moving mechanism to move the probe, and measures a shape of a workpiece by detecting contact between the stylus head and a surface of the workpiece, the control program executable by a processing unit comprising sets of instructions for: receiving a selection of allowing a user to select a geometric shape type of an object to be measured from a geometric shape menu prepared in advance; receiving, according to the selected geometric shape type, an input parameter to specify a geometric shape corresponding to the selected geometric shape type; receiving a selection of allowing the user to select a measurement path type from a measurement path menu prepared in advance; receiving, according to the selected measurement path type, an input parameter to specify a measurement path corresponding to the measurement path type; based on the selected geometric shape type, the input parameter of the geometric shape, the selected measurement path type, and the input parameter of measurement path, calculating, by a processor of the shape measuring apparatus, a plurality of measurement points on the workpiece to be scanned, and a normal line direction at each of the measurement points on the workpiece using a calculation formula prepared in advance; calculating, by the processor, a path for scanning measurement to move while scanning a sequence of the measurement points; and performing, by the shape measuring apparatus and using the probe, the scanning measurement to scan the path for the scanning measurement.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
DETAILED DESCRIPTION
Summary of the Present Invention
(16) It has been described that there are demands, for example, from a user who occasionally needs to simply measure a unique object, such as a trial product or a special order product.
(17) Analyzing these demands, a point to be measured is a geometric shape, such as a part of a plane, a part of a sphere, a part of a cylinder, or a part of a cone, or can be mostly replaced with a geometric shape.
(18) Thus, to perform nominal scanning measurement, a menu for nominal scanning measurement using approximation functions, instead of CAD data, is prepared in advance. The demands from a light user can be satisfied without CAD data or a high-performance computer (graphic workstation) accordingly.
(19) Embodiments of the present invention will be illustrated and described with reference to reference signs assigned to elements in the drawings.
First Exemplary Embodiment
(20)
(21) The basic configuration of the shape measuring system 100 has been known, but will be briefly described.
(22) The shape measuring system 100 includes a coordinate measuring machine 200, a motion controller 300 which controls the drive of the coordinate measuring machine 200, and a host computer 500 which controls the motion controller 300 and executes necessary data processing.
(23) The coordinate measuring machine 200 includes a base 210, a moving mechanism 220, and a probe 230.
(24) The moving mechanism 220 includes a gate type Y slider 221, an X slider 222, a Z axis column 223, and a Z spindle 224. The Y slider 221 is provided slidably on the base 210 in a Y direction. The X slider 222 slides along a beam of the Y slider 221 in an X direction. The Z axis column 223 is secured to the X slider 222. The Z spindle 224 moves up and down inside the Z axis column 223 in a Z direction.
(25) A driving motor (not illustrated) and an encoder (not illustrated) are fixed on each of the Y slider 221, the X slider 222, and the Z spindle 224.
(26) Drive control signals from the motion controller 300 control the drive of the driving motors.
(27) The encoder detects a moving amount of each of the Y slider 221, the X slider 222, and the Z spindle 224, and outputs the detection value to the motion controller 300.
(28) The probe 230 is attached to the lower end of the Z spindle 224.
(29) The probe 230 includes a stylus 231 and a supporting part 233. The stylus 231 has a stylus head 232 at a tip side (Z axis direction side). The supporting part 233 supports a base end side (+Z axis direction side) of the stylus 231.
(30) The stylus head 232 has a spherical shape and is brought into contact with an object W to be measured.
(31) When an external force is applied to the stylus 231, that is, when the stylus head 232 is brought into contact with an object to be measured, the supporting part 233 supports the stylus 231 so that the stylus 231 is movable in the directions of the X, Y, and Z axes within a certain range. The supporting part 233 further includes a probe sensor (not illustrated) to detect a position of the stylus 231 in each axis direction.
(32) The probe sensor outputs the detection value to the motion controller 300.
(33) (Configuration of the Motion Controller 300)
(34)
(35) The motion controller 300 includes a PCC acquisition unit 310, a counter 320, a path calculation unit 330, and a drive control unit 340.
(36) The PCC acquisition unit 310 acquires PCC curve data from the host computer 500.
(37) The counter 320 measures an amount of displacement of each slider by counting detection signals output from the encoder, and measures an amount of displacement of the probe 230 (the stylus 231) by counting detection signals output from each probe sensor.
(38) From the measured displacement of the slider and the probe 230, a coordinate position PP (hereinafter, referred to as a probe position PP) of the stylus head 232 is obtained. Furthermore, from the displacement (the detection values of the probe sensor (Px, Py, Pz)) of the stylus 231 measured by the counter 320, an amount of deflection (an absolute value of a vector Ep) of the stylus head 232 is obtained.
(39) The path calculation unit 330 calculates a movement path for the probe 230 (the stylus head 232) to measure a surface of an object to be measured with the probe 230 (the stylus head 232), and calculates a velocity component vector (path velocity vector) along the movement path.
(40) The path calculation unit 330 includes functional units to calculate a path according to measurement methods (measurement modes). Specifically, there are four methods of passive nominal scanning measurement, active nominal scanning measurement, autonomous scanning measurement, and point measurement.
(41) The measurement methods will be described later as needed.
(42) The drive control unit 340 controls the drive of each slider based on the moving vector calculated by the path calculation unit 330.
(43) Note that, a manual controller 400 is connected to the motion controller 300.
(44) The manual controller 400 includes a joystick and various buttons, receives a manual input operation from a user, and transmits the user's operations instruction to the motion controller 300.
(45) In this case, the motion controller 300 (the drive control unit 340) controls the drive of each slider in response to the user's operations instruction.
(46) (Configuration of the Host Computer 500)
(47) The host computer 500 includes a central processing unit (CPU) 511 and a memory, and controls the coordinate measuring machine 200 through the motion controller 300.
(48) The host computer 500 further includes a storage unit 520 and a shape analysis unit 530.
(49) The storage unit 520 stores measurement data obtained by measurement, and a measurement control program to control a whole measurement operation.
(50) In the present exemplary embodiment, a part program for the simplified nominal scanning measurement is included as a part of the control program.
(51) The part program for the simplified nominal scanning measurement is roughly divided into two function units as illustrated in
(52) Examples of operations controlled by the selection units will be described later.
(53) A part program for simplified nominal scanning measurement is too long to repeat, and is referred to as a simplified measurement part program.
(54) The shape analysis unit 530 calculates surface shape data of the object to be measured based on the measurement data output from the motion controller 300, and performs shape analysis to calculate error or distortion of the calculated surface shape data of the object to be measured.
(55) The shape analysis unit 530 further performs arithmetic processing, such as conversion of various parameters input to perform the simplified nominal scanning measurement into PCC curves.
(56) The CPU 511 executes the measurement control program, and thus the measurement operations of the present exemplary embodiment is implemented.
(57) An output device (a display or a printer) and an input device (a keyboard or a mouse) are connected to the host computer 500 as needed.
(58) (Description of the Measurement Operation)
(59) The measurement operations of the present exemplary embodiment will be described.
(60) The present exemplary embodiment is to perform nominal scanning measurement without design data, and which is referred to as simplified nominal scanning measurement.
(61) Procedures of the present exemplary embodiment are illustrated in
(62)
(63) Note that, the goal is to perform the scanning measurement to a sphere surface with a spiral path illustrated in
(64) First, preparation necessary for scanning measurement is performed (a preparation step ST100).
(65) The preparation step (ST100) is performed by the host computer 500.
(66)
(67) As the preparation step (ST100), first, a selection input step (ST200) which allows a user to select or input necessary information is performed.
(68) The selection input step (ST200) is detailedly illustrated in
(69) As the selection input step (ST200), a measurement method is selected by the user (ST210). For example, a selection menu illustrated in
(70) The menu of measurement methods includes passive nominal scanning measurement, active nominal scanning measurement, autonomous scanning measurement, and point measurement, and further includes simplified nominal scanning measurement in the present exemplary embodiment.
(71) Here, it is assumed that the user selects the simplified nominal scanning measurement (ST220: YES).
(72) Since the simplified nominal scanning measurement is selected, the simplified-measurement part program allows the user to select a shape of a measurement point from a prepared geometric shape menu (ST230).
(73) For example, a selection menu illustrated in
(74) In this description, the shape menu includes a sphere, a cylinder, a cone, and a plane. In addition, a prism (polygonal prism) and a pyramid (polygonal pyramid) may be included. Furthermore, whether the shape to be measured is an inner surface or an outer surface is selected.
(75) Here, it is assumed that a sphere and an outer surface are selected.
(76) When the geometric shape is selected, the user is requested to input a parameter necessary for specifying the detail of the selected geometric shape (ST240).
(77) Here, a sphere is selected, and a screen to input, for example, center coordinates (x, y, z), and a radius r in an input screen illustrated in
(78) Next, the simplified-measurement part program allows the user to select a pattern of a measurement path.
(79) The simplified-measurement part program allows the user to select a measurement path from a prepared measurement path menu (ST250).
(80) For example, a measurement path menu illustrated in
(81) The fixed height means that a z-coordinate is fixed, and the path menu may include, in addition, a fixed x-coordinate, and a fixed y-coordinate, and may allow a user to input an inclined scanning section.
(82) Furthermore, the path menu may be prepared for each geometric shape.
(83) For example, a path menu to perform measurement throughout an object to be measured by zigzagging on a plane may be prepared for a workpiece having a flat surface, such as a plane, a prism, and a pyramid.
(84) Here, it is assumed that a spiral is selected.
(85) When the measurement path is selected, the user is requested to input a parameter necessary for specifying the detail of the selected path (ST260).
(86) Here, since a spiral is selected as the measurement path, a screen to input information, such as a start point (.sub.xy0, .sub.z0), an end point .sub.zf, the number of turns i, and the number of sampling points N, is presented (
(87) The angles are defined, for example, as illustrated in
(88) The angle is an angle from an X axis in an XY plane.
(89) The angle is an angle from Z axis in a ZY plane.
(90) The number of turns i may include not only integers but also decimal numbers, such as 1.5 and 2.25, and which can omit to input the value p of the end point.
(91) With these steps, the geometric shape of the workpiece which is the object to be measured and the information on the user's desired scanning path are obtained.
(92) Thus, the selection input step (ST200) is terminated.
(93) Following the selection input step (ST200), a shape calculation step (ST300) is performed.
(94) The shape calculation step (ST300) is performed by a shape analysis unit 530 based on the information obtained in the selection input step (ST200).
(95) In the shape calculation step (ST300), measurement points (a point sequence) on the workpiece are calculated using prepared calculation formulae.
(96) Since the workpiece is a sphere, using the spherical coordinates of
.sub.xy=.sub.xy0+[360i{(k1)/(N1)}]
.sub.z=.sub.z0[(.sub.z0.sub.zf){(k1)/(N1)}]
(97) Here, k indicates the k-th sampling point (k=1, 2, 3 . . . N).
(98) The measurement points (point sequence) (r, .sub.xy, .sub.z) are obtained, and contour point data (x, y, z, P, Q, R) is obtained as follows (ST400).
(99) In other words, the spherical coordinates are converted into orthogonal coordinates with the following calculation formulae:
(100) x=r sin cos
(101) y=r sin sin
(102) z=r cos
(103) Furthermore, setting the center of the sphere as an origin, the origin and each of the measurement points (x, y, z) are combined, and thereby the normal line directions (P, Q, R) at each of the measurement points are obtained.
(104) Thus, the coordinates (x, y, z) and the normal line directions (P, Q, R) are obtained for each measurement point, which means that an equivalent to the contour point data is obtained.
(105) Once the contour point data is obtained, the technique for converting the data into a PCC curve is known (JP 2008-241420 A, JP 2013-238573 A, and JP 2014-21004 A).
(106) To be briefly described, the contour point data is offset in the normal line direction by a predetermined amount, and then a PCC curve is calculated (ST500).
(107) With the above procedures, the path for the nominal scanning measurement is obtained. Thus, the preparation step (ST100) is terminated.
(108) Since the preparation step (ST100) is terminated, the host computer 500 instructs the motion controller 300 to perform the nominal scanning measurement (ST610).
(109) The nominal scanning measurement itself has been well known, and the details are omitted.
(110) The brief description is as follows:
(111) The PCC curve is transmitted to the motion controller 300 and temporarily stored in the PCC acquisition unit 310.
(112) The path calculation unit 330 generates a path to measure the workpiece based on the PCC curve.
(113) The path calculation unit 330 generates a path according to the measurement method.
(114) Here, it is assumed that active nominal scanning measurement is to be performed and a path for the active nominal scanning measurement is generated.
(115) (Note That, Paths Generated For the active Nominal Scanning Measurement and the Passive Nominal Scanning Measurement are the Same.)
(116) The path calculation unit 330 sets, based on the curvature of the divided PCC curve, the moving speed of the probe 230, and determines the moving direction and the moving speed (velocity vector) at each point on the PCC curve. The movement of the probe 230 according to the moving vector implements the nominal scanning measurement.
(117) Furthermore, in the case of the active nominal scanning measurement, a vector in the normal line direction (deflection correcting vector) is generated so that the amount of deflection Ep becomes constant, and a trajectory correction direction (trajectory correction vector) to correct the deviation between the center coordinates and the path of the current stylus head 232 is generated. Then, a combined velocity vector, which is obtained by combining the velocity vector, the deflection correcting vector, and the trajectory correction vector, is generated.
(118) The drive control unit 340 supplies drive signals to the coordinate measuring machine 200 according to the combined velocity vector.
(119) Thereby, the coordinate measuring machine 200 measures the workpiece by the active nominal scanning measurement.
(120) The drive signals from the motion controller 300 drive the coordinate measuring machine 200, and thus the active nominal scanning measurement is performed.
(121) The coordinate measuring machine 200 feedbacks detection values (a probe sensor detection value and an encoder detection value) to the host computer 500 through the motion controller 300.
(122) The data obtained by the measurement is stored in the storage unit 520 (ST620). When all of the measurement points on the path are measured (ST630: YES), the measurement is terminated.
(123) With the above described present exemplary embodiment, it is possible to perform nominal scanning measurement without a CAD system or a high-performance PC.
Modified Example 1
(124) For reference, the case in which a sine curve is selected in a measurement path selection (ST250) will be described.
(125) When a sine curve is selected as a measurement path, a screen to input information, such as a start point (.sub.zy0, .sub.z0), amplitude (.sub.zH, .sub.zL), the number of turns i, the number of sampling points N, is presented (
(126) Note that, .sub.zH indicates the maximum value of .sub.z, and .sub.zL indicates the minimum value of .sub.z.
(127) With the information, measurement points (a point sequence) (r, .sub.xy, .sub.z) on a workpiece is indicated as follows:
.sub.xy=.sub.xy0+[360{(k1)/(N1)}]
.sub.z=(.sub.zH+.sub.zL)/2{(.sub.zH.sub.zL)/2} sin [360i{(k1)/(N1)}]
(128) If an object to be measured is a sphere, a spherical coordinates system is used, and if an object to be measured is a cylinder, a cylindrical coordinate system is used.
(129) Other processing is the same as above embodiment.
Modified Example 2
(130) When the shape parameter is input (ST240), the center coordinates of the sphere have been input (
(131) If it has been known that the shape is a sphere, the center coordinates can be calculated by measuring some points on a workpiece.
(132) When the automatic setting of center coordinates is selected, the center coordinates may be obtained by, for example, preliminarily measuring some points on the workpiece by point measurement. The point measurement may be performed automatically or manually by a user.
(133) Note that, the present invention is not limited to the above exemplary embodiments, and can be modified without departing from the scope of the invention.
(134) In the above embodiments, active nominal scanning measurement has been mainly described, but the active nominal scanning measurement may be replaced with passive nominal scanning measurement.