A three-dimensional scanning-based adaptive machining adjustment method for cast forgings

By employing 3D scanning and adaptive machining methods, the problem of dimensional fluctuations in castings and forgings during manufacturing was solved, enabling automated machining adjustments and improving machining efficiency and quality.

CN123137192APending Publication Date: 2026-11-20DONGFENG PRECISION CASTING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611393028.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-09
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

In the existing technology, castings and forgings are easily affected by forming process, material shrinkage and manufacturing errors during the manufacturing process, resulting in workpiece deformation and dimensional fluctuations. It is difficult to achieve automatic adaptation of machining positioning and program, the adjustment efficiency is low and the results are inconsistent.

Method used

An adaptive machining method based on 3D scanning is adopted. By combining an adjustable fixture and a machining center, the actual 3D shape of the workpiece is obtained. The machining contour relationship is established using a nearest neighbor search algorithm, the cutting allowance and hole deviation are calculated, and the coordinates of the fixture positioning point are automatically adjusted to meet the machining requirements.

Benefits of technology

It has enabled automated processing and adjustment of castings and forgings, improved processing adaptability, reduced the amount of manual adjustment work, and ensured that the processing quality meets the design requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123137192A_ABST
    Figure CN123137192A_ABST
Patent Text Reader

Abstract

The application discloses a kind of based on three-dimensional scanning's castings adaptive machining adjustment method, it is related to mechanical processing technical field.The method comprises the following steps: obtaining the actual shape point set of workpiece to be processed by three-dimensional scanning device, the minimum cutting allowance is calculated, and the maximum hole deviation and minimum wall thickness are obtained by simulating hole processing and material retention state after processing, and forming processing state parameter group according to the comparison result of processing state parameter group and design processing requirement, candidate positioning state is generated in the limited change space of positioning point coordinate, re-simulates processing state and selects fixture adjustment scheme, drives positioning point and clamping position, auxiliary support position linkage adjustment, and executes actual processing after passing through processing state review.The application improves the adaptability of castings processing to actual shape deviation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of machining technology, specifically to an adaptive machining adjustment method for castings and forgings based on three-dimensional scanning. Background Technology

[0002] During the manufacturing process, castings and forgings are easily affected by forming processes, material shrinkage and manufacturing errors, which can lead to workpiece deformation and dimensional fluctuations. Some workpieces may also have issues such as hole misalignment, insufficient local wall thickness or insufficient cutting allowance to meet processing requirements.

[0003] In existing technologies, a method of machining by borrowed dimensions is commonly used. This involves manually analyzing the relationship between the actual workpiece dimensions and the machining dimensions, and adjusting the fixture positioning or machining program to complete the machining while meeting product dimensional tolerances. However, this adjustment method relies on the experience of technicians for judgment and modification, requiring repeated analysis of the actual workpiece condition and machining conditions such as hole offsets, wall thickness, and cutting allowances. This results in low adjustment efficiency, and the adjustment results vary among different operators, making it difficult to achieve automatic adaptation of machining positioning and machining programs for workpieces with different dimensional states. Summary of the Invention

[0004] In order to solve the problems mentioned in the background art, the present invention proposes an adaptive machining adjustment method for castings and forgings based on three-dimensional scanning.

[0005] The objective of this invention can be achieved through the following technical solution: an adaptive machining adjustment method for castings and forgings based on three-dimensional scanning, comprising:

[0006] Step 1: Restore the adjustable fixture to its theoretical state, clamp the workpiece to be processed, and the 3D scanning device acquires the actual shape point set in the fixture coordinate system and transmits it to the machining center;

[0007] Step 2: The machining center generates a theoretical machining profile based on the actual shape point set and the initial machining program. It establishes the correspondence between each scan point and the theoretical machining profile through the nearest neighbor search algorithm and calculates the minimum cutting allowance.

[0008] Step 3: The machining center simulates hole machining and material retention after machining based on the actual shape point set and the initial machining program, calculates the maximum hole deviation and minimum wall thickness, and forms a machining state parameter set by the maximum hole deviation, minimum wall thickness and minimum cutting allowance.

[0009] Step 4: The machining center compares the machining status parameter set with the design machining requirements. If the machining status parameter set does not meet the design machining requirements, it establishes a restricted change space for the coordinates of the positioning points based on the initial positioning coordinates of each positioning point and the change limits of each coordinate.

[0010] Step 5: Based on the machining positions that do not meet the design machining requirements, the machining center generates multiple candidate positioning states within the limited space of the positioning point coordinates. The workpiece pose corresponding to each candidate positioning state is input into the machining state simulation process to obtain the candidate machining state parameters corresponding to each candidate positioning state.

[0011] Step 6: The machining center screens candidate positioning states based on the parameters of each candidate machining state and the design machining requirements. For the candidate positioning states that meet the three allowable thresholds, the final fixture adjustment scheme is determined according to the principle of maximizing the minimum machining state margin. For the candidate positioning states that do not meet the three allowable thresholds, the final fixture adjustment scheme is determined according to the principle of minimizing the overall deviation.

[0012] Step 7: The machining center drives each positioning point to move according to the final fixture adjustment scheme, and adjusts the clamping position and auxiliary support position in conjunction. The machining state is simulated again after the adjusted positioning state is verified and the initial machining program is executed.

