A method and system for transmitting data of numerical control machine tools

By setting up wireless forwarding modules and wireless acquisition terminals in the workshop and using LoRa technology to connect networks, the problem that old CNC machine tools cannot perform data acquisition and monitoring is solved, and the data acquisition and control functions of these machine tools are realized, and management is improved. and maintenance efficiency.

CN117499507BActive Publication Date: 2025-02-18SUZHOU IND PARK IND TECH SCHOOL (SUZHOU IND PARK COMMUNITY TRAINING COLLEGE JIANGSU UNITED VOCATIONAL & TECH COLLEGE SUZHOU IND PARK BRANCH)
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311438790.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-01
Publication Date
2025-02-18
Estimated Expiration
2043-11-01

AI Technical Summary

Technical Problem

The inability to collect and monitor data for old CNC machine tools that lack communication modules, resulting in inefficient management and maintenance.

Method used

By setting up a wireless forwarding module and a wireless acquisition terminal in the workshop, LoRa technology is used to connect networks, and wireless transmission of old machine tool data and data interaction between cloud servers is realized.

Benefits of technology

It realizes data acquisition and control functions of old CNC machine tools, improves management and maintenance efficiency, and solves the problems of data acquisition and monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117499507B_ABST
    Figure CN117499507B_ABST
Patent Text Reader

Abstract

The present application discloses a method and system for transmitting data for a numerically controlled machine tool, the method comprising: obtaining the model of at least one numerically controlled machine tool placed in a workshop; obtaining the amount of data required to be transmitted for each numerically controlled machine tool according to the model of the at least one numerically controlled machine tool, wherein the amount of data required to be transmitted for each numerically controlled machine tool is obtained according to historical statistical data; determining the amount of data required to be transmitted for the wireless forwarding module according to the amount of data required to be transmitted for each numerically controlled machine tool; determining a wireless forwarding module capable of transmitting the amount of data according to the amount of data required to be transmitted by the wireless forwarding module; wherein the determined wireless forwarding module is configured in the workshop. The present application solves the problem of being unable to collect and monitor data for old-fashioned machine tools that lack communication modules, thereby realizing data collection and control functions for these old-fashioned machine tools.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of CNC machine tools, and in particular to a method and system for transmitting data of CNC machine tools. Background Art

[0002] CNC lathe is one of the most widely used CNC machine tools. It is mainly used for cutting and processing of inner and outer cylindrical surfaces of shaft parts or disc parts, inner and outer conical surfaces of arbitrary taper angles, complex rotating inner and outer curved surfaces, and cylindrical and conical threads, and can perform grooving, drilling, reaming, reaming and boring, etc. CNC machine tools automatically process the parts to be processed according to the pre-compiled processing program. We compile the processing route, process parameters, tool movement trajectory, displacement, cutting parameters and auxiliary functions of the parts into a processing program sheet according to the instruction code and program format specified by the CNC machine tool, and then record the contents of this program sheet on the control medium, and then input it into the CNC device of the CNC machine tool, so as to command the machine tool to process the parts.

[0003] In the related technology, the newer CNC machine tools have communication modules, so they can usually connect to the factory server conveniently, which is convenient for the server software to collect production information, count the production, debugging, and idle status of the machine tools, and help managers keep an eye on the 24-hour efficiency of the machine tool production. However, some old machine tools cannot connect to the network and cannot extract data during the production process, so it is impossible to collect and monitor data for old machine tools that lack communication modules. Summary of the invention

[0004] The embodiments of the present application provide a method and system for transmitting data of a numerically controlled machine tool, so as to at least solve the problem that it is impossible to collect and monitor data for an old-fashioned machine tool that lacks a communication module.

