Numerical control machine tool data synchronization and transmission method and system based on tablet personal computer

By using tablet computers for file synchronization during CNC machine tool data transmission, the problems of file synchronization errors and inconvenience during the transmission process are solved, and convenient file management and high-reliability data transmission are achieved.

CN118748673APending Publication Date: 2024-10-08HANGZHOU ZHONGQIAN NUMERICAL CONTROL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410787558.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

File synchronization errors are prone to occur during the data transmission process of existing CNC machine tools, and the reliance on transmission boxes leads to inconvenience.

Method used

A tablet-based data synchronization method is used to connect the server and machine tools through wireless LAN, configure shared folders and synchronized folders, and use ID information files to synchronize files and lock machine tools to access files to avoid mis-synchronization of files.

Benefits of technology

It realizes convenient file management and synchronization process, avoids the problem of file mis-synchronization during machine tool debugging, and improves the reliability and convenience of the transmission process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118748673A_ABST
    Figure CN118748673A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of machine tool data synchronization, in particular to a numerical control machine tool data synchronization and transmission method and system based on a tablet personal computer, and the method comprises the steps: S1, configuring a shared folder in a server, and configuring an ID information file corresponding to the shared folder and a synchronous folder in the tablet personal computer; s2, judging file change in the shared folder in the tablet computer according to the ID information file, and synchronizing a to-be-synchronized file to a synchronous folder when the to-be-synchronized file appears; and S3, the machine tool accesses the synchronous folder to obtain the processing file in the synchronous folder, and the tablet computer locks the processing file when the machine tool debugs the processing file so as to stop synchronization of the processing file. The tablet personal computer is connected with the server and the machine tool through the wireless local area network, so that a relatively convenient file management and synchronization process is realized; and when the machine tool debugs the program file, the related file is locked, so that the problem of file error synchronization is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of machine tool data synchronization, and in particular to a CNC machine tool data synchronization method and system based on a tablet computer. Background Art

[0002] CNC machine tools are short for Computer numerical control machine tools, which are automated machine tools equipped with a program control system. The control system can logically process programs specified by control codes or other symbolic instructions, decode them, express them in coded numbers, and input them into the CNC device through information carriers. After calculation and processing, the CNC device sends various control signals to control the action of the machine tool, and automatically processes the parts according to the shape and size required by the drawing. Usually, the processing route, process parameters, tool motion trajectory, displacement, cutting parameters and auxiliary functions of the parts need to be written into a processing program sheet according to the instruction code and program format specified by the CNC machine tool, and then the contents of the program sheet are recorded on the control medium, and then input into the CNC device of the CNC machine tool, so as to command the machine tool to process the parts.

[0003] In order to realize a relatively simple data input process, there is a technical solution for transmitting program files to machine tools through a network in the prior art. For example, Chinese patent CN03810401.6 discloses a method and system for transmitting data through a switched data network, comprising: transmitting real-time critical data and non-real-time critical data in the network, wherein the switched data network has at least one wireless transmission segment established between at least two users, in particular a sender and a receiver, wherein data is transmitted in at least one transmission cycle (12) with a settable time length (17), and each transmission cycle (12) is divided into at least one first area (13) for transmitting real-time critical data for real-time control and at least one second area (14) for transmitting non-real-time critical data.

[0004] However, in the actual implementation process, the inventor found that such technical solutions usually only focus on the file transmission process, such as the process of inputting program files from the server to the machine tool through some intermediate device, but do not pay attention to the problem that the program files may be synchronized incorrectly during the actual application of the machine tool. For example, when the machine tool is debugged, the file synchronization process may cause the machine tool to run incorrectly. Furthermore, the existing file transmission solutions usually require the configuration of some intermediate medium, such as a transmission box, which leads to inconvenience in use. Summary of the invention

[0005] In view of the above problems existing in the prior art, a method and system for synchronizing and transmitting CNC machine tool data based on a tablet computer is now provided.

