G code generation method for rubber extrusion of vehicle sunroof, electronic equipment and storage medium

By obtaining and optimizing the extrusion-related parameters through the configuration interface and generating G-code files, the problem of complex and time-consuming CNC machine programming is solved, and fast and efficient G-code generation and extrusion reliability are achieved.

CN120704732APending Publication Date: 2025-09-26TIANJIN ZAIDENGGAO SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510806088.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-17
Publication Date
2025-09-26

AI Technical Summary

Technical Problem

In the prior art, writing G-code programs for CNC machine tools is complex and time-consuming, increasing training costs and limiting work efficiency.

Method used

Obtain the extrusion-related parameters through the configuration interface, obtain the starting and ending point information of the extrusion line segment, determine the extrusion path, perform collision detection and optimization, and finally generate a G-code file.

Benefits of technology

It realizes the rapid generation of G-code files, reduces the generation cost, improves the reliability of glue extrusion and programming efficiency, and avoids the collision between the colloid extrusion head and the clamping jaws.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120704732A_ABST
    Figure CN120704732A_ABST
Patent Text Reader

Abstract

The invention discloses a G code generation method for rubber extrusion of a vehicle skylight, electronic equipment and a storage medium. The method comprises the following steps: obtaining configuration glue extrusion related parameters through a configuration interface; acquiring starting point information and terminal point information of the glue extrusion line segment; determining a glue extruding path according to the glue extruding line segment; collision detection is carried out according to the glue squeezing path and the clamping jaw position; optimizing the glue squeezing path according to a collision detection result; generating a track G code file according to the optimized glue squeezing path; and generating a parameter G code file according to the glue extrusion related parameters. The glue extrusion related parameters required for generating the G code file can be quickly obtained through the configuration interface, and the G code file can be quickly generated. In addition, collision detection is carried out according to the glue extrusion path and the clamping jaw position, the situation that the extrusion head of the glue body collides with the clamping jaw when the glue extrusion head extrudes the glue according to the glue extrusion path can be avoided, and the glue extrusion reliability is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automated numerical control technology, and in particular to a G-code generation method, electronic equipment, and storage medium for vehicle sunroof glue extrusion. Background Art

[0002] In the field of automobile manufacturing, especially in the production process of automobile sunroofs, the application of CNC machine tools is crucial to ensure the manufacturing of high-precision and high-quality parts.

[0003] However, CNC machine tools require G-code programming for control. Writing G-code programs for machining tasks is complex and time-consuming. G-code programming requires programmers to possess in-depth mechanical engineering knowledge and a detailed understanding of G-code syntax, which not only increases training costs but also limits CNC machine tool efficiency. Reducing the cost of G-code generation has become a pressing issue. Summary of the Invention

[0004] The present invention provides a G code generation method, electronic equipment and storage medium for vehicle sunroof glue extrusion, so as to solve the problem of high cost of G code generation.

[0005] According to one aspect of the present invention, a method for generating G-code for a vehicle sunroof extrusion process is provided, the method comprising:

[0006] Get the relevant parameters for configuring glue extrusion through the configuration interface;

[0007] Get the starting point and end point information of the extrusion line segment;

[0008] determining a glue extrusion path according to the glue extrusion line segment;

[0009] Performing collision detection according to the glue squeezing path and the position of the clamping jaws; optimizing the glue squeezing path according to the collision detection result;

[0010] Generate a trajectory G code file according to the optimized glue extrusion path; and generate a parameter G code file according to the glue extrusion related parameters.

[0011] According to another aspect of the present invention, a G-code generating device for vehicle sunroof glue extrusion is provided, the device comprising:

[0012] Related parameter configuration module, used to obtain and configure the relevant parameters of glue extrusion through the configuration interface;

[0013] The start and end point configuration module is used to obtain the start and end point information of the extrusion line segment;

[0014] A glue extrusion path determination module, configured to determine a glue extrusion path according to the glue extrusion line segment;