[0005] According to one aspect of the present application, a method for transmitting data of a numerical control machine tool is provided, comprising: obtaining a model of at least one numerical control machine tool placed in a workshop, wherein the at least one numerical control machine tool includes two categories, one of which is a first numerical control machine tool with a communication module, and the other is a second numerical control machine tool without a communication module, wherein the first numerical control machine tool communicates with a wireless forwarding module arranged in the workshop through the communication module, and the second numerical control machine tool communicates with the wireless forwarding module through a wireless acquisition terminal connected thereto, the wireless acquisition terminal is connected to the second numerical control machine tool through a wired bus, and the second numerical control machine tool sends data to the wireless acquisition terminal through the wired bus; obtaining the amount of data required to be transmitted for each numerical control machine tool according to the model of the at least one numerical control machine tool, wherein the amount of data required to be transmitted for each numerical control machine tool is obtained according to historical statistical data; determining the amount of data required to be transmitted by the wireless forwarding module according to the amount of data required to be transmitted by each numerical control machine tool; determining a wireless forwarding module capable of transmitting the amount of data according to the amount of data required to be transmitted by the wireless forwarding module; wherein the determined wireless forwarding module is configured in the workshop.

[0006] Furthermore, the wireless acquisition terminal is networked with the wireless forwarding module through LoRa; after receiving the data from the wireless acquisition terminal, the wireless forwarding module interacts with the cloud server through the wireless cellular network; the cloud server is used to save the data from the wireless acquisition terminal and send commands to the second CNC machine tool through the wireless acquisition terminal.

[0007] Furthermore, the data interacting between the wireless acquisition terminal or the communication module of the CNC machine tool and the wireless forwarding module, and the data interacting between the wireless forwarding module and the cloud server are all encrypted.

[0008] Furthermore, it also includes: the wireless acquisition terminal or the communication module of the CNC machine tool receives a heartbeat message sent from a wireless forwarding module, and sends a response message to the wireless forwarding module according to the heartbeat message, wherein the response message carries the time when the heartbeat message is received; if the wireless forwarding module does not receive the response message, it is determined that the CNC machine tool connected to the wireless acquisition terminal or the CNC machine tool where the communication module is located has a fault.

[0009] According to one aspect of the present application, a CNC machine tool data transmission system is provided, comprising: a first acquisition module, used to acquire the model of at least one CNC machine tool placed in a workshop, wherein the at least one CNC machine tool includes two types, one of which is a first CNC machine tool with a communication module, and the other is a second CNC machine tool without a communication module, the first CNC machine tool communicates with a wireless forwarding module arranged in the workshop through the communication module, the second CNC machine tool communicates with the wireless forwarding module through a wireless acquisition terminal connected thereto, the wireless acquisition terminal is connected to the second CNC machine tool through a wired bus, and the second The CNC machine tool sends data to the wireless acquisition terminal through the wired bus; a second acquisition module is used to obtain the amount of data that each CNC machine tool needs to transmit according to the model of the at least one CNC machine tool, wherein the amount of data that each CNC machine tool needs to transmit is obtained based on historical statistical data; a first determination module is used to determine the amount of data that the wireless forwarding module needs to transmit according to the amount of data that each CNC machine tool needs to transmit; a second determination module is used to determine a wireless forwarding module capable of transmitting the amount of data according to the amount of data that the wireless forwarding module needs to transmit; wherein the determined wireless forwarding module is configured in the workshop.

[0010] Furthermore, the wireless acquisition terminal is networked with the wireless forwarding module through LoRa; after receiving the data from the wireless acquisition terminal, the wireless forwarding module interacts with the cloud server through the wireless cellular network; the cloud server is used to save the data from the wireless acquisition terminal and send commands to the second CNC machine tool through the wireless acquisition terminal.

[0011] Furthermore, the data interacting between the wireless acquisition terminal or the communication module of the CNC machine tool and the wireless forwarding module, and the data interacting between the wireless forwarding module and the cloud server are all encrypted.

[0012] Furthermore, it also includes: the wireless acquisition terminal or the communication module of the CNC machine tool receives a heartbeat message sent from a wireless forwarding module, and sends a response message to the wireless forwarding module according to the heartbeat message, wherein the response message carries the time when the heartbeat message is received; if the wireless forwarding module does not receive the response message, it is determined that the CNC machine tool connected to the wireless acquisition terminal or the CNC machine tool where the communication module is located has a fault.

[0013] According to one aspect of the present application, an electronic device is provided, comprising a memory and a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the above-mentioned method steps.

[0014] According to one aspect of the present application, a readable storage medium is provided, on which computer instructions are stored, wherein the computer instructions implement the above method steps when executed by a processor.