[0006] The specific technical solutions are as follows:

[0007] A method for synchronizing and transmitting CNC machine tool data based on a tablet computer, comprising a server, a tablet computer and a machine tool connected in sequence, wherein the data storage interaction method comprises:

[0008] Step S1: configuring a shared folder in the server, and configuring an ID information file and a synchronization folder corresponding to the shared folder in the tablet computer;

[0009] The ID information file records the file information under the shared folder;

[0010] Step S2: judging file changes in the shared folder in the tablet computer according to the ID information file, and synchronizing the files to be synchronized to the synchronization folder when the files to be synchronized appear;

[0011] Step S3: the machine tool accesses the synchronization folder to obtain the processing file in the synchronization folder, and the tablet computer locks the processing file when the machine tool debugs the processing file to stop synchronization of the processing file.

[0012] On the other hand, the step S1 comprises:

[0013] Step S11: configuring the shared folder in the server, and collecting shared folder information of the shared folder;

[0014] Step S12: creating a first path in the tablet computer, and generating the ID information file in the first path according to the file information;

[0015] Step S13: creating a second path in the tablet computer as the synchronization folder, and synchronizing the files in the shared folder to the synchronization folder according to the ID information file.

[0016] On the other hand, the step S2 comprises:

[0017] Step S21: when a preset query period is reached, obtaining the real-time file status of the shared folder;

[0018] Step S22: comparing the real-time file status with the ID information file to determine the file to be synchronized;

[0019] Step S23: unidirectionally synchronizing the to-be-synchronized file from the server to the tablet computer.

[0020] On the other hand, the step S3 comprises:

[0021] Step S31: the machine tool is connected to the tablet computer so that the machine tool accesses the synchronization folder;

[0022] Step S32: when the machine tool accesses the processing file, the tablet computer locks the processing file;

[0023] Step S33: the machine tool debugs the processing file.

[0024] On the other hand, after executing step S3, the method further includes:

[0025] Step S4: when the processing file is debugged, a debugging completion file is generated;

[0026] The file name of the debugging completion file is different from the processing file;

[0027] Step S5: sending the debugging completion file back to the server.

[0028] A computer-based numerical control machine tool data synchronization and transmission system, used to implement the above-mentioned data storage interaction method, comprises:

[0029] a configuration module, the configuration module configuring a shared folder in the server, and configuring an ID information file and a synchronization folder corresponding to the shared folder in the tablet computer;

[0030] The ID information file records the file information under the shared folder;

[0031] A synchronization detection module, the synchronization detection module is connected to the configuration module, and the synchronization detection module judges the file changes in the shared folder according to the ID information file in the tablet computer, and synchronizes the file to be synchronized to the synchronization folder when the file to be synchronized appears;

[0032] A locking module is connected to the synchronization detection module. The locking module enables the machine tool to access the synchronization folder to obtain the processing files in the synchronization folder. The tablet computer locks the processing files when the machine tool debugs the processing files to stop synchronization of the processing files.

[0033] On the other hand, the configuration module includes:

[0034] a first configuration module, the first configuration module configuring the shared folder in the server and collecting shared folder information of the shared folder;

[0035] a second configuration module, the second configuration module being connected to the first configuration module, the second configuration module creating a first path in the tablet computer, and generating the ID information file in the first path according to the file information;

[0036] A third configuration module is connected to the second configuration module, and the third configuration module creates a second path in the tablet computer as the synchronization folder, and synchronizes the files in the shared folder to the synchronization folder according to the ID information file.

[0037] On the other hand, the synchronization detection module includes:

[0038] A polling module, wherein the polling module obtains the real-time file status of the shared folder when a preset query cycle is reached;

[0039] A comparison module, the comparison module is connected to the polling module, and the comparison module compares the real-time file status and the ID information file to determine the file to be synchronized;

[0040] A one-way synchronization module is connected to the comparison module, and the one-way synchronization module synchronizes the to-be-synchronized file from the server to the tablet computer in one direction.

[0041] On the other hand, the locking module comprises:

[0042] a connection module, wherein when the machine tool is connected to the tablet computer, the connection module controls the machine tool to access the synchronization folder;

[0043] A file locking module, the file locking module is connected to the connection module, and when the machine tool accesses the processing file, the file locking module locks the processing file;

[0044] A debugging control module is connected to the file locking module, and the debugging control module debugs the processing file.

[0045] On the other hand, it also includes a return module, and the return module includes:

[0046] A debugging output module, wherein the debugging output module generates a debugging completion file when the debugging of the processing file is completed;

[0047] The file name of the debugging completion file is different from the processing file;

[0048] A file return module is used to return the debugging completion file to the server.

[0049] The above technical solution has the following advantages or beneficial effects:

[0050] In view of the inconvenience of using a transmission box for file transmission in the existing technology, this solution introduces a file transmission process based on a tablet computer. The tablet computer is connected to the server and the machine tool respectively through a wireless LAN, thereby realizing a more convenient file management and synchronization process;

[0051] Furthermore, in order to address the problem that the transmission process in the prior art is prone to errors during the machine tool debugging process, this solution introduces a file access status detection process. When the machine tool is debugging the program file, the related files are locked, thereby avoiding the problem of file missynchronization. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] The embodiments of the present invention will be described more fully with reference to the attached drawings, which are provided for illustration and description only and are not intended to limit the scope of the present invention.

[0053] Figure 1 It is an overall schematic diagram of an embodiment of the present invention;

[0054] Figure 2 This is a schematic diagram of step S1 in an embodiment of the present invention;

[0055] Figure 3 This is a schematic diagram of step S2 in an embodiment of the present invention;

[0056] Figure 4 This is a schematic diagram of step S3 in an embodiment of the present invention;

[0057] Figure 5 This is a schematic diagram of step S4 in an embodiment of the present invention;

[0058] Figure 6 A schematic diagram of a data storage interaction system in an embodiment of the present invention;

[0059] Figure 7 This is a schematic diagram of a configuration module in an embodiment of the present invention;

[0060] Figure 8 This is a schematic diagram of a synchronization detection module in an embodiment of the present invention;

[0061] Fig. 9 This is a schematic diagram of a locking module in an embodiment of the present invention;

[0062] Fig.10 Schematic diagram of a return module in an embodiment of the present invention. DETAILED DESCRIPTION

[0063] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0064] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.

[0065] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments, but they are not intended to limit the present invention.

[0066] The present invention comprises:

[0067] A method for synchronizing and transmitting CNC machine tool data based on a tablet computer, comprising a server, a tablet computer and a machine tool connected in sequence, such as Figure 1 As shown, the data storage interaction method includes:

[0068] Step S1: configuring a shared folder in the server, and configuring an ID information file and a synchronization folder corresponding to the shared folder in the tablet computer;

[0069] The ID information file records the file information under the shared folder;

[0070] Step S2: judging file changes in the shared folder according to the ID information file in the tablet computer, and synchronizing the files to be synchronized to the synchronization folder when the files to be synchronized appear;

[0071] Step S3: the machine tool accesses the synchronization folder to obtain the processing files in the synchronization folder, and the tablet computer locks the processing files when the machine tool is debugging the processing files to stop synchronization of the processing files.

[0072] Specifically, in order to solve the problem that the transmission process in the prior art relies on a transmission box for file transmission, which is inconvenient to use, this solution introduces a file transmission process based on a tablet computer. The tablet computer is connected to the server and the machine tool respectively through a wireless LAN, thereby realizing a more convenient file management and synchronization process.

