Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
WORKPIECE MACHINING PROGRAM VISUALIZATION METHOD, APPARATUS AND SYSTEM, AND STORAGE MEDIUM
Document Type and Number:
WIPO Patent Application WO/2020/127301
Kind Code:
A1
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.

Inventors:
WANG WEI (CN)
Application Number:
PCT/EP2019/085697
Publication Date:
June 25, 2020
Filing Date:
December 17, 2019
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
SIEMENS AG (DE)
International Classes:
G05B19/4069
Foreign References:
US20140200706A12014-07-17
EP1186976A22002-03-13
US20140324211A12014-10-30
US6308323B12001-10-23
US20140172151A12014-06-19
Attorney, Agent or Firm:
ISARPATENT - PATENT- UND RECHTSANWÄLTE BEHNISCH BARTH CHARLES HASSA PECKMANN UND PARTNER MBB (DE)
Download PDF:
Claims:
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.

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.C N ) from the beginning to the latest editing position, generate in real time an intermediate result (Ri, R2.R N ) 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,

R 2 .R N ) 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 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.

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.R N ) ; 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 .