[0015] In an embodiment of the present application, the model of at least one CNC machine tool placed in a workshop is obtained, wherein the at least one CNC machine tool includes two categories, one of which is a first CNC machine tool with a communication module, and the other is a second CNC machine tool without a communication module. The first CNC machine tool communicates with a wireless forwarding module arranged in the workshop through the communication module, and the second CNC machine tool communicates with the wireless forwarding module through a wireless acquisition terminal connected thereto, the wireless acquisition terminal is connected to the second CNC machine tool through a wired bus, and the second CNC machine tool sends data to the wireless acquisition terminal through the wired bus; the amount of data that each CNC machine tool needs to transmit is obtained according to the model of the at least one CNC machine tool, wherein the amount of data that each CNC machine tool needs to transmit is obtained according to historical statistical data; the amount of data that the wireless forwarding module needs to transmit is determined according to the amount of data that each CNC machine tool needs to transmit; the wireless forwarding module with the ability to transmit the amount of data is determined according to the amount of data that the wireless forwarding module needs to transmit; wherein the determined wireless forwarding module is configured in the workshop.

[0016] Through the present application, the model of at least one CNC machine tool placed in a workshop is obtained, wherein the at least one CNC machine tool includes two categories, one of which is a first CNC machine tool with a communication module, and the other is a second CNC machine tool without a communication module, the first CNC machine tool communicates with a wireless forwarding module arranged in the workshop through the communication module, the second CNC machine tool communicates with the wireless forwarding module through a wireless acquisition terminal connected thereto, the wireless acquisition terminal is connected to the second CNC machine tool through a wired bus, and the second CNC machine tool sends data to the wireless acquisition terminal through the wired bus; the amount of data that each CNC machine tool needs to transmit is obtained according to the model of the at least one CNC machine tool, wherein the amount of data that each CNC machine tool needs to transmit is obtained according to historical statistical data; the amount of data that the wireless forwarding module needs to transmit is determined according to the amount of data that each CNC machine tool needs to transmit; the wireless forwarding module with the ability to transmit the amount of data is determined according to the amount of data that the wireless forwarding module needs to transmit; wherein the determined wireless forwarding module is configured in the workshop. The present application solves the problem of being unable to perform data collection and monitoring on old machine tools that lack communication modules, thereby realizing data collection and control functions for these old machine tools. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0018] Figure 1 is a schematic diagram of the layout of a CNC machine tool system according to an embodiment of the present application;

[0019] Figure 2 It is a flow chart of a method for transmitting data of a numerical control machine tool according to an embodiment of the present application. DETAILED DESCRIPTION

[0020] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0021] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0022] In the following implementations, Mesh networking and LoRa are involved. The following first describes Mesh and LoRa networking.

[0023] Mesh networking is a wireless network expansion method that allows users to achieve wider wireless coverage in a heavier environment.

[0024] Mesh networking requires the following equipment:

[0025] Mesh router: The Mesh router is the core device of the Mesh network, responsible for managing the communication between all nodes. It can automatically optimize network connections and transfer data from one node to another.

[0026] Mesh nodes: Mesh nodes are wireless devices connected to a mesh router, and they can provide wireless coverage in different rooms or areas. Mesh nodes extend network coverage by communicating with other nodes.

[0027] How to set up Mesh networking

[0028] Choosing a Mesh Router: First, you need to choose a Mesh router that suits your needs. Mesh routers have different features and specifications depending on the brand and model. For example, some Mesh routers can be set up and managed through mobile applications, while others require a web interface to set up.

[0029] Setting up a Mesh router: Setting up a Mesh router usually requires connecting to its management interface, which can be accessed by entering the router's IP address in a browser. You can then follow the instructions in the device's manual to set it up. Typically, you'll need to set up a wireless network name (SSID) and password, and assign a name and location to each Mesh node.

[0030] Adding Mesh Nodes: Once the Mesh router is set up, you can add Mesh nodes. Typically, Mesh nodes can be added by pressing a specific button on the router or using a mobile app. When adding a Mesh node, you need to place the Mesh node in the area you need coverage and set it up according to the instructions in the device manual. The Mesh node will automatically connect to the Mesh router and become another node in the network.

