Measurement control method, electronic equipment and storage medium

By interconnecting the CAD model coordinates and solid coordinates of parts in the measuring instrument, the parts are automatically positioned, which solves the inefficiency problem caused by manual positioning, and realizes automatic measurement and efficient part measurement process.

CN120276375APending Publication Date: 2025-07-08DELIXI ELECTRIC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510435311.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-08
Publication Date
2025-07-08

AI Technical Summary

Technical Problem

In the prior art, part measurement requires manual positioning, resulting in manual waste and inefficient measurement.

Method used

By interconnecting the model coordinates on the CAD model of the part with the solid coordinates of the part, automatically positioning the parts, the automatic positioning and measurement of the measuring instrument is realized.

Benefits of technology

No manual participation in measurement is required, which improves measurement efficiency, saves labor, and realizes uninterrupted measurement of multiple parts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120276375A_ABST
    Figure CN120276375A_ABST
Patent Text Reader

Abstract

The invention provides a measurement control method, electronic equipment and a storage medium, and relates to the technical field of measurement. The method comprises the following steps: writing a plurality of model coordinates on a CAD model in a control program of a measuring instrument according to the CAD model of a part to be measured and a first coordinate system; according to the plurality of model coordinates and the second coordinate system, determining a plurality of part coordinates on the entity of the to-be-measured part, the model coordinates being in one-to-one correspondence with the part coordinates; in a control program of the measuring instrument, each model coordinate is replaced with a part coordinate corresponding to the model coordinate, and the model coordinate on the CAD model of the part and the part coordinate on the entity of the part are interconnected, so that the measuring instrument obtains the position of the entity of the to-be-measured part on a workbench of the measuring instrument, the part is automatically positioned, and the measurement accuracy is improved. Therefore, the measuring instrument can be controlled to measure the entity of the to-be-measured part without manual participation in the measurement of the part, the measurement efficiency is improved, and the labor is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic technologies, and in particular, to a measurement control method, an electronic device, and a storage medium. Background Art

[0002] In industrial manufacturing, the manufacturing precision of parts directly affects the performance and service life of mechanical equipment. Therefore, after the parts are manufactured, it is necessary to measure the geometric quantities of the parts to ensure the manufacturing precision of the parts.

[0003] In the related art, a measuring instrument can be used to measure parts. By slightly contacting the surface of the part with the probe of the measuring instrument, the coordinates of the contact point are obtained, and then according to the coordinates and the corresponding mathematical model, the geometric quantities to be measured are calculated, thereby completing the measurement of the part.

[0004] However, after the part is placed on the workbench of the measuring instrument, in order to ensure that the measuring instrument knows the specific position of the part, it is usually necessary to manually guide and control the measuring probe of the measuring instrument to move to the part for positioning before the automatic measurement link of the program can be started. Such repeated actions not only cause waste of labor, but also reduce the measurement efficiency. Summary of the Invention

[0005] The present application provides a measurement control method, an electronic device, and a storage medium. By interconnecting the model coordinates on the CAD model of the part with the part coordinates on the entity of the part, the part is automatically positioned, so that the measuring instrument knows the placement position of the part, thereby starting the measurement of the part, so as to solve the problem of manual participation in positioning the part, resulting in waste of labor and reduced measurement efficiency. There is no need for manual participation in the measurement of the part, thereby improving the measurement efficiency and saving labor.

[0006] In a first aspect, the present application provides a measurement control method, and the method includes:

[0007] According to the computer-aided design (CAD) model of the part to be measured and the first coordinate system, write a plurality of model coordinates located on the CAD model into the control program of the measuring instrument. The plurality of model coordinates are used to limit the degrees of freedom of the part to be measured, and the first coordinate system is established according to the CAD model;

[0008] According to the plurality of model coordinates and the second coordinate system, determine a plurality of part coordinates located on the entity of the part to be measured. The second coordinate system is based on the workbench of the measuring instrument, the entity of the part to be measured is placed on the workbench of the measuring instrument, and the model coordinates and the part coordinates are in one-to-one correspondence;

[0009] In the control program of the measuring instrument, each of the model coordinates is replaced with the corresponding part coordinates of the model, so that the measuring instrument can know the position of the entity of the part to be measured on the workbench of the measuring instrument;

[0010] Control the measuring instrument to measure the entity of the part to be measured.

[0011] Through the measurement control method provided by the first aspect, model coordinates on the CAD model of the part to be measured are obtained based on the first coordinate system, and part coordinates on the entity of the part to be measured are determined in the second coordinate system according to the model coordinates, and the model coordinates and the part coordinates are interconnected, so as to realize the automatic positioning of the entity of the part to be measured, control the measuring instrument to measure the entity of the part to be measured, so that manual participation in the measurement is not required during the process, the measurement efficiency is improved, and labor is saved. In addition, multiple parts can be placed on the workbench of the measuring instrument. After the entity of the part to be measured is measured, based on the above method, the measurement of other parts can be started to realize continuous measurement of multiple parts without multiple manual borrowings, further improving the measurement efficiency and saving labor.

