Full-automatic nesting method, system, medium and equipment
By receiving nesting tasks from the central control system, downloading the GEN file and generating nesting information, and transmitting it in JSON message format, the problem of existing nesting software being unable to send and receive information in real time is solved. This achieves highly efficient, safe, and low-cost fully automated nesting operations, making it suitable for CNC equipment in smart factories.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- WUHAN FARLEY PLASMA CUTTING SYS CO LTD
- Filing Date
- 2025-11-27
- Publication Date
- 2026-04-28
AI Technical Summary
Existing nesting software cannot receive nesting tasks and output nesting information in real time, resulting in high costs, long downtime, and low security.
A fully automated nesting method is provided. The method receives nesting tasks from the central control system, downloads the GEN file from the FTP server to generate nesting information, and uploads the information to the FTP server and the central control system. Data transmission is performed in JSON message format. The nesting system is developed using MFC.
It enables real-time reception of task information and transmission of nesting data, supports fully automated nesting of various parts and multiple sheets of sheet metal, saves costs, reduces downtime, improves safety, and is suitable for advanced CNC equipment.
Smart Images

Figure CN121936702A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of sheet metal production process control technology, and in particular to a fully automated nesting method, system, medium and equipment based on MFC. Background Technology
[0002] Currently, factories are becoming increasingly intelligent, with smart unmanned workshops and automated nesting systems. This necessitates that nesting software communicate with a central control system. Therefore, the nesting software needs to support real-time information reception, ensuring both the security of offline nesting software and the ability of fully automated nesting software to send and receive messages with the central control system. Currently, most nesting software is offline programming software. However, offline programming software cannot receive nesting tasks and output nesting information in real time, resulting in higher costs, longer downtime, and lower security. Summary of the Invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art, and proposes a fully automated nesting method, system, medium and equipment.
[0004] In a first aspect, embodiments of the present invention provide a fully automated nesting method, comprising the following steps:
[0005] S100: Receive nesting tasks from the central control system;
[0006] S200. According to the nesting task, download the GEN file from the FTP server and generate nesting information based on the GEN file;
[0007] S300 uploads nesting information to the FTP server and sends it to the central control system.
[0008] Furthermore, the nesting task includes task number, task name, work order number, material code, GEN file address, and GEN code.
[0009] Furthermore, the nesting tasks issued by the central control system are in the form of JSON messages.
[0010] Furthermore, after downloading the GEN file, automatic alignment and edge sharing operations are performed.
[0011] Furthermore, the nesting information includes sheet or part information, GEN file name, utilization rate, whole sheet DXF file, and nesting DXF file.
[0012] Furthermore, the nesting information is sent to the central control system in the form of a JSON message using the HTTP protocol.
[0013] Secondly, embodiments of the present invention provide a fully automated nesting system, comprising:
[0014] The data processing module is used to receive and parse the nesting tasks issued by the central control system.
[0015] The data synchronization module is used to download the GEN file from the FTP server according to the nesting task, and generate nesting information according to the GEN file;
[0016] The file upload module is used to upload nesting information to the FTP server and send it to the central control system.
[0017] Furthermore, the fully automated nesting system is developed and implemented based on MFC.
[0018] Thirdly, embodiments of the present invention provide an electronic device, including:
[0019] One or more processors;
[0020] Memory, used to store one or more programs;
[0021] When the one or more programs are executed by the one or more processors, the one or more processors perform the method as described above.
[0022] Fourthly, embodiments of the present invention provide a computer-readable medium storing a computer program, which, when executed by a processor, implements the steps of the method described above.
[0023] The fully automated nesting method, system, medium, and equipment provided by this invention receive nesting tasks from a central control system; download a GEN file from an FTP server according to the nesting task, and generate nesting information based on the GEN file; upload the nesting information to the FTP server and send it to the central control system; it can support real-time reception of task information and transmission of nesting data, support multiple parts and multiple sheets of sheet metal, and fully automatically coordinate nesting, thereby saving costs, reducing downtime, ensuring high safety, and being applicable to various advanced CNC equipment. Attached Figure Description
[0024] Figure 1 A flowchart illustrating a fully automated nesting method provided in an embodiment of the present invention;
[0025] Figure 2 This is an overall flowchart of a fully automated nesting method provided in an embodiment of the present invention;
[0026] Figure 3 A structural block diagram of a fully automated nesting system provided in an embodiment of the present invention;
[0027] Figure 4The interface of the fully automated nesting system provided in this embodiment of the invention is a nesting management software developed based on MFC.
[0028] Figure 5 The main interface of the nesting management software provided in this embodiment of the invention after importing GEN;
[0029] Figure 6 The main interface of the nesting management software provided in this embodiment of the invention after importing GEN and aligning common edges;
[0030] Figure 7 The interface of the HTTP listening module pop-up window in the nesting management software provided in this embodiment of the invention;
[0031] Figure 8 The interface of the FTP module pop-up window in the nesting management software provided in this embodiment of the invention;
[0032] Figure 9 The interface of the nesting management software provided in this embodiment of the invention is the toolbar for the output nesting information module.
[0033] Figure 10 This is a folder that outputs nesting information for embodiments of the present invention;
[0034] Figure 11 This is another folder that outputs nesting information for embodiments of the present invention;
[0035] Figure 12 This is a structural block diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0036] To enable those skilled in the art to better understand the technical solutions of the present invention, exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to aid understanding. These should be considered merely exemplary. Therefore, those skilled in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.
[0037] Where there is no conflict, the various embodiments of the present invention and the features thereof may be combined with each other.
[0038] As used herein, the term “and / or” includes any and all combinations of one or more related enumerated entries.
[0039] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used herein, the singular forms “a” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that when the terms “comprising” and / or “made of” are used in this specification, the presence of the stated feature, integral, step, operation, element, and / or component is specified, but the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof is not excluded. Terms such as “connected” or “linked” are not limited to physical or mechanical connections but can include electrical connections, whether direct or indirect.
[0040] Unless otherwise specified, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having the meaning consistent with their meaning in the context of the relevant art and the invention, and will not be interpreted as having an idealized or overly formal meaning unless expressly so defined herein.
[0041] This invention provides a fully automated nesting method. Figure 1 This is a flowchart illustrating a fully automated nesting method provided in an embodiment of the present invention. Figure 2 The present invention provides an overall flowchart of a fully automated nesting method, which includes the following steps: S100, receiving a nesting task issued by the central control system; S200, downloading a GEN file from an FTP server according to the nesting task, and generating nesting information according to the GEN file; S300, uploading the nesting information to the FTP server and sending it to the central control system.
[0042] Specifically, the nesting task includes task number, task name, work order number, material code, GEN file address, and GEN code.
[0043] In one embodiment, the nesting task issued by the central control system is in the form of a JSON message.
[0044] In one embodiment, after downloading the GEN file, an automatic convergence and automatic edge-sharing operation is also performed.
[0045] Specifically, the nesting information includes sheet or part information, GEN file name, utilization rate, whole sheet DXF file, and nesting DXF file.
[0046] Specifically, the nesting information is sent to the central control system in the form of a JSON message using the HTTP protocol.
[0047] The following exemplary embodiment illustrates the working process of a fully automated nesting method of the present invention: After the automated factory issues a task, it downloads the GEN file from the FTP server according to the file address provided in the JSON task and imports it into the nesting software. The GEN file is then assigned to the part or sheet metal. After importing the GEN file, the nesting software generates nesting information including the cutting NC program, the JSON file required by the sorting system, the nesting diagram DXF, the DXF file of a single part, the part information JSON of a single part, and the GEN file required for the inkjet printer. After generating the nesting information, it uploads the nesting information to a specified folder on the FTP server and sends the nesting information JSON to the central controller via HTTP protocol. Upon receiving the information, the central controller obtains the corresponding information and sends the address JSON information containing the NC program to the cutting machine interface. Upon receiving the address, the cutting machine interface downloads the NC program from the FTP server to its local device, imports it into the CNC machine tool, and performs cutting, thus achieving fully automated part cutting.
[0048] This invention receives nesting tasks from a central control system; downloads a GEN file from an FTP server based on the nesting task, and generates nesting information based on the GEN file; uploads the nesting information to the FTP server and sends it to the central control system; it can support real-time reception of task information and transmission of nesting data, supports multiple parts and multiple sheets of sheet metal, and fully automatically coordinates nesting, thereby saving costs, reducing downtime, ensuring high safety, and being applicable to various advanced CNC equipment.
[0049] The present invention also provides a fully automated nesting system. Figure 3 A structural block diagram of a fully automated nesting system provided in an embodiment of the present invention is shown. The system includes:
[0050] Data processing module 11 is used to receive and parse the nesting task issued by the central control system;
[0051] The data synchronization module 12 is used to download the GEN file from the FTP server according to the nesting task, and generate nesting information according to the GEN file;
[0052] The file upload module 13 is used to upload nesting information to the FTP server and send it to the central control system.
[0053] Specifically, the data processing module primarily collects task information sent from the central control system to the automated nesting software, such as task number, task name, work order number, material code, GEN file address, and GEN code, and performs direct parsing. The data synchronization module downloads the corresponding GEN file from the FTP server. The GEN files are placed in the fields of the JSON messages sent by the central control system, and then imports the GEN files into the automated nesting software. The file upload module uploads all nesting information generated by the automated nesting software to the FTP server and sends nesting statistics information in JSON format to the specific interface provided by the central control system.
[0054] To implement the solution disclosed herein, several prerequisites are required: a computer with internet access; the intelligent factory central controller distributing tasks in JSON message format; the nesting software processing JSON data, then automatically downloading the corresponding GEN file based on the address, automatically aligning and sharing edges, and then outputting nesting information; after outputting the nesting information, directly uploading the file to the FTP server and sending the nesting JSON message; and an FTP server (which can retrieve and upload files).
[0055] In one embodiment, the fully automated nesting system is developed and implemented based on MFC. The fully automated nesting system of this embodiment adopts the MFC framework and is coded in C++. The MFC framework encapsulates the Windows API, eliminating the need to directly call the underlying Win32 API, thus providing a more efficient and object-oriented way to develop Windows applications.
[0056] Figure 4 The fully automated nesting system provided in this embodiment of the invention is based on the nesting management software developed using MFC. When an HTTP link is clicked, a listening port is activated. The central controller sends information from this listening port, which the nesting management software receives and displays in real-time on the interface. The main interface consists of five parts:
[0057] 1. Project: Includes the function area for importing GEN files.
[0058] 2. Main Interface: Figure 5 The main interface of the nesting management software provided in this embodiment of the invention after importing GEN. Figure 6 The main interface of the nesting management software provided in this embodiment of the invention, after importing the GEN and aligning the edges, mainly includes a material position area, a control bar area, and a G-code generation area. The main interface serves primarily as a display interface and handles automatic alignment and edge sharing.
[0059] 3. HTTP Listening Module: Figure 7The interface of the HTTP listening module pop-up window in the nesting management software provided in this embodiment of the invention.
[0060] 4. FTP module: Figure 8 The nesting management software provided in this embodiment of the invention opens the FTP module pop-up window interface, which mainly connects to the FTP server, downloads the file to the local machine according to the GEN file address in the JSON message sent by the central control, imports the GEN file, outputs the nesting information, uploads the nesting information to the server, and sends the nesting information JSON to the central control in the form of a message.
[0061] 5. Output nesting information module: Figure 9 The nesting management software provided in this embodiment of the invention opens the interface of the output nesting information module toolbar, and after automatically importing the GEN file, outputs the nesting information. Figure 10 This is a folder containing nesting information output for embodiments of the present invention. Figure 11 This is another folder for outputting nesting information in the embodiments of the present invention. The nesting information includes various information about sheet metal parts, GEN file names, utilization rate, whole sheet DXF, nesting DXF files, etc.
[0062] This invention also provides an electronic device. Figure 12 This is a structural block diagram of an electronic device provided in an embodiment of the present invention. Figure 12 As shown, an embodiment of the present invention provides an electronic device including: one or more processors 101, a memory 102, and one or more I / O interfaces 103. The memory 102 stores one or more programs, which, when executed by the one or more processors, enable the one or more processors to implement any of the fully automated nesting methods described in the above embodiments; the one or more I / O interfaces 103 are connected between the processors and the memory, configured to enable information interaction between the processors and the memory.
[0063] The processor 101 is a device with data processing capabilities, including but not limited to a central processing unit (CPU); the memory 102 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), and flash memory (FLASH); the I / O interface (read / write interface) 103 is connected between the processor 101 and the memory 102, and can realize information interaction between the processor 101 and the memory 102, including but not limited to a data bus (Bus).
[0064] In some embodiments, the processor 101, memory 102, and I / O interface 103 are interconnected via bus 104, and thus connected to other components of the computing device.
[0065] In some embodiments, the one or more processors 101 include a field-programmable gate array.
[0066] This invention also provides a computer-readable medium. The computer-readable medium stores a computer program, which, when executed by a processor, implements the steps of any of the fully automated nesting methods described in the above embodiments. The computer-readable storage medium can be volatile or non-volatile.
[0067] Those skilled in the art will understand that all or some of the steps, systems, and apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software can be distributed on a computer-readable storage medium, which may include computer storage media (or non-transitory media) and communication media (or transient media).
[0068] As is known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as computer-readable program instructions, data structures, program modules, or other data. Computer storage media includes, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), static random access memory (SRAM), flash memory or other memory technologies, portable compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, it is known to those skilled in the art that communication media typically contain computer-readable program instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0069] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.
[0070] The computer program instructions used to perform the operations of this invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing state information from the computer-readable program instructions. This electronic circuitry can execute the computer-readable program instructions to implement various aspects of the invention.
[0071] The computer program product described herein can be implemented specifically through hardware, software, or a combination thereof. In one alternative embodiment, the computer program product is specifically embodied in a computer storage medium; in another alternative embodiment, the computer program product is specifically embodied in a software product, such as a software development kit (SDK), etc.
[0072] Various aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.
[0073] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.
[0074] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.
[0075] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction, which contains one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0076] Example embodiments have been disclosed herein, and while specific terminology has been used, it is for illustrative purposes only and should be construed as such, and is not intended to be limiting. In some instances, it will be apparent to those skilled in the art that features, characteristics, and / or elements described in conjunction with particular embodiments may be used alone, or in combination with features, characteristics, and / or elements described in conjunction with other embodiments, unless otherwise expressly indicated. Therefore, those skilled in the art will understand that various changes in form and detail may be made without departing from the scope of the invention as set forth in the appended claims.
Claims
1. A fully automated nesting method, characterized in that, Includes the following steps: S100: Receive nesting tasks from the central control system; S200. According to the nesting task, download the GEN file from the FTP server and generate nesting information based on the GEN file; S300 uploads nesting information to the FTP server and sends it to the central control system.
2. The method according to claim 1, characterized in that, The nesting task includes task number, task name, work order number, material code, GEN file address, and GEN code.
3. The method according to claim 1, characterized in that, The nesting tasks issued by the central control system are in JSON message format.
4. The method according to claim 1, characterized in that, After downloading the GEN file, it also performs automatic alignment and automatic edge sharing operations.
5. The method according to claim 1, characterized in that, Nesting information includes sheet or part information, GEN file name, utilization rate, whole sheet DXF file, and nesting DXF file.
6. The method according to claim 1, characterized in that, The nesting information is sent to the central control system in the form of a JSON message using the HTTP protocol.
7. A fully automated nesting system, characterized in that, include: The data processing module is used to receive and parse the nesting tasks issued by the central control system. The data synchronization module is used to download the GEN file from the FTP server according to the nesting task, and generate nesting information according to the GEN file; The file upload module is used to upload nesting information to the FTP server and send it to the central control system.
8. The system according to claim 7, characterized in that, The fully automated nesting system is developed and implemented based on MFC.
9. An electronic device, characterized in that, include: One or more processors; Memory, used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1 to 6.
10. A computer-readable medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 6.