[0031] Optimizing the Mesh Network: Once the Mesh nodes are set up, you can optimize the Mesh network to provide the best network performance and coverage. You can use the tools provided by the Mesh router to check network connectivity and signal strength, and adjust the location of the Mesh nodes as needed.

[0032] In the following implementations, CNC machine tools, servers, routers, network terminals, etc. constitute a system, which is called a CNC machine tool system. In this system, Mesh technology can be used for networking, and other network networking technologies can also be used for networking.

[0033] LoRa Networking

[0034] In low-rate, long-distance wireless IoT application scenarios, wireless transmission distance, anti-interference ability, penetration performance, product power consumption, cost and other issues restrict the promotion of IoT applications. Wi-Fi, Bluetooth, Zigbee, and NB-IoT all have their own advantages, but their defects are also very obvious and cannot provide a perfect solution. LoRa wireless technology provides users with a long-distance, anti-interference, and low-power wireless communication method, and LoRa has strong penetration performance and can penetrate several floors in a building. LoRa products are flexible in networking and can form an independent local area network operation, without relying on the operator's public network, greatly reducing operating costs. For example, the LoRa wireless cascade solution can meet the needs of low-rate, long-distance wireless IoT application scenarios. It adopts a tree network architecture with a simple structure and easy management and maintenance. At the same time, the product has a relay function, which can expand the wireless coverage through relays. The LoRa wireless cascade solution not only has the characteristics of fast, flexible, and low-cost networking of LoRa products, but also can directly connect to all standard MODBUS protocol devices on the market. The gateway supports the MQTT uplink protocol and can be quickly applied to industrial and monitoring fields.

[0035] The above LoRa cascade solution can be implemented through a variety of product modes to meet the different needs of customers:

[0036] Mode 1, LoRa cascade terminal: externally connected in the form of a terminal, connected to the monitored device through the RS485 interface.

[0037] Mode 2, LoRa cascade module: embedded in the internal machine in the form of a module, connected to the user equipment main control board via UART.

[0038] In the following implementation, for old machine tools without communication modules, production process data can be collected by plugging wireless terminals (also called network terminals or wireless acquisition terminals) into the machine tools, sending them to the wireless transfer module through the wireless network, and then forwarding them to the server. Using this method, there may be other problems in actual application, such as complex electromagnetic conditions inside the workshop, insufficient transmission distance and stability of traditional wifi and bluetooth, real-time network data transmission, various types of mesh systems, and complex push methods. Therefore, as a relatively optimal implementation, a wireless terminal is plugged into the control console of the machine tool, connected to the control PLC of the machine tool through the serial port and IO, and production data is obtained; then a wireless transfer module is placed in the workshop, and the collected wireless information is sent to the server through the Ethernet network; the wireless terminal and the transfer module are connected using LoRa wireless technology; multiple modes are used between the wireless terminal and the server, and OPC UA / HTTP / MQTT multiple network protocols are supported to facilitate mesh system access.

[0039] In the following implementation, a method for transmitting data of a numerical control machine tool is provided. Figure 2 is a flow chart of a method for transmitting data of a numerical control machine tool according to an embodiment of the present application, such as Figure 2 As shown below, Figure 2 The steps involved in the method are described.

[0040] Step S202, obtaining the model of at least one CNC machine tool placed in a workshop, wherein the at least one CNC machine tool includes two categories, one of which is a first CNC machine tool with a communication module, and the other is a second CNC machine tool without a communication module, the first CNC machine tool communicates with a wireless forwarding module arranged in the workshop through the communication module, the second CNC machine tool communicates with the wireless forwarding module through a wireless acquisition terminal connected thereto, the wireless acquisition terminal is connected to the second CNC machine tool through a wired bus, and the second CNC machine tool sends data to the wireless acquisition terminal through the wired bus;

[0041] Step S204, obtaining the amount of data that needs to be transmitted for each CNC machine tool according to the model of the at least one CNC machine tool, wherein the amount of data that needs to be transmitted for each CNC machine tool is obtained based on historical statistical data;

