WO2012057280A1 - 工具寸法の測定方法及び測定装置、並びに工作機械 - Google Patents

工具寸法の測定方法及び測定装置、並びに工作機械 Download PDF

Info

Publication number
WO2012057280A1
WO2012057280A1 PCT/JP2011/074847 JP2011074847W WO2012057280A1 WO 2012057280 A1 WO2012057280 A1 WO 2012057280A1 JP 2011074847 W JP2011074847 W JP 2011074847W WO 2012057280 A1 WO2012057280 A1 WO 2012057280A1
Authority
WO
WIPO (PCT)
Prior art keywords
tool
image data
axis
dimension
coordinate system
Prior art date
Application number
PCT/JP2011/074847
Other languages
English (en)
French (fr)
Inventor
倉橋 康浩
Original Assignee
株式会社牧野フライス製作所
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 株式会社牧野フライス製作所 filed Critical 株式会社牧野フライス製作所
Priority to EP11836413.2A priority Critical patent/EP2634526B1/en
Priority to CN201180051789.8A priority patent/CN103189712B/zh
Priority to US13/880,015 priority patent/US9329029B2/en
Publication of WO2012057280A1 publication Critical patent/WO2012057280A1/ja

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/24Measuring arrangements characterised by the use of optical techniques for measuring contours or curvatures
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B23MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
    • B23QDETAILS, COMPONENTS, OR ACCESSORIES FOR MACHINE TOOLS, e.g. ARRANGEMENTS FOR COPYING OR CONTROLLING; MACHINE TOOLS IN GENERAL CHARACTERISED BY THE CONSTRUCTION OF PARTICULAR DETAILS OR COMPONENTS; COMBINATIONS OR ASSOCIATIONS OF METAL-WORKING MACHINES, NOT DIRECTED TO A PARTICULAR RESULT
    • B23Q17/00Arrangements for observing, indicating or measuring on machine tools
    • B23Q17/24Arrangements for observing, indicating or measuring on machine tools using optics or electromagnetic waves
    • B23Q17/2409Arrangements for indirect observation of the working space using image recording means, e.g. a camera
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B23MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
    • B23QDETAILS, COMPONENTS, OR ACCESSORIES FOR MACHINE TOOLS, e.g. ARRANGEMENTS FOR COPYING OR CONTROLLING; MACHINE TOOLS IN GENERAL CHARACTERISED BY THE CONSTRUCTION OF PARTICULAR DETAILS OR COMPONENTS; COMBINATIONS OR ASSOCIATIONS OF METAL-WORKING MACHINES, NOT DIRECTED TO A PARTICULAR RESULT
    • B23Q17/00Arrangements for observing, indicating or measuring on machine tools
    • B23Q17/09Arrangements for observing, indicating or measuring on machine tools for indicating or measuring cutting pressure or for determining cutting-tool condition, e.g. cutting ability, load on tool
    • B23Q17/0904Arrangements for observing, indicating or measuring on machine tools for indicating or measuring cutting pressure or for determining cutting-tool condition, e.g. cutting ability, load on tool before or after machining
    • B23Q17/0914Arrangements for measuring or adjusting cutting-tool geometry machine tools
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B23MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
    • B23QDETAILS, COMPONENTS, OR ACCESSORIES FOR MACHINE TOOLS, e.g. ARRANGEMENTS FOR COPYING OR CONTROLLING; MACHINE TOOLS IN GENERAL CHARACTERISED BY THE CONSTRUCTION OF PARTICULAR DETAILS OR COMPONENTS; COMBINATIONS OR ASSOCIATIONS OF METAL-WORKING MACHINES, NOT DIRECTED TO A PARTICULAR RESULT
    • B23Q17/00Arrangements for observing, indicating or measuring on machine tools
    • B23Q17/22Arrangements for observing, indicating or measuring on machine tools for indicating or measuring existing or desired position of tool or work
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B23MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
    • B23QDETAILS, COMPONENTS, OR ACCESSORIES FOR MACHINE TOOLS, e.g. ARRANGEMENTS FOR COPYING OR CONTROLLING; MACHINE TOOLS IN GENERAL CHARACTERISED BY THE CONSTRUCTION OF PARTICULAR DETAILS OR COMPONENTS; COMBINATIONS OR ASSOCIATIONS OF METAL-WORKING MACHINES, NOT DIRECTED TO A PARTICULAR RESULT
    • B23Q17/00Arrangements for observing, indicating or measuring on machine tools
    • B23Q17/24Arrangements for observing, indicating or measuring on machine tools using optics or electromagnetic waves
    • B23Q17/248Arrangements for observing, indicating or measuring on machine tools using optics or electromagnetic waves using special electromagnetic means or methods
    • B23Q17/249Arrangements for observing, indicating or measuring on machine tools using optics or electromagnetic waves using special electromagnetic means or methods using image analysis, e.g. for radar, infrared or array camera images
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/02Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness
    • G01B11/04Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness specially adapted for measuring length or width of objects while moving
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/24Measuring arrangements characterised by the use of optical techniques for measuring contours or curvatures
    • G01B11/2433Measuring arrangements characterised by the use of optical techniques for measuring contours or curvatures for measuring outlines by shadow casting
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B23MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
    • B23QDETAILS, COMPONENTS, OR ACCESSORIES FOR MACHINE TOOLS, e.g. ARRANGEMENTS FOR COPYING OR CONTROLLING; MACHINE TOOLS IN GENERAL CHARACTERISED BY THE CONSTRUCTION OF PARTICULAR DETAILS OR COMPONENTS; COMBINATIONS OR ASSOCIATIONS OF METAL-WORKING MACHINES, NOT DIRECTED TO A PARTICULAR RESULT
    • B23Q17/00Arrangements for observing, indicating or measuring on machine tools
    • B23Q2017/001Measurement or correction of run-out or eccentricity

