A long crack waveguide slot adaptive numerical control machining method with in-machine error compensation

By using an adaptive CNC machining method for long-cracked waveguide slots with machine error compensation, the error of the waveguide slot is acquired and corrected in real time, and a precise machining trajectory is generated. This solves the problems of low accuracy and efficiency in waveguide slot machining and achieves high-efficiency and high-precision slot machining.

CN122194864APending Publication Date: 2026-06-12CNGC INST NO 206 OF CHINA ARMS IND GRP

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
CNGC INST NO 206 OF CHINA ARMS IND GRP
Filing Date
2026-02-27
Publication Date
2026-06-12

AI Technical Summary

Technical Problem

Traditional processing methods cannot effectively compensate for the deformation error of waveguides, resulting in low processing accuracy and efficiency of the slots in rectangular waveguide slot array antennas, which cannot meet the needs of mass production.

Method used

The measurement coordinates of each preset slit position are obtained by machine-triggered measurement, a reference coordinate is selected for comparison, the error compensation value is calculated, and the theoretical milling depth is corrected based on the error compensation value to generate a precise machining trajectory and control the milling fixture to perform machining.

Benefits of technology

It achieves high-precision machining of waveguide slots, improves machining efficiency, reduces manual intervention and error accumulation, and ensures that the slot depth and shape meet the expected accuracy, making it suitable for mass production.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122194864A_ABST
    Figure CN122194864A_ABST
Patent Text Reader

Abstract

The application relates to a long-crack waveguide slot adaptive numerical control machining method for in-machine error compensation, which comprises the following steps: firstly, the actual Z coordinate of the surface of each predetermined slotting position is measured along the waveguide tube axis by using an in-machine measurement system of a numerical control machine tool, the error compensation value of the actual Z coordinate relative to a reference position is calculated and stored; then, a slot machining subroutine is used to receive slot theoretical depth and angle parameters, and the error compensation value of the corresponding position can be called, and the actual machining depth is calculated based on the theoretical depth and the compensation value; finally, based on the angle and the theoretical depth parameters corresponding to each slot, the machining of all slots is completed by driving the machine tool. The application realizes automatic compensation of the deformation of the slender waveguide, guarantees the machining precision of each slot depth, greatly improves the machining efficiency and the automation degree, and further solves the problems of the existing slender crack waveguide, such as the non-uniform machining reference of each radiation slot caused by the deformation of the slender crack waveguide, low precision and low efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of precision machining technology, and specifically to an adaptive CNC machining method for long cracked waveguide gaps with in-machine error compensation. Background Technology

[0002] Rectangular waveguide slot array antennas are widely used in modern radar systems due to their compact structure and superior performance. The core component of this type of antenna is the slot waveguide, which consists of dozens to hundreds of radiating slots precisely machined into the narrow or wide side of a standard waveguide. The depth and angle of each slot are designed according to the antenna's electrical performance and vary, requiring high machining precision. For example, the depth tolerance is ±0.02 mm, and the angle tolerance is ±0.1°.

[0003] These waveguides are typical slender, thin-walled components. The material is mostly soft aluminum (3A21 series). For example, a length of 3.5 meters has an aspect ratio of 290:1. Due to residual stress from the blank rolling process and clamping deformation, unpredictable random bending occurs throughout, resulting in inconsistent heights of the slit reference plane at different locations along the length. This error can reach over 0.2 mm, far exceeding the required slit depth.

[0004] Traditional processing methods involve using clamps such as rotary vises to clamp, align, and machine each piece individually, addressing the tool and machining each gap. This method heavily relies on operator experience, is labor-intensive, extremely inefficient, inconsistent, and has a high scrap rate, making it completely unsuitable for mass production.

[0005] While CNC machine tools can improve the level of automation, using a uniform coordinate system to process all gaps will not be able to compensate for the deformation error of the waveguide itself, resulting in some gaps having depths that exceed tolerances.

[0006] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of the present invention, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention

[0007] This invention provides an adaptive CNC machining method for long cracked waveguide gaps with on-machine error compensation, a computer-readable storage medium, and a computer program product, which can effectively overcome the defects existing in the prior art.

[0008] Other features and advantages of the invention will become apparent from the following detailed description, or may be learned in part by practice of the invention.

[0009] According to a first aspect of the present invention, an adaptive CNC machining method for long-slit waveguide gaps with on-machine error compensation is provided, the method comprising: In-machine triggered measurements were performed on several preset slot positions of the waveguide workpiece to obtain the measurement coordinates corresponding to each preset slot position; Among the measurement coordinates corresponding to each preset slot position, the reference coordinates are selected, and the measurement coordinates corresponding to the remaining preset slot positions are compared with the reference coordinates to obtain the error compensation value of the waveguide slot. When machining waveguide slots, the theoretical milling depth of the current waveguide slot is corrected based on the error compensation value to obtain the actual milling depth; Based on the actual milling depth, angle parameters, and gap length of the current waveguide gap, a machining trajectory is generated, and the milling fixture is controlled to move according to the machining trajectory to machine the current waveguide gap.