[0015] A collision detection module is used to perform collision detection based on the glue squeezing path and the position of the clamping jaws; and optimize the glue squeezing path according to the collision detection result;

[0016] The G code generation module is used to generate a trajectory G code file according to the optimized glue extrusion path; and generate a parameter G code file according to the glue extrusion related parameters.

[0017] According to another aspect of the present invention, an electronic device is provided, comprising:

[0018] at least one processor; and

[0019] a memory communicatively connected to the at least one processor; wherein,

[0020] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the G-code generation method for vehicle sunroof glue extrusion according to any embodiment of the present invention.

[0021] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the G-code generation method for vehicle sunroof glue extrusion according to any embodiment of the present invention when executed.

[0022] The technical solution of the embodiment of the present invention obtains and configures the extrusion-related parameters through the configuration interface; obtains the starting point information and the end point information of the extrusion line segment; determines the extrusion path according to the extrusion line segment; performs collision detection according to the extrusion path and the position of the clamp; optimizes the extrusion path according to the collision detection result; generates a trajectory G-code file according to the optimized extrusion path; and generates a parameter G-code file according to the extrusion-related parameters. Compared with the current situation where manual programming is required to generate G-code, the G-code generation cost is high and the generation efficiency is low, the technical solution provided by the present invention can quickly obtain the extrusion-related parameters required to generate the G-code file through the configuration interface, thereby realizing the rapid generation of the G-code file. In addition, collision detection based on the extrusion path and the position of the clamp can avoid the collision between the colloid extrusion head and the clamp when extruding according to the extrusion path, thereby improving the reliability of extrusion.

[0023] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0025] Figure 1 This is a flow chart of a method for generating G-code for vehicle sunroof glue extrusion provided by the first embodiment of the present invention;

[0026] Figure 2 is a schematic diagram of a fitting point configuration interface provided by the first embodiment of the present invention;

[0027] Figure 3 This is a schematic diagram of a workstation range configuration interface provided by Example 1 of the present invention;

[0028] Figure 4 This is a schematic diagram of a glue extrusion line segment configuration interface provided by the first embodiment of the present invention;

[0029] Figure 5 is a schematic diagram of an interpolation configuration interface provided by Example 1 of the present invention;

[0030] Figure 6 This is a schematic diagram of a configuration interface of a colloid extrusion head provided in Example 1 of the present invention;

[0031] Figure 7 This is a schematic diagram of a detailed speed configuration interface provided by the first embodiment of the present invention;

[0032] Figure 8 This is a schematic diagram of a zero bias configuration interface provided by the first embodiment of the present invention;

[0033] Figure 9 This is a schematic diagram of a gripper configuration interface provided by the first embodiment of the present invention;

[0034] Figure 10 This is a schematic diagram of a melt pump pressure configuration interface provided by the first embodiment of the present invention;

[0035] Figure 11 This is a schematic diagram of a safety distance configuration interface provided by the first embodiment of the present invention;

[0036] Figure 12 This is a schematic structural diagram of a G-code generating device for vehicle sunroof glue extrusion provided by a second embodiment of the present invention;

[0037] Figure 13 The present invention is a schematic structural diagram of an electronic device for implementing a G-code generation method for vehicle sunroof glue extrusion according to an embodiment of the present invention. DETAILED DESCRIPTION

[0038] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0039] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0040] In the technical solutions disclosed herein, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved comply with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0041] The relevant technical terms involved in this application include G code.

[0042] G-code (also known as RS-274) is a numerical control programming language primarily used to control automatic machine tools in computer-aided manufacturing. In this application, G-code is used to numerically control a colloid extruder, which extrudes adhesive onto a fabric along an extrusion path. The extruded fabric is then used for the sunroof of a licensed vehicle. This fabric can be used as a sunshade for the sunroof.

[0043] In the automotive manufacturing industry, especially in the production of sunroofs, the use of CNC machine tools is crucial for ensuring high-precision and high-quality parts. However, CNC machine tools require G-code programming for control. Writing G-code programs for machining tasks is complex and time-consuming. G-code programming requires programmers to have in-depth mechanical engineering knowledge and a detailed understanding of G-code syntax, which not only increases training costs but also limits the efficiency of CNC machine tools. Reducing the cost of G-code generation has become a pressing issue.

[0044] Example 1

[0045] Figure 1 This is a flow chart of a method for generating G codes for extruding glue for a vehicle sunroof provided by the first embodiment of the present invention. This embodiment is applicable to the case of controlling a colloid extrusion head to extrude glue on a fabric used for a licensed vehicle sunroof. This method can be executed by a G code generating device for extruding glue for a vehicle sunroof. The G code generating device for extruding glue for a vehicle sunroof can be implemented in the form of hardware and / or software, and the G code generating device for extruding glue for a vehicle sunroof can be configured in an electronic device. Figure 1 As shown, the method includes:

[0046] S110. Obtaining configuration parameters related to glue extrusion through a configuration interface.

[0047] You can set up configuration interfaces for different extrusion-related parameters. These parameters include: the starting and ending points of the extrusion line segment, the melt pump pressure, the speed of the extruder along the extrusion path, the number of fitting points, the interpolation points, the station range, the zero offset position, the gripper position, or a combination of one or more of the following:

[0048] Optionally, obtain the following parameters related to glue extrusion through the configuration interface:

[0049] The melt pump pressure for glue extrusion and the moving speed of the extrusion head on the glue extrusion path are configured through the configuration interface.

[0050] The above embodiment enables the user to quickly configure the parameters of the melt pump and the extrusion head through the configuration interface.

[0051] S120: Obtain the starting point information and the end point information of the glue extrusion line segment.

[0052] You can add three extrusion lines (L1, L2, and L3) according to the process file. When adding an extrusion line, enter the start and end points of the line. Optionally, the number of extrusion lines must be less than or equal to three. The start and end points are both 2D coordinates.

[0053] After adding a squeeze line segment, the positional relationship and coordinates of the three segments will be displayed on the main interface. If you add an error, you can delete it and add it again or re-edit the segment's start and end points. When a segment is selected, it will appear in red on the graphic display.

[0054] Optionally, S110, obtaining and configuring extrusion-related parameters through a configuration interface, may be implemented as follows: configuring a workstation range through the configuration interface.

[0055] Accordingly, S120, obtaining the starting point information and the end point information of the glue extrusion line segment, can be implemented as follows: obtaining the starting point information and the end point information of the glue extrusion line segment within the range of the workstation.

[0056] The working station range may be a range within which the colloid extrusion head can operate, or a range of motion of the extrusion head specified according to process requirements.

[0057] If the range is set incorrectly, the G-code generation is canceled to prevent the machine from running the wrong G-code file and causing a collision risk.

[0058] The above embodiment can realize configuration of the starting point and the end point of the glue extrusion line segment within the range of the workstation, thereby making the glue extrusion range within the range of the workstation, thereby improving the reliability of glue extrusion.

[0059] Optionally, obtain the following parameters related to glue extrusion through the configuration interface:

[0060] The number of clamps and the position of each clamp are configured within the workstation range through the configuration interface; the clamps are used to stretch and press the fabric, and the colloid extrusion head is used to extrude glue on the fabric according to the glue extrusion path.

[0061] The above embodiment can try to configure the position of each clamp through the configuration interface, and control the clamp position according to the workstation range so that the clamp position is evenly distributed within the workstation range. Try the quick configuration of the clamp by the male user through the configuration interface.

[0062] S130: Determine a glue extrusion path according to the glue extrusion line segment.

[0063] Optionally, determining the glue extrusion path according to the glue extrusion line segment can be implemented in the following manner:

[0064] The method comprises the following steps: obtaining the number of fitting points of the calculation line segment; initializing the fitting points in the extrusion line segment according to the number of fitting points; determining the updated coordinates of the fitting points in response to the user's dragging operation on the fitting points; and generating an extrusion path with an arc according to the updated coordinates.

[0065] Initialized fitting points are evenly distributed along the calculated line segment based on their number of fitting points. Users can move fitting points by dragging them, or directly set their position information (two-dimensional coordinates). When the position of any fitting point changes, the extrusion path is constructed based on the Bezier curve.

[0066] The above embodiment can provide users with a drag-and-drop interface after obtaining the number of fitting points. Users can adjust the position of the fitting points by dragging or setting the fitting point position information. When the fitting point position is adjusted, the glue extrusion path changes synchronously.

[0067] Optionally, determining the glue extrusion path according to the glue extrusion line segment further includes:

[0068] In response to the user's interpolation operation, an interpolation point is added to the glue squeezing path; and the glue squeezing path is updated according to the interpolation point.

[0069] The above embodiment can add interpolation points based on the fitting points according to user needs. After the user adds the interpolation points, the glue squeezing path is updated based on the Bezier curve according to the fitting points and the interpolation points.

[0070] S140 , performing collision detection according to the glue extrusion path and the clamping jaw position; and optimizing the glue extrusion path according to the collision detection result.

[0071] Because the glue material squeezed from the car sunroof will be stretched by the machine's grippers, the originally straight gluing path will become a curved line. Therefore, it is necessary to insert interpolation points on the line segment and adjust the original curvature of the line segment so that the line bends in the direction of the gripper's stretching. This ensures that the gluing path is a straight line when the gripper is released. You can right-click in the interpolation point list to insert an interpolation point (modify the interpolation point coordinates to adjust the curvature), or you can double-click directly on the line in the graphic to insert an interpolation point (drag the point with the left mouse button to adjust the curvature, with real-time coordinates displayed during the dragging process); when a coordinate point is selected, the corresponding point on the graphic display will turn green. If an interpolation point is no longer needed, it can be deleted and the graphic display refreshed.

[0072] Optionally, collision detection is performed based on the glue extrusion path and the position of the clamping jaws, which can be implemented as follows:

[0073] The safety distance is configured through the configuration interface; and collision detection is performed according to the glue squeezing path, the clamping jaw position and the safety distance.

[0074] The above implementation method can realize quick configuration of the user safety distance through the configuration interface, thereby controlling the precision of collision detection.

[0075] S150 , generating a trajectory G code file according to the optimized glue extrusion path; and generating a parameter G code file according to the glue extrusion related parameters.

[0076] If there is a risk of collision between line segments, there will be a collision detection prompt during the conversion process. The line segment plan can also be saved in .pt format. The saved .pt file can be directly opened for viewing or editing.

[0077] The technical solution of the embodiment of the present invention obtains and configures the extrusion-related parameters through the configuration interface; obtains the starting point information and the end point information of the extrusion line segment; determines the extrusion path according to the extrusion line segment; performs collision detection according to the extrusion path and the position of the clamp; optimizes the extrusion path according to the collision detection result; generates a trajectory G-code file according to the optimized extrusion path; and generates a parameter G-code file according to the extrusion-related parameters. Compared with the current situation where manual programming is required to generate G-code, the G-code generation cost is high and the generation efficiency is low, the technical solution provided by the present invention can quickly obtain the extrusion-related parameters required to generate the G-code file through the configuration interface, thereby realizing the rapid generation of the G-code file. In addition, collision detection based on the extrusion path and the position of the clamp can avoid the collision between the colloid extrusion head and the clamp when extruding according to the extrusion path, thereby improving the reliability of extrusion.

