CN111611026A - NC file fast loading implementation method based on side hole machine - Google Patents
NC file fast loading implementation method based on side hole machine Download PDFInfo
- Publication number
- CN111611026A CN111611026A CN202010449422.2A CN202010449422A CN111611026A CN 111611026 A CN111611026 A CN 111611026A CN 202010449422 A CN202010449422 A CN 202010449422A CN 111611026 A CN111611026 A CN 111611026A
- Authority
- CN
- China
- Prior art keywords
- file
- target file
- hole machine
- bar code
- side hole
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Numerical Control (AREA)
Abstract
The invention discloses a method for realizing rapid loading of an NC file based on a side-hole machine, which relates to the technical field of automatic control.A bar code is scanned to read the file name of a target file into a system screen, the system screen firstly judges whether the target file exists in a path according to the file name, if the target file does not exist, the system reports an error and prompts related information of a user; if the file exists, the content of the target file can be directly read, and the file data is downloaded to the controller after the code analysis. By the method, the user only needs to perform code scanning operation and the rest operations are automatically completed by the system screen when loading the file, so that the user only needs to ensure that the target file name contained in the bar code is correct, the complexity and the error probability can be reduced, and the file loading speed and accuracy can be improved.
Description
Technical Field
The invention relates to the technical field of automatic control, in particular to a method for realizing rapid loading of an NC file based on a side hole machine.
Background
The NC file is a numerical control program file, i.e., a file for programming at the time of computer aided design manufacturing (cad/cam). The NC file contains codes which can be identified by a controller, such as G codes, ESSI codes, EIA codes and the like, and the structures of the codes in the NC file are different according to controllers of different brands, so that tools such as notebooks, words, NCEdit software and the like can be used for editing.
NC file loading of a conventional side-hole machine is a data downloading method of reading contents of an NC file through a system screen, converting the read NC file into data, and downloading the data to a PLC (programmable logic controller), as shown in fig. 1. The specific implementation method comprises the steps of searching whether a target NC file exists through a system screen, jumping to a corresponding picture if the target NC file exists, reading file contents line by line after selecting the target file, converting the file contents into instruction data by using a regular expression, and sequentially downloading the instruction data to the PLC.
In the whole process, because the interface space of the system screen is limited, the NC file directory and the control interface are positioned in two different interfaces,
in order to select an NC target file, a user firstly needs to perform picture skipping and then performs file selection and loading in a manual mode; the treatment process is very complicated, and because of adding manual operation, the process is the loop which has the longest time consumption and is very easy to make mistakes in the whole process. Therefore, the method will cause the situation of loading file errors or untimely file loading, and will reduce the efficiency and accuracy of file loading.
In view of the above, a new technical solution is urgently needed to solve the above problems.
Disclosure of Invention
The invention provides a method for realizing rapid loading of an NC file based on a side-hole machine, which aims at the defects of the prior art, the file name of a target file is read into a system screen by scanning a bar code, the system screen firstly judges whether the target file exists in a path or not according to the file name, if the target file does not exist, the system reports an error and prompts related information of a user; if the file exists, the content of the target file can be directly read, and the file data is downloaded to the controller after the code analysis. By the method, the user only needs to perform code scanning operation and the rest operations are automatically completed by the system screen when loading the file, so that the user only needs to ensure that the target file name contained in the bar code is correct, the complexity and the error probability can be reduced, and the file loading speed and accuracy can be improved.
In order to achieve the above object, the present invention provides the following technical solutions:
a method for realizing rapid loading of NC files based on a side hole machine comprises the following steps:
step (1) naming a target file of an NC file to be loaded, and generating a corresponding bar code through a bar code generator;
scanning the bar code through a bar code scanning gun, and reading a file name of a target file corresponding to the bar code into a system screen;
step (3) the system screen judges whether the corresponding target file exists in a local memory according to the target file name, if not, an error is reported and error reporting information is prompted to a user; and if the data content exists, acquiring the data content recorded in the target file, and downloading the data content to a controller after iterative analysis.
Preferably, the target file naming for the NC file to be loaded is performed in a naming mode including a fixed path, a code scanning file name and a file suffix name.
Preferably, the NC file to be loaded may be stored in a local memory or an external memory connected to the system screen in advance.
Preferably, the external memory includes a removable hard disk or a usb disk.
Preferably, the Barcode generator comprises a BarcodeGenerator or an appforlife Barcode.
Advantageous effects
The method for realizing the rapid loading of the NC file based on the side hole machine has the following advantages that: firstly, operation steps are reduced, and client operation is facilitated:
because the traditional method for loading the NC file is as follows: a user controls the current interface to jump to an NC file interface by pressing a button and the like, and manually selects to load a target NC file; that is, before the file is actually loaded, the file needs to be selected through multiple operations, and the process is not only tedious, but also easy to make mistakes. According to the technical scheme, excessive operation is not needed, a user only needs to use the code scanning gun to read the bar code, the rest operations are all completed by the system screen, the operation is simple and convenient, the user is easy to operate, the file loading accuracy can be effectively improved, and the later maintenance cost of the system is reduced.
Secondly, the preparation process is simple, and the bar code is easy to obtain:
the only thing that needs the user to prepare in this scheme is the bar code containing the file name: the user only needs to search the bar code generator by the network, so that the small programs such as BarcodeGenerator, Appsforlife Barcode and the like can be downloaded, and the content of the bar code can be freely edited according to actual needs.
Third, can prompt the relevant alarm information of users in time:
in the conventional file loading scheme, a user first needs to determine whether a target file exists, and if the number of files is too large, a large amount of time is consumed to determine the existence of the file. According to the scheme of the invention, the system screen searches the target file according to the file path of 'fixed path + code scanning file name + suffix name', if the target file cannot be found, the system immediately gives an alarm, prompts the user of relevant information (such as information that a U disk for storing the file does not exist or the file does not exist), and guides the user to perform the next operation, so that the time can be shortened, and the file loading efficiency can be greatly improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
FIG. 1 is a flow chart of a conventional side-hole machine loading NC files;
fig. 2 is a flowchart of an implementation method for fast loading of an NC file based on a side hole machine according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 2, a method for implementing fast loading of an NC file based on a side hole machine, in which a code scanning gun capable of reading a barcode for a system screen is installed in advance in the side hole machine, includes the following steps:
step (1) naming a target file of an NC file to be loaded, and generating a corresponding bar code through a bar code generator;
scanning the bar code through a bar code scanning gun, and reading a file name of a target file corresponding to the bar code into a system screen;
step (3) the system screen judges whether the corresponding target file exists in a local memory according to the target file name, if not, an error is reported and error reporting information (for example, information such as the absence of a U disk for storing the file or the absence of the file itself) is prompted to a user; and if the data content exists, acquiring the data content recorded in the target file, and downloading the data content to a controller after iterative analysis.
The controller controls the side hole machine to do corresponding operation according to the data content.
As optimization of this embodiment, the target file naming is performed on the NC file to be loaded, and the naming form includes a fixed path, a scan code file name, and a file suffix name. Specifically, "fixed path + code-scanned file name + suffix name", for example: c, DK001.nc, wherein the storage address of the target file is a C disc, the file name is DK001, and the suffix name is nc file; the naming mode can promote the system screen to carry out effective path positioning of the target file, and the speed of obtaining the target file is improved.
The NC file to be loaded can be stored in a local memory or an external memory connected with the system screen in advance; in this embodiment, the external memory includes a removable hard disk or a usb disk.
The Barcode generator in this embodiment includes BarcodeGenerator, applsforlife Barcode, and the like, and a user can freely edit the content of the Barcode according to actual needs by downloading or an applet on line to finally generate the Barcode.
The code scanning gun code scanning mode has multiple advantages, and the file is loaded through the method, so that a user only needs to perform code scanning operation, and all other operations are automatically completed through a system screen, so that the user only needs to ensure that a target file name contained in a bar code is correct, the complexity and error probability can be reduced, and the file loading rate and accuracy are improved.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.
Claims (5)
1. A method for realizing rapid loading of NC files based on a side hole machine is characterized in that:
naming a target file for an NC file to be loaded, and generating a corresponding bar code through a bar code generator;
scanning the bar code through a code scanning gun, and reading the file name of the target file corresponding to the bar code into a system screen;
the system screen judges whether the corresponding target file exists in a local memory or not according to the target file name, if not, an error is reported and error report information is prompted to a user; and if the data content exists, acquiring the data content recorded in the target file, and downloading the data content to a controller after iterative analysis.
2. The method for realizing rapid loading of the NC file based on the side hole machine according to claim 1, characterized in that: and naming the target file of the NC file to be loaded, wherein the naming mode comprises a fixed path, a code scanning file name and a file suffix name.
3. The method for realizing rapid loading of the NC file based on the side hole machine according to claim 1, characterized in that: the NC file to be loaded may be stored in a local memory or an external memory connected to the system screen in advance.
4. The method for realizing rapid loading of the NC file based on the side hole machine according to claim 3, characterized in that: the external memory comprises a mobile hard disk or a U disk.
5. The method for realizing rapid loading of the NC file based on the side hole machine according to claim 1, characterized in that: the Barcode generator comprises a BarcodeGenerator or an appforlife Barcode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010449422.2A CN111611026A (en) | 2020-05-25 | 2020-05-25 | NC file fast loading implementation method based on side hole machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010449422.2A CN111611026A (en) | 2020-05-25 | 2020-05-25 | NC file fast loading implementation method based on side hole machine |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111611026A true CN111611026A (en) | 2020-09-01 |
Family
ID=72194157
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010449422.2A Pending CN111611026A (en) | 2020-05-25 | 2020-05-25 | NC file fast loading implementation method based on side hole machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111611026A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113352421A (en) * | 2021-06-04 | 2021-09-07 | 浙江工业大学 | Multi-mode machining control method for wood side hole machine |
CN113721546A (en) * | 2021-09-03 | 2021-11-30 | 江苏天和信息技术有限公司 | Numerical control system and method based on Bo-Tu project |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20020028563A (en) * | 2000-10-10 | 2002-04-17 | 이명주 | A system of Make good use with word processor writing & automatic preservation. |
CN106326347A (en) * | 2016-08-05 | 2017-01-11 | 南京理工大学 | Multi-dimension data loading and decoding method based on two-dimensional code |
CN109033914A (en) * | 2018-07-31 | 2018-12-18 | 深圳市山龙智控有限公司 | A kind of method and device of automatic load processed file |
-
2020
- 2020-05-25 CN CN202010449422.2A patent/CN111611026A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20020028563A (en) * | 2000-10-10 | 2002-04-17 | 이명주 | A system of Make good use with word processor writing & automatic preservation. |
CN106326347A (en) * | 2016-08-05 | 2017-01-11 | 南京理工大学 | Multi-dimension data loading and decoding method based on two-dimensional code |
CN109033914A (en) * | 2018-07-31 | 2018-12-18 | 深圳市山龙智控有限公司 | A kind of method and device of automatic load processed file |
Non-Patent Citations (1)
Title |
---|
HARRVCHINESE: "项目源码分享之【条码扫描后台监控程序】", 《HTTPS://WWW.CNBLOGS.COM/HARRYCHINESE/ARCHIVE/2013/07/21/BARCODEMONITOR_SOURCE.HTML》, pages 1 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113352421A (en) * | 2021-06-04 | 2021-09-07 | 浙江工业大学 | Multi-mode machining control method for wood side hole machine |
CN113721546A (en) * | 2021-09-03 | 2021-11-30 | 江苏天和信息技术有限公司 | Numerical control system and method based on Bo-Tu project |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111611026A (en) | NC file fast loading implementation method based on side hole machine | |
CN100456182C (en) | Programmable logic controller peripheral device and program creation method thereof | |
KR20130103549A (en) | Logging setup device, logging setup method and recordable medium | |
CN102541740A (en) | Android-based automatic test method for mobile phone notes | |
CN109885476A (en) | Automated testing method and device, terminal and computer readable storage medium | |
CN103631590A (en) | Method for editing automated testing script | |
CN113535141A (en) | Database operation code generation method and device | |
CN112241625A (en) | Method and system for automatically generating contract document based on java language | |
CN114594943A (en) | Data modeling method, device, equipment and storage medium | |
CN111399900B (en) | API document automatic generation method and system based on python and regular expression | |
CN113672222A (en) | Application program interface management device and construction method thereof | |
CN113988026A (en) | Expert knowledge editing method and device based on fault diagnosis | |
CN113761863A (en) | List page configuration method, device and storage medium | |
CN112084758A (en) | Automatic extraction method of compressor quality inspection data | |
CN109019217B (en) | Elevator control software field debugging system | |
CN111045947A (en) | Test environment construction method and device and related equipment thereof | |
CN110045985B (en) | Targetlink model calibration parameter setting method, device, equipment and medium | |
CN111670091B (en) | Robot program instruction compiling method, robot control system and storage device | |
CN115618239B (en) | Management method, system, terminal and medium for deep learning framework training | |
CN114860414A (en) | Azkaban-based automatic task scheduling method and system | |
CN115390853B (en) | Structured analysis method, system, terminal and storage medium for multi-source process file | |
KR101344882B1 (en) | Apparatus and method for screen creation based on I/O model, and storage medium recording program for implementing method thereof | |
JP2011170419A (en) | Control program creation device | |
JP2010182031A (en) | Software generation support device | |
CN118134229A (en) | Method and device for realizing custom process arrangement |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |