Optical tool setting method and device for ultra-precision lathe

By using the floating mark technology on the camera display screen in ultra-precision lathes, the tool center positions of the new tool and the old tool are coincident, which solves the problems of low tool setting accuracy and tool changing efficiency in the existing technology, and improves the tool changing process. efficiency and accuracy.

CN116689803BActive Publication Date: 2024-08-23GENERAL TECH GRP MASCH TOOL ENG RES INST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310842280.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-10
Publication Date
2024-08-23
Estimated Expiration
2043-07-10

AI Technical Summary

Technical Problem

The existing tool setting method for ultra-precision turning involves the loss of consumables through multiple trial cuts, is time-consuming, and the tool setting accuracy relies on the repeated positioning accuracy of the camera fixture, and lacks a fast and accurate tool change method.

Method used

By floating and marking the tool center position of the old tool on the camera display screen, the tool center imaging position of the new tool is controlled to coincide with the tool center imaging position of the old tool, so that the new tool can be calibrated, simplifying the tool changing process and improving tool changing efficiency.

Benefits of technology

It reduces the loss of new tools and workpieces, simplifies the tool setting process, avoids coordinate conversion between the camera coordinate system and the lathe coordinate system, and improves the efficiency and position accuracy of the tool change process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116689803B
    Figure CN116689803B
Patent Text Reader

Abstract

The present invention provides an optical tool setting method and device for an ultra-precision lathe, belonging to the technical field of machine tool workpiece feed motion control, including: when it is necessary to replace a first tool on the tool holder of an ultra-precision lathe with a second tool, a suspended mark is made on the imaging position of the tool center of the first tool on the display screen of a camera; the first tool is replaced with the second tool; the imaging position of the tool center of the second tool on the display screen is controlled to coincide with the suspended mark, so as to achieve tool setting of the second tool. When there is a need to change tools, the ultra-precision lathe of the present invention achieves tool setting of the new tool by controlling the imaging position of the tool center of the new tool on the display screen of the camera to coincide with the imaging position of the tool center of the old tool in a tool setting completion state, thereby ensuring the accuracy of tool setting of the new tool during tool changing and improving the efficiency of tool changing of the ultra-precision lathe.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of machine tool workpiece feeding motion control, and in particular to an optical tool setting method and device for an ultra-precision lathe. Background Art

[0002] Ultra-precision turning by machine tools can achieve nanometer-level precision, and the accuracy of the tool position directly affects the surface quality and surface accuracy of the workpiece. The tool setting time when changing the tool directly affects the processing efficiency. Therefore, fast and accurate tool setting is crucial in the ultra-precision machining process.

[0003] At present, there are two main tool setting methods for ultra-precision turning: one is the trial cutting method, which measures the size of the cutting residue after each trial cutting to determine whether it is undercut or overcut, calculates the adjustment amount of the tool position based on the measurement results, and continues trial cutting after adjusting the tool position until there is no residue or the residue size meets the requirements. However, it is necessary to cut the workpiece multiple times, so tool setting parts need to be prepared, and the tool setting process will consume the tool setting parts and generate excess consumables; in addition, repeated trial cutting is required after each tool change, which is complicated and time-consuming. The second is the optical tool setting method, which uses an optical tool setting instrument to identify the tool contour, calculates the tool center position through the machine tool coordinates, and adjusts the tool position by calculating the distance between the tool and the workpiece. The tool setting is relatively accurate, but the position relationship of the tool must be calculated each time the tool is changed. It is very dependent on the repeat positioning accuracy of the camera fixture, and there is still room for optimization in tool setting time and accuracy.

[0004] Therefore, there is an urgent need to provide a lathe tool setting method that overcomes the above-mentioned defects. Summary of the invention

[0005] In order to solve the above problems, the present invention provides an optical tool setting method and device for an ultra-precision lathe. When the ultra-precision lathe needs to change tools, the imaging position of the new tool center on the camera display screen is controlled to coincide with the imaging position of the old tool center in a tool setting completion state, thereby achieving tool setting of the new tool, ensuring the accuracy of tool setting of the new tool during tool changing and improving the efficiency of tool changing of the ultra-precision lathe.