[0013] In a preferred embodiment of the present invention, in step two, the machining center generates theoretical machining contours corresponding to each machining position based on the tool path corresponding to each machining position in the initial machining program, and all theoretical machining contours form a theoretical machining contour set; the scanning points in the actual shape point set are spatially matched with the theoretical machining contour set in the fixture coordinate system, and each scanning point is classified into the nearest theoretical machining contour according to the nearest neighbor search algorithm; for each machining position, the shortest spatial distance from all scanning points belonging to the machining position to the theoretical machining contour corresponding to the machining position is calculated, and the maximum value is taken as the local cutting allowance of the machining position, and the minimum value among all the local cutting allowances is the minimum cutting allowance.

[0014] In a preferred embodiment of the present invention, in step three, the machining center calls the theoretical hole center coordinates of each hole in the initial machining program, performs virtual simulation based on the actual shape point set and the current fixture positioning state, obtains the simulated hole center coordinates of each hole, calculates the spatial straight-line distance between each simulated hole center coordinate and the corresponding theoretical hole center coordinate, and takes the maximum value as the maximum hole deviation; the machining center determines the material retention area after machining based on the theoretical machining contour near each wall thickness judgment position, identifies two relatively close processed material boundaries in each material retention area, and calculates the shortest spatial distance between the two processed material boundaries as the remaining material thickness at the wall thickness judgment position, and the minimum value among all remaining material thicknesses is the minimum wall thickness.

[0015] In a preferred embodiment of the present invention, in step four, the machining center denotes the total number of positioning points on the adjustable fixture as L, and sets the lateral coordinate change, longitudinal coordinate change, and height coordinate change for the l-th positioning point in the fixture coordinate system in the lateral, longitudinal, and height directions, respectively; the limit range of the coordinate change in each direction is: the lower limit is the maximum allowable change in that direction (negative), and the upper limit is the maximum allowable change in that direction (positive). The maximum allowable change is determined by the physical adjustment stroke limit of the mechanical structure of the adjustable fixture in each direction.

[0016] In a preferred embodiment of the present invention, in step five, the machining center selects different combinations of changes in coordinates in each direction within the limit range of the changes in each positioning point according to a preset sampling step size to generate multiple candidate positioning states; for the nth candidate positioning state, the machining center performs rigid body transformation on the actual shape point set according to the coordinates of each positioning point in the state to obtain the candidate actual shape point set corresponding to the state, and re-executes the calculation methods described in steps two and three based on the candidate actual shape point set to obtain the candidate machining state parameters corresponding to the state. The candidate machining state parameters include the candidate maximum hole deviation, the candidate minimum wall thickness, and the candidate minimum cutting allowance.

[0017] In a preferred embodiment of the present invention, in step six, the machining center compares the candidate maximum hole deviation, candidate minimum wall thickness, and candidate minimum cutting allowance of each candidate positioning state with the three allowable thresholds one by one. The three allowable thresholds are the maximum allowable hole deviation threshold, the minimum allowable wall thickness threshold, and the minimum allowable cutting allowance threshold. Candidate positioning states that simultaneously meet the corresponding thresholds are included in the qualified candidate set. If the qualified candidate set is not empty, the hole deviation allowance, wall thickness allowance, and cutting allowance of each qualified candidate positioning state are calculated. The hole deviation allowance is equal to the maximum allowable hole deviation threshold minus the candidate maximum hole deviation of that state, the wall thickness allowance is equal to the candidate minimum wall thickness of that state minus the minimum allowable wall thickness threshold, and the cutting allowance is equal to the candidate minimum cutting allowance of that state minus the minimum allowable cutting allowance threshold. The largest of the three allowances is selected as the final fixture adjustment scheme.

[0018] In a preferred embodiment of the present invention, in step six, if the machining center determines that the qualified candidate set is empty, the overall deviation of each candidate positioning state is calculated. The overall deviation is calculated as follows: the absolute value of the difference between the candidate maximum hole deviation and the maximum allowable hole deviation threshold, the absolute value of the difference between the candidate minimum wall thickness and the minimum allowable wall thickness threshold, and the absolute value of the difference between the candidate minimum cutting allowance and the minimum allowable cutting allowance threshold are calculated respectively. The sum of the three absolute values ​​is the overall deviation of the candidate positioning state. The candidate positioning state with the smallest overall deviation is selected as the final fixture adjustment scheme.

[0019] Compared with existing technologies, this invention links an adjustable fixture, a 3D scanning device, and a machining center to obtain the actual 3D shape of the workpiece after clamping. Based on the initial machining program, it simulates and judges the hole offset, minimum wall thickness, and cutting allowance. When the simulation results do not meet the machining requirements, the coordinates of the fixture positioning point are used as adjustment variables. Within a preset range of variation, the machining state corresponding to different positioning positions is automatically calculated. After determining the adjustment scheme that meets the machining requirements or has the smallest deviation, the fixture is automatically controlled to complete the position adjustment. This transforms the traditional machining process that relies on manual experience and dimensions into an automatic calculation and fixture linkage adjustment process based on the actual state of the workpiece. This improves the adaptability of the first-order machining of castings and forgings of different sizes and reduces the amount of manual adjustment work. Attached Figure Description

[0020] To facilitate understanding by those skilled in the art, the present invention will be further described below with reference to the accompanying drawings.