[0012] In a possible design, the determining of a plurality of model coordinates located on the CAD model according to the computer-aided design (CAD) model of the part to be measured and the first coordinate system includes:

[0013] Based on the six-point constraint positioning principle, at least six position points are determined on the CAD model, and the at least six position points are used to limit the degrees of freedom of translation, rotation and tumbling of the part to be measured in the X-axis, Y-axis and Z-axis directions;

[0014] The coordinates corresponding to the at least six position points are extracted in the first coordinate system to obtain at least six of the model coordinates.

[0015] In a possible design, the plurality of model coordinates include three first coordinates, two second coordinates and one third coordinate, the first coordinates are located on the first plane of the part to be measured, the second coordinates are located on the second plane of the part to be measured, and the third coordinate is located on the third plane of the part to be measured.

[0016] In a possible design, the plurality of model coordinates include three first coordinates, two second coordinates and two third coordinates, the first coordinates are located on the first plane of the part to be measured, the second coordinates are located on the second plane of the part to be measured, and the third coordinates are located on the third plane of the part to be measured.

[0017] In a possible design, the determining of a plurality of part coordinates located on the entity of the part to be measured according to the plurality of model coordinates and the second coordinate system includes:

[0018] Obtain an image of the workbench of the measuring instrument, where the image includes an image of the entity of the part to be measured;

[0019] Establish a second coordinate system, where the origin of the second coordinate system is located on the workbench of the measuring instrument, the first axis of the second coordinate system is perpendicular to the workbench of the measuring instrument, and the second and third axes of the second coordinate system are parallel to the workbench of the measuring instrument;

[0020] According to the multiple model coordinates, obtain the part coordinates corresponding to each model coordinate from the image.

[0021] In a possible design, the method further includes:

[0022] For each model coordinate, write the element name corresponding to the model coordinate in the control program, where the element name is used to mark the position point corresponding to the model coordinate on the CAD model of the part to be measured;

[0023] After determining multiple part coordinates located on the entity of the part to be measured, match the part coordinates and the model coordinates according to the element name.

[0024] In a second aspect, the present application provides a measurement control device, including: a model coordinate determination module, a part coordinate determination module, a replacement module, and a control module.

[0025] The model coordinate determination module is used to write multiple model coordinates located on the computer-aided design (CAD) model of the part to be measured into the control program of the measuring instrument according to the CAD model of the part to be measured and a first coordinate system, where the multiple model coordinates are used to restrict the degrees of freedom of the part to be measured, and the first coordinate system is established according to the CAD model;

[0026] The part coordinate determination module is used to determine multiple part coordinates located on the entity of the part to be measured according to the multiple model coordinates and a second coordinate system, where the second coordinate system is established based on the workbench of the measuring instrument, the entity of the part to be measured is placed on the workbench of the measuring instrument, and the model coordinates and the part coordinates correspond one by one;

[0027] The replacement module is used to replace each model coordinate with the part coordinate corresponding to the model coordinate in the control program of the measuring instrument, so that the measuring instrument can know the position of the entity of the part to be measured on the workbench of the measuring instrument;

[0028] The control module is used to control the measuring instrument to measure the entity of the part to be measured.

[0029] For the measurement control device provided in the second aspect above, the beneficial effects can be referred to those brought by the first aspect above, which will not be elaborated here.

[0030] In a third aspect, the present application provides an electronic device, including a processor, and when the processor executes a computer-executable program or instruction in a memory, the measurement control method described in the first aspect is implemented.

[0031] In a fourth aspect, the present application provides an electronic device, including a memory and a processor, where a computer-executable program or instruction is stored in the memory, and when the processor executes the computer-executable program or instruction, the measurement control method described in the first aspect is implemented.

[0032] In a fifth aspect, the present application provides a computer-readable storage medium, on which a computer-executable program or instruction is stored, and when the computer-executable program or instruction is executed by a processor, the measurement control method described in the first aspect of the embodiments of the present application is implemented.

[0033] The above description is only an overview of the technical solutions of the embodiments of the present application. In order to be able to understand the technical means of the embodiments of the present application more clearly, it can be implemented according to the content of the description. And in order to make the above and other purposes, features and advantages of the embodiments of the present application more obvious and understandable, the following specifically illustrates the specific implementation manners of the present application. Description of the Drawings