[0010] In some exemplary embodiments, the step of performing in-machine triggered measurements on several preset slot positions of the waveguide workpiece to obtain the measurement coordinates corresponding to each preset slot position includes: Using a measurement macro program, the trigger-type workpiece probe is controlled to move to a safe point above the initial preset slit position; The trigger measurement feed is executed at a preset speed along a direction perpendicular to the upper surface of the workpiece. When the probe contacts the upper surface of the waveguide workpiece and generates a trigger signal, the trigger coordinates at the moment of triggering are recorded and used as the measurement coordinates of the initial preset slit position. The control trigger-type workpiece probe is raised to a safe height and moved along the waveguide length to a safe point above the next preset slit position; Repeatedly execute the trigger measurement feed and coordinate recording until the measurement of several preset slit positions is completed, and obtain the measurement coordinates corresponding to each preset slit position.

[0011] In some exemplary embodiments, comparing the measured coordinates corresponding to the remaining preset slot positions with the reference coordinates to obtain the waveguide slot error compensation value includes: The coordinates corresponding to each of the remaining preset opening positions are calculated by difference with the reference coordinates to obtain the coordinate deviation corresponding to each preset opening position; The depth deviation value in the coordinate deviation is used as the error compensation value for the corresponding preset slit position, and the error compensation value is stored sequentially in the common variable of the CNC system.

[0012] In some exemplary embodiments, the step of correcting the theoretical milling depth of the current waveguide slot based on an error compensation value to obtain the actual milling depth during waveguide slot machining includes: Using the slot fabrication subroutine, the current error compensation value of the current waveguide slot is read from the common variables based on the slot number of the current waveguide slot. Calculate the difference between the depth value of the preset machining reference surface and the theoretical milling depth, and add the calculated difference to the current error compensation value to determine the actual milling depth.

[0013] In some exemplary embodiments, generating the machining trajectory based on the actual milling depth, angle parameters, and gap length of the current waveguide gap includes: Using the slot fabrication subroutine, based on the center position coordinates, angle parameters, and slot length of the current waveguide slot, and combined with trigonometric function rules, the starting and ending coordinates of the current waveguide slot are determined. The machining trajectory is generated based on the actual milling depth, starting coordinates, and ending coordinates of the current waveguide slot.

[0014] In some exemplary embodiments, the controlled milling fixture moves according to a machining trajectory to machine the current waveguide gap, including: When the milling fixture moves to the preset machining reference plane of the starting coordinate, control the milling fixture to mill to the actual milling depth in a direction perpendicular to the upper surface of the waveguide workpiece. While maintaining the actual milling depth, the milling fixture is controlled to move from the starting coordinate to the ending coordinate to complete the machining of the current waveguide slot.

[0015] In some exemplary embodiments, the reference coordinates are the coordinates corresponding to the starting preset slit position among a plurality of preset slit positions.

[0016] According to a second aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium including a stored executable program, wherein, when the executable program is running, the device where the storage medium is located controls the execution of the above-described on-machine error compensation adaptive CNC machining method for long crack waveguide gaps.

[0017] According to a third aspect of the present invention, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the above-described on-machine error compensation method for adaptive CNC machining of long cracked waveguide gaps.

[0018] According to a fourth aspect of the present invention, an electronic device is provided, comprising: Processor; and Memory for storing the executable instructions of the processor; The processor is configured to implement the above-described adaptive CNC machining method for long crack waveguide slots with on-machine error compensation when executing the executable instructions.

[0019] The embodiments of the present invention provide an adaptive CNC machining method for long-slit waveguide slots with on-machine error compensation. By acquiring the precise coordinates of each preset slot position of the waveguide workpiece, it provides basic data for subsequent error compensation and machining depth correction. Based on the error compensation value of each preset position, it corrects the theoretical milling depth of the current waveguide slot, providing a basis for depth correction in actual machining. Based on the actual milling depth and the angle and length of the slot, it generates a precise machining trajectory, guiding the milling fixture to move accurately along the trajectory and complete the slot machining. This effectively solves the machining deviation problem caused by irregular workpiece surface or measurement error in waveguide slot machining, ensuring that the machining depth and shape of each waveguide slot reach the expected accuracy, thereby improving machining efficiency and accuracy, and reducing manual intervention and error accumulation.

[0020] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit the invention. Attached Figure Description

[0021] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention. It is obvious that the drawings described below are merely some embodiments of the invention, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.

[0022] Figure 1 This schematically illustrates a flowchart of an adaptive CNC machining method for long cracked waveguide slots with in-machine error compensation, an exemplary embodiment of the present invention. Figure 2 This schematic diagram illustrates an overall view of a long-slot waveguide in the prior art. Figure 3 This is a schematic diagram of the overall process of an adaptive CNC machining method for long cracked waveguide gaps with in-machine error compensation, which is an exemplary embodiment of the present invention. Figure 4 This schematic diagram illustrates an exemplary embodiment of the present invention, showing an online measurement field. Figure 5 This schematically illustrates an in-machine measurement flowchart of an exemplary embodiment of the present invention; Figure 6 The diagram illustrates a logic diagram of a gap processing subroutine as an exemplary embodiment of the present invention. Figure 7 This schematic diagram illustrates a gap processing scenario according to an exemplary embodiment of the present invention. Figure 8 This schematic diagram illustrates a single waveguide slot in the prior art. Figure 9This schematic diagram illustrates the measured error distribution of an exemplary embodiment of the present invention. Figure 10 The diagram illustrates the composition of an electronic device according to an exemplary embodiment of the present invention. Detailed Implementation