[0021] Figure 1 This is a flowchart of the method steps of the present invention. Detailed Implementation

[0022] The technical solution of the present invention will be clearly and completely described below with reference to the embodiments. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.

[0023] It should be understood that the terms “comprising” and “including” used in this disclosure and claims indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.

[0024] It should also be understood that the terminology used in this disclosure is for the purpose of describing particular embodiments only and is not intended to limit the disclosure. As used in this disclosure and claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in this disclosure and claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes such combinations.

[0025] An adaptive machining adjustment method for castings and forgings based on 3D scanning is implemented using an adjustable fixture, a 3D scanning device, and a machining center. The adjustable fixture positions, clamps, and supports the workpiece; the 3D scanning device acquires the actual 3D shape information of the workpiece; and the machining center executes the initial machining program, simulates the machining state, calculates the fixture adjustment scheme, and controls the adjustable fixture to adjust its position.

[0026] The adjustable fixture includes multiple positioning points, a clamping position, and an auxiliary support position. Each positioning point has initial positioning coordinates, which represent the position of the corresponding positioning point in the fixture coordinate system. The clamping position and the auxiliary support position are linked to the positioning points; when the positioning point coordinates change, the clamping position and the auxiliary support position adjust accordingly based on the adjustment result of the positioning points.

[0027] The machining center pre-stores the initial machining program and the corresponding design machining requirements. The initial machining program describes the theoretical machining trajectory of the workpiece to be machined, and the design machining requirements include at least the hole location requirements, minimum wall thickness requirements, and cutting allowance requirements.

[0028] Please see Figure 1 As shown, an adaptive machining adjustment method for castings and forgings based on three-dimensional scanning includes the following steps:

[0029] Step 1: Establish the actual shape coordinate information of the workpiece to be processed. The specific process is as follows:

[0030] Before processing a new workpiece, the adjustable fixture is restored to its preset theoretical state. The theoretical state means that all positioning points on the adjustable fixture are located at their respective initial positioning coordinates, and all clamping positions and auxiliary support positions on the adjustable fixture are in a position matching the initial positions of their corresponding positioning points according to the fixture's kinematic calibration relationship. This reset operation ensures that the adjustable fixture has a uniform initial reference state before each processing operation.

[0031] The workpiece to be processed is placed on the adjustable fixture that is already in its theoretical state, and the operator or automatic clamping mechanism initiates the clamping action, so that the clamping parts and auxiliary support parts on the fixture act on the corresponding parts of the workpiece until the workpiece is reliably fixed.

[0032] After the workpiece is clamped and fixed, the 3D scanning device is activated to perform a full-area scan of the exposed surface of the workpiece. After scanning, the 3D scanning device outputs a set of actual shape points composed of multiple scan points. This set of points represents the true 3D contour of the workpiece in its clamped state. Specifically, this set of actual shape points is denoted as set P, and the total number of scan points in set P is denoted as N, where N is a positive integer greater than 1. Each scan point in set P is denoted as Pi. i , where i is the index of the scan point, and i takes values ​​from 1 to N; each scan point P i Each fixture has three position coordinates in the coordinate system: the horizontal coordinate x... i Vertical coordinate y i and height coordinate z i The fixture coordinate system is a spatial rectangular coordinate system pre-fixed on the adjustable fixture, and its origin, coordinate axis direction and scale unit have been pre-calibrated.

[0033] The 3D scanning device transmits the obtained actual shape point set P to the control program of the machining center in real time.

[0034] Step 2: Establish the actual machining boundary corresponding to the initial machining state, specifically as follows:

[0035] After obtaining the actual shape point set P and transmitting it to the machining center, the machining center reads the initial machining program stored internally. This initial machining program contains preset toolpath information. Based on this toolpath information, the machining center generates a corresponding theoretical machining profile for each preset machining position in the initial machining program. The machining position refers to the pre-set control point position on the toolpath that requires machining state judgment.

[0036] The theoretical processing boundaries corresponding to all processing positions collectively constitute the set of theoretical processing contours. Specifically, this set of theoretical processing boundaries is denoted as set S; the total number of theoretical processing boundaries contained in set S is denoted as M, where M is a positive integer greater than or equal to 1; each theoretical processing boundary in set S is denoted as S0. j The subscript j represents the sequence number of the processing position, with j ranging from 1 to M; where S j This represents the theoretical processing boundary corresponding to the j-th processing position.

[0037] The machining center performs spatial position matching and correspondence between the received actual shape point set P and the generated theoretical machining boundary set S in the fixture coordinate system, thereby establishing the initial machining state of the workpiece under this positioning state.

[0038] When establishing this initial machining state, for each machining position, the machining center needs to first determine the theoretical machining boundary S with respect to that machining position. jThe corresponding scan points in space. Specifically, using a nearest neighbor search algorithm, all scan points are categorized according to their spatial location into the regions containing the nearest theoretical processing contours, thereby obtaining the region corresponding to the j-th theoretical processing boundary S. j The corresponding set of scan points is denoted as Ω. j This correspondence is pre-set based on the principle of closest spatial distance in the fixture coordinate system, ensuring that each scanning point belongs to only one theoretical machining contour corresponding to a machining position.