[0042] Step S206, determining the amount of data that needs to be transmitted by the wireless forwarding module according to the amount of data that needs to be transmitted by each CNC machine tool;

[0043] Step S208, determining a wireless forwarding module capable of transmitting the amount of data according to the amount of data that the wireless forwarding module needs to transmit; wherein the determined wireless forwarding module is configured in the workshop.

[0044] The above-mentioned embodiments solve the problem that data collection and monitoring cannot be performed on old machine tools that lack communication modules, thereby realizing data collection and control functions for these old machine tools.

[0045] As an implementation method that can be added, after it is determined that the wireless forwarding module is configured in the workshop, the relationship between the amount of data transmitted by the wireless forwarding module in a day and the corresponding hardware resource consumption is obtained, and it is determined whether the hardware resource consumption exceeds a pre-configured threshold. If so, the time point when the threshold is exceeded is obtained, and it is determined whether there is packet loss in the process of data interaction between the wireless forwarding module and the wireless acquisition module or the communication module at this time point. If there is no packet loss, the situation exceeding the pre-configured threshold is ignored; if there is packet loss and the packet loss rate is greater than the pre-set packet loss rate, an alarm message is sent, wherein the alarm message is used to indicate that the administrator needs to expand the capacity of the wireless forwarding module.

[0046] As another implementation method that can be added, the number of alarm messages sent by the wireless forwarding module within one month is obtained. If the number of alarm messages is lower than the pre-configured number, the model of each CNC machine tool in the workshop, the model of the wireless acquisition module, and the hardware parameters and networking method of the wireless forwarding module are sent to the server for storage, wherein the saved data is used as a reference when another workshop selects a wireless forwarding module next time.

[0047] In an optional embodiment, the wireless acquisition terminal is networked with the wireless forwarding module via LoRa. After receiving the data from the wireless acquisition terminal, the wireless forwarding module exchanges data with the cloud server via a wireless cellular network; the cloud server is used to store the data from the wireless acquisition terminal and send commands to the second CNC machine tool via the wireless acquisition terminal.

[0048] In another optional implementation, the data interacting between the wireless acquisition terminal or the communication module of the CNC machine tool and the wireless forwarding module, and the data interacting between the wireless forwarding module and the cloud server are all encrypted.

[0049] In another optional embodiment, the wireless acquisition terminal or the communication module of the CNC machine tool receives a heartbeat message sent from a wireless forwarding module, and sends a response message to the wireless forwarding module according to the heartbeat message, wherein the response message carries the time when the heartbeat message is received; if the wireless forwarding module does not receive the response message, it is determined that the CNC machine tool to which the wireless acquisition terminal is connected or the CNC machine tool where the communication module is located has a fault.

[0050] As an implementation method that can be added, after the wireless forwarding module receives the response message, the wireless forwarding module obtains the second time when the heartbeat message is received from the response message; the wireless forwarding module obtains the first time when the heartbeat message is sent; the wireless forwarding module determines whether the time difference between the second time and the first time is within a predetermined range, and if it is not within the predetermined range, the number of times is counted; if the number of times counted by the wireless forwarding module exceeds a threshold within a predetermined time period, an alarm message is sent, wherein the alarm message is used to indicate to the administrator that the wireless forwarding module needs to expand the communication capacity.

[0051] Figure 1 is a schematic diagram of the layout of a CNC machine tool system according to an embodiment of the present application, such as Figure 1 As shown, machining center 1, CNC machine tool 1 and CNC machine tool 2 are all connected to a wireless terminal (also called a wireless acquisition terminal), and then the wireless terminal is connected to a wireless transfer module (also called a forwarding module). The wireless transfer module is connected to a cloud server through network devices such as routers and switches. After receiving the data, the cloud server saves it in the database. In order to improve the working efficiency of the database, a cache can also be set between the cloud server and the database. The cloud server can provide data to mobile terminals and computers fixed in the workshop for management, and the cloud server can also be accessed remotely.

[0052] exist Figure 1 In the machine tool production process wireless data collection system, traditional CNC machine tools and machining centers without remote communication functions can be connected to the factory's production network to realize the statistics and analysis of production process data for production management of intelligent factories.