[0073] Specifically, a tablet computer is a mobile computer device that is pre-configured with specific computer programs to implement corresponding functions. When used, the tablet computer, server, and machine tool are connected to the same network segment of the wireless local area network to establish an Ethernet connection. The tablet computer is equipped with a file management system that can store various types of files and paths stored in the tablet computer separately. Different files have corresponding storage paths, such as processes, drawings, processing simulation projects, equipment monitoring data, etc. The tablet computer is also equipped with a corresponding front-end interface to display this part of the content, including displaying drawings, process flow charts, and providing file editing options.

[0074] The tablet computer has multiple USB interfaces, which can be converted to serial ports through USB-serial cables, and then converted to RS232 interfaces through serial-RS232 conversion cables to connect to machine tools for file transfer. The tablet computer also connects to expansion dock devices through USB interfaces to expand USB interfaces, and connects to external keyboard and mouse devices through USB interfaces.

[0075] A server is a computer device used to store and manage processes, drawings, programs, etc. It can be a cloud platform or other form of equipment, connected to other computer devices, such as design workstations, through the Internet. After engineers determine the relevant processes and drawings and compile tool path programs, they send them to the server through the Internet and store them according to specific paths and file names.

[0076] The server is equipped with a login interface to verify the user's username and password to access the platform, so as to determine whether the user can access the relevant files in the platform. The platform also provides a front-end page to display different types of access controls, such as document management, program management, work orders, collaborative reporting statistics, processing simulation, and equipment real-time monitoring lights. It can also be used to access different folders separately, such as directly accessing process paths and drawing paths.

[0077] The tablet computer accesses the platform by running the program. When the corresponding path is clicked on the tablet computer, a dialog box will pop up to display various shared folders configured on the server. The user selects the corresponding folder through the tablet computer and confirms the file transfer.

[0078] At the same time, the tablet computer will record the file information of various files in the folder to generate an ID information file for subsequent comparison and synchronization processes.

[0079] After the tablet computer has debugged the file, it will rename the debugged file and then save it back to a specific path on the server. The tablet computer can be used to access the path to obtain the file in subsequent use.

[0080] When the server stores the relevant processes, drawings, and processing procedures according to specific paths and file names, the tablet computer is connected to the server as an auxiliary tool to obtain the above files. When the tablet computer is connected to the server, among the multiple paths on the server, at least one path is selected as the object for generating the ID file and locked.

[0081] After the locked folder is generated and the ID information file fixed to the folder is generated, the data update on the tablet computer side is referenced, and the files in the locked folder are synchronized at the same time. Subsequently, the tablet computer is connected to the machine tool through Ethernet or bus system, and the processing program is sent to the machine tool for the machine tool equipment to read and execute. During the processing, the engineer can also use the tablet computer to reconfirm the process flow and drawings involved in this processing.

[0082] Furthermore, in order to address the problem that the transmission process in the prior art is prone to errors during the machine tool debugging process, this solution introduces a file access status detection process. When the machine tool is debugging the program file, the related files are locked, thereby avoiding the problem of file missynchronization.

[0083] In one embodiment, Figure 2 As shown, step S1 includes:

[0084] Step S11: configuring a shared folder in the server, and collecting shared folder information of the shared folder;

[0085] Step S12: creating a first path in the tablet computer, and generating an ID information file in the first path according to the file information;

[0086] Step S13: Create a second path in the tablet computer as a synchronization folder, and synchronize the files in the shared folder to the synchronization folder according to the ID information file.

[0087] Specifically, in order to achieve a better file synchronization effect, in this embodiment, a shared folder is configured in the server, and subfolders with corresponding numbers and names are configured under the shared folder, and files or subfolders are also configured under the subfolders. Among them, different types of files are stored in the folders or subfolders, including process files, program files, drawing files, etc. After the files are stored and the shared folders are configured, the shared folder information is collected for the shared folder. Then, a first path is created in the tablet computer, and an ID information file is generated in the first path according to the file information. The ID information file and the shared folder are configured in pairs, and each ID information file corresponds to a first-level folder, and records the folder information of the folder, including the file name, modification time, file attributes, etc. Then, a second path is created in the tablet computer as a synchronization folder, and the files in the shared folder are synchronized to the synchronization folder according to the ID information file under the synchronization folder to realize the synchronization process.