[0039] After completing the above spatial correspondence, for each machining position, the machining center calculates the shortest spatial distance from each actual scanning point to the corresponding theoretical machining boundary based on each actual scanning point belonging to that machining position. Then, the maximum value among these shortest spatial distances is taken as the local cutting allowance for that machining position. This value represents the maximum material thickness of the actual blank surface at that position relative to the theoretical machining profile.

[0040] Specifically, the local cutting allowance at the j-th machining position is denoted as a. j The a j The calculation process is as follows: Obtain the theoretical processing boundary S belonging to the j-th boundary. j The set of scan points Ω j Then, calculate the set Ω respectively. j Each scan point P in i To the theoretical processing boundary S j The shortest spatial distance is denoted as distance d; finally, the largest of these distance values ​​is selected as the local cutting allowance a for the j-th machining position. j .

[0041] After obtaining the local cutting allowances for all M machining positions, the machining center obtains a set of local cutting allowance values, which are a1, a2, ..., a M The machining center compares these values ​​and selects the smallest one as the minimum cutting allowance for the workpiece in the current positioning state, denoted as A. min Minimum cutting allowance A min This serves as the first piece of machining status information required for subsequent adjustments to the adjustable fixture.

[0042] Step 3: Establish simultaneous evaluation results for hole deviation and minimum wall thickness. The specific process is as follows:

[0043] To obtain the minimum cutting allowance A min Subsequently, for the positions where drilling or boring is required as predefined in the initial machining program, the machining center performs a hole position deviation simulation calculation based on the theoretical hole positions set in the initial machining program and the actual shape point set of the workpiece to be processed.

[0044] During this calculation process, the machining center calls the theoretical hole center coordinates of each hole preset in the initial machining program. These theoretical hole center coordinates originate from the design machining requirements corresponding to the initial machining program. Based on the actual shape point set of the workpiece to be machined and the current adjustable fixture positioning state, the machining center performs virtual simulation of the tool cutting process. Specifically, it can simulate the actual spatial position of the hole in the fixture coordinate system after the hole is machined on the actual workpiece surface through Boolean intersection operation between the tool scanning body and the actual shape point set, and define this simulated position as the simulated hole center coordinates.

[0045] For the k-th hole that needs to be judged, its designed hole center coordinates have three directional components: horizontal design coordinates, vertical design coordinates, and height design coordinates; its simulated hole center coordinates also have three directional components: horizontal simulated coordinates, vertical simulated coordinates, and height simulated coordinates. The machining center calculates the spatial straight-line distance between the designed hole center coordinates and the simulated hole center coordinates, and defines this spatial straight-line distance as the hole offset of the k-th hole. Specifically, the calculation is as follows: subtract the horizontal design coordinates from the horizontal simulated coordinates to obtain the horizontal difference; subtract the vertical design coordinates from the vertical simulated coordinates to obtain the vertical difference; and subtract the height design coordinates from the height simulated coordinates to obtain the height difference. Then, square the horizontal difference, vertical difference, and height difference respectively, add the three squared values, and then take the square root of the sum. The resulting value is the hole offset of the hole.

[0046] Following the above calculation process, the machining center performs the same calculations on all K holes that need to be considered for hole deviation in the initial machining program, obtaining a set of hole deviation values, in sequence: the hole deviation of the first hole, the hole deviation of the second hole, ..., the hole deviation of the Kth hole. Subsequently, the machining center compares these hole deviation values ​​and selects the largest value as the maximum hole deviation in the current positioning state.

[0047] While or after calculating the hole offset, the machining center also calculates the remaining material thickness at each key position on the workpiece after machining, based on the actual shape point set and the theoretical machining boundary set.

[0048] The initial machining program pre-sets multiple judgment positions for wall thickness detection, collectively referred to as wall thickness judgment positions, with a total number denoted as R. For each wall thickness judgment position, the machining center obtains the material retention area after machining based on the theoretical machining boundary near that position. Then, within this material retention area, it identifies two opposing and closest post-machining material boundaries. Finally, it calculates the shortest spatial distance between these two opposing material boundaries and defines this distance value as the remaining material thickness corresponding to that wall thickness judgment position. Following this process, the machining center obtains the remaining material thickness at the first wall thickness judgment position, the second wall thickness judgment position, ..., the Rth wall thickness judgment position. Subsequently, the machining center compares these remaining material thickness values ​​and selects the smallest value as the minimum wall thickness in the current positioning state.

[0049] At this point, the machining center will combine the three machining status indicators obtained—the maximum hole deviation, the minimum wall thickness, and the minimum cutting allowance calculated in the previous steps—to form the initial machining status parameter set under the current positioning state.

[0050] After obtaining the initial processing status parameter set, the machining center determines whether all three indicators in the parameter set meet the design processing requirements (see step five for specific judgment criteria). If all are met, the adjustment process is not started; otherwise, the adjustment calculation process in steps four and five is entered.

[0051] Step 4: Establish a constrained space for the coordinates of the positioning point. The process is as follows:

[0052] After determining that the fixture adjustment process needs to be initiated, the machining center needs to obtain the spatial position reference information of each positioning point on the adjustable fixture. Specifically, the machining center pre-stores and reads the initial positioning coordinates of all positioning points contained in the adjustable fixture, wherein the initial positioning coordinates are the calibrated positions of each positioning point in the fixture coordinate system when the adjustable fixture is in the aforementioned theoretical state.