[0023] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, they are provided so that the invention will be more comprehensive and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0024] Furthermore, the accompanying drawings are merely illustrative of the invention and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and therefore repeated descriptions of them will be omitted. Some block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.

[0025] To address the shortcomings and deficiencies of existing technologies, this exemplary embodiment provides an adaptive CNC machining method for long-slit waveguide gaps with on-machine error compensation. (Reference) Figure 1 As shown, it can specifically include: Step S10: Perform in-machine triggered measurement on several preset slot positions of the waveguide workpiece to obtain the measurement coordinates corresponding to each preset slot position; Step S12: Select the reference coordinates from the measurement coordinates corresponding to each preset slot position, and compare the measurement coordinates corresponding to the remaining preset slot positions with the reference coordinates to obtain the error compensation value of the waveguide slot. Step S14: When machining the waveguide slot, the theoretical milling depth of the current waveguide slot is corrected according to the error compensation value to obtain the actual milling depth. Step S16: Based on the actual milling depth, angle parameters and gap length of the current waveguide gap, generate a machining trajectory and control the milling fixture to move according to the machining trajectory to machine the current waveguide gap.

[0026] Based on steps S10 to S16 above, by obtaining the precise coordinates of each preset slot position of the waveguide workpiece, basic data is provided for subsequent error compensation and machining depth correction; the theoretical milling depth of the current waveguide slot is corrected based on the error compensation value of each preset position, providing a basis for depth correction in actual machining; based on the actual milling depth and the angle and length of the slot, a precise machining trajectory is generated, guiding the milling fixture to move precisely according to the trajectory and complete the slot machining, effectively solving the machining deviation problem caused by irregular workpiece surface or measurement error in waveguide slot machining, ensuring that the machining depth and shape of each waveguide slot reach the expected accuracy, thereby improving machining efficiency and accuracy, and reducing manual intervention and error accumulation.

[0027] The following will describe in more detail each step of an adaptive CNC machining method for long crack waveguide gaps with on-machine error compensation in this exemplary embodiment, with reference to the accompanying drawings and embodiments.

[0028] For example, refer to Figure 2 As shown, Figure 2 The overall application of long-slot waveguides was demonstrated. Figure 2 The main structure is a slender cuboid / box-shaped waveguide, resembling a long beam, with its length significantly greater than its width and height. The upper surface of the main body features dense, regular grid / arrayed slotted areas (manifested as numerous uniformly distributed small rectangular grids), representing waveguide radiation slots or their arrayed layout areas. End structures / connection ends are located at both ends of the main body: the left end features a more complex end module with a stepped stacked shape, used for interface transitions, feeding structures, or end fixation; the right end has a more complete end plate / end cap structure with a more regular shape, used for encapsulation, connection, or support positioning. Several mounting connectors / positioning blocks are visible on the sides of the main body, distributed along its length, used to fix the waveguide assembly to the supporting structure or align it with external structures.

[0029] For example, refer to Figure 3 As shown, Figure 3 This is a schematic flowchart illustrating an adaptive CNC machining method for long-slit waveguide gaps with on-machine error compensation, as an exemplary embodiment of the present invention. The present invention provides an adaptive CNC machining system for waveguide radiation gaps, which is used to execute the aforementioned adaptive CNC machining method for long-slit waveguide gaps. The structure and operation steps of this system are as follows: CNC machine tools, equipped with two-axis linkage and an in-machine measurement system interface, serve as the core equipment for machining operations, enabling precise waveguide slot machining. The CNC machine tool communicates with components such as the probe and the CNC system to collaboratively complete the machining task.

[0030] The workpiece probe can be mounted on the spindle of a CNC machine tool. It is responsible for performing triggered contact measurements, which are used to measure and trigger signals during the machining process to help obtain the actual measurement data of the waveguide workpiece and transmit the trigger signals to the CNC system.

[0031] The CNC system communicates with the CNC machine tool and the probe to achieve motion control and measurement data processing of the CNC machine tool. The CNC system's memory stores the following main modules: The measurement macro program module executes the on-machine measurement steps to complete the task of trigger-based measurement of the preset slot positions of the waveguide workpiece and obtains the measurement coordinates of each preset position.

[0032] The parametric machining subroutine module executes parametric machining steps, generates the tool path for the current waveguide slot based on parameters such as angle and slot length, and controls the tool to perform precise machining.

[0033] The main machining module executes the integration call step, which integrates the measurement program and machining subroutine in an orderly manner, ensuring that the milling depth is corrected according to the error compensation value, thereby realizing adaptive CNC machining of waveguide gaps.

[0034] Quality Inspection Module: Performs quality inspection, ensuring that the processing accuracy meets the predetermined requirements by inspecting the quality of the waveguide gaps after processing.

[0035] Through the coordinated operation of the above structures, the entire system can dynamically adjust the processing parameters based on real-time measurement data, ensuring error compensation during the waveguide slot processing process, so that the final processing result meets the preset slot requirements.

