Measuring method, measuring device, machine tool system and electronic equipment
By combining manual and automatic measurement methods, using the reverse movement operation of the probe and the average calculation of multiple measurement values, the problem of accuracy and speed of machine tool measurement of complex workpieces in the existing technology is solved, and higher measurement accuracy and speed are achieved. flexibility.
Patent Information
- Application Number
- CN202411130123.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-16
- Publication Date
- 2024-10-15
AI Technical Summary
Existing machine tools have accuracy and speed problems when measuring complex workpieces. Automatic measurement is limited by the shape of the workpiece, while manual measurement relies on the operator's experience and status.
Using a method that combines manual and automatic measurement, the probe is controlled by the manual operation part to measure the reference distance and position on the workpiece, and the reverse movement operation is performed in the non-enabled state, and the accurate value is obtained through the average calculation of multiple measurement values. measurement results.
It improves the accuracy and consistency of workpiece measurement, can flexibly adapt to workpieces of various shapes, improves accuracy compared to purely manual measurement, and reduces the impact of workpiece shape limitations compared to purely automatic measurement.
Smart Images

Figure CN118769023A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of industrial machinery, and in particular to a measuring method, a measuring device, a machine tool system and an electronic device. Background Art
[0002] In modern manufacturing, machine tools are an integral part of the production process. Machine tools process workpieces by executing machining programs.
[0003] There are two main ways for existing machine tools to measure workpieces. One is automatic measurement, which uses the preset program in the machine tool to automatically measure the workpiece without manual operation, but it is difficult to measure complex workpieces due to the shape of the workpiece. The other is manual measurement, which means that workers manually operate the machine tool to measure the workpiece, but the operator's experience and state affect the measurement speed and accuracy. Summary of the invention
[0004] The present invention provides a measuring method, a measuring device, a machine tool system and an electronic device to solve the problems existing in different workpiece measuring methods.
[0005] According to one aspect of the present invention, there is provided a measuring method, which is applied to a machine tool system, wherein the machine tool system comprises a manual operation unit and a machine tool, wherein the machine tool comprises a probe and a workpiece, wherein the workpiece comprises a first end surface along a first direction;
[0006] The measuring method comprises:
[0007] According to the manual operation instruction of the manual operation unit, the probe is controlled to move in the first direction until it touches the first end surface, the moving distance of the probe is determined as a first reference distance, and the position of the probe is determined as a first reference position;
[0008] When the manual operation unit is in a disabled state, the probe is controlled to perform a first reverse movement operation, wherein the first reverse movement operation is that the probe moves in a direction opposite to the first direction with the first reference position as a starting point and the first reference distance as a moving distance;
[0009] A first measurement value is obtained based on the position of the probe after performing the first reverse movement operation.
[0010] Further, obtaining a first measurement value based on the position of the probe after performing the first reverse movement operation includes:
[0011] Control the probe to perform the first reverse movement operation N times, wherein Pa(i) is the position of the probe after the probe moves in the i-th first reverse movement operation, 1≤i≤N, 2≤N;
[0012] The first measured value Pa is obtained by calculation, Pa={[Pa(1)+Pa(2)+…+Pa(N)] / N}+a.
[0013] Further, the machine tool system includes an end face measurement mode;
[0014] When the machine tool system operates in the end face measurement mode, one or more of the following situations may be included:
[0015] 1) The first direction is the -Z direction, a=-d, and d is the blade length of the probe;
[0016] 2) The first direction is +X or +Y direction, a=r, and r is the radius of the probe;
[0017] 3) The first direction is -X or -Y direction, a=-r.
[0018] Further, the machine tool system includes a two-point centering measurement mode;
[0019] When the machine tool system operates in the two-point measurement mode, a=0.
[0020] Further, the machine tool system includes a two-point centering measurement mode; the workpiece also includes a second end surface along the first direction;
[0021] The measuring method further comprises:
[0022] In the two-point measurement mode, according to the manual operation instruction of the manual operation unit, the probe is controlled to move in the opposite direction of the first direction until it touches the second end surface, the moving distance of the probe is determined as the second reference distance, and the position of the probe is determined as the second reference position;
[0023] When the manual operation unit is in a disabled state, controlling the probe to perform a second reverse movement operation, wherein the second reverse movement operation is that the probe moves in the first direction with the second reference position as a starting point and the second reference distance as a moving distance;
[0024] obtaining a second measurement value based on the position of the probe after performing the second reverse movement operation;
[0025] An average of the first measurement value and the second measurement value is determined as a midpoint of the workpiece along the first direction.
[0026] Further, obtaining a second measurement value based on the position of the probe after performing the second reverse movement operation includes:
[0027] Control the probe to perform the second reverse movement operation M times, wherein Pb(j) is the position of the probe after the probe moves in the jth second reverse movement operation, 1≤j≤M, 2≤M;
[0028] The second measurement value Pb is calculated, Pb=[Pb(1)+Pb(2)+…+Pb(M)] / M.
[0029] Further, the machine tool also includes a probe indicator light;
[0030] The measuring method further comprises:
[0031] Manual measurement is performed according to the manual operation instruction of the manual operation part. When it is detected that the probe touches the first end surface, the probe indicator light is triggered to light up, and the manual operation part is controlled to switch to a disabled state.
[0032] According to another aspect of the present invention, there is provided a measuring device, which is applied to a machine tool system, wherein the machine tool system comprises a manual operation unit and a machine tool, wherein the machine tool comprises a probe and a workpiece, wherein the workpiece comprises a first end surface along a first direction;
[0033] The measuring device comprises:
[0034] a manual measurement module, configured to control the probe to move in the first direction until it touches the first end surface according to a manual operation instruction of the manual operation unit, determine the moving distance of the probe as a first reference distance, and determine the position of the probe as a first reference position;
[0035] an automatic measurement module, for controlling the probe to perform a first reverse movement operation when the manual operation unit is in a disabled state, wherein the first reverse movement operation is that the probe moves in a direction opposite to the first direction with the first reference position as a starting point and the first reference distance as a moving distance;
[0036] The value acquisition module is used to obtain a first measurement value based on the position of the probe after performing the first reverse movement operation.
[0037] According to another aspect of the present invention, a machine tool system is provided, comprising: a manual operation unit, a machine tool and the aforementioned measuring device, wherein the machine tool comprises a probe and a workpiece, wherein the workpiece comprises a first end surface along a first direction.
[0038] According to another aspect of the present invention, there is provided an electronic device, comprising:
[0039] at least one processor;
[0040] and a memory communicatively coupled to the at least one processor;
[0041] The memory stores a computer program that can be executed by the at least one processor. The computer program is executed by the at least one processor so that the at least one processor can perform the measurement method described above.
[0042] In the present invention, the user manually operates the manual operation part to obtain the first reference distance and the first reference position when the probe touches the first end face; sequentially, after the manual measurement is completed, automatic measurement is performed to control the probe to perform a first reverse movement operation, and based on the position of the probe after the first reverse movement operation, a first measurement value is obtained, which can quickly and accurately achieve the measurement of workpieces of different shapes. Compared with pure manual measurement, the present invention performs automatic measurement based on the reference parameters obtained by manual measurement to determine the end face information of the workpiece, which can improve the accuracy and consistency of the measurement results and improve the measurement accuracy; compared with pure automatic measurement, the present invention first uses manual measurement to determine the reference parameters before automatic measurement, is not limited to the shape of the workpiece, and can flexibly measure the shapes of workpieces of various shapes.
[0043] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0045] Figure 1 is a schematic diagram of a measurement method provided by an embodiment of the present invention;
[0046] Figure 2 is a schematic diagram of an operation panel of a machine tool system provided by an embodiment of the present invention;
[0047] Figure 3 Schematic diagram of a machine tool system provided by an embodiment of the present invention performing Z-axis end face measurement;
[0048] Figure 4 is a schematic diagram of Z-axis parameters in an operation panel provided by an embodiment of the present invention;
[0049] Figure 5 is a schematic diagram of another measurement method provided by an embodiment of the present invention;
[0050] Figure 6is a schematic diagram of measuring the X-axis midpoint of a workpiece provided by an embodiment of the present invention;
[0051] Figure 7 is a schematic diagram of X-axis parameters in the operation panel provided by an embodiment of the present invention;
[0052] Figure 8 is a schematic diagram of Y-axis parameters in an operation panel provided by an embodiment of the present invention;
[0053] Fig. 9 is a schematic diagram of a measuring device provided by an embodiment of the present invention;
[0054] Fig.10 It is a schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0055] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only 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 should fall within the scope of protection of the present invention.
[0056] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0057] Figure 1 is a schematic diagram of a measurement method provided by an embodiment of the present invention. This embodiment is applicable to the case of measuring a workpiece. The measurement method can be performed by a measurement device. The measurement device can be implemented in the form of hardware and / or software. The measurement device can be configured in a machine tool and connected to a manual operation unit. Figure 1 As shown, the measurement method includes:
[0058] Step 110: According to the manual operation instruction of the manual operation unit, control the probe to move in a first direction until it touches the first end surface, determine the moving distance of the probe as a first reference distance, and determine the position of the probe as a first reference position;
[0059] Step 120: When the manual operation unit is in a disabled state, the probe is controlled to perform a first reverse movement operation, wherein the first reverse movement operation is that the probe moves in a direction opposite to the first direction with a first reference position as a starting point and a first reference distance as a moving distance;
[0060] Step 130 : Obtain a first measurement value based on the position of the probe after performing the first reverse movement operation.
[0061] The measurement method provided in this embodiment is applied to a machine tool system, and can measure the reference position of a workpiece, such as measuring parameters such as the end faces of the workpiece and the midpoint of the workpiece in different directions. The machine tool system includes a manual operating unit and a machine tool, and the machine tool includes a probe and a workpiece. The probe is installed on the spindle of the machine tool, and the measurement of the workpiece can be achieved by driving the probe to move and contact the workpiece. The manual operating unit and the machine tool can be two independent devices, and the manual operating unit can control the probe of the machine tool; or, the manual operating unit can be set on the machine tool, and the manual operating unit can control the probe. The user directly performs manual operation on the manual operating unit to move the probe. The manual operating unit can be integrated with buttons, steering wheels, touch panels, keyboards, joysticks, dials and other components that can be manually operated by users, but is not limited to this.
[0062] In this embodiment, the optional machine tool is a CNC machine tool, but is not limited thereto. The optional manual operating unit includes a hand wheel. The optional hand wheel has an enable button. When the user presses the enable button, the manual operating unit can be triggered to enter an enabled state to control the movement of the probe. When the user releases the enable button, the manual operating unit enters a disabled state. Alternatively, the hand wheel has an enable switch. When the user controls the enable switch to be turned on, the manual operating unit can be triggered to enter an enabled state to control the movement of the probe. When the user controls the enable switch to be turned off, the manual operating unit enters a disabled state.
[0063] The optional workpiece includes a first end face along the first direction. The optional workpiece also includes a second end face along the first direction. The first direction is parallel to the X-axis, and the workpiece has two end faces along the X-axis direction, and the two end faces are defined as the first end face and the second end face, respectively. Alternatively, the first direction is parallel to the Y-axis, and the workpiece has two end faces along the Y-axis direction, and the two end faces are defined as the first end face and the second end face, respectively. Alternatively, the first direction is parallel to the Z-axis, and the workpiece has an end face along the Z-axis direction, and the end face can be defined as the first end face. It can be understood that the first end face of the X-axis, the second end face of the X-axis, the first end face of the Y-axis, the second end face of the Y-axis, and the first end face of the Z-axis are five end faces of the workpiece in different directions.
[0064] Based on the above machine tool system, the measurement method provided in this embodiment combines manual measurement and automatic measurement, which can flexibly measure workpieces of various shapes while ensuring the accuracy and consistency of the measurement.
[0065] First, manual measurement is performed. Specifically, the user operates the manual operation unit, and the manual operation unit generates a manual operation instruction according to the user's operation to control the movement of the probe. Exemplarily, the manual operation instruction input by the user is to control the probe to move from the -X direction to the +X direction to manually detect an end face of the workpiece along the X-axis, then the first direction is the +X direction, the end face to be measured is the first end face, the probe moves from the -X direction to the +X direction, when the probe touches the end face to be measured, the user stops the manual operation, the measuring device can obtain the distance from the starting point of the probe to the current position point and determine the moving distance as the first reference distance, the measuring device can also obtain the coordinate value of the current position point of the probe on the X-axis and determine the coordinate value as the first reference position. It can be understood that when the probe touches the first end face, the coordinate value of the current position point of the probe on the X-axis is the position of the probe, that is, the first reference position.
[0066] When the manual measurement is finished, the user stops operating the manual operation unit, and the manual operation unit is switched to a non-enabled state, and the measuring device controls to enter the automatic measurement process, and automatically controls the probe to perform a first reverse movement operation, and obtains a first measurement value based on the position of the probe after performing the first reverse movement operation. Specifically, in the first reverse movement operation, the probe is controlled to move with the first reference position as the starting point, the moving direction of the probe is the opposite direction of the first direction, and the moving distance of the probe is the first reference distance, then the first measurement value can be obtained based on the position after the probe moves. Exemplarily, the first direction is the +X direction, and the opposite direction of the first direction is the -X direction, then the moving direction of the probe in the first reverse movement operation is from the +X direction to the -X direction.
[0067] In the present invention, the user manually operates the manual operation part to obtain the first reference distance and the first reference position when the probe touches the first end face; sequentially, after the manual measurement is completed, automatic measurement is performed to control the probe to perform a first reverse movement operation, and based on the position of the probe after the first reverse movement operation, a first measurement value is obtained, which can quickly and accurately achieve the measurement of workpieces of different shapes. Compared with pure manual measurement, the present invention performs automatic measurement based on the reference parameters obtained by manual measurement to determine the end face information of the workpiece, which can improve the accuracy and consistency of the measurement results and improve the measurement accuracy; compared with pure automatic measurement, the present invention first uses manual measurement to determine the reference parameters before automatic measurement, is not limited to the shape of the workpiece, and can flexibly measure the shapes of workpieces of various shapes.
[0068] The optional machine tool also includes a probe indicator light; the measuring method also includes: performing manual measurement according to the manual operation instruction of the manual operation part, when it is detected that the probe touches the first end face, triggering the probe indicator light to light up, and controlling the manual operation part to switch to a non-enabled state.
[0069] In this embodiment, during the manual measurement process, the manual operation unit is in an enabled state to control the movement of the probe. When it is detected that the probe touches the first end face, the probe indicator light is triggered to light up, and the manual operation unit is controlled to switch to a non-enabled state. When the probe indicator light is lit, the user can be directly prompted to stop the manual operation. When the user stops the manual operation, the manual operation unit is switched to a non-enabled state. If the user does not stop the manual operation in time, the measuring device also directly controls the manual operation unit to switch to a non-enabled state when the probe contacts the end face, which can avoid the movement of the probe caused by the user's failure to stop the manual operation in time, thereby improving the accuracy of the measurement result.
[0070] It should be noted that the machine tool is also equipped with a plurality of indicator lights with different functions to instruct the user when performing different operations. For example, when the user presses the "measurement start" button on the operation panel, the corresponding function indicator light in the machine tool system is controlled to light up to indicate to the user that the test has been turned on.
[0071] The measurement modes of the machine tool system provided by the present invention include an end face measurement mode and a two-point centering measurement mode. Figure 2 Schematic diagram of the operation panel of the machine tool system provided by the embodiment of the present invention, such as Figure 2 As shown, the machine tool system includes an operation panel, on which measurement mode selection buttons are arranged, including an "end face measurement" button and a "two-point centering" button.
[0072] If the user presses the "end face measurement" button on the operation panel, the machine tool system enters the end face measurement mode. When the machine tool system works in the end face measurement mode, multiple end faces of the workpiece can be measured, such as the workpiece end face from -X direction to +X direction, the workpiece end face from +X direction to -X direction, the workpiece end face from -Y direction to +Y direction, the workpiece end face from +Y direction to -Y direction, and the workpiece end face from +Z direction to -Z direction.
[0073] If the user presses the "Two-point centering" button on the operation panel, the machine tool system enters the two-point centering measurement mode. When the machine tool system works in the two-point centering measurement mode, the midpoint of the workpiece along the X axis and the midpoint of the workpiece along the Y axis can be measured.
[0074] The following describes in detail different measurement modes of the machine tool system through multiple embodiments.
[0075] Optionally, obtaining a first measurement value based on a position of the probe after performing the first reverse movement operation includes:
[0076] The probe is controlled to perform N first reverse movement operations, wherein Pa(i) is the position of the probe after movement in the i-th first reverse movement operation, 1≤i≤N, 2≤N; the first measurement value Pa is calculated, Pa={[Pa(1)+Pa(2)+…+Pa(N)] / N}+a.
[0077] The optional machine tool system includes an end face measurement mode; when the machine tool system works in the end face measurement mode, one or more of the following conditions are included:
[0078] 1) The first direction is the -Z direction, a=-d, d is the blade length of the probe;
[0079] 2) The first direction is +X or +Y direction, a=r, r is the radius of the probe;
[0080] 3) The first direction is -X or -Y direction, a=-r.
[0081] In this embodiment, the machine tool system works in the end face measurement mode. In the end face measurement mode, manual measurement is first performed to obtain the first reference distance and the first reference position in the first direction; then multiple automatic measurements are performed, and the first measurement value in the first direction is calculated based on the measurement results of the multiple automatic measurements, which can improve the accuracy of the measurement value.
[0082] Figure 3 FIG. 1 is a schematic diagram of a machine tool system according to an embodiment of the present invention performing Z-axis end face measurement. Figure 3 As shown, taking the first direction as the Z-axis-Z direction as an example, the process of measuring the Z-axis end face of the workpiece is as follows:
[0083] The user operates the manual operation unit 201 and manually controls the probe 202 to move from the +Z direction to the -Z direction. When the probe 202 touches the end face 203a to be measured of the workpiece 203, the distance hz from the starting point to the current position of the probe 202 is obtained and the moving distance hz is determined as the first reference distance hz of the Z axis. The coordinate value Zo of the current position of the probe 202 on the Z axis is also obtained and the coordinate value Zo is determined as the first reference position Zo of the Z axis.
[0084] When the manual measurement is finished, the manual operation unit 201 is switched to a disabled state, and the automatic measurement process of the machine 204 is sequentially entered, the probe 202 is controlled to perform multiple first reverse movement operations, and a first measurement value is calculated based on multiple measurement results.
[0085] Specifically, the first reverse movement operation is performed, and the probe 202 moves from the -Z direction to the +Z direction with the first reference position Zo of the Z axis as the starting point. The movement distance of the probe 202 to the +Z direction is the first reference distance hz of the Z axis, and the coordinate value of the position point of the probe 202 after movement on the Z axis is Paz(1).
[0086] Sequentially, the second first reverse movement operation is performed, the probe 202 returns to the first reference position Zo of the Z axis and moves from the -Z direction to the +Z direction using this as a starting point. The moving distance of the probe 202 to the +Z direction is the first reference distance hz of the Z axis, and the coordinate value of the position point of the probe 202 after movement on the Z axis is Paz(2).
[0087] By analogy, the Nth first reverse movement operation is performed, the probe 202 returns to the first reference position Zo of the Z axis and moves from the -Z direction to the +Z direction using this as the starting point. The movement distance of the probe 202 to the +Z direction is the first reference distance hz of the Z axis, and the coordinate value of the position point of the probe 202 after movement on the Z axis is Paz(N).
[0088] The first direction is the -Z direction, then a=-d, d is the blade length of the probe 202. Therefore, the first measurement value Paz of the Z-axis end surface is:
[0089] Paz={[Paz(1)+Paz(2)+…+Paz(N)] / N}-d.
[0090] Figure 4 Schematic diagram of Z-axis parameters in the operation panel provided by an embodiment of the present invention, such as Figure 4 As shown, the value of the P1 position of the right Z axis of the operation panel is [Paz(1)+Paz(2)+…+Paz(N)] / N; the value of the P1 position of the Z axis minus the probe tool length value is the measured value Paz of the Z axis end surface, and the value of the left Z axis of the operation panel is Paz. Exemplarily, it is calculated that [Paz(1)+Paz(2)+…+Paz(N)] / N=-196.2734, and the measuring device writes the measurement result to the P1 position of the right Z axis of the operation panel. Calculate Paz, where Paz=-196.2734-d=-347.5920, and the measuring device writes the value to the left Z axis position of the operation panel. The value of the left Z axis position is used to characterize the Z axis end surface of the workpiece.
[0091] Similarly, if the first direction is the +X or +Y direction, a similar measurement process to the above Z-axis end face can be used to obtain the first measurement value corresponding to the +X or +Y direction end face of the workpiece, wherein a=r in the first measurement value of the +X or +Y direction end face.
[0092] Similarly, if the first direction is the -X or -Y direction, a measurement process similar to the above-mentioned Z-axis end face can be used to obtain the first measurement value corresponding to the -X or -Y direction end face of the workpiece, wherein a=-r in the first measurement value of the -X or -Y direction end face.
[0093] It should be noted that during the automatic measurement process, the movement of the probe 202 is affected by the machine tool's own factors and may result in errors. Therefore, the measurement results of two different first reverse movement operations may be different. In this embodiment, by performing N first reverse movement operations to obtain N measurement results, and calculating the first measurement value based on the N measurement results, the influence of the machine tool's own errors on the first measurement value can be reduced, thereby improving the accuracy of the measurement results.
[0094] Figure 5 is a schematic diagram of another measurement method provided by an embodiment of the present invention, which is suitable for measuring in a two-point centering measurement mode. The optional machine tool system includes a two-point centering measurement mode; the workpiece also includes a second end surface along the first direction; reference Figure 5 As shown, the measuring method also includes:
[0095] Step 140: In the two-point measurement mode, according to the manual operation instruction of the manual operation unit, the probe is controlled to move in the opposite direction of the first direction until it touches the second end surface, and the moving distance of the probe is determined as the second reference distance, and the position of the probe is determined as the second reference position;
[0096] Step 150: When the manual operation unit is in a disabled state, control the probe to perform a second reverse movement operation, wherein the second reverse movement operation is that the probe moves in the first direction with the second reference position as a starting point and the second reference distance as a moving distance;
[0097] Step 160, obtaining a second measurement value based on the position of the probe after performing the second reverse movement operation;
[0098] Step 170: Determine the average of the first measurement value and the second measurement value as the midpoint of the workpiece along the first direction.
[0099] In this embodiment, after the first measurement value in the first direction is obtained, the second end face of the workpiece is measured to obtain the second measurement value, and the average of the first measurement value and the second measurement value obtained along the first direction of the workpiece is the midpoint of the workpiece along the first direction. It can be understood that the workpiece has two opposite end faces along the first direction, and the two end faces are the first end face and the second end face, respectively. The measurement value obtained by measuring with the first end face as the end face to be measured is the first measurement value, and the measurement value obtained by measuring with the second end face as the end face to be measured is the second measurement value.
[0100] The measurement process of the second measurement value is similar to that of the first measurement value, and will not be repeated here.
[0101] Optionally, obtaining a first measurement value based on a position of the probe after performing the first reverse movement operation includes:
[0102] The probe is controlled to perform N first reverse movement operations, wherein Pa(i) is the position of the probe after the probe moves in the i-th first reverse movement operation, 1≤i≤N, 2≤N; the first measurement value Pa is calculated, Pa={[Pa(1)+Pa(2)+…+Pa(N)] / N}+a. The optional machine tool system includes a two-point centering measurement mode; when the machine tool system works in the two-point centering measurement mode, a=0.
[0103] In this embodiment, the machine tool system operates in a two-point centering measurement mode. In the two-point centering measurement mode, manual measurement is first performed to obtain a first reference distance and a first reference position in a first direction; then multiple automatic measurements are performed, and the first measurement value in the first direction is calculated based on the measurement results of the multiple automatic measurements, which can improve the accuracy of the measurement value. Where a = 0, the first measurement value Pa in the first direction is: Pa = [Pa (1) + Pa (2) + ... + Pa (N)] / N.
[0104] Optionally, obtaining a second measurement value based on the position of the probe after performing the second reverse movement operation includes:
[0105] Control the probe to perform M second reverse movement operations, where Pb(j) is the position of the probe after the probe moves in the jth second reverse movement operation, 1≤j≤M, 2≤M;
[0106] The second measurement value Pb is calculated, Pb=[Pb(1)+Pb(2)+…+Pb(M)] / M.
[0107] In this embodiment, the machine tool system operates in a two-point centering measurement mode. In the two-point centering measurement mode, manual measurement is first performed to obtain a second reference distance and a second reference position in a first direction; then multiple automatic measurements are performed, and the second measurement value in the first direction is calculated based on the measurement results of the multiple automatic measurements, which can improve the accuracy of the measurement value.
[0108] Figure 6 is a schematic diagram of measuring the midpoint of the X-axis of a workpiece provided by an embodiment of the present invention, combined with Figure 3 and Figure 6 As shown, taking the first direction as the X-axis +X direction as an example, the opposite direction of the first direction is the -X direction, where Figure 6 Only the top view of the workpiece 203 and the probe 202 along the Z direction is shown. The workpiece 203 includes a Z-axis end surface 203 a , and the workpiece 203 also includes a first end surface 203 b and a second end surface 203 c along the X direction.
[0109] The process of measuring the X-axis midpoint of a workpiece is as follows:
[0110] 1) The user operates the manual operation unit 201 and manually controls the probe 202 to move from the -X direction to the +X direction. When the probe 202 touches the end surface 203b to be measured of the workpiece 203, the distance hxb from the starting point to the current position of the probe 202 is obtained and the moving distance hxb is determined as the first reference distance hxb of the X-axis. The coordinate value Xb of the current position of the probe 202 on the X-axis is also obtained and the coordinate value Xb is determined as the first reference position Xb of the X-axis.
[0111] 2) When the manual measurement is finished, the manual operation unit 201 is switched to a disabled state, and the automatic measurement process of the machine 204 is sequentially entered, the probe 202 is controlled to perform multiple first reverse movement operations, and a first measurement value is calculated based on multiple measurement results.
[0112] 2.1) Specifically, the first reverse movement operation is performed, and the probe 202 moves from the +X direction to the -X direction with the first reference position Xb of the X-axis as the starting point. The moving distance of the probe 202 to the -X direction is the first reference distance hxb of the X-axis, and the coordinate value of the position point of the probe 202 after movement on the X-axis is Pax(1).
[0113] 2.2) Sequentially, the second first reverse movement operation is performed, the probe 202 returns to the first reference position Xb of the X-axis and moves from the +X direction to the -X direction with this as the starting point. The moving distance of the probe 202 to the -X direction is the first reference distance hxb of the X-axis, and the coordinate value of the position point of the probe 202 after movement on the X-axis is Pax(2).
[0114] 2.3) Similarly, the Nth first reverse movement operation is performed, the probe 202 returns to the first reference position Xb of the X-axis and moves from the +X direction to the -X direction with this as the starting point. The moving distance of the probe 202 to the -X direction is the first reference distance hxb of the X-axis, and the coordinate value of the position point of the probe 202 after movement on the X-axis is Pax(N).
[0115] 2.4) The first measurement value Pax of the workpiece along the X-axis is:
[0116] Pax=[Pax(1)+Pax(2)+…+Pax(N)] / N.
[0117] 3) The relative positions of the probe 202 and the workpiece 203 are adjusted so that the probe 202 is located on the side of the workpiece 203 opposite to the second end surface 203 c .
[0118] 4) The user operates the manual operation unit 201 and manually controls the probe 202 to move from the +X direction to the -X direction. When the probe 202 touches the end surface 203c to be measured of the workpiece 203, the distance hxc from the starting point to the current position of the probe 202 is obtained and the moving distance hxc is determined as the second reference distance hxc of the X-axis. The coordinate value Xc of the current position of the probe 202 on the X-axis is also obtained and the coordinate value Xc is determined as the second reference position Xc of the X-axis.
[0119] 5) When the manual measurement is finished, the manual operation unit 201 is switched to a disabled state, and the automatic measurement process of the machine 204 is sequentially entered, the probe 202 is controlled to perform multiple second reverse movement operations, and the second measurement value is calculated based on multiple measurement results.
[0120] 5.1) Specifically, the first second reverse movement operation is performed, and the probe 202 moves from the -X direction to the +X direction with the second reference position Xc of the X-axis as the starting point. The moving distance of the probe 202 to the +X direction is the second reference distance hxc of the X-axis. Then, the coordinate value of the position point of the probe 202 after movement on the X-axis is Pbx(1).
[0121] 5.2) Sequentially, the second reverse movement operation is performed, the probe 202 returns to the second reference position Xc of the X-axis and moves from the -X direction to the +X direction with this as the starting point. The moving distance of the probe 202 to the +X direction is the second reference distance hxc of the X-axis, and the coordinate value of the position point of the probe 202 after movement on the X-axis is Pbx(2).
[0122] 5.3) Similarly, the second reverse movement operation is performed for the Mth time, the probe 202 returns to the second reference position Xc of the X-axis and moves from the -X direction to the +X direction with this as the starting point. The moving distance of the probe 202 to the +X direction is the second reference distance hxc of the X-axis, and the coordinate value of the position point of the probe 202 after movement on the X-axis is Pbx(M).
[0123] 5.4) The second measured value Pbx of the workpiece along the X axis is:
[0124] Pbx=[Pbx(1)+Pbx(2)+…+Pbx(M)] / M.
[0125] 6) Px = (Pax + Pbx) / 2, Px is the midpoint of the workpiece 203 along the X-axis.
[0126] It should be noted that, during the automatic measurement process, the movement of the probe 202 is affected by the machine tool's own factors and has errors, so by performing N first reverse movement operations to obtain N measurement results, the first measurement value is calculated based on the N measurement results, and by performing M second reverse movement operations to obtain M measurement results, the second measurement value is calculated based on the M measurement results. The midpoint of the workpiece along the first direction is calculated based on the first measurement value and the second measurement value of the workpiece along the first direction, which can reduce the influence of the machine tool's own errors on the measurement results and improve the accuracy of the measurement results.
[0127] Figure 7 is a schematic diagram of X-axis parameters in the operation panel provided by an embodiment of the present invention, such as Figure 7 As shown, the value of the P1 position of the right X-axis of the operation panel is the first measurement value Pax of the X-axis, the value of the P2 position of the right X-axis of the operation panel is the second measurement value Pbx of the X-axis, and the value of the left X-axis position of the operation panel is the average of Pax and Pbx. Exemplarily, the first measurement value Pax of the X-axis is calculated to be -281.0258, and the measuring device writes the measurement result to the P1 position of the right X-axis of the operation panel. The second measurement value Pbx of the X-axis is calculated to be -112.3318, and the measuring device writes the measurement result to the P2 position of the right X-axis of the operation panel. The average of the first measurement value Pax and the second measurement value Pbx of the X-axis is (-281.0258-112.3318) / 2=-196.6788, and the measuring device writes the value to the left X-axis position of the operation panel, and the value of the left X-axis position is used to characterize the X-axis midpoint of the workpiece.
[0128] Similarly, if the first direction is parallel to the Y-axis, the Y-axis midpoint of the workpiece can be measured using a measurement process similar to the above-mentioned X-axis midpoint.
[0129] Figure 8 is a schematic diagram of Y-axis parameters in the operation panel provided by an embodiment of the present invention, such as Figure 8 As shown, the value of the P1 position of the Y-axis on the right side of the operation panel is the first measurement value of the Y-axis, the value of the P2 position of the Y-axis on the right side of the operation panel is the second measurement value of the Y-axis, and the value of the Y-axis position on the left side of the operation panel is the average of the first measurement value of the Y-axis and the second measurement value of the Y-axis. Exemplarily, the first measurement value of the Y-axis is calculated to be -311.5737, and the measuring device writes the measurement result to the P1 position of the Y-axis on the right side of the operation panel. The second measurement value of the Y-axis is calculated to be -189.9180, and the measuring device writes the measurement result to the P2 position of the Y-axis on the right side of the operation panel. The average of the first measurement value and the second measurement value of the Y-axis is -250.7458, and the measuring device writes the value to the Y-axis position on the left side of the operation panel, and the value of the Y-axis position on the left side is used to characterize the Y-axis midpoint of the workpiece.
[0130] It can be understood that if the first direction intersects with the X-axis and the Y-axis, then a measurement process similar to the above-mentioned X-axis midpoint is used to obtain the midpoint of the workpiece along the first direction without specifically limiting the first direction.
[0131] Based on the same inventive concept, an embodiment of the present invention provides a measuring device, which is applied to a machine tool system to perform the measuring method described in any embodiment of the present invention. The machine tool system includes a manual operation unit and a machine tool, the machine tool includes a probe and a workpiece, and the workpiece includes a first end surface along a first direction. The measuring device can be integrated in the machine tool or in a host computer.
[0132] Fig. 9 is a schematic diagram of a measuring device provided by an embodiment of the present invention, such as Fig. 9 As shown, the measuring device includes: a manual measurement module 310, an automatic measurement module 320 and a numerical acquisition module 330; the manual measurement module 310 is used to control the probe to move in a first direction until it touches the first end face according to the manual operation instruction of the manual operation part, determine the moving distance of the probe as the first reference distance, and determine the position of the probe as the first reference position; the automatic measurement module 320 is used to control the probe to perform a first reverse movement operation when the manual operation part is in a non-enabled state, wherein the first reverse movement operation is that the probe moves in the opposite direction of the first direction with the first reference position as the starting point and the first reference distance as the moving distance; the numerical acquisition module 330 is used to obtain a first measurement value based on the position of the probe after performing the first reverse movement operation.
[0133] The measuring device provided in the embodiment of the present invention can execute the measuring method provided in any embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method.
[0134] Based on the same inventive concept, an embodiment of the present invention provides a machine tool system, which includes: a manual operation part, a machine tool and the measuring device described in any embodiment of the present invention, the machine tool includes a probe and a workpiece, and the workpiece includes a first end surface along a first direction.
[0135] The machine tool system provided by the embodiment of the present invention can execute the measurement method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0136] Fig.10 is a schematic diagram of an electronic device provided by an embodiment of the present invention. Fig.10As shown, electronic device 410 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic device 410 may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0137] The electronic device 410 includes at least one processor 411, and a memory connected to the at least one processor 411 in communication, such as a read-only memory (ROM) 412, a random access memory (RAM) 413, etc., wherein the memory stores a computer program that can be executed by the at least one processor 411, and the computer program is executed by the at least one processor 411 so that the at least one processor 411 can perform the measurement method described in any embodiment of the present invention, and the processor 411 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 412 or the computer program loaded from the storage unit 418 to the random access memory (RAM) 413. In the RAM 413, various programs and data required for the operation of the electronic device 410 can also be stored. The processor 411, the ROM 412, and the RAM 413 are connected to each other via a bus 414. An input / output (I / O) interface 415 is also connected to the bus 414.
[0138] Multiple components in the electronic device 410 are connected to the I / O interface 415, including: an input unit 416, such as a keyboard, a mouse, etc.; an output unit 417, such as various types of displays, speakers, etc.; a storage unit 418, such as a disk, an optical disk, etc.; and a communication unit 419, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 419 allows the electronic device 410 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0139] The processor 411 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 411 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 411 executes the various methods and processes described above, such as the measurement method described in any embodiment of the present invention.
[0140] An embodiment of the present invention provides a computer-readable storage medium, which stores a computer program, and the computer program is used to implement the measurement method described in any embodiment of the present invention when the processor 411 executes. In some embodiments, the measurement method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 418. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 410 via ROM412 and / or communication unit 419. When the computer program is loaded into RAM413 and executed by the processor 411, one or more steps of the measurement method described above can be performed. Alternatively, in other embodiments, the processor 411 can be configured to perform the method described in any embodiment of the present invention by any other appropriate means (for example, by means of firmware).
[0141] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0142] The computer programs for implementing the measurement methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0143] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0144] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0145] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0146] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0147] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0148] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A measurement method, characterized in that: Applicable to a machine tool system, the machine tool system comprises a manual operation unit and a machine tool, the machine tool comprises a probe and a workpiece, the workpiece comprises a first end surface along a first direction; The measuring method comprises: According to the manual operation instruction of the manual operation unit, the probe is controlled to move in the first direction until it touches the first end surface, the moving distance of the probe is determined as a first reference distance, and the position of the probe is determined as a first reference position; When the manual operation unit is in a disabled state, the probe is controlled to perform a first reverse movement operation, wherein the first reverse movement operation is that the probe moves in a direction opposite to the first direction with the first reference position as a starting point and the first reference distance as a moving distance; A first measurement value is obtained based on the position of the probe after performing the first reverse movement operation.
2. The measuring method according to claim 1, characterized in that: Obtaining a first measurement value based on a position of the probe after performing the first reverse movement operation includes: Control the probe to perform the first reverse movement operation N times, wherein Pa(i) is the position of the probe after the probe moves in the i-th first reverse movement operation, 1≤i≤N, 2≤N; The first measured value Pa is obtained by calculation, Pa={[Pa(1)+Pa(2)+…+Pa(N)] / N}+a.
3. The measuring method according to claim 2, characterized in that: The machine tool system includes an end face measurement mode; When the machine tool system operates in the end face measurement mode, one or more of the following situations may be included: 1) The first direction is the -Z direction, a=-d, and d is the blade length of the probe; 2) The first direction is +X or +Y direction, a=r, and r is the radius of the probe; 3) The first direction is -X or -Y direction, a=-r.
4. The measuring method according to claim 2, characterized in that: The machine tool system includes a two-point centering measurement mode; When the machine tool system operates in the two-point measurement mode, a=0.
5. The measuring method according to claim 1, characterized in that: The machine tool system includes a two-point centering measurement mode; the workpiece also includes a second end surface along the first direction; The measuring method further comprises: In the two-point measurement mode, according to the manual operation instruction of the manual operation unit, the probe is controlled to move in the opposite direction of the first direction until it touches the second end surface, the moving distance of the probe is determined as the second reference distance, and the position of the probe is determined as the second reference position; When the manual operation unit is in a disabled state, controlling the probe to perform a second reverse movement operation, wherein the second reverse movement operation is that the probe moves in the first direction with the second reference position as a starting point and the second reference distance as a moving distance; obtaining a second measurement value based on the position of the probe after performing the second reverse movement operation; An average of the first measurement value and the second measurement value is determined as a midpoint of the workpiece along the first direction.
6. The measuring method according to claim 5, characterized in that: Obtaining a second measurement value based on a position of the probe after performing the second reverse movement operation includes: Control the probe to perform the second reverse movement operation M times, wherein Pb(j) is the position of the probe after the probe moves in the jth second reverse movement operation, 1≤j≤M, 2≤M; The second measurement value Pb is calculated, Pb=[Pb(1)+Pb(2)+…+Pb(M)] / M.
7. The measuring method according to claim 1, characterized in that: The machine tool also includes a probe indicator light; The measuring method further comprises: Manual measurement is performed according to the manual operation instruction of the manual operation part. When it is detected that the probe touches the first end surface, the probe indicator light is triggered to light up, and the manual operation part is controlled to switch to a disabled state.
8. A measuring device, characterized in that: Applicable to a machine tool system, the machine tool system comprises a manual operation unit and a machine tool, the machine tool comprises a probe and a workpiece, the workpiece comprises a first end surface along a first direction; The measuring device comprises: a manual measurement module, configured to control the probe to move in the first direction until it touches the first end surface according to a manual operation instruction of the manual operation unit, determine the moving distance of the probe as a first reference distance, and determine the position of the probe as a first reference position; an automatic measurement module, for controlling the probe to perform a first reverse movement operation when the manual operation unit is in a disabled state, wherein the first reverse movement operation is that the probe moves in a direction opposite to the first direction with the first reference position as a starting point and the first reference distance as a moving distance; The value acquisition module is used to obtain a first measurement value based on the position of the probe after performing the first reverse movement operation.
9. A machine tool system, characterized in that: include: A manually operated portion, a machine tool, and a measuring device according to claim 8, wherein the machine tool comprises a probe and a workpiece, wherein the workpiece comprises a first end surface along a first direction.
10. An electronic device, characterized in that: include: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the measurement method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Control device, measurement system, and measurement method
CN112987646A
Offset information processing method and device, electronic equipment and drilling mechanism
CN113625658A
Automatic probe inserting device and automatic probe inserting method
CN113848349A
Shape measuring apparatus and shape measurement error correction method
US20150233692A1
Position feedback control system
US6519860B1