[0006] In a first aspect, the present invention provides an optical tool setting method for an ultra-precision lathe, the method comprising:

[0007] When it is necessary to replace the first tool on the tool holder of the ultra-precision lathe with the second tool, a floating mark is made on the imaging position of the tool center of the first tool on the display screen of the camera;

[0008] replacing the first cutting tool with the second cutting tool;

[0009] The tool center imaging position of the second tool on the display screen is controlled to coincide with the floating mark to achieve tool alignment of the second tool.

[0010] According to the optical tool setting method for an ultra-precision lathe provided by the present invention, the process of identifying the tool center imaging position of a specific tool on the display screen includes:

[0011] Performing tool contour recognition on the imaging image of the specific tool on the display screen;

[0012] Based on the tool contour recognition result, determining the tool center imaging position of the specific tool on the display screen;

[0013] The specific tool is the first tool or the second tool.

[0014] According to the optical tool setting method for an ultra-precision lathe provided by the present invention, if the first tool is the first tool clamped by a tool holder of the ultra-precision lathe, the method further comprises:

[0015] The first cutting tool is calibrated.

[0016] According to the optical tool setting method for an ultra-precision lathe provided by the present invention, the first tool is set by using a trial cutting tool setting method or a traditional optical tool setting method.

[0017] According to the optical tool setting method for an ultra-precision lathe provided by the present invention, setting the first tool comprises:

[0018] Clamping a cylindrical workpiece on the spindle end face of an ultra-precision lathe, and controlling the coaxiality of the cylindrical workpiece and the rotation axis of the spindle of the ultra-precision lathe to be greater than a preset threshold;

[0019] Adjusting the position of the camera so that the camera is perpendicular to the axis direction of the ultra-precision lathe spindle and the front end surface of the cylindrical workpiece is located within the camera window;

[0020] Based on the length of the straight line segment of the end face of the cylindrical workpiece on the display screen, adjusting the vertical height of the camera so that the imaging focus of the camera is located on the spindle axis of the ultra-precision lathe;

[0021] Adjusting the height of the tool holder to achieve vertical tool alignment of the first tool;

[0022] The tool center imaging position of the first tool on the display screen is adjusted to achieve tool alignment of the first tool in a horizontal direction.

[0023] According to the optical tool setting method for an ultra-precision lathe provided by the present invention, the vertical height of the camera is adjusted based on the length of the straight line segment of the end face of the cylindrical workpiece on the display screen so that the imaging focus of the camera is located on the spindle axis of the ultra-precision lathe, comprising:

[0024] The vertical height of the camera is adjusted so that the length of the straight line segment of the end face of the cylindrical workpiece on the display screen reaches the maximum, and at this time, the imaging focus of the camera is located on the spindle axis of the ultra-precision lathe.

[0025] According to the optical tool setting method for an ultra-precision lathe provided by the present invention, the step of adjusting the height of the tool holder to achieve tool setting in a vertical direction of the first tool comprises:

[0026] The height of the tool holder is adjusted so that the tool image of the first tool on the display screen is clearest, and at this time, the tool setting of the first tool in the vertical direction is achieved.

[0027] According to the optical tool setting method for an ultra-precision lathe provided by the present invention, the step of adjusting the tool center imaging position of the first tool on the display screen to achieve tool setting in the horizontal direction of the first tool includes:

[0028] Extending the end face straight line segment of the cylindrical workpiece on the display screen to the edge of the display screen to generate a first straight line;

[0029] Taking the center of the straight line segment of the end face of the cylindrical workpiece on the display screen as a starting point, drawing a second straight line in a direction perpendicular to the first straight line and facing the tool;

[0030] The tool center imaging position of the first tool on the display screen is controlled to be located on the first straight line and the second straight line at the same time, so as to realize tool setting in the horizontal direction of the first tool.

[0031] In a second aspect, the present invention further provides an optical tool setting device for an ultra-precision lathe, the device comprising:

