Measurement path generation device, measurement path generation method, and measurement system
The measurement route generation device addresses inefficiencies in on-machine measurement by calculating optimal sensor paths based on shape models and measurable ranges, reducing time and labor while ensuring precise alignment and collision avoidance.
Patent Information
- Application Number
- PCT/JP2023/015197
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-14
- Publication Date
- 2024-10-17
AI Technical Summary
Existing on-machine measurement techniques require excessive time and labor due to unnecessary posture control and potential collisions between measurement sensors and objects, leading to inefficient measurement paths and increased effort in aligning measurement directions with the object's surface.
A measurement route generation device that calculates a relative movement route between a measurement sensor and object, using a shape model to determine a measurement target curve, reference points, and normal directions within measurable distance and angle ranges, allowing for precise alignment and efficient path generation.
This approach reduces measurement time and labor by generating optimal measurement paths that align the sensor with the object's surface efficiently, avoiding collisions and ensuring precise data collection.
Smart Images

Figure JP2023015197_17102024_PF_FP_ABST
Abstract
Description
Measurement path generating device, measurement path generating method, and measurement system
[0001] The present disclosure relates to a measurement path generating device, a measurement path generating method, and a measurement system for measuring a measurement object on a machine tool using a measurement sensor.
[0002] Conventionally, on-machine measurement has been performed to measure the dimensions or shape of a machined workpiece on a machine tool using a measurement sensor such as an optical distance sensor. In on-machine measurement, the measurement sensor is moved relative to the shape of the machined workpiece, and the measurement value obtained from the measurement sensor and the position of the measurement sensor on the machine tool at the time the measurement value was measured are acquired synchronously. In this case, it is necessary to control the movement path of the measurement sensor to measure the machined workpiece and the attitude of the measurement sensor on the movement path.
[0003] Patent Document 1 discloses a shape measurement method in which a measurement sensor is moved to roughly trace the surface of the assumed shape of a measurement object while maintaining the distance in the measurement direction between the surface of the assumed shape of the measurement object and the measurement sensor within a predetermined range. It also discloses controlling the attitude of the measurement sensor so that it is perpendicular to the surface of the assumed shape. The shape measurement method described in Patent Document 1 aims to measure objects with large undulations by moving the measurement sensor while maintaining the distance within a measurable distance range.
[0004] Furthermore, Patent Document 2 discloses a method for determining the relative direction between a measurement object and a measurement device along a movement path in order to avoid collision between the measurement object and the measurement device during movement.
[0005] Japanese Unexamined Patent Publication No. 3-21814 Special Publication No. 2010-537184
[0006] An optical distance measuring sensor, which is a type of measurement sensor, irradiates an output light toward a measurement object and receives the reflected light reflected by the measurement object. The optical distance measuring sensor uses a portion of the output light before irradiating the measurement object as reference light, and measures the distance to the measurement object based on the interference light between the reference light and the reflected light. In order for the optical distance measuring sensor to receive the reflected light, the measurement direction, which is the direction in which the output light is irradiated from the optical distance measuring sensor, and the normal direction to the surface of the measurement object at the measurement position need only be within a predetermined angle.
[0007] However, in the techniques described in Patent Documents 1 and 2, the measurement path is not generated with consideration given to keeping the measurement direction of the measurement sensor and the normal direction of the surface of the measurement object within a predetermined angle. In such cases, the technique described in Patent Document 1 has a problem in that unnecessary attitude control is performed to make the measurement direction of the measurement sensor perpendicular to the surface of the measurement object, thereby increasing the time required for measurement.
[0008] Furthermore, with the technology described in Patent Document 2, even if the relative direction between the measurement object and the measurement sensor is determined so as to prevent collision between them, there is no guarantee that the measurement direction of the measurement sensor and the normal direction of the surface of the measurement object are within a predetermined angle, which can result in a measurement path that cannot be measured properly, requiring time and effort to correct the measurement path.
[0009] The present disclosure has been made in consideration of the above, and aims to provide a measurement path generation device that is capable of generating a measurement path that enables on-machine measurement of a measurement object with high accuracy while reducing the time required to measure the measurement object on-machine and the effort required by the operator to measure the measurement object.
[0010] In order to solve the above-mentioned problems and achieve the object, a measurement path generation device according to the present disclosure is a measurement path generation device that generates a measurement path, which is a relative movement path between a measurement sensor and a measurement object, for measuring the measurement object with the measurement sensor on a machine tool. The measurement path generation device includes: a shape model storage unit that stores a shape model of the measurement object; a measurement target curve generation unit that generates a measurement target curve that is a curve on the measurement object surface of the shape model; a reference point calculation unit that calculates a reference point that is a point on the measurement target curve and a normal direction of the measurement object curved surface at the reference point; and a measurement path generation unit that generates the measurement path, which is a movement path for measuring the measurement target curve, based on the reference point, the normal direction, a measurable distance range that is the range of measurable distances between the measurement sensor and the measurement target curve, and a measurable angle range that is the range of measurable relative angles between the measurement direction of the measurement sensor and the normal direction of the measurement object curved surface.
[0011] The measurement path generation device disclosed herein has the advantage of being able to generate a measurement path that enables highly accurate on-machine measurement of a measurement object while reducing the time required to measure the measurement object on-machine and the effort required by the operator to measure the measurement object.
[0012]
[0013] A measurement path generating device, a measurement path generating method, and a measurement system according to embodiments will be described in detail below with reference to the accompanying drawings.
[0014] First Embodiment Fig. 1 is a diagram showing an example of the configuration of a measurement system according to the first embodiment. The measurement system 1 is a system that performs on-machine measurement for measuring a measurement object 30 on a machine tool 20, that is, for measuring the dimensions or shape of the measurement object 30 on the machine tool 20. The measurement system 1 according to the first embodiment includes a measurement path generating device 10 and the machine tool 20.
[0015] The machine tool 20 includes a measurement sensor 21, a numerical control device 22, and a servo control unit 23. Furthermore, on the machine tool 20, a measurement object 30, such as a workpiece to be machined, is placed.
[0016] The measurement sensor 21 is installed on at least one of the drive axes of the machine tool 20 and measures the distance to a specified object, in the example of Figure 1, the distance between the measurement object 30 and the measurement sensor 21.
[0017] Numerical control device 22 controls the operation of machine tool 20, and controls the machining of the workpiece by machine tool 20. Numerical control device 22 outputs control signals, including position commands, speed commands, etc., to servo control unit 23 based on a set program for controlling the operation of machine tool 20. Similarly, when on-machine measurement is performed using measurement sensor 21 attached to the drive shaft of machine tool 20, numerical control device 22 outputs control signals, including position commands, speed commands, etc., to servo control unit 23 based on a set program for controlling the operation of machine tool 20.
[0018] Servo control unit 23 outputs a servo signal containing information such as information on the current for operating the drive shaft of machine tool 20 and the actual position of the drive shaft to the drive shaft of machine tool 20 in response to the output from numerical control device 22, i.e., in response to the control signal output from numerical control device 22. Similarly, when on-machine measurement is performed using measurement sensor 21 attached to the drive shaft of machine tool 20, servo control unit 23 outputs a servo signal containing information such as information on the current for operating the drive shaft to which measurement sensor 21 of machine tool 20 is attached and the actual position of the drive shaft to the drive shaft of machine tool 20 in response to the output from numerical control device 22, i.e., in response to the control signal output from numerical control device 22.
[0019] The measurement path generating device 10 generates a measurement path, which is a relative movement path between a measurement sensor 21 and a measurement object 30, for measuring the measurement object 30 by the measurement sensor 21 on a machine tool 20. The measurement path generating device 10 has a computer installed with a measurement path generation program that generates a measurement path.
[0020] Here, a path showing the change in the relative position between the measurement sensor and the measurement object is referred to as a relative movement path. For example, the position of the measurement sensor 21 with respect to the measurement object 30, i.e., the relative position of the measurement sensor 21 with respect to the position of the measurement object 30, is expressed as a coordinate position. Then, a path showing a series of changes in the coordinate positions when the measurement sensor 21 and the measurement object 30 move may be referred to as a relative movement path.
[0021] 2 is a diagram showing the configuration of the measurement path generating device according to the first embodiment. The measurement path generating device 10 according to the first embodiment includes an operation unit 11, a path processing unit 12, a storage unit 13, a communication unit 14, and a control unit 15. Information can be exchanged between the components of the measurement path generating device 10.
[0022] The operation unit 11 is an operation receiving unit that receives user operations, i.e., setting operations from the user. The operation unit 11 receives input of user operations and transmits information corresponding to the user operations to components within the measurement path generating device 10. The operation unit 11 is composed of input devices such as a keyboard and a mouse. Note that the measurement path generating device 10 may be configured without including the operation unit 11.
[0023] The path processing unit 12 performs processing to generate a measurement path, which is a movement path measured by the measurement sensor 21, when on-machine measurement is performed to measure the dimensions or shape of the measurement object 30 on the machine tool 20 using the measurement sensor 21. Information on the measurement path generated by the path processing unit 12 is sent to the numerical control device 22.
[0024] The storage unit 13 stores various information used to control the measurement path generating device 10 .
[0025] The communication unit 14 communicates with devices external to the measurement path generating device 10 .
[0026] The control unit 15 controls the overall operation of the measurement path generating device 10 .
[0027] 3 is a diagram showing the configuration of a path processing unit included in the measurement path generating device according to the first embodiment. The measurement path generating device 10 includes a shape model storage unit 101, a measurement target curve generation unit 102, a measurement target surface designation unit 103, a reference point calculation unit 104, a measurement path generation unit 105, a measurement environment information storage unit 106, a display unit 107, an interference determination unit 108, and a measurement program output unit 109. Information can be exchanged between the components of the path processing unit 12.
[0028] The shape model storage unit 101 stores a shape model that represents the shape of the measurement object 30, which is input from outside the measurement path generating device 10. Examples of the measurement object 30 include a machined workpiece before machining, a machined workpiece after machining, a fixture for the machined workpiece, a cutting tool, and a structure of the machine tool 20. Methods for inputting a shape model to the shape model storage unit 101 include data conversion from computer-aided design (CAD) data, graphic input by an operator using an input device such as a keyboard, and the like.
[0029] The measurement target curve generating unit 102 generates a measurement target curve, which is a curve on the measurement target surface of the shape model of the measurement object 30. The measurement target surface is a curve on the shape model of the measurement object 30 that is the target of on-machine measurement by the measurement sensor 21.
[0030] The measurement target curved surface designation unit 103 designates a measurement target curved surface that is to be measured, among a plurality of curved surfaces included in the shape model of the measurement object 30 .
[0031] The reference point calculation unit 104 calculates a reference point, which is a point on the measurement target curve, and the normal direction of the measurement target curved surface at the reference point.
[0032] The measurement path generation unit 105 generates a measurement path, which is a moving path for measuring on the measurement target curve, based on a reference point, a normal direction at the reference point, a measurable distance range which is the range of measurable distances between the measurement sensor 21 and the measurement target curve, and a measurable angle range which is the range of measurable relative angles between the measurement direction of the measurement sensor 21 and the normal direction of the curved surface to be measured.
[0033] The measurement environment information storage unit 106 stores measurement environment information, which is information including various conditions related to the measurement environment when the measurement sensor 21 measures the measurement object 30. The measurement environment information includes at least one of the type of measurement sensor, the measurement method of the measurement sensor, the wavelength of the output light of the measurement sensor, the focal length of the measurement sensor, the measurement cycle of the measurement sensor, the material of the measurement object, and the surface roughness of the measurement object.
[0034] The display unit 107 has a display screen and a display control unit that controls the display of information on the display screen, and displays various types of information inside the measurement path generating device 10.
[0035] The interference determination unit 108 determines whether or not there is interference between the measurement sensor 21 and the shape model of the object 30 to be measured based on information on the shape model, information on the surface to be measured, information on the target curve to be measured, information on the coordinate position of the reference point on the target curve to be measured, information on the specifications of the measurement sensor 21, information on the shape of the measurement sensor 21, and information on the measurement position and measurement direction of the measurement sensor 21 for measuring each reference point.
[0036] The measurement program output unit 109 generates a measurement program that describes commands to move the measurement sensor 21 and the object to be measured 30 relative to each other along the measurement path generated by the measurement path generation unit 105, based on the configuration of the drive axis of the machine tool 20.
[0037] Next, a description will be given of the operation of the path processing unit 12 of the measurement path generating device 10 configured as above. Fig. 4 is a flowchart showing an example of the procedure of the operation of the measurement path generating device according to the first embodiment.
[0038] First, in step S110, a measurement target surface of a shape model is specified. Specifically, first, the measurement target curve generation unit 102 acquires a shape model stored in the shape model storage unit 101. The shape model of the measurement target object is stored in advance in the shape model storage unit 101 in a shape model storage step.
[0039] Fig. 5 is a perspective view showing an example of a shape model used in the measurement path generating device according to the first embodiment. Fig. 5 shows a shape model M1, which is a shape model that expresses the shape of the measurement object 30, and curved surfaces S1 to S15 of the shape model M1, in a perspective view. In the shape model M1, two concave shapes along the Y direction are configured by curved surfaces. Fig. 6 is a side view of an example of a shape model used in the measurement path generating device according to the first embodiment. Fig. 6 shows a side view of the shape model M1 shown in Fig. 5 as viewed from the direction of arrow A in Fig. 5.
[0040] The left-right direction in Figures 5 and 6 is the width direction of the shape model M1. The width direction of the shape model M1 corresponds to the X direction in Figures 5 and 6. The up-down direction in Figures 5 and 6 is the height direction of the shape model M1. The height direction of the shape model M1 corresponds to the Z direction in Figures 5 and 6. Furthermore, the direction perpendicular to the width direction and the height direction of the shape model M1 is the width-row direction of the shape model M1. The width-row direction of the shape model M1 corresponds to the Y direction in Figure 6.
[0041] Next, a measurement target surface, which is a surface to be measured among the multiple surfaces of the shape model, is designated. The measurement target surface is designated from among the multiple surfaces of the shape model in accordance with instruction information input by the operator in a measurement target surface designation unit 103. The measurement target surface designation unit 103 transmits designation information of the measurement target surface, which is information on the surface designated as the measurement target surface, to the measurement target curve generation unit 102.
[0042] 7 is a perspective view showing how measurement target surfaces of a shape model used in the measurement path generating device according to the first embodiment are specified. Fig. 7 shows how surfaces S2 to S14, which are surfaces in an area surrounded by thick lines, are specified as measurement target surfaces of a shape model M1.
[0043] The method for specifying the measurement target surface is not limited to the above-described method, and the measurement target surface may be automatically specified by previously assigning an attribute for specifying the measurement target surface to the surface of the shape model stored in the shape model storage unit 101. In this way, the measurement target surface is automatically specified on the measurement target surface when the measurement target curve generation unit 102 acquires the shape model stored in the shape model storage unit 101. After executing step S110, the process proceeds to step S120.
[0044] In step S120, the measurement target curve generating unit 102 generates a measurement target curve on the measurement target surface of the shape model. The measurement target curve represents continuous positions on the measurement target surface that are measured by the measurement sensor 21. That is, in step S120, a measurement target curve generating step is performed to generate a measurement target curve that is a curve on the measurement target surface of the shape model.
[0045] The measurement target curve generating unit 102 generates a plane and generates the intersection line between the plane and the measurement target surface as a measurement target curve. Here, the plane may be specified by an operator by inputting information about the plane's position and direction into the path processing unit 12, or the plane may be selected by the operator from information about multiple planes prepared in advance in the path processing unit 12. Information about the multiple planes may be stored, for example, in the shape model storage unit 101 or in another component of the path processing unit 12, such as the measurement target curve generating unit 102. Furthermore, not only one plane but multiple planes may be generated. For example, one plane and multiple planes offset from the plane at equal intervals in the normal direction of the plane may be generated. That is, for example, one plane and multiple planes arranged at equal intervals in the normal direction of the plane in the depth direction of the shape model may be generated.
[0046] Fig. 8 is a diagram showing how planes are generated in a shape model used in the measurement path generating device according to the first embodiment. Fig. 8 shows how three planes, a first plane PL1, a second plane PL2, and a third plane PL3, are generated in a shape model M1. Fig. 9 is a diagram showing the planes shown in Fig. 8. Fig. 10 is a diagram showing Fig. 8 as viewed from above. Note that in Fig. 10, two concave shapes along the Y direction are omitted.
[0047] Fig. 11 is a perspective view showing a state in which a measurement target curve is generated on a measurement target surface of a shape model used in the measurement path generating device according to the first embodiment. Fig. 12 is a side view showing a state in which a measurement target curve is generated on a measurement target surface of a shape model used in the measurement path generating device according to the first embodiment. Fig. 11 shows a state in which measurement target curves C11, C12, and C13 are generated on shape model M1 as intersection lines between planes PL1 to PL3 and surfaces S2 to S14, which are the measurement target surfaces specified in step S110. Fig. 12 shows the shape model M1 shown in Fig. 11 as viewed from the direction of arrow A in Fig. 11.
[0048] The measurement target curve is not limited to the generation method described above, and may be generated based on shape elements included in a shape model. For example, the measurement target curve may be generated by using an edge curve of a shape model, which is one of the shape elements included in the shape model, as the measurement target curve, or by performing an operation such as offsetting the edge curve or blending edge curves.
[0049] The measurement target curve generating unit 102 transmits the information on the shape model, the information on the measurement target curved surface, and the information on the measurement target curve to the reference point calculating unit 104. After executing step S120, the process proceeds to step S130.
[0050] In step S130, the reference point calculation unit 104 calculates the coordinate position of the reference point on the measurement target curve and the normal direction of the measurement target curved surface at the reference point. That is, in step S130, a reference point calculation step is performed to determine the reference point, which is a point on the measurement target curve, and the normal direction of the measurement target curved surface at the reference point. Hereinafter, the normal direction of the measurement target curved surface at the reference point may be simply referred to as the normal direction.
[0051] Specifically, the reference point calculation unit 104 samples points on the measurement target curve and sets the sampled points as reference points. A method for sampling points on the measurement target curve, for example, can be to divide parameters corresponding to the start and end points of the measurement target curve at equal intervals, calculate positions on the measurement target curve based on each parameter, and determine these positions as reference points. Furthermore, in order to determine a reference point corresponding to the curvature of the measurement target curve, a chordal error between the measurement target curve and a line segment connecting adjacent reference points may be determined in advance, and a reference point may be determined on the measurement target curve so as to satisfy the predetermined chordal error.
[0052] Furthermore, since the measurement target curve exists on the measurement target curved surface, the calculated reference point also exists on the measurement target curved surface. Therefore, the reference point calculation unit 104 can calculate the normal direction at the position of the reference point on the measurement target curved surface. At this time, in order to find a reference point corresponding to the amount of change in the normal direction of the measurement target curve, the amount of change in the normal direction at an adjacent reference point may be found, and a reference point may be added to the measurement target curve so as to satisfy a predetermined allowable angle change.
[0053] 13 is a diagram showing how a reference point on a measurement target curve of a shape model used in the measurement path generating device according to the first embodiment and a normal direction of the measurement target curved surface at the reference point are calculated. Fig. 13 shows how a reference point Q25 is calculated from a reference point Q1 on a measurement target curve C11, and how a normal direction N25 is calculated from a normal direction N1 on the measurement target curved surface at each reference point. The normal direction N1 to the reference point N25 is the normal direction of the measurement target curved surface from the reference point Q1 to the reference point Q25.
[0054] In Fig. 13, circles indicate reference points. This also applies to subsequent figures. In Fig. 13, one-way arrows indicate the normal direction of the measurement target curved surface at the reference point. In Fig. 13, for example, the normal direction of the measurement target curved surface at the position of reference point Q1 on the measurement target curved surface is normal direction N1. Furthermore, the normal direction of the measurement target curved surface at the position of reference point Q2 on the measurement target curved surface is normal direction N2. The same applies to the correspondence between other reference points and normal directions.
[0055] The reference point calculation unit 104 transmits the information on the shape model, the information on the measurement target surface, the information on the measurement target curve, the information on the coordinate position of the reference point on the measurement target curve, and the information on the normal direction of the measurement target curve at the reference point to the measurement path generation unit 105. After executing step S130, the process proceeds to step S140.
[0056] In step S140, the measurement path generation unit 105 generates a measurement path that satisfies the measurable conditions and is the movement path of the measurement sensor 21 that measures the measurement target curve. The measurement path generation unit 105 generates a measurement path that satisfies the measurable conditions. That is, in step S140, a measurement path generation step is performed to generate a measurement path that is the movement path that measures the measurement target curve based on the reference point, the normal direction, the measurable distance range that is the range of the measurable distance between the measurement sensor 21 and the measurement target curve, and the measurable angle range that is the range of the measurable relative angle between the measurement direction of the measurement sensor 21 and the normal direction of the curved surface to be measured.
[0057] First, a measurable distance range and a measurable angle range are set as measurement conditions in the measurement path generating unit 105. The measurement path generating unit 105 sets the measurable distance range and the measurable angle range in accordance with measurable condition setting information that specifies the specific ranges of the measurable distance range and the measurable angle range. The measurable condition setting information is input to the measurement path generating unit 105 by the operator.
[0058] The measurable distance range is a predetermined range of measurable distance between the measurement sensor 21 and the measurement target curve. The measurable distance range is determined by the specifications of the measurement sensor 21.
[0059] The measurable angle range is a predetermined range of relative angles that can be measured between the measurement direction of the measurement sensor 21 and the normal direction of the curved surface to be measured. The relative angle between the measurement direction of the measurement sensor 21 and the normal direction of the curved surface to be measured is the angle formed by the measurement direction of the measurement sensor 21 and the normal direction of the curved surface to be measured on a virtual plane that includes the measurement direction of the measurement sensor 21 and the normal direction of the curved surface to be measured. The measurable distance range is determined by the specifications of the measurement sensor 21.
[0060] Then, based on the measurable conditions, the measurement path generating unit 105 determines a measurable area where the measurement sensor 21 can measure the measurement object 30. Here, the measurement direction of the measurement sensor 21 refers to the attitude of the measurement sensor 21. For example, if the measurement sensor 21 is an optical distance measuring sensor, the direction of output light that the optical distance measuring sensor irradiates toward the measurement object 30 may be the measurement direction. Hereinafter, the measurement direction of the measurement sensor 21 may be simply referred to as the measurement direction.
[0061] 14 is a diagram showing an example of a measurable region determined based on a measurable distance range and a measurable angle range in a shape model used in the measurement path generating device according to embodiment 1. Note that the one-way arrow in Fig. 14 indicates the normal direction of the measurement target curved surface at the reference point, similar to Fig. 13 .
[0062] 14, the measurable distance range Rd1 and the measurable angle range Ra1 are set as predetermined values, and are shown as measurable areas A1 to A25, which are areas where the measurement sensor 21 can measure from each reference point Q1 to reference point Q25 based on the measurable distance range Rd1 and the measurable angle range Ra1. When measuring with the measurement sensor 21, the measurement sensor 21 can be placed within each of the measurable areas A1 to A25.
[0063] 14, the measurable distance range Rd1 and the measurable angle range Ra1 are shown on the XZ plane, i.e., the measurable distance range Rd1 and the measurable angle range Ra1 are shown two-dimensionally, but the measurable distance range Rd1 and the measurable angle range Ra1 can be set three-dimensionally. Therefore, it is sufficient that the measurable distance and the measurable angle are determined three-dimensionally.
[0064] At this time, the measurement path generating unit 105 may set the measurable distance range and measurable angle range, which are the measurement enabling conditions, based on measurement environment information, which is information about the measurement environment stored in the measurement environment information storage unit 106. The measurement environment information may be stored in advance in the measurement environment information storage unit 106, or may be input by an operator to the measurement environment information storage unit 106. The measurement path generating unit 105 may use at least one of the type of measurement sensor 21, the measurement method of the measurement sensor 21, the wavelength of the output light of the measurement sensor 21, the focal length of the measurement sensor 21, the measurement cycle of the measurement sensor 21, the material of the measurement object 30, and the surface roughness of the measurement object 30, as the measurement environment information.
[0065] The measurement environment information includes various conditions related to the measurement environment when the measurement sensor 21 measures the measurement target 30. The measurement environment information can include, for example, information that the type of the measurement sensor 21 is an optical distance measuring sensor, and information that the measurement method used by the measurement sensor 21 is a frequency scanning interferometry method such as that disclosed in Japanese Patent Application Laid-Open No. 2017-191815. An optical distance measuring device that uses frequency scanning interferometry, which is one method of measuring the distance to a measurement target using light, irradiates the measurement target with frequency swept light whose frequency changes over time, and receives the frequency swept light reflected by the measurement target as reflected light. The optical distance measuring device uses a portion of the frequency swept light before irradiating it on the measurement target as reference light, and measures the distance to the measurement target based on the interference light between the reference light and the reflected light.
[0066] The measurement environment information may also include, for example, information on the shape of the measurement sensor 21, which is the specifications of the measurement sensor 21, the wavelength of the output light of the measurement sensor 21, and the focal length of the measurement sensor 21. It may also include information on the material of the measurement object 30, which is the specifications of the measurement object 30, and information on the surface roughness of the measurement object 30. A design target value for the surface roughness of the measurement object 30 may be determined in advance for each curved surface of the shape model.
[0067] Here, the measurement path generating unit 105 can predict in advance the intensity of light reflected from the measurement object 30 of output light irradiated toward the measurement object 30, in accordance with the specifications of the measurement sensor 21 or the specifications of the measurement object 30 described above, and can determine an allowable relative angle for obtaining sufficient reflected light in the measurement sensor 21. This allows the measurement path generating unit 105 to set an appropriate measurable distance range and measurable angle range based on the measurement environment information. Note that the measurable distance range and measurable angle range may not be fixed values, but may be variable values expressed by mathematical formulas. For example, the measurable distance range may be changed in accordance with the relative angle between the measurement direction and the normal direction of the curved surface.
[0068] Next, the measurement path generating unit 105 calculates the measurement position and measurement direction of the measurement sensor 21 for measuring each reference point. Simply put, the measurement path generating unit 105 determines the measurement position and measurement direction for the measurable area determined for each reference point so that the measurement direction is in the center of the measurable distance range and opposite to the normal direction of the reference point. Here, "the normal direction of the reference point and the measurement direction are opposite to each other" means that the normal direction of the reference point and the measurement direction are located on the same line and face each other.
[0069] As described above, the measurable distance range Rd1 and the measurable angle range Ra1 can be set three-dimensionally, so the measurement position and measurement direction of the measurement sensor 21 only need to be determined within a three-dimensional range.
[0070] At this time, the interference determination unit 108 determines whether or not there is interference between the measurement sensor 21 and the shape model of the measurement object 30. The interference determination unit 108 acquires from the measurement path generation unit 105 information on the shape model, information on the measurement object surface, information on the measurement target curve, information on the coordinate positions of reference points on the measurement target curve, information on the normal direction of the measurement object surface at the reference points, information on the specifications of the measurement sensor 21, information on the shape of the measurement sensor 21, and information on the measurement position and measurement direction of the measurement sensor 21 for measuring each reference point, and determines whether or not there is interference between the measurement sensor 21 and the shape model of the measurement object 30 based on this information. The interference determination unit 108 transmits to the measurement path generation unit 105 a determination result regarding whether or not there is interference between the measurement sensor 21 and the shape model of the measurement object 30 for each reference point.
[0071] If it is determined that the measurement sensor 21 will interfere with the shape model of the object to be measured 30, the measurement path generation unit 105 corrects the measurement position and measurement direction of the measurement sensor 21 so as to avoid interference between the measurement sensor 21 and the shape model of the object to be measured 30.
[0072] Here, when one measurement position and measurement direction are corrected, the measurement path generating unit 105 corrects the measurement positions and measurement directions around the corrected measurement position and measurement direction in order to prevent a sudden movement of the measurement sensor 21. In other words, when the measurement position and measurement direction of the measurement sensor 21 for one reference point are corrected, the measurement path generating unit 105 corrects the measurement positions and measurement directions of the measurement sensor 21 for reference points around the reference point.
[0073] For example, the measurement path generation unit 105 can correct the measurement position and measurement direction of the measurement sensor 21 so that the movement direction of each drive axis of the machine tool 20 is not reversed, or can correct the measurement position and measurement direction of the measurement sensor 21 so that the ratio of the movement amount of the linear axis and the movement amount of the rotational axis of the machine tool 20 does not exceed a predetermined value.
[0074] 15 to 17, an example of a method for calculating the measurement position and measurement direction of the measurement sensor 21 for measuring reference points Q1 to Q3 will be described. In Fig. 15 to 17, black circles indicate the measurement positions of the measurement sensor 21. In Fig. 15 to 17, one-way arrows indicate the measurement direction of the measurement sensor 21.
[0075] 15 is a first diagram showing how the measurement position and measurement direction of the measurement sensor for measuring reference points used in the measurement path generating device according to the first embodiment are calculated. Fig. 15 shows how the measurement path generating unit 105 calculates the measurement positions of the measurement sensor 21 from measurement position P1 to measurement position P3 and the measurement directions of the measurement sensor 21 from measurement direction V1 to measurement direction V3 for reference points Q1 to Q3, respectively, so that the measurement directions are in the center of the measurable distance range and opposite the normal direction of the reference points. Here, Fig. 15 shows how, when the measurement position P3 and measurement direction V3 of the measurement sensor 21 for measuring reference point Q3 are set, interference occurs between the curved surface of the shape model M1 and the measurement sensor 21. That is, when the measurement position P3 and measurement direction V3 of the measurement sensor 21 for measuring reference point Q3 are set, interference occurs between the measurement sensor 21 and a measurement target curve C11, which is a measurement target curve on the measurement target surface of the shape model M1.
[0076] 16 is a second diagram showing how the measurement position and measurement direction of the measurement sensor for measuring a reference point used in the measurement path generating device according to the first embodiment are calculated. Fig. 16 shows how the measurement position P3 is corrected to a measurement position P3' and the measurement direction V3 is corrected to a measurement direction V3' in order to avoid interference between the measurement sensor 21 and the curved surface of the shape model when the measurement position P3 and measurement direction V3 of the measurement sensor 21 for measuring the reference point Q3 are set.
[0077] In addition, in order to prevent the measurement sensor 21 from suddenly moving due to the correction of the measurement position and measurement direction of the measurement sensor 21, the measurement position P2 and measurement direction V2 of the measurement sensor 21 for measuring the reference point Q2 are corrected. That is, Fig. 16 shows a state in which the measurement position P2 for the reference point Q2 is corrected to the measurement position P2' and the measurement direction V2 is corrected to the measurement direction V2'.
[0078] 17 is a third diagram showing how the measurement positions and measurement directions of the measurement sensor for measuring reference points used in the measurement path generating device according to embodiment 1 are calculated. Fig. 17 shows how the measurement positions of the measurement sensor 21 for measuring from reference point Q1 to reference point Q12 are calculated as P1 to P12, respectively, and how the measurement directions of the measurement sensor 21 for measuring from reference point Q1 to reference point Q12 are calculated as V1 to V12, respectively.
[0079] On the other hand, when it is determined that the measurement sensor 21 will interfere with the shape model of the measurement object 30, the interference may not be avoided even if the measurement path generating unit 105 corrects the measurement position and measurement direction of the measurement sensor 21 within the measurable area relative to the reference point. In such cases, the measurement path generating unit 105 does not calculate the measurement position and measurement direction of the measurement sensor 21 for measuring the reference point, and stores the reference point as an unmeasurable reference point.
[0080] 18 and 19, an example of a method for calculating the measurement position and measurement direction of the measurement sensor 21 for measuring reference points Q13 to Q25 will be described. In Fig. 18 and Fig. 19, black circles indicate the measurement positions of the measurement sensor 21. In Fig. 18 and Fig. 19, one-way arrows indicate the measurement direction of the measurement sensor 21.
[0081] 18 is a fourth diagram showing how the measurement position and measurement direction of the measurement sensor for measuring the reference points used in the measurement path generating device according to the first embodiment are calculated. Fig. 18 shows how the measurement path generating unit 105 calculates the measurement positions of the measurement sensor 21 from measurement position P13 to measurement position P15, respectively, for reference point Q13 to reference point Q15, so that the measurement directions are in the center of the measurable distance range and opposite to the normal direction of the reference points, and how the measurement directions of the measurement sensor 21 are calculated from measurement direction V13 to measurement direction V15, respectively.
[0082] 18, when the measurement position P15 and measurement direction V15 of the measurement sensor 21 for measuring the reference point Q15 are set, interference occurs between the curved surface of the shape model M1 and the measurement sensor 21. That is, in Fig. 18, when the measurement position P15 and measurement direction V15 of the measurement sensor 21 for measuring the reference point Q3 are set, interference occurs between the measurement target curve C11, which is the measurement target curve on the measurement target surface of the shape model M1, and the measurement sensor 21.
[0083] In this case, even if an attempt is made to correct the measurement position and measurement direction of the measurement sensor 21 for measuring reference point Q15 to avoid interference between the measurement sensor 21 and the curved surface of the shape model M1, a measurement position and measurement direction of the measurement sensor 21 that can avoid interference cannot be found within the measurable area A15 of reference point Q15 shown in Figure 18. The measurement path generation unit 105 does not calculate the measurement position and measurement direction of the measurement sensor 21 for measuring the reference point, and stores reference point Q15 as an unmeasurable reference point. Similarly, since a measurement position and measurement direction that can avoid interference between the measurement sensor 21 and the curved surface of the shape model M1 cannot be found for reference points Q16 to Q23, the measurement path generation unit 105 does not calculate the measurement position and measurement direction of the measurement sensor 21 for measuring the reference points, and stores reference points Q16 to Q23 as unmeasurable reference points.
[0084] 19 is a fifth diagram showing how the measurement path generating unit 105 calculates the measurement positions and measurement directions of the measurement sensor for measuring reference points used in the measurement path generating device according to the first embodiment. Fig. 19 shows how the measurement path generating unit 105 calculates the measurement positions of the measurement sensor 21 as measurement positions P13, P14, P24, and P25, respectively, for reference points Q13, Q14, Q24, and Q25, which are reference points measurable by the measurement sensor 21, so that the measurement directions are in the center of the measurable distance range and opposite the normal direction of the reference points, and how the measurement directions of the measurement sensor 21 are calculated as measurement directions V13, V14, V24, and V25, respectively.
[0085] The measurement path generating unit 105 then connects the calculated measurement positions in order to generate a measurement path in which the measurement direction calculated at each measurement position is the measurement direction of the measurement sensor 21 at each measurement position. At this time, the measurement path generating unit 105 distinguishes between reference points stored as non-measurable reference points. That is, the measurement path generating unit 105 generates a connection path that sequentially connects measurement position P13, measurement position P14, measurement position P24, and measurement position P25, and does not connect reference point Q15 to reference point Q23, which are stored as non-measurable reference points, and excludes them from the connection path. Note that the measurement path generating unit 105 may not directly connect between reference points stored as non-measurable reference points, but may generate a path that retreats in a direction that does not cause interference between the measurement sensor 21 and the measurement object 30, and then approaches the next reference point.
[0086] 20 is a diagram showing how a measurement path is generated in the measurement path generating device according to the first embodiment. Fig. 20 shows how measurement path TP1 is generated by sequentially connecting calculated measurement position P1 to measurement position P14, measurement position P24, and measurement position P25, with the measurement directions at each measurement position being measurement direction V1 to measurement direction V14, measurement direction V24, and measurement direction V25, respectively. Here, reference points Q15 to Q23, which are stored as non-measurable reference points, exist between measurement position P14 and measurement position P24, and therefore the path connecting measurement position P14 and measurement position P24 is distinguished.
[0087] In step S140 described above, the measurement path generating unit 105 generates measurement path information including a plurality of measurement positions, lines connecting the measurement positions, and measurement directions at each measurement position. Furthermore, if there is a reference point stored as an unmeasurable reference point, the measurement path generating unit 105 generates, as part of the measurement path information, information about an unmeasurable area, which is an area of the measurement target curve where the unmeasurable reference point exists, and information about a detour measurement route that detours around the unmeasurable area. In other words, the measurement path generating unit 105 determines an unmeasurable area on the measurement target curve where a measurement path cannot be generated, and generates a measurement path that includes a detour measurement route that avoids the unmeasurable area.
[0088] The measurement path generated as described above may be configured to include multiple measurement positions, avoid unmeasurable areas at all measurement positions, and satisfy the requirements that the error between the line segment connecting positions on the measurement target curve measured at consecutive measurement positions and the measurement target curve satisfies a predetermined allowable error.
[0089] The measurement path generation unit 105 transmits the information on the shape model, the information on the measurement target surface, the information on the measurement target curve, the information on the coordinate position of the reference point on the measurement target curve, the information on the normal direction of the measurement target surface at the reference point, and the measurement path information to the display unit 107. After executing step S140, the process proceeds to step S150.
[0090] In step S150, the measurement path is displayed on the display unit 107, and the measurement program is output. Specifically, the shape model stored in the shape model storage unit 101 and from which the measurement path has been generated, the measurement target curve generated in the measurement target curve generation unit 102, and the measurement path generated in the measurement path generation unit 105 for measuring the measurement target curve are displayed on the screen of the display unit 107. At this time, a plurality of measurement target curves and a plurality of measurement paths may be displayed. In this case, the measurement target curve and the measurement path are displayed in association with each other so that the measurement paths corresponding to the respective measurement target curves can be distinguished.
[0091] Here, displaying the measurement target curve and the measurement route in association with each other may mean, for example, displaying the measurement route that is associated with the measurement target curve and the measurement route that is not associated with the measurement target curve in a manner that allows an operator to distinguish between them when looking at the display screen of the display unit 107. Examples of methods for displaying the measurement target curve and the measurement route in association with each other include displaying the associated measurement target curve and measurement route in the same color, displaying the associated measurement target curve and measurement route in the same line width, and displaying the associated measurement target curve and measurement route in the same line type such as a dashed line or a dotted line.
[0092] The measurement route is displayed as multiple measurement positions, lines connecting the measurement positions, and the measurement direction at each measurement position. Furthermore, if there is a reference point stored as an unmeasurable reference point, an unmeasurable area, which is the area of the measurement target curve where the unmeasurable reference point exists, and a detour measurement route that detours around the unmeasurable area are displayed to be distinguished from the measurement route.
[0093] Here, methods for displaying the unmeasurable area in a manner that distinguishes it from the measurement target curve include, for example, displaying the unmeasurable area in a different color from areas of the measurement target curve that are not unmeasurable, displaying the unmeasurable area with a different line width from areas of the measurement target curve that are not unmeasurable, and displaying the unmeasurable area with a different line type from areas of the measurement target curve that are not unmeasurable.
[0094] In addition, examples of methods for displaying a detour measurement route to distinguish it from the measurement route include displaying the detour measurement route in a different color from the measurement routes other than the detour measurement route, displaying the detour measurement route with a different line width from the measurement routes other than the detour measurement route, and displaying the detour measurement route with a different line type from the measurement routes other than the detour measurement route.
[0095] Fig. 21 is a diagram showing how a measurement path is displayed on the display unit of the measurement path generating device according to the first embodiment. Specifically, Fig. 21 shows a shape model M1, a measurement target curve C11, and a measurement path TP1 for measuring the measurement target curve C11, all displayed on the display unit 107 of the measurement path generating device 10. Fig. 21 shows how the measurement path TP1 is displayed, including measurement position P1 to measurement position P14, measurement position P24, and measurement position P25, as well as lines connecting the respective measurement positions, and measurement directions V1 to V14, V24, and V25 at the respective measurement positions.
[0096] 21 also shows how the path connecting measurement position P14 and measurement position P24, which is the measurement path between reference point Q15 stored as the non-measurable reference point and reference point Q23, is displayed with a dashed line to distinguish it from the measurement path. Furthermore, FIG. 21 also shows how the area on the measurement target curve C11 where reference points Q15 to Q23 stored as the non-measurable reference points exist is displayed with a dashed line to distinguish it from the measurement path.
[0097] Next, the measurement program output unit 109 generates and outputs a measurement program based on the measurement path generated by the measurement path generation unit 105. At this time, the measurement program output unit 109 stores the configuration of the drive axes of the machine tool 20 in advance, and generates and outputs a measurement program that describes commands for moving the measurement sensor 21 and the measurement object 30 relatively along the measurement path based on that configuration.
[0098] The measurement program output unit 109 generates a measurement program that describes commands for relatively moving the measurement sensor 21 and the measurement object 30 along the measurement path generated by the measurement path generation unit 105, based on the configuration of the drive axes of the machine tool 20. Furthermore, when the measurement path generation unit 105 determines an unmeasurable area on the measurement target curve where a measurement path cannot be generated, the measurement program output unit 109 generates a measurement program that describes commands corresponding to the measurement path in the unmeasurable area, distinguishing them from other commands.
[0099] The measurement program is written in a file in a predetermined format using character strings such as G-code or macro statements. Here, G-code refers to a command code for, for example, performing positioning, linear interpolation, circular interpolation, and plane specification using numerical control. In this case, if the measurement path generating unit 105 determines an unmeasurable area on the measurement target curve where a measurement path cannot be generated, commands corresponding to the measurement path included in the unmeasurable area may be written separately from the area where the measurement path was generated. One method for writing commands separately is to distinguish the section of the measurement path included in the unmeasurable area by writing a special G-code or M-code, for example.
[0100] Furthermore, the measurement program output unit 109 may acquire measurement environment information from the measurement environment information storage unit 106, calculate conditions such as the feed speed for moving the measurement sensor 21 based on the measurement environment information, and write the calculated conditions into the measurement program. For example, based on the measurement cycle of the measurement sensor, which is the measurement environment information, the relative movement speed between the measurement sensor and the measurement object 30 may be determined in accordance with the curvature of the measurement target curve so that the intervals at which measurements are taken on the measurement target curve for each measurement cycle are constant. Here, measuring on the measurement target curve can be rephrased as, for example, measuring along the measurement target curve, or as measuring by tracing reference points located on the measurement target curve. Furthermore, making the intervals at which measurements are taken on the measurement target curve for each measurement cycle constant means that the intervals between positions on the measurement target curve measured for each measurement cycle are constant.
[0101] By executing step S150, a series of measurement path processes in the measurement path generating device 10 ends.
[0102] The measurement path generating device 10 according to the first embodiment described above has the advantage of being able to perform measurement in a measurement direction other than perpendicular to the curved surface of the measurement object 30 and to generate a measurement path that can reduce the time required to measure the measurement object 30. Furthermore, the measurement path generating device can generate a measurement path that avoids interference between the curved surface of the measurement object 30 and the measurement sensor 21 and appropriately measures the measurement object 30, thereby producing the advantage of being able to generate a measurement path that reduces the effort required for an operator to correct the measurement path.
[0103] The measurement target curve generation unit 102 generates a plane and can easily specify a measurement target curve by using the intersection line between the measurement target surface of the measurement model and the plane, thereby reducing the effort required to generate the measurement target curve.
[0104] The measurement path generation unit 105 determines unmeasurable areas on the measurement target curve where a measurement path cannot be generated, and generates a detour measurement path that avoids the unmeasurable areas, thereby generating a measurement path that can measure only the measurable areas of the measurement object 30, thereby reducing the effort required for the operator to modify the measurement path.
[0105] The display unit 107 displays the measurement target curve in association with the measurement route along which the measurement is made, thereby enabling the worker to easily understand the correspondence between the measurement target curve and the measurement route, thereby reducing the effort required for the worker to check the measurement route.
[0106] In the display unit 107, when there is an unmeasurable area on the measurement target curve where a measurement path cannot be generated, the unmeasurable area is displayed separately from the measurement path, thereby reducing the effort required by the operator to confirm whether or not measurements can be performed appropriately using the measurement path.
[0107] The measurement program output unit 109 outputs a measurement program that describes commands to move the measurement sensor 21 and the object to be measured 30 relative to each other along the measurement path based on the configuration of the drive axis of the machine tool 20, thereby reducing the effort required for the operator to modify the measurement program to correspond to the configuration of the drive axis of the machine tool 20.
[0108] When the measurement path generating unit 105 determines a non-measurable area where a measurement path cannot be generated on the measurement target curve, the measurement program output unit 109 outputs a measurement program in which commands corresponding to the measurement path in the non-measurable area are written separately from others. This has the effect of enabling the machine tool 20 to perform on-machine measurement using the measurement program, thereby enabling appropriate measurement to be performed only in areas of the measurement object 30 where measurement can be performed. It also has the effect of reducing the operator's effort in modifying the measurement program for areas where measurement cannot be performed.
[0109] The measurement path generation unit 105 uses information that the type of measurement sensor 21 is an optical ranging sensor as measurement environment information, thereby easily generating a measurement path that can appropriately measure the measurement object 30 when the sensor is a non-contact optical ranging sensor, thereby reducing the effort required to create a measurement program.
[0110] The measurement path generation unit 105 uses information that the measurement sensor 21 is an optical ranging sensor that uses a measurement method to measure the distance to the measurement object 30 by a frequency scanning interference method as measurement environment information, thereby generating a measurement path that allows the measurement object 30 to be measured appropriately when on-machine measurement is performed using the measurement sensor 21, thereby reducing the effort required to create a measurement program.
[0111] The measurement path generation unit 105 determines the measurable distance range and measurable angle range based on the measurement environment information, thereby determining the measurable distance range and measurable angle range in accordance with the measurement environment, and generating a measurement path that can appropriately measure the measurement object 30 in accordance with the conditions of the measurement sensor or the measurement object 30, thereby reducing the effort required to modify the measurement path.
[0112] The measurement path generation unit 105 uses at least one of the following as measurement environment information: the type of measurement sensor 21, the measurement method of the measurement sensor 21, the wavelength of the output light of the measurement sensor 21, the focal length of the measurement sensor 21, the measurement period of the measurement sensor 21, the material of the measurement object 30, and the surface roughness of the measurement object 30, thereby generating a measurement path that can measure the measurement object 30 with high accuracy in accordance with this measurement environment information, thereby reducing the effort required to modify the measurement path.
[0113] The measurement path generation unit 105 determines the relative movement speed between the measurement sensor 21 and the measurement target object 30 according to the measurement period of the measurement sensor 21, which is part of the measurement environment information, so that the intervals between positions on the measurement target curve measured at each measurement period are constant, and can include the movement speed information in the measurement path. This provides the effect that the measurement path generation unit 105 can measure the measurement target curve at appropriate intervals and generate a measurement path that can obtain high-precision measurement results with little variation in measurement intervals. Then, the measurement program output unit 109 can generate a measurement program in which the movement speed is described, based on the measurement path including the movement speed information.
[0114] The measurement system 1 according to the above-described embodiment 1 determines the measurable distance range and measurable angle range based on environmental information relating to the machine tool 20, the measurement sensor 21 and the object to be measured 30, thereby enabling measurements to be performed along a measurement path that is optimal for the measurement environment, thereby achieving the effect of obtaining appropriate measurement results without any hassle.
[0115] Therefore, the measurement path generating device 10 and measurement system 1 according to the first embodiment have the effect of being able to generate a measurement path that enables highly accurate on-machine measurement of the measurement object 30 while reducing the time and effort required to measure the measurement object 30.
[0116] Second Embodiment In the second embodiment, other functions of the measurement path generating device 10 according to the first embodiment will be described. In the second embodiment, the measurement path generating device 10 also basically operates according to the flowchart shown in FIG. 4 described above. Below, differences in the operation of the measurement path generating device 10 from the first embodiment will be described. Other operations of the measurement path generating device 10 are the same as those in the first embodiment, and therefore will not be described again.
[0117] In the second embodiment, in step S130, the reference point calculation unit 104 calculates the coordinate position of the reference point on the measurement target curve and the normal direction of the measurement target curved surface at the reference point. At this time, if the tangent is discontinuous on the measurement target curve, such as at a corner, the reference point calculation unit 104 calculates two reference points at that position and the normal directions at each of the reference points.
[0118] Fig. 22 is a perspective view showing a state in which a measurement target curve is generated on a measurement target surface of a shape model used by the measurement path generating device in embodiment 2. Fig. 22 shows a state in which a measurement target curve C21 is generated on a curved surface S21 generated on the shape model M2, and on a curved surface S22 generated on the shape model M2. Here, the tangent to the measurement target curve C21 is discontinuous at the boundary between the curved surface S21 and the curved surface S22.
[0119] 23 is a diagram showing how a reference point and a normal direction to the measurement target surface at the reference point are calculated on a measurement target curve of a shape model used by the measurement path generating device in embodiment 2. Figure 23 shows how a reference point Q34 is calculated from a reference point Q31 on a measurement target curve C21, and how a normal direction N34 is calculated from a normal direction N31 to the measurement target curved surface at each reference point. Here, two reference points, reference point Q32 and reference point Q33, are calculated at a position where the tangent to the measurement target curve C21 is discontinuous, and the normal direction N32 calculated from the measurement target curved surface S21 is shown at reference point Q32, and the normal direction N33 calculated from the measurement target curved surface S22 is shown at reference point Q33.
[0120] When shape model M2 is cut by a plane passing through measurement target curve C21, the tangent to measurement target curve C21 becomes discontinuous at the corner, which is the intersection of the line segment from reference point Q31 to reference point Q32 and the line segment from reference point line segment Q33 to reference point Q34. In other words, the differential coefficient of the line segment from reference point Q31 to reference point Q32 and the differential coefficient of the line segment from reference point line segment Q33 to reference point Q34 are different at corners Q32 and Q33, which are the intersections of the two line segments.
[0121] In the second embodiment, in step S140, when the measurable conditions are satisfied and the normal directions of adjacent reference points change beyond a predetermined angle range, the measurement path generation unit 105 generates a measurement path that is divided into multiple measurement directions for measurement. Here, a measurement path that is divided into multiple measurement directions for measurement is a measurement path that is measured by dividing a portion of the measurement path that includes two reference points into multiple sections and setting a different measurement direction for each divided section.
[0122] The normal directions of adjacent reference points changing beyond a predetermined angle range can be expressed as the angle between the normal directions of two adjacent reference points changing beyond a predetermined angle range. The angle between the normal directions of two adjacent reference points is the angle between the normal directions of the two reference points in a plane that includes the normal directions of the two adjacent reference points.
[0123] The predetermined angle range is set so as to suppress an increase in measurement error caused by, for example, a sudden acceleration or deceleration of the rotation axis of the machine tool 20 due to a sudden change in the measurement direction of the measurement sensor 21, or a large fluctuation in the intensity of reflected light due to a sudden change in the normal direction of the curved surface during measurement by the optical distance measuring sensor. In other words, the predetermined angle range may be specifically determined based on the specifications of the measurement sensor 21 or the machine tool 20.
[0124] The measurement path generating unit 105 first determines a measurable area in the same manner as in embodiment 1. Next, the measurement path generating unit 105 calculates the measurement position and measurement direction of the measurement sensor for measuring each reference point in the same manner as in embodiment 1. Simply put, the measurement path generating unit 105 may determine the measurement position and measurement direction for the measurable area determined for each reference point in the same manner as in embodiment 1, so that the measurement position and measurement direction are in the center of the measurable distance range and opposite to the normal direction of the reference point.
[0125] Here, the measurement path generating unit 105 checks the amount of change in the normal direction of the measurement target curved surface at adjacent reference points at a position where the tangent to the measurement target curve is discontinuous. If the amount of change in the normal direction of the measurement target curved surface at adjacent reference points exceeds a predetermined angle range, the measurement path generating unit 105 calculates a measurement direction that can pass through the two measurable areas without changing the measurement direction of the measurement sensor 21, based on the two measurable areas corresponding to the two reference points. Specifically, the common part of the measurable angle ranges for the two measurable areas is found, and the measurement direction within the angle range of this common part is used. The measurement direction calculated here is then used as the measurement direction for measuring the reference point.
[0126] Then, the measurement path generating unit 105 sequentially connects the calculated measurement positions to generate a measurement path in which the measurement direction calculated at each measurement position is the measurement direction of the measurement sensor 21 .
[0127] A specific example in which the measurement path generating device calculates the measurement position and measurement direction of the measurement sensor in the second embodiment will be described below.
[0128] Fig. 24 is a diagram showing an example of a measurable area determined based on a measurable distance range and a measurable angle range in a shape model used by the measurement path generating device in embodiment 2. In Fig. 24, the measurable distance range Rd2 and the measurable angle range Ra2 are set as predetermined values, and are shown as measurable areas A31 to A34, which are areas in which the measurement sensor 21 can measure from each reference point Q31 to reference point Q34, based on the measurable distance range Rd2 and the measurable angle range Ra2.
[0129] In FIG. 24, the measurable distance range Rd2 and the measurable angle range Ra2 are shown two-dimensionally, but the measurable distance range Rd2 and the measurable angle range Ra2 can be set three-dimensionally.
[0130] Here, it is assumed that the amount of change in the normal direction between normal directions V32 and V33, which are the normal directions to the curved surface to be measured at each reference point, exceeds a predetermined angle range at two reference points Q32 and Q33 calculated at positions where the tangent to the measurement target curve C21 is discontinuous. In other words, the normal directions between two adjacent reference points, reference point Q32 and reference point Q33, change beyond a predetermined angle range.
[0131] 25 is a first diagram showing how the measurement path generating device calculates the measurement position and measurement direction of the measurement sensor in embodiment 2. Fig. 25 shows how the measurement path generating unit 105 calculates the measurement positions of the measurement sensor 21 from measurement position P31 to measurement position P34, and the measurement directions of the measurement sensor 21 from measurement direction V31 to measurement direction V34, respectively, for reference point Q31 to reference point Q34, so that the measurement directions are in the center of the measurable distance range and opposite to the normal direction of the reference points.
[0132] Fig. 26 is a second diagram showing how the measurement path generating device calculates the measurement position and measurement direction of the measurement sensor in embodiment 2. Fig. 26 shows how the measurement path generating unit 105 calculates the measurement position and measurement direction of the measurement sensor 21 for measuring a reference point where the amount of change in the normal direction of the curved surface to be measured exceeds a predetermined angle range.
[0133] The measurement path generating unit 105 determines a common angular range of the measurable angle ranges of the measurable areas A32 and A33 for the measurable areas A32 and A33 corresponding to reference points Q32 and Q33, which are reference points at which the amount of change in the normal direction of the curved surface to be measured exceeds a predetermined angle range. The measurement path generating unit 105 then calculates a new measurement direction within this common angular range. Figure 26 shows how the measurement direction corresponding to measurement position P32 has been corrected to measurement direction V32', and how the measurement direction corresponding to measurement position P33 has been corrected to measurement direction V33'. In Figures 25 and 26, the common angular range of the measurable angle ranges of the measurable areas A32 and A33 is indicated by a medium-thick line.
[0134] Fig. 27 is a diagram showing how the measurement path generating device generates a measurement path in embodiment 2. Fig. 27 shows how measurement path TP2 is generated by sequentially connecting calculated measurement position P31 to measurement position P34, with the measurement directions at each measurement position being measurement direction V31, measurement direction V32', measurement direction V33', and measurement direction V34, respectively.
[0135] The above is an example of the operation of the measurement path generating device 10 in the second embodiment.
[0136] In the second embodiment, when the normal direction changes beyond a predetermined angle range, the measurement path generating unit 105 of the measurement path generating device 10 generates a measurement path that is divided into a plurality of measurement directions for measurement. As a result, by performing on-machine measurement of the measurement object 30 on the machine tool 20 using the measurement path, when measuring a corner of the measurement object 30, it is possible to avoid measurement paths that focus on measuring the corner, and an effect is achieved in that the time required to measure the measurement object 30 can be shortened.
[0137] Furthermore, this measurement path has the effect of enabling highly accurate measurement of corners by avoiding measurement paths that concentrate on measuring corners. In other words, when measuring a corner that forms the boundary between two measurement target surfaces, the measurement path generation unit 105 does not generate a measurement path that concentrates on measuring the corners. As a result, by using the measurement path generated by the measurement path generation unit 105, the measurement target surface does not change frequently during measurement, making it easy to check the measurement results of the corners after measurement.
[0138] Furthermore, this measurement route can prevent a large amount of measurement results from measuring corners from being output in a concentrated manner, thereby reducing the effort required for workers to check the measurement results after measurement.
[0139] Third Embodiment In the third embodiment, other functions of the measurement path generating device 10 according to the first embodiment will be described. In the third embodiment, the measurement path generating device 10 also basically operates according to the flowchart shown in FIG. 4 described above. Below, differences in the operation of the measurement path generating device 10 from the first embodiment will be described. Other operations of the measurement path generating device 10 are the same as those in the first embodiment, and therefore will not be described again.
[0140] Fig. 28 is a perspective view showing a state in which a measurement target curve is generated on a measurement target surface S31 of a shape model used by the measurement path generating device in embodiment 3. Fig. 28 shows a state in which a measurement target curve C31 is generated on a measurement target surface S31 generated on a shape model M3.
[0141] 29 is a diagram showing how a reference point and a normal direction of the measurement target curved surface at the reference point are calculated on a measurement target curve of a shape model used by the measurement path generating device in embodiment 3. Fig. 29 shows how a reference point Q51 is calculated from a reference point Q41 on a measurement target curve C31, and how a normal direction N51 is calculated from a normal direction N41 on the measurement target curved surface at each reference point.
[0142] In the third embodiment, in step S140, measurement path generating unit 105 generates a measurement path that satisfies the measurable conditions and minimizes the amount of movement of each drive axis of machine tool 20. The minimum amount of movement of each drive axis of machine tool 20 means that, when measurement sensor 21 attached to a drive axis of machine tool 20 is moved along the measurement path to measure object 30, the amount of movement from the immediately preceding position of the drive axis to the next position in continuous or intermittent movement of the drive axis is minimized.
[0143] The measurement path generating unit 105 first determines a measurable area in the same manner as in embodiment 1. Next, the measurement path generating unit 105 calculates the measurement position and measurement direction of the measurement sensor 21 for measuring each reference point in the same manner as in embodiment 1. Simply put, for the measurable area determined for each reference point, the measurement position can be determined so that it is in the center of the measurable distance range and the measurement direction is opposite to the normal direction of the reference point.
[0144] Here, to minimize the amount of movement of each drive axis of machine tool 20, it is sufficient to determine a combination of measurement positions and measurement directions that minimizes the change in the linear and rotational axes of machine tool 20 within the measurable area relative to each reference point. Specifically, this can be achieved by moving the measurement position of measurement sensor 21 along a certain plane and determining a combination that minimizes the change in the measurement direction of measurement sensor 21 at this time. That is, in the third embodiment, in step S140, measurement path generation unit 105 generates a measurement path that minimizes the change in the linear and rotational axes on which measurement sensor 21 is attached and along which measurement sensor 21 moves in machine tool 20.
[0145] For example, to minimize the change in the measurement direction of the measurement sensor 21, it is possible to determine the common measurement direction by sequentially finding common parts of the measurable angle range and repeatedly adopting that measurement direction as long as it is possible to adopt a common measurement direction. Alternatively, the measurement position and measurement direction of the measurement sensor 21 may be changed little by little to list and store all possible measurement positions and measurement directions in each measurable area, and the combinations of measurement positions and measurement directions of the measurement sensor 21 for all measurable areas may be evaluated to determine the combination of measurement positions and measurement directions that minimizes the change in the translational axes and rotational axes of the machine tool 20.
[0146] Then, the measurement path generating unit 105 sequentially connects the calculated measurement positions to generate a measurement path in which the measurement direction calculated at each measurement position is the measurement direction of the measurement sensor 21 .
[0147] A specific example in which the measurement path generating device calculates the measurement position and measurement direction of the measurement sensor in the third embodiment will be described below.
[0148] Fig. 30 is a diagram showing an example of a measurable area determined based on a measurable distance range and a measurable angle range in a shape model used in a measurement path generating device in embodiment 3. In Fig. 30, a measurable distance range Rd3 and a measurable angle range Ra3 are set as predetermined values, and are shown as measurable areas A41 to A51, which are areas in which the measurement sensor 21 can measure from each reference point Q41 to reference point Q51, based on the measurable distance range Rd3 and the measurable angle range Ra3.
[0149] FIG. 31 is a diagram showing a state in which a plane R1, which is a plane along which the measurement position can be moved within all measurable areas, has been determined in a shape model used in the measurement path generating device in embodiment 3.
[0150] Fig. 32 is a diagram showing how the measurement path generating device calculates the measurement position and measurement direction of the measurement sensor in embodiment 3. Fig. 32 shows how the measurement path generating unit 105 generates the measurement positions of the measurement sensor 21 as measurement positions P41 to P51 for reference points Q41 to Q51 so that they are on the determined plane R1, and changes the measurement direction of the measurement sensor 21 from measurement direction V41 to measurement direction V51 so that the amount of change in the measurement direction of the measurement sensor 21 is minimized.
[0151] Here, a method for determining measurement direction V51 from measurement direction V41 involves determining common measurement directions that can be taken between measurable area A41 and measurable area A43, measurable area A44 and measurable area A47, and measurable area A48 and measurable area A51 among the measurable areas A41 and A51 corresponding to each reference point Q41 and Q51, and then determining the combination of measurement directions that results in the least amount of change.
[0152] Fig. 33 is a diagram showing how the measurement path generating device generates a measurement path in embodiment 3. Fig. 33 shows how measurement path TP3 is generated by sequentially connecting calculated measurement position P41 to measurement position P51, with the measurement directions at each measurement position being measurement direction V41 to measurement direction V51, respectively.
[0153] The above is an example of the operation of the measurement path generating device 10 in the third embodiment.
[0154] In the third embodiment, the measurement path generating unit 105 of the measurement path generating device 10 generates a measurement path that minimizes the amount of movement of each drive axis of the machine tool 20. That is, the measurement path generating unit 105 can reduce the time required for measurement by selecting, from a plurality of possible measurement paths, the one that minimizes the amount of movement of each drive axis of the machine tool 20. This produces the effect of being able to reduce the time required for measurement of the measurement object 30 by performing on-machine measurement of the measurement object 30 on the machine tool 20 using the measurement path.
[0155] Next, the hardware configuration of each of the control units 80 according to the first to third embodiments will be described. The control units 80 according to the first to third embodiments correspond to the path processing unit 12 and the control unit 15 in the measurement path generating device 10, respectively. Each function of the control unit 80 according to the first to third embodiments is realized by a processing circuit. The processing circuit may be dedicated hardware, or may be a processing device that executes a program stored in a storage device.
[0156] When the processing circuit is dedicated hardware, the processing circuit may be a single circuit, a composite circuit, a programmed processor, a parallel programmed processor, an application specific integrated circuit, a field programmable gate array, or a combination thereof. Figure 34 is a diagram showing a configuration in which the functions of the control unit according to the first to third embodiments are realized by hardware. The processing circuit 81 incorporates a logic circuit 81a that realizes the functions of the control unit 80.
[0157] When the processing circuit 81 is a processing device, the functions of the control unit 80 are realized by software, firmware, or a combination of software and firmware.
[0158] FIG. 35 is a diagram illustrating a configuration in which the functions of the control unit according to the first to third embodiments are implemented by software. The processing circuit 81 includes a processor 811 that executes a program 81b, a random access memory 812 that the processor 811 uses as a work area, and a storage device 813 that stores the program 81b. The processor 811 deploys the program 81b stored in the storage device 813 on the random access memory 812 and executes it, thereby realizing the functions of the control unit 80. The software or firmware is written in a programming language and stored in the storage device 813. The processor 811 may be, but is not limited to, a central processing unit. The storage device 813 may be a semiconductor memory such as a random access memory (RAM), a read-only memory (ROM), a flash memory, an erasable programmable read-only memory (EPROM), or an electrically erasable programmable read-only memory (EEPROM). The semiconductor memory may be either a non-volatile memory or a volatile memory. In addition to semiconductor memory, a magnetic disk, a flexible disk, an optical disk, a compact disk, a mini disk, or a DVD (Digital Versatile Disc) can be used as the storage device 813. The processor 811 may output data such as calculation results to the storage device 813 for storage, or may store the data in an auxiliary storage device (not shown) via the random access memory 812. By integrating the processor 811, the random access memory 812, and the storage device 813 on a single chip, the functions of the control unit 80 can be realized by a microcomputer.
[0159] The processing circuitry 81 reads and executes the program 81b stored in the storage device 813 to realize the functions of the control unit 80. It can also be said that the program 81b causes the computer to execute the procedures and methods for realizing the functions of the control unit 80.
[0160] In the processing circuit 81 for realizing each of the path processing unit 12 and the control unit 15 in the measurement path generating device 10, the program 81b includes a measurement path generating program for generating a measurement path.
[0161] The processing circuit 81 may be configured so that some of the functions of the control unit 80 are realized by dedicated hardware, and some of the functions of the control unit 80 are realized by software or firmware.
[0162] In this way, the processing circuitry 81 can realize each of the above-described functions by hardware, software, firmware, or a combination of these.
[0163] The configurations shown in the above embodiments are merely examples, and may be combined with other known technologies, or different embodiments may be combined with each other. It is also possible to omit or modify parts of the configurations as long as they do not deviate from the gist of the invention.
[0164] 1 Measurement system, 10 Measurement path generation device, 11 Operation unit, 12 Path processing unit, 13 Memory unit, 14 Communication unit, 15 Control unit, 20 Machine tool, 21 Measurement sensor, 22 Numerical control device, 23 Servo control unit, 30 Measurement object, 101 Shape model memory unit, 102 Measurement target curve generation unit, 103 Measurement target curved surface designation unit, 104 Reference point calculation unit, 105 Measurement path generation unit, 106 Measurement environment information memory unit, 107 Display unit, 108 Interference determination unit, 109 Measurement program output unit, A1 to A25, A31 to A34, A41 to A51 Measurable area, C11, C12, C13, C21, C31 Measurement target curve, M1, M2, M3 Shape model, N1 to N25, N31 to N34, N41 to N51 Normal direction, P1 to P25, P31 to P, P41 to P51, P2', P3' Measurement position, PL1, PL2, PL3 Plane, Q1 to Q25, Q31 to Q34, Q41 to Q51 Reference point, R1 Plane, Ra1, Ra2, Ra3 Measurable angle range, Rd1, Rd2, Rd3 Measurable distance range, S1 to S15, S21, S22, S31 Curved surface, TP1, TP2, TP3 Measurement path, V1 to V25, V31 to V34, V41 to V51, V2', V3' Measurement direction.
Claims
1. A measurement path generation device that generates a measurement path, which is a relative movement path between a measurement sensor and a measurement object, for measuring the measurement object with the measurement sensor on a machine tool, comprising: a shape model storage unit that stores a shape model of the measurement object; a measurement target curve generation unit that generates a measurement target curve that is a curve on the measurement object surface of the shape model; a reference point calculation unit that calculates a reference point that is a point on the measurement target curve and a normal direction of the measurement object curve at the reference point; and a measurement path generation unit that generates the measurement path, which is the movement path for measuring the measurement target curve, based on the reference point, the normal direction, a measurable distance range that is the range of measurable distances between the measurement sensor and the measurement target curve, and a measurable angle range that is the range of measurable relative angles between the measurement direction of the measurement sensor and the normal direction of the measurement object surface.
2. The measurement path generating device according to claim 1, wherein the measurement target curve generating section generates a plane, and generates an intersection line between the plane and the curved surface to be measured as the measurement target curve.
3. The measurement path generating device according to claim 1 or 2, wherein the measurement path generating unit determines a non-measurable area on the measurement target curve where the measurement path cannot be generated, and generates a measurement path including a detour measurement path that detours around the non-measurable area.
4. A measurement path generating device as described in any one of claims 1 to 3, characterized in that, when the normal direction of two adjacent reference points changes beyond a predetermined angle range, the measurement path generating unit divides a portion of the measurement path that includes the two reference points into a plurality of sections, and generates the measurement path by setting a different measurement direction for each divided section.
5. A measurement path generating device as described in any one of claims 1 to 4, characterized in that the measurement path generating unit generates a measurement path that minimizes changes in the linear and rotational axes along which the measurement sensor is attached and moves in the machine tool.
6. A measurement path generating device as described in any one of claims 1 to 5, further comprising a display unit, wherein the measurement target curve and a measurement path for measuring on the measurement target curve are displayed in association with each other on the display unit.
7. A measurement path generating device as described in any one of claims 1 to 6, comprising a display unit, and when the measurement path generating unit determines an unmeasurable area on the measurement target curve where the measurement path cannot be generated, the measurement path generating unit displays the unmeasurable area on the display unit in distinction from the area where the measurement path is generated.
8. A measurement path generating device as described in any one of claims 1 to 7, further comprising a measurement program output unit which outputs a measurement program describing a configuration of a drive axis to which the measurement sensor is attached in the machine tool and which moves the measurement sensor, and commands to move the measurement sensor relative to the object to be measured based on the measurement path.
9. The measurement path generating device described in claim 8, characterized in that, when the measurement path generating unit determines an unmeasurable area on the measurement target curve where the measurement path cannot be generated, the measurement program output unit outputs a measurement program in which commands corresponding to the measurement path included in the unmeasurable area are written in a manner distinguished from the area in which the measurement path was generated.
10. A measurement path generating device according to any one of claims 1 to 9, characterized in that the measurement sensor is an optical distance measuring sensor.
11. The measurement path generating device according to claim 10, wherein the optical distance measuring sensor measures the distance to the measurement object by a frequency scanning interference method.
12. A measurement path generating device as described in any one of claims 1 to 9, further comprising a measurement environment information storage unit that stores measurement environment information, which is information regarding the measurement environment when the measurement object is measured by the measurement sensor, and the measurement path generating unit determines the measurable distance range and the measurable angle range based on the measurement environment information.
13. The measurement path generating device of claim 12, characterized in that the measurement environment information includes at least one of the type of the measurement sensor, the measurement method of the measurement sensor, the wavelength of the output light of the measurement sensor, the focal length of the measurement sensor, the measurement period of the measurement sensor, the material of the measurement object, and the surface roughness of the measurement object.
14. The measurement path generating device of claim 13, characterized in that the measurement path generating unit determines a relative moving speed between the measurement sensor and the measurement object in accordance with the measurement period of the measurement sensor among the measurement environment information, so that the interval between positions on the measurement target curve measured for each measurement period is constant.
15. A measurement path generation method for generating a measurement path, which is a relative movement path between a measurement sensor and a measurement object for measuring the measurement object by the measurement sensor on a machine tool, comprising: a shape model storing step for storing a shape model of the measurement object; a measurement target curve generating step for generating a measurement target curve, which is a curve on the measurement object surface of the shape model; a reference point calculating step for determining a reference point, which is a point on the measurement target curve, and a normal direction of the measurement object curved surface at the reference point; and a measurement path generating step for generating the measurement path, which is the movement path for measuring the measurement target curve, based on the reference point, the normal direction, a measurable distance range, which is the range of measurable distances between the measurement sensor and the measurement target curve, and a measurable angle range, which is the range of measurable relative angles between the measurement direction of the measurement sensor and the normal direction of the measurement object curved surface.
16. A measurement system comprising: a machine tool; a measurement sensor that measures a measurement object placed on the machine tool; a shape model storage unit that stores a shape model of the measurement object; a measurement target curve generation unit that generates a measurement target curve that is a curve on the measurement target surface of the shape model; a reference point calculation unit that calculates a reference point that is a point on the measurement target curve and a normal direction of the measurement target surface at the reference point; and a measurement path generation unit that generates a measurement path that is a movement path for measuring on the measurement target curve, the measurement path being a relative movement path between the measurement sensor and the measurement object, based on the reference point, the normal direction, a measurable distance range that is the range of measurable distances between the measurement sensor and the measurement target curve, and a measurable angle range that is the range of measurable relative angles between the measurement direction of the measurement sensor and the normal direction of the measurement target surface.
Citation Information
Patent Citations
Measuring instrument for three-dimensional composite free curved surface shape
JP1989221609A
Teaching method for shape measurement procedure
JP1991012511A
Shape measuring method
JP1991021814A
Off-line teaching method of noncontact three-dimensional shape measuring device
JP2004163347A
Program generation device for noncontact measuring machine
JP2006201111A
