Programming method and equipment for integrating cleaning program in machining center
By integrating cleaning programs into the machining center, geometric data of machining trajectories and cleaning features are acquired to generate targeted cleaning trajectories. This solves the challenges of high flexibility, low cost, and high cleanliness in small-batch engine cylinder head cleaning, achieving efficient cleaning without blind spots.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- WEICHAI POWER CO LTD
- Filing Date
- 2026-02-12
- Publication Date
- 2026-05-12
AI Technical Summary
Existing technologies cannot meet the high flexibility and low cost requirements of small-batch, multi-variety, and highly complex engine cylinder head prototype trial production. Furthermore, the cleaning effect is uncontrollable, resulting in cleaning blind spots and resource waste.
The cleaning program is integrated into the machining center. By acquiring geometric data of machining trajectory and cleaning characteristics, the cleaning area is divided and the cleaning pressure level is determined. A targeted cleaning trajectory is generated, and a variety of cleaning tools are used for efficient cleaning. The cleaning parameters are optimized by combining machine tool simulation and fluid simulation.
It enables automatic adaptation to different workpiece geometric features without the need for special equipment in the machining center, eliminating cleaning blind spots, improving production flexibility and cleaning efficiency, and reducing costs and time delays.
Smart Images

Figure CN122018441A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of parts processing, specifically to a programming method and equipment for integrating cleaning programs within a machining center. Background Technology
[0002] In the precision manufacturing process of engine cylinder heads, especially prototype products, efficient and thorough cleaning after processing is a key step in ensuring product quality.
[0003] Currently, the industry mainly relies on two technical solutions: offline cleaning with dedicated cleaning machines and simple internal spray rinsing in machining centers. However, neither of these solutions can meet the needs of small-batch, multi-variety, and highly complex sample production. Summary of the Invention
[0004] To address the aforementioned problems, this application proposes a programming method and apparatus for integrating a cleaning program within a machining center, wherein the method includes: In response to receiving a cleaning request, the system acquires the machining trajectory of the workpiece to be cleaned and the geometric data of each cleaning feature; it divides the cleaning area according to the feature type of each cleaning feature and determines the cleaning pressure level of each cleaning area; based on the geometric data of each cleaning feature and the machining trajectory, it determines the cleaning trajectory corresponding to each cleaning area; it generates a CNC program based on the cleaning trajectory and the cleaning pressure level, and cleans the workpiece to be cleaned based on the CNC program.
[0005] In one example, generating a CNC program based on the cleaning trajectory and the cleaning pressure level specifically includes: determining the cleaning tool type corresponding to each cleaning area based on the feature type of each cleaning feature; the cleaning tool type includes a high-pressure direct-fire nozzle for cleaning blind holes, a fan-shaped atomizing nozzle for cleaning planes and shallow grooves, a rotary spray nozzle for cleaning intersecting holes, and a multi-angle composite nozzle for cleaning specific holes; determining the target cleaning pressure for the cleaning area based on the cleaning pressure level; and generating a CNC program based on the cleaning tool, the cleaning trajectory, and the target cleaning pressure.
[0006] In one example, determining the cleaning trajectory corresponding to each cleaning area based on the geometric data of each cleaning feature and the cleaning pressure level specifically includes: in response to the cleaning area being a blind hole or a cup-shaped plug hole, retracting the tool tip along the tool axis direction by a preset distance to obtain a cleaning point based on the original drilling toolpath, and using the cleaning point as the cleaning trajectory; determining the fixed-point dwell time based on the cleaning pressure level, hole depth, and hole diameter.
[0007] In one example, determining the cleaning trajectory corresponding to each cleaning area based on the geometric data of each cleaning feature and the cleaning pressure level specifically includes: determining the original drilling toolpath in response to the cleaning area being a cross hole or an internal through hole; determining a variable diameter axial helical trajectory, with the original drilling toolpath as the axis, based on the rotation angle, hole diameter, nozzle diameter, number of helical turns, starting depth of the cross area inside the hole, and pitch, as the cleaning trajectory within the cross hole; and determining a variable diameter axial helical trajectory, with the original drilling toolpath as the axis, based on the rotation angle, hole diameter, nozzle diameter, number of helical turns, ending depth of the internal through hole area, and pitch, as the cleaning trajectory within the internal through hole.
[0008] In one example, determining the cleaning trajectory corresponding to each cleaning area based on the geometric data of each cleaning feature and the cleaning pressure level specifically includes: in response to the cleaning area being an injector bottom hole annular groove, determining the center of the injector bottom hole; based on the inner diameter, outer diameter, bottom depth, and number of spiral turns of each annular groove, generating two layers of radial spiral trajectories along the two annular grooves with the center of the injector bottom hole as the origin, as the cleaning trajectory of the injector bottom hole annular groove.
[0009] In one example, determining the cleaning trajectory corresponding to each cleaning area based on the geometric data of each cleaning feature and the cleaning pressure level specifically includes: in response to the cleaning area being the valve cavity, generating a combined rotational and radial oscillation trajectory in the cavity segment based on the maximum rotatable radius of the nozzle in the cavity, the oscillation amplitude, the number of oscillations, the cavity cleaning starting depth, and the pitch, as the cleaning trajectory of the valve cavity.
[0010] In one example, determining the cleaning trajectory corresponding to each cleaning area based on the geometric data of each cleaning feature and the cleaning pressure level specifically includes: in response to the cleaning area being a combustion chamber, determining a preset distance based on the distance from the starting point of the intake valve seat bottom hole to the starting point of the exhaust valve seat bottom hole, and the angle between the central axes of the intake and exhaust valves; determining a reference point above the center of the combustion chamber surface of each group of intake and exhaust valves based on the preset distance; and generating an execution angle trajectory with the preset coordinate axis as the rotation axis and the reference point as the rotation center based on the number of rotations, the average angle between the line connecting the starting points of the intake and exhaust valve seat bottom holes to the reference point and the preset coordinate axis, the average diameter of the bottom holes of the intake and exhaust valve seats, and the average distance between the starting points of the intake and exhaust valve seat bottom holes to the reference point.
[0011] In one example, determining the cleaning trajectory corresponding to each cleaning area based on the geometric data of each cleaning feature and the cleaning pressure level specifically includes: in response to the cleaning area being a cavity, determining the reciprocating step distance based on the cavity width and nozzle diameter; generating a reciprocating polygonal trajectory within the cavity based on the reciprocating step distance and the tool path profile; determining the arc radius based on the cavity width and nozzle size, and generating an arc transition trajectory at the corner of the cavity based on the arc radius.
[0012] In one example, cleaning the workpiece based on the cleaning trajectory specifically includes: performing machine tool simulation on the cleaning trajectory to simulate the movement of the nozzle in various feature areas of the engine cylinder head during the cleaning process; and adjusting the cleaning trajectory in response to a cleaning tool collision during the simulation.
[0013] This application also provides a programming device for integrating a cleaning program within a machining center, characterized in that it includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the steps of the method as described in any of the above examples.
[0014] The method proposed in this application offers the following advantages: it eliminates the cost of specialized fixtures and equipment, and eliminates the transfer process; the cleaning trajectory is derived from and adapted to the processing characteristics, making it highly targeted and ensuring comprehensive cleaning coverage, significantly improving production flexibility and response speed. It integrates the CNC motion control capabilities of the machining center with targeted cleaning process design through software programming. In-situ integration solves the problems of specialized equipment cost and logistics; intelligent trajectory generation based on feature data solves the problems of cleaning blind spots and uncontrollable results. Attached Figure Description
[0015] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings: Figure 1 This is a flowchart illustrating a programming method for an integrated cleaning program within a machining center, as described in an embodiment of this application. Figure 2 This is a schematic diagram illustrating a cleaning blade with a rotating jet nozzle in an embodiment of this application. Figure 3 The diagram shows a combustion chamber cleaning trajectory.
[0016] Among them, 1. knife handle, 2. nozzle. Detailed Implementation
[0017] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0018] In existing technologies, offline cleaning solutions using dedicated cleaning machines require unloading the finished cylinder head workpieces from the machining center and transferring them to a separate dedicated cleaning machine for secondary processing. This solution has the following drawbacks: high fixture costs and poor flexibility; the cleaning machine needs to be customized with special fixtures for different cylinder head models. During the prototype testing phase, product batches are extremely small (typically ≤10 pieces per batch), making it difficult to bear the high cost of dedicated fixtures when spread across individual products. Furthermore, frequent fixture changes extend production preparation time, severely compromising flexibility. Logistics and cycle time losses exist; the transfer of workpieces between the machining center and the cleaning machine not only increases logistics costs but also poses a risk of damage and disrupts process continuity, leading to an extended overall production cycle. In addition, dedicated cleaning machines require additional factory space and supporting facilities, resulting in dispersed manufacturing resources and hindering intensive production.
[0019] For simple internal spray flushing solutions in machining centers, some manufacturers attempt to roughly flush the machine by directly spraying cutting fluid through the internal cooling channels of the machining tools to simplify the process. However, this solution has the following technical problems: The cleaning trajectory is singular, resulting in numerous blind spots. The flushing action in conventional machining centers is usually based on simple point-to-point or linear motion, with fixed spray direction, angle, and coverage. For features with special geometric shapes on engine cylinder heads, such as injector holes, valve seat bottom holes, intersecting oil passages, and complex internal cavities, this singular cleaning method cannot create an effective cleaning flow field, leading to metal filings and oil residue remaining in dead corners, failing to meet assembly requirements for cleanliness. Furthermore, it lacks specificity, resulting in uncontrollable cleaning effects. This solution uses uniform pressure and flow rate for all areas, failing to differentiate cleaning based on functional differences such as injector holes (high cleanliness requirements) and cooling water jackets (relatively lower requirements). This may result in incomplete cleaning of critical areas or wasted resources and time in non-critical areas.
[0020] In summary, the core challenge of existing technologies in small-batch engine cylinder head sample cleaning scenarios is the inability to simultaneously meet the demands of "highly flexible and low-cost production" and "highly clean and targeted process requirements." Developing a highly efficient cleaning method on a machining center that can automatically adapt to different workpiece geometric features and effectively eliminate cleaning blind spots, without relying on dedicated external equipment or incurring significant costs, has become a pressing technical challenge in this field.
[0021] The technical solutions provided by the various embodiments of this application are described in detail below with reference to the accompanying drawings.
[0022] Figure 1 This is a flowchart illustrating a programming method for an integrated cleaning program within a machining center, provided for one or more embodiments of this specification. Certain input parameters or intermediate results in the process can be manually adjusted to help improve accuracy.
[0023] like Figure 1 As shown in the figure, this application embodiment provides a programming method for integrating a cleaning program within a machining center, including: S101: In response to receiving a cleaning request, acquire the machining trajectory of the workpiece to be cleaned, as well as the geometric data of each cleaning feature.
[0024] After receiving a cleaning request, the front-end CAM software identifies the workpiece to be cleaned and acquires its machining trajectory and the geometric data of each cleaning feature. Here, the machining trajectory refers to the tool movement trajectory of the workpiece during machining, and the cleaning features refer to features that need to be cleaned, such as pores, grooves, and internal planes.
[0025] In practice, a dedicated cleaning module can be developed in CAM software (such as NX, PowerMill) to automatically obtain the machining trajectory from the programming operation and extract the geometric data of cleaning features such as the hole system (diameter Φd1-Φ50mm, where d1 is the minimum diameter of the cleaning tool nozzle), groove (width ≥2mm), and inner cavity plane on the engine cylinder head.
[0026] S102: Divide the cleaning areas according to the characteristic type of each cleaning feature, and determine the cleaning pressure level of each cleaning area.
[0027] After obtaining each cleaning feature, the cleaning area can be divided according to the feature type of the cleaning feature, and the corresponding cleaning pressure level can be determined according to the type of the cleaning area.
[0028] For example, surfaces requiring high-precision assembly, such as injector holes and valve seat holes, are crucial for engine combustion performance and valve stability. Extreme cleanliness is required; any impurities can affect spark plug ignition and valve sealing. The cleaning pressure level can be set to level 4. The cleanliness of lubricating oil passage holes affects the lubrication of the engine cylinder head. Impurities can lead to poor lubrication and affect the service life of engine components. The cleaning pressure level can be set to level 3. The cleanliness of cooling water jacket holes affects the cooling effect of the engine cylinder head. Impurities clogging the water jacket holes can affect coolant flow and cause cylinder head overheating. The cleaning pressure level can be set to level 2. The cleanliness of the cylinder head outer surface mainly affects the product's appearance and rust prevention performance, while also preventing impurities from entering the engine during assembly. The cleaning pressure level can be set to level 1. If two or more hole features intersect spatially, the cleanliness level of the intersecting area is the highest among all intersecting hole features. Depending on the cleanliness level, the feed rate of the cleaning trajectory varies; the higher the level, the smaller the feed rate.
[0029] S103: Based on the geometric data of each cleaning feature and the processing trajectory, determine the cleaning trajectory corresponding to each cleaning area.
[0030] Based on the geometric data corresponding to each cleaning feature and the obtained processing trajectory, a cleaning trajectory corresponding to each cleaning area can be generated.
[0031] In one embodiment, when generating the cleaning trajectory for blind holes or cup-shaped plug holes, the tool tip can be moved back a preset distance along the tool axis based on the original drilling toolpath to determine the cleaning point, and the cleaning point is used as the cleaning trajectory; the fixed-point dwell time is determined based on the cleaning pressure level, hole depth, and hole diameter.
[0032] Specifically, the cleaning trajectory for blind holes or cup-shaped plug holes is calculated as follows: based on the original drilling toolpath, the tool tip is retracted a distance along the tool axis. To determine the cleaning point. To avoid direct contact between the nozzle and the bottom of the orifice, it can be... Set as: ,in The aperture is specified. The cleaning trajectory for blind orifices and cup-shaped plugs is a fixed-point injection, and the fixed-point residence time and cleaning medium injection parameters can be set according to the cleaning pressure level. The formula for calculating the fixed-point residence time is: .in, The value range is [0.1, 1], and it can be adjusted according to the cleaning pressure level. The higher the cleaning pressure level, the better. The larger the value; For the depth of the hole; The value is not less than 0.5s.
[0033] In one embodiment, when the cleaning area is a cross hole or an internal cavity through hole, the original drilling toolpath can be determined when determining the corresponding cleaning trajectory. Based on the rotation angle, hole diameter, nozzle diameter, number of spiral turns, starting depth of the cross area inside the hole, and pitch, a variable diameter axial spiral trajectory is determined with the original drilling toolpath as the axis, which serves as the cleaning trajectory inside the cross hole. Based on the rotation angle, hole diameter, nozzle diameter, number of spiral turns, ending depth of the internal cavity through hole area, and pitch, a variable diameter axial spiral trajectory is determined with the original drilling toolpath as the axis, which serves as the cleaning trajectory inside the internal cavity through hole.
[0034] Specifically, for intersecting holes, a variable-diameter axial helical trajectory is adopted with the original drilling toolpath as the axis, and the initial diameter... = (orifice diameter - nozzle diameter) × 30%, termination diameter = (orifice diameter - nozzle diameter) × 90%. The mathematical expression for the three coordinates of the k-th circle is:
[0035] in, , This represents the number of rotations, which can be n = 3 to 5 rotations. The rotation angle; The starting depth of the i-th intersection region of the hole; For the pitch, it should be adaptive based on the starting and ending depths of the intersection region, and should at least satisfy the following: The maximum value is ≥2π.
[0036] For through holes with internal cavities, a variable-diameter axial helical trajectory is adopted with the original drilling toolpath as the axis, and the initial diameter... = (orifice diameter - nozzle diameter) × 30%, termination diameter = (orifice diameter - nozzle diameter) × 90%. The mathematical expression for the three coordinates of the k-th circle is:
[0037] in, This represents the number of rotations, which can be n = 3 to 5 rotations. This represents the final depth of the through hole; For the pitch, it should be adaptive based on the inner cavity depth, and should at least meet the following requirements. The maximum value is ≥2π.
[0038] A five-axis programming coordinate system can be used. The coordinate system direction should refer to the actual machine tool coordinate system to ensure that the inner cavity outlet position or the transverse cross hole outlet position faces the opposite direction of gravity of the actual machine tool coordinate system or is in a horizontal position.
[0039] In one embodiment, when the cleaning area is the injector bottom hole, the center of the injector bottom hole can be determined when determining the corresponding cleaning trajectory. Based on the inner diameter of each annular groove, the outer diameter of the annular groove, the depth of the bottom surface of the annular groove, and the number of spiral turns, two layers of radial spiral trajectories are generated along the two annular grooves with the center of the injector bottom hole as the origin, which serve as the cleaning trajectory of the injector bottom hole annular groove.
[0040] Specifically, with the center of the injector bottom hole as the origin, the three-coordinate mathematical expression of the trajectory is as follows:
[0041] in Let be the inner diameter of the i-th annular groove; Where n is the outer diameter of the annular groove; n is the number of spiral turns. The value range is [0, 2πn]; The depth of the bottom surface of the i-th annular groove is 1.5 mm (to avoid direct contact between the bottom of the nozzle and the bottom of the annular groove).
[0042] In one embodiment, when the cleaning area is the valve cavity, when determining the corresponding cleaning trajectory, a combined rotational and radial oscillation trajectory can be generated in the cavity segment based on the maximum rotatable radius of the nozzle in the cavity, the oscillation amplitude, the number of oscillations, the cavity cleaning starting depth, and the pitch, as the cleaning trajectory for the valve cavity.
[0043] Specifically, a segmented dwelling strategy can be adopted at this time, with three dwelling positions: the bottom hole of the fuel injector seat, the inner cavity, and the bottom hole of the fuel guide tube. Each segment uses a center-down cutting method. The three segments generate a composite trajectory of rotation and radial oscillation in the inner cavity segment. Since there are many dead angles in the engine cylinder head cavity, the rotational motion allows the nozzle to cover a larger area in the horizontal direction, while the radial oscillation motion allows the nozzle to reciprocate in a direction perpendicular to the rotation axis, thereby effectively removing impurities in the dead angles of the inner cavity. The amplitude and frequency of the radial oscillation are adjusted according to the size and shape of the inner cavity. For example, for smaller dead angles in the inner cavity, the radial oscillation amplitude can be appropriately reduced, and the frequency appropriately increased to ensure cleaning effect. The same strategy is used for the injector bottom hole. The three-coordinate mathematical expression for the inner cavity trajectory is:
[0044] in, The maximum radius in which the nozzle can rotate within the inner cavity ( ); The oscillation amplitude is adjusted according to the dead angle of the internal cavity, and the maximum shall not exceed ; m represents the number of oscillations at the same angle; This is the starting depth for cleaning the inner cavity; For the pitch, it should be adaptive based on the inner cavity depth, and should at least meet the following requirements. Maximum value ≥ 2π. For intake valves, the cleaning posture should be with the intake side of the cylinder head facing down; for exhaust valves, the cleaning posture should be with the exhaust side of the cylinder head facing down. This is to ensure that metal filings and other debris flow out from the intake / exhaust surfaces. The initial angle and rotation direction (clockwise or counterclockwise) need to be adjusted according to the orientation of the air passages in the internal cavity.
[0045] In one embodiment, if the cleaning area is the combustion chamber, when determining the cleaning trajectory, a preset distance can be determined based on the distance from the starting point of the intake valve seat bottom hole to the starting point of the exhaust valve seat bottom hole, and the angle between the central axes of the intake and exhaust valves. Based on the preset distance, a reference point is determined above the center of the combustion chamber surface of each set of intake and exhaust valves. Based on the number of rotations, the average angle between the line connecting the starting point of the intake valve seat bottom hole and the starting point of the exhaust valve seat bottom hole to the reference point and the preset coordinate axis, the average diameter of the bottom holes of the intake and exhaust valve seats, and the average distance between the starting point of the intake valve seat bottom hole and the starting point of the exhaust valve seat bottom hole to the reference point, an execution angle trajectory with the preset coordinate axis as the rotation axis and the reference point as the rotation center is generated.
[0046] Specifically, the area above the center of the combustion chamber surface of each set of intake and exhaust valves (generally the center of the injector orifice) A five-axis rotation trajectory is generated using the reference point at point 1. The calculation formula is:
[0047] in This is the distance from the starting point of the bottom hole of the intake valve seat to the starting point of the bottom hole of the exhaust valve seat; This is the angle between the centerlines of the intake and exhaust valves. The tool passes through the center of the reference point along the Z-axis of the coordinate system and extends to... Depth position, then rotate around the Z-axis with the reference point as the rotation center, and execute the angle as follows: Rotational motion. The angle of the kth revolution. The calculation formula is as follows:
[0048] in, ; The average angle between the line connecting the starting point of the intake valve seat bottom hole and the starting point of the exhaust valve seat bottom hole to the reference point and the Z-axis of the coordinate system; This refers to the average diameter of the bottom hole of the intake / exhaust valve seat ring; This is the average distance from the starting point of the intake valve seat bottom hole and the starting point of the exhaust valve seat bottom hole to the reference point. For example... Figure 3 The diagram shows a combustion chamber cleaning trajectory, where the light blue solid line is the cleaning trajectory, the dark blue dashed line is the center cutting trajectory, and the green solid line is the transition trajectory between different cleaning trajectories.
[0049] In one embodiment, when the cleaning area is a cavity, when determining its corresponding cleaning trajectory, the reciprocating step distance can be determined based on the cavity width and the nozzle diameter; a reciprocating polygonal trajectory within the cavity is generated based on the reciprocating step distance and the tool path profile; the arc radius is determined based on the cavity width and the nozzle size, and an arc transition trajectory at the corner of the cavity is generated based on the arc radius.
[0050] Specifically, the reciprocating zigzag trajectory enables the cleaning nozzle to perform multiple reciprocating movements within the tank cavity, effectively removing impurities. For example, for a tank cavity that is 50mm long and 5mm wide, the cleaning nozzle reciprocates along the length of the tank cavity, and the step distance of each movement is determined based on the width of the tank cavity and the nozzle diameter, generally 60-80% of the nozzle diameter.
[0051] For the corners of the cleaning chamber, a circular arc transition trajectory is used to avoid nozzle collisions or incomplete cleaning at the corners. The radius of the arc is determined based on the width of the cleaning chamber and the size of the nozzle, and is generally not less than 1.5 times the nozzle diameter.
[0052] It is understandable that the cleaning pressure corresponding to the above cleaning trajectory is related to the cleaning pressure level of the cleaning area.
[0053] S104: Generate a CNC program based on the cleaning trajectory and the cleaning pressure level, and clean the workpiece to be cleaned based on the CNC program.
[0054] After obtaining the cleaning trajectory, the machining center can generate a CNC program based on the cleaning trajectory and the cleaning pressure level, and then control the cleaning tool to move according to the cleaning trajectory based on the CNC program, thereby cleaning the workpiece to be cleaned.
[0055] like Figure 2As shown, the cleaning tool is a machine tool-specific replaceable nozzle tool. Its principle is to pressurize the machine tool cutting fluid and spray it from the nozzle to achieve the cleaning effect. Different nozzle structures are suitable for cleaning different machining characteristics. High-pressure direct-injection nozzles are used for cleaning blind holes. Deep holes on engine cylinder heads require extremely high cleanliness. High-pressure direct-injection nozzles can generate concentrated and powerful water flow to penetrate deep into the holes and flush out chips, dirt, and other impurities. Fan-shaped atomizing nozzles are used for cleaning flat surfaces and shallow grooves, such as some mounting surfaces and radiator grooves on the cylinder head. Fan-shaped atomizing nozzles can atomize the cutting fluid into a fan shape and spray it out, expanding the cleaning area and uniformly cleaning flat surfaces and shallow grooves, improving cleaning efficiency. Rotary spray nozzles are used for cleaning intersecting holes, such as some intersecting oil passages or water jacket holes on the cylinder head. Rotary spray nozzles can rotate while spraying cutting fluid, thereby changing the spray direction and thoroughly cleaning all parts of the intersecting holes, avoiding cleaning blind spots. Multi-angle composite nozzles are used for cleaning specific holes, such as some irregularly shaped valve guide holes. Multi-angle composite nozzles can spray cutting fluid from multiple angles according to the shape of specific holes and cleaning requirements, achieving more precise and efficient cleaning. Spraying parameters can be automatically set according to the type of machining features.
[0056] In one embodiment, when cleaning the workpiece based on the cleaning trajectory, machine tool simulation can be performed on the cleaning trajectory to simulate the movement of the nozzle in each characteristic area of the engine cylinder head during the cleaning process; in response to the collision of the cleaning tool during the simulation, the cleaning trajectory can be adjusted.
[0057] Specifically, machine tool simulation can be performed using Vericut to simulate the movement of the nozzles within various characteristic areas of the engine cylinder head during the cleaning process. Due to the intricate structure of the engine cylinder head, the safety of the nozzle movement in each part must be carefully checked, especially for small holes, intersecting holes, and dead corners within the cavity, to ensure there are no nozzle collisions. If collisions with the cleaning blades are observed in the simulation, the cleaning trajectory should be adjusted promptly to avoid damaging the nozzles and cylinder head during actual cleaning.
[0058] Then, fluid simulation can be performed using Abaqus to simulate the injection process of cutting fluid in various characteristic areas of the engine cylinder head. It is confirmed that parameters such as injection pressure and angle can cover the entire cleaning area, especially difficult-to-clean areas such as intersection lines of cross-holes and dead corners of the internal cavity. Fluid simulation can visually demonstrate the flow of cutting fluid, helping to optimize injection parameters and ensure that the cleaning effect meets requirements.
[0059] In one embodiment, machining features can be sorted from top to bottom according to the cylinder head's clamping posture on the machine tool. Different types of cleaning tools are called based on the machining features, and a dedicated post-processor for the cleaning program is invoked to generate a CNC program. The CNC program uses macro programs to implement a defined cleaning trajectory. For example, the CNC program style for cleaning the valve seat inner cavity is as follows: Inner cavity cleaning M124; Set the cutting fluid pressure rating to level 4. G0 X0 Y0 Z=R303 ; Center cut F200 S200 R300=0; Angle counter WHILE R300 <= R306 FOR R304 = 0 TO R305 ; Number of oscillations G1 X=R120 * COS(R300) Y=R120 * SIN(R300) Z=R303 ; Starting coordinates R301 = R120 * COS(R300) - R121 * (R304 / R305) * COS(R300) ; X R302 = R120 * SIN(R300) - R121 * (R304 / R305) * SIN(R300) ; Y G1 X=R301 Y=R302 Z=R303; End point coordinates ENDFOR R300 = R300 + 2; Angle step 2° ENDWHILE In the same clamping state of the machining center, cutting is performed first, followed by switching to cleaning mode and calling the cleaning tool to complete the cleaning. The machining center is preferably a five-axis dual-rotor or one-rotor-one-swivel machining center, which can rotate the cylinder head to a suitable position to achieve the best cleaning effect, ensuring the cleaning nozzles can clean at the optimal angle and preventing metal shavings from flowing into other machining features and causing secondary contamination. The machining center is equipped with a cutting fluid pressurization and recovery device, and can set multiple cutting fluid pressure values.
[0060] This application embodiment also provides a programming device for integrating a cleaning program within a machining center, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: in response to receiving a cleaning request, acquire the machining trajectory of the workpiece to be cleaned, and geometric data of each cleaning feature; divide cleaning areas according to the feature type of each cleaning feature, and determine the cleaning pressure level of each cleaning area; determine the cleaning trajectory corresponding to each cleaning area based on the geometric data of each cleaning feature and the cleaning pressure level; and clean the workpiece to be cleaned based on the cleaning trajectory.
[0061] This application embodiment also provides a non-volatile computer storage medium storing computer-executable instructions, the computer-executable instructions being configured to: in response to receiving a cleaning request, acquire the processing trajectory of the workpiece to be cleaned and the geometric data of each cleaning feature; divide the cleaning area according to the feature type of each cleaning feature and determine the cleaning pressure level of each cleaning area; determine the cleaning trajectory corresponding to each cleaning area based on the geometric data of each cleaning feature and the cleaning pressure level; and clean the workpiece to be cleaned based on the cleaning trajectory.
[0062] The various embodiments in this application are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the device and medium embodiments are basically similar to the method embodiments, so they are described more simply; relevant parts can be referred to the descriptions of the method embodiments.
[0063] The devices and media provided in this application are one-to-one with the methods. Therefore, the devices and media also have similar beneficial technical effects as their corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.
[0064] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0065] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, as well as combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0066] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0067] These computer program instructions can also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0068] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0069] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0070] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0071] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0072] The above description is merely an embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principle of this application should be included within the scope of the claims of this application.
Claims
1. A programming method for integrating a cleaning program within a machining center, characterized in that, include: In response to receiving a cleaning request, the machining trajectory of the workpiece to be cleaned, as well as the geometric data of each cleaning feature, are obtained; The cleaning areas are divided according to the characteristic type of each cleaning feature, and the cleaning pressure level of each cleaning area is determined. Based on the geometric data and processing trajectory of each cleaning feature, the cleaning trajectory corresponding to each cleaning area is determined. A CNC program is generated based on the cleaning trajectory and the cleaning pressure level, and the workpiece to be cleaned is cleaned based on the CNC program.
2. The method according to claim 1, characterized in that, The step of generating a CNC program based on the cleaning trajectory and the cleaning pressure level specifically includes: Based on the feature type of each cleaning feature, determine the cleaning tool type corresponding to each cleaning area. The cleaning tool types include high-pressure direct-fire nozzles for cleaning blind holes, fan-shaped atomizing nozzles for cleaning planes and shallow grooves, rotary jet nozzles for cleaning cross holes, and multi-angle composite nozzles for cleaning specific holes. Based on the cleaning pressure level, the target cleaning pressure for the cleaning area is determined. A numerical control program is generated based on the cleaning tool, the cleaning trajectory, and the target cleaning pressure.
3. The method according to claim 1, characterized in that, The determination of the cleaning trajectory corresponding to each cleaning area based on the geometric data of each cleaning feature and the cleaning pressure level specifically includes: In response to the cleaning area being a blind hole or a bowl-shaped plug hole, the tool tip is retracted a preset distance along the tool axis direction to obtain a cleaning point based on the original drilling toolpath, and the cleaning point is used as the cleaning trajectory. The dwell time at a fixed point is determined based on the cleaning pressure level, hole depth, and hole diameter.
4. The method according to claim 1, characterized in that, The determination of the cleaning trajectory corresponding to each cleaning area based on the geometric data of each cleaning feature and the cleaning pressure level specifically includes: In response to the cleaning area being a cross hole or an internal cavity through hole, the original drilling toolpath is determined; Based on the rotation angle, orifice diameter, nozzle diameter, number of spiral turns, starting depth of the cross area inside the hole, and pitch, the variable diameter axial spiral trajectory is determined with the original drilling toolpath as the axis, which serves as the cleaning trajectory inside the cross hole. Based on the rotation angle, orifice diameter, nozzle diameter, number of spiral turns, end point depth of the inner cavity through hole area, and pitch, the variable diameter axial spiral trajectory is determined with the original drilling toolpath as the axis, which serves as the cleaning trajectory within the inner cavity through hole.
5. The method according to claim 1, characterized in that, The determination of the cleaning trajectory corresponding to each cleaning area based on the geometric data of each cleaning feature and the cleaning pressure level specifically includes: In response to the cleaning area being an injector bottom hole annular groove, the center of the injector bottom hole is determined; Based on the inner diameter, outer diameter, bottom depth, and number of spiral turns of each annular groove, two radial spiral trajectories are generated along the two annular grooves with the center of the injector bottom hole as the origin, serving as the cleaning trajectory for the injector bottom hole annular grooves.
6. The method according to claim 1, characterized in that, The determination of the cleaning trajectory corresponding to each cleaning area based on the geometric data of each cleaning feature and the cleaning pressure level specifically includes: In response to the fact that the cleaning area is the valve cavity, a combined rotational and radial oscillation trajectory is generated in the cavity section based on the maximum rotatable radius of the nozzle in the cavity, the oscillation amplitude, the number of oscillations, the cavity cleaning starting depth, and the pitch, as the cleaning trajectory of the valve cavity.
7. The method according to claim 1, characterized in that, The determination of the cleaning trajectory corresponding to each cleaning area based on the geometric data of each cleaning feature and the cleaning pressure level specifically includes: In response to the cleaning area being a combustion chamber, a preset distance is determined based on the distance from the starting point of the bottom hole of the intake valve seat to the starting point of the bottom hole of the exhaust valve seat, and the angle between the central axes of the intake valve and the exhaust valve. Based on the preset distance, a reference point is determined above the center of the combustion chamber surface of each group of intake and exhaust valves; Based on the number of rotations, the average angle between the line connecting the starting point of the intake valve seat bottom hole and the starting point of the exhaust valve seat bottom hole to the reference point and the preset coordinate axis, the average diameter of the bottom holes of the intake and exhaust valve seats, and the average distance between the starting point of the intake valve seat bottom hole and the starting point of the exhaust valve seat bottom hole to the reference point, an execution angle trajectory is generated with the preset coordinate axis as the rotation axis and the reference point as the rotation center.
8. The method according to claim 1, characterized in that, The determination of the cleaning trajectory corresponding to each cleaning area based on the geometric data of each cleaning feature and the cleaning pressure level specifically includes: Since the cleaning area is a cavity, the reciprocating step distance is determined according to the cavity width and the nozzle diameter; Based on the reciprocating step distance and the toolpath profile, a reciprocating polygonal trajectory is generated within the slot cavity; The radius of the arc is determined based on the width of the cavity and the size of the nozzle, and an arc transition trajectory at the corner of the cavity is generated based on the radius of the arc.
9. The method according to claim 1, characterized in that, The cleaning of the workpiece based on the cleaning trajectory specifically includes: Machine tool simulation was performed on the cleaning trajectory to simulate the movement of the nozzle in various characteristic areas of the engine cylinder head during the cleaning process; In response to a collision of the cleaning tool during the simulation, the cleaning trajectory is adjusted.
10. A programming device for integrating cleaning programs within a machining center, characterized in that, include: At least one processor; And, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the method as claimed in any one of claims 1-9.