[0032] A suspension marking module is used to make a suspension mark on the imaging position of the tool center of the first tool on the display screen of the camera when the first tool on the tool holder of the ultra-precision lathe needs to be replaced with the second tool;

[0033] A tool replacement module, used for replacing the first tool with the second tool;

[0034] The tool setting module is used to move the second tool until the tool center imaging position of the second tool on the display screen coincides with the floating mark, thereby completing the tool setting of the second tool.

[0035] In a third aspect, the present invention provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the optical tool setting method for an ultra-precision lathe as described in the first aspect.

[0036] The optical tool setting method and device for an ultra-precision lathe provided by the present invention include: when it is necessary to replace a first tool on the tool holder of the ultra-precision lathe with a second tool, making a floating mark on the imaging position of the tool center of the first tool on the display screen of the camera; replacing the first tool with the second tool; controlling the imaging position of the tool center of the second tool on the display screen to coincide with the floating mark, so as to achieve tool setting of the second tool. When the ultra-precision lathe of the present invention needs to change tools, tool setting of the new tool is achieved by controlling the imaging position of the tool center of the new tool on the display screen of the camera to coincide with the imaging position of the tool center of the old tool in a tool setting completion state. Compared with the trial cutting tool setting method, the new tool setting process of the present invention does not require cutting the workpiece, which reduces the loss of the new tool and the workpiece and simplifies the tool setting process; compared with the traditional optical tool setting method, the new tool setting process of the present invention focuses on determining the position where the new tool center should move to on the camera display screen, and does not need to determine the position of the tool center in the ultra-precision lathe coordinate system, thus avoiding the coordinate transformation of the new tool contour between the camera coordinate system and the ultra-precision lathe coordinate system, simplifying the tool setting process, and weakening the influence of the repeated positioning of the camera fixture on the tool setting accuracy; therefore, the present invention improves the tool setting efficiency and position accuracy during the tool changing process. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0038] Figure 1 This is a structural example diagram of an optical tool setting instrument provided by the present invention;

[0039] Figure 2 It is a schematic flow chart of the optical tool setting method for an ultra-precision lathe provided by the present invention;

[0040] Figure 3 It is a schematic diagram of a new tool alignment process during tool change of an ultra-precision lathe provided by the present invention;

[0041] Figure 4 It is a schematic diagram of imaging of a cylindrical tool and a tool when the imaging focus of the camera provided by the present invention is located on the axis of the spindle of an ultra-precision lathe;

[0042] Figure 5 It is a schematic diagram of the horizontal tool alignment process of the first tool clamped on the tool holder of the ultra-precision lathe provided by the present invention;

[0043] Figure 6 It is a structural schematic diagram of the optical tool setting device of the ultra-precision lathe provided by the present invention;

[0044] Figure 7 is a schematic diagram of the structure of an electronic device provided by the present invention;

[0045] Reference numerals:

[0046] 710: processor; 720: communication interface; 730: memory; 740: communication bus. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0048] Combine the following Figure 1-Figure 7 The optical tool setting method and device of the ultra-precision lathe of the present invention are described.

[0049] In a first aspect, the present invention provides an optical tool setting instrument for realizing single-point diamond tool setting in an ultra-precision lathe, especially tool setting during tool change. Figure 1 This is a structural example diagram of the optical tool setting instrument. Figure 1 As shown, the optical tool setting instrument includes: a camera and a clamping component, wherein the clamping component is fixed to the upper end of the spindle box, and the camera is clamped by the clamping component and stands on the upper end of the tool holder of the ultra-precision lathe, so that the camera can take pictures of the tool clamped on the tool holder from a bird's-eye view. The camera is connected to the PC via a data cable, and the tool image taken by the camera is transmitted to the PC screen.

[0050] As you can imagine, the function of the clamping component is to clamp the camera so that it stands on the upper end of the ultra-precision lathe tool holder, so that the camera can take pictures of the tool clamped on the tool holder from a bird's-eye view. Therefore, as long as this function can be met, the style and installation position of the clamping component can be flexibly adjusted, and it is not necessary to match the Figure 1 Similarly, the camera and the PC connected to it via a data cable can also be replaced by a camera that integrates shooting, data processing and display.

