Numerical control
Patent Information
- Application Number
- DE102016014382
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2015-12-03
- Filing Date
- 2016-12-02
- Publication Date
- 2024-10-02
- Estimated Expiration
- Not applicable · inactive patent
Smart Images

Figure 00000009_0000 
Figure 00000010_0000 
Figure 00000011_0000
Abstract
Description
BACKGROUND OF THE INVENTION1. Field of the InventionThe invention relates to a numerical controller that enables a relationship (relation) between an argument of a cycle command and a tool path to be displayed.2. Prior ArtNumerical controllers for controlling a machine tool according to an input machining program are well known. In the machining program, linear or curved motion, etc. can be implemented using a Gxx (x is a numerical value) code of EIA / ISO programming. For example, an indication regardingG00 X1. Y1., etc.,Then, it is possible to issue a command for moving a tool to coordinates x1, y1, etc.Recently, a cycle command has been implemented that enables a tool to perform a complex operation.For example, an indication is given in a machining programGxxxxx (x is a numerical value) P1, Q2.45, H100,..., etc.executed to issue a cycle command. Here, the movement of a tool is determined by a value of an argument determined according to Gxxx.The numerical controller has a function of simulating the movement of the tool with the input machining program and displaying the results obtained thereby, i.e., a tool path, on a screen. When creating (machining) a machining program, a user performs operations for changing the machining program to obtain a desired tool path by comparing the machining program with a simulation result.However, in a complex command such as a cycle command, it is difficult to immediately find an argument to be changed in order to change a tool path only by observing a machining program as desired. The user must determine an argument to be changed for the desired result by means of a manual and perform a special operation for correcting the argument.Related art includes JP 61-170807 A and JP 6-202906 A. JP 61-170807 A describes the presentation of a tool path by simulating an EIA / ISO programmed machining program, selecting a portion of the presented tool path and correcting a part of the machining program corresponding to the selected tool path.JP 6-202906 A describes that a tool path corresponding to a portion to which a pointer is moved in edition of a machining program is displayed in a different color from other tool path components.However, in the related art of JP 61-170807 A and JP 6-202906 A, a relationship between a selected tool path and an argument of a cycle command cannot be recognized in a cycle command of a machining program. Therefore, there is a problem that it is not possible to recognize an argument of a cycle command to be changed so as to be able to change a tool path as desired.DE 40 39 506 A1 discloses a device for program checking in a numerically controlled machine tool. The device has a screen on which the shape of a plate can be displayed in accordance with the intended processing. If a correction is desired, the relevant location can be marked with a cursor. Then, the part of the NC program with the machining step corresponding to the marked workpiece location is displayed on the screen. The display of the program step flashes.It is thereby easily possible to determine which of the program steps to be corrected is.A display device is known from DE 11 2014 006 829 T5, which makes it possible to shorten the time required for the display by reducing the amount of data to be displayed. The apparatus comprises calculation means for calculating a tool movement path based on a machining program, and a path replacement processing unit for replacing successive tool movement paths with a replacement path.BRIEF DESCRIPTION OF THE INVENTIONThe invention is directed to a solution to the above problem, and aims at providing a numerical controller that enables a relationship (relation) between an argument of a cycle command and a tool path to be displayed (displayed).A numerical controller according to an embodiment of the invention includes a machining program generation unit for receiving input of a machining program including a cycle command having a plurality of arguments, a tool path generation unit for generating a plurality of tool paths based on the machining program, and a display unit for displaying the machining program and the plurality of tool paths, wherein the numerical controller further includes an association relationship management unit for recording a relationship between an argument of a cycle command and the plurality of tool paths in an information table, the association relationship management unit receives selection of a selected tool path corresponding to one of the plurality of tool paths and an argument of the cycle command specified corresponding to the selected tool path with recourse to the information table, and a display unit displays the specified argument in a manner, This is different from the manner of displaying another argument in the machining program.The correspondence relationship management unit specifies all tool paths (tool paths) corresponding to the specified argument by referring to the information table, and the display unit displays the specified tool paths among the plural tool paths in a form (kind) different from the display of one or more other tool paths.A numerical controller according to another embodiment includes a machining program generation unit for receiving input of a machining program including a cycle command having a plurality of arguments, a tool path generation unit for generating a plurality of tool paths based on the machining program, and a display unit for displaying the machining program and the plurality of tool paths, the numerical controller further comprising: an association relationship management unit for recording a relationship (relationship) between an argument of a cycle command and the plurality of tool paths in an information table, wherein the association relationship management unit receives selection of an argument of a cycle command and specifies all tool paths corresponding to the selected argument by referring back to the information table, and wherein the display unit displays the specified tool paths among the plurality of tool paths in a form (manner), This is different from the display of another tool path.With the invention, it is possible to provide a numerical controller that makes it possible to display a relationship between an argument of a cycle command and a tool path.BRIEF DESCRIPTION OF THE FIGURESThe above aim and features of the invention as well as other objects and features will become more apparent from the following description of embodiments with reference to the figures. FIG. 1 shows a display example of a tool path and an argument in a machining program in a numerical controller 100; FIG. 2 illustrates a process for creating an information table 107; FIG. 3 illustrates the specification of a selected tool path; FIG. 4 is a flowchart for the operation of a numerical controller 100 according to Example 1; FIG. 5 is a flowchart for explaining a process of creating the information table 107; FIG. 6 is a flowchart for explaining a process of coordinate transformation; FIG. 7 is a flowchart for explaining a process for specifying an argument A; FIG. 8 is a flowchart for explaining a display process; FIG. 9 is a flowchart for explaining an operation of a numerical controller 100 according to Example 2; FIG. 10 is a block diagram for explaining a configuration of a numerical controller 100 according to an embodiment of the invention; and FIG. 11 illustrates, as a block diagram, a configuration of a numerical controller 100 according to an embodiment of the invention.DETAILED DESCRIPTION OF PREFERRED EMBODIMENTSAn exemplary embodiment of the invention is described in more detail below with reference to the figures.FIG. 10 is a block diagram illustrating a typical hardware configuration of a numerical controller 100 according to an embodiment of the present invention. FIG. 11 is a block diagram showing functions of the numerical controller 100. In the numerical controller 100, the functional units shown in FIG. 11 are logically implemented when a CPU shown in FIG. 10 executes a predetermined process according to a program.Referring to FIG. 11, the numerical controller 100 includes a machining program generation unit 101, a tool path generation unit 103, an association relationship management unit 105, an information table 107, and a display unit 109.The machining program generation unit 101 has a function of inputting and editing a machining program to the numerical controller 100. An example of a machining program is shown in FIG. 2 (upper right).The tool path generation unit 103 executes a process of generating a tool path by simulating the operation of a tool on the basis of the machining program generated by the machining program generation unit 101, and allows the display unit 109 to display (display) the tool path. An example of a tool path is shown in FIG. 2 (upper left).The mapping relationship management unit 105 executes a process of recording a mapping relationship between an argument of a cycle command in a machining program generated by the machining program generation unit 101 and the tool path generated by the tool path generation unit 103 in the information table 107. Further, the mapping relationship management unit 105 receives a tool path selection and specifies an argument of a cycle command corresponding to a selected tool path by referring to the information table. On the other hand, the mapping relationship management unit 105 receives an argument selection and specifies all tool paths corresponding to the selected argument by referring to the information table.In the information table 107, the correspondence relationship between the argument of the cycle command in the machining program generated by the machining program generation unit 101 and the tool path generated by the tool path generation unit 103 is stored. An example of the information table 107 is shown in FIG. 2 (below).The display unit 109 records the machining program or the tool path on a display device (screen) according to a command of the machining program generation unit 101 or the tool path generation unit 103. Further, the display unit 109 displays the argument of the cycle command or the tool path as specified by the mapping relationship management unit 105 in a manner emphasized (at least changed) over other representations.<Example 1>When a portion of a displayed tool path is selected with a pointer (cursor), a numerical controller 100 according to Example 1 displays an argument of a cycle command with respect to the tool path in a different form of display as compared with another argument. Further, when a tool path other than the selected tool path is assigned to the argument, the corresponding tool path is represented in a manner different from other tool paths.Next, the operation of the numerical controller 100 according to Example 1 will be described with reference to the flowchart of FIG. 4.S101:The machining program generation unit 101 receives a machining program. Execution of a simulation process is started.S102:The tool path generation unit 103 reads the machining program generated by the machining program generation unit 101 and calculates a tool path. The tool path generation unit 103 determines end point coordinates of each tool path on the basis of an argument of a cycle command. Methods for calculating the tool path are known, so that a description in detail can be omitted here.The mapping relationship management unit 105 associates the endpoint coordinates of the tool path, the argument of the cycle instruction used for determining the endpoint coordinates, and an execution block number with each other, and records the point coordinates, the argument, and the execution block number in the information table 107. Here, the execution block number is a unique number for individually identifying a plurality of tool paths when a tool path string is formed by combining many tool paths (see FIG. 2 ). A process for creating the information table 107 will now be described in detail with reference to FIG. 5.S 103:The tool path generation unit 103 causes the display unit 109 to display the tool path calculated in S 102.S104:If the tool path generation unit 103 detects that the selection of a tool path included in the tool paths illustrated in step S 103 has taken place on the screen, the method proceeds to step S 105. Typically, the tool path generation unit 103 detects that a user has marked a position P on the screen with a pointer.S105:The tool path generation unit 103 acquires coordinates of the position P on the screen that the user has marked in step S 104 in a graphical coordinate system. The tool path generation unit 103 transforms the coordinates of the position P in the graphic coordinate system into coordinates in a workpiece coordinate system. In this way, a positional relationship between the tool path and the position P marked on the screen by the user is obtained. A process of transforming the coordinates will be described below with reference to FIG. 6.S106:The correspondence relationship management unit 105 specifies a tool path corresponding to the position P as a selected tool path by referring to the information table 107. Typically, a distance D between the coordinates of the position P and each of the tool paths stored in the information table 107 is calculated, and a tool path is specified as a selected tool path when the distance D is less than or equal to a predetermined allowable value. The mapping relationship management unit 105 specifies an argument A of a cycle command which has been used for determining the selected tool path according to the information table 107. A process of specifying the argument will be described below with reference to FIGS. 7 and 3.S107:The machining program generation unit 101 configures the argument A specified in step S 106 in a display form different from the display form of another argument and causes the display unit 109 to display the machining program. For example, argument A may be represented in a different color, shape, strength, format, font, etc.A display example is shown in FIG. 1 (right). In this example, a command starts with "G1120" which is represented in a gray background cycle command. In this case, "U1.0" corresponds to argument A, which is shown in bold, in contrast to the other symbols.S108:The correspondence relationship management unit 105 extracts all tool paths concerning the argument A by referring to the information table 107. That is, all the records relating to the argument A specified in step S106 are selected (selected) from the information table 107.The tool path generation unit 103 causes the display unit 109 to display a tool path extracted in this case in a different form of display, that is to say different from the display of a different tool path. For example, the selected tool path and the tool path selected in step S 108 may be represented in a particular color, thickness, etc.A display example is shown in FIG. 1 (left). In this example, the selected tool path and the tool path extracted in step S 108 are shown in bold lines, as distinct from other tool paths. This display process will be described in more detail below with reference to FIG. 8.The process for creating the information table 107 according to step S 102 will now be described in detail with reference to FIG. 5.S201:The tool path generation unit 103 reads the machining program generated with the machining program generation unit 101 and analyzes the syntax.S202:The process proceeds to step S 203 when the cycle command is determined to be included in the machining program as a result of the analysis. On the other hand, the process is ended when the cycle command is not present. For example, the cycle command starting with "G1120" is included in the machining program of FIG. 5.S203:The tool path generation unit 103 generates a series of tool paths based on the cycle command using known methods. In this process, the tool path generation unit 103 determines end point coordinates of each tool path according to the argument of the cycle command.In the machining program illustrated in FIG. 5, for example, end point coordinates of each tool path may be calculated on the basis of an argument starting from "G1120" and shape data starting from "G145x" (x is a numerical value). A series of tool paths can be represented by representing a segment connecting the series of calculated endpoint coordinates. Here, the tool path generation unit 103 assigns an execution block number to each of the tool paths.S204:The mapping relationship management unit 105 associates the endpoint coordinates of the tool path, the argument of the cycle instruction used for the determination of the endpoint coordinates, and an execution block number with each other, and records the point coordinates, the argument, and the execution block number in the information table 107. For example, the information table 107 shown in FIG. 5 records that end point coordinates are determined by an argument "U" for a tool path, an execution block number "52", and corresponding coordinate values "X 52, Z 52 ".S205:The tool path generation unit 103 ends the process when all the tool paths to be generated are generated based on the cycle command. Otherwise, the process returns to step S 203 if there is a tool path that is not yet generated.The process of transforming the coordinates corresponding to steps S104 to S105 will now be described with reference to FIG. 6.S301:When the tool path generation unit 103 detects that marking with a pointer or the like has been performed on the screen to select a tool path on the screen, the process proceeds to step S 302.S302:The tool path generation unit 103 acquires coordinates in the graphic coordinate system with respect to the position P on the screen marked by the user in step S 301. The graphical coordinate system refers to a coordinate system used with the numerical controller 100 to display a modeled tool path on the screen.S303:The tool path generation unit 103 transforms the coordinates of the position P in the graphic coordinate system into coordinate values in the workpiece coordinate system. The workpiece coordinate system refers to a coordinate system for representing a physical shape of a workpiece corresponding to the machining target of the machine tool. The tool path generation unit 103 may mutually transform the graphic coordinate system and the workpiece coordinate system using a predetermined transformation matrix.Now, the process for specifying the argument A in step S 106 will be described in more detail with reference to FIGS. 7 and 3.S401:In an initial stage, the selected tool path was not determined.S402:The mapping relationship management unit 105 reads records including an execution block number, an argument, and end point coordinates by referring back to the information table 107.S403:The correspondence relationship management unit 105 acquires a distance between the point P and a tool path of the read execution block.FIG. 3 illustrates this concept. An end point (X n, Z n) corresponds to the end point coordinates of the records read out in step S402. A start point (X n-1, Z n-1) corresponds to the end point coordinates of the records read out in the previous loop (steps S402 to S405 form a loop). A segment connecting the start point to the end point corresponds to the tool path of the execution block having the given number.When a distance between the point P and the tool path corresponding to the segment is less than or equal to a predetermined allowable value, the correspondence relationship management unit 105 determines that the user has marked the tool path. The mapping relationship management unit 105 specifies the tool path as a selected (selected) tool path, and the process proceeds to step S 404. Otherwise, the process proceeds to step S 405.S404:The mapping relationship management unit 105 outputs the argument and the execution block number of the selected tool path found in step S 403 to the machining program generation unit 101.S 405:The correspondence relationship management unit 105 determines whether the reading and evaluation of all records of the information table 107 is completed. The method ends when the readout and evaluation is complete. If it is not, the method returns to step S 402, and a loop subsequent to the loop read last is read.The display process of step S 108 will now be described in detail with reference to FIG. 8.S501:The mapping relationship management unit 105 reads a record including a block execution number, an argument, and end point coordinates by referring to the information table 107.S502:The mapping relationship management unit 105 determines whether the "argument" of the record read out in step S 501 is the argument A. If the argument corresponds to argument A, the process proceeds to step S503. If it does not, the method proceeds to step S 505.S503 to S504:The tool path generation unit 103 generates a command to cause the display unit 109 to display a tool path corresponding to the argument A in step S 502. Here, the tool path generation unit 103 may display the tool path in a different color, strength, etc. from other representations.S505:The correspondence relationship management unit 105 determines whether the reading and evaluation of all records of the information table 107 is completed. The method ends when the readout and evaluation is ended. If it is not, the method returns to step S501 and another loop subsequent to the last loop is read out.In the present embodiment, the numerical controller 100 shows the argument of a cycle command used to determine a tool path displayed by the user in a different form of representation as compared with other representations. Thus, the user can easily recognize a relationship between the tool path and the argument of the cycle command.Further, in this embodiment, the numerical controller 100 shows another tool path belonging to the argument of the cycle command that determines the tool path that the user has marked on the screen in a different form of display from other displays. Thus, when the argument of the cycle command is changed, the user can easily recognize the range of influence of this change.<Example 2>When an argument of a cycle command is selected in a machining program having a pointer (cursor), a numerical controller 100 according to Example 2 shows a tool path belonging to the argument in a different form of representation than other tool paths.Next, a description will be given of the operation of the numerical controller 100 according to Example 2 with reference to the flowchart of FIG. 9.S 101 to S 103:Similarly to Example 1, the machining program generation unit 101 receives a machining program. The tool path generation unit 103 reads the machining program generated by the machining program generation unit 101 and calculates a tool path. The mapping relationship management unit 105 associates the endpoint coordinates of the tool path, an argument of the cycle instruction used for determining the endpoint coordinates, and an execution block number with each other, and records the point coordinates, the argument, and the execution block number in the information table 107. The tool path generation unit 103 causes the display unit 109 to display the calculated tool path.S604:The process proceeds to step S 605 when the machining program generation unit 101 detects that an operation of selecting an argument in the machining program has been executed on the screen. Typically, the machining program generation unit 101 detects that the user has marked the argument A by operating a pointer on the screen.S605:Similarly to step S 108 in Example 1, the mapping relationship management unit 105 extracts all tool paths belonging to the argument A by referring to the information table 107. That is, from the information table 7, all records containing the argument A specified in step S106 are selected. The tool path generation unit 103 causes the display unit 109 to display a tool path thus extracted in a different display form from other tool paths.In the present embodiment, the numerical controller 100 represents a tool path related to an argument marked on a screen by the user in a different form than other paths. Thus, a user can easily recognize a relationship between a tool path and the argument of the cycle command. Also, the user can easily recognize the range of action when the cycle command is changed.The invention is not limited to the above embodiments, and changes, omissions, additions of components, and changes in orders, etc. are possible without departing from the scope of the invention. For example, Example 1 shows a numerical controller 100 that executes both a process of changing the representation form of the argument A corresponding to the selected tool path and a process of changing the representation form of the tool path to be assigned to the argument A. However, an embodiment may not be limited thereto, and the numerical controller 100 may only execute the process of changing the representation form of the argument A corresponding to the selected tool path.Although embodiments of the invention have been described in detail above, the invention is not limited to such examples and may be otherwise embodied with modifications.
Claims
A numerical controller comprising: a machining program generating unit (101) for receiving input of a machining program including a cycle command having a plurality of arguments; a tool path generating unit (103) for generating a plurality of tool paths based on the machining program; and a display unit (109) for displaying the machining program and the plurality of tool paths, wherein the numerical controller further comprises an association relationship managing unit (105) for recording a relationship between an argument of the cycle command and the plurality of tool paths in an information table (107), the association relationship managing unit (105) receives selection of a selected tool path corresponding to one of the plurality of tool paths, and specifies an argument of the cycle command corresponding to the selected tool path by referring to the information table (107), the display unit (109) displays the specified argument in a representation form different from the representation form of the other arguments in the machining program, the correspondence relationship management unit (105) specifies all tool paths corresponding to the specified argument by referring to the information table (107), and wherein the display unit (109) displays the specified tool paths among the plurality of tool paths in a representation form different from the representation form of the other tool paths.A numerical controller comprising: a machining program generation unit (101) for receiving input of a machining program including a cycle command having a plurality of arguments; a tool path generation unit (103) for generating a plurality of tool paths based on the machining program; A display unit (109) for displaying the machining program and the plurality of tool paths, wherein the numerical controller further comprises an association relationship management unit (105) for recording a relationship between an argument of a cycle command and the plurality of tool paths in an information table (107), the association relationship management unit (105) receives selection of an argument of the cycle command and specifies all tool paths corresponding to the selected argument by referring to the information table (107), and the display unit (109) displays the specified tool paths among the plurality of tool paths in a different form of representation from the form of representation of the other tool paths.
Citation Information
Patent Citations
Grinding equipment
JP6202906B2
Simulation device of a numerical control
DE102013009520A1
display device and display method
DE112014006829T5
Program checking equipment for NC machine tool - allows component form to be displayed on machine screen with marking region
DE4039506A1
Numerical controller
JP1986170807A