[0036] As an optional implementation, the waveguide radiating slot adaptive CNC machining system uses a FANUC system as the CNC system. Its powerful computing and control functions enable the system to efficiently complete the precision machining of waveguide radiating slots while ensuring machining accuracy and efficiency.

[0037] For example, in step S10, the in-machine triggered measurement of several preset slot positions of the waveguide workpiece to obtain the measurement coordinates corresponding to each preset slot position includes: Step S101: Using the measurement macro program, control the trigger-type workpiece probe to move to a safe point above the initial preset slit position; In step S101, the safety point above the aforementioned initial preset slit position is a safe height to which the workpiece probe is moved before measurement begins. This position ensures that the workpiece probe will not collide with the surface or other structures and provides a stable starting point for subsequent measurements. This safety point is typically located at a certain height above the upper surface of the waveguide workpiece, usually 10mm to 20mm above the workpiece surface, to safely initiate the measurement process.

[0038] Step S102: Perform trigger measurement feed at a preset speed along a direction perpendicular to the upper surface of the workpiece. When the probe contacts the upper surface of the waveguide workpiece and generates a trigger signal, record the trigger coordinates at the moment of triggering and use the trigger coordinates as the measurement coordinates of the initial preset slit position. Step S103: Control the trigger-type workpiece probe to lift up to a safe height and move along the waveguide length direction to the safe point above the next preset slit position; Step S104: Repeat the trigger measurement feed and coordinate recording until the measurement of several preset opening positions is completed, and obtain the measurement coordinates corresponding to each preset opening position.

[0039] Specifically, this process is an in-machine measurement process. The CNC system implements this in-machine measurement process by executing a measurement macro program. When a trigger-type workpiece probe (such as a Renishaw MP10) is installed on the machine tool spindle, and its tool number is set in the CNC system, the signal receiving interface of the workpiece probe is configured. The CNC system drives the workpiece probe to move to a safe point near the first slit position through the measurement macro program. At this time, the coordinates of the workpiece probe are maintained at a relatively safe height to ensure no collision with the workpiece. Next, the probe moves along the negative Z-axis and approaches the upper surface of the workpiece at a slow speed (such as F30) to avoid generating an unstable trigger signal. When the workpiece probe probe contacts the upper surface of the waveguide, a trigger signal is generated. At this time, the CNC system executes G31 jump and records the machine coordinates at the moment of triggering, especially the Z-axis coordinate value. This coordinate value at the moment of triggering is recorded as Z_meas1, representing the measurement height of the first preset slit position.

[0040] Next, the CNC system will measure multiple slit positions in a cyclical manner and calculate the error value at each position. After the workpiece probe is picked up, it moves along the X-axis (waveguide length direction) by a certain slit distance (e.g., D) to reach the next measurement position. At the new position, the workpiece probe moves again along the negative Z-axis, contacts the workpiece surface and triggers a signal, and records the new trigger coordinate value, denoted as Z_meas2.

[0041] Further, refer to Figure 4 As shown, Figure 4 This is a schematic diagram of an online measurement operation. A trigger-type workpiece probe is mounted on the spindle of the CNC machine tool. The probe is positioned above the workpiece (cracked waveguide) and close to the area to be measured. During the measurement process, the spindle drives the probe to a preset safe height for positioning. The probe then slowly approaches the workpiece along a direction perpendicular to its upper surface, triggering a measurement of the workpiece's surface height / position to obtain the coordinates needed for subsequent error compensation. The diagram shows the internal machining area and auxiliary components such as cooling hoses, indicating that this measurement is performed directly within the machine tool, representing an on-machine / online measurement.

[0042] For example, in step S12, comparing the measured coordinates corresponding to the remaining preset slot positions with the reference coordinates to obtain the waveguide slot error compensation value includes: Step S121: Perform differential calculation between the measured coordinates corresponding to each of the remaining preset opening positions and the reference coordinates to obtain the coordinate deviation corresponding to each preset opening position. In step S121, the aforementioned reference coordinates are the coordinates corresponding to the starting preset slit position among a plurality of preset slit positions.

[0043] Step S122: Use the depth deviation value in the coordinate deviation as the error compensation value for the corresponding preset slit position, and store the error compensation value in the common variable of the CNC system in sequence.

[0044] In step S122, the aforementioned depth deviation value refers to the difference in the Z direction, representing the offset of the actual surface at each slit position relative to the reference position surface on the Z axis.

[0045] Specifically, the reference coordinates are the coordinates measured from the initial preset slit position among several preset slit positions. The reference coordinates serve as a reference point, representing the relative relationship between the initial preset slit position and other slit positions. By calculating the difference between the measured coordinates and the reference coordinates, the coordinate deviation value for each position is obtained, quantifying the height difference of each slit position relative to the reference coordinates. For each preset slit position, the depth deviation value at that position is used as an error compensation value to correct the depth of cut in subsequent machining steps. These error compensation values ​​are sequentially stored in the common variables of the CNC system for subsequent machining subroutines to call. In this way, the CNC system can dynamically adjust the depth of cut during machining based on the measurement error of the preset slit position, thereby ensuring the accuracy of slit machining.