[0051] Based on the above optical tool setting instrument, the present invention provides an optical tool setting method for an ultra-precision lathe, such as Figure 2 As shown, the method includes:

[0052] S11, when it is necessary to replace the first tool on the tool holder of the ultra-precision lathe with the second tool, a floating mark is made on the imaging position of the tool center of the first tool on the display screen of the camera;

[0053] S12, replacing the first tool with the second tool;

[0054] S13, controlling the tool center imaging position of the second tool on the display screen to coincide with the floating mark, so as to implement tool setting of the second tool.

[0055] When the ultra-precision lathe of the present invention needs to change tools, the camera is controlled to remain motionless, and the imaging position of the new tool's blade center on the camera display screen is controlled to coincide with the imaging position of the old tool's blade center in the tool setting completion state, so as to achieve tool setting of the new tool. It is conceivable that the tool setting position accuracy of the first tool clamped by the ultra-precision lathe tool holder (the first tool that cannot be set through S11 to S13 that can be traced back to the tool change) is crucial to the tool setting of the new tool in the subsequent tool change process. Normally, after the first tool clamped by the ultra-precision lathe tool holder is set, the height of the tool holder is fixed. In the subsequent tool change process, it is defaulted that the new tool does not need to be set in the vertical direction, and only the new tool needs to be set in the horizontal direction (that is, the imaging position of the new tool's blade center on the display screen is controlled to coincide with the imaging position of the old tool's blade center in the tool setting completion state). If you want to further improve the accuracy, keep the vertical direction of the new tool, that is, after S13, adjust the height of the tool holder to make the imaging of the new tool the clearest.

[0056] The optical tool setting method for an ultra-precision lathe provided by the present invention, when the ultra-precision lathe needs to change tools, controls the imaging position of the new tool's core on the camera display screen to coincide with the imaging position of the old tool's core in the tool setting completion state, thereby achieving tool setting of the new tool. Compared with the trial cutting tool setting method, the tool setting process of the present invention does not require cutting of the workpiece, reduces the loss of the new tool and the workpiece, and simplifies the tool setting process; compared with the traditional optical tool setting method, the tool setting process of the present invention focuses on determining the position to which the new tool's core should be moved on the camera display screen, and does not require determining the position of the tool's core in the ultra-precision lathe coordinate system, thereby avoiding the coordinate conversion of the new tool's contour between the camera coordinate system and the ultra-precision lathe coordinate system, simplifying the tool setting process, and weakening the influence of the repeated positioning of the camera fixture on the tool setting accuracy; therefore, the present invention improves the tool setting efficiency and position accuracy during the tool change process.

[0057] Specifically, the process of identifying the tool center imaging position of a specific tool on the display screen in S11 includes:

[0058] S11.1: performing tool contour recognition on the imaging image of the specific tool on the display screen;

[0059] S11.2: Based on the tool contour recognition result, determine the tool center imaging position of the specific tool on the display screen.

[0060] Among them, since the tip shape of the tool used in the ultra-precision lathe is an arc, S11.2 includes:

[0061] Based on the tool contour recognition result, the tool center imaging position of the specific tool on the display screen is determined using the Hough circle algorithm.

[0062] The specific tool is the first tool or the second tool. Of course, the present invention is not limited to the Hough circle algorithm.

[0063] Accordingly, Figure 3 Schematic diagram of the new tool alignment process during the tool change process of the ultra-precision lathe. The old tool is in the default state of tool alignment completion. Before changing the tool, use a camera to shoot the old tool, obtain the position of the old tool center on the camera display screen through contour recognition, and make a floating mark; then remove the old tool and clamp the new tool, shoot the camera again and identify the new tool center in real time on the camera display screen, move the center of the new tool to the floating mark, and adjust the tool holder height to make the new tool image clear to complete the new tool alignment.

[0064] Specifically, if the first tool is the first tool clamped by a tool holder of an ultra-precision lathe, the method further includes:

[0065] The first cutting tool is calibrated.