[0088] During the implementation process, the tablet computer will use a programming language to set up a dialog box to list all the folders under folder A. Selecting one of them means that the corresponding files in the subfolders under one of the folders will appear in the corresponding name window of the client, and the process is visualized. Similarly, the file copying and pasting process can also be implemented based on this window. For example, when a file is selected on the tablet computer and a second path is specified, all files under the second path will be deleted, and then the drawing files, process files, and program files in the shared folder will be copied to the second path, and then the ID information file will be updated to record the synchronization status.

[0089] In one embodiment, Figure 3 As shown, step S2 includes:

[0090] Step S21: when a preset query period is reached, the real-time file status of the shared folder is obtained;

[0091] Step S22: comparing the real-time file status and the ID information file to determine the file to be synchronized;

[0092] Step S23: unidirectionally synchronizing the files to be synchronized from the server to the tablet computer.

[0093] Specifically, in order to achieve a better file synchronization effect, in this embodiment, a corresponding query cycle is pre-configured on the tablet computer side, such as several minutes. When the preset query cycle is reached, the real-time file status of the shared folder is obtained, including the file name, modification time, file attributes, etc. Then, the real-time file status and the ID information file are compared to determine that the files to be synchronized have changed in the shared folder, and then the files to be synchronized are synchronized from the server to the tablet computer in one direction.

[0094] The files to be synchronized include newly added files and files that have been modified based on the original files. Their types may be process files, program files, and drawing files.

[0095] In one embodiment, Figure 4 As shown, step S3 includes:

[0096] Step S31: the machine tool is connected to the tablet computer so that the machine tool accesses the synchronization folder;

[0097] Step S32: When the machine tool accesses the processing file, the tablet computer locks the processing file;

[0098] Step S33: The machine tool debugs the processing file.

[0099] Specifically, in order to achieve effective synchronization of files, in this embodiment, when the machine tool needs to access the corresponding file, a communication connection is created between the machine tool and the tablet computer. When the machine tool needs to debug the processing file, mainly the processing program, the tablet computer locks the processing file. The locking process includes adjusting the read and write permissions of the file so that only the machine tool can read and write, and other devices cannot read and write, and temporarily marking the processing file in the ID information file, and skipping the file during polling and file synchronization. Based on this setting, the machine tool can debug the processing file without being disturbed by the synchronization process.

[0100] During the implementation process, the machine tool may be connected to the tablet computer via a wireless network or RS232 bus, and the tablet computer is also configured with corresponding access rights to the synchronization folder, so that the machine tool can access the contents of the folder, including program files, and execute the corresponding processing program. Usually, the machine tool also needs to debug the program file input for the first time. In this process, the machine tool can debug the program file and save it after debugging.

[0101] In one embodiment, Figure 5 As shown, after executing step S3, it also includes:

[0102] Step S4: When the processing file debugging is completed, a debugging completion file is generated;

[0103] The file name of the debugging completed file is different from the processing file;

[0104] Step S5: Send the debugging completion file back to the server.

[0105] Specifically, in order to achieve a better file synchronization effect, in this embodiment, the debugging process of the processing file is also monitored in the tablet computer. When the machine tool completes the debugging of the processing file, a debugging completion file is also generated. The file name of the debugging completion file is different from the processing file before debugging. Subsequently, after the debugging is completed, the debugging completion file is also transmitted back to the server, and a third path is created in the server for storing the debugging completion file.

[0106] A computer-based CNC machine tool data synchronization and transmission system is used to implement the above-mentioned data storage interaction method, such as Figure 6 As shown, including:

[0107] Configuration module 1, configuration module 1 configures a shared folder in the server, and configures an ID information file and a synchronization folder corresponding to the shared folder in the tablet computer;

