Casting polishing track generation method based on simulation polishing
Technical Field
The invention relates to a polishing track generation method, in particular to a casting polishing track generation method based on simulation polishing.
Background
In the casting process, the workpieces often have excessive parts such as flash, burrs, casting heads and the like, and due to the irregular and deformable characteristics of the castings, the workpieces have obvious dimensional differences, the actual polishing track has larger deviation from the track pre-generated by offline programming software, and the expected effect can be achieved by secondary finishing, however, the traditional numerical control machine tool and the offline CAE programming software matched with the traditional numerical control machine tool are worry when facing the flexible control requirement of the cast workpieces, and the precision requirement in actual production is difficult to meet.
At present, three-dimensional offline programming software is introduced in the automatic polishing industry, but the software still has limitation in the aspect of treating the dimensional deviation of cast workpieces, the generated polishing process code needs to be adjusted for the second time according to the actual deviation condition of the workpieces, and the polishing process code cannot be directly applied to automatic polishing equipment, so that the complexity and the time cost in the production flow are obviously increased.
Disclosure of Invention
The invention aims to solve the technical problem that the polishing process code generated by the existing three-dimensional offline programming software needs to be adjusted for the second time according to the actual deviation condition of a workpiece and cannot be directly applied to automatic polishing equipment, and provides a casting polishing track generation method based on simulation polishing.
In order to solve the technical problems, the technical solution provided by the invention is as follows:
a casting polishing track generation method based on simulation polishing comprises the following steps:
s1, acquiring a casting model of a casting, and acquiring an outer contour map of a region to be polished of the casting;
S2, acquiring casting parameters and polishing parameters, and acquiring a preliminary polishing track by combining an outer contour map of a region to be polished of the casting;
S3, optimizing a preliminary polishing track by combining the cutter parameters and the casting structure to obtain an optimized polishing track;
s4, establishing a polishing machine model, importing the polishing machine model and the casting model into simulation software, and setting a simulation environment;
s5, importing the optimized polishing track into simulation software, and simultaneously setting an origin of the polishing track in a simulation environment and a polishing track direction;
S6, running a polishing machine model in simulation software, enabling the polishing machine model to polish the casting model in a simulation mode according to the polishing track, and recording the simulation polishing track;
s7, verifying whether deviation exists between the simulated polishing track and the casting model;
if the simulated polishing track has deviation with the casting model, the simulated polishing track is correspondingly corrected, so that the simulated polishing track is matched with the casting model, and the step S5 is executed;
If the simulated polishing track has no deviation from the casting model, executing a step S8;
and S8, after the simulation operation is completed, outputting the simulation polishing track into a polishing process file which can be directly operated by a polishing machine tool by simulation software.
Further, in step S1, the manner of obtaining the outer contour map of the area to be polished of the casting is:
And converting the edge of the area to be polished on the casting model into a two-dimensional boundary curve to be used as an outer contour map of the area to be polished of the casting.
Further, in step S1, the casting model is any one of a scanned three-dimensional model of the casting or a three-dimensional model of a casting standard.
Further, the step S2 specifically includes:
And acquiring the size, the material and the polishing thickness of the casting and the abrasive distribution condition of the polishing cutter, and acquiring a preliminary polishing track by combining an outer contour map of a region to be polished of the casting.
Further, the step S3 specifically includes:
And obtaining the radius, the length and the thickness of the polishing tool and the structural dimension of the casting, and optimizing the initial polishing track by combining the radius, the length and the thickness of the polishing tool and the structural dimension of the casting to obtain the optimized polishing track.
Further, in step S4, the specific manner of setting the simulation environment is:
setting a simulation environment coordinate system and a coordinate origin in a simulation environment of simulation software;
Assembling the casting model in the polishing machine tool model, and enabling the origin of the polishing machine tool to coincide with the coordinate origin of the simulation environment coordinate system;
adjusting the pose of the polishing machine tool model in the simulation environment, and setting a polishing tool on the mounting position of the polishing tool in the polishing machine tool model according to the mounting pose of the polishing tool and tool parameters;
setting the motion range, speed and acceleration of each motion axis in the polishing machine model and the rotation speed of the polishing tool, and finishing the setting of the simulation environment after the setting is finished.
Further, in step S8, the specific way of outputting the simulated polishing track as the polishing process file directly operated by the polishing machine tool by the simulation software is as follows:
S81, establishing a coordinate transformation matrix for transforming the simulation environment coordinate system into a polishing machine coordinate system;
S82, converting coordinate points in a simulation track under a simulation environment coordinate system into coordinate points in a grinding machine coordinate system through a coordinate conversion matrix;
S83, after conversion is completed, generating a polishing process file which can be directly operated by the polishing machine tool by simulation software according to a self-defined output format.
Compared with the prior art, the invention has the beneficial effects that:
The casting polishing track generation method based on the simulation polishing comprises the steps of obtaining an outer contour map of a casting region to be polished, combining casting parameters, polishing parameters, cutter parameters and a casting structure to generate a polishing track suitable for the casting, guiding a polishing machine model into simulation software and establishing a simulation environment, running the polishing machine model through the simulation software, performing simulation polishing on the casting model according to the polishing track, comparing and verifying the simulation polishing track obtained through the simulation polishing with the casting model to judge the accuracy of the polishing track, and directly outputting a polishing process file capable of being directly run by the polishing machine tool after the simulation polishing track is matched with the casting model or corrected, verified and matched through the simulation software, so that secondary adjustment is not needed according to actual conditions, and programming and production efficiency are improved.
Drawings
FIG. 1 is a schematic flow chart of an embodiment of the present invention;
FIG. 2 is a casting model in example 1 of the present invention;
FIG. 3 is an outer profile view of a casting in example 1 of the present invention;
FIG. 4 is an original polishing trace in example 1 of the present invention;
FIG. 5 is a polishing trace in example 1 of the present invention;
FIG. 6 is a diagram showing a model of a polishing machine and a model of a casting in example 1 of the present invention;
FIG. 7 is a schematic view showing the setting origin and the polishing track direction in embodiment 1 of the present invention;
FIG. 8 is a schematic diagram of simulated polishing performed by the polishing machine model in embodiment 1 of the present invention;
fig. 9 is a polishing process file in example 1 of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made more apparent and fully hereinafter with reference to the accompanying drawings, in which some, but not all embodiments of the invention are shown. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
As shown in FIG. 1, the casting polishing track generation method based on simulation polishing comprises the following steps:
s1, acquiring a casting model of a casting, and acquiring an outer contour map of a region to be polished of the casting;
the casting model is any one of a scanning three-dimensional model of a casting or a three-dimensional model of a casting standard part, and the edge of a region to be polished on the casting model is converted into a two-dimensional boundary curve to be used as an outer contour map of the region to be polished of the casting;
s2, acquiring the size, the material and the polishing thickness of the casting and the abrasive distribution condition of a polishing cutter, and acquiring a preliminary polishing track by combining an outer contour map of a region to be polished of the casting;
S3, acquiring the radius, the length and the thickness of the polishing cutter and the structural size of the casting, and optimally adjusting the initial polishing track by combining the radius, the length and the thickness of the polishing cutter and the structural size of the casting to obtain an optimized polishing track;
s4, establishing a polishing machine model, importing the polishing machine model and the casting model into simulation software, and setting a simulation environment;
the specific mode for setting the simulation environment is as follows:
setting a simulation environment coordinate system and a coordinate origin in a simulation environment of simulation software;
Assembling the casting model in the polishing machine tool model, and enabling the origin of the polishing machine tool to coincide with the coordinate origin of the simulation environment coordinate system;
adjusting the pose of the polishing machine tool model in the simulation environment, and setting a polishing tool on the mounting position of the polishing tool in the polishing machine tool model according to the mounting pose of the polishing tool and tool parameters;
Setting the motion range, the speed and the acceleration of each motion axis in the polishing machine tool model and the rotating speed of a polishing tool;
s5, importing the optimized polishing track into simulation software, and simultaneously setting an origin of the polishing track in a simulation environment and a polishing track direction;
S6, running a polishing machine model in simulation software, enabling the polishing machine model to polish the casting model in a simulation mode according to the polishing track, and recording the simulation polishing track;
s7, verifying whether deviation exists between the simulated polishing track and the casting model;
if the simulated polishing track has deviation with the casting model, the simulated polishing track is correspondingly corrected, so that the simulated polishing track is matched with the casting model, and the step S5 is executed;
If the simulated polishing track has no deviation from the casting model, executing a step S8;
S8, after the simulation operation is completed, establishing a coordinate transformation matrix for transforming the simulation environment coordinate system into a polishing machine coordinate system;
converting coordinate points in a simulation track under a simulation environment coordinate system into coordinate points in a polishing machine tool coordinate system through a coordinate conversion matrix;
After the conversion is finished, generating a polishing process file which can be directly operated by the polishing machine tool by simulation software according to a user-defined output format.
Specific examples are given below.
Example 1
In this embodiment 1, taking a casting as an example, a casting polishing track generation method based on simulated polishing of the present invention is described in detail, and specifically as follows:
1) The casting model is obtained and is a three-dimensional model (STEP or I GES format) of a casting standard component, as shown in figure 2, the casting model is imported into CAE software, three-dimensional coordinates of the edge of a region to be polished on the casting model are converted into two-dimensional boundary curves by the CAE software, the two-dimensional boundary curves are exported into files which can be identified by CAM software, and the files are used as an outer contour map of the region to be polished of the casting, as shown in figure 3;
2) Acquiring the size, the material and the polishing thickness of a casting and the abrasive distribution condition of a polishing cutter, inputting the size, the material and the polishing thickness of the casting and the abrasive distribution condition of the polishing cutter into CAM software, and acquiring a preliminary polishing track by combining the CAM software with an outer contour map of a region to be polished of the casting, as shown in FIG. 4;
3) Inputting the radius, the length and the thickness of the polishing cutter and the structural size of the casting into CAM software, and optimizing an original polishing track by the CAM software to obtain a polishing track, as shown in figure 5;
4) Establishing a polishing machine model, and importing the polishing machine model and the casting model into CAE software as shown in FIG. 6;
in CAE software, assembling a casting model into a polishing machine tool model, and enabling the origin of the polishing machine tool to coincide with the coordinate origin of a simulation environment coordinate system;
adjusting the pose of the polishing machine tool model in the simulation environment, and setting a polishing tool on the mounting position of the polishing tool in the polishing machine tool model according to the mounting pose of the polishing tool and tool parameters;
Setting the motion range, the speed and the acceleration of each motion axis in the polishing machine tool model, and the rotating speed of a polishing tool;
5) Importing the polishing track generated by the CAM software into the CAE software, and setting an origin of the polishing track in a simulation environment and the polishing track direction at the same time, as shown in FIG. 7;
6) Running a polishing machine model in CAE software, enabling the polishing machine model to polish the casting model in a simulation mode according to the polishing track, and recording the simulation polishing track, as shown in FIG. 8;
7) Verifying whether deviation exists between the simulated polishing track and the casting model;
If the simulated polishing track deviates from the casting model, correspondingly correcting the simulated polishing track to enable the simulated polishing track to be matched with the casting model, and executing the step 5);
If the simulated polishing track has no deviation from the casting model, executing the step 8);
8) After the simulation operation is completed, a coordinate conversion matrix for converting the simulation environment coordinate system into a polishing machine coordinate system is established;
converting coordinate points in a simulation track under a simulation environment coordinate system into coordinate points in a polishing machine tool coordinate system through a coordinate conversion matrix;
After the conversion is completed, a polishing process file which can be directly operated by a polishing machine tool is generated by simulation software according to a custom output format, as shown in fig. 9.
The foregoing is merely illustrative of specific embodiments of the present invention, and the scope of the present invention is not limited thereto, but any changes or substitutions within the technical scope of the present invention should be covered by the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.