[0066] At this time, the tool setting of the first tool is called the first tool setting of the ultra-precision lathe, and its position accuracy determines the position accuracy of the new tool setting during the subsequent tool replacement process on the tool holder of the ultra-precision lathe.

[0067] In this regard, the present invention can use a trial cutting tool setting method, a traditional optical tool setting method and other existing tool setting methods to complete the tool setting of the first tool.

[0068] Considering the drawbacks of the trial cutting tool setting method and the traditional optical tool setting method, the present invention provides an optical tool setting method to complete the tool setting of the first tool, specifically:

[0069] Step A: clamping a cylindrical workpiece on the spindle end face of an ultra-precision lathe, and controlling the coaxiality of the cylindrical workpiece and the rotation axis of the spindle of the ultra-precision lathe to be greater than a preset threshold;

[0070] Step B: adjusting the position of the camera so that the camera is perpendicular to the axis direction of the ultra-precision lathe spindle and the front end surface of the cylindrical workpiece is located within the camera window;

[0071] Step C: Based on the length of the straight line segment of the end face of the cylindrical workpiece on the display screen, adjusting the vertical height of the camera so that the imaging focus of the camera is located on the spindle axis of the ultra-precision lathe;

[0072] Step D: adjusting the height of the tool holder to achieve vertical tool alignment of the first tool;

[0073] Step E: adjusting the tool center imaging position of the first tool on the display screen to achieve tool alignment of the first tool in the horizontal direction.

[0074] Wherein, the step C comprises:

[0075] The vertical height of the camera is adjusted so that the length of the straight line segment of the end face of the cylindrical workpiece on the display screen reaches the maximum, and at this time, the imaging focus of the camera is located on the spindle axis of the ultra-precision lathe.

[0076] On the camera display screen, the cylindrical workpiece is a rectangle, and the end straight line segment of the cylindrical workpiece is the side of the rectangle facing the tool. Since the cylindrical workpiece and the spindle are coaxial, the camera height is adjusted so that the imaging focus of the camera is located on the spindle axis of the ultra-precision lathe when the length of the end straight line segment of the cylindrical workpiece is at the maximum position. In layman's terms, the imaging focus of the camera is changed by constantly adjusting the vertical height of the camera, and the length of the end straight line segment of the cylindrical face is calculated in real time. When the length of the end straight line segment of the cylindrical face reaches the maximum, the camera imaging position is on the spindle axis.

[0077] Accordingly, Figure 4 The following is a schematic diagram of the imaging of a cylindrical tool and a cutting tool when the imaging focus of the camera is located on the spindle axis of the ultra-precision lathe (after execution of step C).

[0078] The step D comprises: adjusting the height of the tool holder so that the tool image of the first tool on the display screen is clearest, and at this time, the tool alignment of the first tool in the vertical direction is achieved.

[0079] The vertical tool setting of the first tool is equivalent to adjusting the vertical direction of the first tool to the spindle axis. Since the imaging position of the camera is already at the axis position, it is only necessary to adjust the tool holder height and adjust the tool image in the same window to the clearest to complete the vertical tool setting of the tool.

[0080] The step E comprises:

[0081] Extending the end face straight line segment of the cylindrical workpiece on the display screen to the edge of the display screen to generate a first straight line;

[0082] Taking the center of the straight line segment of the end face of the cylindrical workpiece on the display screen as a starting point, drawing a second straight line in a direction perpendicular to the first straight line and facing the tool;

[0083] The tool center imaging position of the first tool on the display screen is controlled to be located on the first straight line and the second straight line at the same time, so as to realize tool setting in the horizontal direction of the first tool.

[0084] A rectangular coordinate system of the cylindrical workpiece is established with the center of the end straight line segment of the cylindrical workpiece as the origin, the extension line of the end straight line segment of the cylindrical workpiece as the X-axis, the direction perpendicular to the X-axis and pointing to the tool as the Z-axis, and the direction perpendicular to the X-axis and the Z-axis as the Y-axis. After the adjustment in step C is completed, the first straight line (regarded as the X-axis mark) and the second straight line (regarded as the Z-axis mark) are marked on the display screen, and the tool center imaging position of the first tool on the display screen is controlled to be located on the first straight line and the second straight line at the same time, so as to realize the tool setting of the first tool in the horizontal direction.