[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained according to these drawings.

[0035] Figure 1 It is a schematic structural diagram of a measurement system provided by an embodiment of the present application.

[0036] Figure 2 It is a flowchart of a measurement control method provided by an embodiment of the present application.

[0037] Figure 3 It is a flowchart of a method for determining model coordinates provided by an embodiment of the present application.

[0038] Figure 4 It is a schematic diagram of a CAD model provided by an embodiment of the present application.

[0039] Figure 5 It is a flowchart of a method for determining part coordinates provided by an embodiment of the present application.

[0040] Figure 6 Schematic diagram of an image of a workbench provided by an embodiment of the present application.

[0041] Figure 7 Flowchart of a method for matching part coordinates and model coordinates provided by an embodiment of the present application.

[0042] Figure 8 Schematic diagram of the structure of a measurement control device provided by an embodiment of the present application.

[0043] Figure 9 Schematic diagram of the structure of an electronic device provided by an embodiment of the present application.

[0044] Figure 10 Schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0045] In the present application, "at least one" means one or more, and "a plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone, where A and B may be singular or plural. The character " / " generally represents an "or" relationship between the associated objects before and after. "At least one (item)" or its similar expression refers to any combination of these items, including any combination of single item (item) or plural items (items). For example, at least one (item) of a alone, b alone or c alone may represent: a alone, b alone, c alone, combination of a and b, combination of a and c, combination of b and c, or combination of a, b and c, where a, b and c may be single or multiple. In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance.

[0046] The orientation or positional relationship indicated by the terms "center", "longitudinal", "transverse", "upper", "lower", "left", "right", "front", "rear", etc. is the orientation or positional relationship based on the orientation or positional relationship shown in the drawings. It is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be construed as a limitation to the present application.

[0047] The terms "connected" and "coupled" should be understood in a broad sense. For example, the "connection" or "coupling" of a circuit structure can refer not only to a physical connection, but also to an electrical connection or a signal connection. For example, it can be a direct connection, i.e., a physical connection, or an indirect connection through at least one intermediate component, as long as the circuit is electrically connected. It can also be the internal connection of two components. A signal connection can be made not only through a circuit, but also through a media medium, such as radio waves. For those of ordinary skill in the art, the specific meaning of the above terms in this application can be understood according to the specific situation.

[0048] In order to enable those skilled in the art of the present technology to better understand the solution of this application, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.

[0049] Exemplarily, this application provides a measurement control method, device, electronic device, computer-readable storage medium, and computer program product. By interconnecting the model coordinates on the CAD model of the part to be measured with the part coordinates on the entity of the part to be measured, the measuring instrument can automatically position the part to be measured, thereby enabling the measurement of the part to be measured to be started without manual participation in the measurement, improving the measurement efficiency and saving labor.

[0050] Among them, the measurement control method provided in this application is executed by a computer device, or by a measurement control device in the computer device. The measurement control device can be implemented by a combination of software and / or hardware. For example, the measurement control device can be an application (APP), a web page, or a public account, etc. Another example is that the measurement control device can be a programmable logic controller (PLC). For the sake of simplicity of description, the embodiments of this application are described by taking the measurement control device as an example.

[0051] Among them, the computer device can be a server, a desktop computer, a mobile phone, a tablet computer, a laptop computer, a wearable device, a vehicle-mounted device, or an augmented reality (AR) / virtual reality (VR) device, etc.

[0052] Next, in combination with Figure 1 , the application scenarios of the measurement control method in this application will be described in detail.

[0053] Please refer to Figure 1 , Figure 1 which is a schematic structural diagram of a measurement system provided by an embodiment of this application. As Figure 1As shown in the figure, the measurement system provided by this application may include: a measurement control device 10, an identification device 20, and a measuring instrument 30.

[0054] Among them, the measurement control device 10 can be used to control the operation of the identification device 20 and the measuring instrument 30.

[0055] In some examples, the measurement control device 10 can be a PLC. A PLC is a programmable memory, and instructions for performing operations such as logical operations, sequential control, timing, counting, and arithmetic operations are stored inside the PLC. The PLC can control the operation of equipment through digital or analog inputs and outputs.

[0056] Among them, the identification device 20 can be used to identify the part to be measured under the control of the measurement control device 10 to determine the position of the part to be measured. For example, the identification device 20 can be a visual identification device, which is used to obtain an image of the part to be measured, so that the measurement control device 10 can determine the position of the part to be measured according to the image of the part to be measured.

[0057] In some examples, the identification device 20 can include an industrial camera and a robotic arm. The robotic arm is used to drive the industrial camera to move under the control of the measurement control device 10, so that the industrial camera can obtain an image of the part to be measured at a suitable position, and the measurement control device 10 can know the position of the part to be measured according to the image of the part to be measured.

[0058] Among them, the measuring instrument 30 is used to measure the part to be measured under the control of the measurement control device 10.

