CNC machine production management system based on LORA communication
By networking IoT nodes and a central node based on LoRa communication, the problems of chaotic data communication and wiring in CNC machine tool operating systems are solved. This enables real-time monitoring of CNC machine production status and efficient task assignment, improving production management efficiency and on-site cleanliness, and supporting the digital transformation of the factory.
Patent Information
- Application Number
- CN202511058116.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-30
- Publication Date
- 2025-11-07
AI Technical Summary
Existing CNC machine tool operating systems do not support data communication control and IoT interfaces, making it difficult to meet the needs of factory intelligence and real-time status monitoring, and the wiring is messy.
By networking IoT nodes based on LoRa communication with the central node, real-time monitoring of CNC machine production status and efficient task distribution are achieved. The IoT nodes, consisting of MCU, display module, signal input module and LoRa communication module, combined with the central node, data server and information screen, realize real-time data transmission and display.
It enables real-time monitoring of CNC machine status and output without manual inspection, simplifies the task assignment process, avoids messy wiring, improves production management efficiency and site cleanliness, and supports the digital transformation of the factory.
Smart Images

Figure CN120909236A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of CNC machine production management, and particularly relates to a CNC machine production management system based on LORA communication. BACKGROUND
[0002] A CNC machine tool reads and executes a pre-programmed machining program through a computer system to control the movement of a tool, the speed of a spindle, the amount of feed, and other parameters, thereby automatically completing machining operations such as cutting, drilling, milling, and turning on a workpiece. Compared with a traditional machine tool, the CNC machine tool is free from the limitations of manual operation and achieves high-precision and high-efficiency automated production. The CNC machine tool uses digital control to control machining errors to the micron level, meeting the demand for precision parts in the fields of aerospace, automobile manufacturing, and electronic equipment. The same program can be repeatedly executed to ensure that the dimensions and shapes of parts produced in batches are completely consistent and to avoid random errors caused by manual operation. After one clamping, multiple processes can be completed without the need for frequent manual adjustment of tools or measurement of dimensions, thereby shortening the production cycle. The CNC machine tool can adapt to the machining needs of different parts by modifying the machining program without the need to adjust the mechanical structure, which is suitable for multi-variety and small-batch production scenarios.
[0003] However, most of the operating systems of CNC machine tools do not support data communication control or Internet of Things interfaces, making it difficult to meet the urgent needs of factories for intelligentization and real-time state detection.
[0004] Patent No. CN115079653A discloses an intelligent factory management system based on LoRa wireless communication technology, which includes two parts: an Internet of Things lower computer data monitoring system and a management system client. The Internet of Things lower computer data monitoring system uses an external sensor and a controller to realize real-time acquisition and transmission of working data of each machine in the factory and safe running conditions of the workshop, and preliminarily judges faults to complete fault warning and emergency shutdown processing. The management system client displays the working state of each machine and the workshop conditions in a graphical manner to the user through the management software on the PC, and the user can control the lower computer through the client software. There is still room for improvement in the application of CNC machine production management and the solution to the problem of chaotic wiring. SUMMARY
[0005] The application aims to provide a CNC machine production management system based on LORA communication, which realizes real-time monitoring of the production state of the CNC machine, efficient distribution of tasks, and simplification of production site management, and avoids chaotic phenomena caused by redundant wiring.
[0006] To achieve the above-mentioned purpose, the application provides the following technical solution: a CNC machine production management system based on LORA communication, comprising
[0007] A plurality of Internet of Things nodes, each corresponding to a CNC machine, the Internet of Things nodes comprising: an MCU for general task processing, a display module for displaying task information, a signal input module for collecting CNC machine cycle signals, a LORA communication module for wireless communication with a central node, and an input module for input operation;
[0008] A central node for LORA networking communication with the plurality of Internet of Things nodes, receiving and sending task information, and polling task information of each Internet of Things node at regular intervals;
[0009] A data server for storing and processing data, communicating with the central node, receiving production status data of the Internet of Things nodes, and uploading data to a production management system or displaying data to an information large screen;
[0010] An information large screen for displaying production information of each CNC machine;
[0011] A device control webpage for obtaining CNC machine production tasks through a production management system and issuing tasks to each Internet of Things node.
[0012] As a preferred technical solution of the present application, the signal input module comprises three wires, namely a power supply wire, a signal wire, and a ground wire, wherein the power supply wire is used to power the entire Internet of Things node, and the signal wire is used to collect CNC device cycle signals.
[0013] As a preferred technical solution of the present application, the input module comprises a key input or a touch input.
[0014] As a preferred technical solution of the present application, the communication distance of the LORA communication module is greater than or equal to 1 km, and the Internet of Things node uses a 5V voltage input.
[0015] As a preferred technical solution of the present application, the implementation method of receiving and sending task information is as follows:
[0016] When it is necessary to issue tasks to the Internet of Things nodes, an operator sends task information to the central node through the device control webpage, the central node receives the task information, encapsulates the task information into a data packet conforming to the LORA communication protocol according to the Internet of Things node ID corresponding to the task, and sends the data packet to the target Internet of Things node through the LORA module;
[0017] After the Internet of Things node receives the task information, it returns an acknowledgement data packet to the central node to indicate that the task information has been successfully received, the central node analyzes and verifies the received acknowledgement data packet, and if the reception is successful, records the task issuance state; if no acknowledgement is received or verification fails, the task information is re-sent.
[0018] As a preferred technical solution of the present application, the timing polling query implementation method is as follows: a timer is set inside the center node, and a polling mechanism is started according to a preset time interval; during the polling process, the center node sends a query instruction data packet to each Internet of Things node in turn, and the instruction contains the task information type of the query; after receiving the query instruction, the Internet of Things node encapsulates the corresponding task information into a data packet and returns it to the center node, and the center node analyzes, stores and updates the task information state of each node.
[0019] As a preferred technical solution of the present application, the task information type includes production state and yield data.
[0020] As a preferred technical solution of the present application, the data server is connected to the production management system through an API interface, encapsulates and transmits the processed production status data according to the interface requirements of the production management system, and realizes data synchronization and sharing.
[0021] Compared with the prior art, the present application has the following advantages:
[0022] Real-time monitoring of the state and yield of a single CNC machine and all CNC machines is realized without manual inspection, improving the production management efficiency and accuracy;
[0023] Tasks are issued to each CNC device through a device control webpage, without the need to print task sheets, simplifying the task issuing process and saving resources;
[0024] LORA wireless communication is adopted, avoiding the complex wiring problem caused by traditional wired communication, making the production site more tidy and orderly, and facilitating the management of the production site;
[0025] The system is designed in a modular manner, with clear module functions, facilitating installation, maintenance and expansion, and providing experience for the transformation of more intelligent factories;
[0026] Real-time transmission and processing of CNC machine production data are realized, which is convenient for production managers to timely grasp the production situation, optimize the process and perform remote management, and helps the digital transformation of factories. BRIEF DESCRIPTION OF DRAWINGS
[0027] Figure 1 is the overall design diagram of the present application;
[0028] Figure 2 is the functional block diagram of the present application. DETAILED DESCRIPTION
[0029] With reference to the accompanying drawings, the technical solutions in the embodiments of the present application will be described clearly and completely. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort belong to the scope of the present application.
[0030] Embodiment 1
[0031] Please refer to Figure 1 and Figure 2 , the first embodiment of the present application, which provides a CNC machine production management system based on LORA communication, comprising
[0032] a plurality of Internet of Things nodes, each Internet of Things node corresponding to a CNC machine, the Internet of Things node comprising: an MCU for general task processing, a display module for displaying task information, a signal input module for collecting CNC machine cycle signals, a LORA communication module for wireless communication with the center node, and an input module for operation input; the MCU selects STM32F103ZET6, which has strong general task processing capability, and is equipped with two UART interfaces for communication with the LORA module and the liquid crystal screen respectively; the display module uses a 7-inch or 9-inch liquid crystal screen, supports touch input, can display task information two-dimensional code and BMP format drawings, and is convenient for operators to check and set CNC tasks; the signal input module has three wires, which are power supply, signal and ground wire respectively; the power supply wire supplies power to the entire LORA node, and the signal wire is used to collect the cycle signals of the CNC equipment to monitor the working state and yield of the CNC machine; the LORA communication module uses LORA wireless communication technology, which is more convenient to install and deploy than wired communication, and does not need to be configured when compared with WIFI TCP / UDP, and does not have the problem of insufficient routing carrying capacity when there are too many devices; compared with zigbee, the communication distance is greater than or equal to 1 kilometer, which can meet the needs of complex factory environment; the input module includes key input such as reset button and touch input, which is convenient for operators to operate;
[0033] The center node communicates with the plurality of Internet of Things nodes through LORA networking, manually publishes task information to the nodes, and queries the task information of each node in a polling manner at regular intervals; the center node supports querying or reporting the task information of each node from the production system, and supports issuing and collecting task information to each node;
[0034] Data server, for controlling the center node to send and accept node information, and hosting node control system and large screen display service, its technical specifications are 2GHZx64 CPU, memory 16G+, running linux or windows operating system, accessing internal office network, running database and http service, CNC machine production status data source is uniformly transmitted to the data server through the center node, and then displayed on the information large screen, or uploaded to the production management system;
[0035] Information large screen, for displaying the production information of each CNC machine;
[0036] Device control webpage, for obtaining CNC machine production tasks through the production management system, and issuing tasks to each Internet of Things node.
[0037] In this embodiment, the implementation method of receiving and sending task information is as follows:
[0038] When it is necessary to issue a task to an Internet of Things node, an operator sends task information to the center node through the device control webpage, the center node receives the task information, encapsulates the task information into a data packet conforming to the LORA communication protocol according to the Internet of Things node ID corresponding to the task, and sends the data packet to the target Internet of Things node through the LORA module;
[0039] After receiving the task information, the Internet of Things node returns an acknowledgement data packet to the center node to indicate that the task information has been successfully received, the center node analyzes and verifies the received acknowledgement data packet, and if the reception is successful, records the task issuing state; if no acknowledgement is received or the verification fails, the task information is re-sent.
[0040] In this embodiment, the implementation method of the timing polling query is as follows: a timer is set in the center node, and a polling mechanism is started according to a preset time interval; in the polling process, the center node sends a query instruction data packet to each Internet of Things node in turn, and the instruction contains the type of task information to be queried; the type of task information includes production status and yield data; after receiving the query instruction, the Internet of Things node encapsulates the corresponding task information into a data packet and returns it to the center node, the center node analyzes, stores and updates the task information state of each node.
[0041] In this embodiment, the data server is connected to the production management system through an API interface, encapsulates and transmits the processed production status data according to the interface requirements of the production management system, and realizes the synchronization and sharing of data.
[0042] The working process is as follows:
[0043] The CNC machine production task is obtained through the production management system (u8), and the operator publishes the task to each Internet of Things node through the device control webpage, the task information including a task information two-dimensional code and a BMP format picture or drawing, which is displayed on the node display screen;
[0044] The operator sets the CNC task according to the task information displayed on the display screen;
[0045] During the production of the CNC machine, the production status data source is collected through a signal input module and transmitted to a data server through the LORA communication module of the center node;
[0046] The data server stores and processes the received data, displays the data on an information large screen for the production manager to view, and uploads the data to the production management system for production management and decision-making.
[0047] Embodiment 2
[0048] Please refer to Figure 1 and Figure 2 , which is the second embodiment of the present application, based on the previous embodiment, except that:
[0049] The specific implementation method of the center node:
[0050] LORA networking communication implementation
[0051] Hardware level: the center node is equipped with a LORA module, which is connected to the master control chip (such as STM32) of the center node through the UART interface to realize the receiving and transmitting of LORA wireless signals; the frequency band, transmission power and other parameters of the LORA module can be configured according to the factory environment to ensure that the communication distance is greater than or equal to 1 kilometer, meeting the wireless transmission demand in complex factory environment;
[0052] Networking protocol: adopt LORA star networking architecture, the center node as the network core, each Internet of Things node as the terminal node; the center node establishes communication connection with the Internet of Things node through the set communication protocol (such as the self-defined data packet format, including node ID, data type, check bit, etc.), in the networking process, the center node will allocate a unique communication address for each Internet of Things node, in order to accurately identify and manage each node;
[0053] Task information receiving and sending implementation
[0054] Task assignment: When a task needs to be assigned to an IoT node, the operator sends the task information (such as task QR code, BMP drawing, etc.) to the center node through the device control webpage. After receiving the task information, the center node encapsulates the task information into a data packet conforming to the LORA communication protocol according to the IoT node ID corresponding to the task, and sends it to the target IoT node through the LORA module.
[0055] Information reception: After receiving the task information, the IoT node returns an acknowledgment data packet to the center node to indicate that the task information has been successfully received. The center node parses and verifies the received acknowledgment data packet. If the acknowledgment is successful, the task assignment status is recorded. If no acknowledgment is received or verification fails, the task information is resent to ensure the reliability of task assignment.
[0056] Timed polling query implementation: The center node has a built-in timer that starts the polling mechanism at a predetermined time interval (e.g., every second or every few seconds). During polling, the center node sends query instruction data packets to each IoT node in turn, with the instruction containing the type of task information to be queried (e.g., production status, yield data, etc.). The IoT node receives the query instruction and returns the corresponding task information in a data packet to the center node. The center node parses, stores, and updates the task information state of each node.
[0057] Specific implementation method of data server:
[0058] Hardware and system configuration
[0059] Hardware specifications: equipped with a 2GHz x64 CPU and 16G+ memory, providing sufficient computing and storage resources; connected to the factory's internal office network to ensure network connectivity with the center node, production management system, information large screen, and other devices;
[0060] Operating system: Linux or Windows operating system can be selected, deployed according to the factory's technical architecture and management needs; install database services (such as MySQL, SQL Server, etc.) and HTTP services (such as Nginx, IIS, etc.) on the operating system to provide a basic environment for data storage, processing, and network transmission;
[0061] Communication with the center node
[0062] Communication protocol: TCP / IP communication protocol is used between the data server and the center node, and the connection is established through the factory's internal network; the center node encapsulates the collected IoT node production status data (such as CNC machine working status, yield count, etc.) into a data packet according to the agreed data format (such as JSON, XML, etc.), and sends it to the data server through the network;
[0063] Data reception and analysis: The HTTP service of the data server listens to the specified port and receives the data packets sent by the center node; after receiving the data packets, it analyzes them, extracts the valid production status data, and checks and verifies them to ensure the accuracy and integrity of the data;
[0064] Data storage and processing implementation
[0065] Data storage: Store the parsed production status data into the database; according to the type and purpose of the data, design a reasonable database table structure, such as establishing a node information table, a production status table, a yield record table, etc., to efficiently store and query the data; at the same time, set up a data backup strategy, regularly backup the database to prevent data loss;
[0066] Data processing: The data server performs real-time processing and analysis on the stored data, such as calculating the yield of each CNC machine, calculating the equipment utilization rate, analyzing the production trend, etc.; through data processing, provide decision support information for production management;
[0067] Data upload and display implementation
[0068] Upload to the production management system: The data server connects with the production management system (such as U8) through the API interface, encapsulates and transmits the processed production status data according to the interface requirements of the production management system, realizes the synchronization and sharing of data, and realizes the management operations such as production planning and cost accounting of the production management system;
[0069] Display to the information big screen: The data server provides a data interface for the information big screen through the HTTP service; the information big screen accesses the interface of the data server to obtain real-time production information, and displays it on the screen in a visual way (such as charts, tables, dynamic data display, etc.), which is convenient for production management personnel to view the production status of each CNC machine in real time.
[0070] Although the embodiments of the present application have been shown and described in detail, as described above, it can be understood by those skilled in the art that various changes, modifications, replacements and variations can be made to these embodiments without departing from the principles and spirits of the present application, and the scope of the present application is defined by the appended claims and their equivalents.
Claims
1. A CNC machine production management system based on LORA communication, characterized in that: Comprising a plurality of Internet of Things nodes, each corresponding to a CNC machine, the Internet of Things nodes comprising: an MCU for general task processing, a display module for displaying task information, a signal input module for collecting CNC machine cycle signals, a LORA communication module for wireless communication with the center node, and an input module for input operation; a center node for communicating with the plurality of Internet of Things nodes through LORA networking, receiving and sending task information, and polling the task information of each Internet of Things node at regular intervals; a data server for storing and processing data, communicating with the center node, receiving production status data from the Internet of Things nodes, and uploading the data to a production management system or displaying it on an information large screen; an information large screen for displaying production information of each CNC machine; a device control webpage for obtaining CNC machine production tasks through a production management system and issuing tasks to each Internet of Things node.
2. The CNC machine production management system based on LORA communication according to claim 1, characterized in that: The signal input module includes three wires: power, signal, and ground. The power wire is used to power the entire Internet of Things node, and the signal wire is used to collect CNC device cycle signals.
3. The CNC machine production management system based on LORA communication according to claim 1, characterized in that: The input module includes key input or touch input.
4. The CNC machine production management system based on LORA communication according to claim 1, characterized in that: The communication distance of the LORA communication module is greater than or equal to 1 km, and the Internet of Things node uses a 5V voltage input.
5. The CNC machine production management system based on LORA communication according to claim 1, characterized in that: The implementation method for receiving and sending task information is as follows: When a task needs to be issued to an Internet of Things node, an operator sends task information to the center node through the device control webpage. After receiving the task information, the center node encapsulates the task information into a data packet conforming to the LORA communication protocol according to the task corresponding Internet of Things node ID, and sends it to the target Internet of Things node through the LORA module. After receiving the task information, the Internet of Things node returns an acknowledgment data packet to the center node to indicate that the task information has been successfully received. The center node parses and verifies the received acknowledgment data packet. If the acknowledgment is received successfully, the task issuance status is recorded. If no acknowledgment is received or verification fails, the task information is resent.
6. The CNC machine production management system based on LORA communication according to claim 1, characterized in that: The implementation method for polling at regular intervals is as follows: a timer is set inside the center node, and the polling mechanism is started according to the preset time interval. During polling, the center node sends query instruction data packets to each Internet of Things node in turn. The instruction contains the type of task information to be queried. The Internet of Things node receives the query instruction and returns the corresponding task information encapsulated into a data packet to the center node. The center node parses, stores, and updates the task information status of each node.
7. The CNC machine production management system based on LORA communication according to claim 6, characterized in that: The type of task information includes production status and yield data.
8. The CNC machine production management system based on LORA communication according to claim 1, characterized in that: The data server connects to the production management system through an API interface, encapsulates and transmits the processed production status data according to the interface requirements of the production management system, and realizes data synchronization and sharing.
Citation Information
Patent Citations
Intelligent factory management system based on LoRa wireless communication technology
CN115079653A