[0078] The technical solution provided by the embodiment of the present invention revolutionizes the traditional mode of CNC programming, realizing the automatic generation of G-code in a more intuitive and simplified way, thereby greatly improving programming efficiency. Specifically, the present invention aims to enable users to easily complete complex CNC programming tasks even without deep professional background knowledge through an easy-to-use graphical interface. Users can quickly define processing paths and parameters through simple drawing operations such as drawing lines and inserting points; then, the system will automatically convert these graphic instructions into precise G-code to ensure safety and ensure its efficient execution on CNC machine tools.

[0079] For illustrative purposes, the above embodiment is further described below through an example.

[0080] Step 1. Set the number of fitting points for calculating the arc based on the Bezier curve.

[0081] Figure 2 This is a diagram of the fitting point configuration interface. After setting the number of fitting points, you can set the same number of fitting points in the extrusion line segment. When the position of the fitting points changes, the extrusion line segment deforms, resulting in the extrusion path.

[0082] Step 2: Before adding line segments, set the workstation range required by the process drawing.

[0083] Figure 3 A diagram of the workstation range configuration interface. You can configure the length and width of the workstation using preset units such as millimeters (mm).

[0084] Step 3: Add three line segments L1, L2, and L3 according to the process drawing.

[0085] Figure 4This is a diagram of the squeeze segment configuration interface. You can configure the start and end points of each squeeze segment. These start and end points can be represented by XY coordinates. The red line in the diagram represents the currently configured squeeze segment.

[0086] Step 4. Select a line segment, add interpolation points and set the arc of the line segment as needed. You can insert multiple points and set the arc of multiple segments.

[0087] Figure 5 A diagram of the interpolation configuration interface. Figure 5 The blue rectangle represents the workstation range. The red line represents the currently interpolated extrusion path. In the interpolation configuration interface, the user can select a specific extrusion path (e.g., extrusion path L1). The line corresponding to extrusion path L1 will appear red. The remaining extrusion paths L2 and L3 appear black. In the interpolation configuration interface, the user can add interpolation points to extrusion path L1 to adjust the trajectory of extrusion path L1.

[0088] Step 5: Set the relevant process parameters of the colloid extruder according to requirements.

[0089] Figure 6 This is a diagram of the interface for configuring the extruder head. Extrusion-related parameters also include the head's XY axis movement speed, the rotation position for different extrusion paths, and the melt pump's reverse speed.

[0090] Step 6: Set the speed point table.

[0091] Figure 7 This is a diagram of the detailed speed configuration interface. Figure 7 Users can configure the extruder speed corresponding to any fitting point or interpolation point on any extrusion path. This allows users to control the speed of the extruder at different fitting points and interpolation points on the extrusion path, making it more intuitive and accurate to configure the extruder speed.

[0092] Step 7: Set the zero offset, which can also be set before adding the line segment.

[0093] Figure 8 The figure below is a diagram of the zero bias configuration interface. The zero bias indicates the starting position of the colloid extruder and is used to control the starting position of the colloid extrusion.

[0094] Step 8. Set the clamping jaw position according to the process drawing.

[0095] Figure 9 This is a diagram of the gripper configuration interface. For example, you can adjust the position, stretch rate, and width adjustment information for any of the pull and press grippers. This allows for precise control of gripper position and stretch rate.

[0096] Step 9: Set the melt pump pressure.

[0097] Figure 10 This is a diagram of the melt pump pressure configuration interface. By configuring the melt pump pressure, you can control the glue output per second of the extruder.

[0098] Step 10. Set a safe distance.

[0099] Figure 11 This is a diagram of the safety distance configuration interface. The safety distance can be set in both the x-axis and y-axis directions.

[0100] Step 11. Save the plan and generate a G-code file. The CNC executes this G-code file and the machine applies glue along the trajectory.

[0101] Example 2