[0059] In some examples, the measuring instrument 30 can be a coordinate measuring machine. By slightly contacting the surface of the part to be measured with the probe of the coordinate measuring machine, the coordinates of the contact point are obtained, and then according to the coordinates and the corresponding mathematical model, the geometric quantities to be measured are calculated, thus completing the measurement.

[0060] Among them, the measurement control device 10 is connected to the identification device 20, and the measurement control device 10 is also connected to the measuring instrument 30. Communication can be carried out between the measurement control device 10 and the identification device 20, or between the measurement control device 10 and the measuring instrument 30 through wired or wireless communication methods.

[0061] Among them, the wired communication method can adopt coaxial cables, optical fibers, digital subscriber line (DSL), etc. The wireless communication method can adopt Bluetooth, infrared, wireless (Wi-Fi), microwave, etc.

[0062] Next, the following embodiments of this application will take the measurement system with the Figure 1 shown structure as an example, and in combination with Figures 2 to 7 , the measurement control method provided by this application will be elaborated in detail.

[0063] Please refer to Figure 2 , Figure 2 which is a flowchart of a measurement control method provided by an embodiment of the present application. As Figure 2 shown, the method includes:

[0064] S101. Write multiple model coordinates located on the CAD (computer aided design) model of the part to be measured into the control program of the measuring instrument according to the CAD model of the part to be measured and the first coordinate system.

[0065] Among them, the part to be measured can be various parts suitable for geometric measurement, such as gears, valves, bases, switches, flanges, nuts, etc.

[0066] Among them, the CAD model of the part to be measured is an ideal model designed by drawing software in the initial stage of manufacturing the part to be measured. The CAD model can reflect the design information, appearance, structure, material and other characteristics of the part to be measured.

[0067] The measurement control device can establish the first coordinate system according to the CAD model and represent any position on the CAD model in the form of coordinates.

[0068] Among them, the control program of the measuring instrument can be used to measure the geometric quantity of the part to be measured. The coordinates of the position to be measured of the part to be measured are pre-written in the control program of the measuring instrument, and the coordinates of the position to be measured in the control program of the measuring instrument are the coordinates in the first coordinate system.

[0069] Since the first coordinate system is a coordinate system established based on the CAD model, the position of the entity of the part to be measured placed in the actual space does not correspond to the first coordinate system. Therefore, the measurement control device cannot directly measure according to the coordinates in the control program of the measuring instrument and needs to position the entity of the part to be measured. The measurement control device can determine the position of the entity of the part to be measured by converting the position of the entity of the part to be measured with the position in the first coordinate system.

[0070] Specifically, during measurement, the operator will pre-place the part to be measured on the workbench of the measuring instrument, and the measurement control device can determine multiple model coordinates on the CAD model of the part to be measured.

[0071] Among them, the multiple model coordinates are used to restrict the degrees of freedom of the part to be measured. The multiple model coordinates can make the part to be measured in a completely determined position. Thus, the measurement control device can use the multiple model coordinates to determine the position of the entity of the part to be measured.

[0072] Among them, there are various ways to determine the multiple model coordinates.

[0073] As a feasible implementation method, an operator can pre-determine, for the CAD models of different parts to be measured, the position points on the CAD models that can restrict the degrees of freedom of the parts to be measured, and store them in the memory of the measurement control device. The measurement control device can directly read these position points from the memory and determine the coordinates corresponding to these position points in the first coordinate system, so as to obtain multiple model coordinates.

[0074] As another feasible implementation method, the measurement control device can identify the CAD model of the part to be measured through machine learning, determine the position points on the CAD model that can restrict the degrees of freedom of the part to be measured, and determine the coordinates corresponding to these position points in the first coordinate system, so as to obtain multiple model coordinates.

[0075] After obtaining multiple model coordinates, the measurement control device can write the multiple model coordinates located on the CAD model into the control program of the measuring instrument, so as to facilitate the interconnection with the coordinates on the entity of the part to be measured.

[0076] Based on this, the measurement control device determines multiple model coordinates for restricting the degrees of freedom of the part to be measured, so as to accurately position the entity of the part to be measured.

[0077] S102. Determine multiple part coordinates located on the entity of the part to be measured according to the multiple model coordinates and the second coordinate system.

[0078] Wherein, the entity of the part to be measured is placed on the workbench of the measuring instrument.

[0079] The measurement control device can pre-establish a second coordinate system based on the workbench of the measuring instrument.

[0080] For example, if the shape of the workbench is rectangular, the measurement control device can use one long side of the rectangle as the X-axis, one short side perpendicular to the long side as the Y-axis, and determine the straight line perpendicular to the X-axis and the Y-axis and passing through the intersection point of the X-axis and the Y-axis as the Z-axis, so as to obtain the second coordinate system.

[0081] Based on this, any position on the entity of the part to be measured can be represented by the coordinates in the second coordinate system.

[0082] The measurement control device determines multiple part coordinates on the entity of the part to be measured.

[0083] Wherein, the model coordinates and the part coordinates are in one-to-one correspondence. That is, the position indicated by the model coordinates on the CAD model of the part to be measured is the same as the position indicated by the part coordinates on the entity of the part to be measured.

[0084] Thus, based on multiple model coordinates and the second coordinate system, the measurement control device determines multiple part coordinates, enabling the connection of coordinates indicating the same position on the part to be measured in the first coordinate system and the second coordinate system. Consequently, using the correspondence between model coordinates and part coordinates, the position of the part to be measured on the workbench can be determined.

[0085] Specifically, the measurement control device can obtain an image of the workbench through visual recognition or lidar. Further, the measurement control device can use machine learning to identify the part to be measured in the image, determine the positions of the part to be measured indicated by multiple model coordinates in the image based on the multiple model coordinates, and determine the corresponding part coordinates of these positions based on the second coordinate system.

[0086] Based on this, the measurement control device determines multiple part coordinates on the entity of the part to be measured, facilitating the connection of model coordinates and part coordinates to determine the position of the entity of the part to be measured.

[0087] S103. In the control program of the measuring instrument, replace each model coordinate with the corresponding part coordinate of the model coordinate, so that the measuring instrument can know the position of the entity of the part to be measured on the workbench of the measuring instrument.

[0088] Multiple part coordinates can indicate the precise position of the entity of the part to be measured on the workbench. Thus, in the control program of the measuring instrument, the measurement control device replaces each model coordinate with the corresponding part coordinate of the model coordinate, ensuring that the measuring instrument can know the position of the entity of the part to be measured on the workbench and achieving accurate positioning of the part to be measured.

[0089] S104. Control the measuring instrument to measure the entity of the part to be measured.

[0090] When the measuring instrument measures the part to be measured, the position to be measured can be marked in advance on the CAD model of the part to be measured, and the coordinates corresponding to the position to be measured are written into the control program of the measuring instrument. After the measurement control device determines the position of the entity of the part to be measured, it can convert the coordinates corresponding to the position to be measured based on the relationship between part coordinates and model coordinates. Thus, the measurement control device can perform measurements on the entity of the part to be measured according to the control program of the measuring instrument.

[0091] Among them, measuring the entity of the part to be measured can include measuring geometric quantities such as the form and position dimensions, length dimensions, and angle dimensions of the entity of the part to be measured. This application places no restrictions on this.

[0092] In an embodiment of the present application, the measurement control device obtains the model coordinates on the CAD model of the part to be measured based on the first coordinate system, determines the part coordinates on the entity of the part to be measured in the second coordinate system according to the model coordinates, and interconnects the model coordinates and the part coordinates, so as to realize the automatic positioning of the entity of the part to be measured. The measurement control device controls the measuring instrument to measure the entity of the part to be measured, thus eliminating the need for manual participation in the measurement, improving the measurement efficiency, and saving labor.

[0093] In addition, multiple parts can be placed on the workbench of the measuring instrument. After the measurement of the entity of the part to be measured is completed, the measurement of other parts can be started based on the steps of S101 to S104, so as to realize the continuous measurement of multiple parts without multiple manual interventions, further improving the measurement efficiency and saving labor.

[0094] Based on the above exemplary description, in S101, the measurement control device can determine the model coordinates in the following Figure 3 shown manner.

[0095] Please refer to Figure 3 , Figure 3 which is a flowchart of a method for determining model coordinates provided by an embodiment of the present application. As Figure 3 shown, the method includes:

[0096] S201. Based on the six-point constraint positioning principle, at least six position points are determined on the CAD model.

[0097] Among them, at least six position points are used to restrict the degrees of freedom of translation, rotation, and tumbling of the part to be measured in the X-axis, Y-axis, and Z-axis directions.

[0098] For a determined object, if six corresponding constraints are set to restrict the six degrees of freedom of motion of the rigid body, the free rigid body can have a determined position in space. Based on this, the measurement control device determines at least six position points on the CAD model, and the at least six position points need to restrict the degrees of freedom of translation, rotation, and tumbling of the part to be measured in the X-axis, Y-axis, and Z-axis directions.

[0099] The measurement control device can determine at least six position points in various ways, and the present application does not limit this.

[0100] Based on this, the measurement control device can use the at least six position points to realize the accurate positioning of the part to be measured.

[0101] S202. Extract the coordinates corresponding to at least six position points in the first coordinate system to obtain at least six model coordinates.

[0102] Based on the first coordinate system, the measurement control device determines the coordinates corresponding to the at least six position points respectively, so as to use the coordinates to reflect the position points on the CAD model, ensuring that the measuring instrument can move based on the indication of the coordinates.

[0103] Among them, there are various forms of multiple model coordinates.

[0104] In some examples, the measurement control device determines six position points, and the multiple model coordinates corresponding to the six position points include three first coordinates, two second coordinates, and one third coordinate. The first coordinates are located on the first plane of the part to be measured, the second coordinates are located on the second plane of the part to be measured, and the third coordinate is located on the third plane of the part to be measured.

[0105] As Figure 4 shown, A is the CAD model of the part to be measured, and x1, y1, and z1 respectively represent the directions of the coordinate axes of the first coordinate system. The multiple model coordinates include: MP1, MP2, MP3, MP4, MP5, and MP6. MP1, MP2, and MP3 are located on the first plane. MP4 and MP5 are located on the second plane, and MP6 is located on the third plane. Based on this, the measurement control device can determine a plane based on MP1, MP2, and MP3, thereby restricting the degrees of freedom of rotation of the part to be measured about the X-axis and Y-axis and the degrees of freedom of translation and roll in the Z-axis direction. The measurement control device can determine a straight line based on MP4 and MP5, thereby restricting the degrees of freedom of rotation and translation of the part to be measured in the Y-axis direction. The measurement control device can restrict the degree of freedom of translation of the part to be measured in the X-axis direction based on MP6.

[0106] In other examples, the measurement control device determines seven position points, and the multiple model coordinates corresponding to the seven position points include three first coordinates, two second coordinates, and two third coordinates. The first coordinates are located on the first plane of the part to be measured, the second coordinates are located on the second plane of the part to be measured, and the third coordinates are located on the third plane of the part to be measured.

[0107] As Figure 4 shown, A is the CAD model of the part to be measured. In addition to MP1, MP2, MP3, MP4, MP5, and MP6, the multiple model coordinates can also include MP7. The intersection of the straight line formed by MP6 and MP7 and the straight line formed by MP4 and MP5 is used to restrict the degrees of freedom of left-right and up-down translation of the part to be measured.

[0108] Based on this, the measurement control device can accurately locate the entity of the part to be measured according to at least six model coordinates.

[0109] Based on the above exemplary description, in S102, the measurement control device can determine the part coordinates in the following Figure 5 shown manner.

[0110] Please refer to Figure 5 , Figure 5 which is a flowchart of a method for determining the coordinates of a part provided by an embodiment of the present application. As Figure 5 shown, the method includes:

[0111] S301. Obtain an image of the workbench of the measuring instrument.

[0112] Among them, the image includes an image of the entity of the part to be measured.

[0113] The measurement control device can obtain an image of the workbench of the measuring instrument through an industrial camera.

[0114] The image of the workbench of the measuring instrument can be as Figure 6 shown, and the entity of the part to be measured A is located on the workbench.

[0115] S302. Establish a second coordinate system.

[0116] Among them, the origin of the second coordinate system is located on the workbench of the measuring instrument, the first axis of the second coordinate system is perpendicular to the workbench of the measuring instrument, and the second axis and the third axis of the second coordinate system are parallel to the workbench of the measuring instrument.

[0117] For example, as Figure 6 shown, the shape of the workbench is rectangular. The measurement control device can use one long side of the rectangle as the X axis, one short side perpendicular to the long side as the Y axis, and determine the straight line perpendicular to the X axis and the Y axis and passing through the intersection of the X axis and the Y axis as the Z axis, so as to obtain the second coordinate system x2y2z2.

[0118] S303. According to multiple model coordinates, obtain the part coordinates corresponding to each model coordinate from the image.

[0119] The measurement control device can, based on machine learning, identify the position indicated by the model coordinate in the image and map this position to the second coordinate system, so as to obtain the part coordinates corresponding to each model coordinate.

[0120] Based on the example shown in the Figure 4 embodiment, taking MP1, MP2, and MP3 as examples, the positions corresponding to MP1, MP2, and MP3 on the entity of the part to be measured are as Figure 6 shown. The measurement control device determines the coordinates of MP1, MP2, and MP3 in the second coordinate system x2y2z2, so as to obtain the part coordinates.

[0121] Based on this, the measurement control device can automatically identify the part to be measured through the image and obtain the part coordinates, thereby improving the measurement efficiency.

[0122] Based on the above exemplary description, the measurement control device can Figure 7 associate and match the part coordinates and the model coordinates in the following

[0123] Please refer to Figure 7 , Figure 7 which is a flowchart of a method for matching part coordinates and model coordinates provided in an embodiment of the present application. As Figure 7 shown, the method includes:

[0124] S401. For each model coordinate, write the element name corresponding to the model coordinate into the control program.

[0125] Wherein, the element name is used to mark the position point corresponding to the model coordinate on the CAD model of the part to be measured.

[0126] For example, if the measurement control device determines six model coordinates, the corresponding element names determined for the six model coordinates are: MP1, MP2, MP3, MP4, MP5, and MP6. When writing the model coordinates into the control program, write the corresponding element names at the same time, so that the part coordinates and the model coordinates are in one-to-one correspondence based on the element names, realizing the association between the part coordinates and the model coordinates.

[0127] S402. After determining a plurality of part coordinates located on the entity of the part to be measured, match the part coordinates and the model coordinates according to the element names.

[0128] When the measurement control device determines a plurality of part coordinates located on the entity of the part to be measured, based on the element name of the model coordinate corresponding to the part coordinate, identify the model coordinate in the control program of the measuring instrument, and replace the model coordinate with the part coordinate, ensuring that the part coordinates of the entity of the part to be measured can be accurately fed back in the control program of the measuring instrument, thus avoiding the situation of incorrect replacement of the model coordinate and ensuring that the position of the entity of the part to be measured can be accurately determined.

[0129] Exemplarily, the present application provides a measurement control device.

[0130] Please refer to Figure 8 , Figure 8 which is a structural schematic diagram of a measurement control device provided in an embodiment of the present application. As Figure 8 shown, the measurement control device of the present application may include: a model coordinate determination module 101, a part coordinate determination module 102, a replacement module 103, and a control module 104.

[0131] The model coordinate determination module 101 is configured to write a plurality of model coordinates located on the computer-aided design (CAD) model of the part to be measured into the control program of the measuring instrument according to the CAD model of the part to be measured and the first coordinate system, where the plurality of model coordinates are used to restrict the degrees of freedom of the part to be measured, and the first coordinate system is established according to the CAD model;

[0132] The part coordinate determination module 102 is configured to determine a plurality of part coordinates located on the entity of the part to be measured according to the plurality of model coordinates and the second coordinate system, where the second coordinate system is based on the workbench of the measuring instrument, the entity of the part to be measured is placed on the workbench of the measuring instrument, and the model coordinates and the part coordinates correspond one by one;

[0133] The replacement module 103 is configured to replace each of the model coordinates with the corresponding part coordinate in the control program of the measuring instrument, so that the measuring instrument can know the position of the entity of the part to be measured on the workbench of the measuring instrument;

[0134] The control module 104 is configured to control the measuring instrument to measure the entity of the part to be measured.

[0135] It should be noted that the measurement control device in the embodiments of the present application can be used to execute the technical solutions in the above method embodiments, and its implementation principles and technical effects are similar, which will not be elaborated here.

[0136] In some examples, the model coordinate determination module 101 is specifically configured to:

[0137] Based on the six-point constraint positioning principle, at least six position points are determined on the CAD model, and the at least six position points are used to restrict the degrees of freedom of translation, rotation, and tumbling of the part to be measured in the X-axis, Y-axis, and Z-axis directions;

[0138] Extract the coordinates corresponding to the at least six position points in the first coordinate system to obtain at least six of the model coordinates.

[0139] In some examples, the plurality of model coordinates include three first coordinates, two second coordinates, and one third coordinate, where the first coordinates are located on the first plane of the part to be measured, the second coordinates are located on the second plane of the part to be measured, and the third coordinate is located on the third plane of the part to be measured.

[0140] In some examples, the plurality of model coordinates include three first coordinates, two second coordinates, and two third coordinates, where the first coordinates are located on the first plane of the part to be measured, the second coordinates are located on the second plane of the part to be measured, and the third coordinates are located on the third plane of the part to be measured.

[0141] In some examples, the part coordinate determination module 102 is specifically configured to obtain an image of the workbench of the measuring instrument, where the image includes an image of the entity of the part to be measured;

[0142] Establish a second coordinate system, where the origin of the second coordinate system is located on the workbench of the measuring instrument, the first axis of the second coordinate system is perpendicular to the workbench of the measuring instrument, and the second axis and the third axis of the second coordinate system are parallel to the workbench of the measuring instrument;

[0143] According to the multiple model coordinates, obtain the part coordinates corresponding to each model coordinate from the image.

[0144] In some examples, the measurement control device further includes: an interconnection module;

[0145] The interconnection module is configured to write, for each model coordinate, the element name corresponding to the model coordinate into the control program, where the element name is used to mark the position point corresponding to the model coordinate on the CAD model of the part to be measured; after determining multiple part coordinates located on the entity of the part to be measured, match the part coordinates and the model coordinates according to the element name.

[0146] Exemplarily, Figure 9 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. As Figure 9 shown, the electronic device may include: a processor 201. When the processor 201 executes computer executable programs or instructions in the memory, the measurement control method shown in the embodiments of the present application is implemented. Figures 2 to 7 shown.