[0085] Accordingly, Figure 5 This is a schematic diagram of the horizontal tool setting process of the first tool clamped on the tool holder of an ultra-precision lathe. Figure 5 As shown in the figure, the cylindrical workpiece and the camera remain relatively still during tool setting, and the X-axis mark and Z-axis mark on the cylindrical workpiece cannot be moved in the camera display screen. Move the tool horizontally and identify the tool center position in the camera display screen in real time. When the tool center position coincides with the first straight line, tool setting in the Z-axis feed direction of the tool can be completed; when the tool center position coincides with the second straight line, tool setting in the X-axis feed direction of the tool can be completed.

[0086] In short, during the first tool setting of an ultra-precision lathe, the method of the present invention requires the use of tool setting parts but does not require cutting of the tool setting parts, thereby reducing the loss of the tool and tool setting parts; avoiding the coordinate correspondence between the tool contour of the camera coordinate system and the ultra-precision lathe coordinate system, simplifying the tool setting process, and saving time. During the tool change process of the ultra-precision lathe, there is no need to repeat the tool setting process of the new tool. It is only necessary to scan the old tool without moving the camera, mark the position of the old tool's center on the camera display screen, and then move the new tool so that its center coincides with the position of the old tool's center, thereby avoiding the complicated tool setting steps of the new tool during tool change, improving the efficiency of tool change, and ensuring the position accuracy of the new tool after tool change.

[0087] In a second aspect, the optical tool setting device for an ultra-precision lathe provided by the present invention is described. The optical tool setting device for an ultra-precision lathe described below and the optical tool setting method for an ultra-precision lathe described above can refer to each other. Figure 6 The schematic diagram of the structure of the optical tool setting device of the ultra-precision lathe is shown as an example. Figure 6 As shown, the device comprises:

[0088] The suspension marking module 21 is used to make a suspension mark on the imaging position of the tool center of the first tool on the display screen of the camera when the first tool on the tool holder of the ultra-precision lathe needs to be replaced with the second tool;

[0089] A tool replacement module 22, used for replacing the first tool with the second tool;

[0090] The tool setting module 23 is used to move the second tool until the tool center imaging position of the second tool on the display screen coincides with the floating mark, thereby completing the tool setting of the second tool.

[0091] The optical tool setting device for an ultra-precision lathe provided by the present invention can realize the tool setting of a new tool by controlling the imaging position of the new tool's core on the camera display screen to coincide with the imaging position of the old tool's core in the tool setting completion state when the ultra-precision lathe needs to change tools. Compared with the trial cutting tool setting method, the tool setting process of the new tool of the present invention does not require cutting of the workpiece, which reduces the loss of the new tool and the workpiece, and simplifies the tool setting process; compared with the traditional optical tool setting method, the tool setting process of the new tool of the present invention focuses on determining the position to which the new tool's core should be moved on the camera display screen, and does not need to determine the position of the tool's core in the ultra-precision lathe coordinate system, avoiding the coordinate conversion of the new tool's contour between the camera coordinate system and the ultra-precision lathe coordinate system, simplifying the tool setting process, and weakening the influence of the repeated positioning of the camera fixture on the tool setting accuracy; therefore, the present invention improves the efficiency and position accuracy of tool setting during tool change.

[0092] Based on the above embodiments, as an optional embodiment, the process of identifying the tool center imaging position of a specific tool on the display screen includes:

[0093] Performing tool contour recognition on the imaging image of the specific tool on the display screen;

[0094] Based on the tool contour recognition result, determining the tool center imaging position of the specific tool on the display screen;

[0095] The specific tool is the first tool or the second tool.

[0096] Based on the above embodiments, as an optional embodiment, the device further includes: a second tool setting module, which is used to:

[0097] When the first tool is the first tool clamped on the tool holder of the ultra-precision lathe, the first tool is calibrated.