Definitions

  • the present invention relates to a method and apparatus for measuring a tool size such as a tool tip position, tool length, tool diameter, tool tip shape, tool runout, and the like of a tool used in a CNC (computer numerical control) machine tool, and a machine tool. .
  • a tool size such as a tool tip position, tool length, tool diameter, tool tip shape, tool runout, and the like of a tool used in a CNC (computer numerical control) machine tool, and a machine tool.
  • a tool such as a drill or an end mill mounted on the spindle contacts the workpiece while rotating.
  • the tool is fed in a predetermined feed direction in the NC machine tool.
  • it is necessary to specify the center axis of the tool that determines the rotation center of the tool and the tool posture, and to bring the tool into a desired posture.
  • Patent Document 1 discloses a method for measuring the shape of a tool by imaging the shape of the tool mounted on the spindle. In this method, the shape of the tool positioned at a predetermined position is measured. Therefore, the deviation between the center axis of the tool and the feed direction cannot be measured. If such a deviation occurs, the machining accuracy of the workpiece decreases.
  • the present invention has been made in view of the above circumstances, and can measure the dimensions of a tool with the tool posture and movement trajectory used in machining, and the deviation between the coordinate system of the machine tool and the coordinate system of the measuring device.
  • An object of the present invention is to provide a tool dimension measuring method and measuring apparatus, and a machine tool capable of confirming the above in advance and further improving the machining accuracy of the workpiece.
  • a tool dimension measuring method in which the tool is imaged using an imaging device that moves relative to the tool, and the dimension of the tool is measured from the obtained image data. Imaging the tool moving along the feed direction at a plurality of positions by the imaging device, reading out a plurality of image data generated for each position of the movement, and each of the plurality of image data.
  • a method for measuring a tool dimension comprising: specifying a contour of a tool, and specifying a movement trajectory of the tool and a center axis of the tool based on the plurality of specified contours.
  • the movement trajectory of the tool is specified by calculating the transition of the position on a plurality of the image data of a reference point having a predetermined positional relationship with respect to the contour of the tool. It only has to be done.
  • the center axis of the tool may be specified by calculating an average on a plurality of the image data of a reference line having a predetermined positional relationship with respect to the contour of the tool.
  • Such a tool dimension measuring method may further include a step of specifying at least one of a cutting edge position of the tool and a tool diameter using the contour based on the specified movement locus and center axis of the tool. .
  • a tool dimension measuring device that measures the dimension of the tool from image data obtained by imaging the tool, the tool moving along a predetermined feeding direction is imaged at a plurality of positions, and the tool is measured.
  • An imaging device that generates a plurality of image data for each position of movement, a contour of the tool is identified by each of the plurality of image data, and the movement trajectory of the tool and the tool based on the plurality of identified contours.
  • a tool dimension measuring device including an arithmetic unit that identifies a central axis.
  • a plurality of the tools that move relatively along a predetermined feed direction are provided.
  • An imaging device that captures an image at a position and generates a plurality of image data for each position of the movement, and specifies the contour of the tool by each of the plurality of image data, and the tool based on the specified plurality of contours And the center axis of the tool are specified, and based on the specified tool movement trajectory, a plane coordinate system of two orthogonal axes set in the machine tool and the field of view of the imaging device are set.
  • a machine tool that includes an arithmetic device that identifies a deviation from a plane coordinate system of two orthogonal axes that is associated with a plane coordinate system of the machine, and that controls to correct the deviation.
  • the present invention it is possible to provide a tool dimension measuring method and measuring apparatus, and a machine tool that can further improve the machining accuracy of a workpiece. Since the angle formed by the movement trajectory of the tool and the central axis, that is, the relative angle is measured, this angle can be measured regardless of the mounting error of the imaging device with respect to the machine tool. In the case of machining in which the center axis of the tool coincides with the direction of the tool movement trajectory, the NC apparatus may be corrected so that the angle becomes zero.
  • the peripheral speed of the cutting edge is reduced and the machined surface quality is lowered.
  • the center axis of the ball end mill is tilted with respect to the workpiece.
  • the workpiece is machined at a portion where the peripheral speed of the cutting blade away from the apex is high.
  • a 5-axis machine tool having three orthogonal linear feed axes and two rotary feed axes can be easily corrected because the posture of the tool with respect to the workpiece can be changed.
  • the movement trajectory of the tool can be specified, an error from the movement trajectory of the NC device, that is, the deviation between the coordinate axis of the field of view of the measuring device and the coordinate axis of the machine tool can be obtained, By correcting this deviation, the measurement result of the tool dimension can be adjusted to the coordinate system of the machine tool.
  • FIG. 1 is a diagram schematically showing a configuration of a machine tool 10 according to an embodiment of the present invention.
  • the machine tool 10 is connected to the machine unit 10 that controls the operation of the machine tool 10 in addition to the machine part that performs machining processing on a workpiece (not shown), and the machine tool 10 is connected to the machine tool 10 and the NC device 12.
  • a dimension measuring device 13 for measuring the dimension of the tool.
  • the machine tool 10 for example, a 5-axis vertical machining center is used.
  • the dimension measuring device 13 is illustrated separately from the NC device 12, but the dimension measuring device 13 may be incorporated in the NC device 12, for example.
  • the machine tool 10 includes a bed 15 extending along a horizontal plane, that is, an XY plane, a table base 16 disposed on the bed 15, and a column 17 standing behind the table base 16 in a vertical direction parallel to the Z axis from the bed 15. .
  • a work (not shown) is fixed on the table base 16.
  • a spindle head 18 is supported on the column 17.
  • a tool 20 is detachably attached to the lower end of the spindle head 18 through a spindle 19 so as to be detachable downward.
  • the tool 20 is rotationally driven by a spindle motor (not shown) incorporated in the main shaft 19.
  • a ball end mill is used as the tool 20.
  • the spindle head 18 is attached to a spindle stock (not shown) so as to be able to turn around an axis parallel to the X axis via an A axis rotary feed mechanism.
  • the spindle head 18 is attached to the spindle stock so as to be able to turn around an axis parallel to the Z axis via a C-axis rotary feed mechanism.
  • the rotary feed mechanism is composed of, for example, a direct drive motor or a servo motor.
  • the spindle head 18 incorporates a rotation angle detector (not shown) for detecting rotation angles in the A-axis and C-axis rotation directions. The rotation angles read by these rotation angle detectors are output, that is, fed back to the NC device 12.
  • the table base 16 is supported on the bed 15 so as to be movable in the horizontal direction (X-axis direction) via a linear feed mechanism.
  • the spindle head 18 is supported by the column 17 so as to be movable in the vertical direction (Z-axis direction) and the horizontal direction (Y-axis direction) via a linear feed mechanism.
  • the linear feed mechanism includes, for example, a ball screw and a servo motor that rotationally drives the ball screw.
  • the table base 16 may move in the Y-axis direction instead of moving the spindle head 18 in the Y-axis direction. Further, instead of the configuration in which the spindle head 18 has the A axis and the C axis, the table base 16 may have a configuration having the A axis and the C axis.
  • the bed 15 incorporates an X-axis position detector 21 that reads a relative position along the X-axis between the bed 15 and the table base 16.
  • the column 17 incorporates a Y-axis position detector (not shown) and a Z-axis position detector 22 for reading the relative positions along the Y-axis and Z-axis between the column 17 and the spindle head 18. Yes.
  • a digital scale may be used for these position detectors.
  • the relative position read by these position detectors is specified by the coordinate value of the reference coordinate system. The read coordinate value is output, that is, fed back to the NC device 12.
  • the relative movement between the table base 16 and the tool 20 is realized by the aforementioned rotary feed mechanism and linear feed mechanism.
  • the relative movement is realized based on a drive signal described later supplied from the NC device 12.
  • the tool 20 that rotates during the relative movement contacts the workpiece at a predetermined machining point.
  • the workpiece is processed into a desired shape.
  • the NC device 12 generates a movement command in accordance with the storage unit 24 for storing the NC program, the program analysis unit 25 for analyzing the NC program stored in the storage unit 24, and the NC program analyzed by the program analysis unit 25.
  • a movement command unit 26 and a servo control unit 27 that outputs a drive signal to the servo motor of the machine tool 10 according to the movement command output from the movement command unit 26 are provided.
  • the movement command includes, for example, index data for the machining point of the workpiece and coordinate value data indicating the position of the spindle 19 corresponding to the indexed machining point.
  • the dimension measuring device 13 includes a dimension measuring unit 31 disposed on the table base 16.
  • the dimension measuring unit 31 includes a light source 32 and an imaging device 33 that faces the light source 32.
  • a high-intensity LED that outputs parallel light toward the imaging device 33 is used as the light source 32.
  • the imaging device 33 includes a lens unit 34 and a CCD (charge coupled device) image sensor 35.
  • the CCD image sensor 35 constitutes a two-dimensional image sensor, for example.
  • the dimension measurement device 13 includes an image adjustment device 36 that receives image data of a captured image from the imaging device 33, and a control device 37 that controls the operation of the light source device 32 and the imaging device 33.
  • the aforementioned CCD image sensor 35 outputs an analog image signal corresponding to an image formed on the light receiving surface at a frame rate of 30 to 60 frames per second, for example.
  • the analog image signal is converted into digital image data by an A / D converter incorporated in the imaging device 33 and output to the image adjustment device 36.
  • the image adjustment device 36 performs image adjustment processing such as shading correction, noise reduction, white balance adjustment, contour correction, and contrast adjustment, and binarizes the digital image data.
  • the image adjustment device 36 stores the image data after the image adjustment in a frame memory described later.
  • the control device 37 outputs a drive signal for controlling movement and zooming of the imaging device 33 to the imaging device 33.
  • an xy orthogonal biaxial visual field coordinate system is set in the visual field of the imaging device 33 corresponding to the YZ plane of the reference coordinate system described above.
  • Each coordinate value of the visual field coordinate system is associated with each coordinate value of the reference coordinate system for each visual field at each position after the imaging device 33 is moved in the YZ plane.
  • the dimension measuring device 13 includes a storage device 41 that stores a dimension measuring program and tool data, an arithmetic device 42 that executes various arithmetic processes based on the dimension measuring program, a frame memory 43 that stores image data for each frame, Is provided.
  • the dimension measurement program may be temporarily read into a memory (not shown). Details of the dimension measurement program and tool data will be described later.
  • the dimension measurement program may be taken into the storage device 41 from, for example, an FD (flexible disk), CD-ROM, or other portable recording medium, or may be taken into the storage device 41 from a computer network such as a LAN or the Internet.
  • the dimension measuring device 13 includes, for example, a display device 44 having a display screen for displaying light / dark binary information for each pixel constituting the image data representing the image (silhouette) of the tool and the coordinate value of the pixel. And an input device 45 for inputting an instruction to the arithmetic device 42 by designating a predetermined position.
  • the display device 44 may be a flat display panel such as an LCD (liquid crystal display) panel, and the input device 45 may be a touch panel, a keyboard, a mouse, or the like.
  • the user uses, for example, a touch panel or a mouse to specify the direction of the contour line of the tool 20 on the image displayed on the display screen of the display device 44, or to specify the measurement position on the contour line of the tool 20. be able to.
  • the movement trajectory of the tool 20 is a trajectory of movement of the tool 20 that is sent in a predetermined feed direction by the linear feed mechanism.
  • the center axis of the tool 20 is the center axis of the tool 20 that coincides with the center of rotation of the main shaft 19.
  • the arithmetic unit 42 of the dimension measurement apparatus 13 temporarily reads the dimension measurement program from the storage device 41 into, for example, a memory.
  • the arithmetic unit 42 executes various arithmetic processes based on the dimension measurement program.
  • the arithmetic device 42 outputs a start signal to the NC device 12.
  • the NC device 12 outputs a drive command toward the machine tool 10.
  • the main shaft 19 is positioned at a predetermined position between the light source 32 and the imaging device 33 on the XY plane.
  • the main shaft 19 is positioned at an arbitrary rotation angle in the A-axis direction, for example.
  • the central axis of the tool 20 intersects the Y axis and the Z axis on the plane coordinate system of the YZ orthogonal two axes of the reference coordinate system.
  • the tool 20 establishes an inclined posture.
  • the rotation angle is set to, for example, an angle that is rotated by 45 degrees in the A-axis direction from the state in which the center axis of the tool 20 is parallel to the Z-axis toward the horizontal plane. At this time, the tool 20 is rotationally driven around its rotation center.
  • the arithmetic device 42 outputs a start signal to the control device 37 in order to start the operations of the light source 32 and the imaging device 33.
  • the control device 37 outputs a drive signal for driving the imaging device 33.
  • the imaging device 33 starts imaging.
  • the imaging device 33 generates an analog image signal for each imaging frame. Image data generated from the image signal is stored in the frame memory 43 for each frame via the image adjustment device 36. Details of the image data will be described later.
  • the tool 20 is moved along the feed direction of 45 degrees based on the linear movement in the Y-axis direction and the linear movement in the Z-axis direction.
  • the speed of linear movement in the Y-axis direction and the speed of linear movement in the Z-axis direction are set equal. That is, in setting the machine tool 10, the rotation angle of the tool 20 in the A-axis direction and the angle in the feed direction of the tool 20 are set to be the same. Accordingly, the movement trajectory of the tool 20 is set in a direction intersecting the Y axis and the Z axis of the reference coordinate system set for the machine tool 10.
  • image data is output for each frame in which the tool 20 is imaged at each position moving in the set feed direction.
  • the movement of the tool 20 is stopped when the tool 20 moves over a predetermined distance within the field of view. The distance may be set arbitrarily.
  • the image data is composed of a large number of pixels that specify an image in the field of view.
  • light and dark binary values are specified for each pixel in the image data, for example, as shown in FIG. 2, in the field of view V specified by the image data, dark pixels are shadows of the tool 20.
  • a bright pixel is specified as a light receiving portion of parallel light.
  • the contour of the tool 20 is specified.
  • FIG. 3 is a flowchart showing a process flow of the dimension measurement method for the tool 20 according to the embodiment of the present invention.
  • the arithmetic unit 42 reads out one frame of image data from the frame memory 43.
  • image data in which most of the contour of the tool 20 has entered the field of view V is read out.
  • the arithmetic unit 42 detects the edge of the contour of the tool 20 in step S2.
  • an edge is specified by a dark pixel adjacent to a light pixel among dark pixels corresponding to the image pixel of the tool 20 in the field of view of the image. Is done.
  • the computing device 42 specifies the contour line 51 of the tool 20 based on the extraction of a plurality of continuous dark pixels adjacent to the bright pixels in step S ⁇ b> 3.
  • the contour line 51 is specified by, for example, a regression curve.
  • the arithmetic unit 42 identifies the configuration of the contour line 51 in step S3. Since the tool 20 is a ball end mill, as shown in FIG. 4, for example, a circle 51a defined at the tip of the tool 20 and a rectangle 51b connected to the rear end of the circle 51a are identified.
  • the semicircle component at the tip of the tool 20 may be specified from the shape of the contour line 51.
  • a parallel component (which may include a shank) may be specified from the shape of the outline 51.
  • the computing device 42 specifies a reference point having a predetermined positional relationship with respect to the circle 51a from the semicircular component of the circle 51a.
  • the reference point is the center point P of the circle 51a.
  • the computing device 42 specifies a reference line having a predetermined positional relationship with respect to the rectangle 51b from the parallel component of the rectangle 51b.
  • the reference line is the axis L of the rectangle 51b extending in the longitudinal direction of the rectangle 51b.
  • the coordinate value in the visual field coordinate system of each pixel constituting the circle 51a, the center point P, the rectangle 51b, and the axis L is specified. Is done.
  • the axis line L is formulated based on the coordinate values specifying the rectangle 51b.
  • the image data for which the coordinate value is specified in this way is stored in the frame memory 43 in step S6.
  • the coordinate value data indicating the coordinate values in the visual field coordinate system of the circle 51a, the center point P, the rectangle 51b, and the axis L may be stored in the frame memory 43 in association with the image data.
  • step S7 it is determined whether or not the number of frames for which processing has been completed has reached the number of frames necessary for measurement of dimensions.
  • the number of frames required for measurement may be set arbitrarily. Since the measurement of the dimension of the tool 20, that is, the movement trajectory and the central axis, requires a plurality of frames, the processing of the computing device 42 returns to step S1. In the present embodiment, the number of necessary frames is set to 4, for example.
  • the arithmetic unit 42 repeats the processing from steps S1 to S6 for each frame. Since the tool 20 moves in the feed direction, the position of the contour line 51 of the tool 20 changes for each frame.
  • the processing of the arithmetic unit 42 proceeds to step S8.
  • the number of necessary frames is at least 2.
  • the necessary number of frames is at least 3.
  • the required number of frames Is at least 4. In either case, the greater the number of frames, the higher the measurement accuracy, but it is preset according to the processing conditions.
  • step S8 the movement trajectory of the tool 20 is calculated based on the transition of the positions of the plurality of center points P specified for each of the plurality of frames.
  • the circle 51a specified for each frame is arranged based on the visual field coordinate system, and the coordinate value (xn, yn) of each center point Pn is specified.
  • a regression curve passing through all the identified center points P is calculated.
  • the regression curve calculated in this way corresponds to the movement locus 52 of the tool 20.
  • step S9 the axis line of the tool 20 is calculated based on the average of the plurality of central axis lines L specified in each of the plurality of frames. Specifically, an average regression curve of a plurality of central axis lines L is calculated. As shown in FIG.
  • the calculated regression curve corresponds to the central axis 53 of the tool 20.
  • the tool data for specifying the calculated movement locus 52 and the central axis 53 is stored in the storage device 41.
  • the coordinate value may be specified by converting from the visual field coordinate system to the coordinate value of the reference coordinate system.
  • the movement locus 52 of the tool 20 and the central axis 53 do not match.
  • the movement locus 52 and the central axis 53 intersect with each other at an intersection angle ⁇ , for example.
  • the angle of the movement locus 52 that is, the angle in the feed direction is 45 degrees as set
  • the position of the rotation angle of the main shaft 19 is deviated from the set 45 degrees.
  • the calculated crossing angle ⁇ may be used for mechanical correction of the rotation angle of the machine tool 10 in the A-axis direction, or for correction of coordinate values for position control of the main shaft 19 of the NC device 12. It may be used.
  • the dimension measuring device 13 may measure the tool diameter and the edge position of the tool 20 in the inclined posture.
  • the arithmetic unit 24 specifies the components of the circle 51a and the rectangle 51b from the contour line 51 based on the image data, as described above.
  • the tool diameter of the tool 20 may be measured in a direction orthogonal to the central axis 53.
  • the contact point Yi between the virtual straight line YL parallel to the Y axis of the reference coordinate system and the circle 51a may be measured as the cutting edge position of the tool 20 in accordance with the relative positional relationship between the tool 20 and the workpiece.
  • the contact point Zi between the virtual straight line ZL parallel to the Z axis of the reference coordinate system and the circle 51a may be measured as the cutting edge position of the tool 20.
  • the tool length of the tool 20 may be calculated from these blade edge positions.
  • the measurement position on the contour line 51 of the tool 20 may be set in advance on the dimension measurement software. As a result, the measurement of the dimensions of the tool 20 can be performed automatically.
  • the imaging device 33 images the tool 20 that is moving in the feed direction.
  • the contour line 51 of the tool 20 is specified by a plurality of image data generated based on the imaging.
  • the movement locus 52 and the central axis line 53 are specified. If there is a deviation between the movement trajectory 52 and the central axis 53, such a deviation can be used in the machine tool 10 to correct the positioning of the tool 20.
  • the workpiece machining accuracy is improved. For example, if the dimensions of the tool 20 in the inclined posture are measured, the actual cutting edge position and the tool diameter in the inclined posture can be specified. Such blade edge position and tool diameter can be used for correcting the positioning of the machine tool 10. As a result, the workpiece machining accuracy is further improved.
  • the user may manually specify the tool diameter of the tool 20 or the measurement position of the blade edge position.
  • a contour line 51 is displayed on the display screen of the display device 44 based on the image data.
  • the measurement position on the contour line 51 may be displayed as an option, or the user may specifically specify an arbitrary measurement position on the contour line 51.
  • the designation of the measurement position may be performed by a mouse on the display screen, for example, or the measurement position may be designated by a contact position on the touch panel.
  • the calculation device 42 can measure the dimensions of the tool 20 including the tool diameter, the cutting edge position, the tool length, and the like according to the designated measurement position.
  • the tool 20 is moved in a feed direction parallel to the Z axis of the reference coordinate system.
  • a movement locus 52a parallel to the Z axis is specified.
  • the imaging device 33 is accurately positioned with respect to the table base 16
  • the movement locus 52a is defined in parallel with the y-axis of the visual field coordinate system.
  • the arithmetic unit 42 determines that there is no deviation between the reference coordinate system and the visual field coordinate system.
  • the squareness in the machine tool 10 is within the allowable range.
  • the moving visual field 52 a is not parallel to the y axis of the visual field coordinate system. Identified. That is, the movement locus 52a intersects the y axis of the visual field coordinate system at a predetermined intersection angle. This crossing angle coincides with the rotation angle ⁇ of the visual field coordinate system defined around the X axis of the reference coordinate system.
  • the arithmetic unit 42 determines that a deviation is generated by the rotation angle ⁇ between the reference coordinate system and the visual field coordinate system.
  • the mechanical attachment position of the imaging device 33 on the table base 16 may be adjusted based on the specified rotation angle ⁇ .
  • the coordinate value may be corrected between the NC device 12 and the dimension measuring device 13, for example, based on the specified rotation angle ⁇ .
  • the tool 20 may be moved in the feed direction parallel to the Y axis in the machine tool 10.
  • a movement locus 52b parallel to the Y-axis direction of the reference coordinate system is specified.
  • the rotation angle ⁇ may be specified in the same manner as described above based on the intersection angle between the movement locus 52b and the x axis.
  • the tool 20 may be moved in a feed direction that intersects the Y axis and the Z axis in specifying the deviation between the reference coordinate system and the visual field coordinate system.
  • the movement locus 52c in the direction intersecting the Y axis and the Z axis of the reference coordinate system is specified.
  • the angle of the feed direction and the angle of the movement locus 52c on the field of view of the imaging device 33 may be compared. Based on the movement locus 52c, the rotation angle ⁇ may be specified as described above.
  • the deviation between the reference coordinate system of the machine tool 10 and the visual field coordinate system of the imaging device 33 is specified based on the movement trajectories 52a to 52c of the tool 20. If the deviation between the reference coordinate system and the visual field coordinate system is specified in this way, the imaging device 33 can be arranged at an accurate position with respect to the machine tool 10. As a result, the imaging device 33 can accurately measure the dimensions of the tool 20. Accordingly, the deviation calculated based on the measurement of the dimensions can be accurately used for correcting the positioning of the machine tool 10. The machining accuracy of the workpiece is improved.
  • the tool dimension measuring method and measuring apparatus of the present invention have been described using a vertical machining center as an example of the machine tool 10, the tool dimension measuring method and measuring apparatus of the present invention are For example, it can be realized by a horizontal machining center or other machine tools.
  • the tool dimension measuring method and measuring apparatus of the present invention have been described using a ball end mill as an example of the tool 20, the tool dimension measuring method and measuring apparatus of the present invention include, for example, a flat end mill, a drill, etc. It can also be realized with these tools.

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • General Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Electromagnetism (AREA)
  • Machine Tool Sensing Apparatuses (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Automatic Control Of Machine Tools (AREA)

Abstract

 本発明に係る工作機械(10)によれば、撮像装置(33)は、送り方向に移動中の工具(20)を撮像する。撮像に基づき生成された複数の画像データの各々で輪郭線(51)が特定される。この輪郭線(51)に基づき工具(20)の移動軌跡(52)及び中心軸線(53)が特定される。移動軌跡(52)と中心軸線(53)との間にずれがある場合には、そうしたずれは工作機械(10)で工具(20)の位置決めの補正に用いられることが可能である。その結果、ワークの加工精度は向上する。また、例えば傾斜姿勢の工具(20)の寸法が測定されれば、傾斜姿勢における実際の刃先位置や工具径が特定されることが可能である。こうした刃先位置や工具径は工作機械(10)の位置決めの補正に用いられることが可能である。ワークの加工精度はさらに向上する。

Description

工具寸法の測定方法及び測定装置、並びに工作機械
 本発明は、例えばCNC(コンピュータ数値制御)の工作機械で使用される工具の刃先位置、工具長、工具径、刃先形状、工具の振れ等の工具寸法を測定する方法及び装置、並びに工作機械に関する。
 例えばNC工作機械では、ワークの加工時、主軸に装着された例えばドリルやエンドミルといった工具が回転しながらワークに接触する。工具は、NC工作機械における所定の送り方向に送られる。ワークの加工精度の向上にあたって、工具の回転中心や工具姿勢を決める工具の中心軸を特定し、工具を所望とする姿勢にすることが必要とされる。
特開2005-324300号公報
 例えば特許文献1には、主軸に装着された工具の形状を撮像して工具の形状を測定する方法が開示されている。この方法では、所定の位置に位置決めされた工具の形状が測定される。従って、工具の中心軸線と送り方向とのずれを測定することはできない。そうしたずれが発生している場合にはワークの加工精度は低下してしまう。
 本発明は、上記実状に鑑みてなされたもので、工具の寸法を加工で使用する工具姿勢及び移動軌跡で測定することができ、また、工作機械の座標系と測定装置の座標系とのずれを予め確認することができ、ワークの加工精度をより一層向上させることができる工具寸法の測定方法及び測定装置、並びに工作機械を提供することを目的とする。
 上記目的を達成するために、本発明によれば、工具と相対移動する撮像装置を用いて前記工具を撮像し、得た画像データにより前記工具の寸法を測定する工具寸法の測定方法において、所定の送り方向に沿って移動する前記工具を前記撮像装置によって複数の位置で撮像し、前記移動の各位置ごとに生成された複数の画像データを読み出す工程と、複数の前記画像データの各々で前記工具の輪郭を特定して、特定した複数の輪郭に基づき前記工具の移動軌跡と前記工具の中心軸線とを特定する工程と、を備える工具寸法の測定方法が提供される。
 この工具寸法の測定方法では、前記工具の移動軌跡は、前記工具の輪郭に対して予め定めた位置関係を有する基準点の、複数の前記画像データ上での位置の推移を算出することによって特定されればよい。前記工具の中心軸線は、前記工具の輪郭に対して予め定めた位置関係を有する基準線の、複数の前記画像データ上での平均を算出することによって特定されればよい。
 こうした工具寸法の測定方法は、特定された前記工具の移動軌跡及び中心軸線に基づき前記輪郭を用いて前記工具の刃先位置及び工具径の少なくともいずれか1つを特定する工程をさらに備えてもよい。
 本発明によれば、工具を撮像して得た画像データにより前記工具の寸法を測定する工具寸法の測定装置において、所定の送り方向に沿って移動する前記工具を複数の位置で撮像して前記移動の各位置ごとに複数の画像データを生成する撮像装置と、複数の前記画像データの各々で前記工具の輪郭を特定して、特定した複数の輪郭に基づき前記工具の移動軌跡と前記工具の中心軸線とを特定する演算装置と、を備える工具寸法の測定装置が提供される。
 本発明によれば、主軸に装着された工具を撮像して得た画像データにより機上で工具の寸法を測定する工作機械において、所定の送り方向に沿って相対的に移動する前記工具を複数の位置で撮像して前記移動の各位置ごとに複数の画像データを生成する撮像装置と、複数の前記画像データの各々で前記工具の輪郭を特定して、特定した複数の輪郭に基づき前記工具の移動軌跡と前記工具の中心軸線とを特定し、特定した前記工具の移動軌跡に基づき、工作機械に設定される直交2軸の平面座標系と、前記撮像装置の視野内に設定されて工作機械の平面座標系に関連付けられる直交2軸の平面座標系とのずれを特定する演算装置と、を備え、前記ずれを補正するように制御する工作機械が提供される。
 本発明によれば、ワークの加工精度をより一層向上させることができる工具寸法の測定方法及び測定装置、並びに工作機械を提供することをできる。工具の移動軌跡と中心軸線とがなす角度、すなわち相対的な角度を測定するので、撮像装置の工作機械に対する取付け誤差に関わりなくこの角度を測定することができる。この工具の移動軌跡の方向に工具の中心軸線を一致させる加工の場合は、この角度が零になるようにNC装置の補正を行えばよい。ボールエンドミルの中心軸線上の頂点付近でワークを加工すると、切刃の周速が小さくて加工面品位が下るが、この問題を解決するため、ワークに対してボールエンドミルの中心軸線を傾けて、頂点から離れた切刃の周速の大きい部分でワークを加工することが行われる。このときは、工具の移動軌跡と中心軸線とのなす角度が所望の角度になっているかを測定し、なっていないときはNC装置の補正を行えばよい。特に、直交3軸の直線送り軸と2軸の回転送り軸を有する5軸工作機械は、ワークに対する工具の姿勢を変えることができるので補正しやすい。
 また、本発明によれば、工具の移動軌跡を特定することができるので、NC装置の移動軌跡との誤差、すなわち測定装置の視野の座標軸と工作機械の座標軸とのずれを求めることができ、このずれを補正することによって、工具寸法の測定結果を工作機械の座標系に合わせることができる。
本発明の一実施形態に係る工作機械の構成を概略的に示す図である。 一具体例に係る画像データを示す図である。 本発明の一実施形態に係る工具寸法の測定方法の処理の流れを示すフローチャートである。 他の具体例に係る画像データを示す図である。 工具の移動軌跡及び中心軸線を特定する処理を概略的に示す図である。 工具の工具径や刃先位置などを特定する処理を概略的に示す図である。 座標系のずれを特定する処理を概略的に示す図である。
 以下、添付図面を参照しつつ本発明の一実施形態を説明する。
 図1は、本発明の一実施形態に係る工作機械10の構成を概略的に示す図である。この工作機械10は、ワーク(図示されず)に加工処理を実行する機械部分に加え、工作機械10の動作を制御するNC装置12と、工作機械10及びNC装置12に接続されて工作機械10の工具の寸法を測定する寸法測定装置13と、を備える。工作機械10には例えば5軸立形のマシニングセンタが用いられる。本実施形態では、寸法測定装置13はNC装置12と別個に図示されているものの、寸法測定装置13は例えばNC装置12内に組み込まれてもよい。
 まず、工作機械10の機械構成を説明する。工作機械10にはXYZ直交3軸の基準座標系が設定される。工作機械10は、水平面すなわちXY平面に沿って広がるベッド15と、ベッド15上に配置されたテーブルベース16と、テーブルベース16の後方でベッド15からZ軸に平行に垂直方向に立ち上がるコラム17と、を備える。テーブルベース16上にワーク(図示されず)が固定される。コラム17には主軸頭18が支持されている。主軸頭18の下端には主軸19を介して下向きに着脱自在に工具20が装着されている。工具20は、主軸19内に組み込まれるスピンドルモータ(図示されず)により回転駆動される。ここでは、工具20には例えばボールエンドミルが用いられる。
 加えて、主軸頭18は、A軸回転送り機構を介してX軸に平行な軸線回りに旋回可能に主軸台(図示せず)に取り付けられている。同時に、主軸頭18は、C軸回転送り機構を介してZ軸に平行な軸線回りに旋回可能に主軸台に取り付けられている。回転送り機構は例えばダイレクトドライブモータやサーボモータから構成される。主軸頭18にはA軸及びC軸回転方向の回転角をそれぞれ検出する回転角検出器(図示されず)が組み込まれている。これらの回転角検出器で読み取られた回転角はNC装置12に出力すなわちフィードバックされる。
 テーブルベース16は、直線送り機構を介して水平方向(X軸方向)に移動可能にベッド15上に支持されている。その一方で、主軸頭18は、直線送り機構を介して鉛直方向(Z軸方向)及び水平方向(Y軸方向)に移動可能にコラム17に支持されている。直線送り機構は、例えばボールねじと、このボールねじを回転駆動するサーボモータと、を備える。なお、主軸頭18のY軸方向の移動に代えてテーブルベース16がY軸方向に移動してもよい。また、主軸頭18がA軸及びC軸を有する構成に代えてテーブルベース16がA軸及びC軸を有する構成にしてもよい。
 ベッド15には、当該ベッド15とテーブルベース16との間のX軸に沿った相対位置を読み取るX軸位置検出器21が組み込まれている。コラム17には、当該コラム17と主軸頭18との間のY軸及びZ軸に沿った相対位置をそれぞれ読み取るY軸位置検出器(図示されず)及びZ軸位置検出器22が組み込まれている。これらの位置検出器には例えばデジタルスケールが用いられればよい。これらの位置検出器で読み取られた相対位置は基準座標系の座標値で特定される。読み取られた座標値はNC装置12に出力すなわちフィードバックされる。
 前述の回転送り機構及び直線送り機構によってテーブルベース16と工具20との相対移動が実現される。相対移動は、NC装置12から供給される後述の駆動信号に基づき実現される。相対移動中に回転する工具20が所定の加工点でワークに接触する。こうしてワークが所望の形状に加工される。
 次に、NC装置12の構成を説明する。NC装置12は、NCプログラムを格納する記憶部24と、記憶部24に格納されているNCプログラムを解析するプログラム解析部25と、プログラム解析部25で解析されたNCプログラムに従って移動指令を生成する移動指令部26と、移動指令部26から出力された移動指令に従って工作機械10のサーボモータに駆動信号を出力するサーボ制御部27と、を備える。移動指令には、例えばワークの加工点の割り出しデータ及び割り出し後の加工点に対応した主軸19の位置を示す座標値データが含まれる。
 次に、寸法測定装置13の構成を説明する。寸法測定装置13は、テーブルベース16上に配置される寸法測定ユニット31を備える。寸法測定ユニット31は、光源32と、光源32に向き合う撮像装置33と、を備える。光源32には撮像装置33に向かって平行光を出力する例えば高輝度LEDが用いられる。撮像装置33はレンズユニット34及びCCD(電荷結合素子)イメージセンサ35を備える。CCDイメージセンサ35は例えば二次元イメージセンサを構成する。
 寸法測定装置13は、撮像された画像の画像データを撮像装置33から受け取る画像調整装置36と、光源装置32及び撮像装置33の動作を制御する制御装置37と、を備える。前述のCCDイメージセンサ35は、その受光面に結像される画像に対応したアナログ画像信号を、例えば毎秒30~60フレームのフレームレートで出力する。アナログ画像信号は撮像装置33内に組込まれたA/D変換器によってデジタル画像データに変換され画像調整装置36に出力される。
 画像調整装置36は、シェーディング補正、ノイズリダクション、ホワイトバランス調整、輪郭補正及びコントラスト調整などの画像調整処理を行い、デジタル画像データを2値化する。画像調整装置36は、画像調整後の画像データを後述のフレームメモリに格納する。その一方で、制御装置37は、撮像装置33の移動やズームを制御する駆動信号を撮像装置33に出力する。なお、撮像装置33の視野には前述の基準座標系のYZ平面に対応してxy直交2軸の視野座標系が設定される。この視野座標系の各座標値は、YZ平面内における撮像装置33の移動後の各位置の視野ごとに基準座標系の各座標値に関連付けられる。
 寸法測定装置13は、寸法測定プログラム及び工具データを記憶する記憶装置41と、寸法測定プログラムに基づき様々な演算処理を実行する演算装置42と、フレームごとの画像データを格納するフレームメモリ43と、を備える。演算処理にあたって寸法測定プログラムは一時的にメモリ(図示されず)に読み出されればよい。寸法測定プログラム及び工具データの詳細は後述される。なお、寸法測定プログラムは例えばFD(フレキシブルディスク)やCD-ROMその他の可搬性記録媒体から記憶装置41に取り込まれてもよく、LANやインターネットといったコンピューターネットワークから記憶装置41に取り込まれてもよい。
 寸法測定装置13は、例えば工具の像(シルエット)を表す画像データを構成する画素ごとの明暗2値の情報やその画素の座標値を表示する表示画面を有する表示装置44と、例えば表示画面上で所定の位置を指定することによって演算装置42に指示を入力する入力装置45と、を備える。表示装置44は例えばLCD(液晶ディスプレイ)パネルなどの平面ディスプレイパネルであればよく、入力装置45は例えばタッチパネルやキーボード、マウスなどであってよい。使用者は例えばタッチパネルやマウスを用いて、表示装置44の表示画面上に表示される画像上で工具20の輪郭線の方向を指定したり、工具20の輪郭線上の測定位置を指定したりすることができる。
 次に、本発明に係る工作機械10で工具20の寸法を測定する方法を説明する。ここでは、例えば工具20の移動軌跡と工具20の中心軸線とが測定される。工具20の移動軌跡は、直線送り機構によって所定の送り方向に送られる工具20の移動の軌跡である。工具20の中心軸線は、主軸19の回転中心と一致する工具20の中心軸線である。工具20の寸法の測定処理の実行にあたって寸法測定装置13の演算装置42は、記憶装置41から寸法測定プログラムを例えばメモリに一時的に読み出す。こうして演算装置42は寸法測定プログラムに基づき様々な演算処理を実行する。
 まず、演算装置42はNC装置12に開始信号を出力する。開始信号の受信に応じてNC装置12は工作機械10に向かって駆動指令を出力する。その結果、工作機械10では、XY平面上で光源32及び撮像装置33の間の所定の位置に主軸19が位置決めされる。同時に、主軸19は、例えばA軸方向の任意の回転角の位置に位置決めされる。こうして工具20の中心軸線は、基準座標系のYZ直交2軸の平面座標系上でY軸及びZ軸に交差する。こうして工具20は傾斜姿勢を確立する。ここでは、回転角は、例えば工具20の中心軸線がZ軸に平行な状態から水平面に向かってA軸方向に45度にわたって回転した角度に設定される。このとき、工具20はその回転中心回りで回転駆動される。
 同時に、演算装置42は、光源32及び撮像装置33の動作を開始させるために制御装置37に開始信号を出力する。開始信号の受信に応じて制御装置37は、撮像装置33を駆動させる駆動信号を出力する。こうして撮像装置33は撮像を開始する。撮像装置33は撮像のフレームごとにアナログの画像信号を生成する。この画像信号から生成された画像データは画像調整装置36を介してフレームメモリ43にフレームごとに格納される。画像データの詳細は後述される。
 工具20は、Y軸方向の直線移動及びZ軸方向の直線移動に基づき45度の送り方向に沿って移動させられる。Y軸方向の直線移動の速度とZ軸方向の直線移動の速度とは等しく設定される。すなわち、工作機械10の設定上では、A軸方向の工具20の回転角と工具20の送り方向の角度とが同一に設定される。従って、工具20の移動軌跡は、工作機械10に設定される基準座標系のY軸及びZ軸に交差する方向に設定される。工具20が撮像装置33の視野内に入っていくと、設定された送り方向に移動中の各位置で工具20を撮像したフレームごとに画像データが出力されていく。なお、工具20の移動は、工具20が視野内で所定の距離にわたって移動した時点で停止される。距離は任意に設定されればよい。
 CCDイメージセンサ35の受光面には、光源32から照射される平行光によって工具20の影を投影した画像が結像される。画像データは、視野内の画像を特定する多数の画素から構成される。前述されるように、画像データでは画素ごとに明暗2値が特定されることから、例えば図2に示されるように、画像データで特定される視野V内では、暗の画素は工具20の影の投影部分として特定される一方で、明の画素は平行光の受光部分として特定される。こうして工具20の輪郭が特定される。
 図3は、本発明の一実施形態に係る工具20の寸法測定方法の処理の流れを示すフローチャートである。ステップS1で、演算装置42はフレームメモリ43から1フレームの画像データを読み出す。ここでは、工具20の輪郭の大部分が視野V内に進入した画像データが読み出される。読み出した画像データに基づき、ステップS2で、演算装置42は工具20の輪郭のエッジを検出する。前述のように各画素は明暗2値で示されることから、エッジは、画像の視野中で工具20の画像の画素に対応する暗の画素のうち、明の画素に隣接する暗の画素で特定される。こうして図2から明らかなように、演算装置42は、ステップS3で、明の画素に隣接する連続した複数の暗の画素の抽出に基づき工具20の輪郭線51を特定する。輪郭線51は例えば回帰曲線で特定される。
 次に、演算装置42はステップS3で輪郭線51の構成を識別する。工具20はボールエンドミルであることから、図4に示されるように、例えば工具20の先端に規定される円51aと、円51aの後端に接続される長方形51bとが識別される。ステップS4では、円51aの識別にあたって、輪郭線51の形状から工具20の先端の半円成分が特定されればよい。長方形51bの特定にあたって輪郭線51の形状から平行成分(シャンクを含んでもよい)が特定されればよい。ステップS5で、演算装置42は、円51aの半円成分から、円51aに対して予め定めた位置関係を有する基準点を特定する。ここでは、基準点は円51aの中心点Pである。同時に、演算装置42は、長方形51bの平行成分から、長方形51bに対して予め定めた位置関係を有する基準線を特定する。ここでは、基準線は、長方形51bの長手方向に延びる長方形51bの軸線Lである。
 前述のように、撮像装置33の視野V内には視野座標系が規定されることから、円51a、中心点P、長方形51b及び軸線Lを構成する各画素の視野座標系における座標値が特定される。ここでは、長方形51bを特定する座標値に基づき軸線Lが数式化される。こうして座標値が特定された画像データは、ステップS6で、フレームメモリ43に格納される。円51a、中心点P、長方形51b及び軸線Lの視野座標系の座標値を示す座標値データは、画像データに関連付けてフレームメモリ43に格納されればよい。こうしてステップS1~S6の処理が完了する。
 次に、ステップS7で、処理の完了したフレームの数が、寸法の測定に必要なフレームの数に達したか否かが判断される。測定に必要なフレームの数は任意に設定されればよい。工具20の寸法すなわち移動軌跡及び中心軸線の測定には複数のフレームが必要とされることから、演算装置42の処理はステップS1に戻る。なお、本実施形態では必要なフレームの数は例えば4に設定される。演算装置42は、各フレームごとにステップS1~S6までの処理を繰り返す。工具20は送り方向に移動することから、各フレームごとに工具20の輪郭線51の位置は変化する。こうして、処理の完了したフレームの数が寸法の測定に必要な数のフレームに到達すると、演算装置42の処理はステップS8に移る。なお、工具の移動軌跡が直線の場合、必要なフレーム数は最低2であり、移動軌跡が円孤の場合、必要なフレーム数は最低3であり、移動軌跡が任意の場合、必要なフレーム数は最低4である。いずれの場合もフレーム数は多い程測定精度は上るが、加工条件に応じて予め設定される。
 ステップS8で、複数のフレームごとに特定された複数の中心点Pの位置の推移に基づき工具20の移動軌跡が算出される。図5に示されるように、各フレームごとに特定された円51aが視野座標系に基づき配置され、各中心点Pnの座標値(xn、yn)が特定される。特定されたすべての中心点Pを通る回帰曲線が算出される。こうして算出された回帰曲線が工具20の移動軌跡52に相当する。次に、ステップS9で、複数のフレームの各々で特定された複数の中心軸線Lの平均に基づき工具20の軸線が算出される。具体的には、複数の中心軸線Lの平均の回帰曲線が算出される。図5に示されるように、算出された回帰曲線が工具20の中心軸線53に相当する。算出された移動軌跡52及び中心軸線53を特定する工具データは記憶装置41に格納される。工具データでは、座標値は視野座標系から基準座標系の座標値に変換されて特定されればよい。
 図5から明らかなように、本実施形態の例では、工具20の移動軌跡52と中心軸線53とは一致していない。移動軌跡52と中心軸線53とは例えば交差角αで交差している。ここでは、移動軌跡52の角度すなわち送り方向の角度は設定通りに45度であることを前提にすると、主軸19の回転角の位置が設定の45度からずれていることが分かる。こうしたずれはワークの加工精度を著しく低下させてしまう。従って、算出された交差角αは、工作機械10のA軸方向の回転角の機械的な補正に用いられればよく、又は、NC装置12の主軸19の位置制御のための座標値の補正に用いられればよい。こうして工作機械10では、中心軸線53と移動軌跡52とが一致するような補正が実施されればよい。なお、寸法の測定の結果、移動軌跡52と中心軸線53とが一致している場合には主軸19の回転角の位置が設定通りであることを示している。
 以上のような測定に加えて、寸法測定装置13では、傾斜姿勢の工具20の工具径や刃先位置が測定されてもよい。演算装置24は、前述と同様に、画像データに基づき輪郭線51から円51a及び長方形51bの成分を特定する。このとき、図6に示されるように、例えば中心軸線53に直交する方向に工具20の工具径が測定されればよい。また、工具20とワークとの相対的な位置関係に応じて、基準座標系のY軸に平行な仮想直線YLと円51aとの接点Yiが工具20の刃先位置として測定されてもよい。その一方で、基準座標系のZ軸に平行な仮想直線ZLと円51aとの接点Ziが工具20の刃先位置として測定されてもよい。これらの刃先位置から工具20の工具長が算出されればよい。こうした工具径や刃先位置の測定にあたって、工具20の輪郭線51上の測定位置が寸法測定ソフトウェア上で予め設定されていればよい。その結果、工具20の寸法の測定は自動的に実施されることが可能である。
 以上のように、本実施形態に係る工作機械10によれば、撮像装置33は、送り方向に移動中の工具20を撮像する。撮像に基づき生成された複数の画像データによって工具20の輪郭線51が特定される。この輪郭線51に基づき移動軌跡52及び中心軸線53が特定される。移動軌跡52と中心軸線53との間にずれがある場合には、そうしたずれは工作機械10で工具20の位置決めの補正に用いられることが可能である。その結果、ワークの加工精度は向上する。また、例えば傾斜姿勢の工具20の寸法が測定されれば、傾斜姿勢における実際の刃先位置や工具径が特定されることが可能である。こうした刃先位置や工具径は工作機械10の位置決めの補正に用いられることが可能である。その結果、ワークの加工精度はさらに向上する。
 以上のような工作機械10では、使用者が手動で工具20の工具径や刃先位置の測定位置を指定してもよい。画像データに基づき表示装置44の表示画面上には輪郭線51が表示される。表示画面上には、例えば輪郭線51上の測定位置が選択肢として表示されてもよいし、使用者が輪郭線51上の任意の測定位置を具体的に指定してもよい。測定位置の指定は例えば表示画面上でマウスによって実施されてもよいし、タッチパネル上の接触位置で測定位置が指定されてもよい。こうして前述と同様に、演算装置42は、指定された測定位置に応じて、工具径や刃先位置、工具長などを含む工具20の寸法を測定することが可能である。
 次に、工作機械10の基準座標系と撮像装置33の視野座標系とのずれを特定する処理を説明する。例えば図7に示されるように、工作機械10では、工具20は基準座標系のZ軸に平行な送り方向に移動させられる。撮像装置33ではZ軸に平行な移動軌跡52aが特定される。このとき、撮像装置33がテーブルベース16に対して正確に位置決めされていれば、移動軌跡52aは視野座標系のy軸に平行に規定される。その結果、演算装置42は、基準座標系と視野座標系との間にはずれは発生していないものと判断する。なお、ここでは工作機械10における直角度は許容値の範囲内にあるものとする。
 その一方で、図7に示されるように、視野座標系が基準座標系のX軸回りに所定の回転角でずれていると、移動視野52aは視野座標系のy軸に平行ではないものとして特定される。すなわち、移動軌跡52aは視野座標系のy軸に対して所定の交差角で交差することになる。この交差角は、基準座標系のX軸回りに規定される視野座標系の回転角βに一致する。演算装置42は、基準座標系と視野座標系との間に回転角βの分だけずれが発生しているものと判断する。このとき、工作機械10では、特定された回転角βに基づきテーブルベース16上での撮像装置33の機械的な取り付け位置が調節されればよい。なお、機械的な取り付け位置の調整に代えて、特定された回転角βに基づき例えばNC装置12及び寸法測定装置13の間で座標値が補正されてもよい。
 また、基準座標系と視野座標系とのずれの特定にあたって、工作機械10では、工具20がY軸に平行な送り方向に移動させられてもよい。撮像装置33では基準座標系のY軸方向に平行な移動軌跡52bが特定される。この移動軌跡52bとx軸との交差角に基づき前述と同様に回転角βが特定されてもよい。同様に、基準座標系と視野座標系とのずれの特定にあたって、工具20が、Y軸及びZ軸に交差する送り方向に移動させられてもよい。撮像装置33では基準座標系のY軸及びZ軸に交差する方向の移動軌跡52cが特定される。このとき、送り方向の角度と撮像装置33の視野上での移動軌跡52cの角度とが比較されればよい。この移動軌跡52cに基づき前述と同様に回転角βが特定されてもよい。
 以上のように、工作機械10の基準座標系と撮像装置33の視野座標系とのずれは工具20の移動軌跡52a~52cに基づき特定される。こうして基準座標系と視野座標系とのずれが特定されれば、撮像装置33は工作機械10に対して正確な位置に配置されることが可能である。その結果、撮像装置33は工具20の寸法を正確に測定することができる。従って、寸法の測定に基づき算出されたずれは工作機械10の位置決めの補正に正確に用いられることが可能である。ワークの加工精度は向上する。
 以上のような実施形態では、工作機械10の例として立形のマシニングセンタを用いて本発明の工具寸法の測定方法及び測定装置が説明されたものの、本発明の工具寸法の測定方法及び測定装置は、例えば横形のマシニングセンタやその他の工作機械によっても実現されることが可能である。また、工具20の例としてボールエンドミルを用いて本発明の工具寸法の測定方法及び測定装置が説明されたものの、本発明の工具寸法の測定方法及び測定装置は、例えばフラットエンドミルやドリル等、その他の工具によっても実現されることが可能である。
 10  工作機械
 13  寸法測定装置
 20  工具
 33  撮像装置
 42  演算装置
 51  輪郭線
 52  移動軌跡
 52a  移動軌跡
 52b  移動軌跡
 52c  移動軌跡
 53  中心軸線
 V  視野

Claims (6)

  1.  工具と相対移動する撮像装置を用いて前記工具を撮像し、得た画像データにより前記工具の寸法を測定する工具寸法の測定方法において、
     所定の送り方向に沿って移動する前記工具を前記撮像装置によって複数の位置で撮像し、前記移動の各位置ごとに生成された複数の画像データを読み出す工程と、
     複数の前記画像データの各々で前記工具の輪郭を特定して、特定した複数の輪郭に基づき前記工具の移動軌跡と前記工具の中心軸線とを特定する工程と、
     を備えることを特徴とする工具寸法の測定方法。
  2.  請求項1に記載の工具寸法の測定方法において、前記工具の移動軌跡は、前記工具の輪郭に対して予め定めた位置関係を有する基準点の、複数の前記画像データ上での位置の推移を算出することによって特定される工具寸法の測定方法。
  3.  請求項1に記載の工具寸法の測定方法において、前記工具の中心軸線は、前記工具の輪郭に対して予め定めた位置関係を有する基準線の、複数の前記画像データ上での平均を算出することによって特定される工具寸法の測定方法。
  4.  請求項1に記載の工具寸法の測定方法において、特定された前記工具の移動軌跡及び中心軸線に基づき前記工具の輪郭を用いて前記工具の刃先位置及び工具径の少なくともいずれか1つを特定する工程をさらに備える工具寸法の測定方法。
  5.  工具を撮像して得た画像データにより前記工具の寸法を測定する工具寸法の測定装置において、
     所定の送り方向に沿って移動する前記工具を複数の位置で撮像して前記移動の各位置ごとに複数の画像データを生成する撮像装置と、
     複数の前記画像データの各々で前記工具の輪郭を特定して、特定した複数の輪郭に基づき前記工具の移動軌跡と前記工具の中心軸線とを特定する演算装置と、
     を備えることを特徴とする工具寸法の測定装置。
  6.  主軸に装着された工具を撮像して得た画像データにより機上で工具の寸法を測定する工作機械において、
     所定の送り方向に沿って相対的に移動する前記工具を複数の位置で撮像して前記移動の各位置ごとに複数の画像データを生成する撮像装置と、
     複数の前記画像データの各々で前記工具の輪郭を特定して、特定した複数の輪郭に基づき前記工具の移動軌跡と前記工具の中心軸線とを特定し、特定した前記工具の移動軌跡に基づき、工作機械に設定される直交2軸の平面座標系と、前記撮像装置の視野内に設定されて工作機械の平面座標系に関連付けられる直交2軸の平面座標系とのずれを特定する演算装置と、
     を備え、前記ずれを補正するように制御することを特徴とする工作機械。
PCT/JP2011/074847 2010-10-27 2011-10-27 工具寸法の測定方法及び測定装置、並びに工作機械 WO2012057280A1 (ja)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP11836413.2A EP2634526B1 (en) 2010-10-27 2011-10-27 Method of measurement and apparatus for measurement of tool dimension and machine tool
CN201180051789.8A CN103189712B (zh) 2010-10-27 2011-10-27 刀具尺寸的测定方法、测定装置以及机床
US13/880,015 US9329029B2 (en) 2010-10-27 2011-10-27 Method of measurement and apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2010241406A JP5725796B2 (ja) 2010-10-27 2010-10-27 工具の測定方法及び測定装置、並びに工作機械
JP2010-241406 2010-10-27

Publications (1)

Publication Number Publication Date
WO2012057280A1 true WO2012057280A1 (ja) 2012-05-03

Family

ID=45993983

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2011/074847 WO2012057280A1 (ja) 2010-10-27 2011-10-27 工具寸法の測定方法及び測定装置、並びに工作機械

Country Status (5)

Country Link
US (1) US9329029B2 (ja)
EP (1) EP2634526B1 (ja)
JP (1) JP5725796B2 (ja)
CN (1) CN103189712B (ja)
WO (1) WO2012057280A1 (ja)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115338690A (zh) * 2021-05-13 2022-11-15 芝浦机械株式会社 检测工具的形状的装置以及检测工具的形状的方法

Families Citing this family (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ITBO20120221A1 (it) * 2012-04-20 2013-10-21 Marposs Spa Metodo per posizionare un utensile di una macchina utensile nel campo visivo di un sistema di visione e relativa macchina utensile
CN105246646B (zh) 2013-03-15 2019-02-19 美商麦克鲁森公司 微型车床
JP5766755B2 (ja) * 2013-08-16 2015-08-19 ファナック株式会社 ワイヤ放電加工機において、回転軸に取り付けた回転工具の回転触れを補正する方法及び、補正する機能を有するワイヤ放電加工機
DE112014006253T5 (de) * 2014-01-24 2016-10-27 Mitsubishi Electric Corporation Werkzeugformmessvorrichtung und Werkzeugformmessverfahren
JP6588704B2 (ja) * 2015-01-15 2019-10-09 中村留精密工業株式会社 工具刃先の検出方法及び装置並びに工具補正値の設定装置
CN104950811B (zh) * 2015-06-16 2017-10-31 华中科技大学 一种数控机床进给系统装配质量的快速判别方法
FR3068457B1 (fr) * 2017-06-30 2019-08-16 Lectra Procede de determination d'une dimension entre le dos et le fil tranchant d'une lame vibrante montee sur un outil de coupe
EP3450909A1 (en) * 2017-09-05 2019-03-06 Renishaw PLC Non-contact optical tool setting apparatus and method
KR101878630B1 (ko) * 2018-01-24 2018-07-13 주식회사 푸름인더스트리 영상 기반 머신툴 프리세터 자동화 시스템
JP6608006B1 (ja) * 2018-07-12 2019-11-20 Dmg森精機株式会社 工作機械
CN108943086B (zh) * 2018-07-18 2024-05-03 南通超达装备股份有限公司 一种汽车搪塑表皮弱化专用设备
JP6978456B2 (ja) 2019-02-28 2021-12-08 ファナック株式会社 情報処理装置および情報処理方法
JP6997123B2 (ja) * 2019-02-28 2022-02-03 ファナック株式会社 情報処理装置および情報処理方法
JP6978457B2 (ja) 2019-02-28 2021-12-08 ファナック株式会社 情報処理装置および情報処理方法
JP6709316B1 (ja) 2019-07-16 2020-06-10 Dmg森精機株式会社 測定装置
JP7473306B2 (ja) * 2019-08-14 2024-04-23 ファナック株式会社 機上測定装置、工作機械、および、機上測定方法
CN111047578B (zh) * 2019-12-12 2023-07-18 深圳精匠云创科技有限公司 刀具检测装置及其检测方法
CN111578843A (zh) * 2020-03-06 2020-08-25 维嘉数控科技(苏州)有限公司 一种pcb钻刀检测装置及方法、pcb钻孔设备
JP7419164B2 (ja) * 2020-05-29 2024-01-22 株式会社キーエンス 画像寸法測定装置
DE112021003435T5 (de) * 2020-06-26 2023-05-17 Shibaura Machine Co., Ltd. Verfahren zum Messen einer Rotationsachsenmittelposition einer Werkzeugmaschine
JP7472079B2 (ja) 2020-06-26 2024-04-22 芝浦機械株式会社 工作機械の回転軸中心位置計測方法
CN111774930B (zh) * 2020-07-27 2022-06-07 上海威研精密科技有限公司 一种视觉在机对刀仪及其对刀方法
CN112683193B (zh) * 2020-11-06 2022-04-22 西安交通大学 基于机器视觉的刀具类型判别及几何参数检测方法及系统
CN115697628A (zh) * 2020-11-11 2023-02-03 Dmg森精机株式会社 图像处理装置以及机床
CN114623780B (zh) * 2022-01-26 2023-06-27 深圳职业技术学院 刀尖三维重建的检测装置及在线检测方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0241856A (ja) * 1988-07-28 1990-02-13 Toyoda Mach Works Ltd 刃具形状測定機能を備えた工作機械
JPH10138100A (ja) * 1996-11-11 1998-05-26 Mori Seiki Co Ltd Nc工作機械における工具位置測定方法及びその方法のプログラムを記録した媒体
JP2005324300A (ja) 2004-05-17 2005-11-24 J-Net:Kk 極細工作具の測定装置、及びその測定装置を用いた基準位置設定装置及び傾き測定装置
JP2006113822A (ja) * 2004-10-14 2006-04-27 Kanazawa Univ 加工装置、加工装置の制御方法および工具ステーション
JP2010019559A (ja) * 2008-07-08 2010-01-28 J-Net:Kk 測定装置

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE19942980A1 (de) * 1999-09-09 2001-03-15 Heilig & Schwab Gmbh Vorrichtung und Verfahren zum Vermessen von Maschinenwerkzeugen
DE10000491B4 (de) * 2000-01-08 2004-09-23 Kelch Gmbh + Co Werkzeugmaschinenfabrik Verfahren und Messeinrichtung zum Vermessen eines Rotationswerkzeuges
JP4105926B2 (ja) * 2002-09-30 2008-06-25 株式会社新川 ボンディング装置におけるオフセット測定機構及びボンディング装置におけるオフセット測定方法
DE202005015488U1 (de) * 2005-07-21 2006-03-16 E. Zoller GmbH & Co. KG Einstell- und Messgeräte Mess- und/oder Einstellgerät mit einer drehbaren Werkzeugaufnahmespindel
JP2008070143A (ja) * 2006-09-12 2008-03-27 Soatec Inc 光学式測定システム
CN201026577Y (zh) * 2007-02-12 2008-02-27 天津市青山精密机械技术有限公司 数控机床精密数字刀具预调测量仪图像自动跟踪测量装置
DE102007047499B4 (de) * 2007-10-04 2017-04-13 E. Zoller GmbH & Co. KG Einstell- und Messgeräte Verfahren und Vorrichtung zur Erfassung von Informationen eines Werkzeugs
CN101488017B (zh) * 2009-02-24 2010-11-17 上海奈凯电子科技有限公司 基于机械视觉的数控机床加工刀具路径实时控制的方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0241856A (ja) * 1988-07-28 1990-02-13 Toyoda Mach Works Ltd 刃具形状測定機能を備えた工作機械
JPH10138100A (ja) * 1996-11-11 1998-05-26 Mori Seiki Co Ltd Nc工作機械における工具位置測定方法及びその方法のプログラムを記録した媒体
JP2005324300A (ja) 2004-05-17 2005-11-24 J-Net:Kk 極細工作具の測定装置、及びその測定装置を用いた基準位置設定装置及び傾き測定装置
JP2006113822A (ja) * 2004-10-14 2006-04-27 Kanazawa Univ 加工装置、加工装置の制御方法および工具ステーション
JP2010019559A (ja) * 2008-07-08 2010-01-28 J-Net:Kk 測定装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2634526A4

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115338690A (zh) * 2021-05-13 2022-11-15 芝浦机械株式会社 检测工具的形状的装置以及检测工具的形状的方法

Also Published As

Publication number Publication date
CN103189712B (zh) 2015-12-09
EP2634526B1 (en) 2018-01-31
EP2634526A4 (en) 2016-12-21
US20130208286A1 (en) 2013-08-15
CN103189712A (zh) 2013-07-03
JP2012093262A (ja) 2012-05-17
JP5725796B2 (ja) 2015-05-27
US9329029B2 (en) 2016-05-03
EP2634526A1 (en) 2013-09-04

Similar Documents

Publication Publication Date Title
JP5725796B2 (ja) 工具の測定方法及び測定装置、並びに工作機械
JP5832083B2 (ja) 工具寸法の測定方法及び測定装置
JP2009175954A (ja) 加工用ロボットプラグラムの作成装置
EP1693728A1 (en) Servo control device and method of adjusting servo system
JP6570592B2 (ja) 工作機械の機上測定方法および制御装置
KR20100109470A (ko) 날끝 위치 검출 방법 및 날끝 위치 검출 장치
WO2014068667A1 (ja) 加工プログラム作成方法および装置
JP6147389B2 (ja) 工具寸法の測定装置
JP6892070B2 (ja) 工作機械の制御装置の制御パラメータ調節方法、ワークの加工方法および工作機械
JP3215193B2 (ja) 回転工具の刃部形状測定方法及びその装置
JP2016167319A (ja) 加工プログラム作成方法および装置
JP2012091288A (ja) 工具寸法の測定方法及び測定装置
WO2017130412A1 (ja) 加工装置の補正方法および加工装置
EP4134762A1 (en) Machining method
JP2005305579A (ja) Nc工作機械の制御方法及び制御装置
JP7075806B2 (ja) ツールプリセッタにおけるツール形状の測定装置及び測定方法
JP6615285B1 (ja) 工具振れ調整方法および工作機械
JP6219030B2 (ja) 加工用データ生成装置、及び工作機械
JP2001059713A (ja) 棒状切削工具の測定装置
JP2023026357A (ja) 干渉チェック装置、干渉チェック方法、及び、干渉チェックシステム
CN111624946A (zh) 信息处理装置及信息处理方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11836413

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 13880015

Country of ref document: US

WWE Wipo information: entry into national phase

Ref document number: 2011836413

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE