Program automatic compiling method of three-coordinate measuring machine, storage medium and electronic equipment

By automatically compiling the measurement program of the three-coordinate measuring machine, the problem that manual programming in the prior art is difficult to meet the requirements of high-precision measurement, and automatic compilation of high-precision and efficiency measurement programs is achieved.

CN120010855APending Publication Date: 2025-05-16SAIC GENERAL POWER TECH (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510102549.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-22
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

The existing three-coordinate measuring machine measurement programs mainly rely on manual writing, which is difficult to meet the measurement requirements of high-precision machine parts.

Method used

By obtaining the feature information of the components to be tested, dividing the surface features and hole features, determining the measurement location, number of layers, number of scan points and filtering parameters, performing feature grouping, path planning, simulation and simulation, establishing a reference coordinate system, integrating information to generate precompiled parameters, and automatically compiling the measurement program.

Benefits of technology

The automatic compilation of the measurement program of the three-coordinate measuring machine is realized, which improves the measurement accuracy and efficiency, and meets the measurement requirements of high-precision machine parts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120010855A_ABST
    Figure CN120010855A_ABST
Patent Text Reader

Abstract

The invention provides an automatic program compiling method of a three-coordinate measuring machine, a storage medium and electronic equipment, and the method comprises the steps: obtaining the feature information of a to-be-measured part, dividing the feature into a surface feature and a hole feature, and determining a measurement position, a measurement layer number, a scanning point number and a filtering parameter. All the features are grouped, and detection sequences of different groups are sorted; carrying out path planning on the detection of the features in the same group; performing analog simulation according to the three-dimensional models of the to-be-tested part, the clamp and the probe to determine avoidance parameters; determining a measurement reference of each feature, establishing a reference coordinate system, and carrying out spatial degree-of-freedom constraint by using each measurement reference; determining a corresponding reference coordinate system and a projection direction according to each piece of detection information, and generating coordinate information of the detection information relative to a reference according to a spatial relationship between a feature corresponding to the detection information and the reference coordinate system; the pre-compilation parameters are integrated; and substituting the pre-compiled parameter into the target position of the measurement program to generate the measurement program. By means of the technical scheme, automatic compiling of the measuring program of the three-coordinate measuring machine is achieved, and the requirement of a high-precision machining part for measurement is met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of inspection and testing of engineering parts, and in particular to a program automatic compilation method, storage medium and electronic equipment of a three-coordinate measuring machine. Background Art

[0002] At present, in the engineering field, the three-dimensional dimension measurement of parts is mainly achieved by three-dimensional coordinate measuring machines (CMM for short), which obtain the three-dimensional coordinate data of parts through the contact points between their probes and workpieces, and calculate the geometric features of the workpieces based on these data. That is, the three-dimensional coordinate measuring machine can show the geometric shape, length and circular division of parts within the space of a hexahedron. The control system of the three-dimensional coordinate measuring machine needs to be configured with a measurement program. In the program, it is necessary to define the path of the probe, the position of the measuring point, etc., and then run the measurement program. Under the control of the measurement program, the position and angle of the parts are adjusted and the measurement results are obtained. At present, the measurement program mainly relies on manual writing, that is, the path of the probe, the position of the measuring point and other information are determined manually. It is necessary to provide an automatic programming method to meet the measurement requirements of high-precision machined parts. Summary of the invention

[0003] The present invention aims to provide a method for automatically compiling a program of a three-coordinate measuring machine, a storage medium and an electronic device, which are used to realize automatic compilation of a measurement program of the three-coordinate measuring machine to meet the measurement requirements of high-precision machined parts.

[0004] In a first aspect, the technical solution of the present application provides a method for automatically compiling a program of a three-coordinate measuring machine, comprising:

[0005] Acquire characteristic information of the component to be tested; the characteristic information includes coordinate parameters, hole level parameters, corresponding probe information, process information and detection information;

[0006] According to the feature information, the features are divided into surface features and hole features; the measurement position is determined according to the coordinate parameters, the number of measurement layers is determined according to the layer parameters of the holes, and the number of scanning points and filtering parameters are determined according to the process information and the detection information;

[0007] Group all features and sort the detection order of different groups;

[0008] Perform path planning for the detection of features within the same group;

[0009] Determine the avoidance parameters by simulating the three-dimensional models of the components to be tested, fixtures and probes;

[0010] Determine a measurement reference for each of the features, establish a reference coordinate system according to the corresponding relationship between the measurement references, and use the measurement references to constrain the spatial degrees of freedom;

[0011] Determine a corresponding reference coordinate system and projection direction according to each of the detection information, and generate coordinate information relative to the reference according to a spatial relationship between the feature corresponding to the detection information and the reference coordinate system;

[0012] Integrate the feature information, feature grouping information, sorting information of different groups, path planning information of features in the same group, avoidance parameter information, and a reference coordinate system corresponding to each feature information, a projection direction, and coordinate information relative to a reference as precompiled parameters;

[0013] Substituting the pre-compiled parameters into the target position of the measurement program generates the measurement program.

[0014] In some embodiments, the method for automatically compiling a program of a three-dimensional coordinate measuring machine, the step of obtaining characteristic information of a component to be measured comprises:

[0015] The product manufacturing information of the component to be tested is obtained, and the characteristic information contained in the product manufacturing information is extracted through a keyword of the characteristic information.

[0016] In some embodiments, the method for automatically compiling a program of a three-dimensional coordinate measuring machine, the step of obtaining characteristic information of a component to be measured comprises:

[0017] Display prompt information, wherein the prompt information includes feature information options of the component to be tested;

[0018] Receive input data corresponding to the feature information option input by the user, and obtain the feature information.

[0019] In some schemes, the method for automatically compiling a program of a three-dimensional coordinate measuring machine is described, wherein the features are divided into surface features and hole features according to the feature information; the measurement position is determined according to the coordinate parameters, the number of measurement layers is determined according to the layer parameters of the hole, and the number of scanning points and filtering parameters are determined according to the process information and the detection information:

[0020] The geometric tolerance of the component to be measured is obtained, and the measurement position, the number of measurement layers, the number of scanning points and the filtering parameters are adaptively adjusted according to the geometric tolerance.

[0021] The automatic compilation method of the three-dimensional coordinate measuring machine program described in some schemes, wherein all features are grouped and the detection order of different groups is sorted:

[0022] Group all features according to the same probe principle;

[0023] The inspection order of different groups is sorted according to the principle that the group where the measurement reference is located is before the group where the measurement feature is located and the probe group where the probe is located is continuous.

[0024] In some schemes, the method for automatically compiling a program of a three-dimensional coordinate measuring machine includes performing path planning for detecting features within the same group:

[0025] According to the principle of the shortest actual measured path, the traveling salesman solution is performed on the features within the same group, and the optimal solution obtained is used as the planned path.

[0026] The method for automatically compiling a program of a three-dimensional coordinate measuring machine described in some schemes, wherein the measurement datum of each feature is determined, a reference coordinate system is established according to the corresponding relationship between the measurement datums, and the spatial degrees of freedom are constrained by using the measurement datums:

[0027] The principle for establishing the reference coordinate system is as follows: the features corresponding to the measurement reference are processed as regular geometric features; orientation and positioning are performed according to the degree of freedom requirements of different geometric features, and the reference coordinate system is established in sequence from the first reference feature backwards in the order of the path until the features corresponding to the last measurement reference are processed as regular geometric features and spatial degree of freedom constraints are completed for them.

[0028] In a second aspect, the technical solution of the present application provides a computer-readable storage medium having a computer program / instruction stored thereon, which, when executed by a processor, implements the steps of the method for automatically compiling a program for a three-coordinate measuring machine as described in any of the technical solutions of the first aspect.

[0029] In a third aspect, the technical solution of the present application provides an electronic device, comprising a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the method for automatic program compilation of a coordinate measuring machine described in any one of the technical solutions of the first aspect.

[0030] In a fourth aspect, the technical solution of the present application provides a computer program product, including a computer program / instruction, characterized in that when the computer program / instruction is executed by a processor, the steps of the automatic program compilation method for a three-coordinate measuring machine described in any technical solution of the first aspect are implemented.

[0031] Compared with the prior art, the above technical solutions provided by this application have at least the following technical effects:

[0032] The program automatic compilation method, storage medium and electronic device of the three-dimensional coordinate measuring machine provided by the present application obtain the feature information of the component to be measured, divide the feature into surface feature and hole feature, determine the measurement position according to the coordinate parameter, determine the number of measurement layers according to the level parameter of the hole, and determine the number of scanning points and filtering parameters according to the process information and detection information. Group all features, sort the detection order of different groups; perform path planning for the detection of features in the same group; simulate and simulate the three-dimensional model of the component to be measured, fixture and probe to determine the avoidance parameters; determine the measurement reference of each feature, establish the reference coordinate system, and use each measurement reference to constrain the spatial degree of freedom; determine the corresponding reference coordinate system, projection direction and relative reference coordinate information according to each detection information; integrate the feature information, feature grouping information, sorting information of different groups, path planning information of features in the same group, avoidance parameter information and reference coordinate system, projection direction and relative reference coordinate information corresponding to each feature information as pre-compiled parameters; substitute the pre-compiled parameters into the target position of the measurement program to generate the measurement program. Through the above technical solution of the present application, the automatic compilation of the measurement program of the three-dimensional coordinate measuring machine is realized to meet the measurement requirements of high-precision machined parts. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A flowchart of a method for automatically compiling a program for a coordinate measuring machine according to an embodiment of the present invention;

[0034] Figure 2 A system architecture diagram for implementing a method for automatically compiling a program for a three-dimensional coordinate measuring machine according to an embodiment of the present invention;

[0035] Figure 3 A schematic diagram of measurement information of surface features and hole features according to an embodiment of the present invention;

[0036] Figure 4 A schematic diagram of the internal structure of a measurement group according to an embodiment of the present invention;

[0037] Figure 5 A grouping principle according to which features are grouped according to an embodiment of the present invention;

[0038] Figure 6 A schematic diagram of path planning for features within the same group according to an embodiment of the present invention;

[0039] Figure 7 A schematic diagram of modular processing of point cloud information according to an embodiment of the present invention;

[0040] Figure 8 A schematic diagram of processing a reference feature into a regular geometric feature according to an embodiment of the present invention;

[0041] Fig. 9A logical diagram of orienting and positioning different geometric features according to an embodiment of the present invention;

[0042] Fig.10 The figure is a schematic diagram of the hardware connection relationship of an electronic device for executing the method for automatically compiling a program of a coordinate measuring machine according to an embodiment of the present invention. DETAILED DESCRIPTION

[0043] The specific implementation of the present application is further described below with reference to the accompanying drawings.

[0044] It is easy to understand that according to the technical solution of the present application, without changing the essential spirit of the present application, a variety of structural modes and implementation modes that can be replaced by those skilled in the art can be replaced with each other. Therefore, the following specific implementation modes and drawings are only exemplary descriptions of the technical solution of the present application, and should not be regarded as the entirety of the present application or as a limitation or restriction on the technical solution of the application.

[0045] The directional terms such as up, down, left, right, front, back, front, back, top, bottom, etc. mentioned or may be mentioned in this specification are defined relative to the structures shown in the drawings. They are relative concepts and may change accordingly according to different positions and different usage conditions. Therefore, these or other directional terms should not be interpreted as restrictive terms.

[0046] During the powertrain machining process, measurement requirements usually include two types: (1) process measurement. Programmers need to program each process according to the control plan and process drawings to meet the production line's sampling requirements for parts from different processes. (2) Finished product measurement. Programmers need to program the finished product according to the finished product drawings to meet the production line's sampling requirements for finished product parts. Since different process dimensions have different inspection frequency requirements, the industry usually requires a measurement program to be able to select any single element to complete the measurement work. The current automatic measurement solutions are only applicable to finished parts and cannot meet the inspection programming requirements of component dimensions in each process. The automatic compilation method of the three-coordinate measuring machine program provided in this application is a set of CMM automatic programming solutions that are applicable to and not only powertrains, and can meet the measurement requirements of high-precision machined parts. Specifically:

[0047] This embodiment provides a method for automatically compiling a program of a three-dimensional coordinate measuring machine. Figure 1 As shown, the following steps are included:

[0048] S10: Acquire feature information of the component to be tested; the feature information includes coordinate parameters, hole level parameters, corresponding probe information, process information and detection information.

[0049] In specific implementation, the feature information can be manually input according to the design drawings, or can be obtained by automatically reading relevant data of the design drawings.

[0050] S20: According to the feature information, the features are divided into surface features and hole features; the measurement position is determined according to the coordinate parameters, the number of measurement layers is determined according to the level parameters of the holes, and the number of scanning points and filtering parameters are determined according to the process information and the detection information.

[0051] S30: Group all features and sort the detection order of different groups.

[0052] By dividing different features into groups, the feature information of one group can be selected for measurement in any time period, that is, the measurement of parts in any process or stage can be achieved without affecting the measurement of other parts of the assembly.

[0053] S40: Perform path planning for the detection of features within the same group.

[0054] Different features within the same group can be measured in a certain order so that the path of the probe can be planned, which can avoid the situation where the probe moves back and forth but the measurement efficiency is low.

[0055] S50: Determine avoidance parameters by simulating the three-dimensional models of the component to be tested, the fixture and the probe.

[0056] By pre-simulating, the positions that need to be avoided during the movement of the probe can be determined, so as to avoid damage to the components to be tested by the probe.

[0057] S60: Determine a measurement reference for each of the features, establish a reference coordinate system according to the corresponding relationship between the measurement references, and use the measurement references to constrain spatial degrees of freedom.

[0058] The measurement reference can be a plane, and the reference coordinate system is a spatial coordinate system.

[0059] S70: Determine a corresponding reference coordinate system and projection direction according to each piece of detection information, and generate coordinate information relative to the reference according to a spatial relationship between the feature corresponding to the detection information and the reference coordinate system.

[0060] The projection direction refers to the projection onto the XY plane, YZ plane or XZ plane of the spatial coordinate system.

[0061] S80: Integrate the feature information, feature grouping information, sorting information of different groups, path planning information of features in the same group, avoidance parameter information, and the reference coordinate system corresponding to each feature information, projection direction, and coordinate information relative to the reference as pre-compiled parameters.

[0062] The pre-compiled parameters are generated according to each process and the path sequence of each group. Therefore, the corresponding group is selected for each process, the probe is moved according to the corresponding path for each group, and the corresponding reference coordinate system and projection direction are selected.

[0063] S90: Substitute the pre-compiled parameters into the target position of the measurement program to generate the measurement program.

[0064] According to the method of using the three-dimensional coordinate measuring machine, when running the measurement program, the main step is to obtain the above-mentioned pre-compiled parameters. The present application has automatically obtained the parameters through steps S10-S80, so they can be directly substituted into the running measurement program. The substitution can be directly read or called.

[0065] The above scheme of the present application, after obtaining the feature information of the component to be measured, divides the features into surface features and hole features, determines the measurement position according to the coordinate parameters, determines the number of measurement layers according to the hierarchical parameters of the holes, determines the number of scanning points and filtering parameters according to the process information and detection information, and can also include tool information, etc. Group all features, sort the detection order of different groups; perform path planning for the detection of features in the same group; determine the avoidance parameters according to the simulation of the three-dimensional model of the component to be measured and the fixture; determine the measurement reference of each feature, establish a reference coordinate system, and use each measurement reference to constrain the spatial degree of freedom; determine the corresponding reference coordinate system and projection direction according to each detection information, and generate the coordinate information of the relative reference according to the spatial relationship between the feature corresponding to the detection information and the reference coordinate system; integrate the feature information, feature grouping information, sorting information of different groups, path planning information of the features in the same group, avoidance parameter information and the reference coordinate system, projection direction and relative reference coordinate information corresponding to each feature information as pre-compiled parameters; substitute the pre-compiled parameters into the target position of the measurement program to generate the measurement program. Through the above technical solution of the present application, the automatic compilation of the measurement program of the three-dimensional coordinate measuring machine is realized to meet the measurement requirements of high-precision machined parts.

[0066] Furthermore, in the above scheme, the step S10 of obtaining the characteristic information of the component to be tested includes: obtaining the product manufacturing information (PMI information) of the component to be tested, which can be achieved by importing a three-dimensional model annotated with PMI information, and extracting the characteristic information contained in the product manufacturing information from the annotations therein by using keywords of the characteristic information. The characteristic information also includes shape and size requirements that each feature should meet, etc., as determined by the CP (control plan) file. Therefore, the final characteristic information that needs to be detected can be determined based on the CP file, and the detection information can be automatically extracted by identifying the PMI information annotated on the three-dimensional model of the component to be tested, thereby improving the efficiency of program compilation. In specific implementation, such as Figure 2As shown, the three-dimensional model can be directly obtained by interacting with the MDS system (a system that automatically generates process flows and related documents). Figure 3 A control plan example diagram and a component design model example diagram with PMI annotation are given.

[0067] As another method, the step S10 of obtaining the characteristic information of the component to be measured includes: displaying prompt information, the prompt information including the characteristic information options of the component to be measured; receiving input data corresponding to the characteristic information options input by the user to obtain the characteristic information. That is, if the component to be measured does not have a three-dimensional model with PMI information annotation, the characteristic information can also be generated by displaying information on the human-computer interaction interface for the user to fill in. The present application scheme can ensure that program compilation can be completed in different situations, and ensure the safety, reliability and integrity of the measurement program.

[0068] Preferably, in step S20, the features are divided into surface features and hole features according to the feature information; the measurement position is determined according to the coordinate parameters, the number of measurement layers is determined according to the layer parameters of the hole, and the number of scanning points and filtering parameters are determined according to the process information and the detection information: the form and position tolerances of the component to be measured are obtained, and the measurement position, the number of measurement layers, the number of scanning points and the filtering parameters are adaptively adjusted according to the form and position tolerances. Figure 4 An example of the internal structure of a measurement group is given. Specifically, features are divided into surface features and hole features. The system sets initial parameters according to the different lengths and depths of the features, including measurement position judgment, measurement layer number judgment, scanning point number, filter parameters, etc., and makes adaptive adjustments according to its geometric tolerance requirements. For example, a short hole with verticality requirements needs to scan two sections, and a hole with straightness requirements needs to scan three sections.

[0069] Furthermore, in step S30, all features are grouped and the detection order of different groups is sorted: all features are grouped according to the same probe principle; the detection order of different groups is sorted according to the principle that the group where the measurement reference is located is before the group where the measurement feature is located and the probe group where the probe is located is continuous. Figure 5 As shown, all features can be grouped according to the same probe principle, and the measurement framework of each group (i.e., single element) can be initially built. Then, the groups are sorted according to the principle that the group where the measurement reference is located is before the group where the measurement feature is located and the probe groups where the same probe is located are as continuous as possible.

[0070] Preferably, in the above scheme, in step S40, in the path planning for the detection of the features in the same group: the features in the same group are solved by the traveling salesman method according to the principle of the shortest actual measured path, and the optimal solution is used as the planned path. Figure 6As shown in the figure, the path planning of the features within the group is converted into a method of solving the TSP (Traveling Salesman Problem) based on the shortest actual measurement path, thereby simplifying the operation logic and improving the compilation efficiency. The path planning setting in this solution can ensure that there is no interference with other elements when measuring any single element, thereby improving the compilation efficiency.

[0071] In step S50, the point cloud processing results of the tested part and the fixture model are as follows: Figure 7 As shown, according to the point cloud processing results, the probe system sets up a parametric geometric model, automatically sets the safety points through simulation, and completes the avoidance parameter setting.

[0072] In some schemes, the measurement datum of each feature is determined in step S60, and a reference coordinate system is established according to the corresponding relationship between the measurement datums. In the process of using the measurement datums to constrain the spatial degrees of freedom, the principle of establishing the reference coordinate system is as follows: the features corresponding to the measurement datum are processed as regular geometric features; orientation and positioning are performed according to the degrees of freedom requirements of different geometric features, and the reference coordinate system is established in sequence from the first reference feature backwards in the order of the path until the feature corresponding to the last measurement datum is processed as a regular geometric feature and the spatial degrees of freedom constraints are completed. Figure 8 As shown, the measurement reference of each feature is identified, and the measurement reference corresponds to a feature that can form a geometric feature, such as a plane. Figure 7 The orientation and positioning logic shown performs orientation and positioning settings according to the degree of freedom requirements of different geometric feature constraints, starting from the first datum and judging backwards until all the degrees of freedom that can be constrained by all datums are constrained or the six spatial degrees of freedom are constrained.

[0073] In specific implementation, the above method can be implemented through the measurement program preprocessing module, such as Figure 2The measurement program preprocessing module shown corresponds to the representative processing logic in the middle box, which connects the two modules of information input and program output. The information input includes the MDS system, the CMM probe automatic configuration system, the fixture model, the part model, the feature list and the CP file. As mentioned above, the feature list and the CP file can jointly form feature information. For a three-coordinate measuring machine, the CMM probe automatic configuration system can automatically complete the probe configuration and control the probe. The fixture model and the part model can be directly obtained according to the actual design and measurement conditions. Among them: the CAS (Compare-And-Swap) logic rule is an existing rule, in which the single-element measurement strategy corresponds to the features and sorting in this application, and the path planning corresponds to the path planning of the features in a single group. Interference checking corresponds to the design of the avoidance parameters in this application. In addition to the representative logic mentioned above, it also includes identifying different datums, automatically establishing a coordinate system and calculating the coordinate and orientation relationship between the measured feature and the reference coordinate system through matrix transformation, and any single-element measurement framework building module. This module can identify, group, and logically sort the features between groups and build a single-element measurement framework, automatically identify and generate detection dimensions, retrieve geometric tolerances in input information, and determine the required coordinate system, projection plane direction, tool number and other accessory information, and automatically add it to the program and other related logic.

[0074] An embodiment of the present application also provides a computer-readable storage medium having a computer program / instruction stored thereon, wherein the computer program / instruction, when executed by a processor, implements the steps of the method for automatically compiling a program for a three-coordinate measuring machine as described in any one of the above-mentioned schemes.

[0075] An embodiment of the present application also provides a computer program product, including a computer program / instruction, characterized in that when the computer program / instruction is executed by a processor, the steps of the automatic program compilation method for a three-dimensional coordinate measuring machine described in any one of the above-mentioned schemes are implemented.

[0076] The present application also provides an electronic device, such as Fig.10As shown, the electronic device includes at least one processor 101 and at least one memory 102, at least one of the memories 102 stores program information, and at least one of the processors 101 reads the program information and executes the automatic program compilation method for the three-coordinate measuring machine described in any one of the above method embodiments. The device may also include: an input device 103 and an output device 104. The processor 101, the memory 102, the input device 103 and the output device 104 can be connected in communication. The memory 102, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The processor 101 executes various functional applications and data processing by running the non-volatile software programs, instructions and modules stored in the memory 102, that is, the automatic program compilation method for the three-coordinate measuring machine provided by any of the above schemes is realized. The memory 102 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required by at least one function; the data storage area may store data created according to the use of the automatic program compilation method for the three-coordinate measuring machine, etc. In addition, the memory 102 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 102 may optionally include a memory remotely arranged relative to the processor 101, and these remote memories may be connected to a device for executing the program automatic compilation method of a three-dimensional coordinate measuring machine through a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network and a combination thereof. The input device 103 may receive input user clicks, and generate signal inputs related to user settings and function controls of the program automatic compilation method of the three-dimensional coordinate measuring machine. The output device 104 may include a display device such as a display screen. When the one or more modules are stored in the memory 102 and are executed by the one or more processors 101, the program automatic compilation method of the three-dimensional coordinate measuring machine in any of the above-mentioned method embodiments is executed.

[0077] As needed, the above technical solutions can be combined to achieve the best technical effect.

[0078] The above are only the principles and preferred embodiments of the present application. It should be noted that, for ordinary technicians in this field, on the basis of the principles of the present application, several other modifications can be made, which should also be considered as the protection scope of the present application.

Claims

1. A method for automatically compiling a program for a three-coordinate measuring machine, characterized in that: include: Obtain characteristic information of the components to be tested; The characteristic information includes coordinate parameters, hole level parameters, corresponding probe information, process information and detection information; According to the feature information, the features are divided into surface features and hole features; the measurement position is determined according to the coordinate parameters, the number of measurement layers is determined according to the layer parameters of the holes, and the number of scanning points and filtering parameters are determined according to the process information and the detection information; Group all features and sort the detection order of different groups; Perform path planning for the detection of features within the same group; Determine the avoidance parameters by simulating the three-dimensional models of the components to be tested, fixtures and probes; Determine a measurement reference for each of the features, establish a reference coordinate system according to the corresponding relationship between the measurement references, and use the measurement references to constrain the spatial degrees of freedom; Determine a corresponding reference coordinate system and projection direction according to each of the detection information, and generate coordinate information relative to the reference according to a spatial relationship between the feature corresponding to the detection information and the reference coordinate system; Integrate the feature information, feature grouping information, sorting information of different groups, path planning information of features in the same group, avoidance parameter information, and a reference coordinate system corresponding to each feature information, a projection direction, and coordinate information relative to a reference as precompiled parameters; Substituting the pre-compiled parameters into the target position of the measurement program generates the measurement program.

2. The method for automatically compiling a program for a coordinate measuring machine according to claim 1, characterized in that: The step of obtaining characteristic information of the component to be tested includes: The product manufacturing information of the component to be tested is obtained, and the characteristic information contained in the product manufacturing information is extracted through a keyword of the characteristic information.

3. The method for automatically compiling a program for a coordinate measuring machine according to claim 1, characterized in that: The step of obtaining characteristic information of the component to be tested includes: Display prompt information, wherein the prompt information includes feature information options of the component to be tested; Receive input data corresponding to the feature information option input by the user, and obtain the feature information.

4. The method for automatically compiling a program for a coordinate measuring machine according to claim 1, characterized in that: According to the feature information, the features are divided into surface features and hole features; the measurement position is determined according to the coordinate parameters, the number of measurement layers is determined according to the level parameters of the holes, and the number of scanning points and filtering parameters are determined according to the process information and the detection information: The geometric tolerance of the component to be measured is obtained, and the measurement position, the number of measurement layers, the number of scanning points and the filtering parameters are adaptively adjusted according to the geometric tolerance.

5. The method for automatically compiling a program for a coordinate measuring machine according to any one of claims 1 to 4, characterized in that: The above method is to group all features and sort the detection order of different groups: Group all features according to the same probe principle; The inspection order of different groups is sorted according to the principle that the group where the measurement reference is located is before the group where the measurement feature is located and the probe group where the probe is located is continuous.

6. The method for automatically compiling a program for a three-dimensional coordinate measuring machine according to claim 5, characterized in that: In the path planning for the detection of features within the same group: According to the principle of the shortest actual measured path, the traveling salesman solution is performed on the features within the same group, and the optimal solution obtained is used as the planned path.

7. The method for automatically compiling a program for a three-dimensional coordinate measuring machine according to claim 6, characterized in that: Determine the measurement reference of each feature, establish a reference coordinate system according to the corresponding relationship between the measurement references, and use the measurement references to constrain the spatial degree of freedom: The principle for establishing the reference coordinate system is: processing the features corresponding to the measurement reference into regular geometric features; Orientation and positioning are performed according to the degree of freedom requirements of different geometric features, and the reference coordinate system is established in sequence from the first reference feature backwards in the order of the path until the feature corresponding to the last measurement reference is processed as a regular geometric feature and the spatial degree of freedom constraint is completed for it.

8. A computer-readable storage medium having a computer program / instruction stored thereon, characterized in that: When the computer program / instruction is executed by a processor, the steps of the method for automatically compiling a program for a coordinate measuring machine described in any one of claims 1 to 7 are implemented.

9. An electronic device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method for automatically compiling a program for a coordinate measuring machine according to any one of claims 1 to 7.

10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the steps of the method for automatically compiling a program for a coordinate measuring machine described in any one of claims 1 to 7 are implemented.