[0108] The ID information file records the file information under the shared folder;

[0109] Synchronous detection module 2, which is connected to configuration module 1. Synchronous detection module 2 determines file changes in the shared folder according to the ID information file in the tablet computer, and synchronizes the files to be synchronized to the synchronization folder when the files to be synchronized appear;

[0110] The locking module 3 is connected to the synchronization detection module 2. The locking module 3 accesses the synchronization folder when the machine tool obtains the processing files in the synchronization folder. When the machine tool debugs the processing files, the tablet computer locks the processing files to stop synchronization of the processing files.

[0111] In one embodiment, Figure 7 As shown, the configuration module 1 includes:

[0112] A first configuration module 11, the first configuration module 11 configures a shared folder in the server and collects shared folder information of the shared folder;

[0113] A second configuration module 12, the second configuration module 12 is connected to the first configuration module 11, the second configuration module 12 creates a first path in the tablet computer, and generates an ID information file in the first path according to the file information;

[0114] The third configuration module 13 is connected to the second configuration module 12. The third configuration module 13 creates a second path in the tablet computer as a synchronization folder, and synchronizes the files in the shared folder to the synchronization folder according to the ID information file.

[0115] Specifically, in order to achieve a better file synchronization effect, in this embodiment, the first configuration module 11 configures a shared folder in the server, and subfolders with corresponding numbers and names are configured under the shared folder, and files or subfolders are also configured at the sub-level of the subfolder. Among them, different types of files are stored in the folder or subfolder, including process files, program files, drawing files, etc. After the files are stored and the shared folder is configured, the shared folder information is collected for the shared folder. Then, the second configuration module 12 creates a first path in the tablet computer, and generates an ID information file in the first path according to the file information. The ID information file and the shared folder are configured in pairs, and each ID information file corresponds to a first-level folder, and records the folder information of the folder, including the file name, modification time, file attributes, etc. Then, the third configuration module 13 creates a second path in the tablet computer as a synchronization folder, and synchronizes the files in the shared folder to the synchronization folder according to the ID information file under the synchronization folder to realize the synchronization process.

[0116] In one embodiment, Figure 8 As shown, the synchronization detection module 2 includes:

[0117] The polling module 21 obtains the real-time file status of the shared folder when a preset query cycle is reached;

[0118] A comparison module 22, the comparison module 22 is connected to the polling module 21, and the comparison module 22 compares the real-time file status and the ID information file to determine the file to be synchronized;

[0119] The one-way synchronization module 23 is connected to the comparison module 22, and the one-way synchronization module 23 synchronizes the files to be synchronized from the server to the tablet computer in one direction.

[0120] Specifically, in order to achieve a better file synchronization effect, in this embodiment, the polling module 21 pre-configures a corresponding query cycle on the tablet computer side, such as several minutes. When the preset query cycle is reached, the real-time file status of the shared folder is obtained, including the file name, modification time, file attributes, etc. Then the comparison module 22 compares the real-time file status and the ID information file to determine that there are changed files to be synchronized in the shared folder, and the one-way synchronization module 23 synchronizes the files to be synchronized from the server to the tablet computer in one direction.

[0121] In one embodiment, Fig. 9 As shown, the locking module 3 includes:

[0122] A connection module 31, which controls the machine tool to access the synchronization folder when the machine tool is connected to the tablet computer;

[0123] A file locking module 32, the file locking module 32 is connected to the connection module 31, and when the machine tool accesses the processing file, the file locking module locks the processing file;

[0124] The debugging control module 33 is connected to the file locking module 32, and the debugging control module 33 debugs the processing file.