[0102] Figure 12 This is a schematic diagram of the structure of a G-code generating device for extruding glue for a vehicle sunroof provided by the second embodiment of the present invention. This embodiment can be applied to the case of controlling the colloid extrusion head to extrude glue on the fabric used for the sunroof of a licensed vehicle. The G-code generating device for extruding glue for a vehicle sunroof can be implemented in the form of hardware and / or software, and the G-code generating device for extruding glue for a vehicle sunroof can be configured in an electronic device. Figure 12 As shown, the device includes: a relevant parameter configuration module 21, a start and end point configuration module 22, a glue extrusion path determination module 23, a collision detection module 24 and a G code generation module 25.

[0103] Related parameter configuration module 21, used to obtain and configure the relevant parameters of glue extrusion through the configuration interface;

[0104] The starting and ending point configuration module 22 is used to obtain the starting point information and the ending point information of the extrusion line segment;

[0105] A glue extrusion path determination module 23, configured to determine a glue extrusion path according to the glue extrusion line segment;

[0106] A collision detection module 24 is used to perform collision detection based on the glue squeezing path and the position of the clamping jaws; and optimize the glue squeezing path according to the collision detection result;

[0107] The G code generating module 25 is used to generate a trajectory G code file according to the optimized glue extrusion path; and generate a parameter G code file according to the glue extrusion related parameters.

[0108] Based on the above embodiment, optionally, the glue extrusion path determination module 23 is used to:

[0109] Get the number of fitting points of the calculated line segment;

[0110] Initializing fitting points in the extrusion line segment according to the number of fitting points;

[0111] In response to a user dragging operation on the fitting point, determining updated coordinates of the fitting point;

[0112] A glue squeezing path with an arc is generated according to the updated coordinates.

[0113] Based on the above embodiment, optionally, the glue squeezing path determination module 23 is further configured to add an interpolation point in the glue squeezing path in response to an interpolation operation by a user;

[0114] The glue extrusion path is updated according to the interpolation points.

[0115] Based on the above embodiment, optionally, the relevant parameter configuration module 21 is used to: configure the workstation range through the configuration interface;

[0116] Accordingly, the start and end point configuration module 22 is used to:

[0117] Within the workstation range, the starting point information and the end point information of the glue extrusion line segment are obtained.

[0118] Based on the above implementation, optionally, the relevant parameter configuration module 21 is further configured to:

[0119] The number of clamps and the position of each clamp are configured within the workstation range through the configuration interface; the clamps are used to stretch and press the fabric, and the colloid extrusion head is used to extrude glue on the fabric according to the glue extrusion path.

[0120] Based on the above implementation, optionally, the relevant parameter configuration module 21 is further configured to:

[0121] The melt pump pressure for glue extrusion and the moving speed of the extrusion head on the glue extrusion path are configured through the configuration interface.

[0122] Based on the above embodiment, optionally, the collision detection module 24 is used to:

[0123] Configure the safety distance through the configuration interface;

[0124] Collision detection is performed according to the glue squeezing path, the position of the clamping jaws and the safety distance.

[0125] The G-code generation device for a vehicle sunroof extrusion system according to an embodiment of the present invention comprises a parameter configuration module 21 for acquiring extrusion-related parameters through a configuration interface; a start and end point configuration module 22 for acquiring the starting and end point information of an extrusion line segment; an extrusion path determination module 23 for determining an extrusion path based on the extrusion line segment; a collision detection module 24 for performing collision detection based on the extrusion path and the position of the clamp; and optimizing the extrusion path based on the collision detection results. A G-code generation module 25 is configured to generate a trajectory G-code file based on the optimized extrusion path and generate a parameter G-code file based on the extrusion-related parameters. Compared to the current situation where manual programming is required to generate G-code, resulting in high G-code generation costs and low generation efficiency, the G-code generation device for a vehicle sunroof extrusion system provided by the present invention can quickly acquire the extrusion-related parameters required to generate a G-code file through a configuration interface, thereby enabling rapid generation of a G-code file. Furthermore, collision detection based on the extrusion path and the position of the clamp can prevent the extruder from colliding with the clamp when extruding along the extrusion path, thereby improving extrusion reliability.

