CN116303105B - Automatic checking method, device, equipment and medium for control codes of numerical control machine tool - Google Patents

Automatic checking method, device, equipment and medium for control codes of numerical control machine tool Download PDF

Info

Publication number
CN116303105B
CN116303105B CN202310582388.XA CN202310582388A CN116303105B CN 116303105 B CN116303105 B CN 116303105B CN 202310582388 A CN202310582388 A CN 202310582388A CN 116303105 B CN116303105 B CN 116303105B
Authority
CN
China
Prior art keywords
control
information
machine tool
standard
control data
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.)
Active
Application number
CN202310582388.XA
Other languages
Chinese (zh)
Other versions
CN116303105A (en
Inventor
吴承科
杨之乐
肖溱鸽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhongke Hangmai CNC Software Shenzhen Co Ltd
Original Assignee
Zhongke Hangmai CNC Software Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Zhongke Hangmai CNC Software Shenzhen Co Ltd filed Critical Zhongke Hangmai CNC Software Shenzhen Co Ltd
Priority to CN202310582388.XA priority Critical patent/CN116303105B/en
Publication of CN116303105A publication Critical patent/CN116303105A/en
Application granted granted Critical
Publication of CN116303105B publication Critical patent/CN116303105B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs
    • G06F11/3608Software analysis for verifying properties of programs using formal methods, e.g. model checking, abstract interpretation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs
    • G06F11/3616Software analysis for verifying properties of programs using software metrics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/205Parsing
    • G06F40/211Syntactic parsing, e.g. based on context-free grammar [CFG] or unification grammars
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/284Lexical analysis, e.g. tokenisation or collocates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • Numerical Control (AREA)

Abstract

The invention provides a method, a device, equipment and a medium for automatically checking control codes of a numerical control machine, which relate to the technical field of numerical control machines, and the method comprises the following steps: acquiring information of a part to be machined, target machining structure data, a machine tool control code and a machine tool number corresponding to a machine tool to be controlled; acquiring at least one piece of control data to be inspected corresponding to the machine tool control code, wherein one piece of control data to be inspected comprises a control step and step technological parameters corresponding to the control step; acquiring at least one standard control data according to the to-be-machined part information, the target machining structure data and the machine tool number, wherein one standard control data comprises a standard step and a standard parameter range corresponding to the standard step; and performing exception checking on the machine tool control code according to the standard control data and the control data to be checked to obtain an exception checking result. The invention is beneficial to the checking efficiency of the control codes of the numerical control machine tool.

Description

Automatic checking method, device, equipment and medium for control codes of numerical control machine tool
Technical Field
The invention relates to the technical field of numerical control machine tools, in particular to a method, a device, equipment and a medium for automatically checking control codes of a numerical control machine tool.
Background
With the development of science and technology, the application of the numerical control machine tool is more and more widespread, and the numerical control machine tool is generally controlled by codes.
In the prior art, a control code of a numerical control machine tool is usually written manually and checked by a manual checking mode. The problem of the prior art is that the manual inspection mode needs to consume a great deal of manpower resources and time, which is unfavorable for improving the inspection efficiency of the control codes of the numerical control machine tool.
Disclosure of Invention
The invention provides an automatic checking method, device, equipment and medium for a numerical control machine tool control code, which are used for solving the problem that the scheme for checking the numerical control machine tool control code by a manual checking mode in the prior art is not beneficial to improving the checking efficiency of the numerical control machine tool control code, and realizing the improvement of the checking efficiency of the numerical control machine tool control code.
The invention provides an automatic checking method for a control code of a numerical control machine tool, which comprises the following steps:
acquiring information of a part to be machined, target machining structure data, a machine tool control code and a machine tool number corresponding to a machine tool to be controlled;
acquiring at least one piece of control data to be inspected corresponding to the machine tool control code, wherein one piece of control data to be inspected comprises a control step and step technological parameters corresponding to the control step;
acquiring at least one standard control data according to the to-be-machined part information, the target machining structure data and the machine tool number, wherein one standard control data comprises a standard step and a standard parameter range corresponding to the standard step;
and performing exception checking on the machine tool control code according to the standard control data and the control data to be checked to obtain an exception checking result.
According to the method for automatically checking the control code of the numerical control machine tool provided by the invention, the method for acquiring at least one piece of control data to be checked corresponding to the control code of the numerical control machine tool comprises the following steps:
carrying out information identification on the machine tool control code through a trained code information identification model to obtain control information corresponding to the machine tool control code;
performing statement length identification on the control information to obtain a statement length corresponding to the control information;
carrying out semantic complexity recognition on the control information to obtain the corresponding semantic complexity of the control information;
when the sentence length exceeds a preset sentence length threshold or the semantic complexity exceeds a preset semantic complexity threshold, processing the control information according to a preset corpus preprocessing step to obtain preprocessing information, and obtaining at least one piece of control data to be checked corresponding to the machine tool control code according to the preprocessing information, wherein the corpus preprocessing step comprises word segmentation, sentence segmentation and stop word rejection.
According to the automatic checking method for the control codes of the numerical control machine tool provided by the invention, after the semantic complexity identification is carried out on the control information to obtain the corresponding semantic complexity of the control information, the automatic checking method further comprises the following steps:
and when the sentence length does not exceed a preset sentence length threshold and the semantic complexity does not exceed a preset semantic complexity threshold, acquiring at least one piece of control data to be checked corresponding to the machine tool control code according to the control information.
According to the automatic checking method for the control code of the numerical control machine tool provided by the invention, at least one standard control data is obtained according to the information of the part to be processed, the target processing structure data and the machine tool number, and the method comprises the following steps:
acquiring custom control information and machine tool model corresponding to the machine tool to be controlled according to the machine tool number, wherein the custom control information comprises a plurality of custom control steps corresponding to the machine tool to be controlled and custom process parameter ranges corresponding to the custom control steps;
obtaining general control information corresponding to the machine tool to be controlled according to the machine tool model, wherein the general control information comprises a plurality of general control steps corresponding to the machine tool to be controlled and general technological parameter ranges corresponding to the general control steps;
and acquiring at least one standard control data according to the to-be-processed component information, the target processing structure data, the custom control information and the general control information.
According to the method for automatically checking the control code of the numerical control machine tool provided by the invention, at least one standard control data is obtained according to the information of the part to be processed, the target processing structure data, the custom control information and the general control information, and the method comprises the following steps:
and inputting the to-be-processed part information, the target processing structure data, the custom control information and the general control information into a trained standard control data identification model to obtain standard control data output by the trained standard control data identification model.
According to the automatic checking method for the control codes of the numerical control machine tool, the standard control data identification model is trained according to the following steps:
inputting training to-be-processed component information, training target processing structure data, training custom control information and training general control information in the training data into the standard control data identification model, and obtaining prediction standard control data output by the standard control data identification model, wherein the training data comprises a plurality of groups of training information groups, and each group of training information groups comprises the training to-be-processed component information, the training target processing structure data, the training custom control information, the training general control information and the marking standard control data;
and adjusting model parameters of the standard control data identification model according to the prediction standard control data and the labeling standard control data, and continuously executing the step of inputting the training to-be-processed part information, the training target processing structure data, the training custom control information and the training general control information in the training data into the standard control data identification model until preset training conditions are met, so as to obtain the trained standard control data identification model.
According to the automatic checking method for the control code of the numerical control machine tool provided by the invention, the machine tool control code is checked for abnormality according to the standard control data and the control data to be checked, so as to obtain an abnormality checking result, and the method comprises the following steps:
comparing the control data to be checked with the standard control data, and taking the abnormal machine tool control code as the abnormal check result when the comparison result meets a first judgment condition or a second judgment condition, wherein the first judgment condition is that the control step in any one control data to be checked is different from the standard step in any one standard control data, the second judgment condition is that at least one group of corresponding target control data to be checked and target standard control data exist, the control step in the target control data to be checked is the same as the standard step in the target standard control data, and the step process parameter in the target control data to be checked exceeds the standard parameter range in the target standard control data;
and when the comparison result does not meet the first judging condition and the second judging condition, taking the machine tool control code as the abnormal checking result normally.
The invention also provides an automatic checking device for the control codes of the numerical control machine tool, which comprises the following components:
the processing information acquisition module is used for acquiring the information of the part to be processed, the target processing structure data, the machine tool control code and the machine tool number corresponding to the machine tool to be controlled;
the control data to be checked is used for acquiring at least one control data to be checked corresponding to the machine tool control code, wherein one control data to be checked comprises a control step and step technological parameters corresponding to the control step;
the standard control data acquisition module is used for acquiring at least one standard control data according to the to-be-machined component information, the target machining structure data and the machine tool number, wherein one standard control data comprises a standard step and a standard parameter range corresponding to the standard step;
and the abnormality checking module is used for checking the abnormality of the machine tool control code according to the standard control data and the control data to be checked to obtain an abnormality checking result.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes any one of the automatic checking methods of the control codes of the numerical control machine tool when executing the program.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements any one of the numerical control machine control code automatic inspection methods.
In the automatic checking method for the numerical control machine tool control code, the information of the part to be processed, the target processing structure data, the machine tool control code and the machine tool number corresponding to the machine tool to be controlled are obtained, then the control data (comprising a control step and a step technological parameter) to be checked corresponding to the machine tool control code are obtained, and at least one standard control data (comprising a standard step and a standard parameter range) is obtained according to the information of the part to be processed, the target processing structure data and the machine tool number, so that the machine tool control code is automatically checked for abnormality according to the standard control data and the control data to be checked to obtain an abnormality checking result. Compared with the prior art, the invention can realize automatic inspection of the machine tool control code without manual inspection, thereby being beneficial to improving the inspection efficiency of the numerical control machine tool control code.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of an automatic checking method for control codes of a numerical control machine tool;
fig. 2 is a schematic structural diagram of an automatic checking device for control codes of a numerical control machine tool;
fig. 3 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Whether the program structure and parameter call in the writing process of the numerical control machine control code (such as G code) meet the specifications or not correspondingly affects the processing quality, so that the inspection of the numerical control machine control code is very important for the numerical control processing process. In order to solve the problem that the scheme of checking the control code of the numerical control machine tool by a manual checking mode is unfavorable for improving the checking efficiency of the control code of the numerical control machine tool in the prior art, the invention provides an automatic checking method, device, equipment and medium for the control code of the numerical control machine tool, and the method, the device, the equipment and the medium are specifically described below with reference to fig. 1-3.
As shown in fig. 1, an embodiment of the present invention provides a method for automatically checking control codes of a numerically-controlled machine tool, and specifically, the method includes the following steps:
s100, acquiring information of a part to be machined, target machining structure data, a machine tool control code and a machine tool number corresponding to the machine tool to be controlled.
The information of the part to be processed is information of the part to be processed by the numerical control machine tool, including structural information and material information of the part to be processed, and may also include other information, which is not particularly limited herein. The target machining structure data is used for describing a machined structure corresponding to the part to be machined. The machine tool control code is a code for controlling a machine tool, which is input by an operation object (for example, a machine tool operator), and is a G code in this embodiment. The machine tool number is a unique identification number corresponding to the machine tool to be controlled.
S200, at least one piece of control data to be checked corresponding to the machine tool control code is obtained, wherein one piece of control data to be checked comprises a control step and step technological parameters corresponding to the control step.
The control data to be checked is the actual control content corresponding to the machine tool control code, namely the machine tool control code actually controls the actions, parameters and the like of the machine tool to be controlled. Specifically, the obtaining at least one piece of control data to be inspected corresponding to the machine tool control code includes: carrying out information identification on the machine tool control code through a trained code information identification model to obtain control information corresponding to the machine tool control code; performing statement length identification on the control information to obtain a statement length corresponding to the control information; carrying out semantic complexity recognition on the control information to obtain the corresponding semantic complexity of the control information; when the sentence length exceeds a preset sentence length threshold or the semantic complexity exceeds a preset semantic complexity threshold, processing the control information according to a preset corpus preprocessing step to obtain preprocessing information, and obtaining at least one piece of control data to be checked corresponding to the machine tool control code according to the preprocessing information, wherein the corpus preprocessing step comprises word segmentation, sentence segmentation and stop word rejection.
The trained code information recognition model is a pre-trained model for recognizing machine tool control codes, and the control information is a statement for describing specific control steps and process parameters of the steps. Specifically, the code information recognition model may be trained by: inputting training control codes in code recognition training data into a code information recognition model, and obtaining training control information output by the code information recognition model, wherein the code recognition training data comprises a plurality of groups of training code groups, and each group of training code groups comprises training control codes and labeling control information; and adjusting model parameters of the code information recognition model according to the training control information and the labeling control information, and continuously executing the step of inputting training control codes in the code recognition training data into the code information recognition model until preset code information recognition training conditions are met, so as to obtain a trained code information recognition model.
The preset code information identification training condition comprises that the iteration times of the information identification model reach a preset information identification model iteration times threshold, or the loss value between the training control information and the labeling control information is smaller than a preset information identification model loss threshold. Other conditions may also be included and are not particularly limited herein.
In an application scenario, control information corresponding to a machine tool control code may also be obtained based on a preset code information corpus, which is not limited herein.
It should be noted that, when the sentence length corresponding to the control information is longer or the corresponding semantic complexity is higher, it is difficult to directly process and obtain the data to be checked, so when the sentence length exceeds the preset sentence length threshold or the semantic complexity exceeds the preset semantic complexity threshold, the control information is processed according to the preset corpus preprocessing step to obtain the preprocessing information, thereby reducing the difficulty of obtaining the control data to be detected.
Otherwise, when the sentence length does not exceed the preset sentence length threshold and the semantic complexity does not exceed the preset semantic complexity threshold, at least one piece of control data to be checked corresponding to the machine tool control code is obtained according to the control information. The preset sentence length threshold and the preset semantic complexity threshold are preset values respectively, and can be preset and adjusted according to actual requirements, and are not particularly limited herein.
Specifically, when at least one piece of control data to be inspected corresponding to the machine tool control code is obtained according to the preprocessing information or the control information, entity relation extraction can be performed on the preprocessing information or the control information according to a preset operation corpus, so that corresponding data to be inspected is obtained.
In one application scenario, control data to be inspected may be extracted based on a GPT model. Specifically, a GPT model prompt template is preset, and a control step and a step technological parameter corresponding to the information are identified from the input pretreatment information or the control information. Then, a processing specification corpus (covering corpora such as industry standards of main processing products and process forms of numerical control machine tools) is established. Meanwhile, a plurality of callable programs, such as a first program, can be set in the GPT model, and the first program is used for querying and acquiring corresponding control information in the processing specification corpus. The second program is used for carrying out corpus preprocessing (word segmentation, sentence segmentation, irrelevant content rejection and the like) on the control information to obtain preprocessing information. The third program is used for extracting entity-relation of the preprocessing information or the control information (namely, identifying the key steps of the current process in the specification content, the information such as resource elements and the like and the parameter attribute requirements of the response thereof). It should be noted that, the GPT model may determine whether to call the second program to perform preprocessing or directly call the third program to perform entity relationship extraction according to actual requirements (for example, statement length and semantic complexity corresponding to control information). Further, a fourth program may be further configured to compare the standard control data with the control data to be checked, and prompt and early warning for the abnormal code. For example, parameters of the process to be processed and the standard process are compared in pairs, and prompt and early warning are carried out on the control step exceeding a preset threshold value.
S300, at least one standard control data is obtained according to the to-be-processed component information, the target processing structure data and the machine tool number, wherein one standard control data comprises a standard step and a standard parameter range corresponding to the standard step.
The standard control data are steps and parameter ranges thereof which can be used when the machine tool to be controlled is controlled and are determined according to the information of the part to be processed, the target processing structure data and the machine tool number. The standard step is a corresponding fault-free control step when normal codes are used for control, and the standard parameter range is an allowable parameter range.
The obtaining at least one standard control data according to the to-be-machined component information, the target machining structure data and the machine tool number comprises the following steps: acquiring custom control information and machine tool model corresponding to the machine tool to be controlled according to the machine tool number, wherein the custom control information comprises a plurality of custom control steps corresponding to the machine tool to be controlled and custom process parameter ranges corresponding to the custom control steps; obtaining general control information corresponding to the machine tool to be controlled according to the machine tool model, wherein the general control information comprises a plurality of general control steps corresponding to the machine tool to be controlled and general technological parameter ranges corresponding to the general control steps; and acquiring at least one standard control data according to the to-be-processed component information, the target processing structure data, the custom control information and the general control information.
The custom control information is constraint information set by an operator or other control personnel for a specific machine tool to be controlled, for example, for which steps cannot be performed on a certain machine tool, or corresponding parameters when a certain step is performed are specific (for example, the rotation angle of the tool bit is specific), and other constraints may also be included, which are not specifically limited herein. The general control information is general restriction information for the same model machine tool. In this embodiment, the standard step in the obtained standard control data is one of the custom control steps or one of the general control steps, and the corresponding standard parameter range belongs to the corresponding custom process parameter range or the corresponding general process parameter range.
In this embodiment, the obtaining at least one standard control data according to the to-be-machined component information, the target machining structure data, the custom control information, and the general control information includes: and inputting the to-be-processed part information, the target processing structure data, the custom control information and the general control information into a trained standard control data identification model to obtain standard control data output by the trained standard control data identification model.
The standard control data recognition model is trained according to the following steps: inputting training to-be-processed component information, training target processing structure data, training custom control information and training general control information in the training data into the standard control data identification model, and obtaining prediction standard control data output by the standard control data identification model, wherein the training data comprises a plurality of groups of training information groups, and each group of training information groups comprises the training to-be-processed component information, the training target processing structure data, the training custom control information, the training general control information and the marking standard control data; and adjusting model parameters of the standard control data identification model according to the prediction standard control data and the labeling standard control data, and continuously executing the step of inputting the training to-be-processed part information, the training target processing structure data, the training custom control information and the training general control information in the training data into the standard control data identification model until preset training conditions are met, so as to obtain the trained standard control data identification model.
The preset training condition may be that the iteration number of the standard control data identification model reaches a preset iteration number threshold corresponding to the model, or that a loss value between the prediction standard control data and the labeling standard control data is smaller than a corresponding preset loss threshold, and may also include other conditions, which are not limited specifically herein.
S400, performing anomaly detection on the machine tool control code according to the standard control data and the control data to be detected to obtain an anomaly detection result.
In this embodiment, by comparing the standard control data with the control data to be inspected, it is determined whether the machine tool control code is abnormal. Specifically, the performing anomaly detection on the machine tool control code according to the standard control data and the control data to be detected to obtain an anomaly detection result includes: comparing the control data to be checked with the standard control data, and taking the abnormal machine tool control code as the abnormal check result when the comparison result meets a first judgment condition or a second judgment condition, wherein the first judgment condition is that the control step in any one control data to be checked is different from the standard step in any one standard control data, the second judgment condition is that at least one group of corresponding target control data to be checked and target standard control data exist, the control step in the target control data to be checked is the same as the standard step in the target standard control data, and the step process parameter in the target control data to be checked exceeds the standard parameter range in the target standard control data; and when the comparison result does not meet the first judging condition and the second judging condition, taking the machine tool control code as the abnormal checking result normally.
Further, when the abnormality detection result is that the machine tool control code is abnormal, a corresponding abnormality early warning prompt can be output to remind an operator to detect the corresponding control code, so that misoperation is avoided, and a workpiece or a numerical control machine tool is damaged.
In one application scenario, when the abnormality detection result is that the machine tool control code is abnormal, correction may also be performed according to standard control data. For example, when the step process parameter in the target control data to be checked exceeds the standard parameter range in the target standard control data, the step process parameter is corrected according to the standard parameter range and limited in the corresponding standard parameter range.
The numerical control machine control code automatic checking device provided by the invention is described below, and the numerical control machine control code automatic checking device described below and the numerical control machine control code automatic checking method described above can be correspondingly referred to each other. As shown in fig. 2, the automatic checking device for control codes of a numerical control machine tool includes:
the machining information obtaining module 210 is configured to obtain information of a part to be machined, target machining structure data, a machine tool control code, and a machine tool number corresponding to the machine tool to be controlled;
a to-be-inspected control data obtaining module 220, configured to obtain at least one to-be-inspected control data corresponding to the machine tool control code, where one to-be-inspected control data includes a control step and a step process parameter corresponding to the control step;
a standard control data obtaining module 230, configured to obtain at least one standard control data according to the to-be-machined component information, the target machining structure data, and the machine tool number, where one standard control data includes a standard step and a standard parameter range corresponding to the standard step;
and the abnormality checking module 240 is configured to perform abnormality checking on the machine tool control code according to the standard control data and the control data to be checked, so as to obtain an abnormality checking result.
It should be noted that, the specific functions of the automatic checking device for control codes of the numerically-controlled machine tool and the modules thereof may refer to the specific descriptions in the automatic checking method for control codes of the numerically-controlled machine tool, which are not described herein.
Fig. 3 illustrates a physical schematic diagram of an electronic device, as shown in fig. 3, where the electronic device may include: processor 310, communication interface (Communications Interface) 320, memory 330 and communication bus 340, wherein processor 310, communication interface 320, memory 330 accomplish communication with each other through communication bus 340. The processor 310 may call logic instructions in the memory 330 to perform a numerically controlled machine tool control code auto-check method comprising: acquiring information of a part to be machined, target machining structure data, a machine tool control code and a machine tool number corresponding to a machine tool to be controlled; acquiring at least one piece of control data to be inspected corresponding to the machine tool control code, wherein one piece of control data to be inspected comprises a control step and step technological parameters corresponding to the control step; acquiring at least one standard control data according to the to-be-machined part information, the target machining structure data and the machine tool number, wherein one standard control data comprises a standard step and a standard parameter range corresponding to the standard step; and performing exception checking on the machine tool control code according to the standard control data and the control data to be checked to obtain an exception checking result.
Further, the logic instructions in the memory 330 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, where the computer program product includes a computer program, where the computer program can be stored on a non-transitory computer readable storage medium, and when the computer program is executed by a processor, the computer can execute the method for automatically checking the control code of the numerical control machine provided by the above methods, and the method includes: acquiring information of a part to be machined, target machining structure data, a machine tool control code and a machine tool number corresponding to a machine tool to be controlled; acquiring at least one piece of control data to be inspected corresponding to the machine tool control code, wherein one piece of control data to be inspected comprises a control step and step technological parameters corresponding to the control step; acquiring at least one standard control data according to the to-be-machined part information, the target machining structure data and the machine tool number, wherein one standard control data comprises a standard step and a standard parameter range corresponding to the standard step; and performing exception checking on the machine tool control code according to the standard control data and the control data to be checked to obtain an exception checking result.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (6)

1. An automatic checking method for control codes of a numerical control machine tool is characterized by comprising the following steps:
acquiring information of a part to be machined, target machining structure data, a machine tool control code and a machine tool number corresponding to a machine tool to be controlled;
acquiring at least one piece of control data to be inspected corresponding to the machine tool control code, wherein one piece of control data to be inspected comprises a control step and step technological parameters corresponding to the control step;
acquiring at least one standard control data according to the to-be-machined part information, the target machining structure data and the machine tool number, wherein one standard control data comprises a standard step and a standard parameter range corresponding to the standard step;
performing exception checking on the machine tool control code according to the standard control data and the control data to be checked to obtain an exception checking result;
the obtaining at least one piece of control data to be checked corresponding to the machine tool control code comprises the following steps:
carrying out information identification on the machine tool control code through a trained code information identification model to obtain control information corresponding to the machine tool control code, wherein the control information is a statement for describing a specific control step and a step technological parameter;
performing statement length identification on the control information to obtain a statement length corresponding to the control information;
carrying out semantic complexity recognition on the control information to obtain the corresponding semantic complexity of the control information;
when the sentence length exceeds a preset sentence length threshold or the semantic complexity exceeds a preset semantic complexity threshold, processing the control information according to a preset corpus preprocessing step to obtain preprocessing information, and obtaining at least one piece of control data to be checked corresponding to the machine tool control code according to the preprocessing information, wherein the corpus preprocessing step comprises word segmentation, sentence segmentation and stop word elimination;
the step of carrying out semantic complexity recognition on the control information, after obtaining the corresponding semantic complexity of the control information, further comprises the following steps:
when the sentence length does not exceed a preset sentence length threshold value and the semantic complexity does not exceed a preset semantic complexity threshold value, acquiring at least one piece of control data to be checked corresponding to the machine tool control code according to the control information;
obtaining at least one piece of control data to be checked corresponding to the machine tool control code according to the preprocessing information or the control information, wherein the control data comprises: extracting entity relation from the preprocessing information or the control information according to a preset operation corpus to obtain corresponding control data to be checked;
the obtaining at least one standard control data according to the to-be-machined component information, the target machining structure data and the machine tool number comprises the following steps:
acquiring self-defined control information and a machine tool model corresponding to the machine tool to be controlled according to the machine tool number, wherein the self-defined control information comprises a plurality of self-defined control steps corresponding to the machine tool to be controlled and self-defined process parameter ranges corresponding to the self-defined control steps, and the self-defined control information is limiting information set by an operator or a control person for the machine tool to be controlled;
obtaining general control information corresponding to the machine tool to be controlled according to the machine tool model, wherein the general control information comprises a plurality of general control steps corresponding to the machine tool to be controlled and general technological parameter ranges corresponding to the general control steps, and the general control information is general limiting information for the machine tools of the same model;
acquiring at least one standard control data according to the to-be-processed component information, the target processing structure data, the custom control information and the general control information;
the obtaining at least one standard control data according to the to-be-processed component information, the target processing structure data, the custom control information and the general control information includes:
and inputting the to-be-processed part information, the target processing structure data, the custom control information and the general control information into a trained standard control data identification model to obtain standard control data output by the trained standard control data identification model.
2. The automatic checking method of control codes of a numerical control machine according to claim 1, wherein the standard control data recognition model is trained according to the steps of:
inputting training to-be-processed component information, training target processing structure data, training custom control information and training general control information in the training data into the standard control data identification model, and obtaining prediction standard control data output by the standard control data identification model, wherein the training data comprises a plurality of groups of training information groups, and each group of training information groups comprises the training to-be-processed component information, the training target processing structure data, the training custom control information, the training general control information and the marking standard control data;
and adjusting model parameters of the standard control data identification model according to the prediction standard control data and the labeling standard control data, and continuously executing the step of inputting the training to-be-processed part information, the training target processing structure data, the training custom control information and the training general control information in the training data into the standard control data identification model until preset training conditions are met, so as to obtain the trained standard control data identification model.
3. The automatic inspection method of a numerically controlled machine tool control code according to claim 1, wherein the performing an anomaly inspection on the machine tool control code according to the standard control data and the control data to be inspected to obtain an anomaly inspection result comprises:
comparing the control data to be checked with the standard control data, and taking the abnormal machine tool control code as the abnormal check result when the comparison result meets a first judgment condition or a second judgment condition, wherein the first judgment condition is that the control step in any one control data to be checked is different from the standard step in any one standard control data, the second judgment condition is that at least one group of corresponding target control data to be checked and target standard control data exist, the control step in the target control data to be checked is the same as the standard step in the target standard control data, and the step process parameter in the target control data to be checked exceeds the standard parameter range in the target standard control data;
and when the comparison result does not meet the first judging condition and the second judging condition, taking the machine tool control code as the abnormal checking result normally.
4. An automatic inspection device for control codes of a numerical control machine tool, comprising:
the processing information acquisition module is used for acquiring the information of the part to be processed, the target processing structure data, the machine tool control code and the machine tool number corresponding to the machine tool to be controlled;
the control data to be checked is used for acquiring at least one control data to be checked corresponding to the machine tool control code, wherein one control data to be checked comprises a control step and step technological parameters corresponding to the control step;
the standard control data acquisition module is used for acquiring at least one standard control data according to the to-be-machined component information, the target machining structure data and the machine tool number, wherein one standard control data comprises a standard step and a standard parameter range corresponding to the standard step;
the abnormality checking module is used for checking the abnormality of the machine tool control code according to the standard control data and the control data to be checked to obtain an abnormality checking result;
the obtaining at least one piece of control data to be checked corresponding to the machine tool control code comprises the following steps:
carrying out information identification on the machine tool control code through a trained code information identification model to obtain control information corresponding to the machine tool control code, wherein the control information is a statement for describing a specific control step and a step technological parameter;
performing statement length identification on the control information to obtain a statement length corresponding to the control information;
carrying out semantic complexity recognition on the control information to obtain the corresponding semantic complexity of the control information;
when the sentence length exceeds a preset sentence length threshold or the semantic complexity exceeds a preset semantic complexity threshold, processing the control information according to a preset corpus preprocessing step to obtain preprocessing information, and obtaining at least one piece of control data to be checked corresponding to the machine tool control code according to the preprocessing information, wherein the corpus preprocessing step comprises word segmentation, sentence segmentation and stop word elimination;
the step of carrying out semantic complexity recognition on the control information, after obtaining the corresponding semantic complexity of the control information, further comprises the following steps:
when the sentence length does not exceed a preset sentence length threshold value and the semantic complexity does not exceed a preset semantic complexity threshold value, acquiring at least one piece of control data to be checked corresponding to the machine tool control code according to the control information;
obtaining at least one piece of control data to be checked corresponding to the machine tool control code according to the preprocessing information or the control information, wherein the control data comprises: extracting entity relation from the preprocessing information or the control information according to a preset operation corpus to obtain corresponding control data to be checked;
the obtaining at least one standard control data according to the to-be-machined component information, the target machining structure data and the machine tool number comprises the following steps:
acquiring self-defined control information and a machine tool model corresponding to the machine tool to be controlled according to the machine tool number, wherein the self-defined control information comprises a plurality of self-defined control steps corresponding to the machine tool to be controlled and self-defined process parameter ranges corresponding to the self-defined control steps, and the self-defined control information is limiting information set by an operator or a control person for the machine tool to be controlled;
obtaining general control information corresponding to the machine tool to be controlled according to the machine tool model, wherein the general control information comprises a plurality of general control steps corresponding to the machine tool to be controlled and general technological parameter ranges corresponding to the general control steps, and the general control information is general limiting information for the machine tools of the same model;
acquiring at least one standard control data according to the to-be-processed component information, the target processing structure data, the custom control information and the general control information;
the obtaining at least one standard control data according to the to-be-processed component information, the target processing structure data, the custom control information and the general control information includes:
and inputting the to-be-processed part information, the target processing structure data, the custom control information and the general control information into a trained standard control data identification model to obtain standard control data output by the trained standard control data identification model.
5. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method for automatically checking control codes of a numerical control machine tool according to any one of claims 1 to 3 when executing the program.
6. A non-transitory computer-readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the numerical control machine control code automatic checking method according to any one of claims 1 to 3.
CN202310582388.XA 2023-05-23 2023-05-23 Automatic checking method, device, equipment and medium for control codes of numerical control machine tool Active CN116303105B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310582388.XA CN116303105B (en) 2023-05-23 2023-05-23 Automatic checking method, device, equipment and medium for control codes of numerical control machine tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310582388.XA CN116303105B (en) 2023-05-23 2023-05-23 Automatic checking method, device, equipment and medium for control codes of numerical control machine tool

Publications (2)

Publication Number Publication Date
CN116303105A CN116303105A (en) 2023-06-23
CN116303105B true CN116303105B (en) 2023-08-08

Family

ID=86785442

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310582388.XA Active CN116303105B (en) 2023-05-23 2023-05-23 Automatic checking method, device, equipment and medium for control codes of numerical control machine tool

Country Status (1)

Country Link
CN (1) CN116303105B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101436051A (en) * 2007-11-16 2009-05-20 北京数码大方科技有限公司 Method for switching and checking numerical control machining code
CN103048952A (en) * 2013-01-22 2013-04-17 北京数码大方科技股份有限公司 Verification method, device and system of machine tool machining codes
CN107290980A (en) * 2017-07-11 2017-10-24 深圳国泰安教育技术股份有限公司 Method, terminal device and the computer-readable recording medium of machining simulation
CN115994099A (en) * 2023-03-22 2023-04-21 中科航迈数控软件(深圳)有限公司 Automatic checking method, device and equipment for numerical control machine tool codes and storage medium
CN116088419A (en) * 2023-03-22 2023-05-09 中科航迈数控软件(深圳)有限公司 Numerical control machine tool processing control method, system and related equipment based on parameter optimization

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101436051A (en) * 2007-11-16 2009-05-20 北京数码大方科技有限公司 Method for switching and checking numerical control machining code
CN103048952A (en) * 2013-01-22 2013-04-17 北京数码大方科技股份有限公司 Verification method, device and system of machine tool machining codes
CN107290980A (en) * 2017-07-11 2017-10-24 深圳国泰安教育技术股份有限公司 Method, terminal device and the computer-readable recording medium of machining simulation
CN115994099A (en) * 2023-03-22 2023-04-21 中科航迈数控软件(深圳)有限公司 Automatic checking method, device and equipment for numerical control machine tool codes and storage medium
CN116088419A (en) * 2023-03-22 2023-05-09 中科航迈数控软件(深圳)有限公司 Numerical control machine tool processing control method, system and related equipment based on parameter optimization

Also Published As

Publication number Publication date
CN116303105A (en) 2023-06-23

Similar Documents

Publication Publication Date Title
CN116009480B (en) Fault monitoring method, device and equipment of numerical control machine tool and storage medium
CN115981240B (en) Method, device, equipment and medium for determining fault cause of numerical control machine tool
CN116021339B (en) Method and related device for monitoring cutting force of main shaft of numerical control machine tool
CN115994099B (en) Automatic checking method, device and equipment for numerical control machine tool codes and storage medium
CN111680808B (en) Fixed asset scrapping automation method based on RPA robot
CN116303105B (en) Automatic checking method, device, equipment and medium for control codes of numerical control machine tool
CN113947597A (en) Industrial defect detection method, device and medium based on shielding reconstruction
CN116184930B (en) Fault prediction method, device, equipment and storage medium for numerical control machine tool
CN107590303B (en) Method for quickly searching and correcting abnormal graph in layout data
CN113343677A (en) Intention identification method and device, electronic equipment and storage medium
CN112363465A (en) Expert rule set training method, trainer and industrial equipment early warning system
CN114637782A (en) Method and device for generating text aiming at structured numerical data
CN110633204B (en) Program defect detection method and device
CN113468882A (en) Method for identifying similar spare parts
CN109522563B (en) Method and device for automatically judging statement translation completion
CN116330041B (en) Fault detection method, device, equipment and medium for numerical control machining transmission device
CN111813593A (en) Data processing method, equipment, server and storage medium
CN117112791B (en) Unknown log classification decision system, method and device and readable storage medium
CN113254595B (en) Chatting recognition method and device, electronic equipment and storage medium
CN110837694B (en) Rotary machining feature recognition method and device
CN109933049B (en) Power dispatching log fault classification method and system
CN110850826B (en) Part quality detection method for changing environment of complex part engineering
CN114139609A (en) Image recognition technology-based automatic checking method for relay protection setting value
CN109870977B (en) Data control method and system for machine tool, computer readable storage medium and machine tool
CN117436815A (en) Flow intelligent approval method based on natural language big model

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
GR01 Patent grant
GR01 Patent grant