WO2020127301A1 - Workpiece machining program visualization method, apparatus and system, and storage medium - Google Patents
Workpiece machining program visualization method, apparatus and system, and storage medium Download PDFInfo
- Publication number
- WO2020127301A1 WO2020127301A1 PCT/EP2019/085697 EP2019085697W WO2020127301A1 WO 2020127301 A1 WO2020127301 A1 WO 2020127301A1 EP 2019085697 W EP2019085697 W EP 2019085697W WO 2020127301 A1 WO2020127301 A1 WO 2020127301A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- program
- workpiece machining
- machining program
- workpiece
- intermediate result
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/18—Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
- G05B19/406—Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by monitoring or safety
- G05B19/4069—Simulating machining process on screen
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical or visual programming
-
- 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
- G06Q10/00—Administration; Management
- G06Q10/10—Office automation; Time management
-
- 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
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/30—Nc systems
- G05B2219/35—Nc in input of data, input till input file format
- G05B2219/35304—Real time analysis, check of program, just before machining
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/30—Nc systems
- G05B2219/35—Nc in input of data, input till input file format
- G05B2219/35333—Display raw material, blank, tool locus, workpiece, alarm if error
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/30—Nc systems
- G05B2219/35—Nc in input of data, input till input file format
- G05B2219/35344—Display part, programmed locus and not yet machined, uncompleted portions of part
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/30—Nc systems
- G05B2219/36—Nc in input of data, input key till input tape
- G05B2219/36079—Replace faulty instructions and execute only that portion of the program
-
- 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
Definitions
- the present invention relates to and is suitable for the industrial field, and in particular relates to an improved workpiece machining program visualization method, apparatus and system, and a storage medium.
- a workpiece machining program can only be compiled in its entirety once all editing is complete, and it is not possible to display in real time an intermediate form of the workpiece during machining; moreover, if the program itself contains a syntax or semantic error or a machining member experiences a problem such as path interference, the program error cannot be displayed in real time in an existing workpiece machining process.
- the embodiments of the present invention are intended to improve a workpiece machining program visualization method.
- the embodiments of the present invention provide a workpiece machining program visualization method, apparatus and system, and a storage medium.
- a workpiece machining program visualization method comprises : acquiring machining information, wherein the machining information comprises: a workpiece machining program and a workpiece initial parameter; compiling the workpiece machining program in real time, to generate intermediate code; using the intermediate code to generate a movement path of a machining member; and using the workpiece initial parameter and the movement path of the machining member to generate at least one intermediate result for reproducing the workpiece machining program, and displaying the at least one intermediate result in a first display region.
- the workpiece machining program visualization method further comprises: storing in real time the intermediate code, the movement path of the machining member and the at least one intermediate result.
- the workpiece machining program visualization method further comprises: establishing a visualization set, and on the basis of all program sections of the workpiece machining program from the beginning to the latest editing position, generating corresponding intermediate results of the workpiece machining program, and adding these one by one to the visualization set, and displaying the intermediate results in the first display region according to a sequence of the visualization set .
- the workpiece machining program visualization method further comprises: at the same time as generating each said intermediate result, generating an item of corresponding mark information, and associating the mark information with the intermediate result.
- the workpiece machining program visualization method further comprises : the mark information comprising : aline number label of the last line of program of the program section used to generate the intermediate result.
- the workpiece machining program visualization method further comprises: acquiring an intermediate result added most recently to the visualization set; using the mark information to extract the next program section from the workpiece machining program and generate the corresponding movement path of the machining member; and using the intermediate result added most recently to the visualization set and the movement path of the machining member to generate an intermediate result for reproducing the workpiece machining program.
- the workpiece machining program visualization method further comprises: when the workpiece machining program is updated, acquiring position information of an updated program section, comparing the position information with the mark information in order to determine a corresponding intermediate result in the visualization set, and re-generating and replacing an intermediate result following the corresponding intermediate result in the visualization set.
- the workpiece machining program visualization method further comprises : from the beginning of the workpiece machining program to a latest editing position, dividing in sequence into at least two program sections, the program section comprising a continuous program and/or program module with a preset number of lines.
- the program module comprises a condition instruction, a jump instruction and an intermediate program beginning with the condition instruction and ending with the jump instruction .
- the workpiece machining program visualization method further comprises: checking the workpiece machining program, and when error information is detected, displaying the error information in a second display region adjacent to the first display region.
- the error information comprises: at least one of lexical errors, syntax errors, semantic errors, debugging errors, the occurrence of interference in the movement path of the machining member, and interpolation errors.
- a workpiece machining program visualization apparatus comprises: an acquisition component, configured to acquire machining information, wherein the machining information comprises: a workpiece machining program and a workpiece initial parameter; a compiling component, configured to compile the workpiece machining program in real time, to generate intermediate code; an execution component, configured to use the intermediate code to generate a movement path of a machining member; and a display component, configured to use the workpiece initial parameter and the movement path of the machining member to generate at least one intermediate result for reproducing the workpiece machining program, and displaying the at least one intermediate result in a first display region.
- the workpiece machining program visualization apparatus further comprises: a storage component, configured to store in real time the intermediate code, the movement path of the machining member and the at least one intermediate result.
- a processing system comprises: one or more processors; a memory; and one or more programs, stored in the memory and configured to be executed by the one or more processors, and comprising an instruction for executing any one of the workpiece machining program visualization methods described above.
- a storage medium stores one or more programs comprising an instruction which, when executed by a data processing system, causes the data processing system to execute any one of the workpiece machining program visualization methods described above.
- Fig. 1 is a flow chart of a workpiece machining program visualization method according to an embodiment of the present invention .
- Fig. 2 is a schematic diagram of a workpiece machining program visualization apparatus according to an embodiment of the present invention .
- Fig. 3 is a display interface according to an embodiment of the present invention.
- Fig. 1 shows schematically a flow chart of a workpiece machining program visualization method according to an embodiment of the present invention.
- the workpiece machining program visualization method mainly comprises four steps, SI - S4.
- step SI machining information is acquired, wherein the machining information mainly comprises a workpiece machining program and a workpiece initial parameter; in step S2, the workpiece machining program is compiled in real time, to generate intermediate code; in step S3, the intermediate code is used to generate a movement path of a machining member; in step S4, the workpiece initial parameter and the movement path of the machining member are used to generate at least one intermediate result for reproducing the workpiece machining program, and the at least one intermediate result is displayed in a first display region 100.
- the present invention solves the problem of a workpiece machining program being unable to display in real time an intermediate form of a workpiece during machining, so that an operator can perform an inspection before actually running a workpiece machining program, reducing the error rate during actual machining, and increasing the efficiency of workpiece machining .
- the workpiece machining program may be acquired in various ways. For example, when it is necessary to input a workpiece machining program, batch import or progressive addition of the workpiece machining program may be performed by means of a system, and the workpiece machining program edited and added by the user may be stored in a memory of a machining tool.
- the workpiece machining program comprises at least one workpiece machining instruction, and the workpiece machining program may be recorded in the form of base code for example; the workpiece initial parameter may be for example a three-dimensional structure of a workpiece blank.
- steps S2 and S3 the workpiece machining program is compiled in real time, to generate intermediate code, then a movement path of a machining member is generated on the basis of the intermediate code.
- step S4 the workpiece initial parameter and the movement path of the machining member are used to generate at least one intermediate result for reproducing the workpiece machining program; in other words, an execution result of the workpiece machining program is simulated in advance, and the real-time execution result of the workpiece machining program is displayed visually; finally, the intermediate result of execution is displayed in the first display region 100.
- the present invention also provides a workpiece machining program visualization apparatus;
- fig. 2 is a schematic diagram of a workpiece machining program visualization apparatus according to an embodiment of the present invention, comprising: an acquisition component 10, a compiling component 20, an execution component 30 and a display component 40.
- the acquisition component 10 is configured to acquire machining information, e . g . the acquisition component 10 may provide a user interface for receiving machining information inputted by a user, the machining information mainly comprising: a workpiece machining program and a workpiece initial parameter.
- the compiling component 20 is configured to compile the workpiece machining program in real time, and generate intermediate code ; in one preferred embodiment , the compiling component 20 may also inspect errors in the workpiece machining program, e.g.
- the execution component 30 is configured to use the intermediate code to generate a movement path of a machining member; in other words, the execution component 30 receives the intermediate code from the compiling component 20, computes the movement path of the machining member on the basis of the intermediate code, and transmits the movement path of the machining member as an output to the display component 40.
- the display component 40 is configured to use the workpiece initial parameter and the movement path of the machining member to generate at least one intermediate result for reproducing the workpiece machining program, and display the at least one intermediate result in a first display region; in one particular embodiment, the intermediate result may be a 3D image of a workpiece structural form.
- the display component 40 may use an open source database to generate the 3D image, e.g. an OpenGL database.
- the workpiece machining program visualization apparatus further comprises: a storage component 50, configured to store in real time the intermediate code, the movement path of the machining member and the at least one intermediate result.
- Fig. 3 is a display interface according to an embodiment of the present invention; as shown in fig. 3, a left-side region of the interface is used to display a workpiece machining program, and a right-side part of the interface is a first display region 100; intermediate results generated according to the workpiece machining program visualization method described above are arranged in sequence in the first display region 100, and used to simulate a structural form of a workpiece after each section of the workpiece machining program has been executed.
- a bottom region of the interface is a second display region 200; the second display region 200 is adjacent to the first display region 100.
- Step S2 may comprise an error prompt step S21; in step S21, the workpiece machining program is checked, and when error information is detected, the error information is displayed in the second display region 200 adjacent to the first display region 100.
- the error information may comprise one or more of lexical errors, syntax errors, semantic errors, debugging errors, the occurrence of interference in the movement path of the machining member, and interpolation errors.
- program compiling first of all the standardness of code is inspected, and the code is inspected for the presence of syntax errors, etc., in order to determine the actual work to be done by the code. If an error is found by inspection, an error report is promptly displayed; if the inspection finds no errors, the compiling of code is continued.
- step S4 may be executed at intervals of a certain preset number of lines of program code.
- the code in the workpiece machining program may be divided into multiple program sections, e.g. such that each set of five consecutive lines of program code form one program section; in this embodiment, a three-dimensional image of the workpiece will be displayed after each set of five lines of program code has been run.
- all content of the workpiece machining program may be divided into multiple program sections in sequence from the beginning to the end, or all content of the workpiece machining program may be divided into multiple program sections in sequence from the beginning to the latest editing position.
- the program section may comprise a continuous program and/or program module with a preset number of lines .
- the program module may comprise a condition instruction, a jump instruction and an intermediate program beginning with the condition instruction and ending with the jump instruction.
- step S4 further comprises a step S41 and a step S42; in step S41, a visualization set may be established, and on the basis of all program sections of the workpiece machining program from the beginning to the latest editing position, corresponding intermediate results (Ri,
- step S42 at the same time as each intermediate result is generated, an item of corresponding mark information Mi is generated and associated with intermediate result Ri .
- the mark information comprises: a line number label of the last line of program of the program section used to generate the intermediate result; in order words, the mark information and the intermediate result are in one-to-one correspondence.
- the workpiece machining program further comprises a step S5, i.e. storing in real time the intermediate code, the movement path of the machining member and the at least one intermediate result.
- a cache of intermediate data may be established, and there is no need to repeat computation and generation of intermediate results which have already been generated; this greatly reduces the operation volume, and saves energy consumption and time.
- the intermediate result Ri added most recently to the visualization set is acquired; since the mark information Mi comprises the line number label of the last line of program of the program section Ci used to generate the intermediate result Ri, the mark information Mi can be used to determine the next program section Ci +i of the workpiece machining program and generate a movement path T i+1 of the machining member corresponding to Ci +i ; and the intermediate result Ri added most recently to the visualization set and the movement path T i+1 of the machining member are used to generate an intermediate result Ri+i for reproducing the workpiece machining program.
- position information of an updated program section is acquired; for example, the position information may be a line number of updated program code, the position information is compared with mark information in order to determine the corresponding intermediate result in the visualization set, and intermediate results following the corresponding intermediate result in the visualization set are generated afresh and replaced.
- a division method is used whereby each set of 5 lines of program code form one program section, and supposing that the 53rd line of code of the workpiece machining program is amended, i.e.
- one line of program in the 11th section of program is changed, then it is only necessary to start from the 11th section of program and re-compile the subsequent program, to generate a movement path of the machining member after the amendment position, a corresponding updated intermediate result Rn and all subsequent intermediate results
- the present invention also provides a processing system, comprising: one or more processors; a memory; and one or more programs, stored in the memory and configured to be executed by the one or more processors, and comprising an instruction for executing any one of the workpiece machining program visualization methods described above.
- the present invention further provides a storage medium, storing one or more programs comprising an instruction which, when executed by a data processing system, causes the data processing system to execute any one of the workpiece machining program visualization methods described above.
Abstract
The present invention provides a workpiece machining program visualization method, comprising: acquiring machining information, wherein the machining information comprises: a workpiece machining program and a workpiece initial parameter; compiling the workpiece machining program in real time, to generate intermediate code; using the intermediate code to generate a movement path of a machining member; and using the workpiece initial parameter and the movement path of the machining member to generate at least one intermediate result for reproducing the workpiece machining program, and displaying the at least one intermediate result in a first display region.
Description
Description
WORKPIECE MACHINING PROGRAM VISUALIZATION METHOD, APPARATUS AND
SYSTEM, AND STORAGE MEDIUM
Technical field
The present invention relates to and is suitable for the industrial field, and in particular relates to an improved workpiece machining program visualization method, apparatus and system, and a storage medium.
Background art
At present, a workpiece machining program can only be compiled in its entirety once all editing is complete, and it is not possible to display in real time an intermediate form of the workpiece during machining; moreover, if the program itself contains a syntax or semantic error or a machining member experiences a problem such as path interference, the program error cannot be displayed in real time in an existing workpiece machining process.
Content of the invention
The embodiments of the present invention are intended to improve a workpiece machining program visualization method. In particular, the embodiments of the present invention provide a workpiece machining program visualization method, apparatus and system, and a storage medium.
According to one aspect of the present invention, a workpiece machining program visualization method comprises : acquiring machining information, wherein the machining information comprises: a workpiece machining program and a workpiece initial parameter; compiling the workpiece machining program in real time, to generate intermediate code; using the intermediate code to
generate a movement path of a machining member; and using the workpiece initial parameter and the movement path of the machining member to generate at least one intermediate result for reproducing the workpiece machining program, and displaying the at least one intermediate result in a first display region. In one embodiment, the workpiece machining program visualization method further comprises: storing in real time the intermediate code, the movement path of the machining member and the at least one intermediate result.
In one embodiment, the workpiece machining program visualization method further comprises: establishing a visualization set, and on the basis of all program sections of the workpiece machining program from the beginning to the latest editing position, generating corresponding intermediate results of the workpiece machining program, and adding these one by one to the visualization set, and displaying the intermediate results in the first display region according to a sequence of the visualization set .
In one embodiment, the workpiece machining program visualization method further comprises: at the same time as generating each said intermediate result, generating an item of corresponding mark information, and associating the mark information with the intermediate result.
In one embodiment, the workpiece machining program visualization method further comprises : the mark information comprising : aline number label of the last line of program of the program section used to generate the intermediate result.
In one embodiment, the workpiece machining program visualization method further comprises: acquiring an intermediate result added most recently to the visualization set; using the mark information to extract the next program section from the workpiece machining program and generate the corresponding movement path of the machining member; and using the intermediate result added most recently to the visualization set and the movement path of the machining member to generate an intermediate result for reproducing the workpiece machining program.
In one embodiment, the workpiece machining program visualization method further comprises: when the workpiece machining program is updated, acquiring position information of an updated program section, comparing the position information with the mark information in order to determine a corresponding intermediate result in the visualization set, and re-generating and replacing an intermediate result following the corresponding intermediate result in the visualization set.
In one embodiment, the workpiece machining program visualization method further comprises : from the beginning of the workpiece machining program to a latest editing position, dividing in sequence into at least two program sections, the program section comprising a continuous program and/or program module with a preset number of lines.
In one embodiment, the program module comprises a condition instruction, a jump instruction and an intermediate program beginning with the condition instruction and ending with the jump instruction .
In one embodiment, the workpiece machining program visualization method further comprises: checking the workpiece machining program, and when error information is detected, displaying the error information in a second display region adjacent to the first display region.
In one embodiment, the error information comprises: at least one of lexical errors, syntax errors, semantic errors, debugging errors, the occurrence of interference in the movement path of the machining member, and interpolation errors.
According to another aspect of the present invention, a workpiece machining program visualization apparatus comprises: an acquisition component, configured to acquire machining information, wherein the machining information comprises: a workpiece machining program and a workpiece initial parameter; a compiling component, configured to compile the workpiece machining program in real time, to generate intermediate code; an execution component, configured to use the intermediate code to generate a movement path of a machining member; and a display
component, configured to use the workpiece initial parameter and the movement path of the machining member to generate at least one intermediate result for reproducing the workpiece machining program, and displaying the at least one intermediate result in a first display region.
In one embodiment, the workpiece machining program visualization apparatus further comprises: a storage component, configured to store in real time the intermediate code, the movement path of the machining member and the at least one intermediate result. According to another aspect of the present invention, a processing system comprises: one or more processors; a memory; and one or more programs, stored in the memory and configured to be executed by the one or more processors, and comprising an instruction for executing any one of the workpiece machining program visualization methods described above.
According to another aspect of the present invention, a storage medium stores one or more programs comprising an instruction which, when executed by a data processing system, causes the data processing system to execute any one of the workpiece machining program visualization methods described above.
It should be understood that both the general description of the present invention above and the detailed description thereof below are illustrative and explanatory, and intended to provide further explanation of the present invention as described in the claims .
Description of the accompanying drawings
The accompanying drawings are intended to provide further understanding of the present invention. They are recorded and form part of the present application. The drawings show embodiments of the present invention, and together with this description serve to explain the principles of the present invention. In the drawings:
Fig. 1 is a flow chart of a workpiece machining program visualization method according to an embodiment of the present
invention .
Fig. 2 is a schematic diagram of a workpiece machining program visualization apparatus according to an embodiment of the present invention .
Fig. 3 is a display interface according to an embodiment of the present invention.
Particular embodiments
Embodiments of the present invention are now described, making detailed reference to the accompanying drawings . Preferred embodiments of the present invention are now referred to in detail, examples thereof being shown in the accompanying drawings. If at all possible, identical labels are used in all drawings to indicate identical or similar parts. In addition, although terms used in the present invention are selected from well known and widely used terms, some terms mentioned in the description of the present invention might be selected by the applicant according to his or her judgement, and the detailed meanings thereof are explained in the relevant parts of the descriptions herein. In addition, it is required that the present invention shall be understood not just through the actual terms used, but also through the meaning implied in each term.
Fig. 1 shows schematically a flow chart of a workpiece machining program visualization method according to an embodiment of the present invention. In this embodiment, the workpiece machining program visualization method mainly comprises four steps, SI - S4. In step SI, machining information is acquired, wherein the machining information mainly comprises a workpiece machining program and a workpiece initial parameter; in step S2, the workpiece machining program is compiled in real time, to generate intermediate code; in step S3, the intermediate code is used to generate a movement path of a machining member; in step S4, the workpiece initial parameter and the movement path of the machining member are used to generate at least one intermediate result for reproducing the workpiece machining program, and the
at least one intermediate result is displayed in a first display region 100. The present invention solves the problem of a workpiece machining program being unable to display in real time an intermediate form of a workpiece during machining, so that an operator can perform an inspection before actually running a workpiece machining program, reducing the error rate during actual machining, and increasing the efficiency of workpiece machining .
In step Si, the workpiece machining program may be acquired in various ways. For example, when it is necessary to input a workpiece machining program, batch import or progressive addition of the workpiece machining program may be performed by means of a system, and the workpiece machining program edited and added by the user may be stored in a memory of a machining tool. Generally, the workpiece machining program comprises at least one workpiece machining instruction, and the workpiece machining program may be recorded in the form of base code for example; the workpiece initial parameter may be for example a three-dimensional structure of a workpiece blank. In steps S2 and S3, the workpiece machining program is compiled in real time, to generate intermediate code, then a movement path of a machining member is generated on the basis of the intermediate code. In an actual machine tool machining process, relative movement occurs between a machining member and a workpiece to be machined in order to accomplish machining (e.g. actions such as cutting or paring) of the workpiece; the machining member may for example be a cutter of the machine tool. The present invention is not only suitable for a machine tool machining system, but may also be expanded to applications in other machining systems having similar assembly processes. In step S4, the workpiece initial parameter and the movement path of the machining member are used to generate at least one intermediate result for reproducing the workpiece machining program; in other words, an execution result of the workpiece machining program is simulated in advance, and the real-time execution result of the workpiece machining program is displayed visually; finally, the intermediate result of
execution is displayed in the first display region 100.
The present invention also provides a workpiece machining program visualization apparatus; fig. 2 is a schematic diagram of a workpiece machining program visualization apparatus according to an embodiment of the present invention, comprising: an acquisition component 10, a compiling component 20, an execution component 30 and a display component 40. The acquisition component 10 is configured to acquire machining information, e . g . the acquisition component 10 may provide a user interface for receiving machining information inputted by a user, the machining information mainly comprising: a workpiece machining program and a workpiece initial parameter. The compiling component 20 is configured to compile the workpiece machining program in real time, and generate intermediate code ; in one preferred embodiment , the compiling component 20 may also inspect errors in the workpiece machining program, e.g. lexical errors, syntax errors, semantic errors and debugging errors in program code, the occurrence of interference in a movement path of a machining member, and interpolation errors, etc. The execution component 30 is configured to use the intermediate code to generate a movement path of a machining member; in other words, the execution component 30 receives the intermediate code from the compiling component 20, computes the movement path of the machining member on the basis of the intermediate code, and transmits the movement path of the machining member as an output to the display component 40. The display component 40 is configured to use the workpiece initial parameter and the movement path of the machining member to generate at least one intermediate result for reproducing the workpiece machining program, and display the at least one intermediate result in a first display region; in one particular embodiment, the intermediate result may be a 3D image of a workpiece structural form. The display component 40 may use an open source database to generate the 3D image, e.g. an OpenGL database. Preferably, the workpiece machining program visualization apparatus further comprises: a storage component 50, configured to store in real time the intermediate code, the
movement path of the machining member and the at least one intermediate result.
Fig. 3 is a display interface according to an embodiment of the present invention; as shown in fig. 3, a left-side region of the interface is used to display a workpiece machining program, and a right-side part of the interface is a first display region 100; intermediate results generated according to the workpiece machining program visualization method described above are arranged in sequence in the first display region 100, and used to simulate a structural form of a workpiece after each section of the workpiece machining program has been executed. A bottom region of the interface is a second display region 200; the second display region 200 is adjacent to the first display region 100. Step S2 may comprise an error prompt step S21; in step S21, the workpiece machining program is checked, and when error information is detected, the error information is displayed in the second display region 200 adjacent to the first display region 100. Optionally, the error information may comprise one or more of lexical errors, syntax errors, semantic errors, debugging errors, the occurrence of interference in the movement path of the machining member, and interpolation errors. In the course of program compiling, first of all the standardness of code is inspected, and the code is inspected for the presence of syntax errors, etc., in order to determine the actual work to be done by the code. If an error is found by inspection, an error report is promptly displayed; if the inspection finds no errors, the compiling of code is continued. In this way it is possible to solve the problem of an existing workpiece machining system being unable to display program errors in real time. Multiple intermediate results can be seen in real time in the first display region 100; the workpiece machining program can be checked for accuracy by means of the image display, thereby optimizing the user experience. The user can trace the source of errors via the second display region 200 located at the bottom of the user interface; this makes it easier for the user to inspect program errors, and makes error correction of the workpiece machining
program more convenient and quick.
In order to save storage space and reduce the overall computation volume, visual display need not be performed for an execution result of every line of program; instead, step S4 may be executed at intervals of a certain preset number of lines of program code. For example, in one preferred embodiment, the code in the workpiece machining program may be divided into multiple program sections, e.g. such that each set of five consecutive lines of program code form one program section; in this embodiment, a three-dimensional image of the workpiece will be displayed after each set of five lines of program code has been run. By the same principle, all content of the workpiece machining program may be divided into multiple program sections in sequence from the beginning to the end, or all content of the workpiece machining program may be divided into multiple program sections in sequence from the beginning to the latest editing position. The program section may comprise a continuous program and/or program module with a preset number of lines . The program module may comprise a condition instruction, a jump instruction and an intermediate program beginning with the condition instruction and ending with the jump instruction.
Specifically, it is possible to divide the workpiece machining program into N program sections (Ci, C2.CN) from the beginning to the latest editing position, generate in real time an intermediate result (Ri, R2.RN) after each program section has been executed, and visually display in real time a machining process of the workpiece machining program from the beginning to the latest editing position. Preferably, step S4 further comprises a step S41 and a step S42; in step S41, a visualization set may be established, and on the basis of all program sections of the workpiece machining program from the beginning to the latest editing position, corresponding intermediate results (Ri,
R2.RN) of the workpiece machining program are generated, and added one by one to the visualization set, and the intermediate results are displayed in the first display region according to a sequence of the visualization set. In step S42, at the same
time as each intermediate result is generated, an item of corresponding mark information Mi is generated and associated with intermediate result Ri . In one particular embodiment, the mark information comprises: a line number label of the last line of program of the program section used to generate the intermediate result; in order words, the mark information and the intermediate result are in one-to-one correspondence.
In one preferred embodiment, the workpiece machining program further comprises a step S5, i.e. storing in real time the intermediate code, the movement path of the machining member and the at least one intermediate result. Specifically, a cache of intermediate data may be established, and there is no need to repeat computation and generation of intermediate results which have already been generated; this greatly reduces the operation volume, and saves energy consumption and time. For example, in one preferred embodiment, the intermediate result Ri added most recently to the visualization set is acquired; since the mark information Mi comprises the line number label of the last line of program of the program section Ci used to generate the intermediate result Ri, the mark information Mi can be used to determine the next program section Ci+i of the workpiece machining program and generate a movement path Ti+1 of the machining member corresponding to Ci+i; and the intermediate result Ri added most recently to the visualization set and the movement path Ti+1 of the machining member are used to generate an intermediate result Ri+i for reproducing the workpiece machining program.
By the same principle it is clear that when the workpiece machining program is updated, position information of an updated program section is acquired; for example, the position information may be a line number of updated program code, the position information is compared with mark information in order to determine the corresponding intermediate result in the visualization set, and intermediate results following the corresponding intermediate result in the visualization set are generated afresh and replaced. For example, if a division method is used whereby each set of 5 lines of program code form one program
section, and supposing that the 53rd line of code of the workpiece machining program is amended, i.e. one line of program in the 11th section of program is changed, then it is only necessary to start from the 11th section of program and re-compile the subsequent program, to generate a movement path of the machining member after the amendment position, a corresponding updated intermediate result Rn and all subsequent intermediate results
(Rii, Ri2.RN) ; the intermediate results (Ri, R2.Rio) already generated previously all remain unchanged, with no need for re-compiling and re-computation. Thus, when the user has amended the workpiece machining program, the user can observe in real time the change in a machining result after amendment and updating .
The present invention also provides a processing system, comprising: one or more processors; a memory; and one or more programs, stored in the memory and configured to be executed by the one or more processors, and comprising an instruction for executing any one of the workpiece machining program visualization methods described above.
The present invention further provides a storage medium, storing one or more programs comprising an instruction which, when executed by a data processing system, causes the data processing system to execute any one of the workpiece machining program visualization methods described above.
The terms "first" and "second" in the descriptions herein merely distinguish between different objects for convenience of description, do not have practical significance, and do not indicate that there is a substantive difference between these two objects. As used herein, "schematic" means "serving as an instance, example or illustration". No drawing described herein as "schematic" should be
It will be obvious to those skilled in the art that various amendments and changes in form could be made to the abovementioned demonstrative embodiments of the present invention, without deviating from the spirit and scope of the present invention. Thus, the present invention is intended to cover amendments and
changes in form to the present invention which fall within the scope of the attached claims and equivalent technical solutions thereof .
Claims
1. A workpiece machining program visualization method, characterized by comprising:
acquiring machining information, wherein the machining information comprises: a workpiece machining program and a workpiece initial parameter (SI);
compiling the workpiece machining program in real time, to generate intermediate code (S2);
using the intermediate code to generate a movement path of a machining member (S3); and
using the workpiece initial parameter and the movement path of the machining member to generate at least one intermediate result for reproducing the workpiece machining program, and displaying the at least one intermediate result in a first display region (100) ( S 4 ) .
2. The workpiece machining program visualization method as claimed in claim 1, characterized by further comprising:
storing in real time the intermediate code, the movement path of the machining member and the at least one intermediate result ( S5 ) .
3. The workpiece machining program visualization method as claimed in claim 1, characterized in that step S4 further comprises :
establishing a visualization set, and on the basis of all program sections of the workpiece machining program from the beginning to the latest editing position, generating corresponding intermediate results of the workpiece machining program, and adding these one by one to the visualization set, and displaying the intermediate results in the first display region according to a sequence of the visualization set (S41) .
4. The workpiece machining program visualization method as
claimed in claim 3, characterized in that step S4 further comprises :
at the same time as generating each said intermediate result, generating an item of corresponding mark information, and associating the mark information with the intermediate result ( S42 ) .
5. The workpiece machining program visualization method as claimed in claim 4, characterized in that the mark information comprises: a line number label of the last line of program of the program section used to generate the intermediate result.
6. The workpiece machining program visualization method as claimed in claim 4, characterized by comprising:
acquiring an intermediate result added most recently to the visualization set;
using the mark information to extract the next program section from the workpiece machining program and generate the corresponding movement path of the machining member; and using the intermediate result added most recently to the visualization set and the movement path of the machining member to generate an intermediate result for reproducing the workpiece machining program.
7. The workpiece machining program visualization method as claimed in claim 4, characterized by comprising:
when the workpiece machining program is updated, acquiring position information of an updated program section, comparing the position information with the mark information in order to determine a corresponding intermediate result in the visualization set, and re-generating and replacing an intermediate result following the corresponding intermediate result in the visualization set.
8. The workpiece machining program visualization method as claimed in claim 1, characterized by further comprising:
from the beginning of the workpiece machining program to a latest editing position, dividing in sequence into at least two program sections, the program section comprising a continuous program and/or program module with a preset number of lines.
9. The workpiece machining program visualization method as claimed in claim 8, characterized in that the program module comprises a condition instruction, a jump instruction and an intermediate program beginning with the condition instruction and ending with the jump instruction.
10. The workpiece machining program visualization method as claimed in claim 1, characterized in that step S2 further comprises :
checking the workpiece machining program (S21), and when error information is detected, displaying the error information in a second display region (200) adjacent to the first display region (100) .
11. The workpiece machining program visualization method as claimed in claim 10, characterized in that the error information comprises :
at least one of lexical errors, syntax errors, semantic errors, debugging errors, the occurrence of interference in the movement path of the machining member, and interpolation errors.
12. A workpiece machining program visualization apparatus, characterized by comprising:
an acquisition component (10), configured to acquire machining information, wherein the machining information comprises: a workpiece machining program and a workpiece initial parameter; a compiling component (20), configured to compile the workpiece machining program in real time, to generate intermediate code; an execution component (30), configured to use the intermediate code to generate a movement path of a machining member; and a display component (40) , configured to use the workpiece initial
parameter and the movement path of the machining member to generate at least one intermediate result for reproducing the workpiece machining program, and displaying the at least one intermediate result in a first display region (100) .
13. The workpiece machining program visualization apparatus as claimed in claim 12, characterized by further comprising: a storage component (50), configured to store in real time the intermediate code, the movement path of the machining member and the at least one intermediate result .
14. A processing system, characterized by comprising:
one or more processors;
a memory; and
one or more programs, stored in the memory and configured to be executed by the one or more processors, and comprising an instruction for executing the workpiece machining program visualization method as claimed in any one of claims 1 - 11.
15. A storage medium, storing one or more programs comprising an instruction which, when executed by a data processing system, causes the data processing system to execute the workpiece machining program visualization method as claimed in any one of claims 1 - 11.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811542676.8 | 2018-12-17 | ||
CN201811542676.8A CN111324401A (en) | 2018-12-17 | 2018-12-17 | Workpiece machining program visualization method, device and system and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020127301A1 true WO2020127301A1 (en) | 2020-06-25 |
Family
ID=69147612
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/EP2019/085697 WO2020127301A1 (en) | 2018-12-17 | 2019-12-17 | Workpiece machining program visualization method, apparatus and system, and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111324401A (en) |
WO (1) | WO2020127301A1 (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6308323B1 (en) * | 1998-05-28 | 2001-10-23 | Kabushiki Kaisha Toshiba | Apparatus and method for compiling a plurality of instruction sets for a processor and a media for recording the compiling method |
EP1186976A2 (en) * | 2000-09-05 | 2002-03-13 | Mori Seiki Co.,Ltd. | NC machining simulation apparatus |
US20140172151A1 (en) * | 2012-12-17 | 2014-06-19 | Mitsubishi Electric Corporation | Numerical control device |
US20140200706A1 (en) * | 2011-06-09 | 2014-07-17 | Dmg Electronics Gmbh | Method and System for Simulating a Work Process on a Machine Tool |
US20140324211A1 (en) * | 2013-04-24 | 2014-10-30 | Mitsubishi Electric Research Laboratories, Inc. | System and Method for Performing Undo and Redo Operations during Machining Simulation |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020199156A1 (en) * | 2001-05-23 | 2002-12-26 | Fuel Tech, Inc. | Hardware-adaptable data visualization tool for use in complex data analysis and engineering design |
CN101436051A (en) * | 2007-11-16 | 2009-05-20 | 北京数码大方科技有限公司 | Method for switching and checking numerical control machining code |
CN101968767A (en) * | 2010-10-15 | 2011-02-09 | 北京数码大方科技有限公司 | Macroprogram-based code debugging and simulation method and device |
CN103136406B (en) * | 2011-12-03 | 2015-12-16 | 南京南瑞继保电气有限公司 | The method of visualization applications simulations function code |
CN104793567B (en) * | 2014-01-16 | 2019-01-25 | 中国南方航空工业(集团)有限公司 | Nc program conversion method and device |
CN107153606A (en) * | 2016-03-04 | 2017-09-12 | 郭德贵 | A kind of program analyzes process visualization method and system |
-
2018
- 2018-12-17 CN CN201811542676.8A patent/CN111324401A/en active Pending
-
2019
- 2019-12-17 WO PCT/EP2019/085697 patent/WO2020127301A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6308323B1 (en) * | 1998-05-28 | 2001-10-23 | Kabushiki Kaisha Toshiba | Apparatus and method for compiling a plurality of instruction sets for a processor and a media for recording the compiling method |
EP1186976A2 (en) * | 2000-09-05 | 2002-03-13 | Mori Seiki Co.,Ltd. | NC machining simulation apparatus |
US20140200706A1 (en) * | 2011-06-09 | 2014-07-17 | Dmg Electronics Gmbh | Method and System for Simulating a Work Process on a Machine Tool |
US20140172151A1 (en) * | 2012-12-17 | 2014-06-19 | Mitsubishi Electric Corporation | Numerical control device |
US20140324211A1 (en) * | 2013-04-24 | 2014-10-30 | Mitsubishi Electric Research Laboratories, Inc. | System and Method for Performing Undo and Redo Operations during Machining Simulation |
Also Published As
Publication number | Publication date |
---|---|
CN111324401A (en) | 2020-06-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7933678B2 (en) | System and method for analyzing a production process | |
McMinn et al. | Reducing qualitative human oracle costs associated with automatically generated test data | |
EP2960799A1 (en) | Defect localization in software integration tests | |
Zaidman et al. | Mining software repositories to study co-evolution of production & test code | |
CN101739339B (en) | Program dynamic dependency relation-based software fault positioning method | |
Ma et al. | Mutation testing cost reduction by clustering overlapped mutants | |
US9239773B1 (en) | Method and system for debugging a program that includes declarative code and procedural code | |
US20120324295A1 (en) | Method for visualizing a program execution | |
CN101968767A (en) | Macroprogram-based code debugging and simulation method and device | |
US6901309B2 (en) | Programming platform for generating parts programs for machine tools or production machines | |
CN102854831A (en) | Block execution sequence display system | |
US9619212B2 (en) | Providing code, code generator and software development environment | |
CN108027606B (en) | Machining reset implementation method, compiler, robot, numerical control system and machine tool | |
US20190303517A1 (en) | Simulation device | |
Hammad et al. | Multiview visualization of software testing results | |
WO2020127301A1 (en) | Workpiece machining program visualization method, apparatus and system, and storage medium | |
Kaiya et al. | Preliminary systematic literature review of software and systems traceability | |
CN110908978B (en) | Database data structure verification method and device | |
JP4874277B2 (en) | Automated test execution system | |
JP2018073054A (en) | Object analyzing device, object analyzing method, and program | |
JP6483507B2 (en) | Control program creating apparatus and control program debugging method | |
Huang et al. | Dynamic impact analysis using execution profile tracing | |
CN105389164B (en) | Computer-implemented method for generating control device program code and related message management environment | |
Patibandla et al. | Augmented reality for assistive maintenance and real-time failure analysis in industries | |
Meiners et al. | Accelerated Production Ramp-Up Utilising Clustering and Visualisation of Process Chain Interrelationships |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19832880 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19832880 Country of ref document: EP Kind code of ref document: A1 |