[0126] The G-code generation device for vehicle sunroof glue extrusion provided by an embodiment of the present invention can execute the G-code generation method for vehicle sunroof glue extrusion provided by any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.

[0127] Example 3

[0128] Figure 13 1 is a structural diagram of an electronic device provided in Example 3 of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0129] like Figure 13As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., which is communicatively connected to the at least one processor 11. The memory stores a computer program that can be executed by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. Various programs and data required for the operation of the electronic device 10 can also be stored in the RAM 13. The processor 11, ROM 12, and RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0130] Multiple components in the electronic device 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0131] Processor 11 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any other suitable processor, controller, microcontroller, etc. Processor 11 executes the various methods and processes described above, such as the G-code generation method for vehicle sunroof glue extrusion.

[0132] In some embodiments, the G-code generation method for the vehicle sunroof glue extrusion can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the G-code generation method for the vehicle sunroof glue extrusion described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the G-code generation method for the vehicle sunroof glue extrusion by any other appropriate means (for example, by means of firmware).

[0133] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0134] The computer program for implementing the G-code generation method for vehicle sunroof glue extrusion of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when executed by the processor, the computer program implements the functions / operations specified in the flowcharts and / or block diagrams. The computer program can be executed entirely on the machine, partially on the machine, as a standalone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0135] Example 4

[0136] The fourth embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to cause a processor to execute a G-code generation method for vehicle sunroof glue extrusion, the method comprising:

[0137] Get the relevant parameters of glue extrusion through the configuration interface;

[0138] Get the starting point and end point information of the extrusion line segment;

[0139] determining a glue extrusion path according to the glue extrusion line segment;

[0140] Performing collision detection based on the glue squeezing path and the clamping jaw position; optimizing the glue squeezing path based on the collision detection result;

[0141] Generate trajectory G code file based on the optimized extrusion path;

[0142] Generate a parameter G code file according to the extrusion related parameters.

[0143] Based on the above embodiment, optionally, determining the glue extrusion path according to the glue extrusion line segment includes:

[0144] Get the number of fitting points of the calculated line segment;

[0145] Initializing fitting points in the extrusion line segment according to the number of fitting points;

[0146] In response to a user dragging operation on the fitting point, determining updated coordinates of the fitting point;

[0147] A glue squeezing path with an arc is generated according to the updated coordinates.

[0148] Based on the above embodiment, optionally, determining the glue extrusion path according to the glue extrusion line segment further includes:

[0149] In response to the user's interpolation operation, adding an interpolation point in the glue squeezing path;

[0150] The glue extrusion path is updated according to the interpolation points.

[0151] Based on the above implementation, optionally, the configuration interface is used to obtain the relevant parameters for configuring the glue extrusion, including:

[0152] Configure the workstation range through the configuration interface;

[0153] Accordingly, the starting point and end point information of the extrusion line segment are obtained, including:

[0154] Within the workstation range, the starting point information and the end point information of the glue extrusion line segment are obtained.

[0155] Based on the above implementation, optionally, obtaining and configuring the extrusion-related parameters through the configuration interface further includes:

[0156] The number of clamps and the position of each clamp are configured within the workstation range through the configuration interface; the clamps are used to stretch and press the fabric, and the colloid extrusion head is used to extrude glue on the fabric according to the glue extrusion path.

[0157] Based on the above implementation, optionally, obtaining and configuring the extrusion-related parameters through the configuration interface further includes:

[0158] The melt pump pressure for glue extrusion and the moving speed of the extrusion head on the glue extrusion path are configured through the configuration interface.

[0159] On the basis of the above embodiment, optionally, collision detection is performed according to the glue extrusion path and the position of the clamping jaws, including:

[0160] Configure the safety distance through the configuration interface;

[0161] Collision detection is performed according to the glue squeezing path, the position of the clamping jaws and the safety distance.