[0053] The machining center denotes the total number of positioning points on the adjustable fixture as L. For the l-th positioning point, its initial positioning coordinates have three initial coordinate components in the three coordinate axes of the fixture coordinate system, namely the horizontal initial coordinate, the vertical initial coordinate, and the height initial coordinate.

[0054] When performing fixture adjustment calculations, the machining center assigns a coordinate change to be solved for each coordinate direction of each positioning point. For the l-th positioning point, its coordinate change has three components in each of the three coordinate axes: horizontal coordinate change, vertical coordinate change, and height coordinate change. This coordinate change represents the distance and direction in which the positioning point needs to move from its initial positioning coordinates.

[0055] Once the aforementioned coordinate changes are determined, the adjusted actual positioning coordinates of the l-th positioning point are obtained by adding the initial positioning coordinates of that point to the corresponding coordinate changes. Specifically, the adjusted actual horizontal coordinates are equal to the sum of the initial horizontal coordinates and the horizontal coordinate changes; the adjusted actual vertical coordinates are equal to the sum of the initial vertical coordinates and the vertical coordinate changes; and the adjusted actual height coordinates are equal to the sum of the initial height coordinates and the height coordinate changes.

[0056] The machining center pre-defines a specific allowable range for each coordinate change at each positioning point. This allowable range is the aforementioned limit of coordinate change. For the coordinate change of the l-th positioning point in any coordinate axis direction, the lower limit of the allowable value is the negative maximum allowable change in that direction, and the upper limit of the allowable value is the positive maximum allowable change in that direction. That is, the coordinate change can only take any value between the negative maximum allowable change and the positive maximum allowable change.

[0057] Step 5: Establish the positioning point adjustment calculation process driven by the machining state:

[0058] After obtaining the initial machining state parameter set, the machining center compares each indicator in the parameter set—maximum hole deviation, minimum wall thickness, and minimum cutting allowance—with the preset design machining requirements. The design machining requirements include the maximum allowable hole deviation threshold, the minimum allowable wall thickness threshold, and the minimum allowable cutting allowance threshold, all of which are pre-stored in the machining center's control program.

[0059] If the machining center determines that the current maximum hole deviation is less than or equal to the maximum permissible hole deviation threshold, the current minimum wall thickness is greater than or equal to the minimum permissible wall thickness threshold, and the current minimum cutting allowance is greater than or equal to the minimum permissible cutting allowance threshold, then the current initial machining state is deemed to meet the design machining requirements. In this case, the machining center keeps all positioning points on the adjustable fixture at their initial positioning coordinates, does not perform any positioning adjustment operations, and directly begins machining the current workpiece according to the initial machining program.

[0060] Conversely, if the machining center determines that at least one of the three indicators—maximum hole deviation, minimum wall thickness, and minimum cutting allowance—does not meet the corresponding threshold conditions, then the current initial machining state is deemed not to meet the design machining requirements. In this case, the machining center initiates the positioning point adjustment calculation process.

[0061] When initiating the positioning point adjustment calculation process, the machining center uses all machining positions in the current machining state that do not meet the design machining requirements as spatial references to determine the positioning adjustment direction. Specifically, the machining center identifies the machining positions corresponding to local areas of the workpiece that cause excessive hole deviation, insufficient wall thickness, or insufficient allowance. Based on the distribution of these machining positions in the fixture coordinate system, it comprehensively judges which positioning points need to be adjusted and the approximate movement direction of each positioning point, thereby generating multiple candidate positioning states.

[0062] When generating candidate positioning states, the machining center selects different combinations of coordinate changes for each set positioning point within its allowable limits, according to a preset equal-interval sampling step size. Each combination corresponds to a complete positioning state, called a candidate positioning state. The total number of candidate positioning states is automatically determined by the machining center based on the preset search step size and computing resources; it is at least one, and usually multiple, to cover possible adjustment schemes.

[0063] For the nth candidate positioning state, the machining center represents it as the set of actual coordinates of all L positioning points in that state. Specifically, the nth candidate positioning state includes the coordinates of the first positioning point in that state, the coordinates of the second positioning point in that state, and so on, up to the coordinates of the Lth positioning point in that state.

[0064] For the nth candidate positioning state generated, the machining center uses the coordinates of each positioning point in the candidate positioning state as the new workpiece positioning reference, and re-matches the actual shape point set of the workpiece to be processed with the candidate positioning state to obtain the corresponding candidate actual shape point set. This matching process is based on the principle of rigid body transformation, that is, the entire actual shape point set of the workpiece undergoes corresponding translation and rotation as the positioning points change.

[0065] Subsequently, based on the candidate actual shape point set, the machining center performs virtual simulation of the machining process again according to the tool path of the initial machining program, simulating the new machining quality state achieved by the workpiece after completing all machining in the candidate positioning state. This re-simulation process uses the same hole deviation calculation method and wall thickness calculation method as described above, respectively calculating the candidate maximum hole deviation, candidate minimum wall thickness, and candidate minimum cutting allowance corresponding to the candidate positioning state.

[0066] Therefore, for the nth candidate positioning state, the machining center obtains a set of corresponding candidate machining state parameters, including the candidate maximum hole deviation, candidate minimum wall thickness, and candidate minimum cutting allowance in that state.