[0125] Specifically, in order to achieve effective synchronization of files, in this embodiment, when the machine tool needs to access the corresponding file, a communication connection is created between the machine tool and the tablet computer. When the machine tool needs to debug the processing file, mainly the processing program, the tablet computer locks the processing file. The locking process includes adjusting the read and write permissions of the file so that only the machine tool can read and write, and other devices cannot read and write, and temporarily marking the processing file in the ID information file, and skipping the file during polling and file synchronization. Based on this setting, the machine tool can debug the processing file without being disturbed by the synchronization process.

[0126] In one embodiment, a return module 4 is also included, such as Fig.10 As shown, the return module 4 includes:

[0127] The debugging output module 41 generates a debugging completion file when the debugging of the processing file is completed;

[0128] The file name of the debugging completed file is different from the processing file;

[0129] The file return module 42 returns the debugging completion file to the server.

[0130] Specifically, in order to achieve a better file synchronization effect, in this embodiment, the debugging process of the processing file is also monitored in the tablet computer. When the machine tool completes the debugging of the processing file, the debugging output module 41 also generates a debugging completion file, and the file name of the debugging completion file is different from the processing file before debugging. Subsequently, after the debugging is completed, the file return module 42 also returns the debugging completion file to the server, and a third path is created in the server for storing the debugging completion file.

[0131] Those skilled in the art will appreciate that various aspects of the present invention, or possible implementations of various aspects, can be specifically implemented as systems, methods or computer program products. Therefore, various aspects of the present invention, or possible implementations of various aspects, can adopt the form of complete hardware embodiments, complete software embodiments (including firmware, resident software, etc.), or combined software and hardware embodiments, all collectively referred to as "circuit", "module" or "system" here. In addition, various aspects of the present invention, or possible implementations of various aspects, can adopt the form of computer program products, which refer to computer-readable program codes stored in computer-readable media.

[0132] The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium includes but is not limited to electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or apparatuses, or any suitable combination of the foregoing, such as random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable read-only memory (CD-ROM).

[0133] The processor in the computer reads the computer-readable program code stored in the computer-readable medium, so that the processor can execute the functional actions specified in each step or the combination of steps in the flowchart; and generate a device for implementing the functional actions specified in each block or the combination of blocks in the block diagram.

[0134] It should be understood that the processor in the computer can be understood as one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components implemented to execute the aforementioned computer-readable program codes.

[0135] Computer readable program code can be executed completely on the local computer of the user, partially on the local computer of the user, as a separate software package, partially on the local computer of the user and partially on the remote computer, or executed completely on the remote computer or server.It should also be noted that in some alternative embodiments, the functions noted in each step in the flow chart or each block in the block diagram may not occur in the order noted in the figure.For example, depending on the function involved, two steps shown in succession or two blocks may actually be executed roughly simultaneously, or these blocks may sometimes be executed in reverse order.

[0136] The above are only preferred embodiments of the present invention, and are not intended to limit the implementation methods and protection scope of the present invention. Those skilled in the art should be aware that all solutions obtained by equivalent substitutions and obvious changes made using the description and illustrations of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for synchronizing and transmitting CNC machine tool data based on a tablet computer, characterized in that: Comprising a server, a tablet computer and a machine tool connected in sequence, the data storage interaction method comprises: Step S1: configuring a shared folder in the server, and configuring an ID information file and a synchronization folder corresponding to the shared folder in the tablet computer; The ID information file records the file information under the shared folder; Step S2: judging file changes in the shared folder in the tablet computer according to the ID information file, and synchronizing the files to be synchronized to the synchronization folder when the files to be synchronized appear; Step S3: the machine tool accesses the synchronization folder to obtain the processing file in the synchronization folder, and the tablet computer locks the processing file when the machine tool debugs the processing file to stop synchronization of the processing file.

2. The method for synchronizing and transmitting CNC machine tool data based on a tablet computer according to claim 1, characterized in that: The step S1 comprises: Step S11: configuring the shared folder in the server, and collecting shared folder information of the shared folder; Step S12: creating a first path in the tablet computer, and generating the ID information file in the first path according to the file information; Step S13: creating a second path in the tablet computer as the synchronization folder, and synchronizing the files in the shared folder to the synchronization folder according to the ID information file.