[0162] In the context of the present invention, computer-readable storage media can be tangible media that can contain or store a computer program for use with an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Computer-readable storage media can include but are not limited to electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, computer-readable storage media can be machine-readable signal media. More specific examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0163] To provide interaction with developers, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the developer; and a keyboard and pointing device (e.g., a mouse or trackball) through which the developer can provide input to the electronic device. Other types of devices can also be used to provide interaction with the developer; for example, the feedback provided to the developer can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and the input from the developer can be received in any form (including acoustic input, voice input, or tactile input).

[0164] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a developer computer with a graphical developer interface or a web browser through which a developer can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0165] A computing system may include clients and servers. The clients and servers are typically remote from each other and typically interact via a communication network. This client-server relationship arises through computer programs running on the respective computers, creating a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host. This server is a hosting product within the cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosting and VPS services.

[0166] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved. This is not limited herein.

[0167] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.

Claims

1. A G-code generation method for vehicle sunroof glue extrusion, characterized in that: include: Get the relevant parameters of glue extrusion through the configuration interface; Get the starting point and end point information of the extrusion line segment; determining a glue extrusion path according to the glue extrusion line segment; Performing collision detection according to the glue squeezing path and the gripper position; Optimizing the glue extrusion path according to the collision detection result; Generate trajectory G code file based on the optimized extrusion path; Generate a parameter G code file according to the extrusion related parameters.

2. The method according to claim 1, characterized in that Determining a glue extrusion path according to the glue extrusion line segment includes: Get the number of fitting points of the calculated line segment; Initializing fitting points in the extrusion line segment according to the number of fitting points; In response to a user dragging operation on the fitting point, determining updated coordinates of the fitting point; A glue squeezing path with an arc is generated according to the updated coordinates.

3. The method according to claim 2, characterized in that Determining the glue extrusion path according to the glue extrusion line segment also includes: In response to the user's interpolation operation, adding an interpolation point in the glue squeezing path; The glue extrusion path is updated according to the interpolation points.

4. The method according to claim 1, wherein Obtain the configuration parameters related to glue extrusion through the configuration interface, including: Configure the workstation range through the configuration interface; Accordingly, the starting point and end point information of the extrusion line segment are obtained, including: Within the workstation range, the starting point information and the end point information of the glue extrusion line segment are obtained.

5. The method according to claim 4, characterized in that Get the relevant parameters for configuring glue extrusion through the configuration interface, including: The number of clamps and the position of each clamp are configured within the workstation range through the configuration interface; the clamps are used to stretch and press the fabric, and the colloid extrusion head is used to extrude glue on the fabric according to the glue extrusion path.

6. The method according to claim 1, characterized in that Get the relevant parameters for configuring glue extrusion through the configuration interface, including: The melt pump pressure for glue extrusion and the moving speed of the extrusion head on the glue extrusion path are configured through the configuration interface.

7. The method according to claim 1, characterized in that Performing collision detection based on the glue extrusion path and the gripper position includes: Configure the safety distance through the configuration interface; Collision detection is performed according to the glue squeezing path, the position of the clamping jaws and the safety distance.

8. A G-code generating device for vehicle sunroof glue extrusion, characterized in that: include: Related parameter configuration module, used to obtain and configure the relevant parameters of glue extrusion through the configuration interface; The start and end point configuration module is used to obtain the start and end point information of the extrusion line segment; A glue extrusion path determination module, configured to determine a glue extrusion path according to the glue extrusion line segment; A collision detection module is used to perform collision detection based on the glue squeezing path and the position of the clamping jaws; and optimize the glue squeezing path according to the collision detection result; G code generation module, used to generate trajectory G code files according to the optimized extrusion path; Generate a parameter G code file according to the extrusion related parameters.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the G-code generation method for vehicle sunroof glue extrusion according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the G-code generation method for vehicle sunroof glue extrusion according to any one of claims 1 to 7 when executed.