[0067] It is important to emphasize that in the above adjustment calculation process, the actual shape information does not directly output the final fixture adjustment amount. Instead, it indirectly drives the adjustment decision by re-simulating and calculating the processing quality index under each candidate positioning state.

[0068] Based on the candidate states and their corresponding processing state parameters accumulated during the interaction process, the machining center selects the optimal candidate positioning state that enables all three indicators to meet the design processing requirements, or selects the candidate positioning state that minimizes the number of unmet items and the degree of deviation, and outputs and executes it as the final adjustable fixture adjustment scheme.

[0069] Step Six: Establish a screening process for positioning schemes that meet processing requirements. The process is as follows:

[0070] Based on each candidate positioning state and its corresponding candidate machining state parameters, the machining center pre-stores the allowable indicators specified in the design machining requirements for the current workpiece. Specifically, these design machining requirements include three allowable thresholds: the maximum allowable hole deviation threshold, the minimum allowable wall thickness threshold, and the minimum allowable cutting allowance threshold. These three thresholds are all derived from the design drawings or process specifications of the workpiece and are pre-entered into the machining center's control program.

[0071] For each candidate positioning state generated in the preceding steps, the machining center compares its corresponding candidate maximum hole deviation, candidate minimum wall thickness, and candidate minimum cutting allowance with the three allowable thresholds mentioned above one by one.

[0072] For a machining center to determine whether a candidate positioning state is acceptable for machining requirements, it must simultaneously meet the following three conditions: the maximum hole deviation in the candidate positioning state is less than or equal to the maximum permissible hole deviation threshold; the minimum wall thickness in the candidate positioning state is greater than or equal to the minimum permissible wall thickness threshold; and the minimum cutting allowance in the candidate positioning state is greater than or equal to the minimum permissible cutting allowance threshold. Only when all three conditions are met is the candidate positioning state considered acceptable; if any one condition is not met, the candidate positioning state is considered unacceptable.

[0073] The machining center performs a qualification assessment on each of the generated candidate positioning states according to the above judgment rules, and includes all the candidate positioning states that are deemed qualified into the qualified candidate positioning state set.

[0074] If, after the above determination, the set of qualified candidate positioning states contains at least one candidate positioning state, the machining center determines the final fixture adjustment scheme from this qualified set. This implementation uses a comprehensive evaluation strategy based on machining state allowances for selection. Specifically, for each candidate positioning state in the set of qualified candidate positioning states, the machining center calculates its three machining state allowances: the first is the hole offset allowance, which equals the maximum allowable hole offset threshold minus the candidate maximum hole offset in that state; a larger value indicates a stronger allowance in hole offset. The second is the wall thickness allowance, which equals the candidate minimum wall thickness in that state minus the minimum allowable wall thickness threshold; a larger value indicates a greater safety margin in wall thickness. The third is the cutting allowance, which equals the candidate minimum cutting allowance in that state minus the minimum allowable cutting allowance threshold; a larger value indicates a greater allowance in cutting allowance.

[0075] The machining center uses the three allowance values ​​to form a machining state allowance parameter group corresponding to the candidate positioning state. When comparing different candidate positioning states, the machining center selects according to a preset comprehensive evaluation rule. The preset rule is: compare the minimum value among the three allowance values, and prioritize the candidate scheme with the largest minimum allowance value; this rule is set by the operator and stored in the machining center before machining.

[0076] Based on the aforementioned preset evaluation rules, the machining center selects the optimal candidate positioning state from the set of qualified candidate positioning states, uses it as the final adjustable fixture adjustment scheme, and outputs the corresponding target coordinates of each positioning point for the actuator to execute.

[0077] If, after evaluation, the set of qualified candidate positioning states does not contain any candidate positioning states (i.e., no candidate positioning state can simultaneously satisfy all three allowable threshold conditions), then the machining center will no longer continue to generate new candidate positioning states indefinitely. At this point, the machining center confirms that the coordinate changes of all positioning points in each direction have reached or exceeded their respective preset limit ranges, and that the calculation of all generateable candidate positioning states has been completed under these limit boundary conditions.

[0078] In this case, the machining center selects the positioning state with the smallest overall deviation from the design machining requirements from all candidate positioning states (including unqualified states) that have been calculated, as the actual compromise solution for fixture adjustment. The specific calculation of the overall deviation is as follows: For each candidate positioning state, its candidate maximum hole deviation, candidate minimum wall thickness, and candidate minimum cutting allowance are first normalized to eliminate the influence of dimensions. Then, the absolute values ​​of the differences between the normalized candidate maximum hole deviation and the maximum allowable hole deviation threshold, the normalized candidate minimum wall thickness and the minimum allowable wall thickness threshold, and the normalized candidate minimum cutting allowance and the minimum allowable cutting allowance threshold are calculated respectively. These three absolute values ​​are then added together according to preset weights. The sum represents the overall deviation of the candidate positioning state from the design requirements. The smaller the sum, the closer the positioning state is to the design requirements.

[0079] The machining center sorts all calculated candidate positioning states according to their overall deviation from smallest to largest, and selects the candidate positioning state with the smallest total deviation as the final adjustable fixture adjustment scheme for output and execution. Through the above process, even if a completely satisfactory solution cannot be found, this implementation method can still provide a relatively optimal feasible positioning state, avoiding complete interruption of the machining process due to an unsolvable adjustment problem.