[0147] Exemplarily, Figure 10 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. As Figure 10 shown, the electronic device may include: a processor 301 and a memory 302. A computer program is stored in the memory 302. When the processor 301 executes the computer program, the measurement control method shown in the embodiments of the present application is implemented. Figures 2 to 7 shown.

[0148] Exemplarily, the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor to enable an electronic device to perform, the method in the foregoing embodiments is implemented.

[0149] Exemplarily, the present application provides a computer program product, including: execution instructions. The execution instructions are stored in a readable storage medium. At least one processor of the electronic device can read the execution instructions from the readable storage medium, and at least one processor executes the execution instructions to enable the electronic device to implement the method in the foregoing embodiments.

[0150] In the above embodiments, all or part of the functions may be implemented by software, hardware, or a combination of software and hardware. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.

[0151] Those skilled in the art can understand that although some embodiments herein include certain features included in other embodiments, the combination of features of different embodiments means that it is within the scope of the present application and forms different embodiments. For example, in the claims, any one of the claimed embodiments may be used in any combination.

[0152] As described above, the above embodiments are only used to illustrate the technical solutions of the present application and are not intended to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A measurement control method, characterized in that, The method includes: According to the computer-aided design (CAD) model of the part to be measured and the first coordinate system, write multiple model coordinates located on the CAD model into the control program of the measuring instrument, where the multiple model coordinates are used to restrict the degrees of freedom of the part to be measured, and the first coordinate system is established based on the CAD model; According to the multiple model coordinates and the second coordinate system, determine multiple part coordinates located on the entity of the part to be measured. The second coordinate system is based on the workbench of the measuring instrument, and the entity of the part to be measured is placed on the workbench of the measuring instrument, and the model coordinates and the part coordinates correspond one by one; In the control program of the measuring instrument, replace each model coordinate with the corresponding part coordinate, so that the measuring instrument can know the position of the entity of the part to be measured on the workbench of the measuring instrument; Control the measuring instrument to measure the entity of the part to be measured.

2. The method according to claim 1, wherein The determining of multiple model coordinates located on the CAD model according to the CAD model of the part to be measured and the first coordinate system includes: Based on the six-point constraint positioning principle, determine at least six position points on the CAD model, and the at least six position points are used to restrict the degrees of freedom of translation, rotation and tumbling of the part to be measured in the X-axis, Y-axis and Z-axis directions; Extract the coordinates corresponding to the at least six position points in the first coordinate system to obtain at least six of the model coordinates.

3. The method according to claim 2, wherein The multiple model coordinates include three first coordinates, two second coordinates and one third coordinate. The first coordinates are located on the first plane of the part to be measured, the second coordinates are located on the second plane of the part to be measured, and the third coordinate is located on the third plane of the part to be measured.

4. The method according to claim 2, wherein The multiple model coordinates include three first coordinates, two second coordinates and two third coordinates. The first coordinates are located on the first plane of the part to be measured, the second coordinates are located on the second plane of the part to be measured, and the third coordinates are located on the third plane of the part to be measured.

5. The method according to any one of claims 1 to 4, characterized in that The determining of multiple part coordinates located on the entity of the part to be measured according to the multiple model coordinates and the second coordinate system includes: Obtain an image of the workbench of the measuring instrument, where the image includes an image of the entity of the part to be measured; Establish a second coordinate system. The origin of the second coordinate system is located on the workbench of the measuring instrument. The first axis of the second coordinate system is perpendicular to the workbench of the measuring instrument, and the second axis and the third axis of the second coordinate system are parallel to the workbench of the measuring instrument; According to the multiple model coordinates, obtain the part coordinates corresponding to each model coordinate from the image.

6. The method according to any one of claims 1 to 4, characterized in that The method further includes: For each model coordinate, write the corresponding element name into the control program, where the element name is used to mark the position point corresponding to the model coordinate on the CAD model of the part to be measured; After determining the multiple part coordinates located on the entity of the part to be measured, match the part coordinates and the model coordinates according to the element name.

7. A measurement control device, characterized in that, The device includes: a module for executing the measurement control method according to any one of claims 1-6.

8. An electronic device, characterized in that, Comprising: A processor; The processor is configured to execute computer-executable programs or instructions in a memory, so that the electronic device executes the measurement control method according to any one of claims 1-6.

9. An electronic device, characterized in that, Comprising: At least one memory and at least one processor; The memory is used for storing computer-executable programs or instructions; The processor is configured to call the computer-executable programs or instructions in the memory, so that the electronic device executes the measurement control method according to any one of claims 1-6.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable programs or instructions, and the computer-executable programs or instructions are configured to execute the measurement control method according to any one of claims 1-6.