[0053] The wireless acquisition terminal is used to collect the data of the machine tool's generation process and send it to the transfer module through a wireless transceiver (LoRa 1GHZ frequency band). Each machine tool will be installed with a wireless acquisition terminal. The wireless forwarding module is used to network with the acquisition terminal and report the data uploaded by the terminal to the cloud server. The forwarding module uses Ethernet or LTE Cat1 cellular network to communicate with the cloud server. One forwarding module can connect to multiple terminals. The cloud server program can be run on the cloud server. The program is used to obtain data from the forwarding module and store the relevant data in the database after processing.

[0054] Based on the above Figure 1 As an additional implementation, a method for starting a numerical control machine tool is also provided. In the method, a common network server can be configured for wireless acquisition terminals in the same local area network, wherein the wireless acquisition terminal is addressed by the network server through a logical address and a hardware address, and the physical address information of the numerical control machine tool and / or the wireless acquisition terminal in the network is assigned to the corresponding logical address. In the method, in the setting operation mode of the network server, the operator is sequentially requested to assign a logical address to the hardware address of the numerical control machine tool and / or the wireless acquisition terminal. After executing the assignment information, the logical address and the hardware address are stored in a memory unit; when starting a numerical control machine tool, first determine whether the wireless acquisition terminal connected to the numerical control machine tool or the numerical control machine tool has been assigned a logical address. If no logical address has been assigned, refuse to execute the command to start the machine tool, and send a request to assign a logical address to the network server; if the logical address has been assigned, start the numerical control machine tool.

[0055] When data is transmitted through a wireless acquisition terminal or using the communication module of the CNC machine tool itself, in order to improve the security of data transmission, the data can also be encrypted in the following way. In the following text, the CNC machine tool refers to a data machine tool with a communication model or a wireless acquisition terminal.

[0056] The data encryption can be implemented by data encryption software, which includes a data acquisition module, an encryption algorithm database, an encryption channel one, a data sorting module, a data analysis module, an authority control module and an encryption channel two. The data acquisition module is used to acquire instruction data for remote control of a numerically controlled machine tool. The encryption algorithm database is used to preset data encryption algorithms required for storing different instruction data accuracies. The encryption channel one is used to encrypt instruction data for remote control of a numerically controlled machine tool. The data sorting module is used to integrate and count the accuracy of instruction data for remote control of a numerically controlled machine tool. The data analysis module is used to analyze the integrated instruction data content and make a judgment. The authority control module is used to control the encryption channel selection authority during data transmission encryption. The encryption channel two is used to quickly encrypt instruction data for remote control of a numerically controlled machine tool. The data acquisition module is electrically connected to the data analysis module and the data sorting module. The encryption channel one and the encryption channel two are both electrically connected to the data acquisition module, the data analysis module, the encryption algorithm database and the authority control module. The authority control module is electrically connected to the data sorting module. According to the above technical solution, the encryption channel 1 includes an algorithm configuration unit 1 and an encryption unit 1. The algorithm configuration unit 1 is used to configure an encryption algorithm according to the retrieval of the acquired instruction data. The encryption unit 1 is used to package the corresponding instruction data into encrypted data according to the configured encryption algorithm. The algorithm configuration unit 1 is electrically connected to the encryption unit 1.

[0057] According to the above technical solution, the encryption channel 2 includes a data budget submodule, an algorithm preconfiguration unit 2 and an encryption unit 2. The data budget submodule is used to predict the accuracy of the next instruction data of the remote control of the CNC machine tool. The algorithm preconfiguration unit 2 is used to call the encryption algorithm that configures the current instruction data accuracy according to the acquired instruction data, and immediately call the encryption algorithm that matches the accuracy according to the predicted next instruction data in advance. The encryption unit 2 is used to package the corresponding instruction data into encrypted data according to the configured encryption algorithm. The data budget submodule is electrically connected to the algorithm preconfiguration unit 2, and the algorithm preconfiguration unit 2 is electrically connected to the encryption unit 2.

