Laser manipulator mold cavity curved surface texture etching method and device
Technical Field
The invention relates to the technical field of laser processing equipment, in particular to a method and a device for etching curved surfaces of a laser manipulator mold cavity.
Background
At present, the method of sand blasting and chemical corrosion is generally adopted for the texture etching of the mold cavity, for example, in the invention patent 'inner wall pattern engraving method of mold cavity' with patent No. 88104312, a method of engraving patterns on the inner wall of mold cavity is disclosed, wherein, firstly, a metal foil is made into a required pattern net by a photo-etching method, then one side of the pattern net is coated with a protective layer, the other side is attached to the inner wall of mold cavity, and then the inner wall of mold cavity is etched by a chemical corrosion or electrolytic corrosion method. The chemical etching method adopted at present has two defects: firstly, the processing period is long, generally needs 3-7 days, and the price is not very expensive; secondly, the discharged chemical residual liquid causes serious pollution to the interior and the surrounding environment of the enterprise, a large amount of chemical residual liquid is generated every year, and more than 90 percent of the enterprises are secretly discharged.
In addition, the grain etching processing of the special-shaped curved surface and the steep curved surface of the die cavity cannot be realized by adopting a sand blasting or chemical corrosion method in the prior art. Accordingly, there is a need for improvements over existing methods of curved surface texturing of mold cavities.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a method and a device for etching the curved surface of the die cavity of the laser manipulator, which have high etching efficiency and no pollution and are suitable for etching the special-shaped curved surface and the steep curved surface of the die cavity.
The technical scheme adopted by the invention for solving the technical problems is as follows:
a method for forming curved surface texture of a laser manipulator mold cavity comprises the following steps:
A. establishing and storing a two-dimensional texture pattern database, wherein the two-dimensional texture pattern database contains various parameters of two-dimensional patterns for etching curved surface textures of a mold cavity, and the parameters comprise areas, positions, lines and areas to be etched;
B. acquiring a two-dimensional pattern to be etched on a curved surface of a mold cavity, performing three-dimensional graphic processing on the two-dimensional pattern by adopting a texture mapping algorithm according to corresponding parameters in the two-dimensional texture pattern database, generating an STL format description file, and storing the STL format description file;
C. and reading the STL format description file, and controlling the mechanical arm of the laser mechanical arm mould cavity texture etching machine to move according to the STL format description file so as to control the laser beam to etch the curved surface texture of the mould cavity.
The method of the present invention, wherein the step B includes:
b1, acquiring a two-dimensional pattern to be etched on the curved surface of the die cavity;
b2, representing the two-dimensional pattern by a three-dimensional surface model or a solid model according to corresponding parameters in the two-dimensional texture pattern database;
and B3, converting the three-dimensional surface model or the solid model into an STL format description file of surface triangle approximation, and storing.
The method of the present invention, wherein the step B3 includes:
a plurality of seed triangular surface patches are appointed on a curved surface of a mold cavity to be processed, a curved surface tangential vector field is generated, mapping from the curved surface triangular surface patches to texture space is established, and the shape and size of the triangular surface patches are kept unchanged through mapping;
searching triangles of the whole curved surface mesh in a breadth-first mode, recursively using mapping from a triangular surface patch to a texture space until the whole curved surface mesh is textured, and recording texture coordinates of the triangular surface patch;
calculating the optimal splicing texture for the textures of the adjacent triangular patches by using a graph segmentation method through the recorded texture coordinates to generate the texture of each triangular patch;
and compressing and storing the generated texture of each triangular patch into a large texture set, and drawing in real time according to the recorded texture coordinates to obtain the STL format description file.
In the step C, the laser manipulator mold cavity etching machine comprises a laser generator for generating laser, a laser head for transmitting and emitting laser beams, a manipulator for fixing the laser head, a manipulator controller for controlling the manipulator, a three-dimensional motion platform for placing a mold to be processed and an industrial personal computer for controlling the motion of the three-dimensional motion platform; wherein,
the manipulator controller is connected with the manipulator, and the laser head is arranged at the front end of the manipulator and connected with the laser generator through an optical fiber; the three-dimensional motion platform is arranged below the manipulator.
The method of the present invention, wherein the step C further comprises:
acquiring a setting parameter of a pulse width modulation signal for adjusting the energy of the laser beam;
and controlling the on-off state of the laser beam generated by the laser manipulator mold cavity etching machine, and adjusting the energy of the laser beam according to the setting parameter of the pulse width modulation signal.
The invention also provides a laser manipulator mould cavity curved surface texture etching device, which comprises:
the two-dimensional texture pattern database construction module is used for establishing and storing a two-dimensional texture pattern database, wherein the two-dimensional texture pattern database contains a plurality of parameters of two-dimensional patterns for carrying out curved surface texture etching on a mold cavity, and the parameters comprise areas, positions, lines and areas needing etching;
the three-dimensional graph processing module is used for acquiring a two-dimensional pattern to be etched on a curved surface of a die cavity, performing three-dimensional graph processing on the two-dimensional pattern by adopting a texture mapping algorithm according to corresponding parameters in the two-dimensional texture pattern database, generating an STL format description file and storing the STL format description file;
and the laser manipulator mould cavity etching machine is used for reading the STL format description file and controlling the manipulator to move according to the STL format description file so as to control the laser beam to etch the curved surface texture of the mould cavity.
The apparatus of the present invention, wherein the three-dimensional graphics processing module comprises:
the two-dimensional pattern acquisition unit is used for acquiring a two-dimensional pattern to be etched on the curved surface of the die cavity;
the modeling unit is used for representing the two-dimensional pattern by a three-dimensional surface model or a solid model according to corresponding parameters in the two-dimensional texture pattern database;
and the STL file generating unit is used for converting the three-dimensional surface model or the entity model into an STL format description file of surface triangle approximation and storing the STL format description file.
The apparatus of the present invention, wherein the STL file generation unit includes:
the mapping subunit is used for assigning a plurality of seed triangular surface patches on the curved surface of the mold cavity to be processed, generating a curved surface tangential vector field, establishing the mapping from the curved surface triangular surface patches to the texture space, and keeping the shape and the size of the triangular surface patches unchanged through mapping;
the texture coordinate recording subunit is used for searching triangles of the whole curved surface mesh in a breadth-first mode, recursively using mapping from the triangular surface patch to a texture space until the whole curved surface mesh is textured, and recording texture coordinates of the triangular surface patch;
the texture generation subunit is used for calculating the optimal splicing texture for the texture of the adjacent triangular patches by using a graph segmentation method through the recorded texture coordinates, and generating the texture of each triangular patch;
and the STL file generating subunit is used for compressing and storing the generated texture of each triangular patch into a large texture set, and drawing in real time according to the recorded texture coordinates to obtain the STL format description file.
The device of the invention, wherein, the laser mechanical arm mould cavity etching machine comprises:
the laser processing device comprises a laser generator for generating laser, a laser head for transmitting and emitting laser beams, a manipulator for fixing the laser head, a manipulator controller for controlling the manipulator, a three-dimensional motion platform for placing a die to be processed and an industrial personal computer for controlling the motion of the three-dimensional motion platform; wherein,
the manipulator controller is connected with the manipulator, and the laser head is arranged at the front end of the manipulator and connected with the laser generator through an optical fiber; the three-dimensional motion platform is arranged below the manipulator.
The device of the invention, wherein the laser manipulator mould cavity etching machine further comprises a laser control unit for controlling the laser generator: wherein the laser control unit includes:
a parameter obtaining subunit, configured to obtain a setting parameter of a pulse width modulation signal that adjusts energy of the laser beam;
and the laser beam parameter and state control subunit is used for controlling the switching state of the laser beam generated by the laser manipulator mold cavity etching machine and adjusting the energy of the laser beam according to the setting parameter of the pulse width modulation signal.
The invention has the beneficial effects that: the method comprises the steps of establishing a two-dimensional texture pattern database, performing three-dimensional graphic processing on a two-dimensional pattern by adopting a texture mapping algorithm to obtain an STL format description file, reading the STL format description file by a laser manipulator mold cavity etching machine, and controlling the motion of a manipulator according to the STL format description file to control a laser beam to etch the curved surface texture of a mold cavity. According to the laser manipulator mold cavity curved surface texture etching method, a chemical corrosion method is not needed, so that waste liquid is not generated, the method is more environment-friendly than the traditional method, the whole texture etching process can be greatly shortened, the processing efficiency is improved, and due to the fact that the laser manipulator mold cavity curved surface texture etching machine with the manipulator is used for achieving texture etching, the flexibility and the physical capacity of the whole processing system are improved, and the laser manipulator mold cavity curved surface texture etching method can process special-shaped curved surfaces and steep curved surfaces of mold cavities which are difficult to process by a common processing method.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
FIG. 1 is a flow chart of a method for curved surface texturing of a mold cavity in accordance with a preferred embodiment of the present invention;
FIG. 2a is a schematic diagram of a pattern design according to a preferred embodiment of the present invention;
FIG. 2b is a schematic diagram of a sample texture pattern design of FIG. 2a enlarged by ten times;
FIG. 3 is a schematic diagram of the mapping of planar texture to curved surfaces of a mold cavity in accordance with a preferred embodiment of the present invention;
FIG. 4 is a schematic block diagram of a curved surface texturing apparatus for a laser robot mold cavity in accordance with a preferred embodiment of the present invention;
FIG. 5 is a schematic block diagram of a three-dimensional graphics processing module in the curved surface etching apparatus for a laser robot mold cavity in accordance with the preferred embodiment of the present invention;
FIG. 6 is a schematic block diagram of an STL file generating unit in the curved surface etching device of the laser manipulator mold cavity according to the preferred embodiment of the present invention;
FIG. 7 is a schematic block diagram of a laser robot mold cavity curved surface texturing machine in accordance with a preferred embodiment of the present invention;
fig. 8 is a functional module architecture diagram employed in a curved surface texturing apparatus of a mold cavity in accordance with an embodiment of the present invention.
Detailed Description
A flowchart of a method S100 for etching a curved surface of a cavity of a laser manipulator according to a preferred embodiment of the present invention is shown in fig. 1, and the method S100 may be implemented by hardware, software, or a combination of hardware and software. The method starts in step S110. In step S120, a two-dimensional texture pattern database is established and stored, where the two-dimensional texture pattern database contains a plurality of parameters of two-dimensional patterns for performing curved surface texture etching of a mold cavity, and the parameters include a region, a position, lines, and an area to be etched; in step S130, a two-dimensional pattern to be etched on the curved surface of the mold cavity is obtained, and according to corresponding parameters in the two-dimensional texture pattern database, a texture mapping algorithm is used to perform three-dimensional graphic processing on the two-dimensional pattern, so as to generate and store an STL format description file; in step S140, the STL format description file is read, and the manipulator movement of the laser manipulator mold cavity texture etching machine is controlled according to the STL format description file, so as to control the laser beam to perform texture etching on the curved surface texture of the mold cavity. The method S100 ends in step S150. In the method for etching the curved surface of the mold cavity, no chemical corrosion method is adopted, so that waste liquid is not generated, the method is more environment-friendly than the traditional method, the whole etching process can be greatly shortened, and the processing efficiency is improved. And because the laser manipulator mould cavity curved surface etching machine with the manipulator is adopted to realize the etching processing, the flexibility and the physical capability of the whole processing system are increased, so that the laser manipulator mould cavity curved surface etching machine can process the special-shaped curved surface and the steep curved surface of the mould cavity which are difficult to process by using a common processing method.
Wherein, about 60 percent of the plastic mould pattern is standard pattern (including pear pattern), and almost thousands of patterns exist in the MT10000 series standard pattern of American Mode company popular at home and abroad in recent years; in addition, 40% of the patterns mainly aim at the requirements of leather patterns, orange peel patterns, wood grains, rain patterns, jet patterns, matt surfaces and other decorative patterns. FIG. 2a is a sample similar to the American Mode MT11005 standard grain (pear land grain). As can be seen from the schematic diagram 2b enlarged by 10 times, in the region of approximately 1mm in diameter, approximately 60 pits (hatched portions) with different shapes are designed. According to the design idea of MT11005 standard grain, other various kinds of grain patterns are gradually designed, and a corresponding two-dimensional grain pattern database is established, namely an electronic standard grain plate is established, so that a computer can identify the area, position, line and area of each pattern to be etched. The roughness measurement can be used to verify that the laser-etched surface has met the design specifications for the texture.
In a further embodiment, the step S130 specifically includes: acquiring a two-dimensional pattern to be etched on a curved surface of a mold cavity; expressing the two-dimensional pattern by using a three-dimensional surface model or a solid model according to corresponding parameters in the two-dimensional texture pattern database; and converting the three-dimensional surface model or the solid model into an STL format description file of surface triangle approximation, and storing the STL format description file. The process of mapping the planar texture to the curved surface of the mold cavity is shown in fig. 3, which shows an original mapping texture a, a curved surface b of the mold cavity to be processed, a schematic diagram c of the processing effect of the laser etching, and a mapped curved texture map d.
Specifically, the process of generating the STL format description file in the above steps is as follows: a plurality of seed triangular surface patches are appointed on a curved surface of a mold cavity to be processed, a curved surface tangential vector field is generated, mapping from the curved surface triangular surface patches to texture space is established, and the shape and size of the triangular surface patches are kept unchanged through mapping; searching a whole curved surface mesh triangle in a breadth-first mode, recursively using mapping from a triangular surface patch to a texture space until the whole curved surface mesh is textured, searching the texture space in the mapping process to obtain the optimal texture coordinate of the texture surface patch, enabling the matching error of the texture surface patches of adjacent triangular surface patches on the curved surface to be minimum, and recording the texture coordinate of the triangular surface patch; calculating the optimal splicing texture for the textures of the adjacent triangular patches by using a graph segmentation method through the recorded texture coordinates to generate the texture of each triangular patch; and compressing and storing the generated texture of each triangular patch into a large texture set, and drawing in real time according to the recorded texture coordinates to obtain the STL format description file.
The step S140 further includes: acquiring a setting parameter of a pulse width modulation signal for adjusting the energy of a laser beam; and controlling the on-off state of the laser beam generated by the laser manipulator mold cavity etching machine, and adjusting the energy of the laser beam according to the setting parameter of the pulse width modulation signal. That is, the controlling of the laser beam by the laser robot mold cavity etching machine may include: laser switching control and energy control. The laser switch control can be realized through a level signal, and the laser energy control can be adjusted through a PWM signal with adjustable frequency and duty ratio. Specifically, different PMW signals may be set by a program according to a laser etching object. In addition, the laser etching processing control module can prompt the abnormal condition of the machine through a buzzer. Because the alarm buzzer is supplied with 24-volt direct current, the software gives out the level change of the TTL signal through the control card, and the alarm buzzer is controlled to generate corresponding effect after the level change is amplified through driving.
The specific structure of the laser robot mold cavity etching machine will be described in detail in the following embodiments.
In another embodiment of the present invention, there is also provided a laser robot mold cavity curved surface etching apparatus, as shown in fig. 4, including: a two-dimensional texture pattern database construction module 10, configured to establish and store a two-dimensional texture pattern database, where the two-dimensional texture pattern database includes multiple parameters of two-dimensional patterns for performing curved surface texture etching of a mold cavity, and the parameters include a region, a position, lines, and an area to be etched; the three-dimensional graph processing module 20 is used for acquiring a two-dimensional graph to be etched on the curved surface of the die cavity, performing three-dimensional graph processing on the two-dimensional graph by adopting a texture mapping algorithm according to corresponding parameters in a two-dimensional texture graph database, generating an STL format description file and storing the STL format description file; and the laser manipulator mould cavity etching machine 30 is used for reading the STL format description file and controlling the manipulator to move according to the STL format description file so as to control the laser beam to etch the curved surface texture of the mould cavity. The method for creating the two-dimensional texture pattern database can be referred to the description in conjunction with fig. 2, and will not be described herein again. In the laser manipulator mould cavity curved surface etching device of this embodiment, owing to need not adopt the chemical corrosion method, consequently can not produce the waste liquid, environmental protection more than traditional approach, and whole etching course also can shorten greatly, improves machining efficiency. And because the laser manipulator mould cavity curved surface etching machine with the manipulator is adopted to realize the etching processing, the flexibility and the physical capability of the whole processing system are increased, so that the laser manipulator mould cavity curved surface etching machine can process the special-shaped curved surface and the steep curved surface of the mould cavity which are difficult to process by using a common processing method.
Further, as shown in fig. 5, the three-dimensional graphics processing module 20 in the foregoing embodiment specifically includes: a two-dimensional pattern obtaining unit 21 configured to obtain a two-dimensional pattern to be etched on a curved surface of a mold cavity; the modeling unit 22 is used for representing the two-dimensional patterns by using a three-dimensional surface model or a solid model according to corresponding parameters in the two-dimensional texture pattern database; and the STL file generating unit 23 is configured to convert the three-dimensional surface model or the solid model into an STL format description file of surface triangle approximation, and store the STL format description file.
As shown in fig. 6, the STL file generating unit 23 in the foregoing embodiment includes: the mapping subunit 231 is configured to assign a plurality of seed triangular patches on the curved surface of the mold cavity to be processed, generate a curved tangential vector field, establish mapping from the curved triangular patches to a texture space, and keep the shape and size of the triangular patches unchanged through mapping; a texture coordinate recording subunit 232, configured to search a triangle of the entire curved surface mesh with a breadth-first, recursively use mapping from a triangular patch to a texture space until the entire curved surface mesh is textured, and record texture coordinates of the triangular patch; a texture generating subunit 233, configured to calculate, according to the recorded texture coordinates, an optimal stitching texture for the textures of adjacent triangular patches by using a graph segmentation method, and generate a texture of each triangular patch; and an STL file generating subunit 234, configured to compress and store the generated texture of each triangular patch into a large texture set, and perform real-time rendering according to the recorded texture coordinates, so as to obtain an STL format description file.
In a further embodiment, as shown in fig. 7, the laser robot mold cavity etcher in each of the above embodiments comprises: the laser control system comprises a laser generator 6, a laser head 2, a manipulator 1, a manipulator controller 5, a three-dimensional motion platform 3 and an industrial personal computer 4. The manipulator controller 5 is connected with the manipulator 1 and used for controlling the manipulator 1 to act; the laser head 2 is arranged at the front end of the manipulator 1 and is connected with the laser generator 6 through an optical fiber, and laser generated by the laser generator 6 is transmitted to the laser head 2 through the optical fiber and then emitted out through the laser head 2; the three-dimensional motion platform 3 is arranged below the manipulator 1 to place a die to be processed, and the industrial personal computer 4 controls the three-dimensional motion platform 3 to move in three directions to adjust the position of the die to be processed.
Specifically, the pattern of the pattern cavity to be removed is expressed by a three-dimensional model, then converted into an STL format description file, the processing parameters are input by the manipulator controller 5, the scanning processing of the curved surface of the pattern cavity to be processed is completed according to the STL format description file, and the pattern of the pattern. When the machining process is carried out, a die cavity to be machined is fixed on the three-dimensional motion platform 3, the three-dimensional motion platform 3 is driven by the industrial personal computer 4 to adjust the position of the die cavity, the manipulator 1 is controlled to move by the manipulator controller 5, the laser generator 6 is started, the movement control of laser beams is realized, and the etching machining of the curved surface of the die cavity is completed. The mechanical arm 1 has good extensibility, so that the flexibility and physical capacity of the whole processing system are improved, and the mechanical arm can process the special-shaped curved surface and the steep curved surface of the mold cavity which are difficult to process by using a common processing method.
Preferably, the laser robot mold cavity etching machine further includes a laser control unit (not shown) for controlling the laser generator. Wherein, the laser instrument control unit includes: a parameter acquiring subunit, configured to acquire a setting parameter of a pulse width modulation signal that adjusts energy of the laser beam; and the laser beam parameter and state control subunit is used for controlling the on-off state of the laser beam generated by the laser manipulator mold cavity etching machine and adjusting the energy of the laser beam according to the setting parameter of the pulse width modulation signal. That is, the controlling of the laser beam by the laser robot mold cavity etching machine may include: laser switching control and energy control. The laser switch control can be realized through a level signal, and the laser energy control can be adjusted through a PWM signal with adjustable frequency and duty ratio. Specifically, different PMW signals may be set by a program according to a laser etching object. In addition, the laser etching processing control module can prompt the abnormal condition of the machine through a buzzer. Because the alarm buzzer is supplied with 24-volt direct current, the software gives out the level change of the TTL signal through the control card, and the alarm buzzer is controlled to generate corresponding effect after the level change is amplified through driving.
Preferably, in the above embodiments, the robot 1 is a 5-axis industrial robot, and the laser generator 6 is a Nd: YAG solid laser.
Preferably, in a specific embodiment, the control module software system of the laser robot mold cavity etching machine has a functional module architecture as shown in fig. 8, which includes a pattern database 101, an application software main interface 102 and an etching card instruction system 103, where the application software main interface 102 includes sub-items such as a mapping texture algorithm process 104, a laser etching 105, and an etching card program 106. The pattern database 101 is used for editing and storing a two-dimensional graphic file which needs to be subjected to texture processing on the curved surface of the die cavity; the texture card instruction system 103 is used for editing and managing laser etching instructions to realize seamless connection between bottom hardware and application software; the texture mapping algorithm 104 includes three-dimensional modeling 107, surfacing 108 of texture to be processed, and data processing 109, each of which includes a plurality of sub-items, which are not described herein again.
The specific execution method and process of the control module software system can generate different effects according to different specific programming, and the detailed description is not repeated, and experiments prove that the functional module architecture can realize the efficient control of a hardware part in the laser manipulator mold cavity etching machine and realize the etching processing of the curved surface of the mold cavity.
In summary, the invention establishes the two-dimensional texture pattern database, and adopts the texture mapping algorithm to perform three-dimensional graphics processing on the two-dimensional pattern, so as to obtain the STL format description file, and reads the STL format description file through the laser manipulator mold cavity texture etching machine, and controls the motion of the manipulator according to the STL format description file, so as to control the laser beam to etch the curved surface texture of the mold cavity. According to the laser manipulator mold cavity curved surface texture etching method, a chemical corrosion method is not needed, so that waste liquid is not generated, the method is more environment-friendly than the traditional method, the whole texture etching process can be greatly shortened, the processing efficiency is improved, and due to the fact that the laser manipulator mold cavity curved surface texture etching machine with the manipulator is used for achieving texture etching, the flexibility and the physical capacity of the whole processing system are improved, and the laser manipulator mold cavity curved surface texture etching method can process special-shaped curved surfaces and steep curved surfaces of mold cavities which are difficult to process by a common processing method.
It will be appreciated that those skilled in the art, on the basis of the preceding description, may make modifications and alterations to the present invention, all of which shall fall within the scope of the appended claims.