[0046] As another alternative implementation, refer to Figure 5 As shown, Figure 5This is a flowchart of the in-machine measurement process. Internally, the program calculates the Z-coordinate difference (error compensation value ΔZi) between the i-th position and the reference position based on the measurement results. When i=2, ΔZ_2=Z_meas2-Z_meas1. Then, the CNC system stores the calculated error value into a predetermined variable (e.g., #501). Thus, the error compensation value ΔZi is stored in the corresponding variables, sequentially storing Z_meas3-Z_meas1, Z_meas4-Z_meas1, etc. This process loops continuously until the coordinates of all preset slot positions have been measured. The error value at each position is stored in the system's variable area, sequentially stored in variables **#501, #502, #503, ..., #500+N-1**. By measuring all preset slot positions, the CNC system obtains the error compensation value (ΔZ) for each position and corrects the milling depth in subsequent processing based on these compensation values, ensuring that the error in the processing process is minimized, thereby achieving a high-precision waveguide slot processing effect.

[0047] For example, in step S14, when machining the waveguide slot, correcting the theoretical milling depth of the current waveguide slot based on the error compensation value to obtain the actual milling depth includes: Step S141: Using the slot processing subroutine, read the current error compensation value of the current waveguide slot stored in the common variable according to the slot number of the current waveguide slot. Step S142: Calculate the difference between the depth value of the preset machining reference surface and the theoretical milling depth, and add the calculated difference to the current error compensation value to determine the actual milling depth.

[0048] In step S142, the preset machining reference plane is the zero point plane or the safety plane.

[0049] Specifically, the gap machining subroutine is designed to accept externally passed parameters. This subroutine defines two main input parameters: A (angle) and T (theoretical milling depth). These are passed in via the format G65 P9002A1.468T3.807 when called by the main program.

[0050] Depth compensation calculation: The subroutine maintains a counter or obtains the current gap number (let's say the i-th) through a global variable. Based on the index i, the stored error compensation value ΔZi is read from the corresponding variable (e.g., #500 + (i-1)). A machining reference plane is set in machine coordinates, with a depth value of Zref (usually the zero point or safety plane). The actual cutting depth Zact is then calculated using the formula: Zact = Zref - T + ΔZi. This calculation ensures that regardless of whether the waveguide surface is higher or lower than the reference, the final milling depth (measured from the actual surface) is always T.

[0051] For example, in step S16, generating the machining trajectory based on the actual milling depth, angle parameters, and gap length of the current waveguide gap includes: Step S161: Using the slot processing subroutine, based on the center position coordinates, angle parameters, and slot length of the current waveguide slot, and combined with trigonometric function rules, determine the starting point coordinates and ending point coordinates of the current waveguide slot. Step S162: Generate a machining trajectory based on the actual milling depth, starting coordinates, and ending coordinates of the current waveguide slot.

[0052] Specifically, within the gap machining subroutine, based on the current waveguide gap center position coordinates, angle A, and known gap length (or tool radius), the starting coordinates (X1, Y1) and ending coordinates (X2, Y2) of the inclined tool path are calculated using trigonometric functions (such as TAN[A]).

[0053] For example, in step S16, the controlled milling fixture moves according to the machining trajectory to machine the current waveguide gap, including: Step S161: When the milling fixture moves to the preset machining reference surface of the starting coordinate, control the milling fixture to mill along the direction perpendicular to the upper surface of the waveguide workpiece to the actual milling depth. Step S162: While maintaining the actual milling depth, control the milling fixture to move from the starting coordinate to the ending coordinate to complete the processing of the current waveguide gap.

[0054] For details, please refer to Figure 6 As shown, Figure 6 This is the logic diagram for the gap machining subroutine. The drive tool is rapidly positioned to the starting point (X1, Y1, Zref), then the tool moves down to Zact, and then linearly interpolates at the working feed rate to the ending point (X2, Y2) to mill the gap. Finally, the tool is raised to a safe height.

[0055] Further, the main machining program is developed. The list of angles Ai and depths Ti for all gaps provided in the design document is converted into a series of CNC instructions. The main machining program writes a single line of instructions for each gap, for example: N1G65 P9002A1.468T3.807 N2G65 P9002A-1.475T3.806 ... N128G65 P9002 A-8.162 T3.746 The program executes sequentially, machining all the gaps one by one. Necessary auxiliary operations can also be integrated into the main program, such as tool changing (using a high-speed milling cutter), setting cutting parameters (high speed, appropriate feed), and positioning movements before and after machining.

[0056] For details, please refer to Figure 7 As shown, Figure 7 This is a schematic diagram of the gap machining process. A milling cutter (machining tool) is mounted on the spindle of the CNC machine tool. The cutter contacts the workpiece and is in a cutting state, used for gap milling on the surface of the cracked waveguide. During machining, the spindle drives the cutter to the set actual machining depth and moves along a predetermined trajectory on the workpiece surface, thereby forming the desired long crack / radial gap. The diagram also shows the cooling hose and the machine tool machining cavity environment, demonstrating that machining and measurement can be switched and executed on the same equipment, achieving an online closed loop of "measurement-compensation-machining".

[0057] The method provided in this embodiment of the invention processes the aforementioned BJ100 slotted waveguide (128 slots) on a gantry machining center. (See reference...) Figure 8 As shown, Figure 8 This is a schematic diagram of a single waveguide slot. The upper half of the diagram shows the outline of the waveguide along its length, with the dashed / dotted line representing the waveguide centerline. The ends are represented by cross-sections (commonly found in end caps / connecting sections / transition sections), and the middle section has several small rectangular protrusions / openings indicating the location or structural features of the slots distributed along the waveguide's length.

[0058] The lower half of the diagram shows the unfolded layout of the slots. The slot numbers "1, 2, XXX" indicate the sequential arrangement of slots starting from the beginning; G2B and G3B are inspection / control item codes; S is the positioning length from the beginning to a specific slot; D is the distance between the center positions of two adjacent slots; L is the total length of the waveguide body; N×D is the cumulative total spacing from the first slot to the Nth slot (or a segment of the slot array); N×D=XXXX±0.1 ​​is the design value and allowable tolerance of the cumulative total length. The purpose of this labeling is to control cumulative errors; even if each D is within the tolerance, it is necessary to prevent long-term accumulation from causing the entire end slot to deviate.

[0059] The waveguide to be machined is a BJ100 standard aluminum waveguide with a length L = 3500 mm and a narrow side width W ≈ 12 mm. N (e.g., 128) radial slots need to be machined on one narrow side. Each slot has a width W, a depth T, and an angle A with the waveguide axis. All slot dimensions are defined by data files provided by the electrical design. The machining accuracy requirements are: depth T ± 0.02 mm, angle A ± 0.1°, and width W ± 0.05. A φ6 mm carbide end mill is used, with a rotation speed of 23000 rpm.

[0060] The entire process of machining a single waveguide, from clamping and automated measurement to completion, takes approximately 45 minutes, more than 50 times more efficient than traditional manual methods. After machining, a coordinate measuring machine (CMM) is used for a full inspection of the gap depth and angle. Figure 9The measured error distribution shown indicates that the depth and angle errors of all 128 gaps fall within the tolerance zone (depth ±0.02mm, angle ±0.1°), achieving a 100% pass rate.

[0061] The beneficial effects of this invention are as follows: (1) High precision assurance: By measuring the actual height deviation of each slot position in real time on the machine and automatically compensating during processing, the influence of waveguide deformation and clamping error on the slot depth accuracy is fundamentally eliminated, ensuring that the processing depth of all slots is within the strict tolerance range.

[0062] (2) High-efficiency production: The entire process from measurement to processing is automated. After one clamping, the machine tool automatically completes the measurement and processing of all gaps, reducing the processing time of a single piece from several hours in the traditional manual method to tens of minutes, increasing efficiency by dozens of times, which is especially suitable for mass production.

[0063] (3) High flexibility and reliability: Parametric programming is adopted, and the main program structure is clear, easy to compile and modify. For waveguides of different specifications, only the parameters in the measurement and main program need to be changed, and the general subroutines do not need to be modified, which improves the versatility and reliability of the technology.

[0064] (4) Lowering the technical threshold: Encapsulating complex error compensation logic in macro programs reduces the skill requirements for operators, reduces human error, and ensures product consistency and traceability.

[0065] As an optional method, the probe measurement macro program (O9001) can be set as follows: % O9001(WAVEGUIDE INSPECTION PROGRAM) (USAGE G65 P8001 CDE;) (C = Number of Waveguides - Slots) (D = Distance between Slots) (E = ONLY FOR DOUBLE-SLOT) G40G80 G04P36 G01G91 #21=#5041 #22=#5042 IF[#3LE1]GOTO6 #2=0 #5=1.2 #600=#21+#504 #602=#3 #599=#7 #598=#8 #604=0 #4=#5043 G91G31Y-18.F1800 G31Z-14.F600 G04P6 IF[ABS[#4-#5063-14]GE0.05]GOTO5 G31Y12.F1000 G01G91Y-2. G04P6 #3004=2 G31Y2.F30. G04P6 #3004=0 #11=#5062 G01Y-5.F1800. Z14. G31Y32. G31Z-14.F600. G04P6 IF[ABS[#4-#5063-14]GE0.05]GOTO5 G31Y-12.F1000. G01Y2. G04P6 #3004=2 G31Y-2.F30. #12=#5062 #3004=0 G01Y5.F1800. G01G91Z13. #601=[#11+#12] / 2+#505 G31G90X#600Y#601F1800. N1G04P6 #4=#5043 G91G31Z-12.F500. G04P6 IF[ABS[#5063-#4]LT0.05]GOTO7 IF[ABS[#5063-#4+12]LT0.05]GOTO8 G01Z#5F2000. G04P6 #4=#5043 #3004=2 G31Z-[#5+0.5]F30 G04P6 #3004=0 IF[ABS[#5063-#4]LT0.05]GOTO7 IF[ABS[#5063-#4+#5+0.5]LT0.05]GOTO8 G01Z10.F2800 #2=#2+1 IF[#2GT1]GOTO2 #6=#5063 GOTO3 N2#[604+#2]=#5063-#6 N3IF[#2GE#3]GOTO9 G01G91X#7F2800. GOTO1 N5#3000=93(PATH OBSTRUCTED) GOTO9 N6#3000=90(FORMAT ERR) GOTO9 N7G91G28Z0 G0G90X#21Y#22 #3000=91(PROBE OPEN) GOTO9 N8G91G28Z0 G0G90X#21Y#22 #3000=92 (PROBE FAIL) N9G91G0Z200. G0G90X#21Y#22 M99 % Furthermore, the gap machining subroutine (O9002) can be set as follows: % O9002(WAVEGUIDE MACHINING PROGRAM) (USAGE G65 P8005 ATD) (A=WAVEGUIDE ANGLE) (T=SLOTS DEPTH) (D = Distance between Slots) G40G80 G04P36 #605=0 #603=0 IF[#1EQ#0]GOTO6 IF[#20EQ#0]GOTO6 N1 #11=#601-22 #12=#601+22 #120 = #120 + #7 N3#13=#600+#120-22*TAN[#1] #14 = #600 + #120 + 22 * ​​TAN[#1] #15=#603-#20+#[605+#604] #604 = #604 + 1 G01G90X#13Y#11F6000 G01Z#15F2000. G01X#14Y#12F300 G01G91Z16.F6000 IF[#604LT#602]GOTO8 #604=#0 GOTO8 N6#3000=51(FORMAT ERR) N8G04P8 G90 M99 Specifically, here's an example of the main program for slot fabrication (O(XXX-XXX-XXX-A)) (taking a slot waveguide with 128 slots as an example): % O(XXX-XXX-XXX-A) #604=0 G90 G00 X-10.000 Y-12. G01 Z-0.3 F800. G01 Y12. G00 Z6. N1 G65 P9002 A1.468 T3.807 N2 G65 P9002 A-1.475 T3.806 N3 G65 P9002 A1.491 T3.806 N4 G65 P9002 A-1.516 T3.806 N5 G65 P9002 A1.553 T3.806 N6 G65 P9002 A-1.599 T3.806 ……………… ……………… N21 G65 P9002 A3.054 T3.800 N22 G65 P9002 A-3.198 T3.799 N23 G65 P9002 A3.343 T3.798 N24 G65 P9002 A-3.487 T3.797 N25 G65 P9002 A3.628 T3.796 N26 G65 P9002 A-3.769 T3.795 N27 G65 P9002 A3.913 T3.794 N28 G65 P9002 A-4.064 T3.793 N29 G65 P9002 A4.223 T3.792 N30 G65 P9002 A-4.386 T3.791 ……………… ……………… N41 G65 P9002 A6.146 T3.773 N42 G65 P9002 A-6.296 T3.772 ……………… ……………… N54 G65 P9002 A-8.301 T3.744 N57 G65 P9002 A8.792 T3.736 N58 G65 P9002 A-8.936 T3.734 N59 G65 P9002 A9.089 T3.731 N60 G65 P9002 A-9.257 T3.728 ……………… ……………… N65 G65 P9002 A10.107 T3 .713 N66 G65 P9002 A-10.240 T3.710 N67 G65 P9002 A10.384 T3.707 ……………… ……………… N91 G65 P9002 A13.556 T3.634 N92 G65 P9002 A-13.654 T3.632 N93 G65 P9002 A13.781 T3.628 ……………… ……………… N121 G65 P9002 A8.724 T3.737 N122 G65 P9002 A-8.461 T3.742 ……………… ……………… N128 G65 P9002 A-8.162 T3.746 G90 G00 Z20. G00 X2677. Y-12. G01 Z-0.3 F800 G01 Y12. F400 G00 Z5. X2707.Y4. Z1. G1Z-.25F30. Y-4.F260. G0Z10. G90 G00 Z500. X0 Y0 M30 % It should be noted that the above figures are merely illustrative of the processes included in the method according to exemplary embodiments of the present invention, and are not intended to be limiting. It is readily understood that the processes shown in the above figures do not indicate or limit the temporal order of these processes. Furthermore, it is readily understood that these processes may, for example, be executed synchronously or asynchronously in multiple modules.

[0066] It should be noted that although several modules or units of the device for performing actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to embodiments of the present invention, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.

[0067] Figure 10 A schematic diagram of an electronic device suitable for implementing embodiments of the present invention is shown.

[0068] It should be noted that, Figure 10 The electronic device 1000 shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.

[0069] like Figure 10 As shown, the electronic device 1000 includes a Central Processing Unit (CPU) 1001, which can perform various appropriate actions and processes based on programs stored in Read-Only Memory (ROM) 1002 or programs loaded from storage section 1008 into Random Access Memory (RAM) 1003. The RAM 1003 also stores various programs and data required for system operation. The CPU 1001, ROM 1002, and RAM 1003 are interconnected via a bus 1004. An Input / Output (I / O) interface 1005 is also connected to the bus 1004. Furthermore, the electronic device 1000 also includes an FPGA device and a System-on-a-Chip (SoC) device.

[0070] The following components are connected to I / O interface 1005: an input section 1006 including a keyboard, mouse, etc.; an output section 1007 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN (Local Area Network) card, modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to I / O interface 1005 as needed. Removable media 1011, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 1010 as needed so that computer programs read from them can be installed into storage section 1008 as needed.

[0071] In particular, according to embodiments of the present invention, the processes described below with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a storage medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 1009, and / or installed from removable medium 1011. When the computer program is executed by central processing unit (CPU) 1001, it performs various functions defined in the system of this application.

[0072] Specifically, the aforementioned electronic devices can be airborne intelligent electronic devices.

[0073] It should be noted that the storage medium shown in the embodiments of the present invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, wherein computer-readable program code is carried. Such transmitted data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium can also be any storage medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the storage medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.

[0074] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0075] The units described in the embodiments of the present invention can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself.

[0076] It should be noted that, as another aspect, this application also provides a storage medium, which may be included in an electronic device or may exist independently without being assembled into the electronic device. The aforementioned storage medium carries one or more programs, which, when executed by an electronic device, cause the electronic device to perform the methods described in the following embodiments. For example, the electronic device may perform... Figure 1 The steps of the method shown.

[0077] In one embodiment, this application provides a computer program product including a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.

[0078] Furthermore, the above figures are merely illustrative of the processes included in the method according to exemplary embodiments of the present invention, and are not intended to be limiting. It is readily understood that the processes shown in the above figures do not indicate or limit the temporal order of these processes. Additionally, it is readily understood that these processes may be executed synchronously or asynchronously, for example, in multiple modules.

[0079] Other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention herein. This application is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein. The specification and embodiments are to be considered exemplary only, and the true scope and spirit of the invention are indicated by the claims.

[0080] It should be understood that the present invention is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.

Claims

1. An adaptive CNC machining method for long-slit waveguide gaps with on-machine error compensation, characterized in that, The method includes: In-machine triggered measurements were performed on several preset slot positions of the waveguide workpiece to obtain the measurement coordinates corresponding to each preset slot position; Among the measurement coordinates corresponding to each preset slot position, the reference coordinates are selected, and the measurement coordinates corresponding to the other preset slot positions are compared with the reference coordinates to obtain the error compensation value of the waveguide slot. When machining waveguide slots, the theoretical milling depth of the current waveguide slot is corrected based on the error compensation value to obtain the actual milling depth; Based on the actual milling depth, angle parameters, and gap length of the current waveguide gap, a machining trajectory is generated, and the milling fixture is controlled to move according to the machining trajectory to machine the current waveguide gap.

2. The method according to claim 1, characterized in that, The in-machine triggered measurement of several preset slot positions on the waveguide workpiece to obtain the measurement coordinates corresponding to each preset slot position includes: Using a measurement macro program, the trigger-type workpiece probe is controlled to move to a safe point above the initial preset slit position; The trigger measurement feed is executed at a preset speed along a direction perpendicular to the upper surface of the workpiece. When the probe contacts the upper surface of the waveguide workpiece and generates a trigger signal, the trigger coordinates at the moment of triggering are recorded and used as the measurement coordinates of the initial preset slit position. The control trigger-type workpiece probe is raised to a safe height and moved along the waveguide length to a safe point above the next preset slit position; Repeatedly execute the trigger measurement feed and coordinate recording until the measurement of several preset slit positions is completed, and obtain the measurement coordinates corresponding to each preset slit position.

3. The method according to claim 1, characterized in that, The step of comparing the measured coordinates corresponding to the remaining preset slot positions with the reference coordinates to obtain the waveguide slot error compensation value includes: The coordinates corresponding to each of the remaining preset opening positions are calculated by difference with the reference coordinates to obtain the coordinate deviation corresponding to each preset opening position; The depth deviation value in the coordinate deviation is used as the error compensation value for the corresponding preset slit position, and the error compensation value is stored sequentially in the common variable of the CNC system.

4. The method according to claim 3, characterized in that, When machining waveguide slots, the theoretical milling depth of the current waveguide slot is corrected based on the error compensation value to obtain the actual milling depth, including: Using the slot fabrication subroutine, the current error compensation value of the current waveguide slot is read from the common variables based on the slot number of the current waveguide slot. Calculate the difference between the depth value of the preset machining reference surface and the theoretical milling depth, and add the calculated difference to the current error compensation value to determine the actual milling depth.

5. The method according to claim 1, characterized in that, The machining trajectory is generated based on the actual milling depth, angle parameters, and gap length of the current waveguide gap, including: Using the slot fabrication subroutine, based on the center position coordinates, angle parameters, and slot length of the current waveguide slot, and combined with trigonometric function rules, the starting and ending coordinates of the current waveguide slot are determined. The machining trajectory is generated based on the actual milling depth, starting coordinates, and ending coordinates of the current waveguide slot.

6. The method according to claim 1, characterized in that, The controlled milling fixture moves according to the machining trajectory to machine the current waveguide gap, including: When the milling fixture moves to the preset machining reference plane of the starting coordinate, control the milling fixture to mill to the actual milling depth in a direction perpendicular to the upper surface of the waveguide workpiece. While maintaining the actual milling depth, the milling fixture is controlled to move from the starting coordinate to the ending coordinate to complete the machining of the current waveguide slot.

7. The method according to claim 2, characterized in that, The reference coordinates are the coordinates corresponding to the starting preset slit position among a number of preset slit positions.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored executable program, wherein, when the executable program is executed, it controls the device on which the storage medium is located to perform the method according to any one of claims 1 to 7.

9. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method according to any one of claims 1 to 7.