3. The method for synchronizing and transmitting CNC machine tool data based on a tablet computer according to claim 1, characterized in that: The step S2 comprises: Step S21: when a preset query period is reached, obtaining the real-time file status of the shared folder; Step S22: comparing the real-time file status with the ID information file to determine the file to be synchronized; Step S23: unidirectionally synchronizing the to-be-synchronized file from the server to the tablet computer.

4. The method for synchronizing and transmitting CNC machine tool data based on a tablet computer according to claim 1, characterized in that: The step S3 comprises: Step S31: the machine tool is connected to the tablet computer so that the machine tool accesses the synchronization folder; Step S32: when the machine tool accesses the processing file, the tablet computer locks the processing file; Step S33: the machine tool debugs the processing file.

5. The method for synchronizing and transmitting CNC machine tool data based on a tablet computer according to claim 1, characterized in that: After executing step S3, the method further includes: Step S4: when the processing file is debugged, a debugging completion file is generated; The file name of the debugging completion file is different from the processing file; Step S5: sending the debugging completion file back to the server.

6. A computer-based CNC machine tool data synchronization and transmission system, characterized in that: The method for synchronizing and transmitting CNC machine tool data based on a tablet computer according to any one of claims 1 to 5 comprises: a configuration module, the configuration module configuring a shared folder in the server, and configuring an ID information file and a synchronization folder corresponding to the shared folder in the tablet computer; The ID information file records the file information under the shared folder; A synchronization detection module, the synchronization detection module is connected to the configuration module, and the synchronization detection module judges the file changes in the shared folder according to the ID information file in the tablet computer, and synchronizes the file to be synchronized to the synchronization folder when the file to be synchronized appears; A locking module is connected to the synchronization detection module. The locking module enables the machine tool to access the synchronization folder to obtain the processing files in the synchronization folder. The tablet computer locks the processing files when the machine tool debugs the processing files to stop synchronization of the processing files.

7. The computer-based CNC machine tool data synchronization and transmission system according to claim 6, characterized in that: The configuration module includes: a first configuration module, the first configuration module configuring the shared folder in the server and collecting shared folder information of the shared folder; a second configuration module, the second configuration module is connected to the first configuration module, the second configuration module creates a first path in the tablet computer, and generates the ID information file in the first path according to the file information; A third configuration module is connected to the second configuration module, and the third configuration module creates a second path in the tablet computer as the synchronization folder, and synchronizes the files in the shared folder to the synchronization folder according to the ID information file.

8. The computer-based CNC machine tool data synchronization and transmission system according to claim 6, characterized in that: The synchronization detection module comprises: A polling module, wherein the polling module obtains the real-time file status of the shared folder when a preset query cycle is reached; A comparison module, the comparison module is connected to the polling module, and the comparison module compares the real-time file status and the ID information file to determine the file to be synchronized; A one-way synchronization module is connected to the comparison module, and the one-way synchronization module synchronizes the to-be-synchronized file from the server to the tablet computer in one direction.

9. The computer-based CNC machine tool data synchronization and transmission system according to claim 1, characterized in that: The locking module comprises: a connection module, wherein when the machine tool is connected to the tablet computer, the connection module controls the machine tool to access the synchronization folder; A file locking module, the file locking module is connected to the connection module, and when the machine tool accesses the processing file, the file locking module locks the processing file; A debugging control module is connected to the file locking module, and the debugging control module debugs the processing file.

10. The method for synchronizing and transmitting CNC machine tool data based on a tablet computer according to claim 6, characterized in that: It also includes a return module, which includes: A debugging output module, wherein the debugging output module generates a debugging completion file when the debugging of the processing file is completed; The file name of the debugging completion file is different from the processing file; A file return module is used to return the debugging completion file to the server.