Disclosure of Invention
In order to overcome the problems in the related art at least to a certain extent, the application provides the analysis processing method and the system for the CAM cutting tool path overload, which are beneficial to improving the identification processing effect of the cutting tool path overload and further improving the safety of CAM cutting.
In order to achieve the purpose, the following technical scheme is adopted in the application:
in a first aspect,
the application provides an analysis processing method for CAM cutting tool path overload, which comprises the following steps:
obtaining a cutter path, and obtaining a plurality of path sections according to the cutter path, wherein the path sections form an arrangement sequence according to the advancing direction of a cutter;
carrying out Z-direction lifting treatment on each path section;
and analyzing whether interference exists between each path section subjected to lifting processing and the remnant material by using a preset initial residual model of the current process, and processing when the interference exists.
Further, the performing Z-direction lifting processing on each path segment includes:
and adding a preset adjustment coefficient value to the undercut step pitch in the path section to obtain a lifting value, and carrying out Z-direction lifting processing on the corresponding path section according to the obtained lifting value.
Further, the analyzing whether there is interference between each of the path segments and the remnant after the lifting processing by using a preset initial residual model of the current process, and processing when there is interference, includes:
determining a current analog head section in the plurality of path sections after the lifting processing;
analyzing whether interference exists between the current analog first section and the residual material or not by using a preset initial residual model of the current process, and processing when the interference exists;
sequentially judging whether the path section after the current analog first section and the current analog first section are the same type sections one by one until judging that the path section and the current analog first section are not the same type sections;
and for the path section which is the same as the current analog first section, analyzing whether interference exists between the path section and the residual material or not, and directly adopting the interference analysis processing result of the current analog first section.
Further, the determining a current phase initial segment in the plurality of path segments after the lifting process includes:
and directly determining the first path segment in the plurality of path segments as the current analog first segment, and then determining the determined path segment which is not the same kind of segment as the current analog first segment as a new current analog first segment whenever the path segment which is not the same kind of segment as the current analog first segment is determined.
Further, the analyzing whether there is interference between each of the path segments and the remnant after the lifting processing by using a preset initial residual model of the current process, and processing when there is interference, includes:
and analyzing whether interference exists between each path section and the remnant material one by one in sequence by using a preset initial remnant model of the current process, and processing when the interference exists.
Further, the processing in the presence of interference includes:
if the interference between the path section and the residual material is analyzed, generating an abnormal section tool path with a smaller diameter and a preset value according to the path section with the interference between the path section and the residual material;
re-analyzing whether interference exists between the abnormal section tool path and the defective material;
if the interference does not exist, replacing the corresponding path section with the interference between the abnormal section guide rail and the residual material;
and if the interference still exists, identifying the path section which has the interference with the defective material as a cutting overload path section, and carrying out abnormity alarm.
Further, the method further comprises:
and when no interference exists in the analysis, calculating the remnant materials of each path section, and processing the initial remnant model of the current process according to the calculated remnant materials to generate an initial remnant model for the next process.
Further, the method further comprises:
detecting a preset operation, and executing the steps of obtaining a tool path and corresponding subsequent steps when the preset operation is stopped for a preset time; and when the preset operation is detected to be restarted, stopping executing the steps of obtaining the cutter path and the corresponding follow-up steps, and when the preset operation is detected to be stopped for the preset time again, continuing executing the steps of obtaining the cutter path and the corresponding follow-up steps.
In a second aspect of the present invention,
the application provides an analytic processing system that CAM cutting tool path is overloaded includes:
program safety inspection scatter detection center includes: one or more servers for implementing the method of any one of the above.
Further, still include:
the centralized detection center of program security check includes: the system comprises one or more servers, a program safety inspection decentralized detection center and a program safety inspection system, wherein the servers are used for performing collision over-cutting inspection on a preset project to be inspected, and performing a path data acquisition task in the collision over-cutting inspection process to collect tool path data for the program safety inspection decentralized detection center.
This application adopts above technical scheme, possesses following beneficial effect at least:
this application is torn open into a plurality of route sections of sequence arrangement with the cutter route, carries out Z direction promotion processing with each route section, utilizes the initial residual model of preset current process, whether there is interference between each route section after the analysis promotion processing and the defective material to handle when there is interference, and then help promoting cutting tool rail overload recognition processing effect, promote the security of CAM cutting.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail below. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the examples given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for analyzing and processing CAM cutting track overload according to an exemplary embodiment, where as shown in fig. 1, the method for analyzing and processing CAM cutting track overload includes the following steps:
step S101, a cutter path is obtained, and a plurality of path sections are obtained according to the cutter path, wherein the path sections form an arrangement sequence according to the advancing direction of a cutter.
Specifically, the tool path is a path followed by a tool when manufacturing a product, a tool path process problem needs to be checked in CAM cutting, a tool path has a plurality of path sections, the path sections are selected one by one according to the advancing direction of the tool, and a single-section path is separated from the whole path.
And step S102, performing Z-direction lifting processing on each path segment.
Specifically, the Z direction is the Z-axis direction in the CAM, and the path segment performs Z-direction lifting processing for matching with the initial residual model of the current step in step S103 described below.
In one embodiment, the performing the Z-direction lifting process on each path segment includes:
and adding a preset adjustment coefficient value to the undercut step pitch in the path section to obtain a lifting value, and carrying out Z-direction lifting processing on the corresponding path section according to the obtained lifting value.
Specifically, the adjustment coefficient value is flexibly set according to specific needs, for example, set to 0.5 mm.
And S103, analyzing whether interference exists between each path section subjected to lifting processing and the residual material by using a preset initial residual model of the current process, and processing when the interference exists.
Specifically, a standard initial detection residual model needs to be created in advance, please refer to fig. 2, fig. 2 is a schematic diagram of the standard initial detection residual model according to an exemplary embodiment, fig. 2 shows that the model is created by powerfill software, and in practical application, in order to meet the detection requirement, the following parameter settings may be performed: the line spacing is 5mm, the tolerance is 0.2mm, and the allowance is 0.02mm, and the detection requirements can be met and the detection process can be accelerated under the parameter setting. The standard initial detection residual model is the situation of workpiece residual material when the programming procedure is started, and the accuracy of an analysis result can be ensured only by ensuring the truth and the effectiveness of the residual.
In one embodiment, the analyzing, by using a preset initial residual model of the current process, whether interference exists between each of the path segments after the lifting processing and the remnant, and processing when the interference exists includes:
determining a current analog head section in the plurality of path sections after the lifting processing;
analyzing whether interference exists between the current analog first section and the residual material or not by using a preset initial residual model of the current process, and processing when the interference exists;
sequentially judging whether the path section after the current analog first section and the current analog first section are the same type sections one by one until judging that the path section and the current analog first section are not the same type sections;
and for the path section which is the same as the current analog first section, analyzing whether interference exists between the path section and the residual material or not, and directly adopting the interference analysis processing result of the current analog first section.
Further, the determining a current phase initial segment in the plurality of path segments after the lifting process includes:
and directly determining the first path segment in the plurality of path segments as the current analog first segment, and then determining the determined path segment which is not the same kind of segment as the current analog first segment as a new current analog first segment whenever the path segment which is not the same kind of segment as the current analog first segment is determined.
Under the above embodiment scheme, detection efficiency can be greatly improved, and the time length of the automatic detection process is shortened. Specifically, the 1 st segment of tool path is read, the tool path separating operation is executed, the 1 st segment of tool path is separated independently, the relation between the tool path and the residual material state is analyzed, whether interference exists or not is determined, if interference does not exist, cutting overload does not exist, and if interference exists, cutting overload processing is performed. When entering the 2 nd section of tool path, the 2 nd section of tool path is subjected to the same type section judgment, which can be specifically judged as follows: and (3) analyzing the line length, the center coordinate number of the tool path region and the height difference data of the 2 nd section of tool path data, if the difference between the line length and the 1 st section of tool path data is less than 0.5mm, the difference between the center coordinates of the tool paths is within 0.6mm, and the height difference of the tool paths is within one undercut step plus 0.1mm (the undercut step of each tool path is different and can be read), so that the lower section tool paths meeting three conditions can be directly skipped, and the analysis of the relation with the state of the defective materials is not performed any more. The 3 rd section of tool path and the like are analogized, so that the effect of saving time and improving the detection and identification efficiency is achieved. The technical principle of the method utilizes the similar stable and uniform cutting phenomenon, namely that when a train runs, the whole body can be fed as long as the head can be fed into a track, the cutter rail similar section only carries out the calculation relation between the track of the first section and the residual material state, the result of the cutter rail section in the similar area is the same as the relation of the first section, and if the first section of the similar cutter rail has no interference residual material problem, the similar section in the area also has no interference problem. When a path section which does not meet any one of the three parameter conditions appears, the similar section is judged to be finished, meanwhile, the judged path section which is not the similar section is used as a new current analogy first section, the remnant relation calculation is carried out, and the process is repeated until the path section is finished, and the detection and the identification of the whole tool path can be finished.
Referring to fig. 3, fig. 3 is a flow chart illustrating identification of a tool path cutting overload according to an exemplary embodiment. In another embodiment, the analyzing, by using a preset initial residual model of the current process, whether there is interference between each of the path segments after the lifting processing and the remnant, and processing when there is interference, includes:
and analyzing whether interference exists between each path section and the remnant material one by one in sequence by using a preset initial remnant model of the current process, and processing when the interference exists.
Specifically, the scheme of the embodiment performs full detection on all path sections, so that the overload recognition degree of the cutting tool path can be further improved, but the time length of the detection recognition calculation process can be increased.
In one embodiment, said processing in the presence of interference comprises:
if the interference between the path section and the residual material is analyzed, generating an abnormal section tool path with a smaller diameter and a preset value according to the path section with the interference between the path section and the residual material;
re-analyzing whether interference exists between the abnormal section tool path and the defective material;
if the interference does not exist, replacing the corresponding path section with the interference between the abnormal section guide rail and the residual material;
and if the interference still exists, identifying the path section which has the interference with the defective material as a cutting overload path section, and carrying out abnormity alarm.
Specifically, referring to fig. 3, in fig. 3, an example that the diameter of the tool is smaller than a preset value of 0.5mm is shown, a certain tolerance error exists in the residue calculation process, and a problem that the residue tolerance is larger may exist, so that part of normal machining paths are mistakenly identified as abnormal overload paths. The method for generating the cutting tool with the diameter being smaller than 0.5mm is used for carrying out interference check on a path and scraps by combining with the characteristics of the cutting tool, and if the interference exists, the cutting tool can be judged to be an overload cutting tool rail section.
Referring to fig. 4, fig. 4 is a flowchart illustrating a method for analyzing and processing CAM cutting track overload according to another exemplary embodiment, where as shown in fig. 4, the method for analyzing and processing CAM cutting track overload further includes the following steps:
and step S104, when no interference exists in the analysis, calculating the remnant materials of each path section, and processing the initial remnant model of the current process according to the calculated remnant materials to generate an initial remnant model for the next process.
Specifically, when the initial residual model is the first process, please refer to fig. 5, where fig. 5 is a flowchart illustrating an initial residual model flow according to another exemplary embodiment, a blank is created according to the size of the material and an initial detection residue is produced, after the programming is completed, the initial detection residue of the present process is copied, all paths are added to the produced residue, then the residue is calculated to generate an initial detection residue of the next process, after the calculation is completed, the residual parameters are removed, and after the present process is completed, the detection residue of the next process is uploaded to the system, so as to facilitate the programming and downloading of the next process.
In one embodiment, the method further comprises:
detecting a preset operation, and executing the steps of obtaining a tool path and corresponding subsequent steps when the preset operation is stopped for a preset time; and when the preset operation is detected to be restarted, stopping executing the steps of obtaining the cutter path and the corresponding follow-up steps, and when the preset operation is detected to be stopped for the preset time again, continuing executing the steps of obtaining the cutter path and the corresponding follow-up steps.
Specifically, for example, when the mouse identification is idle based on the regional computer resource, after the mouse stops operating for 10min, the corresponding background application in the process automatically obtains the detection data from the server, reads the file position and program information of the virtual simulation process from the data, and performs the simulation one by one according to the path sequence of the path list. In the simulation process, if the mouse has an operation event, the detection process automatically exits, so that if the program simulation in some program path lists is not completed, the system can automatically record the sequence numbers of the interrupt paths simulated in the path lists, feed back the sequence numbers to the system data and mark that the inspection is not completed, and when the simulation detection is started again next time, the corresponding background application automatically starts to execute the simulation detection downwards according to the sequence number of the interrupt at the last time. In practical application, a considerable number of program simulation segments exceeds 1 ten thousand, the simulation time is recorded according to historical simulation time, the simulation detection time is required to be as high as 32H, and if a breakpoint continuous detection function is not performed, the program cannot complete simulation detection and obtain a result.
Referring to fig. 6, fig. 6 is a block diagram illustrating an analysis processing system for CAM cutting blade overload according to an exemplary embodiment, and as shown in fig. 6, the analysis processing system for CAM cutting blade overload 6 includes:
program safety check decentralization detection center 61, including: one or more servers for implementing the method of any one of the above.
Program safety inspection centralized detection center 62 includes: and the one or more servers are used for performing collision over-cutting inspection on a preset item to be inspected, and performing a path data acquisition task in the collision over-cutting inspection process to collect tool path data for the program security inspection decentralized detection center 61.
Specifically, the centralized program security inspection center 62 mainly performs collision over-cutting inspection on the items to be inspected in the project data table, and the collision over-cutting inspection mainly prevents technicians from forgetting to inspect the programmed paths programmed by the technicians, so that potential safety hazards exist and the programs flow into field processing, and equipment accidents are caused. The inspection process does not carry out layer-by-layer analysis on each path in the numerical control program, the execution speed is high, and generally, the collision over-cutting inspection of one file can be completed in several minutes. If the program with potential safety hazard is found in the detection process, the system automatically sends an announcement mail to prompt, and the modification is required.
The centralized program safety check detection center 62 performs a program path data collection task in addition to the collision over-cut check function, and collects data for the subsequent program safety check decentralized detection center 61, wherein the data includes data such as program path simulation number, program tool information, program processing time and the like.
When the security check is performed, the centralized program security check center 62 needs to transmit the file from the shared location of the remote computer to the local computer, so as to prevent interruption of the data of the file data due to network reasons during direct access. The transfer process is a separate process, which is controlled by the number of buffer files on the host interface, and is a buffer process, which generally sets reasonable parameters to prevent over-transfer or under-transfer. The detection type can be set, two items of 'collision over-cut' and 'residual model inspection' can be selected alternatively, if only collision over-cut inspection is carried out, only collision over-cut items can be selected, at the moment, the inspection process does not collect detection data for the security inspection decentralized detection center 61 of the subsequent program any more, and the path process problem cannot be inspected. Otherwise, when the 'residual model inspection' item is selected, the program path process problem data is normally collected and stored in a warehouse. The system setting can also set how many file checks are performed simultaneously, for example, the maximum number of opening is 7, which is set according to the operation capability of the computer, and generally set to 4, which may cause the problem of system application jam when large file detection is performed simultaneously.
The specific application of the program safety check distribution detection center 61 has been described in detail in the related embodiment of the CAM cutting tool path overload analysis processing method, and will not be described in detail herein, and reference is made thereto.
In the field of die numerical control machining program programming industry, if careful virtual simulation machining detection before machining is not carried out, technicians are difficult to really ensure hundreds of safety of programs, no problem exists in actual machining of part of programs, and the phenomenon of unreasonable and overlarge cutting possibly exists, so that the problem of quality cannot be caused, and the machine tool precision and the machining tool are damaged chronically due to overlarge cutting amount. The process problem is very hidden, general manual inspection cannot be found, the phenomenon is not reflected by obvious adverse results, and the process problem cannot be regarded as important. The process problem can be identified in the virtual numerical control program machining simulation detection system, because the system sets simulation detection standard parameters, the machining cutter interference exceeds the load cutting amount of the machining cutter, the machining cutter interference is reported and corrected, the hidden trouble of the unreasonable process problem detected by the simulation of the application system can be avoided to the greatest extent, and the system has the greatest advantage.
The recognition scope of the system is further understood by several problem applications.
(A) Referring to fig. 7, fig. 7 is a schematic diagram illustrating a corner collision class according to an exemplary embodiment, where side corner scrap is excessive and a collision equipment accident occurs at a corner of a machined bottom planar path.
(B) Referring to fig. 8, fig. 8 is a schematic diagram illustrating a wiping tool shank according to an exemplary embodiment, in which the tool edge is not long enough, resulting in the wiping tool shank, and a collision accident occurs at the tool shank without cutting ability.
(C) Referring to fig. 9, fig. 9 is a schematic diagram illustrating a path fault class according to an exemplary embodiment, in which a middle portion of a machining program path is not continuously lacked, resulting in a fault, and an equipment collision accident occurs at a position where machining starts at a lower layer of the fault.
(D) Referring to fig. 10, fig. 10 is a schematic diagram illustrating a connection error class according to an exemplary embodiment, where a process path connection part is in error and a collision facility accident occurs at a layer-to-layer connection transition.
(E) Referring to fig. 11, fig. 11 is a schematic diagram illustrating a path processing sequence error class according to an exemplary embodiment, in which a processing path processes a bottom layer first and then a top layer has a sequence error, and an equipment collision accident occurs at the beginning of processing.
(F) Referring to fig. 12, fig. 12 is a schematic diagram illustrating path interference remnant types according to an exemplary embodiment, where the path interference remnant types are relatively wide, and include a direct processing plane without remnant removal, a large amount of remnant interference caused by a corner cleaning path due to a reference processing path error, and the like, which are all accidents of large collision equipment, and once an accident occurs, the precision of the main shaft of the equipment is seriously damaged.
After the virtual numerical control program is processed, simulated and detected, and the online practical verification and application are carried out, a great breakthrough can be made in the identification of the potential safety hazard of the processing program path process problem, the potential safety hazard exceeds the related technology in the industry field, basically, the related potential safety hazard problem can be identified in the system, and the equipment accident can be further reduced.
It is understood that the same or similar parts in the above embodiments may be mutually referred to, and the same or similar parts in other embodiments may be referred to for the content which is not described in detail in some embodiments.
It should be noted that, in the description of the present application, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present application, the meaning of "plurality" means at least two unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as: represents modules, segments or portions of code which include one or more executable instructions for implementing specific logical functions or steps of a process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present application.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.