[0058] According to the above technical solution, the operation method of the encryption system based on digital information transmission mainly includes the following steps: step S1: establishing an encryption algorithm database; step S2: setting encryption operation methods with different operation amounts and storing them in the encryption algorithm database; step S3: obtaining instruction data for remote control of CNC machine tools; step S4: allocating the obtained instruction data to encryption channel 1 and starting encrypted data processing; step S5: after the encryption processing of the instruction data is completed, the accuracy of the instruction data can be interpreted during the processing, and the data sorting module obtains the accuracy of the instruction data; step S6: repeating steps S3-S5, after the accuracy of the obtained instruction data reaches a statistically quantifiable amount n, Stop repeating steps S3-S5; Step S7: Start to arrange and integrate the n instruction data accuracies in the order of acquisition, analyze and integrate the statistical data, and provide the analysis results to encryption channel 2 for pre-configuration processing; Step S8: Continue to obtain the instruction data of the remote control of the CNC machine tool, distribute the obtained instruction data to the encryption channel 2, and start fast encryption data processing; Step S9: When the new instruction data accuracy is interpreted, the earliest obtained instruction data accuracy is eliminated, and the data sorting module and the data analysis module repeat step S7 with the latest group of n instruction data accuracy; Step S10: Repeat steps S7-S9 until the instruction of the remote control of the CNC machine tool stops.

[0059] The above encryption technology solution can improve the security of data transmission.

[0060] In this embodiment, an electronic device is provided, including a memory and a processor. The memory stores a computer program, and the processor is configured to run the computer program to execute the method in the above embodiment.

[0061] The above program can be run in the processor, or it can also be stored in the memory (or computer-readable medium), which includes permanent and non-permanent, removable and non-removable media. Information storage can be achieved by any method or technology. Information can be computer-readable instructions, data structures, modules of programs or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0062] These computer programs can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps of the functions specified in one or more blocks can be implemented by different modules corresponding to different steps.

[0063] Such a device or system is provided in this embodiment. The system is called a CNC machine tool data transmission system, comprising: a first acquisition module, used to obtain the model of at least one CNC machine tool placed in a workshop, wherein the at least one CNC machine tool includes two types, one of which is a first CNC machine tool with a communication module, and the other is a second CNC machine tool without a communication module. The first CNC machine tool communicates with a wireless forwarding module set in the workshop through the communication module, and the second CNC machine tool communicates with the wireless forwarding module through a wireless acquisition terminal connected thereto, and the wireless acquisition terminal is connected to the second CNC machine tool through a wired bus, and the second CNC machine tool The data is sent to the wireless acquisition terminal through the wired bus; the second acquisition module is used to obtain the amount of data that needs to be transmitted for each CNC machine tool according to the model of the at least one CNC machine tool, wherein the amount of data that needs to be transmitted for each CNC machine tool is obtained based on historical statistical data; the first determination module is used to determine the amount of data that needs to be transmitted by the wireless forwarding module according to the amount of data that needs to be transmitted by each CNC machine tool; the second determination module is used to determine the wireless forwarding module capable of transmitting the amount of data according to the amount of data that needs to be transmitted by the wireless forwarding module; wherein the determined wireless forwarding module is configured in the workshop.

[0064] The system or device is used to implement the functions of the method in the above-mentioned embodiment. Each module in the system or device corresponds to each step in the method, which has been explained in the method and will not be repeated here.

[0065] Optionally, the wireless acquisition terminal is networked with the wireless forwarding module via LoRa; after receiving the data from the wireless acquisition terminal, the wireless forwarding module interacts with the cloud server via a wireless cellular network; the cloud server is used to store the data from the wireless acquisition terminal and send commands to the second CNC machine tool via the wireless acquisition terminal.

[0066] Optionally, data interacting between the wireless acquisition terminal or the communication module of the CNC machine tool and the wireless forwarding module, and data interacting between the wireless forwarding module and the cloud server are all encrypted.

[0067] Optionally, it also includes: the wireless acquisition terminal or the communication module of the CNC machine tool receives a heartbeat message sent from a wireless forwarding module, and sends a response message to the wireless forwarding module according to the heartbeat message, wherein the response message carries the time when the heartbeat message is received; if the wireless forwarding module does not receive the response message, it is determined that the CNC machine tool connected to the wireless acquisition terminal or the CNC machine tool where the communication module is located has a fault.

