CN113569309A - Method and system for generating double-channel mirror image processing program based on finite-state machine - Google Patents
Method and system for generating double-channel mirror image processing program based on finite-state machine Download PDFInfo
- Publication number
- CN113569309A CN113569309A CN202110818194.6A CN202110818194A CN113569309A CN 113569309 A CN113569309 A CN 113569309A CN 202110818194 A CN202110818194 A CN 202110818194A CN 113569309 A CN113569309 A CN 113569309A
- Authority
- CN
- China
- Prior art keywords
- channel
- synchronous
- file
- workpiece
- slave
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 230000001360 synchronised effect Effects 0.000 claims abstract description 126
- 238000012545 processing Methods 0.000 claims abstract description 104
- 238000002360 preparation method Methods 0.000 claims abstract description 62
- 238000004458 analytical method Methods 0.000 claims abstract description 33
- 238000003754 machining Methods 0.000 claims abstract description 17
- 230000007704 transition Effects 0.000 claims abstract description 16
- 238000013459 approach Methods 0.000 claims description 10
- 230000008569 process Effects 0.000 claims description 8
- 230000009977 dual effect Effects 0.000 description 6
- 238000010276 construction Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 3
- 239000012636 effector Substances 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000006872 improvement Effects 0.000 description 2
- 238000003801 milling Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000012805 post-processing Methods 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 206010048669 Terminal state Diseases 0.000 description 1
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000005856 abnormality Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 210000001503 joint Anatomy 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/12—Geometric CAD characterised by design entry means specially adapted for CAD, e.g. graphical user interfaces [GUI] specially adapted for CAD
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/17—Mechanical parametric or variational design
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
- G06Q50/04—Manufacturing
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Abstract
The invention belongs to the technical field related to numerical control machining, and discloses a method and a system for generating a double-channel mirror image machining program based on a finite-state machine, wherein the method comprises the following steps: constructing a synchronous preparation module, a synchronous processing module and a synchronous removing module according to the synchronous state of a main channel and a slave channel in the mirror image processing original tool path file; inputting the original tool path file into the module so as to modify the original tool path file into a format file; analyzing the format file by adopting a slave state machine to obtain an analysis result; setting state transition conditions and two states of state transition in a main state machine; and continuously calling and identifying the analysis result by adopting a main state machine so as to generate a corresponding mirror image processing program. The corresponding mirror image processing program can be obtained only by correspondingly inputting the mirror image processing tool path file through constructing the modularized input interface, and the special mark meaning in the mirror image processing tool path file does not need to be learned additionally, so that the application range is wide, the universality is strong, and the generation efficiency is high.
Description
Technical Field
The invention belongs to the technical field related to numerical control machining, and particularly relates to a double-channel mirror image machining program generation method and system based on a finite-state machine.
Background
The mirror image processing technology is a novel thin-wall workpiece thickness reduction technology and is mainly used for processing common parts of aerospace equipment. The thin-wall structural part has small thickness, large scale, low strength and poor rigidity, and compared with the mirror image processing technology, the traditional thickness reduction method is easy to cause deformation and uneven wall thickness, and the effect is very unsatisfactory. A system using the mirror image processing technique is generally composed of two structurally independent multi-axis linkage machines, and uses dual-channel control. A single numerical control system channel is a complete independent control unit, and the double channels of mirror image processing represent that the system can execute the tasks of two control units at the same time: the main channel control end effector is a multi-axis linkage machine tool for processing a cutter, the auxiliary channel control end effector is a multi-axis linkage machine tool for a supporting device, and two sides of the auxiliary channel control end effector are in mirror symmetry relation with a workpiece during synchronous processing.
The mirror image processing system controls the movement of the machine tool in different channels according to the instructions of the processing codes. Compared with the traditional single-channel multi-axis machining code and tool path file one-to-one, the double channels of the mirror image machining system use different machining codes based on the same tool path file, namely a code generation method special for mirror image machining is needed to process the tool path file and generate two codes for different channels to use, and the machining codes also contain a special mirror image machining instruction to realize the matching between the double channels at different stages of mirror image machining.
The chinese patent CN110737245A discloses a post-processing method and system for dual five-axis mirror milling, and the post-processing method only matches with a specific dual five-axis mirror milling machine tool, and is not suitable for popularization and use on other types of machine tools, and has great limitations. The method for generating the mirror image processing code is limited at present, is specially designed for some machine tools with special models, and has no universality, so that a method and a system for generating a dual-channel mirror image processing program which are wide in application range, high in universality and high in generation efficiency are urgently needed to be designed.
Disclosure of Invention
Aiming at the defects or improvement requirements in the prior art, the invention provides a method and a system for generating a double-channel mirror image processing program based on a finite-state machine, the corresponding mirror image processing program can be obtained by establishing a modularized input interface and only correspondingly inputting a mirror image processing tool path file, the special mark meaning in the mirror image processing tool path file does not need to be learned additionally, the application range is wide, the universality is strong, and the generation efficiency is high.
To achieve the above object, according to an aspect of the present invention, there is provided a dual channel mirror image processing program generating method based on a finite state machine, the method including: s1: constructing a synchronous preparation module, a synchronous processing module and a synchronous removing module according to the synchronous state of a main channel and a slave channel in an original tool path file in mirror image processing, wherein the synchronous preparation module, the synchronous processing module and the synchronous removing module are respectively marked by different instructions; s2: respectively inputting a synchronous preparation stage file, a synchronous processing stage file and a synchronous removing stage file in an original tool path file into a synchronous preparation module, a synchronous processing module and a synchronous removing module so as to modify the original tool path file into a format file; s3: analyzing the format file by adopting a slave state machine to obtain an analysis result; s4: setting state transition conditions in a master state machine as instruction marks corresponding to the master channel and the slave channel, and setting two states of state transition in the master state machine as an output tool path file and a pause output tool path file; s5: and adopting the main state machine in the step S4 to continuously call and identify the analysis result so as to generate a corresponding mirror image processing program.
Preferably, the building synchronous preparation module comprises a building start approaching workpiece instruction, a user-defined interface instruction and an end approaching workpiece instruction, wherein the user-defined interface instruction is used for a user to input a file of a synchronous preparation stage in the original tool path file.
Preferably, the construction synchronous preparation module comprises a construction main channel preparation submodule and a slave channel preparation submodule, wherein the main channel preparation submodule comprises a main channel workpiece approaching starting instruction, a main channel motion user defined interface instruction and a main channel workpiece approaching ending instruction; the slave channel preparation sub-modules each include a start of channel access workpiece command, a slave channel run user defined interface command, and an end of channel access workpiece command.
Preferably, the synchronous processing module is constructed by a synchronous processing start instruction, a user-defined interface and a synchronous end instruction for constructing the main channel and the slave channel, wherein the user-defined interface is used for a user to input files of synchronous processing stages of the main channel and the slave channel in the original tool path file.
Preferably, the step of constructing the synchronous removing module comprises a step of constructing a command of starting to leave from the workpiece to be processed, a user-defined interface command and a command of ending to leave from the workpiece to be processed, wherein the user-defined interface command is used for a user to input a file of a synchronous removing stage in the original tool path file.
Preferably, the construction synchronization removing module comprises a construction main channel removing submodule and a slave channel removing submodule, wherein the main channel removing submodule comprises a main channel far-away workpiece instruction, a main channel motion user defined interface instruction and a main channel far-away workpiece instruction; the slave channel preparation sub-modules each include a start of channel away from workpiece instruction, a run of user defined interface instruction from channel and an end of channel away from workpiece instruction.
Preferably, the synchronous preparation module comprises a main channel workpiece approach starting instruction, a main channel workpiece approach ending instruction, a slave channel workpiece approach starting instruction and a slave channel workpiece approach ending instruction; the synchronous release module includes a main channel instruction of starting to leave the workpiece, a main channel instruction of ending to leave the workpiece, a secondary channel instruction of starting to leave the workpiece, and a secondary channel instruction of ending to leave the workpiece, and the continuously invoking and identifying the parsing result in step S5 by using the main state machine in step S4 specifically includes: when the main state machine identifies that the slave channel starts to approach the workpiece instruction or the slave channel starts to be far away from the workpiece instruction, the main channel output tool path file state is converted into a main channel pause tool path file state; when the main state machine identifies that the slave channel is close to the workpiece instruction or the slave channel is far from the workpiece instruction, the state of the main channel for pausing the output of the tool path file is converted into the state of the main channel for outputting the tool path file; when the main state machine identifies that the main channel starts to approach the workpiece instruction or the main channel starts to be far away from the workpiece instruction, the state of outputting the tool path file from the auxiliary channel is converted into the state of pausing outputting the tool path file from the auxiliary channel; and when the main state machine identifies that the main channel is close to the workpiece instruction or the main channel is far from the workpiece instruction, the slave channel pause output tool path file state is converted into a slave channel output tool path file state.
Preferably, in step S3, the analyzing the format file by using the slave state machine is to perform single-line analysis on the format file by using the slave state machine, send the format file to the master state machine if the analysis result is correct, and stop the analysis if the result is wrong.
Preferably, the file interfaces of the master state machine and the slave state machine are set as abstract interfaces to realize the receiving processing of different types of files.
According to another aspect of the present invention, there is provided a finite state machine based two-channel motion mirror machining program generation system, the system comprising a modular subsystem and a finite state machine subsystem, wherein: the modularized subsystem is used for generating format files and comprises a synchronous preparation module, a synchronous processing module and a synchronous removing module which are marked by different instructions and constructed according to the synchronous state of a main channel and a slave channel in an original tool path file, wherein the synchronous preparation module, the synchronous processing module and the synchronous removing module are respectively used for inputting a synchronous preparation stage file, a synchronous processing stage file and a synchronous removing stage file in the original tool path file; the finite-state machine subsystem comprises an analysis module and a program generation module, wherein the analysis module is used for analyzing the format file by adopting the slave state machine, the program generation module is used for calling the analysis result of the analysis module, outputting and suspending the cutter path file according to the instruction mark in the analysis result, and then finally generating a double-channel mirror image processing program.
Generally speaking, compared with the prior art, the method and the system for generating the double-channel mirror image processing program based on the finite-state machine have the following beneficial effects:
1. the modules are correspondingly constructed according to the synchronous state of the two channels in the original tool path file, so that the original tool path file can be input in a modularized mode, a user only needs to add the original tool path file at the corresponding position of the corresponding module, the user does not need to learn the special meaning in the mirror image processing tool path file, and the application range is wide.
2. The original tool path file is processed by the finite-state machine and then modified into a program with dual-channel processing control information, so that mirror processing can be realized, automatic programming butt joint is realized without manual participation, the automation degree is high, and the requirement on the technical level of operators is obviously reduced.
3. By using the format file generation method and the mirror image processing program generation method based on the finite-state machine, the safe and synchronous computer generation of the processing program of the multi-type mirror image processing system can be realized, the manual code compiling is avoided, the labor cost is reduced, the subsequent expansion traversal is realized, and the use and maintenance cost is low.
Drawings
FIG. 1 is a diagram of steps of a dual channel mirror image processing program generation method based on a finite state machine according to the present application;
FIG. 2 is a schematic diagram of a modular subsystem of the present application for a two-channel mirror image process generation system based on a finite state machine;
FIG. 3 is a finite state machine subsystem of the present application finite state machine based dual channel mirror process generation system;
fig. 4 is a schematic view of a process flow of a mirror machining program generated using a dual-channel mirror machining program generation method based on a finite state machine.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
Referring to fig. 1, the present invention provides a method for generating a dual channel mirror image processing program based on a finite state machine, which includes the following steps S1-S5.
S1: constructing a synchronous preparation module, a synchronous processing module and a synchronous removing module according to the synchronous state of a main channel and a slave channel in an original tool path file in mirror image processing, wherein the synchronous preparation module, the synchronous processing module and the synchronous removing module are respectively marked by different instructions;
in this embodiment, the synchronization state of the master channel and the slave channel in the original tool path file may be divided into three stages, i.e., a synchronization preparation stage, a synchronization processing stage, and a synchronization release stage, as shown in fig. 2, a synchronization preparation module, a synchronization processing module, and a synchronization release module are correspondingly constructed. The synchronous preparation module, the synchronous processing module and the synchronous removing module are respectively distinguished and constructed by adopting different instruction marks.
The synchronous preparation module comprises a workpiece approaching starting instruction, a user-defined interface instruction and a workpiece approaching ending instruction, wherein the user-defined interface instruction is used for a user to input a file of a synchronous preparation stage in the original tool path file.
The synchronous preparation stage comprises the conditions that the slave channel moves firstly, the main channel waits statically, the slave channel waits statically after operation is finished, and the main channel moves to be finished, so that the synchronous preparation module comprises a main channel construction preparation submodule and a slave channel preparation submodule, wherein the main channel preparation submodule comprises a main channel workpiece approaching starting instruction, a main channel movement user defined interface instruction and a main channel workpiece approaching finishing instruction; the slave channel preparation sub-modules each include a start of channel access workpiece command, a slave channel run user defined interface command, and an end of channel access workpiece command.
The synchronous processing module comprises synchronous processing starting instructions of a main channel and a slave channel, a user defined interface and a synchronous ending instruction, wherein the user defined interface is used for inputting files of synchronous processing stages of the main channel and the slave channel in the original tool path file by a user.
The synchronous removing module comprises a command for starting to leave away from the workpiece to be processed, a user-defined interface command and a command for finishing leaving away from the workpiece to be processed, wherein the user-defined interface command is used for a user to input a file of a synchronous removing stage in the original tool path file.
Further, the synchronous removing module comprises a main channel removing submodule and a slave channel removing submodule, wherein the main channel removing submodule comprises a main channel workpiece starting instruction, a main channel motion user defined interface instruction and a main channel workpiece finishing instruction; the slave channel preparation sub-modules each include a start of channel away from workpiece instruction, a run of user defined interface instruction from channel and an end of channel away from workpiece instruction. As shown in table 1 and fig. 2 below, where X is 0 represents a master channel and X is 1 represents a slave channel:
TABLE 1
In fig. 2, except that the GOTO command in the dashed box requires the user to input the command according to the actual processing path, the rest are fixed code templates without modification. The above instructions are marked with respective groups, and the instruction marks of other groups are not allowed to appear between the same group: a group of CH (X) -REACH-START and CH (X) -REACH-END with the same channel number X is used for marking a two-channel synchronous preparation stage in the mirror image processing tool path; FOLLOW _ ON and FOLLOW _ OFF are a group, and a double-channel synchronous processing stage in the mirror image processing tool path is marked; CH (X) LEAVE _ START and CH (X) LEAVE _ END with the same channel number X are in a group, and the two-channel synchronization releasing stage in the mirror image processing tool path is marked.
Specifically, CH0_ REACH _ START indicates that the master channel STARTs to approach the workpiece command, and the slave channel stops moving; CH0_ REACH _ END indicates that the master channel ENDs up approaching the workpiece command, at which time the slave channel can begin movement. CH1_ REACH _ START indicates that the slave channel STARTs approaching the workpiece command, at which time the master channel stops moving; CH1_ REACH _ END indicates that the slave channel ENDs up approaching the workpiece command, at which time the master channel can begin to move. CH0_ LEAVE _ START indicates that the master channel STARTs moving away from the workpiece command, at which time the slave channel stops moving; CH0_ LEAVE _ END indicates that the master channel ENDs the move away from workpiece command, at which time the slave channel can begin movement. CH1_ LEAVE _ START indicates that the slave channel is starting to move away from the workpiece, at which time the master channel stops moving; CH1_ LEAVE _ END indicates that the slave channel ENDs away from the workpiece command, at which time the master channel may begin to move.
S2: respectively inputting a synchronous preparation stage file, a synchronous processing stage file and a synchronous removing stage file in an original tool path file into a synchronous preparation module, a synchronous processing module and a synchronous removing module so as to modify the original tool path file into a format file;
as can be seen from fig. 2, the synchronous preparation module, the synchronous processing module and the synchronous release module all include a GOTO command, and are configured to input a synchronous preparation stage file, a synchronous processing stage file and a synchronous release stage file, and further modify the original tool path file into a format file that can be parsed.
S3: analyzing the format file by adopting a slave state machine to obtain an analysis result;
as shown in fig. 3, the meaning of each state and the transition condition between the states in the diagram are shown in tables 2 and 3 below, the slave state machine performs single-LINE parsing on the format file, and when a correct result is obtained through parsing, the state is "LINE _ OK", and the result is transmitted to the master state machine; if the original tool path file has ERRORs and other exceptions, the state is "LINE _ ERROR", and the exception is ended and pushed out. The analysis starting instruction 'LINE _ PROCESSING' of the slave state machine supports the analysis of the marks, the instructions such as 'GOTO' and the like in the original tool path file, and can compare and judge whether the file has the abnormity such as the instruction mark missing or misplacement and the like according to the PROCESSING history record and the synchronous preparation module, the synchronous PROCESSING module and the synchronous removing module.
Name of state | State meanings |
LINE_PROCESSING | Format file single line parsing |
LINE_OK | Correct output of analysis result |
LINE_ERROR | Analysis result abnormality prompt |
TABLE 2
In its original state | New state | Condition of state transition |
LINE_PROCESSING | LINE_OK | The analysis result of the current line of the format file is normal |
LINE_PROCESSING | LINE_ERROR | Abnormal analysis result of current line of format file |
TABLE 3
S4: setting state transition conditions in a master state machine as instruction marks corresponding to the master channel and the slave channel, and setting two states of state transition in the master state machine as an output tool path file and a pause output tool path file;
as shown in FIG. 3, the initial state of the entry of the main state machine is "STOP", and the end of the process is reached when the end-of-file flag "EOF" is encountered. Distinguishing state transition conditions according to a currently processed channel in the main state machine processing: the transfer path of the master channel is a solid arrow, and the transfer path of the slave channel is a dashed arrow. The master state machine receives the analysis result transmitted from the state machine, and performs a state transition when a state transition condition is identified in the analysis result, as shown in tables 4 and 5 below.
Name of state | State meanings |
Stop | Initial/terminal state |
CH0_PROCESSING | Main channel output tool path file processing result |
CH0_STAND_BY | Main channel pause outputting tool path file processing result |
CH1_PROCESSING | From the channel delivery knifeWay file processing result |
CH1_STAND_BY | Outputting tool path file processing result from channel pause |
TABLE 4
In its original state | New state | Condition of state transition |
Stop | CH0_PROCESSING | Process flow for identifying as main channel |
CH0_PROCESSING | CH0_STAND_BY | Identifying an instruction mark: CH1_ REACH/LEAVE _ START |
CH0_STAND_BY | CH0_PROCESSING | Identifying an instruction mark: CH1_ REACH/LEAVE _ END |
CH0_PROCESSING | Stop | Identifying the tail mark of the tool path file: EOF |
Stop | CH1_PROCESSING | Identifying as a slave channel process flow |
CH1_PROCESSING | CH1_STAND_BY | Identifying an instruction mark: CH0_ REACH/LEAVE _ START |
CH1_STAND_BY | CH1_PROCESSING | Identifying an instruction mark: CH0_ REACH/LEAVE _ END |
CH1_PROCESSING | Stop | Identifying the tail mark of the tool path file: EOF |
TABLE 5
In this embodiment, the state transition condition in the master state machine is set as the instruction flag corresponding to the master channel and the slave channel. For example, when the master state machine recognizes that the slave channel is close to the workpiece command at the end or the slave channel is far from the workpiece command at the end, the master channel pause output tool path file state is converted into a master channel output tool path file state;
when the main state machine identifies that the main channel starts to approach the workpiece instruction or the main channel starts to be far away from the workpiece instruction, the state of outputting the tool path file from the auxiliary channel is converted into the state of pausing outputting the tool path file from the auxiliary channel;
and when the main state machine identifies that the main channel is close to the workpiece instruction or the main channel is far from the workpiece instruction, the slave channel pause output tool path file state is converted into a slave channel output tool path file state.
S5: and adopting the main state machine in the step S4 to continuously call and identify the analysis result so as to generate a corresponding mirror image processing program.
In the embodiment, the processing of the whole original tool path file is promoted by a single-line tool path file processing result in a form of a master-slave state machine. The CHX _ PROCESSING and the LINE _ PROCESSING are used as abstract interfaces, so that the PROCESSING suitable for the blade files of different types of mirror image PROCESSING systems can be realized conveniently.
Another aspect of the present application provides a two-channel motion mirror machining program generation system based on a finite-state machine, the system including a modular subsystem and a finite-state machine subsystem, wherein:
the modularized subsystem is used for generating format files and comprises a synchronous preparation module, a synchronous processing module and a synchronous removing module which are marked by different instructions and constructed according to the synchronous state of a main channel and a slave channel in an original tool path file, wherein the synchronous preparation module, the synchronous processing module and the synchronous removing module are respectively used for inputting a synchronous preparation stage file, a synchronous processing stage file and a synchronous removing stage file in the original tool path file;
the finite state machine subsystem comprises an analysis module and a program generation module, wherein the analysis module is used for analyzing the format file by adopting a slave state machine, the program generation module is used for calling the analysis result of the analysis module, and outputting and suspending the tool path file according to the instruction mark in the analysis result so as to finally realize the output of the mirror image processing program.
Examples
And filling the actual machining tool path data to the corresponding position of the modular subsystem in the figure 2. The original tool path data is a seven-tuple ({ instruction name, position data (x _ pos) in a row unittool,y_postool,z_postool,z_diri,z_dirj,z_dirk) In the form of (1) }. Adding main channel synchronization preparation phase data between CH0_ read _ START and CH0_ read _ END command flags; the CH1_ read _ START and CH1_ read _ END instructions add slave channel synchronization preparation phase data between flags; adding mirror image synchronous processing stage data between FOLLOW _ ON and FOLLOW _ OFF instruction marks; add main channel synchronization between CH0_ LEAVE _ START and CH0_ LEAVE _ END instruction flagsRemoving phase data; CH1_ LEAVE _ START and CH1_ LEAVE _ END instruct to add slave channel synchronization release phase data between flags.
And PROCESSING and converting the format file according to the state transition condition, wherein CH0_ PROCESSING, CH1_ PROCESSING of the master state machine and LINE _ PROCESSING of the slave state machine are designed with a plurality of types of tool path data PROCESSING modes according to the machine tool structure type of the mirror image PROCESSING system and the instruction type supported by the format file, so as to obtain a safe and synchronous dual-channel mirror image PROCESSING program which meets the mirror image PROCESSING standard and is shown in FIG. 4.
The mirror image processing program can control the mirror image processing system to safely work according to the following procedures, namely:
step 0, initializing a position of a mirror image processing system;
step 1, preparation synchronization of a support side of a slave channel is achieved, and support preparation work of a workpiece is completed;
step 2, preparation of the machining side belonging to the main channel is synchronous, mirror symmetry relation between the tool and the supporting device about the workpiece is established, and machining preparation work of the workpiece is completed;
step 3, starting mirror image synchronous machining motion by the double channels to finish the machining task of the thin-wall workpiece;
step 4, the processing side removes the synchronization in advance, and the processing side returns to the designated safe position and then finishes all actions;
and 5, the supporting side is desynchronized, and all actions are finished after the supporting side retracts to the specified safe position.
To sum up, this application is used for only needing to correspond the input with mirror image processing tool path file and can obtain corresponding mirror image processing procedure through constructing modular input interface, need not learn the special mark meaning in the mirror image processing tool path file in addition again, and application scope is wide, the commonality is strong, the generation is efficient.
It will be understood by those skilled in the art that the foregoing is only a preferred embodiment of the present invention, and is not intended to limit the invention, and that any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the scope of the present invention.
Claims (10)
1. A method for generating a double-channel mirror image processing program based on a finite-state machine is characterized by comprising the following steps:
s1: constructing a synchronous preparation module, a synchronous processing module and a synchronous removing module according to the synchronous state of a main channel and a slave channel in an original tool path file in mirror image processing, wherein the synchronous preparation module, the synchronous processing module and the synchronous removing module are respectively marked by different instructions;
s2: respectively inputting a synchronous preparation stage file, a synchronous processing stage file and a synchronous removing stage file in an original tool path file into a synchronous preparation module, a synchronous processing module and a synchronous removing module so as to modify the original tool path file into a format file;
s3: analyzing the format file by adopting a slave state machine to obtain an analysis result;
s4: setting state transition conditions in a master state machine as instruction marks corresponding to the master channel and the slave channel, and setting two states of state transition in the master state machine as an output tool path file and a pause output tool path file;
s5: the parsing result is continuously called and recognized using the main state machine in step S4 to generate the corresponding mirror image processing program.
2. The method of claim 1, wherein building a synchronized preparation module comprises building a start approaching work piece command, a user defined interface command, and an end approaching work piece command, wherein the user defined interface command is used for user input of a file of synchronized preparation stages in the original tool path file.
3. The method of claim 2, wherein constructing a synchronous preparation module comprises constructing a master channel preparation submodule and a slave channel preparation submodule, wherein the master channel preparation submodule comprises a master channel start approaching workpiece instruction, a master channel motion user defined interface instruction, and a master channel end approaching workpiece instruction; the slave channel preparation sub-modules each include a start of channel access workpiece command, a slave channel run user defined interface command, and an end of channel access workpiece command.
4. The method of claim 1, wherein constructing a synchronous machining module comprises constructing a synchronous machining start command, a user-defined interface and a synchronous end command of a master channel and a slave channel, wherein the user-defined interface is used for a user to input files of synchronous machining stages of the master channel and the slave channel in the original tool path file.
5. The method of claim 1, wherein constructing a synchronization release module comprises constructing a start far from workpiece command, a user defined interface command and an end far from workpiece command, wherein the user defined interface command is used for a user to input a file of synchronization release stages in the original tool path file.
6. The method of claim 5, wherein constructing the synchronized dismiss module comprises constructing a master channel dismiss submodule and a slave channel dismiss submodule, wherein the master channel dismiss submodule comprises a master channel start far away from workpiece instruction, a master channel move user defined interface instruction and a master channel end far away from workpiece instruction; the slave channel preparation sub-modules each include a start of channel away from workpiece instruction, a run of user defined interface instruction from channel and an end of channel away from workpiece instruction.
7. The method of claim 1, wherein the synchronous preparation module comprises a main channel start approaching workpiece command, a main channel end approaching workpiece command, a slave channel start approaching workpiece command, and a slave channel end approaching workpiece command, the synchronous release module comprises a main channel start departing workpiece command, a main channel end departing workpiece command, a slave channel start departing workpiece command, and a slave channel end departing workpiece command, and the step S5 of employing the main state machine of step S4 to continuously call and recognize the parsing result as:
when the main state machine identifies that the slave channel starts to approach the workpiece instruction or the slave channel starts to be far away from the workpiece instruction, the main channel output tool path file state is converted into a main channel pause tool path file state;
when the main state machine identifies that the slave channel is close to the workpiece instruction or the slave channel is far from the workpiece instruction, the state of the main channel for pausing the output of the tool path file is converted into the state of the main channel for outputting the tool path file;
when the main state machine identifies that the main channel starts to approach the workpiece instruction or the main channel starts to be far away from the workpiece instruction, the state of outputting the tool path file from the auxiliary channel is converted into the state of pausing outputting the tool path file from the auxiliary channel;
and when the main state machine identifies that the main channel is close to the workpiece instruction or the main channel is far from the workpiece instruction, the slave channel pause output tool path file state is converted into a slave channel output tool path file state.
8. The method according to claim 1, wherein the parsing of the format file in step S3 is performed by the slave state machine, specifically, the slave state machine parses the format file one line, and sends the parsed file to the master state machine if the parsed result is correct, and stops parsing if the result is incorrect.
9. The method according to claim 1, wherein the file interfaces of the master state machine and the slave state machine are set as abstract interfaces to realize the processing of different types of files.
10. A finite state machine based two-channel motion mirror process generation system, the system comprising a modular subsystem and a finite state machine subsystem, wherein:
the modularized subsystem is used for generating format files and comprises a synchronous preparation module, a synchronous processing module and a synchronous removing module which are marked by different instructions according to the synchronous state of a main channel and a slave channel in an original tool path file, wherein the synchronous preparation module, the synchronous processing module and the synchronous removing module are respectively used for inputting a synchronous preparation stage file, a synchronous processing stage file and a synchronous removing stage file in the original tool path file;
the finite-state machine subsystem comprises an analysis module and a program generation module, wherein the analysis module is used for analyzing the format file by adopting the slave state machine, the program generation module is used for calling the analysis result of the analysis module, outputting and suspending the cutter path file according to the instruction mark in the analysis result, and then finally generating a double-channel mirror image processing program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110818194.6A CN113569309B (en) | 2021-07-20 | 2021-07-20 | Method and system for generating double-channel mirror image processing program based on finite state machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110818194.6A CN113569309B (en) | 2021-07-20 | 2021-07-20 | Method and system for generating double-channel mirror image processing program based on finite state machine |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113569309A true CN113569309A (en) | 2021-10-29 |
CN113569309B CN113569309B (en) | 2024-02-02 |
Family
ID=78165651
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110818194.6A Active CN113569309B (en) | 2021-07-20 | 2021-07-20 | Method and system for generating double-channel mirror image processing program based on finite state machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113569309B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114687865A (en) * | 2022-02-25 | 2022-07-01 | 中国航发控制系统研究所 | State machine following method of FADEC control software |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050152197A1 (en) * | 2004-01-09 | 2005-07-14 | Samsung Electronics Co., Ltd. | Camera interface and method using DMA unit to flip or rotate a digital image |
CN101169640A (en) * | 2007-11-30 | 2008-04-30 | 北京数码大方科技有限公司 | Digital control system machining code general generation method and device |
US20080294910A1 (en) * | 2007-03-23 | 2008-11-27 | Gen Lin | System and method for protecting numerical control codes |
US20140115566A1 (en) * | 2012-10-19 | 2014-04-24 | Microsoft Corporation | State machine control of a debugger |
CN104714477A (en) * | 2015-03-13 | 2015-06-17 | 江俊逢 | Machining file planning system and machining file generating method |
CN108663991A (en) * | 2018-04-28 | 2018-10-16 | 华中科技大学 | A kind of binary channels synchronous processing method and apparatus towards mirror image Milling Process |
CN110737245A (en) * | 2019-11-18 | 2020-01-31 | 上海拓璞数控科技股份有限公司 | Post-processing method and system for double five-axis mirror milling |
US20200234242A1 (en) * | 2019-01-22 | 2020-07-23 | Ab Initio Technology Llc | Finite state machines for implementing workflows for data objects managed by a data processing system |
CN211207146U (en) * | 2020-01-14 | 2020-08-07 | 广东工业大学 | EtherCAT main station system with double data channels |
-
2021
- 2021-07-20 CN CN202110818194.6A patent/CN113569309B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050152197A1 (en) * | 2004-01-09 | 2005-07-14 | Samsung Electronics Co., Ltd. | Camera interface and method using DMA unit to flip or rotate a digital image |
US20080294910A1 (en) * | 2007-03-23 | 2008-11-27 | Gen Lin | System and method for protecting numerical control codes |
CN101169640A (en) * | 2007-11-30 | 2008-04-30 | 北京数码大方科技有限公司 | Digital control system machining code general generation method and device |
US20140115566A1 (en) * | 2012-10-19 | 2014-04-24 | Microsoft Corporation | State machine control of a debugger |
CN104714477A (en) * | 2015-03-13 | 2015-06-17 | 江俊逢 | Machining file planning system and machining file generating method |
CN108663991A (en) * | 2018-04-28 | 2018-10-16 | 华中科技大学 | A kind of binary channels synchronous processing method and apparatus towards mirror image Milling Process |
US20200234242A1 (en) * | 2019-01-22 | 2020-07-23 | Ab Initio Technology Llc | Finite state machines for implementing workflows for data objects managed by a data processing system |
CN110737245A (en) * | 2019-11-18 | 2020-01-31 | 上海拓璞数控科技股份有限公司 | Post-processing method and system for double five-axis mirror milling |
CN211207146U (en) * | 2020-01-14 | 2020-08-07 | 广东工业大学 | EtherCAT main station system with double data channels |
Non-Patent Citations (2)
Title |
---|
张高鹏: "镜像加工中协同运动控制技术的研究", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 * |
王舟: "大型薄壁构件镜像加工系统协调控制研究", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114687865A (en) * | 2022-02-25 | 2022-07-01 | 中国航发控制系统研究所 | State machine following method of FADEC control software |
CN114687865B (en) * | 2022-02-25 | 2023-10-31 | 中国航发控制系统研究所 | State machine following method of FADEC control software |
Also Published As
Publication number | Publication date |
---|---|
CN113569309B (en) | 2024-02-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Martinov et al. | Numerical control of large precision machining centers by the AxiOMA contol system | |
US10466681B1 (en) | Systems and methods for machining knowledge reuse | |
US9836039B2 (en) | Method and system for simulating a work process on a machine tool | |
US8014898B2 (en) | Controller of robot used combined with machine tool | |
CN106406223B (en) | Real-time interference confirmation system for machine tool and robot | |
CN104281096B (en) | The building method of NC code compiler | |
CN104865899B (en) | A kind of numerical-control processing method of automatic unilateral compensation | |
Safaieh et al. | A novel methodology for cross-technology interoperability in CNC machining | |
CN113569309A (en) | Method and system for generating double-channel mirror image processing program based on finite-state machine | |
CN101968767A (en) | Macroprogram-based code debugging and simulation method and device | |
CN104875204A (en) | Offline programming module and application method of plasma space cutting robot | |
US11491652B2 (en) | Method for programming robots and computing device and computer program | |
US7657410B2 (en) | Process simulation system | |
JPH01267777A (en) | Production system and production interface system and interfacing of production system | |
JP2012198775A (en) | Robot programming device and method | |
Rauch et al. | A STEP-NC approach for multi-process manufacturing, simulation and optimisation | |
CN101424937A (en) | Method for implementing modularized process by utilizing functional element program for numerical control press | |
Kowalski et al. | Intelligent manufacturing templates for CNC machine programming | |
US20150236901A1 (en) | Control system management apparatus | |
CN116330263A (en) | Intelligent industrial robot platform implementation method based on Codesys | |
JP5763352B2 (en) | NC program creation device | |
Schmid et al. | Seamless data integration in the CAM-NC process chain in a learning factory | |
US11360749B2 (en) | Device for dynamically generating numerical controller software of machine tool and method for the same | |
Fatriyana | CNC program and programming of cnc machine | |
US20230161323A1 (en) | Control device |
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 |