[0098] On the basis of the above embodiments, as an optional embodiment, the device further includes: the second tool setting module includes the first tool setting unit or the second tool setting unit;

[0099] The first tool setting unit is used to set the first tool by using a trial cutting tool setting method or a traditional optical tool setting method.

[0100] The second tool setting unit comprises:

[0101] A clamping unit, used for clamping a cylindrical workpiece on the spindle end face of an ultra-precision lathe, and controlling the coaxiality between the cylindrical workpiece and the rotation axis of the spindle of the ultra-precision lathe to be greater than a preset threshold;

[0102] A camera position adjustment subunit, used for adjusting the position of the camera so that the camera is perpendicular to the axis direction of the ultra-precision lathe spindle and the front end surface of the cylindrical workpiece is located within the camera window;

[0103] A camera height adjustment subunit, for adjusting the vertical height of the camera based on the length of the straight line segment of the end face of the cylindrical workpiece on the display screen so that the imaging focus of the camera is located on the spindle axis of the ultra-precision lathe;

[0104] A vertical tool setting unit, used for adjusting the height of the tool holder to achieve vertical tool setting of the first tool;

[0105] The horizontal tool alignment subunit is used to adjust the tool center imaging position of the first tool on the display screen to achieve horizontal tool alignment of the first tool.

[0106] Based on the above embodiments, as an optional embodiment, the camera height adjustment subunit is specifically used for:

[0107] The vertical height of the camera is adjusted so that the length of the straight line segment of the end face of the cylindrical workpiece on the display screen reaches the maximum. At this time, the imaging focus of the camera is located on the spindle axis of the ultra-precision lathe.

[0108] Based on the above embodiments, as an optional embodiment, the vertical direction knife alignment unit is specifically used for:

[0109] The height of the tool holder is adjusted so that the tool image of the first tool on the display screen is clearest, and at this time, the tool setting of the first tool in the vertical direction is achieved.

[0110] Based on the above embodiments, as an optional embodiment, the horizontal knife alignment unit is specifically used for:

[0111] A first straight line marking sublayer, used for extending the end straight line segment of the cylindrical workpiece on the display screen to the edge of the display screen to generate a first straight line;

[0112] A second straight line marking sublayer is used to draw a second straight line in a direction perpendicular to the first straight line and facing the tool, starting from the center of the end straight line segment of the cylindrical workpiece on the display screen;

[0113] The horizontal tool alignment sublayer is used to control the tool center imaging position of the first tool on the display screen to be located on the first straight line and the second straight line at the same time, so as to realize the horizontal tool alignment of the first tool.

[0114] Thirdly, Figure 7 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 7 As shown, the electronic device may include: a processor 710, a communication interface 720, a memory 730 and a communication bus 740, wherein the processor 710, the communication interface 720 and the memory 730 communicate with each other through the communication bus 740. The processor 710 may call the logic instructions in the memory 730 to execute the optical tool setting method of the ultra-precision lathe, the method comprising: when it is necessary to replace the first tool on the tool holder of the ultra-precision lathe with the second tool, making a floating mark on the imaging position of the tool center of the first tool on the display screen of the camera; replacing the first tool with the second tool; controlling the tool center imaging position of the second tool on the display screen to coincide with the floating mark, so as to realize the tool setting of the second tool.

[0115] In addition, the logic instructions in the above-mentioned memory 730 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0116] In a fourth aspect, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the optical tool setting method for an ultra-precision lathe provided by the above-mentioned methods, the method including: when it is necessary to replace a first tool on a tool holder of an ultra-precision lathe with a second tool, making a floating mark on the tool center imaging position of the first tool on the display screen of the camera; replacing the first tool with the second tool; and controlling the tool center imaging position of the second tool on the display screen to coincide with the floating mark to achieve tool setting of the second tool.

[0117] In a fifth aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the optical tool setting method for an ultra-precision lathe provided by the above-mentioned methods. The method includes: when it is necessary to replace a first tool on a tool holder of an ultra-precision lathe with a second tool, making a floating mark on the tool center imaging position of the first tool on the display screen of the camera; replacing the first tool with the second tool; and controlling the tool center imaging position of the second tool on the display screen to coincide with the floating mark to achieve tool setting of the second tool.

