Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive effort based on the embodiments of the present invention, are within the scope of the present invention.
It should be noted that all directional indicators (such as up, down, left, right, front, back, 8230; \8230;) in the embodiments of the present invention are only used to explain the relative position relationship between the components, the motion condition, etc. in a specific posture (as shown in the attached drawings), and if the specific posture is changed, the directional indicators are changed accordingly, and the connection can be a direct connection or an indirect connection.
In addition, the descriptions related to "first", "second", etc. in the present invention are only for descriptive purposes and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the feature. In addition, technical solutions between the embodiments may be combined with each other, but must be based on the realization of the technical solutions by a person skilled in the art, and when the technical solutions are contradictory to each other or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
In one embodiment, as shown in fig. 1, a schematic structural diagram of a numerical control machine in one embodiment is shown. Including aprobe 102 and atool 104. The rotatingshaft 106 is the direction of the blade of the tool and the direction of the rotating shaft of the tool during milling. Therotation axis 106 is also referred to as the C-axis direction of the cutter.
Thetool 104 may be embodied as an end mill, twist drill, or the like, as is commonly known in the art. The cutters have the common characteristic of a spiral groove structure, and most cutter manufacturers use the spiral grooves with the same pitch when manufacturing the spiral grooves. Fig. 2 is a schematic structural diagram of a spiral tool of a twist drill according to an embodiment. Figure 3 is a schematic diagram of the helix deployment in one embodiment. Where H may represent a first distance that the probe moves from the detection start position in the blade direction of the tool. The angle beta is the helix angle of the cutter. D refers to the diameter of the tool.
To realize automatic sharpening, the deflection angle in the circumferential direction after the tool is clamped must be measured. After the clamping deflection angle is obtained, the cutter is rotated, and the fact that the righting position of each cutter is the same after measurement is finished is guaranteed, so that the cutter can be ground correctly. Fig. 4 is a schematic diagram of the deflection angle of the tool in one embodiment. The dashed line is the toolinitial position 402 and the solid line is thetool post-swing position 404. The included angle α is the deflection angle.
The method for measuring the clamping deflection angle α of the twist drill is described below by taking the twist drill as an example of the tool.
Therefore, from the definition of twist drill helix angle and helix angle shown in fig. 1, the relationship between the diameter of the tool and the pitch can be clearly known, as follows: tan β = π × D/H. Based on the relational expression, a set of method is designed to calculate the size of the clamping deflection angle of the cutter.
First we get four sets of data on the tool. FIG. 5 is a diagram illustrating a scenario of tool deflection detection in one embodiment. Data acquisition was performed using a touch sensor (capable of detecting X, Y, Z axis displacements in each direction) as shown in fig. 5, to obtain Z axis displacements and C axis rotation angles. The shaft arrangement is shown in figure 1. The probe of the sensor is inserted into the inner side of the spiral blade of the cutter to pick a point, and a Z-axis coordinate and a C-axis rotation angle theta at the point can be obtained by picking one point at a time. The distance along the blade direction of the cutter can be known through the Z-axis coordinate. The C-axis rotation angle θ is the rotation angle of the tool.
In an ideal situation, as shown in fig. 6, the structure of the cutter in one embodiment is schematically shown. Wherein, the point P is the top point position of the cutter, the points P1, P2 and P3 are three points on the spiral line of the cutter respectively, and O1 is the projection of the point P1 on the axis of the cutter, namely the point located on the direction of the cutter body. O2 and O3 are the projections of P2 and P3, respectively, on the C-axis. Fig. 7 is a schematic view showing the spiral line development of the cutter of fig. 6 in one embodiment. Wherein the hypotenuse of the triangle is a helix. FIG. 8 is a schematic view of the angle of rotation of the tool in one embodiment. Due to a certain deviation of the placement of the knife, the knife is rotated by an angle of theta 1' at the same height of the Z axis of PO 1. Therefore, the deflection angle of the tool needs to be calculated so that the starting point of the spiral line is located at the apex of the tool.
In one embodiment, as shown in fig. 9, a schematic flow chart of a deflection method for tool clamping in one embodiment includes:
and step 902, controlling the probe to move a first distance from the detection starting position along the direction of the cutter body of the cutter, rotating the cutter from the clamping position to a first contact position where the cutter is in contact with the probe, and obtaining a first rotation angle corresponding to the first contact position from the clamping position.
The probe starting point position may be a vertex position of the tool, and the first contact position where the probe contacts is a position that is moved by a first distance along the tool body direction of the tool. When the probe start position is a position separated from the top position of the tool by a first distance in the blade direction of the tool, the first contact position may be the top position of the tool. After the probe moves the first distance, the probe does not touch the spiral line of the cutter. The blade direction of the cutter is the C-axis direction in figure 1.
Specifically, the tool is clamped on the numerical control machine, and the tool is rotatable. The numerical control machine controls the probe to move a first distance from the detection starting point position along the cutter body direction of the cutter. The first distance is smaller than the distance between points on two adjacent spiral lines in the direction of the cutter body. The probe is now inside the helical edge of the tool and the probe is not in contact with the tool. Then, since the spiral blade of the cutter is located at a height higher than the inner side of the spiral blade, the probe can be brought into contact with the cutter by rotating the cutter. The numerical control machine rotates the cutter from the clamping position to a first contact position where the cutter is in contact with the probe, and a first rotation angle corresponding to the first contact position from the clamping position is obtained.
Step 904, determining a deflection angle of the tool according to the first rotation angle and the reference rotation angle; the reference rotation angle is determined based on the helix angle of the tool and the first distance.
The spiral angle is an acute angle formed between a tangent line of the cylindrical spiral line and a straight generatrix of the cylindrical surface passing through the tangent point on the cylindrical surface. A tool, the helix angle of which is a fixed value. The numerical control machine can obtain the input spiral angle of the cutter, and can also obtain the spiral angle of the cutter through probe detection. The deflection angle of the tool may refer to a rotation angle from a spiral starting point of the tool to a vertex of the tool. The reference rotation angle is a theoretical value indicating how many degrees the tool should theoretically be rotated when the helix angle of the tool is determined and moved by the first distance.
Specifically, the rotation direction of the cutter may be clockwise or counterclockwise. The numerical controller determines a deflection angle of the tool based on the first rotation angle and the reference rotation angle.
Fig. 10 is a schematic cross-sectional view of one embodiment of the tool rotated clockwise through a first rotational angle. The cutter is rotated to a position where the spiral line start point is located on the cutter axis. Including adetection start position 1002 and the theoretical helix start of the tool is also 1002, aposition 1004 after a first distance has been moved, and an axis ofrotation 1006. The solid curve is a spiral line of the cutter, the position of the left dotted line is a preset position, and the position of the right dotted line is a first contact position. The position of the apex of the tool in the tool clamping position is not the starting point of the helix. The reference rotation angle (2) is an angle that should theoretically be rotated from the detection start position to the first contact position. As can be seen from the figure, the deflection angle of the tool is (3), which is actually obtained by subtracting the reference rotation angle (2) from the first rotation angle (1). Let the first rotation angle be θ 1', the reference rotation angle be θ 1, and the deflection angle be α. Then α = θ 1' - θ 1.
And step 906, rotating the cutter to a preset position according to the deflection angle.
The preset position refers to a position where the spiral line starting point is preset. The preset position is used for indicating the start of the tool sharpening track when the tool sharpening is carried out. For example, rotating to a predetermined position may refer to rotating to a position where the start of the helix is located on the axis of the tool body.
Specifically, the numerical control machine can control the cutter to rotate to a preset position from a clamping position according to a deflection angle. The numerical control machine can obtain a cutter grinding track and grind the cutter at the preset position based on the cutter grinding track.
In the embodiment, in the clamping process of the cutter, it is difficult to achieve that the cutter is in a correct position every time the cutter is clamped. Since the path of the tool is planned based on a preset position during the wear process of the tool, the path is planned after the tool is clamped at a correct position, i.e., the preset position. Because the clamping positions at every time are different, after the probe moves the first distance along the direction of the cutter body of the cutter, the corresponding first rotating angle of the cutter contacting the probe is different, but theoretically, the reference rotating angle of the cutter moving the first distance is determined, so that the deflection angle of the cutter can be determined according to the first rotating angle and the reference rotating angle, the cutter is rotated to the preset position according to the deflection angle, the fixture does not need to be frequently replaced, the operation is simple and convenient, the clamping efficiency of the cutter is improved, and the grinding efficiency of the cutter is improved.
In one embodiment, the obtaining of the helix angle of the tool comprises: controlling the probe to move a second distance along the direction of the cutter body from the contact point position, and rotating the cutter from the contact point position to a second contact position where the cutter is in contact with the probe to obtain a second rotation angle corresponding to the second contact position from the contact point position; the helix angle of the tool is determined based on the second angle of rotation and the second distance.
The contact point position may be the first contact position or any contact position. The second distance may be a preset distance or an arbitrary distance.
Specifically, the numerical control machine controls the probe to move a second distance along the direction of the cutter body from the coordinate of the contact point, and the cutter is not in contact with the probe at the moment. The numerical control machine rotates the cutter to a second contact position where the cutter is in contact with the probe, and a rotation angle corresponding to the position from the contact position to the second position is obtained. The numerical controller may thereby determine the helix angle of the tool based on the second angle of rotation and the second distance.
For example, as shown in fig. 7, when the initial position of the knife is correctly placed, four points P, P1, P2, and P3 are collected as shown in fig. 6, where P, P1, P2, and P3 are all collected points in an ideal case. PO1, O1O2 and O2O3 are the displacement generated along the direction of the cutter body, namely the z-axis; OQ1, Q1Q2, Q2Q3 respectively represent the arc length corresponding to the cutter rotation angle theta 1,theta 2,theta 3. Under the condition that the initial position of the cutter is placed correctly, the points P1, P2 and P3 on the spiral line of the cutter can be acquired under the ideal condition.
From the helix angle defining formula, the following relationship can be obtained:
tanβ = OQ1/PO1=Q1Q2/O1O2=Q2Q3/O2O3
OQ1, Q1Q2 and Q2Q3 respectively represent the arc length of C axis rotation of every two acquisition points and can be calculated by the following formula.
OQ1 = θ1*π*D/360
Q1Q2 = (θ2-θ1)*π*D/360
Q2Q3 = (θ3-θ2)*π*D/360
In general, although the tool is rotated by θ 1' at the same height of PO 1Z axis due to a certain deviation in the placement position of the tool, the relation tan β = Q1Q2/O1O2= Q2Q3/O2O3 still exists, and β can be calculated and then an angle α, that is, a deflection angle of the tool can be estimated.
Then, referring to the rotation angle θ 1, the rotation angle corresponding to PO1 is represented by the following relation:
OQ1= θ1*π*D/360=PO1*tanβ
the reference rotation angle θ 1 can be calculated.
In this embodiment, because the helix angle of the tool may not be known, and the helix angle of the tool changes slightly during use, the probe may be controlled to move a second distance along the tool body from the contact point position of the probe with the helix, the tool is rotated to the second contact position where the tool contacts the probe, a second rotation angle corresponding to the position from the contact point position to the second contact point position is obtained, and the helix angle of the tool is determined according to the second rotation angle and the second distance, so that a more precise helix angle can be obtained, and accuracy of the deflection angle for clamping the tool is improved.
In one embodiment, controlling the probe to move a first distance in a direction of a blade of the tool from the detection start position comprises: the probe is controlled to move a first distance from an apex position of the tool in a direction of a blade of the tool. In this embodiment, the vertex position of the cutter is easy to detect, and the movement calculation amount from the vertex position to the cutter body direction is small, so that the cutter clamping offset efficiency can be improved by controlling the probe to move a first distance from the vertex position of the cutter along the cutter body direction of the cutter, and the cutter grinding efficiency is improved.
In one embodiment, determining the yaw angle of the tool from the first rotation angle and the reference rotation angle comprises: the reference rotation angle is subtracted from the first rotation angle to obtain the deflection angle of the tool.
Rotating the tool to a preset position according to the deflection angle, comprising: rotating the cutter to a clamping position; and rotating the cutter from the clamping position to a preset position according to the deflection angle.
Specifically, as shown in fig. 10, the deflection angle (3) of the tool is equal to the first rotation angle (1) minus the reference rotation angle (2). The numerical control machine can rotate the tool to the clamping position according to the angle rotated from the clamping position. And the numerical control machine rotates the cutter from the clamping position to a preset position according to the deflection angle, so that the spiral line starting point is positioned at the top point of the cutter.
In the embodiment, the reference rotation angle is subtracted from the first rotation angle to obtain the deflection angle of the cutter, the cutter is rotated to the clamping position, the cutter is rotated to the preset position from the clamping position according to the deflection angle, the jig does not need to be frequently replaced, the operation is simple and convenient, the clamping efficiency of the cutter is improved, and the grinding efficiency of the cutter is improved.
In one embodiment, a deflection method for tool clamping includes:
and (a 1) controlling the probe to move a first distance from the vertex position of the cutter along the cutter body direction of the cutter, rotating the cutter from the clamping position to a first contact position where the cutter is in contact with the probe, and obtaining a first rotation angle corresponding to the first contact position from the clamping position.
And (a 2) determining a deflection angle of the tool according to the first rotation angle and the reference rotation angle. The reference rotation angle is determined based on the helix angle of the tool and the first distance.
And (a 3) controlling the probe to move a second distance along the direction of the cutter body from the first contact position, rotating the cutter to a second contact position where the cutter is in contact with the probe, and obtaining a second rotation angle corresponding to the second contact position from the contact position.
And (a 4) subtracting the reference rotation angle from the first rotation angle to obtain a deflection angle of the tool.
And (a 5) rotating the cutter to a clamping position.
And (a 6) rotating the cutter from the clamping position to a preset position according to the deflection angle.
In the embodiment, in the process of clamping the cutter, it is difficult to achieve that the cutter is clamped at a correct position every time. Since the path of the tool is planned based on a preset position during the wear process of the tool, the tool needs to be clamped in a correct position, i.e., the preset position. Because the clamping positions at every time are different, after the probe moves the first distance along the direction of the cutter body of the cutter, the corresponding first rotating angle of the cutter contacting the probe is different, but theoretically, the reference rotating angle of the cutter moving the first distance is determined, so that the deflection angle of the cutter can be determined according to the first rotating angle and the reference rotating angle, the cutter is rotated to the preset position according to the deflection angle, the fixture does not need to be frequently replaced, the operation is simple and convenient, the clamping efficiency of the cutter is improved, and the grinding efficiency of the cutter is improved.
It should be understood that, although the steps in the flowchart of fig. 9 described above are sequentially displayed as indicated by arrows, and the steps in the steps (a 1) to (a 6) are sequentially displayed as indicated by reference numerals, the steps are not necessarily performed sequentially in the order indicated by the arrows or numerals. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in fig. 9 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a part of the steps or stages in other steps.
In one embodiment, as shown in fig. 11, there is provided a tool-holding deflection apparatus, which may be a part of a computer device using a software module or a hardware module, or a combination of both, the apparatus comprising afirst control module 1102, a deflectionangle determination module 1104, and asecond control module 1106, wherein:
thefirst control module 1102 is used for controlling the probe to move a first distance from the detection starting position along the blade direction of the cutter, rotating the cutter from the clamping position to a first contact position where the cutter is in contact with the probe, and obtaining a first rotation angle corresponding to the first contact position from the clamping position;
a deflectionangle determination module 1104 for determining a deflection angle of the tool from the first rotation angle and the reference rotation angle; the reference rotation angle is determined according to the helix angle of the tool and the first distance;
and asecond control module 1106, configured to rotate the tool to a preset position according to the deflection angle.
In the embodiment, in the process of clamping the cutter, it is difficult to achieve that the cutter is clamped at a correct position every time. Since the path of the tool is planned based on a preset position during the wear process of the tool, the path is planned after the tool is clamped at a correct position, i.e., the preset position. Because the clamping position is different every time, after the probe moves the first distance along the blade direction of the cutter, the corresponding first rotation angle of the cutter contacting the probe is different, but theoretically, the reference rotation angle of the cutter moving the first distance is determined, therefore, the deflection angle of the cutter can be determined according to the first rotation angle and the reference rotation angle, the cutter is rotated to the preset position according to the deflection angle, the frequent replacement of a jig is not needed, the operation is simple and convenient, the clamping efficiency of the cutter is improved, and the grinding efficiency of the cutter is improved.
In one embodiment, thefirst control module 1102 is further configured to control the probe to move a second distance along the blade direction from the contact point position, rotate the tool from the contact point position to a second contact position where the tool contacts the probe, and obtain a second rotation angle corresponding to the second contact position from the contact point position;
the deflectionangle determination module 1104 is further configured to determine a pitch angle of the tool according to the second rotation angle and the second distance.
In this embodiment, because the helix angle of the tool may not be known, and the helix angle of the tool changes slightly during use, the probe may be controlled to move a second distance along the tool body from the contact point position of the probe with the helix, the tool is rotated to the second contact position where the tool contacts the probe, a second rotation angle corresponding to the position from the contact point position to the second contact point position is obtained, and the helix angle of the tool is determined according to the second rotation angle and the second distance, so that a more precise helix angle can be obtained, and accuracy of the deflection angle for clamping the tool is improved.
In one embodiment, thefirst control module 1102 is configured to control the probe to move a first distance from an apex position of the tool in a direction of a blade of the tool. In this embodiment, the vertex position of cutter detects easily to it is little to move the calculated volume from the vertex position to the blade direction, consequently moves the first distance along the blade direction of cutter from the vertex position of cutter through the control probe, can improve cutter clamping offset efficiency, thereby improves cutter coping efficiency.
In one embodiment, the yawangle determination module 1104 is configured to subtract the reference rotation angle from the first rotation angle to obtain a yaw angle of the tool; asecond control module 1106 for rotating the tool to a clamping position; and rotating the cutter from the clamping position to a preset position according to the deflection angle.
In this embodiment, the vertex position of the cutter is easy to detect, and the movement calculation amount from the vertex position to the cutter body direction is small, so that the cutter clamping offset efficiency can be improved by controlling the probe to move a first distance from the vertex position of the cutter along the cutter body direction of the cutter, and the cutter grinding efficiency is improved.
For the specific definition of the deflecting device for tool clamping, reference may be made to the above definition of the deflecting method for tool clamping, which is not described herein again. The modules in the tool-holding deflection device described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, as shown in fig. 12, a numerical control machine is provided, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the embodiments of the deflecting method for clamping each tool when executing the computer program. It will be appreciated by those skilled in the art that the configuration shown in fig. 12 is a block diagram of only a portion of the configuration associated with the present application, and is not intended to limit the computing device to which the present application may be applied, and that a particular computing device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-described embodiments of the deflection method of tool clamping.
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a non-volatile computer readable storage medium, and when executed, may include the processes of the above embodiments of the methods. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), for example.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.