[0080] Step 7: Fixture adjustment, status verification, and actual machining. The process is as follows:

[0081] After the machining center determines the final fixture adjustment scheme, it converts the target coordinates of each positioning point corresponding to the scheme into control commands for each drive axis of the adjustable fixture, and transmits the control commands to the drive control program of the adjustable fixture.

[0082] The adjustable fixture's drive control program, based on the received target coordinates of each positioning point, drives the corresponding actuators to move each positioning point from its initial positioning coordinates to its corresponding target coordinates. During the movement of the positioning points, coordinated adjustments are made according to a pre-established positional linkage relationship. This positional linkage relationship refers to a mapping rule, pre-calibrated based on the kinematic structure of the adjustable fixture, where the clamping position and auxiliary support position change synchronously with the displacement of each positioning point. Through this linkage adjustment, it is ensured that after the positioning point position changes, the clamping position and auxiliary support position, together with the adjusted positioning point, can form a complete clamping configuration adapted to the positioning state, guaranteeing that the workpiece can still be reliably clamped and stably supported in the adjusted positioning state.

[0083] After all the positioning points of the adjustable fixture have moved and reached the target coordinates, the current final positioning state is re-entered into the machining state simulation program to verify the machining quality indicators under the final positioning state.

[0084] Specifically, the machining center again uses the same simulation calculation method as the previous steps. Based on the actual workpiece spatial pose in the final positioning state, it recalculates the maximum hole deviation, minimum wall thickness, and minimum cutting allowance that will be generated after machining in this state. These are denoted as the maximum hole deviation in the final positioning state, the minimum wall thickness in the final positioning state, and the minimum cutting allowance in the final positioning state, respectively.

[0085] The machining center will compare the three final indicators obtained from the review with the aforementioned maximum allowable hole deviation threshold, minimum allowable wall thickness threshold, and minimum allowable cutting allowance threshold, respectively. If the maximum hole deviation in the final positioning state is less than or equal to the maximum allowable hole deviation threshold, and the minimum wall thickness in the final positioning state is greater than or equal to the minimum allowable wall thickness threshold, and the minimum cutting allowance in the final positioning state is greater than or equal to the minimum allowable cutting allowance threshold, then all three conditions are met simultaneously. The machining center will then determine that the review is qualified and begin actual cutting of the workpiece according to the initial machining program.

[0086] Conversely, if any of the three indicators obtained from the review fail to meet the corresponding threshold condition, the machining center determines that the review is unqualified. In this case, the machining center immediately stops subsequent machining operations and generates an alarm message to prompt the operator that the current fixture adjustment result has not passed the final review, thus prompting the operator to check the fixture status or re-execute the adjustment process.

[0087] The maximum permissible variation in each of the above directions is derived from the actual physical adjustment stroke limit of the adjustable fixture's own mechanical structure in the corresponding direction. This maximum permissible variation is calibrated by the fixture manufacturer at the factory or obtained through actual measurement during fixture installation and commissioning, and is pre-stored in the machining center's control program as a fixed parameter for use during adjustment calculations.

[0088] By setting the aforementioned limit range for the coordinate change of each positioning point, the machining center searches and calculates only within the spatial position range that the adjustable fixture's mechanical structure can actually execute when performing subsequent fixture position optimization. This ensures that the target positions of each positioning point corresponding to the final adjustment scheme do not exceed the actual movement capability of the adjustable fixture, avoiding the problem of adjustment commands failing to execute due to calculation results exceeding the fixture's adjustment stroke.

[0089] The preferred embodiments of the present invention disclosed above are merely illustrative of the invention. These preferred embodiments do not exhaustively describe all details, nor do they limit the invention to any specific implementation. Clearly, many modifications and variations can be made based on the content of this specification. This specification selects and specifically describes these embodiments to better explain the principles and practical applications of the invention, thereby enabling those skilled in the art to better understand and utilize the invention. The invention is limited only by the claims and their full scope and equivalents.

Claims

1. A method for adaptive machining adjustment of castings and forgings based on three-dimensional scanning, characterized in that, include: Step 1: Restore the adjustable fixture to its theoretical state, clamp the workpiece to be processed, and the 3D scanning device acquires the actual shape point set in the fixture coordinate system and transmits it to the machining center; Step 2: The machining center generates a theoretical machining profile based on the actual shape point set and the initial machining program. It establishes the correspondence between each scan point and the theoretical machining profile through the nearest neighbor search algorithm and calculates the minimum cutting allowance. Step 3: The machining center simulates hole machining and material retention after machining based on the actual shape point set and the initial machining program, calculates the maximum hole deviation and minimum wall thickness, and forms a machining state parameter set by the maximum hole deviation, minimum wall thickness and minimum cutting allowance. Step 4: The machining center compares the machining status parameter set with the design machining requirements. If the machining status parameter set does not meet the design machining requirements, it establishes a restricted change space for the coordinates of the positioning points based on the initial positioning coordinates of each positioning point and the change limits of each coordinate. Step 5: Based on the machining positions that do not meet the design machining requirements, the machining center generates multiple candidate positioning states within the limited space of the positioning point coordinates. The workpiece pose corresponding to each candidate positioning state is input into the machining state simulation process to obtain the candidate machining state parameters corresponding to each candidate positioning state. Step 6: The machining center screens candidate positioning states based on the parameters of each candidate machining state and the design machining requirements. For the candidate positioning states that meet the three allowable thresholds, the final fixture adjustment scheme is determined according to the principle of maximizing the minimum machining state margin. For the candidate positioning states that do not meet the three allowable thresholds, the final fixture adjustment scheme is determined according to the principle of minimizing the overall deviation. Step 7: The machining center drives each positioning point to move according to the final fixture adjustment scheme, and adjusts the clamping position and auxiliary support position in conjunction. The machining state is simulated again after the adjusted positioning state is verified to be qualified, and the initial machining program is executed.