[0118] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0119] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0120] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. An optical tool setting method for an ultra-precision lathe, characterized in that: The method comprises: When it is necessary to replace the first tool on the tool holder of the ultra-precision lathe with the second tool, a floating mark is made on the imaging position of the tool center of the first tool on the display screen of the camera; replacing the first cutting tool with the second cutting tool; Controlling the tool center imaging position of the second tool on the display screen to coincide with the floating mark to achieve tool setting of the second tool; If the first tool is the first tool clamped by the tool holder of the ultra-precision lathe, the method further comprises: calibrating the first tool; The first tool is set, comprising: Clamping a cylindrical workpiece on the spindle end face of an ultra-precision lathe, and controlling the coaxiality of the cylindrical workpiece and the rotation axis of the spindle of the ultra-precision lathe to be greater than a preset threshold; Adjusting the position of the camera so that the camera is perpendicular to the axis direction of the ultra-precision lathe spindle and the front end surface of the cylindrical workpiece is located within the camera window; Based on the length of the straight line segment of the end face of the cylindrical workpiece on the display screen, the straight line segment of the end face of the cylindrical workpiece is the side of the rectangle facing the tool, adjusting the vertical height of the camera so that the imaging focus of the camera is located on the spindle axis of the ultra-precision lathe; Adjusting the height of the tool holder to achieve vertical tool alignment of the first tool; Adjusting the imaging position of the tool center of the first tool on the display screen to achieve tool setting in the horizontal direction of the first tool; Adjusting the tool center imaging position of the first tool on the display screen to achieve tool setting in the horizontal direction of the first tool includes: Extending the end face straight line segment of the cylindrical workpiece on the display screen to the edge of the display screen to generate a first straight line; Taking the center of the straight line segment of the end face of the cylindrical workpiece on the display screen as a starting point, drawing a second straight line in a direction perpendicular to the first straight line and facing the tool; The tool center imaging position of the first tool on the display screen is controlled to be located on the first straight line and the second straight line at the same time, so as to realize tool setting in the horizontal direction of the first tool.

2. The optical tool setting method for an ultra-precision lathe according to claim 1, characterized in that: The process of identifying the tool center imaging position of a specific tool on the display screen includes: Performing tool contour recognition on the imaging image of the specific tool on the display screen; Based on the tool contour recognition result, determining the tool center imaging position of the specific tool on the display screen; The specific tool is the first tool or the second tool.

3. The optical tool setting method for an ultra-precision lathe according to claim 1, characterized in that: Based on the length of the straight line segment of the end face of the cylindrical workpiece on the display screen, adjusting the vertical height of the camera so that the imaging focus of the camera is located on the spindle axis of the ultra-precision lathe, comprising: The vertical height of the camera is adjusted so that the length of the straight line segment of the end face of the cylindrical workpiece on the display screen reaches the maximum. At this time, the imaging focus of the camera is located on the spindle axis of the ultra-precision lathe.

4. The optical tool setting method for an ultra-precision lathe according to claim 1, characterized in that: Adjusting the height of the tool holder to achieve vertical tool setting of the first tool includes: The height of the tool holder is adjusted so that the tool image of the first tool on the display screen is clearest, and at this time, the tool setting of the first tool in the vertical direction is achieved.

5. An optical tool setting device for an ultra-precision lathe, characterized in that: The optical tool setting device applies the optical tool setting method for the ultra-precision lathe according to any one of claims 1 to 4, and the device comprises: A suspension marking module is used to make a suspension mark on the imaging position of the tool center of the first tool on the display screen of the camera when the first tool on the tool holder of the ultra-precision lathe needs to be replaced with the second tool; A tool replacement module, used for replacing the first tool with the second tool; The tool setting module is used to move the second tool until the tool center imaging position of the second tool on the display screen coincides with the floating mark, thereby completing the tool setting of the second tool.

6. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the optical tool setting method for an ultra-precision lathe according to any one of claims 1 to 4 is implemented.