A robot three-dimensional engraving and milling system and method based on CAM software
Through the robot three-dimensional engraving and milling system based on CAM software, combined with the clamping cylinder and reverse machining method, the problems of low automation and high equipment cost of engraving and milling processing are solved, and efficient and low-cost three-dimensional engraving and milling processing is realized, which is suitable for industry Intelligent production in the context of 4.0.
Patent Information
- Application Number
- CN202211344952.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-31
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-10-31
AI Technical Summary
The existing engraving and milling processing has a low degree of automation. Traditional manual methods result in low efficiency and serious dust pollution. It is difficult for existing automated equipment to achieve miniaturization and low-cost three-dimensional engraving and milling processing.
Design a robot three-dimensional engraving and milling system based on CAM software, including an engraving and milling robot, a robot controller, a rough machining module, a finishing module and an electrical control module. It uses the clamping cylinder and clamping jaws to pick up, feed and process materials to achieve automated engraving. milling, and use reverse machining to reduce equipment costs.
It realizes the automation and high-precision processing of robot three-dimensional engraving and milling processing, solves the problem of worker shortage and high-cost equipment, is suitable for smart factory production in the context of Industry 4.0, and has the characteristics of high efficiency, low cost and strong versatility.
Smart Images

Figure CN115685883B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of engraving and milling, and in particular to a robot three-dimensional engraving and milling system and method based on CAM software. Background Art
[0002] In the domestic processing and engraving industry, there are few companies that use robots for engraving and milling, and the degree of automation of engraving and milling is generally low. At present, many companies still use traditional manual engraving and milling methods. The traditional processing process is relatively backward. Generally, the plane diagram of the product to be processed is drawn first, and then the product is engraved and milled with a blade and a steel chisel. Manual engraving and milling cannot use water to remove dust, and the on-site dust pollution is serious. Using robot engraving and grinding can add circulating water to the tool engraving point, which will not generate dust. In addition, engraving requires a high level of technical skills for workers, and talents are generally in short supply. It is difficult for companies to recruit workers, and there is an urgent need to realize production automation.
[0003] There are already related companies abroad that are conducting research and development on robot engraving and milling processing, but their intelligence level is not high and they cannot meet the requirements of processing and production under the background of Industry 4.0. In addition, the engraving and milling method generally adopted by the existing automated engraving and milling equipment is that the robot installs the milling cutter and performs engraving and milling processing on the fixed workpiece. Since the weight of the milling cutter and its spindle motor is generally very large, the engraving and milling robot often uses a large industrial robot with a large load, but this large industrial robot cannot meet the needs of miniaturized and low-cost automatic engraving and milling processing. Therefore, there is an urgent need for a three-dimensional engraving and milling system that can complete automated engraving and milling processing and meet the requirements of miniaturized and low-cost processing and production. Summary of the invention
[0004] In view of the above problems, the present invention proposes a robot three-dimensional engraving and milling system and method based on CAM software to solve the problems that the existing engraving and milling processing has low automation level resulting in low engraving and milling efficiency and the existing engraving and milling processing equipment is difficult to miniaturize and reduce cost.
[0005] According to one aspect of the present invention, a robot three-dimensional engraving and milling system based on CAM software is provided, the system comprising a material feeding component, a processing component and a host computer; wherein:
[0006] The material picking and feeding component includes a carving and milling robot and a robot controller; a clamping flange is installed on the swing component at the end of the mechanical arm of the carving and milling robot, the clamping flange is connected to the clamping cylinder, and the clamping cylinder is installed with a clamping jaw; the carving and milling robot is connected to the robot controller and communicates in real time; the processing component includes a roughing module, a fine processing module and an electrical control module; the roughing module includes a roughing spindle bracket, the roughing spindle bracket is connected to the roughing spindle mounting piece, the roughing spindle mounting piece clamps the roughing spindle, the roughing spindle is installed with a roughing milling cutter, and the roughing spindle is connected to the electrical control module; the fine processing module includes a fine processing spindle bracket, the fine processing spindle bracket is connected to the fine processing spindle mounting piece, the fine processing spindle mounting piece clamps the fine processing spindle, the fine processing spindle is installed with a fine processing milling cutter, and the fine processing spindle is connected to the electrical control module; the electrical control module is connected to the robot controller and communicates in real time;
[0007] The host computer is connected to the robot controller and communicates with it in real time, and is used to control the material picking and feeding components and the processing components to cooperate to complete the carving and milling operation on the workpiece to be processed through a carving and milling process designed based on CAM software.
[0008] Furthermore, the system also includes a carving and milling system frame, which is a rectangular frame, divided into two parts, an upper and lower part, a profile connecting plate is installed between the upper and lower parts, a platform mounting plate is laid on the profile connecting plate, and the upper part of the platform mounting plate is divided into two left and right areas, one area is used to place the carving and milling robot, and the other area is used to place the rough processing module and the fine processing module in parallel; the lower part of the profile connecting plate is divided into two left and right areas, one area is used to place the robot controller, and the other area is used to place the electrical control module.
[0009] Furthermore, a workpiece storage module is installed on the upper side of the engraving and milling system frame parallel to the engraving and milling robot. The workpiece storage module includes multiple storage places and photoelectric sensors installed above the storage places, and each photoelectric sensor is connected to the electrical control module respectively.
[0010] Furthermore, the electrical control module includes a button mounting plate and an electrical control mounting plate which are connected to each other, and a start button, a stop button and an emergency stop button are mounted on the button mounting plate; and a PLC and an electrical control circuit are arranged on the electrical control mounting plate.
[0011] Furthermore, a bottom mounting plate is laid under the robot controller; the two ends of the electric control mounting plate are bent, and mounting through holes are provided at the bent parts, the through holes at the bottom of the electric control mounting plate are installed on the bottom mounting plate by bolt connection, and the through holes at the top of the electric control mounting plate are installed on the bottom of the profile connecting plate by profile clips; the left side and the upper side of the button mounting plate are bent, and mounting through holes are provided at the bent parts, the through holes at the left side of the button mounting plate are installed on the electric control mounting plate by bolt connection, and the through holes at the upper side of the button mounting plate are installed on the bottom of the profile connecting plate by profile clips.
[0012] Furthermore, the workpiece storage module includes a first material picking piece, a second material picking piece and a third material picking piece, and mounting through holes are arranged above and below the first material picking piece, the second material picking piece and the third material picking piece, and the mounting through holes above and below the first material picking piece, the second material picking piece and the third material picking piece are installed on the engraving and milling system frame through profile clips; a first material picking sensor, a second material picking sensor and a third material picking sensor are respectively installed above the first material picking piece, the second material picking sensor and the third material picking sensor are powered by the electrical control circuit on the electrical control mounting board and provide sensing signals therefor; the first material picking sensor, the second material picking sensor and the third material picking sensor are photoelectric sensors.
[0013] According to another aspect of the present invention, a robot three-dimensional engraving and milling method based on CAM software is provided, and the engraving and milling method is implemented based on the robot three-dimensional engraving and milling system described above; the engraving and milling method comprises the following steps:
[0014] Step 1: Get the material
[0015] The upper computer sends a material fetching instruction to the robot controller, and the robot controller sends an instruction to obtain the material fetching position to the PLC. The PLC determines the storage position of the blank according to the signal sent by the received photoelectric sensor, and sends the storage position to the robot controller, and the robot controller forwards the storage position to the engraving and milling robot; the upper gripper of the engraving and milling robot opens and goes to the storage position. After reaching the storage position, the gripper grabs the blank and returns to the starting position;
[0016] Step 2: Rough machining
[0017] The host computer sends a rough machining instruction including a machining path to the robot controller, and the robot controller sends a rough machining start instruction to the PLC. The PLC controls to connect the rough machining spindle power supply line and disconnect the fine machining spindle power supply line, and sets the rough machining speed parameter to start the rough machining spindle.
[0018] The robot controller controls the engraving and milling robot to perform rough processing on the blank according to the processing path;
[0019] The robot controller sends a stop rough machining command to the PLC, and the PLC controls the rough machining spindle to stop; at the same time, the robot controller controls the engraving and milling robot to return to the starting position;
[0020] Step 3: Finishing
[0021] The host computer sends a finishing instruction including a machining path to the robot controller, and the robot controller sends a finishing start instruction to the PLC. The PLC controls to connect the finishing spindle power supply line and disconnect the roughing spindle power supply line, and sets the finishing speed parameter to start the finishing spindle.
[0022] The robot controller controls the engraving and milling robot to perform fine processing on the blank according to the processing path;
[0023] The robot controller sends a stop finishing instruction to the PLC, and the PLC controls the finishing spindle to stop; at the same time, the robot controller controls the engraving and milling robot to return to the starting position;
[0024] Step 4: Discharging
[0025] The host computer sends a discharge instruction to the robot controller, the robot controller sends an instruction to obtain the discharge position to the PLC, the PLC determines the vacant storage position according to the signal sent by the received photoelectric sensor, and sends the storage position to the robot controller, the robot controller forwards the storage position to the engraving and milling robot; the engraving and milling robot goes to the storage position, and after arriving at the storage position, the clamp opens to return the processed workpiece and returns to the starting position.
[0026] Furthermore, the machining path in the rough machining or fine machining is designed and generated by CAM software in the host computer, and the generation steps include:
[0027] Generate a corresponding roughing coordinate system and a finishing coordinate system based on input tool data, wherein the tool data includes a milling cutter length and a diameter;
[0028] Based on the coordinate relationship between the motion coordinate system of the engraving and milling robot and the machining coordinate system, the coordinate position of the bottom end of the blank clamped by the engraving and milling robot is calculated according to the tool setting requirements and tool data, thereby generating the blank to be processed and its coordinates;
[0029] A tool path is created based on the existing path setting selection, wherein the path setting includes the selection and setting of boundaries, styles, cutting directions, and tolerances, thereby generating a machining path.
[0030] Furthermore, the machining path in the rough machining or fine machining is designed and generated by CAM software in the host computer, and the generation steps include:
[0031] (1) Plane processing
[0032] Layering: For the step depth given by the user, the upper computer algorithm decomposes the blank and the final model into multiple layers of two-dimensional planes according to the step depth;
[0033] Comparison: Compare the blank of each layer in the multi-layer 2D plane with the final model. Subtract the 2D plane figures of each layer of the final model from the 2D plane figures of each layer of the blank. The obtained 2D plane figures of each layer are the parts where the blank exceeds the final model, that is, the parts that need to be engraved and milled.
[0034] Converting plane graphics into path points: For a cutting depth given by the user, the contour of the obtained two-dimensional plane graphics is offset according to the cutting depth to obtain the engraving and milling path of each layer, and the path is discretized to obtain path points one by one;
[0035] Coordinate system conversion: The definition of the engraving and milling path points obtained above is: take the center point of the processed plane as the origin, and establish a reference coordinate system perpendicular to the processing plane and outward as the positive direction of the Z axis. The relative coordinates of each engraving and milling path point in this reference coordinate system; The definition of the point obtained after the coordinate system conversion: take the robot basic coordinate system as the reference coordinate system, and the moving path point of the center point of the robot end; Robot posture determination: the surface to be processed is perpendicular to the tool, and the difference between the robot processing posture and the origin posture is minimized;
[0036] (2) Rotating body processing
[0037] Determine the rotation axis: The rotation axis is perpendicular to the sixth axis plane of the robot, that is, the plane of the end of the robot arm;
[0038] Layering: For the step depth given by the user, the upper computer algorithm decomposes the blank and the final model into multiple layers of two-dimensional planes according to the step depth; each layer of plane is perpendicular to the rotary axis;
[0039] Determine the path points: extract the contours of the two-dimensional plane graphics of each layer, which is the processing path, and discretize this path to obtain path points one by one;
[0040] The robot posture is fixed: the robot's sixth axis plane is parallel to the platform plane, that is, the rotary axis plane is perpendicular to the platform plane;
[0041] (3) Side wall processing
[0042] Identify the surfaces that require sidewall machining;
[0043] Define the coordinate system: Take the center point of the processed plane as the origin and the direction perpendicular to the processing plane outward as the positive direction of the Z axis to establish a reference coordinate system;
[0044] Robot processing posture: the workpiece processing surface is parallel to the processing tool;
[0045] Calculate the projection path: Project the blank and the final model on the XOZ plane, subtract the two-dimensional projection plane figure of the final model from the two-dimensional projection plane figure of each layer of the blank, and the obtained two-dimensional plane figure is the part to be engraved and milled. The contour of this part is the engraving and milling path, and this path is discretized to obtain path points one by one;
[0046] (4) General surface processing
[0047] The overall model is analyzed by the host computer, decomposed into multiple surfaces, and each surface is decomposed into many closely spaced points. The host computer calculates the cutting plane passing through the point of the model, and controls the robot's posture so that the milling cutter is always perpendicular to the cutting plane when passing through the point for carving and milling.
[0048] The beneficial technical effects of the present invention are:
[0049] The present invention can realize the automation of robot three-dimensional engraving and milling processing. The upper computer on the PC side can communicate with the PLC controller and the robot controller through the communication module to realize automatic material picking and automatic processing on the processing platform. The system provided by the present invention can meet the requirements of different processed parts and realize high-precision and precise processing. At the same time, the processing area can also carry out timely processing and production quickly and efficiently, which can replace manual operations. It has the characteristics of high efficiency, low cost, and strong versatility. It can solve the current dilemma of worker shortage and realize efficient automation of processing processes such as intelligent, real-time and personalized processing. It is suitable for workshop production and processing in smart factories under the background of Industry 4.0.
[0050] Furthermore, the robots currently used in three-dimensional engraving equipment are often large robots, which are not convenient for processing small handicrafts. If it is necessary to process small handicrafts, it is very expensive to use the currently common large-scale engraving equipment. The characteristics of these large-scale engraving equipment are that the engraving and milling spindle is installed at the end of the robot, and the handicraft is placed on the external seventh-axis turntable for processing. The load of a small robot is often within 3kg, and the net weight of a common engraving and milling spindle is greater than 3kg, so the spindle cannot be installed at the end of a light-load robot according to the above method. Therefore, the present invention adopts a reverse processing method in which the robot clamps the workpiece and the spindle is fixed. The light-load robot does not need to install a spindle at the end, and only needs to install a fixture to clamp the small handicraft blank, which saves processing costs. It is a low-cost processing solution for light-load robotic arms.
[0051] Furthermore, the processing of general handicrafts requires the steps of rough machining and fine machining. Rough machining often uses a tool with a larger tool diameter, while fine machining often uses a tool with a smaller tool diameter. Moreover, when processing surfaces with different shape characteristics of handicrafts, different processing tools are often required. Therefore, the current common large-scale engraving robots use a tool-changeable spindle, and different processing tools can be replaced on the spindle at the end of the robot. The weight and cost of the tool-changeable spindle are significantly higher than those of an ordinary spindle, and an additional tool library needs to be installed, which further increases the cost. Therefore, the present invention adopts a reverse processing method in which the robot clamps the workpiece and the spindle is fixed. The spindle is fixedly installed on the platform, and a plurality of ordinary spindles with different tools can be installed at the same time. Different processing effects can be achieved without changing the tool, saving tool change time and processing costs.
[0052] Furthermore, when performing three-dimensional engraving and milling processing on a rotating body, the currently used method is often to add a robot seventh-axis turntable, fix the workpiece blank on the seventh-axis turntable, and realize 360° rotary engraving and milling processing of the workpiece blank through the rotation of the turntable. The additional seventh-axis turntable greatly increases the processing cost and complexity of the processing, and causes the processing equipment to occupy a large space. In the reverse processing method described in the present invention, the sixth axis of the robot (i.e., the end of the robot arm) can drive the rotation of the clamped workpiece to complete the processing of the rotating body, which can well save the cost of processing small handicrafts and the space occupied by the processing equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] The present invention can be better understood by referring to the description given below in conjunction with the accompanying drawings, which together with the following detailed description are included in this specification and form a part of this specification, and are used to further illustrate the preferred embodiments of the present invention and explain the principles and advantages of the present invention.
[0054] Figure 1 This is a structural diagram of a robot three-dimensional engraving and milling system based on CAM software according to an embodiment of the present invention;
[0055] Figure 2 Schematic diagram of the framework of the robot three-dimensional engraving and milling system in an embodiment of the present invention;
[0056] Figure 3 Schematic diagram of a robot three-dimensional engraving and milling platform in an embodiment of the present invention;
[0057] Figure 4 This is a schematic diagram of a material taking location in an embodiment of the present invention;
[0058] Figure 5 This is a processing flow chart of a three-dimensional engraving and milling robot controlled by a host computer in an embodiment of the present invention;
[0059] Figure 6This is a diagram of the upper computer interface of the robot three-dimensional engraving and milling system in an embodiment of the present invention;
[0060] Figure 7 A tool creation diagram for a host computer of a three-dimensional engraving and milling system in an embodiment of the present invention;
[0061] Figure 8 This is a tool setting diagram of the host computer of the three-dimensional engraving and milling system in the embodiment of the present invention;
[0062] Fig. 9 The host computer of the three-dimensional engraving and milling system in the embodiment of the present invention adjusts the blank drawing;
[0063] Fig.10 This is a diagram of the upper computer model adjustment of the three-dimensional engraving and milling system in the embodiment of the present invention;
[0064] Fig.11 A diagram for creating a machining tool path for a host machine of a three-dimensional engraving and milling system in an embodiment of the present invention;
[0065] Fig.12 This is a diagram of the upper machine processing code generation of the three-dimensional engraving and milling system in the embodiment of the present invention. DETAILED DESCRIPTION
[0066] In order to enable those skilled in the art to better understand the scheme of the present invention, exemplary implementations or embodiments of the present invention will be described below in conjunction with the accompanying drawings. Obviously, the described implementations or embodiments are only implementations or embodiments of a part of the present invention, not all of them. Based on the implementations or embodiments of the present invention, all other implementations or embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present invention.
[0067] In order to solve the problems in the prior art that the degree of automation of engraving and milling is generally low, the traditional processing process is relatively backward, and the engraving talents are generally in short supply, the present invention provides a robot three-dimensional engraving and milling system and method based on CAM software. The robot processing equipment has low processing cost, multi-axis flexibility, a large working range and axis expansion capability, and is particularly suitable for engraving and milling processing of complex products.
[0068] The embodiment of the present invention provides a robot three-dimensional engraving and milling system based on CAM software, which includes a feeding component, a processing component and a host computer; wherein the feeding component includes an engraving and milling robot and a robot controller; a clamping flange is installed on the swing component at the end of the mechanical arm of the engraving and milling robot, the clamping flange is connected to the clamping cylinder, and the clamping cylinder is installed with a clamping claw; the engraving and milling robot is connected to the robot controller and communicates in real time; the processing component includes a rough machining module, a fine machining module and an electrical control module; the rough machining module includes a rough machining spindle bracket, the rough machining spindle bracket is connected to the rough machining spindle mounting piece, the rough machining spindle mounting piece clamps the rough machining spindle, and the rough machining spindle is installed with a rough machining milling The roughing spindle is connected to the motor, and the motor drives the roughing milling cutter to work; the roughing spindle is connected to the electrical control module; the finishing module includes a finishing spindle bracket, the finishing spindle bracket is connected to a finishing spindle mounting piece, the finishing spindle mounting piece clamps the finishing spindle, the finishing spindle is installed with a finishing milling cutter, the finishing spindle is connected to the motor, and the motor drives the finishing milling cutter to work; the finishing spindle is connected to the electrical control module; the electrical control module is connected to the robot controller and communicates in real time; the host computer is connected to the robot controller and communicates in real time, and is used to control the feeding and picking parts and the processing parts to cooperate to complete the engraving and milling operations on the workpiece to be processed through the engraving and milling process designed based on CAM software.
[0069] In this embodiment, optionally, the system also includes a carving and milling system frame, which is a rectangular frame, divided into two parts, an upper and lower part, a profile connecting plate is installed between the upper and lower parts, a platform mounting plate is laid on the profile connecting plate, and the area above the platform mounting plate is divided into two left and right areas, one area is used to place the carving and milling robot, and the other area is used to place the rough processing module and the fine processing module in parallel; the area below the profile connecting plate is divided into two left and right areas, one area is used to place the robot controller, and the other area is used to place the electrical control module.
[0070] In this embodiment, optionally, a workpiece storage module is installed on the upper side of the engraving and milling system frame parallel to the engraving and milling robot. The workpiece storage module includes multiple storage places and photoelectric sensors installed above the storage places, and each photoelectric sensor is respectively connected to the electrical control module.
[0071] In this embodiment, optionally, the electrical control module includes a button mounting plate and an electric control mounting plate that are connected to each other, and a start button, a stop button and an emergency stop button are installed on the button mounting plate; a PLC and an electrical control circuit are arranged on the electric control mounting plate, and the electric control mounting plate is respectively connected to the rough machining spindle, the fine machining spindle and the robot controller.
[0072] Another embodiment of the present invention provides a robot three-dimensional engraving and milling system based on CAM software, such as Figure 1-4As shown, the system includes: a robot three-dimensional engraving and milling system frame 1 for installing the engraving and milling mechanical system, a robot controller placement area 2 and an electric control installation area 3 are arranged below the engraving and milling system frame 1, a profile connection plate is installed in the middle of the engraving and milling system frame 1, a robot three-dimensional engraving and milling platform installation plate is laid above the profile connection plate, a robot three-dimensional engraving and milling platform 4 is above the profile connection plate and the robot three-dimensional engraving and milling platform installation plate, and the profile connection plate and the robot three-dimensional engraving and milling platform installation plate are provided with a first wiring hole 1-1 and a second wiring hole 1-2. A bottom installation plate 2-1 is laid below the robot controller placement area 2, and a robot controller 2-2 is placed above the bottom installation plate 2-1.
[0073] It also includes an electric control installation plate 3-1, which is bent at both ends and provided with installation through holes at the bends. The through holes below the electric control installation plate 3-1 are installed on the bottom installation plate 2-1 by bolt connection, and the through holes above the electric control installation plate 3-1 are installed on the bottom of the profile connection plate by profile clips. The electric control installation plate 3-1 is installed with the electrical control circuits of the engraving and milling robot 4-1, the engraving and milling spindle, and other engraving and milling devices or sensor devices.
[0074] It also includes a button mounting plate 3-2, which is bent at the left and upper sides and is provided with mounting through holes at the bends. The left through holes of the button mounting plate 3-2 are mounted on the electric control mounting plate 3-1 by bolt connection, and the upper through holes of the button mounting plate 3-2 are mounted on the bottom of the profile connecting plate by profile clips. The button mounting plate 3-2 is installed with a carving and milling system start button 3-3, a carving and milling system stop button 3-4 and an engraving system emergency stop button 3-5.
[0075] It also includes a carving and milling robot 4-1, the base of which is installed on the robot's three-dimensional carving and milling platform mounting plate and the profile connecting plate through bolt connections and profile fasteners; the end of the carving and milling robot 4-1 is threadedly connected to a clamping flange 4-2; the clamping flange 4-2 is threadedly connected to a clamping cylinder 4-3, and the clamping cylinder 4-3 is installed with a clamping claw 4-4; the carving and milling robot 4-1 communicates with the robot controller 2-2 through the first wiring hole 1-1 and is controlled by the robot controller 2-2.
[0076] A rough machining area 5 is arranged in front of the right side of the robot three-dimensional engraving and milling platform 4, and a rough machining spindle bracket 5-1 is arranged in the rough machining area 5. The rough machining spindle bracket 5-1 is provided with mounting through holes above and below; the mounting through hole below the rough machining spindle bracket 5-1 is connected with the profile clip through bolts and is installed on the robot three-dimensional engraving and milling platform mounting plate and the profile connecting plate, and the mounting through hole above the rough machining spindle bracket 5-1 is connected with a rough machining spindle mounting part 5-2 through bolts, and the rough machining spindle mounting part 5-2 clamps the rough machining spindle 5-3, and the rough machining spindle clamps the rough machining milling cutter 5-4. The rough machining spindle 5-3 passes through the second wiring hole 1-2, is powered and controlled by the electrical control circuit on the electric control mounting plate 3-1, and is water-cooled by an external water cooling device.
[0077] A finishing area 6 is arranged at the rear right side of the robot's three-dimensional engraving and milling platform 4, and a finishing spindle bracket 6-1 is arranged in the finishing area 6. Mounting through holes are arranged above and below the finishing spindle bracket 6-1; the mounting through hole below the finishing spindle bracket 6-1 is connected with the profile clip through bolts and is installed on the robot's three-dimensional engraving and milling platform mounting plate and the profile connecting plate, and the mounting through hole above the finishing spindle bracket 6-1 is connected with a finishing spindle mounting part 6-2 through bolts, and the finishing spindle mounting part 6-2 clamps the finishing spindle 6-3, and the finishing spindle 6-3 clamps the finishing milling cutter 6-4, and the finishing spindle 6-3 passes through the second wiring hole 1-2, is powered and controlled by the electrical control circuit on the electric control mounting plate 3-1, and is provided with water cooling by an external water cooling device.
[0078] It also includes a material picking place 7, which is provided with a first material picking piece 7-1-1, a second material picking piece 7-1-2 and a third material picking piece 7-1-3, and the first material picking piece 7-1-1, the second material picking piece 7-1-2 and the third material picking piece 7-1-3 are provided with mounting holes above and below, and the mounting holes above and below the first material picking piece 7-1-1, the second material picking piece 7-1-2 and the third material picking piece 7-1-3 are installed on the engraving and milling system frame 1 through profile clips; The first material picking sensor 7-2-1, the second material picking sensor 7-2-2 and the third material picking sensor 7-2-3 are respectively installed above the first material picking member 7-1-1, the second material picking member 7-1-2 and the third material picking member 7-1-3. The first material picking sensor 7-2-1, the second material picking sensor 7-2-2 and the third material picking sensor 7-2-3 are powered by the electrical control circuit on the electrical control installation board 3-1 through the second wiring hole 1-2 and provide sensing signals for them.
[0079] The model of the engraving and milling robot is Mitsubishi Industrial Robot RV-2F-D; the model of the gripper cylinder is MHS4-63D.
[0080] Another embodiment of the present invention further provides a robot three-dimensional engraving and milling method based on CAM software. The engraving and milling method is implemented based on the robot three-dimensional engraving and milling system in the above embodiment, and includes the following steps:
[0081] Step 1: Get the material
[0082] The host computer sends a material fetching instruction to the robot controller, and the robot controller sends an instruction to obtain the material fetching position to the PLC. The PLC determines the storage position of the blank according to the signal sent by the received photoelectric sensor, and sends the storage position to the robot controller. The robot controller forwards the storage position to the engraving and milling robot; the engraving and milling robot opens the gripper and goes to the storage position. After reaching the storage position, the gripper grabs the blank and returns to the starting position.
[0083] Step 2: Rough machining
[0084] The upper computer sends a rough machining instruction containing a machining path to the robot controller, and the robot controller sends a start rough machining instruction to the PLC. The PLC controls the connection of the rough machining spindle power supply line and disconnects the fine machining spindle power supply line, sets the rough machining speed parameters, and starts the rough machining spindle. The robot controller controls the engraving and milling robot to perform rough machining on the blank according to the machining path. After the machining is completed, the robot controller sends a stop rough machining instruction to the PLC, and the PLC controls the rough machining spindle to stop. At the same time, the robot controller controls the engraving and milling robot to return to the starting position.
[0085] Step 3: Finishing
[0086] The upper computer sends a finishing instruction containing a machining path to the robot controller, and the robot controller sends a start finishing instruction to the PLC. The PLC controls the connection of the finishing spindle power supply line and disconnects the roughing spindle power supply line, sets the finishing speed parameters, and starts the finishing spindle. The robot controller controls the engraving and milling robot to finish the blank according to the machining path. After the machining is completed, the robot controller sends a stop finishing instruction to the PLC, and the PLC controls the finishing spindle to stop. At the same time, the robot controller controls the engraving and milling robot to return to the starting position.
[0087] Step 4: Discharging
[0088] The host computer sends a discharge instruction to the robot controller, the robot controller sends an instruction to obtain the discharge position to the PLC, the PLC determines the vacant storage position according to the signal sent by the received photoelectric sensor, and sends the storage position to the robot controller, the robot controller forwards the storage position to the engraving and milling robot; the engraving and milling robot goes to the storage position, and after arriving at the storage position, the gripper opens to release the processed workpiece and returns to the starting position.
[0089] In this embodiment, optionally, the machining path in rough machining or fine machining is designed and generated by CAM software in the host computer, and the generation steps include:
[0090] The corresponding rough machining coordinate system and fine machining coordinate system are generated based on the input tool data, and the tool data includes the length and diameter of the milling cutter; based on the coordinate relationship between the motion coordinate system and the machining coordinate system of the engraving and milling robot, the coordinate position of the bottom end of the blank clamped by the engraving and milling robot is obtained according to the tool setting requirements and the tool data, thereby generating the blank to be processed and its coordinates; based on the existing path setting, the tool path is selected and created, and the path setting includes the selection and setting of the boundary, style, cutting direction, and tolerance, thereby generating the machining path.
[0091] The engraving and milling method proposed in the embodiment of the present invention is described in more detail below.
[0092] The PLC control program is divided into material picking control program, material discharge control program and spindle control program. In a complete machining process, it is divided into four processes: "material picking - rough machining - fine machining - material discharge".
[0093] In the material picking control program, when the material picking preparation is completed, the robot controller sends the material picking information to the PLC, and the PLC controls the gripper to open. After completion, the robot goes to the material picking location, and the PLC receives the signal from the photoelectric sensor, determines the output position of the robot picking, and sends it to the robot controller, which drives the robot to run to that position. After the movement is completed, the controller sends a signal to the PLC, and the PLC controls the gripper to close. Then the robot controls the gripper to pick up the material and return to the origin.
[0094] In the material discharge control program, when the material discharge preparation is completed, the robot controller sends the material discharge information to the PLC, the robot goes to the material discharge location, and the PLC receives the signal from the photoelectric sensor, determines the output of the robot's material discharge location, and sends it to the robot controller, which drives the robot to run to that location. After the movement is completed, the controller sends a signal to the PLC, and the PLC controls the jaws to open. Then the robot returns to the origin and closes the jaws.
[0095] In the spindle control program, the robot controller determines the current processing status of the robot and outputs a signal to the PLC, which controls the switching between the roughing spindle and the finishing spindle, speed setting, and start and stop. The specific control process is "connect the roughing spindle and disconnect the finishing spindle line - set the inverter speed to low speed - start the spindle - the robot runs the roughing path - stop the spindle - the robot returns to the origin - connect the finishing spindle and disconnect the roughing spindle line - set the inverter speed to high speed - start the spindle - the robot runs the finishing path - stop the spindle - the robot returns to the origin".
[0096] The method also includes a host computer control program, which can simultaneously complete the processing selection, tool setting, blank and coordinate generation, model input and adjustment, tool creation, tool path generation, processing code generation and robot control of the three-dimensional engraving and milling robot processing in the host computer control software, such as Figure 5 shown.
[0097] Specifically, start and run the 3D engraving and milling system host computer software. The 3D engraving and milling system host computer software interface is shown in the figure below: Figure 6 As shown. Users can click the menu bar above the software to select "rough machining" or "finishing", and enter the corresponding tool data to create rough machining tools and finishing tools. Users can set the name, length, and diameter of the tool. The software will generate the corresponding machining coordinate system based on the user's options and calculate the input tool data to complete the machining of different surfaces and different precisions, such as Figure 7 shown.
[0098] After creating the tool, set the tool for the 3D engraving and milling system, such as Figure 8 As shown, the user needs to execute the robot's zero return program under the premise of ensuring safety. After the robot returns to zero, the user needs to switch the robot's motion coordinate system to the direct coordinate. The user needs to turn on the teach mode, select the appropriate speed to run the robot, and adjust the robot's posture by pulling the "X-" / "X+", "Y-" / "Y+", and "Z-" / "Z+" on the teach pendant. When setting the tool, it is necessary to always keep the robot's motion posture vertical. When the tool is close to the four sides and the top of the blank, it is necessary to adjust the robot's running speed to the minimum and feed the tool slowly to ensure that the tool can be close to the designated position around the blank and the top, and input the parameters of the designated position into the host computer software of the 3D engraving and milling system. By recording the special position points of the 3D engraving and milling robot, the host computer software program of the 3D engraving and milling system calculates the coordinates of the bottom of the blank clamped by the robot based on the tool setting data and tool information.
[0099] After the tool setting is completed, the user can click the "blank adjustment" in the menu bar of the 3D engraving and milling system host computer software. Fig. 9 As shown, the user can set and modify the parameters of the blank position and size, and can use the "Lock" option to fix the parameters on the left. After the settings are completed, click "Finish" to complete the blank adjustment, or click the "Cancel" button to cancel the blank adjustment. The 3D engraving and milling system host computer software generates the blank and blank coordinates of the workpiece to be processed.
[0100] After generating the blank and its coordinates, the user can click "Model Adjustment" in the menu bar of the 3D engraving and milling system host computer software. Fig.10As shown, the user can rotate, scale, and change the relative position of the input model, and can modify the input model by adjusting the length, width, and height parameters of the model.
[0101] After completing the model input and adjustment, the user can click "Create Tool Path" in the menu bar of the 3D engraving and milling system host computer software. Fig.11 As shown, users can set the roughing or finishing tool path. Users can select the boundary as "None", "Blank" or "Contour" in the tool path setting. When "Contour" is selected, users can set the machining allowance. Users can select "Parallel", "Offset All" or "Offset Model" in "Style". In "Cutting Direction", users can set "Contour" to "Any", "Climb Milling" or "Reverse Milling", set "Area" to "Any", "Climb Milling" or "Reverse Milling", and define the required tolerance in "Tolerance". After the settings are completed, click "OK" to generate the tool path.
[0102] After completing the tool path creation, the user can click the "Generate Processing Code" menu bar in the 3D engraving and milling system host computer software. Fig.12 As shown in the pop-up setting box, the user can select the tool path for which the processing code needs to be generated and set the running speed during processing. After completing the settings, click the "Generate" button, and the 3D engraving and milling system host computer software will automatically simulate the tool path, record its processing position, and convert it into processing code.
[0103] During the rough machining path generation process, the rough machining process is decomposed into multiple layers according to the given depth by the host computer algorithm, and the rough in each layer is compared with the final model to determine the part of the layer where the rough is more than the final model, that is, the part that needs to be engraved and milled. The engraving and milling path is generated under the premise of retaining a certain margin, and the equipment will engrave and mill the rough layer by layer. Usually, the given depth is large, which enables the equipment to quickly engrave and mill a large number of roughs, but because the margin is left and the model between layers has not been calculated, a step-like engraving and milling pattern will be generated, and the engraving and milling accuracy is low.
[0104] In the process of generating the finishing machining path, the host computer analyzes the overall model, decomposes the overall model into multiple surfaces, and decomposes each surface into many closely spaced points. The host computer calculates the tangent plane passing through the point of the model, and controls the robot posture to ensure that the milling cutter is always perpendicular to the tangent plane when passing through the point for carving and milling, and traverses each point one by one in sequence to complete the carving and milling on the surface. This processing method has a slow processing speed due to the close spacing of the points and sometimes the need to significantly adjust the robot posture, but the error of the final model is very small, and high-precision carving and milling of various complex surfaces can be achieved.
[0105] The processing method can be set as follows: first perform rough machining to quickly engrave and mill a large number of blanks, and then perform fine machining to trim the details of the model, thereby achieving higher engraving and milling accuracy while ensuring the processing speed.
[0106] After completing the 3D engraving and milling system host computer software settings, the user can control the 3D engraving and milling robot in the 3D engraving and milling system host computer software. First, control the robot to pick up materials. When the robot returns to zero and is ready, the host computer sends a material picking instruction to the robot controller, and the robot controller sends the material picking instruction to the PLC, and the PLC control program completes the material picking process; after the material picking is completed, the 3D engraving and milling system host computer software controls the robot to perform rough processing. When the robot has completed the material picking and is ready, the host computer sends an instruction to the robot controller, and the robot controller sends the rough processing instruction to the PLC, and the PLC controls the program to complete the material picking process. The LC control program completes the rough machining process; after the rough machining is completed, the robot is controlled by the host computer software of the 3D engraving and milling system to perform fine machining. When the robot is ready for rough machining, the host computer sends instructions to the robot controller, and the robot controller sends the fine machining instructions to the PLC, and the PLC control program completes the fine machining process; after the fine machining is completed, the robot is controlled by the host computer software of the 3D engraving and milling system to discharge the material. When the robot is ready for fine machining, the host computer sends instructions to the robot controller, and the robot controller sends the material collection instruction to the PLC, and the PLC control program completes the discharge process.
[0107] The different forms of processing are further described in detail.
[0108] (1) Plane processing
[0109] Layering: First, the user gives a step depth, and the host computer algorithm decomposes the blank and the final model into multiple layers of two-dimensional planes according to this depth.
[0110] Comparison: Compare the blank in each layer with the final model. Subtract the two-dimensional plane figures of each layer of the final model from the two-dimensional plane figures of each layer of the blank. The obtained two-dimensional plane figures of each layer are the parts where the blank exceeds the final model, that is, the parts that need to be engraved and milled.
[0111] Convert plane graphics into path points: The user gives a cutting depth, and the contour of the resulting two-dimensional plane graphics is offset according to this line spacing to obtain the engraving and milling path of each layer, and this path is discretized to obtain path points one by one.
[0112] Coordinate system conversion: The definition of the engraving and milling path points obtained above is: the center point of the processed plane is the origin, the direction perpendicular to the processing plane is the positive direction of the Z axis, and the positive direction of the X axis is defined by the user. The relative coordinates of each engraving and milling path point in this reference coordinate system. The definition of the point obtained after the coordinate system change: the robot basic coordinate system is the reference coordinate system, and the moving path point of the center point of the robot end. Robot posture determination: The processed surface is perpendicular to the tool, and ensure that the difference between the robot processing posture and the origin posture is as small as possible. The origin of the coordinate system on the robot gripper will not change, but the robot will have different postures. A three-dimensional coordinate is input to the robot. This coordinate moves the point at the center of the robot gripper (the origin of the coordinate system on the gripper) to the corresponding coordinate value. There are still three degrees of freedom, which can control the different postures of the robot, so three-dimensional coordinate values (three displacement degrees of freedom) and three rotation angles (three rotation posture degrees of freedom) are required to determine that the robot moves to a fixed position with a fixed posture;
[0113] The coordinates of the processing point are obtained based on the tool coordinate system. The z-axis of the tool coordinate system is perpendicular to the processing surface, and the x- and y-axes are parallel to the width and length of the processing surface. The first coordinate point is set as P Ti =x Ti ,y Ti ,z Ti , these points are the moving path of the tool in the tool coordinate system. Note that, since the tool coordinate system is moving during machining, while the tool is stationary, the moving path of the tool is the relative moving path of the tool relative to the tool coordinate system.
[0114] However, since the three-dimensional coordinate point of the displacement command sent to the robot controller is the position of the center point of the robot end in the robot coordinate system, let this point be P z , that is, it is necessary to change P in the tool coordinate system Ti Converted to P in the robot coordinate system z .
[0115] Since the machining surface is perpendicular to the milling cutter axis and the top surface of the blank is parallel to the platform plane, P in the tool coordinate system Ti Convert to point P in tool coordinate system Hi :
[0116]
[0117]
[0118] The length, width and height of the blank are a, b and c respectively. The distance from the center of the top of the blank to the center of the robot end is h. H Converted to P in the tool coordinate system z' :
[0119]
[0120]
[0121] Convert the tool coordinate system to the robot coordinate system, and then get P in the robot coordinate system z :
[0122]
[0123] P Zi Input the robot controller, and the robot can move according to the expected processing trajectory to perform engraving and milling processing.
[0124] Processing: From the upper layer to the lower layer, the robot runs each moving path point one by one to complete the plane processing.
[0125] (2) Rotating body processing
[0126] Determine the rotation axis: The rotation axis is generally perpendicular to the plane of the robot's sixth axis (i.e. the end of the robotic arm).
[0127] Layering: Same as (1), except that the planes of each layer are perpendicular to the axis of rotation.
[0128] Determine the path points: extract the contours of each layer of the two-dimensional plane graphics, which is the processing path, and discretize this path to obtain path points one by one.
[0129] The robot posture is fixed: the plane of the robot's sixth axis (i.e. the end of the robot arm) is parallel to the platform plane, that is, the rotary axis and the plane are perpendicular to the platform plane, and the Z axis in the figure is vertically downward. The robot's XOZ plane coincides with the processing tool.
[0130] Coordinate system transformation: Same as (1).
[0131] Processing: In each layer, the robot's sixth axis rotates back and forth (around the Z axis) and translates along the X axis, running through the path points in each layer one by one. Processing is done layer by layer from the upper layer to the lower layer. After completing one layer, the robot moves forward along the Z axis to switch from the previous layer to the next layer.
[0132] (3) Sharp point removal
[0133] In traditional processing methods, three-dimensional processing of sharp points is generally difficult. This is because the end of the robot is connected to the spindle, and the length of the spindle plus the tool will limit the robot's spatial movement range, causing mechanical limitations. The reverse processing method of using a robot to clamp the workpiece and fix the spindle can effectively reduce the length of the robot's end, expand the robot's movable range, and improve the robot's processing flexibility.
[0134] First determine the position of the workpiece tip.
[0135] Align the sharp point with the cutting tool tip. The robot performs a quarter-circle rotation around the point as shown in the figure.
[0136] After completion, the sixth axis of the robot end rotates 90° and performs a quarter-circle rotation around the point as shown in the figure.
[0137] Repeat the above steps four times to ensure that the 360° carving and milling of the sharp point are completed.
[0138] The sharp points processed by traditional processing methods often produce strip-shaped cutting marks, and cannot guarantee that all directions of the sharp points can be effectively processed. The sharp point removal of this method can ensure the integrity of the surface at the sharp point, ensure that all directions of the sharp point can be processed by the processing tool, and give full play to the advantages of robot processing.
[0139] (4) Side wall processing
[0140] Side wall processing is not to use the tool tip to engrave and mill the blank of the craft, but to use the side of the processing tool to engrave and mill the blank. This processing method can achieve better processing results for the convex surface of the craft. When using ordinary processing methods, the same surface is engraved and milled by multiple paths, and the slight errors between the paths will affect the flatness of the surface. However, there is only one path for engraving and milling the blank using the side of the processing tool, and there is no error problem between the paths, and the flatness of the processed surface is greatly increased.
[0141] First determine the surface that requires sidewall machining.
[0142] Define the coordinate system: The positive direction of the Z axis is perpendicular to the processing plane and outward.
[0143] Robot processing posture: The workpiece processing surface is parallel to the processing tool, that is, the processing tool should be parallel to the XOY plane.
[0144] Calculate the projection path: project the blank and the final model on the XOZ plane, subtract the two-dimensional projection plane figure of each layer of the blank from the two-dimensional projection plane figure of the final model. The obtained two-dimensional plane figure is the part that needs to be engraved and milled. The contour of this part is the engraving and milling path, and this path is discretized to obtain path points one by one.
[0145] Coordinate system conversion and processing: Same as (1) plane processing.
[0146] (5) General surface processing
[0147] General machining of surfaces without special features.
[0148] The overall model is analyzed by the host computer, and the overall model is decomposed into multiple surfaces, and each surface is decomposed into many closely spaced points. The host computer calculates the tangent plane passing through the point of the model, and through the control of the robot posture, it is ensured that the milling cutter is always perpendicular to the tangent plane when passing through the point for carving and milling, and traverses each point one by one in sequence to complete the carving and milling on the surface.
[0149] Although the present invention has been described according to a limited number of embodiments, it will be apparent to those skilled in the art, with the benefit of the above description, that other embodiments are contemplated within the scope of the invention thus described. The disclosure of the present invention is intended to be illustrative rather than restrictive of the scope of the invention, which is defined by the appended claims.
Claims
1. A robot three-dimensional engraving and milling system based on CAM software, characterized in that: It includes material feeding parts, processing parts and host computer; among them, The material taking and feeding component comprises a milling robot (4-1) and a robot controller (2-2); a clamping flange (4-2) is installed on the swing component at the end of the mechanical arm of the milling robot (4-1), the clamping flange (4-2) is connected to a clamping cylinder (4-3), and the clamping cylinder (4-3) is installed with a clamping claw (4-4); the milling robot (4-1) is connected to the robot controller (2-2) and communicates with each other in real time; the processing component comprises a rough processing module, a fine processing module and an electrical control module; the rough processing module comprises a rough processing spindle bracket (5-1), the rough processing spindle bracket (5-1) is connected to a rough processing spindle mounting member (5-2), and the rough processing spindle The mounting member (5-2) clamps a roughing spindle (5-3), the roughing spindle (5-3) is installed with a roughing milling cutter (5-4), and the roughing spindle (5-3) is connected to the electrical control module; the finishing module comprises a finishing spindle bracket (6-1), the finishing spindle bracket (6-1) is connected with a finishing spindle mounting member (6-2), the finishing spindle mounting member (6-2) clamps a finishing spindle (6-3), the finishing spindle (6-3) is installed with a finishing milling cutter (6-4), and the finishing spindle (6-3) is connected to the electrical control module; the electrical control module is connected to the robot controller (2-2) and communicates in real time; The host computer is connected to the robot controller (2-2) and communicates with it in real time, and is used to control the material feeding component and the processing component to cooperate to complete the engraving and milling operation on the workpiece to be processed through an engraving and milling process designed based on CAM software; The system further comprises a milling system frame (1), which is a rectangular parallelepiped frame and is divided into an upper and lower part. A profile connecting plate is installed between the upper and lower parts. A platform mounting plate is laid on the profile connecting plate. The upper part of the platform mounting plate is divided into two left and right areas, one area is used to place the milling robot (4-1), and the other area is used to place the rough processing module and the fine processing module in parallel. The lower part of the profile connecting plate is divided into two left and right areas, one area is used to place the robot controller (2-2), and the other area is used to place the electrical control module. A workpiece storage module is installed on the side of the upper part of the engraving and milling system frame (1) parallel to the engraving and milling robot (4-1), and the workpiece storage module includes a plurality of storage places and photoelectric sensors installed above the storage places, each of which is connected to the electrical control module; The electrical control module comprises a button mounting plate (3-2) and an electrical control mounting plate (3-1) which are connected to each other; a start button (3-3), a stop button (3-4) and an emergency stop button (3-5) are mounted on the button mounting plate (3-2); and a PLC and an electrical control circuit are arranged on the electrical control mounting plate (3-1); A bottom mounting plate (2-1) is laid below the robot controller (2-2); the two ends of the electric control mounting plate (3-1) are bent, and mounting through holes are provided at the bent positions; the through holes at the bottom of the electric control mounting plate (3-1) are connected and mounted to the bottom mounting plate (2-1) by bolts, and the through holes at the top of the electric control mounting plate (3-1) are installed to the bottom of the profile connecting plate by profile clips; the left side and the top of the button mounting plate (3-2) are bent, and mounting through holes are provided at the bent positions; the through holes at the left side of the button mounting plate (3-2) are connected and mounted to the electric control mounting plate (3-1) by bolts, and the through holes at the top of the button mounting plate (3-2) are installed to the bottom of the profile connecting plate by profile clips; The workpiece storage module comprises a first material picking piece (7-1-1), a second material picking piece (7-1-2) and a third material picking piece (7-1-3); the first material picking piece (7-1-1), the second material picking piece (7-1-2) and the third material picking piece (7-1-3) are provided with mounting through holes above and below; the mounting through holes above and below the first material picking piece (7-1-1), the second material picking piece (7-1-2) and the third material picking piece (7-1-3) are mounted on the engraving and milling system frame (1) through profile fasteners; the first material picking piece (7-1-1), the second material picking piece (7-1-2) ) and the third material picking member (7-1-3) are respectively installed with a first material picking sensor (7-2-1), a second material picking sensor (7-2-2) and a third material picking sensor (7-2-3); the first material picking sensor (7-2-1), the second material picking sensor (7-2-2) and the third material picking sensor (7-2-3) are powered by an electrical control circuit on the electrical control installation board (3-1) and provide sensing signals therefor; the first material picking sensor (7-2-1), the second material picking sensor (7-2-2) and the third material picking sensor (7-2-3) are photoelectric sensors; The three-dimensional engraving and milling method of the robot three-dimensional engraving and milling system based on CAM software includes the following steps: Step 1: Get the material The upper computer sends a material fetching instruction to the robot controller, and the robot controller sends an instruction to obtain the material fetching position to the PLC. The PLC determines the storage position of the blank according to the signal sent by the received photoelectric sensor, and sends the storage position to the robot controller, and the robot controller forwards the storage position to the engraving and milling robot; the upper gripper of the engraving and milling robot opens and goes to the storage position. After reaching the storage position, the gripper grabs the blank and returns to the starting position; Step 2: Rough machining The host computer sends a rough machining instruction including a machining path to the robot controller, and the robot controller sends a rough machining start instruction to the PLC. The PLC controls to connect the rough machining spindle power supply line and disconnect the fine machining spindle power supply line, and sets the rough machining speed parameter to start the rough machining spindle. The robot controller controls the engraving and milling robot to perform rough processing on the blank according to the processing path; The robot controller sends a stop rough machining command to the PLC, and the PLC controls the rough machining spindle to stop; at the same time, the robot controller controls the engraving and milling robot to return to the starting position; Step 3: Finishing The host computer sends a finishing instruction including a machining path to the robot controller, and the robot controller sends a finishing start instruction to the PLC. The PLC controls to connect the finishing spindle power supply line and disconnect the roughing spindle power supply line, and sets the finishing speed parameter to start the finishing spindle. The robot controller controls the engraving and milling robot to perform fine processing on the blank according to the processing path; The robot controller sends a stop finishing instruction to the PLC, and the PLC controls the finishing spindle to stop; at the same time, the robot controller controls the engraving and milling robot to return to the starting position; Step 4: Discharging The upper computer sends a material discharge instruction to the robot controller, and the robot controller sends an instruction to obtain the material discharge position to the PLC. The PLC determines the free storage position according to the signal sent by the received photoelectric sensor, and sends the storage position to the robot controller, and the robot controller forwards the storage position to the engraving and milling robot; the engraving and milling robot goes to the storage position, and after arriving at the storage position, the clamping jaw opens to return the processed workpiece and returns to the starting position; The machining path in rough machining or fine machining is designed and generated by CAM software in the host computer, and the generation steps include: Generating a corresponding roughing coordinate system and a finishing coordinate system based on input tool data, wherein the tool data includes a milling cutter length and a diameter; Based on the coordinate relationship between the motion coordinate system of the engraving and milling robot and the machining coordinate system, the coordinate position of the bottom end of the blank clamped by the engraving and milling robot is calculated according to the tool setting requirements and tool data, thereby generating the blank to be processed and its coordinates; Selecting and creating a tool path based on an existing path setting, wherein the path setting includes selecting and setting a boundary, a style, a cutting direction, and a tolerance, thereby generating a machining path; The machining path in rough machining or fine machining is designed and generated by CAM software in the host computer, and the generation steps include: (1) Plane processing Layering: For the step depth given by the user, the upper computer algorithm decomposes the blank and the final model into multiple layers of two-dimensional planes according to the step depth; Comparison: Compare the blank of each layer in the multi-layer 2D plane with the final model. Subtract the 2D plane figures of each layer of the final model from the 2D plane figures of each layer of the blank. The obtained 2D plane figures of each layer are the parts where the blank exceeds the final model, that is, the parts that need to be engraved and milled. Converting plane graphics into path points: For a cutting depth given by the user, the contour of the obtained two-dimensional plane graphics is offset according to the cutting depth to obtain the engraving and milling path of each layer, and the path is discretized to obtain path points one by one; Coordinate system conversion: The definition of the engraving and milling path points obtained above is: take the center point of the processed plane as the origin, and establish a reference coordinate system perpendicular to the processing plane and outward as the positive direction of the Z axis. The relative coordinates of each engraving and milling path point in this reference coordinate system; The definition of the point obtained after the coordinate system conversion: take the robot basic coordinate system as the reference coordinate system, and the moving path point of the center point of the robot end; Robot posture determination: the surface to be processed is perpendicular to the tool, and the difference between the robot processing posture and the origin posture is minimized; (2) Rotating body processing Determine the rotation axis: The rotation axis is perpendicular to the sixth axis plane of the robot, that is, the plane of the end of the robot arm; Layering: For the step depth given by the user, the upper computer algorithm decomposes the blank and the final model into multiple layers of two-dimensional planes according to the step depth; each layer of plane is perpendicular to the rotary axis; Determine the path points: extract the contours of the two-dimensional plane graphics of each layer, which is the processing path, and discretize this path to obtain path points one by one; The robot posture is fixed: the robot's sixth axis plane is parallel to the platform plane, that is, the rotary axis plane is perpendicular to the platform plane; (3) Side wall processing Identify the surfaces that require sidewall machining; Define the coordinate system: Take the center point of the processed plane as the origin and the direction perpendicular to the processing plane outward as the positive direction of the Z axis to establish a reference coordinate system; Robot processing posture: the workpiece processing surface is parallel to the processing tool; Calculate the projection path: Project the blank and the final model on the XOZ plane, subtract the two-dimensional projection plane figure of the final model from the two-dimensional projection plane figure of each layer of the blank, and the obtained two-dimensional plane figure is the part to be engraved and milled. The contour of this part is the engraving and milling path, and this path is discretized to obtain path points one by one; (4) General surface processing The overall model is analyzed by the host computer, decomposed into multiple surfaces, and each surface is decomposed into many closely spaced points. The host computer calculates the cutting plane passing through the point of the model, and controls the robot's posture so that the milling cutter is always perpendicular to the cutting plane when passing through the point for carving and milling.