2. The adaptive machining adjustment method for castings and forgings based on three-dimensional scanning according to claim 1, characterized in that, In step two, the machining center generates theoretical machining contours for each machining position based on the tool path corresponding to each machining position in the initial machining program. All theoretical machining contours form a set of theoretical machining contours. The scanning points in the actual shape point set are spatially matched with the set of theoretical machining contours in the fixture coordinate system. The scanning points are classified into the nearest theoretical machining contours according to the nearest neighbor search algorithm. For each machining position, the shortest spatial distance from all scanning points belonging to that machining position to the corresponding theoretical machining contour is calculated, and the maximum value is taken as the local cutting allowance for that machining position. The minimum value among all the local cutting allowances is the minimum cutting allowance.

3. The adaptive machining adjustment method for castings and forgings based on three-dimensional scanning according to claim 1, characterized in that, In step three, the machining center calls the theoretical hole center coordinates of each hole in the initial machining program, performs virtual simulation based on the actual shape point set and the current fixture positioning state, obtains the simulated hole center coordinates of each hole, calculates the spatial straight-line distance between each simulated hole center coordinate and the corresponding theoretical hole center coordinate, and takes the maximum value as the maximum hole deviation; the machining center determines the material retention area after machining based on the theoretical machining contour near each wall thickness judgment position, identifies two relatively close processed material boundaries in each material retention area, and calculates the shortest spatial distance between the two processed material boundaries as the remaining material thickness at that wall thickness judgment position, and the minimum value among all remaining material thicknesses is the minimum wall thickness.

4. The adaptive machining adjustment method for castings and forgings based on three-dimensional scanning according to claim 1, characterized in that, In step four, the machining center denotes the total number of positioning points on the adjustable fixture as L. For the l-th positioning point among all positioning points, the horizontal coordinate change, vertical coordinate change, and height coordinate change are set in the horizontal, vertical, and height directions of the fixture coordinate system, respectively. The limit range of the coordinate change in each direction is: the lower limit is the maximum allowable change in that direction, and the upper limit is the maximum allowable change in that direction, which is determined by the physical adjustment stroke limit of the mechanical structure of the adjustable fixture in each direction.

5. The adaptive machining adjustment method for castings and forgings based on three-dimensional scanning according to claim 4, characterized in that, In step five, the machining center selects different combinations of changes in coordinates of each positioning point within the limit range of each direction change according to a preset sampling step size to generate multiple candidate positioning states. For the nth candidate positioning state, the machining center performs rigid body transformation on the actual shape point set according to the coordinates of each positioning point in the state to obtain the candidate actual shape point set corresponding to the state. Based on the candidate actual shape point set, the calculation method described in steps two and three is re-executed to obtain the candidate machining state parameters corresponding to the state. The candidate machining state parameters include the candidate maximum hole deviation, the candidate minimum wall thickness, and the candidate minimum cutting allowance.

6. The adaptive machining adjustment method for castings and forgings based on three-dimensional scanning according to claim 1, characterized in that, In step six, the machining center compares the candidate maximum hole deviation, candidate minimum wall thickness, and candidate minimum cutting allowance for each candidate positioning state with the three allowable thresholds one by one. The three allowable thresholds are the maximum allowable hole deviation threshold, the minimum allowable wall thickness threshold, and the minimum allowable cutting allowance threshold. Candidate positioning states that simultaneously meet the corresponding thresholds are included in the qualified candidate set. If the qualified candidate set is not empty, the hole deviation allowance, wall thickness allowance, and cutting allowance for each qualified candidate positioning state are calculated. The hole deviation allowance is equal to the maximum allowable hole deviation threshold minus the candidate maximum hole deviation for that state, the wall thickness allowance is equal to the candidate minimum wall thickness for that state minus the minimum allowable wall thickness threshold, and the cutting allowance is equal to the candidate minimum cutting allowance for that state minus the minimum allowable cutting allowance threshold. The smallest value among the three allowances is selected as the final fixture adjustment scheme.

7. The adaptive machining adjustment method for castings and forgings based on three-dimensional scanning according to claim 1, characterized in that, In step six, if the machining center determines that the qualified candidate set is empty, the overall deviation of each candidate positioning state is calculated. The overall deviation is calculated as follows: the absolute value of the difference between the candidate maximum hole deviation and the maximum allowable hole deviation threshold, the absolute value of the difference between the candidate minimum wall thickness and the minimum allowable wall thickness threshold, and the absolute value of the difference between the candidate minimum cutting allowance and the minimum allowable cutting allowance threshold are calculated respectively. The three absolute values ​​of difference are added together, and the sum is the overall deviation of the candidate positioning state. The candidate positioning state with the smallest overall deviation is selected as the final fixture adjustment scheme.