[0068] The above-mentioned embodiments solve the problem that data collection and monitoring cannot be performed on old machine tools that lack communication modules, thereby realizing data collection and control functions for these old machine tools.

[0069] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A method for transmitting data of a numerical control machine tool, characterized in that: include: Obtaining the model of at least one CNC machine tool placed in a workshop, wherein the at least one CNC machine tool includes two categories, one of which is a first CNC machine tool with a communication module, and the other is a second CNC machine tool without a communication module, the first CNC machine tool communicates with a wireless forwarding module arranged in the workshop through the communication module, the second CNC machine tool communicates with the wireless forwarding module through a wireless acquisition terminal connected thereto, the wireless acquisition terminal is connected to the second CNC machine tool through a wired bus, and the second CNC machine tool sends data to the wireless acquisition terminal through the wired bus; Acquire the amount of data required to be transmitted for each CNC machine tool according to the model of the at least one CNC machine tool, wherein the amount of data required to be transmitted for each CNC machine tool is obtained based on historical statistical data; Determine the amount of data that needs to be transmitted by the wireless forwarding module according to the amount of data that needs to be transmitted by each CNC machine tool; Determining a wireless forwarding module capable of transmitting the amount of data according to the amount of data that the wireless forwarding module needs to transmit; wherein the determined wireless forwarding module is configured in the workshop; wherein, after the determined wireless forwarding module is configured in the workshop, the relationship between the amount of data transmitted by the wireless forwarding module and the corresponding hardware resource consumption in a day is obtained, and it is determined whether the hardware resource consumption exceeds a pre-configured threshold. If so, the time point when the threshold is exceeded is obtained, and it is determined whether there is packet loss in the process of data interaction between the wireless forwarding module and the wireless acquisition module or the communication module at this time point. If there is no packet loss, the situation exceeding the pre-configured threshold is ignored; if there is packet loss and the packet loss rate is greater than the pre-set packet loss rate, an alarm message is sent, wherein the alarm message is used to indicate that the administrator needs to expand the capacity of the wireless forwarding module; the number of alarm messages sent by the wireless forwarding module within one month is obtained, and if the number of alarm messages is lower than the pre-configured number, the model of each CNC machine tool in the workshop, the model of the wireless acquisition module, and the hardware parameters and networking mode of the wireless forwarding module are sent to the server for storage, wherein the saved data is used as a reference when another workshop selects a wireless forwarding module next time; The wireless acquisition terminal or the communication module of the CNC machine tool receives a heartbeat message sent from a wireless forwarding module, and sends a response message to the wireless forwarding module according to the heartbeat message, wherein the response message carries the time when the heartbeat message is received; if the wireless forwarding module does not receive the response message, it is determined that the CNC machine tool connected to the wireless acquisition terminal or the CNC machine tool where the communication module is located has a fault; After receiving the response message, the wireless forwarding module obtains the second time when the heartbeat message is received from the response message; the wireless forwarding module obtains the first time when the heartbeat message is sent; the wireless forwarding module determines whether the time difference between the second time and the first time is within a predetermined range, and if it is not within the predetermined range, the number of times is counted; if the number of times counted by the wireless forwarding module exceeds a threshold within a predetermined time period, an alarm message is sent, wherein the alarm message is used to indicate to the administrator that the wireless forwarding module needs to expand the communication capacity.

2. The method according to claim 1, characterized in that The wireless acquisition terminal is networked with the wireless forwarding module via LoRa; after receiving the data from the wireless acquisition terminal, the wireless forwarding module exchanges data with the cloud server via a wireless cellular network; the cloud server is used to store the data from the wireless acquisition terminal and send commands to the second CNC machine tool via the wireless acquisition terminal.

3. The method according to claim 2, characterized in that The data exchanged between the wireless acquisition terminal or the communication module of the CNC machine tool and the wireless forwarding module, and the data exchanged between the wireless forwarding module and the cloud server are all encrypted.

Citation Information

Patent Citations

  • Data acquisition method, device and system

    CN107102621A

  • Multi-channel data intelligent distribution method and system for multifunctional gateway

    CN114079672A