WO2016013043A1 - 表示装置及び表示方法 - Google Patents

表示装置及び表示方法 Download PDF

Info

Publication number
WO2016013043A1
WO2016013043A1 PCT/JP2014/003876 JP2014003876W WO2016013043A1 WO 2016013043 A1 WO2016013043 A1 WO 2016013043A1 JP 2014003876 W JP2014003876 W JP 2014003876W WO 2016013043 A1 WO2016013043 A1 WO 2016013043A1
Authority
WO
WIPO (PCT)
Prior art keywords
replacement
path
display
route
tool movement
Prior art date
Application number
PCT/JP2014/003876
Other languages
English (en)
French (fr)
Inventor
弘樹 金子
晋 松原
入口 健二
宣行 高橋
俊幸 盛田
Original Assignee
三菱電機株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 三菱電機株式会社 filed Critical 三菱電機株式会社
Priority to CN201480080783.7A priority Critical patent/CN106575111B/zh
Priority to JP2015531398A priority patent/JP5843053B1/ja
Priority to US15/327,203 priority patent/US20180210420A1/en
Priority to DE112014006829.2T priority patent/DE112014006829T5/de
Priority to PCT/JP2014/003876 priority patent/WO2016013043A1/ja
Publication of WO2016013043A1 publication Critical patent/WO2016013043A1/ja

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical 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/406Numerical 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/4068Verifying part programme on screen, by drawing or other means
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical 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/406Numerical 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/4069Simulating machining process on screen
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/35Nc in input of data, input till input file format
    • G05B2219/35349Display part, programmed locus and tool path, traject, dynamic locus
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/35Nc in input of data, input till input file format
    • G05B2219/35353While machining compare real path with simulated, command path, contour display

Definitions

  • the present invention relates to a display device and a display method of a numerical control device that controls a machine tool that moves a workpiece or a tool along a commanded path.
  • General numerical control devices use NC machining programs to control machine tools and machine workpieces with tools.
  • this NC machining program a movement command for moving a workpiece or a tool along a predetermined path is described.
  • a general numerical control device uses a movement command described in the NC machining program as a vector data or the like.
  • the information is converted into route information and displayed on a display device such as a CRT device or a liquid crystal monitor.
  • the conventional display device stores the coordinates of each vertex for constituting a polyline or polygon composed of a plurality of line segments connected to each other and the vertex number indicating the connection order of those vertices as vertex coordinate data.
  • Necessary vertex coordinate data is retrieved from the detected vertex coordinate data, and displayed on the display unit based on the retrieved vertex coordinate data.
  • JP 2000-276579 (paragraphs 0007, 0009, 0019, 0021, 0022 and FIGS. 5 to 8)
  • the vertex coordinate data handled is two-dimensional coordinate data. Then, when a conventional display device displays three-dimensional coordinate data, the three-dimensional coordinate data must be converted into two-dimensional coordinate data, and a thinning process must be performed, which takes time to display. There was a problem.
  • the present invention has been made to solve the above-described problems, and provides a display device and a display method capable of reducing the time required for display even if the data handled is data of three-dimensional coordinates. With the goal.
  • the display device calculates a tool movement path that is a path along which a tool moves on three-dimensional coordinates, based on data of a machining program in which a tool movement command on three-dimensional coordinates is described.
  • a path replacement processing unit that replaces a plurality of continuous tool movement paths with a single replacement path based on the calculation means, the tool movement path calculated by the tool movement path calculation means, and a predetermined index; And a display unit that displays the replacement route replaced by the processing unit.
  • the display method includes a tool movement path calculation step of calculating a tool movement path that is a path along which a tool moves on a three-dimensional coordinate based on data of a machining program in which a movement command on the three-dimensional coordinate is described. Based on the tool movement path calculated in the tool movement path calculation step and a predetermined index, a path replacement step of replacing a plurality of continuous tool movement paths with one replacement path, and a replacement in the path replacement step And a replacement route display step for displaying the replacement route on the display unit.
  • the present invention since the number of data to be displayed can be reduced even if the handled data is data of three-dimensional coordinates, it is possible to provide a display device and a display method that can reduce the time required for display.
  • FIG. 1 is a block diagram illustrating a configuration of a numerical control device according to Embodiment 1.
  • FIG. 7 is a flowchart showing a procedure for editing a NC machining program by displaying a replacement path by the display device of the numerical controller according to the first embodiment.
  • 3 is a conceptual diagram illustrating a method for generating route approximation information according to Embodiment 1.
  • FIG. 5 is a conceptual diagram illustrating a method for replacing a continuous tool movement path with an approximate path in the path replacement process of the first embodiment.
  • FIG. 7 is a conceptual diagram illustrating a method for extracting a tool movement path to be displayed on a shape display unit based on an approximate path in the path replacement process according to the first embodiment.
  • FIG. 7 is a conceptual diagram illustrating a method for replacing an extracted tool movement path with a replacement path in the path replacement process of the first embodiment.
  • route replacement process of Embodiment 1 it is a conceptual diagram which shows the case where it is a method of replacing the extracted tool movement path
  • 3 is a perspective view showing an entire replacement path displayed by a shape display unit in Embodiment 1.
  • FIG. 6 is a block diagram illustrating a configuration of a numerical control device according to Embodiment 2.
  • FIG. 10 is a flowchart showing a procedure for editing a NC machining program by displaying a replacement path by the display device of the numerical control device according to the second embodiment.
  • FIG. 10 is a block diagram illustrating a configuration of a numerical control device according to a third embodiment.
  • 10 is a flowchart illustrating a procedure for editing a NC machining program by displaying a replacement path by a display device of a numerical control device according to a third embodiment.
  • FIG. 10 is a conceptual diagram illustrating a method for generating route grayscale information according to Embodiment 3.
  • FIG. 10 is a block diagram illustrating a configuration of a numerical control device according to a fourth embodiment.
  • FIG. 14 is a flowchart illustrating a procedure for editing a NC machining program by displaying a replacement path by a display device of a numerical control device according to a fourth embodiment.
  • FIG. 10 is a conceptual diagram showing a method for calculating position information of an NC machining program in a fourth embodiment.
  • FIG. 10 shows a display screen of a display unit in the fourth embodiment.
  • FIG. 10 is a block diagram illustrating a configuration of a numerical control device according to a fifth embodiment.
  • 10 is a flowchart showing a procedure for editing a NC machining program by displaying a replacement path by a display device of a numerical control device according to a fifth embodiment. It is a conceptual diagram which shows the method of dividing
  • FIG. 10 is a diagram showing a display screen of a display unit in a fifth embodiment.
  • FIG. 1 is a block diagram showing the configuration of the numerical controller according to the first embodiment. With reference to FIG. 1, a numerical control device including the display device according to Embodiment 1 will be described.
  • the numerical control device 1a in the first embodiment includes an NC machining program storage unit 11 and a display device 12a.
  • the NC machining program storage unit 11 stores an NC machining program input from the outside of the numerical controller 1a.
  • the NC machining program includes a movement command for moving a workpiece or a tool for machining the workpiece along a predetermined path on a three-dimensional coordinate, an auxiliary operation command for a machine tool, a setting value for a machining condition, etc. Is described.
  • This NC machining program is created by commercially available CAM software or the like, and is described by a character string such as a so-called G code and macro sentence based on the EIA format format, the ISO format format, or the like.
  • the display device 12a includes a path replacement index storage unit 13, a tool movement path calculation unit 14, a path approximation information generation unit 17, a path approximation information storage unit 18, a path replacement processing unit 19, and a display unit 20. .
  • the route replacement index storage unit 13 stores a route replacement index (described later) input from the outside of the numerical controller 1a.
  • the tool movement path calculation means 14 acquires a machining program in which a tool movement command on the three-dimensional coordinates is described from the NC machining program storage unit 11, and on the three-dimensional coordinates based on the acquired NC machining program data. A tool movement path that is a path along which the tool moves is calculated.
  • the tool movement path calculation means 14 includes an NC machining program analysis unit 15 and a tool movement path storage unit 16.
  • the NC machining program analysis unit 15 analyzes the NC machining program acquired from the NC machining program storage unit 11 and calculates a tool movement path based on a tool movement command described in the NC machining program.
  • the tool movement path storage unit 16 stores the tool movement path input from the NC machining program analysis unit 15.
  • the path approximation information generation unit 17 acquires a tool movement path from the tool movement path storage unit 16, acquires a path replacement index from the path replacement index storage unit 13, and will be described later based on the acquired tool movement path and the path replacement index. Route approximation information to be generated.
  • the route approximation information storage unit 18 stores the route approximation information input from the route approximation information generation unit 17.
  • the path replacement processing unit 19 acquires a tool movement path from the tool movement path storage unit 16, acquires path approximation information from the path approximation information storage unit 18, acquires a path replacement index from the path replacement index storage unit 13, and will be described later.
  • the current display area and display magnification when the shape display unit 21 displays the replacement path are acquired from the shape display unit 21 to be displayed.
  • the path replacement processing unit 19 replaces a plurality of continuous tool movement paths with one replacement path based on the acquired tool movement path, path approximation information, path replacement index, display area, and display magnification. I do. Details of the route replacement process will be described later.
  • the display unit 20 displays the replacement route acquired from the route replacement processing unit 19.
  • the display unit 20 includes a shape display unit 21 and an NC machining program display editing unit 22.
  • the shape display unit 21 has a display screen such as a liquid crystal display, arranges the replacement path acquired from the path replacement processing unit 19 in the display area of the three-dimensional space, and displays the replacement path to be displayed on the display screen.
  • a display magnification for displaying a replacement route or the like is set.
  • the NC machining program display / editing unit 22 has a display screen such as a liquid crystal display, displays NC machining program data acquired from the NC machining program storage unit 11 on the display screen, and edit commands (not shown) for the NC machining program. ) Is input.
  • the NC machining program display editing unit 22 edits the NC machining program data based on the NC machining program editing command, and stores the edited NC machining program in the NC machining program storage. Store in the unit 11. Further, the NC machining program display editing unit 22 displays the edited NC machining program data acquired from the NC machining program storage unit 11 on the display screen.
  • shape display unit 21 and the NC machining program display editing unit 22 are not limited to those having separate display screens, and the display unit 20 may have one display screen.
  • FIG. 2 is a flowchart showing a procedure for editing the NC machining program by displaying the replacement path in the display device of the numerical controller according to the first embodiment.
  • a description will be given of a method in which the display device 12a of the numerical controller 1a according to the first embodiment displays a replacement path and edits the NC machining program.
  • step S11 of FIG. 2 the NC machining program storage unit 11 stores the NC machining program input from the outside of the numerical controller 1a, and the path replacement index storage unit 13 is input from the outside of the numerical controller 1a. Store the route replacement index.
  • the path replacement index is a value that serves as a basic index for determining whether or not to replace the tool movement path when performing a path replacement process for replacing the tool movement path with the replacement path.
  • the path replacement index is obtained by setting the end point of the second tool movement path and the straight line obtained by virtually extending the first tool movement path in the traveling direction in two consecutive tool movement paths.
  • the shortest distance hereinafter referred to as a replacement distance index
  • a replacement angle index an angle formed by two consecutive tool movement paths.
  • the route replacement index is not limited to the replacement distance index and the replacement angle index.
  • the path replacement index may be either one of the replacement distance index or the replacement angle index, the line segment length from the start point to the end point of one tool movement path, the tool feed speed that is the set value of the machining conditions, etc. It is also good.
  • step S12 of FIG. 2 the NC machining program analysis unit 15 analyzes the NC machining program acquired from the NC machining program storage unit 11, and based on the tool movement command on the three-dimensional coordinates described in the NC machining program. Thus, the tool movement path on the three-dimensional coordinate is calculated.
  • step S ⁇ b> 12 the tool movement path storage unit 16 stores the tool movement path input from the NC machining program analysis unit 15.
  • the path approximation information generation unit 17 acquires a tool movement path from the tool movement path storage unit 16, acquires a path replacement index from the path replacement index storage unit 13, and uses the acquired tool movement path and path replacement index as the acquired tool movement path and path replacement index. Based on this, route approximation information is generated.
  • the path approximation information is information for approximating a plurality of tool movement paths as a single approximate path. It is determined whether each tool movement path is a path to be displayed on the display unit 20 based on the approximate path.
  • FIG. 3 is a conceptual diagram showing a method for generating route approximation information in the first embodiment.
  • a method in which the route approximation information generation unit 17 generates route approximation information in the first embodiment will be described with reference to FIG.
  • tool movement paths 111a, 111b, 111c, 111d, 111e, and 111f are six continuous tool movement paths included in the tool movement path acquired by the path approximation information generation unit 17.
  • the path approximation information generation unit 17 arranges the tool movement paths 111a, 111b, 111c, 111d, 111e, and 111f in a three-dimensional space.
  • the route approximation information generation unit 17 calculates the distance t1 and the angle ⁇ 1.
  • the distance t1 is a straight line obtained by virtually extending the end point of the second tool movement path 111c and the first tool movement path 111b in the traveling direction in the two continuous tool movement paths 111b and 111c. Is the shortest distance.
  • the angle ⁇ 1 is an angle formed by two continuous tool movement paths 111b and a tool movement path 111c.
  • the route approximation information generation unit 17 calculates the approximation limit distance tcl1 and the approximation limit angle ⁇ cl1 based on the route replacement index.
  • the approximate limit distance tcl1 is obtained by multiplying the replacement distance index tbase acquired from the path replacement index storage unit 13 by an arbitrary coefficient a1.
  • the approximate limit angle ⁇ cl1 is obtained by multiplying the replacement angle index ⁇ base acquired from the path replacement index storage unit 13 by an arbitrary coefficient b1.
  • the approximate limit distance tcl1 and the approximate limit angle ⁇ cl1 are expressed by the following (Expression 1) and (Expression 2), respectively.
  • the coefficients a1 and b1 are calculated in advance in accordance with the initial display magnification when the replacement path is displayed on the shape display unit 21.
  • the coefficients a ⁇ b> 1 and b ⁇ b> 1 are calculated in advance according to the display magnification when the entire replacement path can be displayed in the display area of the shape display unit 21 when the shape display unit 21 displays the replacement path.
  • the coefficients a1 and b1 are calculated as real numbers, for example.
  • the route approximation information generation unit 17 appropriately calculates the coefficients a1 and b1 according to the display magnification and the like.
  • the coefficients a1 and b1 may be given in association with the replacement distance index tbase and the replacement angle index ⁇ base, for example, and stored in the path replacement index storage unit 17 in advance. Furthermore, the coefficients a1 and b1 do not have to be the same value.
  • the path approximation information generation unit 17 calculates the virtual cylinder 121 and the virtual cone 131 and arranges them in a three-dimensional space where the tool movement path is arranged.
  • the virtual cylinder 121 is a cylinder having a tool movement path 111b and a straight line virtually extended in the traveling direction as a central axis and an approximate limit distance tcl1 as a radius.
  • the virtual cone 131 has an end point of the tool movement path 111b as a vertex, a straight line obtained by virtually extending the tool movement path 111b in the traveling direction as a central axis, and an approximate limit angle ⁇ cl1 as an angle formed between the central axis and a generatrix. It is a cone.
  • the path approximation information generation unit 17 virtually locates the end point of the tool movement path 111c in the virtual cylinder 121 and moves the tool movement path 111c in the traveling direction. It is determined whether or not the straight line extended in the direction intersects the bottom surface of the virtual cone 131.
  • the end point of the tool movement path 111c is located in the virtual cylinder 121, and the straight line obtained by virtually extending the tool movement path 111c in the traveling direction intersects the bottom surface of the virtual cone 131, the distance t1 Is the approximate limit distance tcl1 or less and the angle ⁇ 1 is the approximate limit angle ⁇ cl1 or less.
  • the conditions for the distance t1 and the angle ⁇ 1 at this time are expressed by the following (Expression 3) and (Expression 4), respectively.
  • the route approximation information generation unit 17 performs two consecutive operations as shown in FIG.
  • the tool movement path 111b and the tool movement path 111c are replaced with an approximate path 141a that is a path obtained by connecting the start point of the first tool movement path 111b and the end point of the second tool movement path 111c with a line segment.
  • the path approximation information generation unit 17 operates in the same manner as in FIGS. 3B, 3 ⁇ / b> C, and 3 ⁇ / b> D for six consecutive tool movement paths 111 a, 111 b, 111 c, 111 d, 111 e, and 111 f. repeat.
  • the path approximate information generation unit 17 repeats the above operation for the approximate path 141a and the tool movement path 111d, and replaces the approximate path 141a and the tool movement path 111d with the approximate path.
  • the path approximation information generation unit 17 replaces the continuous tool movement paths 111b, 111c, 111d, and 111e with the approximate path 141b as shown in FIG.
  • the path approximation information generating unit 17 replaces the tool movement path 111b and the tool movement path 111c with the approximate path 141a.
  • the above operation is repeated for the tool movement path 111d and the tool movement path 111e and replaced with an approximate path.
  • the approximate path 141a and the approximate path after being replaced from the tool movement path 111d and the tool movement path 111e The above operation may be repeated and replaced with the approximate path 141b.
  • the path approximation information generation unit 17 generates path approximation information indicating that the tool movement paths 111b, 111c, 111d, and 111e are replaced with the approximate path 141b.
  • the path approximation information is, for example, information in which the next of the end point of the tool movement path 111a is connected to the start point of the tool movement path 111f and the approximate limit distance tcl1 at this time is attached, in other words, When conditions of the approximate limit distance tcl1 and the approximate limit angle ⁇ cl1 are given, the tool movement paths 111b, 111c, 111d, and 111e can be approximated to one path called the approximate path 141b and can be omitted.
  • the path approximation information generation unit 17 repeats for all the tool movement paths that have acquired the above operations, and generates path approximation information for all of the tool movement paths.
  • the route approximation information generation unit 17 may use only the replacement distance index tbase as the path replacement index. In this case, the path approximation information generation unit 17 calculates the approximate limit distance tcl1 by multiplying the replacement distance index tbase by the coefficient b1, calculates the virtual cylinder, and arranges it in the three-dimensional space where the tool movement path is arranged, By determining whether or not the distance t1 satisfies the above (Formula 4), it is determined whether or not the continuous tool movement path is replaced with the approximate path, and path approximate information is generated.
  • the route approximation information generation unit 17 may use only the replacement angle index ⁇ base as the path replacement index.
  • the path approximation information generation unit 17 calculates the approximate limit angle ⁇ cl1 by multiplying the replacement angle index ⁇ base by the coefficient a1, calculates the virtual cone, and arranges it in the three-dimensional space where the tool movement path is arranged, By determining whether or not the angle ⁇ 1 satisfies the above (formula 3), it is determined whether or not the continuous tool movement path is replaced with the approximate path, and path approximate information is generated.
  • the route approximation information storage unit 18 stores the route approximation information input from the route approximation information generation unit 17.
  • step S ⁇ b> 14 the path replacement processing unit 19 acquires a tool movement path from the tool movement path storage unit 16, acquires path approximation information from the path approximation information storage unit 18, and acquires a path replacement index from the path replacement index storage unit 13. Obtain the current display area and display magnification when the shape display unit 21 displays the replacement route from the shape display unit 21. Further, the path replacement processing unit 19 replaces a plurality of continuous tool movement paths with one replacement path based on the acquired tool movement path, path approximation information, path replacement index, display area, and display magnification. I do.
  • FIG. 4 is a conceptual diagram showing a method of replacing continuous tool movement paths with approximate paths in the path replacement process.
  • the path replacement processing unit 19 replaces successive tool movement paths with approximate paths based on the path approximation information acquired from the path approximation information storage unit 18.
  • tool movement paths 112a, 112b, 112c, 112d, 112e, and 112f are six continuous tool movement paths included in the tool movement path acquired by the path replacement processing unit 19.
  • the path replacement processing unit 19 arranges the tool movement paths 112a, 112b, 112c, 112d, 112e, and 112f in a three-dimensional space.
  • the route replacement processing unit 19 calculates the approximate route 142 and the virtual cylinder 122 illustrated in FIG. 4B based on the acquired route approximation information.
  • the approximate path 142 is a path connecting the start point of the tool movement path 112a and the end point of the tool movement path 112f with a line segment.
  • the path replacement processing unit 19 replaces the continuous six tool movement paths 112a, 112b, 112c, 112d, 112e, and 112f with the approximate path 142 as shown in FIG.
  • the virtual cylinder 122 is a cylinder having the approximate path 142 as a central axis and the approximate limit distance tcl2 as a radius.
  • FIG. 5 is a conceptual diagram illustrating a method of extracting a tool movement path to be displayed on the shape display unit 21 based on the approximate path in the path replacement process.
  • the path replacement processing unit 19 virtually arranges the calculated approximate path 142 and the virtual cylinder 122 in the three-dimensional space 101 of the shape display unit 21.
  • the path replacement processing unit 19 is based on the current display area 102 and the virtual cylinder 122 when the shape display unit 21 displays the replacement path, and the tool movement paths 112a, 112b, and 112c before being replaced with the approximate path 142.
  • 112d, 112e, and 112f are determined as to whether or not the route should be displayed on the shape display unit 21.
  • at least a part of the virtual cylinder 122 is compared to the current display area 102 acquired from the shape display unit 21. This is done by determining whether it is included.
  • the path replacement processing unit 19 determines that the tool movement paths 112a, 112b, 112c, 112d, 112e, and 112f before being replaced with the approximate path 142 are not the tool movement paths to be displayed on the shape display unit 21. .
  • the path replacement processing unit 19 uses the approximate path and the virtual path for the tool movement path that follows the tool movement path 112f. A cylinder is generated and the above operation is repeated.
  • the path replacement processing unit 19 uses the tool movement paths 112a, 112b, 112c, 112d, 112e, and 112f before the replacement with the approximate path 142 to be displayed on the shape display unit 21. Judge as a route. When it is determined that the tool movement path 112a or the like is a tool movement path to be displayed, the path replacement processing unit 19 determines whether or not to replace the tool movement path with a replacement path.
  • the route replacement processing unit 19 extracts an approximate route necessary for display on the shape display unit 21 from the approximate route replaced based on the route approximation information, and before the replacement with the extracted approximate route. Is extracted as a tool movement path to be displayed on the shape display unit 21.
  • the path replacement processing unit 19 generates approximate paths and virtual cylinders for all tool movement paths and repeats the above operation before determining whether or not to replace with a replacement path described below. A tool movement path to be displayed on the shape display unit 21 is extracted.
  • FIG. 6 is a conceptual diagram showing a method of replacing the extracted tool movement path with a replacement path in the path replacement process.
  • the path replacement processing unit 19 replaces the tool movement path extracted as the tool movement path to be displayed on the shape display unit 21 with the replacement path.
  • the current display magnification acquired by the route replacement processing unit 19 is SC1.
  • tool movement paths 112a, 112b, 112c, 112d, 112e, and 112f are six continuous tool movement paths extracted as tool movement paths to be displayed on the shape display unit 21.
  • the path replacement processing unit 19 arranges the tool movement paths 112a, 112b, 112c, 112d, 112e, and 112f in a three-dimensional space.
  • the route replacement processing unit 19 calculates the distance t2 and the angle ⁇ 2.
  • the distance t2 is a straight line obtained by virtually extending the end point of the second tool movement path 112b and the first tool movement path 112a in the traveling direction in two continuous tool movement paths 112a and 112b. Is the shortest distance.
  • the angle ⁇ 2 is an angle formed by two continuous tool movement paths 112a and 112b.
  • the route replacement processing unit 19 calculates a replacement limit distance tcu1 and a replacement limit angle ⁇ cu1 based on the route replacement index.
  • the replacement limit distance tcu1 is obtained by multiplying the replacement distance index tbase acquired from the path replacement index storage unit 13 by an arbitrary coefficient a2.
  • the replacement limit angle ⁇ cu1 is obtained by multiplying the replacement angle index ⁇ base acquired from the path replacement index storage unit 13 by an arbitrary coefficient b2.
  • the replacement limit distance tcu1 and the replacement limit angle ⁇ cu1 are expressed by the following (Expression 5) and (Expression 6), respectively.
  • the coefficients a2 and b2 are calculated based on the acquired current display magnification SC1.
  • the calculation method of the coefficients a2 and b2 is as follows.
  • the range of the display magnification is the maximum display magnification when the entire display of the replacement route can be displayed in the display area 102 of the shape display unit 21 when the shape display unit 21 displays the replacement route.
  • the maximum values of the coefficients a2 and b2 are the coefficients a1 and b1 used when the route approximation information generation unit 17 generates the route approximation information. Further, the minimum value of the coefficients a2 and b2 is set to 0.
  • the coefficients a2 and b2 are obtained by interpolation based on the current display magnification SC1 within the range between the maximum value and the minimum value.
  • the coefficients a2 and b2 are obtained by interpolation as a small value when the shape display unit 21 enlarges and displays the replacement path, and as a large value when the shape display unit 21 displays the replacement path in a reduced size. .
  • the interpolation method may be, for example, primary interpolation, secondary interpolation or higher interpolation.
  • the calculation methods of the coefficients a2 and b2 may be different from each other.
  • the maximum values of the coefficients a2 and b2 may be dynamically changed according to the stored NC machining program.
  • the path replacement processing unit 19 calculates a virtual cylinder 123 and a virtual cone 132 and arranges them in a three-dimensional space in which the tool movement path is arranged.
  • the virtual cylinder 123 is a cylinder having a tool movement path 112a and a straight line virtually extended in the traveling direction as a central axis and a replacement limit distance tcu1 as a radius.
  • the virtual cone 132 has the end point of the tool movement path 112a as the apex, a straight line obtained by virtually extending the tool movement path 112a in the traveling direction as the central axis, and the replacement limit angle ⁇ cu1 as an angle formed between the central axis and the generatrix. It is a cone.
  • the path replacement processing unit 19 has the end point of the tool movement path 112b located in the virtual cylinder 123 and travels along the tool movement path 112b. It is determined whether or not the straight line that is virtually extended crosses the bottom surface of the virtual cone 132.
  • the end point of the tool movement path 112b is located in the virtual cylinder 123, and the straight line obtained by virtually extending the tool movement path 112b in the traveling direction intersects the bottom surface of the virtual cone 132, the distance t2.
  • Conditions for the distance t2 and the angle ⁇ 2 at this time are expressed by the following (Expression 7) and (Expression 8), respectively.
  • the path replacement processing unit 19 uses two consecutive tool movement paths 112a and 112b.
  • the start point of the first tool movement path 112a and the end point of the second tool movement path 112b are replaced with a replacement path that is a path connecting the line segments.
  • the path replacement processing unit 19 repeats the above operation for six consecutive tool movement paths 112a, 112b, 112c, 112d, 112e, and 112f. In repeating this operation, the path replacement processing unit 19 repeats the above operation for the replacement path replaced from the tool movement path 112a and the tool movement path 112b and the tool movement path 112c, and the tool movement path 112a and the tool movement path.
  • the replacement path replaced from 112b and the tool movement path 112c are replaced with a replacement path 151a shown in FIG. 6B.
  • the path replacement processing unit 19 repeats the above operation to determine whether or not to replace the replacement path 151a and the tool movement path 112d with the replacement path. When it is determined that the replacement path 151a and the tool movement path 112d are not replaced with the replacement path, the path replacement processing unit 19 repeats the above operation for the tool movement path 112d and the tool movement path 112e, and the tool movement is performed. The path 112d and the tool movement path 112e are replaced with replacement paths.
  • the path replacement processing unit 19 replaces the continuous tool movement paths 112a, 112b, and 112c with the replacement path 151a and replaces the continuous tool movement paths 112d, 112e, and 112f with the replacement path as shown in FIG. 6B. Replace with 151b.
  • the path replacement processing unit 19 performs the path replacement process for the entire tool movement path when the acquired current display magnification is SC1. Replace the tool movement path with the replacement path.
  • FIG. 7 is a conceptual diagram illustrating a case in which the extracted tool movement path is replaced with a replacement path in the path replacement process of the first embodiment and the display magnification is different.
  • the current display magnification acquired by the route replacement processing unit 19 is a display magnification SC2 different from the display magnification SC1.
  • the display magnification SC2 is the display magnification when the shape display unit 21 displays the replacement route in an enlarged manner compared to the display magnification SC1.
  • the path replacement processing unit 19 arranges tool movement paths 112a, 112b, 112c, 112d, 112e, and 112f in a three-dimensional space, and calculates a distance t2 and an angle ⁇ 2.
  • the route replacement processing unit 19 calculates a replacement limit distance tcu2 and a replacement limit angle ⁇ cu2 based on the route replacement index.
  • the replacement limit distance tcu2 is obtained by multiplying the acquired replacement distance index tbase by an arbitrary coefficient a3, and the replacement limit angle ⁇ cu2 is obtained by multiplying the acquired replacement angle index ⁇ base by an arbitrary coefficient b3. is there.
  • the replacement limit distance tcu2 and the replacement limit angle ⁇ cu2 are expressed by the following (Expression 9) and (Expression 10), respectively.
  • the coefficients a3 and b3 are calculated based on the acquired current display magnification SC2, as in the case of the display magnification SC1.
  • the calculation method of the coefficients a3 and b3 is the same as the calculation method of the coefficients a2 and b2 described above, and is interpolated based on the current display magnification SC2 within the range between the maximum value and the minimum value of the coefficients a3 and b3. Ask.
  • the display magnification SC2 is the display magnification when the shape display unit 21 displays the replacement path in an enlarged manner compared to the display magnification SC1. Therefore, as a result, the coefficients a3 and b3 are calculated as values smaller than the coefficients a2 and b3. That is, the path replacement processing unit 19 compares the coefficients a3 and b3 with the coefficients a2 and b2 based on the acquired current display magnification SC2, and satisfies the following conditions of (Expression 11) and (Expression 12). Calculate as At this time, the path replacement processing unit 19 calculates the replacement limit distance tcu2 and the replacement limit angle ⁇ cu2 as values smaller than the replacement limit distance tcu1 and the replacement limit angle ⁇ cu1.
  • the path replacement processing unit 19 calculates a virtual cylinder 124 and a virtual cone 133 and arranges them in a three-dimensional space in which the tool movement path is arranged.
  • the virtual cylinder 124 is a cylinder having a tool movement path 112a and a straight line virtually extended in the traveling direction as a central axis and a replacement limit distance tcu2 as a radius.
  • the virtual cone 133 has the end point of the tool movement path 112a as the apex, a straight line obtained by virtually extending the tool movement path 112a in the traveling direction as the central axis, and the replacement limit angle ⁇ cu2 as an angle formed between the central axis and the generatrix. It is a cone.
  • the path replacement processing unit 19 determines whether or not the end point of the tool movement path 112b is located in the virtual cylinder 124 and a straight line obtained by virtually extending the tool movement path 112b in the traveling direction intersects the bottom surface of the virtual cone 133. That is, it is determined whether or not the distance t2 is equal to or less than the replacement limit distance tcu2 and the angle ⁇ 2 is equal to or less than the replacement limit angle ⁇ cu2.
  • the conditions for the distance t2 and the angle ⁇ 2 at this time are expressed by the following (Expression 13) and (Expression 14), respectively.
  • the replacement limit distance tcu2 and the replacement limit angle ⁇ cu2 are calculated as values smaller than the replacement limit distance tcu1 and the replacement limit angle ⁇ cu1. For this reason, in FIG. 7A, the distance t2 is larger than the replacement limit distance tcu2 and the angle ⁇ 2 is larger than the replacement limit angle ⁇ cu2, which does not satisfy (Expression 13) and (Expression 14).
  • the path replacement processing unit 19 determines that the two consecutive tool movement paths 112a and 112b are not replaced with the replacement paths, unlike when the display magnification is SC1. Instead, the path replacement processing unit 19 replaces the tool movement path 112a with the replacement path 152a. Next, the path replacement processing unit 19 repeats the above operation for the tool movement path 112b and the tool movement path 112c, and determines whether or not to replace with the replacement path.
  • the path replacement processing unit 19 repeats the above operation for six consecutive tool movement paths 112a, 112b, 112c, 112d, 112e, and 112f.
  • the path replacement processing unit 19 replaces the tool movement path 112a with the replacement path 152a, replaces the continuous tool movement paths 112b and 112c with the replacement path 152b, as shown in FIG.
  • the movement paths 112d and 112e are replaced with a replacement path 152c
  • the tool movement path 112f is replaced with a replacement path 152d.
  • the path replacement processing unit 19 performs path replacement for the entire tool movement path when the acquired current display magnification is a display magnification SC2 different from SC1. Processing is performed, and all tool movement paths are replaced with replacement paths.
  • FIG. 8 is a perspective view showing the entire replacement path displayed by the shape display unit 21 in the first embodiment.
  • FIG. 8A shows the entire tool movement path before the path replacement processing unit 19 performs the path replacement process.
  • the tool movement path 113 is a tool movement path received by the path replacement processing unit 19 from the tool movement path storage unit 16.
  • FIG. 8B the replacement when the path replacement processing unit 19 performs the path replacement process on the entire tool movement path shown in FIG. 8A based on the acquired display magnification SC3.
  • the entire route is shown.
  • the replacement path 153 is a replacement path replaced from the tool movement path 113 by the path replacement process performed by the path replacement processing unit 19 based on the display magnification SC3.
  • the display magnification is SC3, as shown in FIG. 8 (b), the number of replacement paths displayed on the shape display unit 21 is compared with the total number of original tool movement paths shown in FIG. 8 (a). It turns out that it is decreasing.
  • FIG. 8C shows a replacement path when the path replacement process is performed on the entire tool movement path shown in FIG. 8A when the display magnification acquired by the path replacement processing unit 19 is SC4. The whole is shown.
  • a replacement path 154 is a replacement path replaced from the tool movement path 113 by the path replacement process performed by the path replacement processing unit 19 based on the display magnification SC4.
  • the display magnification SC4 is a display magnification when the shape display unit 21 displays the replacement path by reducing the replacement path compared to the display magnification SC3.
  • the replacement limit distance and the replacement limit angle are calculated as values larger than the replacement limit distance and the replacement limit angle when the display magnification is SC3. For this reason, when the display magnification is SC4, the number of times it is determined to replace two consecutive tool movement paths with one replacement path is greater than when the display magnification is SC3.
  • the display magnification SC4 is a display magnification for displaying the replacement path in a reduced size compared with the display magnification SC3, the number of replacement paths displayed on the shape display unit 21 as shown in FIG. 8C.
  • the display magnification shown in FIG. 8B is further reduced as compared with the case of SC3. That is, when the display magnification is SC4, a smaller number of replacement paths are displayed than when the display magnification is SC3, and the separation of lines representing the replacement paths is prevented from becoming unclear. be able to. Therefore, it becomes easy to grasp the replacement route displayed on the shape display unit 21 during the reduced display.
  • the display magnification SC3 is a display magnification when the replacement path is enlarged and displayed when the shape display unit 21 displays the replacement path, compared to the display magnification SC4.
  • the replacement limit distance and the replacement limit angle are calculated as values smaller than the replacement limit distance and the replacement limit angle when the display magnification is SC4.
  • the display magnification is SC3
  • the number of times that it is determined to replace two consecutive tool movement paths with one replacement path is smaller than when the display magnification is SC4.
  • the number of replacement paths displayed on the display unit 21 is larger than when the display magnification shown in FIG. 8C is SC4.
  • the display magnification is SC3
  • the number of replacement paths displayed on the shape display unit 21 is smaller than the entire original tool movement path shown in FIG. 8A, and the display magnification is SC4. Will also increase. Therefore, at the time of enlarged display, the replacement path close to the original tool movement path before performing the path replacement process can be displayed.
  • the replacement limit distance and the replacement limit angle become 0.
  • the original tool movement path before the replacement path and the path replacement process are the same. That is, by enlarging the display, it is possible to display the original tool movement path before the path replacement process.
  • the display device 12a increases or decreases the number of replacement paths displayed on the shape display unit 21 when the path replacement processing unit 19 performs the path replacement process according to the display magnification for the entire tool movement path.
  • the display time can be shortened, and the display contents can be easily grasped.
  • step S ⁇ b> 15 the shape display unit 21 acquires the replacement route after the replacement by the route replacement processing from the route replacement processing unit 19, and stores the acquired replacement route in the three-dimensional space 101. To display on the display screen.
  • step S16 the NC machining program display / editing unit 22 displays the data of the NC machining program acquired from the NC machining program storage unit 11 on the display screen, and enables an edit command for the NC machining program to be input.
  • step S17 the NC machining program display editing unit 22 monitors whether or not editing has been performed on the NC machining program.
  • an NC machining program editing command is input (YES in step S17)
  • step S18 the NC machining program display editing unit 22 edits NC machining program data based on the NC machining program editing command,
  • the edited NC machining program is stored in the NC machining program storage unit 11. Moreover, it returns to step S12 of FIG. 2, and repeats operation
  • step S17 when the NC machining program editing command is not input and the command to end editing of the NC machining program is input (NO in step S17), the display device of the numerical controller 1a according to the first embodiment. 12a ends the process of displaying the replacement path and editing the NC machining program.
  • the display device 12 a includes the tool movement path calculation unit 14, the path replacement processing unit 19, and the display unit 20, and the tool movement path calculation unit 14 has a tool movement command on three-dimensional coordinates. Is calculated on the basis of the data of the NC machining program in which the tool is described, and the path replacement processing unit 19 calculates the tool calculated by the tool movement path calculation means 14. Based on the movement path and a predetermined index, a plurality of continuous tool movement paths are replaced with one replacement path, and the display unit 20 displays the replacement path replaced by the path replacement processing unit 19.
  • the display device 12a can reduce the number of data to be displayed even if the data to be handled is data of three-dimensional coordinates, the time required for display can be shortened.
  • the path replacement processing unit 19 uses, as predetermined indexes, the end point of the second tool movement path and the first tool movement path in two consecutive tool movement paths calculated by the tool movement path calculation unit 14. The shortest distance from the straight line that is virtually extended in the direction of travel is used. Alternatively, the path replacement processing unit 19 uses an angle formed by two continuous tool movement paths calculated by the tool movement path calculation unit 14 as a predetermined index.
  • the display device 12a can reduce the number of data to be displayed without converting the data of the three-dimensional coordinates into the data of the two-dimensional coordinates when displaying the data of the three-dimensional coordinates. Time can be shortened.
  • the path replacement processing unit 19 has the shortest distance between the end point of the second tool movement path and the straight line obtained by virtually extending the first tool movement path in the traveling direction in two consecutive tool movement paths.
  • the distance is equal to or less than a predetermined distance corresponding to the display magnification of the replacement path displayed by the display unit 20
  • two consecutive tool movement paths are replaced with one replacement path.
  • the path replacement processing unit 19 continues to 2
  • One tool movement path is replaced with one replacement path.
  • the route replacement processing unit 19 can perform the route replacement processing according to the display magnification, and increase or decrease the number of replacement routes displayed on the shape display unit 21. For this reason, at the time of reduced display, it is possible to prevent the separation of lines representing the replacement path from becoming unclear. Therefore, it is possible to display a replacement route that is easy to grasp at the time of reduced display. Further, at the time of enlarged display, a replacement path close to the original tool movement path before performing the path replacement process can be displayed. Furthermore, by enlarging the display, it is possible to display the original tool movement path before the path replacement process. As a result, it is possible to obtain an effect of facilitating the checking operation and editing operation of the NC machining program data by the operator.
  • the path replacement processing unit 19 has a predetermined distance or angle corresponding to a display magnification different from the tool movement path calculated by the tool movement path calculation unit 14 and the display magnification of the replacement path displayed by the display unit 20. Based on the above, a plurality of continuous tool movement paths are replaced with one approximate path, and an approximate path necessary for display on the display unit 20 is extracted from the replaced approximate path, and is replaced with the extracted approximate path. With respect to the tool movement path before being moved, a plurality of continuous tool movement paths are replaced with one replacement path based on a predetermined index. In addition, the route replacement processing unit 19 displays the approximate route replaced based on a predetermined distance or angle corresponding to a display magnification different from the display magnification of the replacement route displayed by the display unit 20. Is included in the display area of the display unit 20 when the replacement route is displayed, the approximate route included in the display region of the display unit 20 is extracted as the approximate route necessary for display on the display unit 20.
  • the route replacement processing unit 19 extracts an approximate route necessary for display on the display unit 20 based on the route approximate information generated by the route approximate information generation unit 17, and sets the extracted approximate route as the extracted approximate route.
  • a path replacement process is performed for the tool movement path before replacement. Thereby, since the path replacement process is performed after reducing the number of tool movement paths to be subjected to the path replacement process, the time required for display can be shortened.
  • a display device that superimposes and displays a three-dimensional shape model of a workpiece to be processed by a tool together with a replacement path replaced by a path replacement processing unit will be described. Note that the same names and symbols are used for the same or equivalent means, configurations, and the like as in the first embodiment, and a description thereof is omitted.
  • FIG. 9 is a block diagram showing the configuration of the numerical control apparatus according to the second embodiment.
  • the display device 12b has a three-dimensional shape model storage unit 23, unlike the first embodiment.
  • the three-dimensional shape model storage unit 23 receives a three-dimensional shape model from the outside of the numerical controller 1b and stores the three-dimensional shape model.
  • the shape display unit 21 acquires a replacement path after replacing the tool movement path from the path replacement processing unit 19, and further stores the 3 stored in the 3D shape model storage unit 23. Get a dimensional shape model.
  • the shape display unit 21 arranges the acquired replacement path and the three-dimensional shape model so as to overlap each other in the display area 102 of the three-dimensional space 101 and displays the same on the display screen.
  • FIG. 10 is a flowchart showing a procedure for editing the NC machining program by displaying the replacement path in the display device of the numerical controller according to the second embodiment.
  • a description will be given of a method in which the display device 12b of the numerical control device 1b according to the second embodiment displays the replacement path and the three-dimensional shape model and edits the NC machining program.
  • step S21 and step S25 in FIG. 10 since the difference from the first embodiment is the operation in step S21 and step S25 shown in FIG. 10, here, step S21 and step S25 in FIG. 10 will be described, and the remaining steps. The description of is omitted.
  • step S21 of FIG. 10 the NC machining program storage unit 11 stores the NC machining program input from the outside of the numerical control device 1b, and the path replacement index storage unit 13 is input from the outside of the numerical control device 1b. Store the route replacement index. Further, the three-dimensional shape model storage unit 23 stores a three-dimensional shape model input from the outside of the numerical controller 1b.
  • the three-dimensional shape model stored in the three-dimensional shape model storage unit 23 is, for example, a workpiece shape used for generating an NC machining program stored in the NC machining program storage unit 11 using external CAM software or the like. Is a three-dimensional shape model imitating
  • the three-dimensional shape model may be a three-dimensional shape model representing a shape as a result of performing a machining simulation using an NC machining program stored in the NC machining program storage unit 11, for example.
  • the shape display unit 21 acquires the replacement route after the replacement by the route replacement processing in step S14 of FIG. 10 from the route replacement processing unit 19, and the acquired replacement route is the three-dimensional space 101. Place and display in. Furthermore, the shape display unit 21 acquires a three-dimensional shape model from the three-dimensional shape model storage unit 23, matches the coordinate system of the acquired three-dimensional shape model with the coordinate system of the replacement path, and displays the display area of the three-dimensional space 101. In 102, it is arranged and displayed overlapping the replacement path.
  • FIG. 11 is a perspective view showing a three-dimensional space displayed by the shape display unit in the second embodiment.
  • the three-dimensional shape model 103 is a three-dimensional shape model acquired by the shape display unit 21 from the three-dimensional shape model storage unit 23.
  • the replacement path 155 is a replacement path after the path replacement processing unit 19 performs a path replacement process on the tool movement path for processing the pocket portion 104 of the three-dimensional shape model 103.
  • the shape display unit 21 arranges the three-dimensional shape model 103 and the replacement path 155 so as to overlap each other in the three-dimensional space 101.
  • the shape display unit 21 can display a state in which the replacement path 155 is overlapped on the pocket portion 104 of the three-dimensional shape model 103 by matching the coordinate system of the three-dimensional shape model 103 and the replacement path 155.
  • the display unit 20 displays the three-dimensional shape model 103 of the workpiece to be processed by the tool together with the replacement path replaced by the path replacement processing unit 19.
  • the shape display unit 21 can display the three-dimensional shape model 103 imitating the workpiece shape expected to be processed by the tool movement path together with the replacement path subjected to the path replacement process. it can.
  • the worker can confirm the replacement path and the three-dimensional shape model 103 in association with each other, and an effect of facilitating the confirmation work and editing work of the data of the NC machining program can be achieved.
  • Embodiment 3 a numerical control device including the display device according to Embodiment 3 will be described.
  • a display device that displays the replacement route replaced by the route replacement processing unit with a color shade corresponding to the angle between the replacement route and a predetermined reference vector will be described. Note that the same names and symbols are used for the same or equivalent means, configurations, and the like as in the first embodiment, and a description thereof is omitted.
  • FIG. 12 is a block diagram showing the configuration of the numerical control apparatus according to the third embodiment.
  • the display device 12c has a route shading information generation unit 24, unlike the first embodiment.
  • the route shading information generation unit 24 acquires the replacement route after the replacement by the route replacement processing similar to that of the first embodiment from the route replacement processing unit 19, and generates the route shading information based on the acquired replacement route. . Further, the route shading information generating unit 24 gives the value of the route shading information as a luminance ratio when setting a color by numerical designation for each replacement route.
  • the shape display unit 21 acquires the replacement path after replacing the tool movement path from the path replacement processing unit 19 as in the first embodiment, and further acquires the path density information from the path density information generation unit 24. Further, the shape display unit 21 attaches a color having a luminance based on the value of the route shading information to the replacement route based on the acquired replacement route and the route shading information. The shape display unit 21 arranges colored replacement paths in the display area 102 of the three-dimensional space 101 and displays them on the display screen.
  • FIG. 13 is a flowchart showing a procedure for displaying the replacement path and editing the NC machining program in the display device of the numerical controller according to the third embodiment.
  • a description will be given of a method in which the display device 12c of the numerical controller 1c according to the third embodiment displays the replacement path and edits the NC machining program.
  • step S35 and step S39 in FIG. 13 since the difference from the first embodiment is the operation in step S35 and step S39 shown in FIG. 13, here, step S35 and step S39 in FIG. 13 will be described, and the remaining steps. The description of is omitted.
  • step S39 of FIG. 13 the route shading information generation unit 24 acquires the replacement route after the replacement by the route replacement processing in S14 from the route replacement processing unit 19, and obtains the route shading information based on the acquired replacement route. Generate.
  • FIG. 14 is a conceptual diagram showing a method for generating route shading information in the third embodiment.
  • a description will be given of a method in which the route grayscale information generating unit 24 generates route grayscale information in the third embodiment.
  • a replacement route 156a is a replacement route acquired from the route replacement processing unit 19 by the route shading information generation unit 24.
  • the plane W is a plane that serves as a reference in the three-dimensional space in which the replacement path is arranged.
  • the normal vector N is a normal vector perpendicular to the plane W.
  • the plane W may be, for example, an XY plane, a YZ plane, or a ZX plane of the coordinate system where the replacement path is located, and a vector representing the current display direction is a modulo in a three-dimensional space in which the replacement path is arranged.
  • a plane that coincides with the line vector N may be used.
  • the route shading information generation unit 24 calculates the angle ⁇ ls for the replacement route 156b.
  • the angle ⁇ ls is an angle formed by the traveling direction vector of the replacement path 156b and the normal vector N. At this time, when the formed angle is 90 degrees or more, the angle ⁇ ls is calculated as an outer angle of the formed angle. For example, when the angle formed is 110 degrees, the angle ⁇ ls is calculated as 70 degrees.
  • the route shading information generation unit 24 calculates the angle formed between the traveling direction vector of the replacement route and the normal vector N in the same manner as the replacement route 156b for each replacement route shown in FIG.
  • the angle ⁇ ls is not limited to the replacement path 156b, and refers to an angle formed by the traveling direction vector of the replacement path and the normal vector N.
  • the route shading information generation unit 24 interpolates and calculates the route shading information in each replacement route according to the calculated angle ⁇ ls.
  • the range of the color component value to be changed is attached to the NC machining program and stored in the NC machining program storage unit 11 in advance.
  • the density information generation unit 24 interpolates color component values in the range of color component values stored in the NC machining program storage unit 11 based on the calculated angle ⁇ ls, and calculates it as path density information. .
  • the value of the route shading information is the value of the route shading information calculated for a part of the replacement route shown in FIG.
  • the route shading information generation unit 24 calculates the value of the route shading information as an integer value in the range of 0 to 100 according to the value of the angle ⁇ ls calculated for each replacement route.
  • the route shading information generation unit 24 linearly interpolates the value of the route shading information so that the angle ⁇ ls is closer to 100 as the angle ⁇ ls is closer to 90 degrees and closer to 0 as the angle ⁇ ls is closer to 0 degrees.
  • the value of the route shading information for the replacement route becomes larger as the angle formed by the traveling direction vector and the normal vector N of the replacement route is closer to 90 degrees.
  • the route shading information generation unit 24 gives the value of the route shading information as a luminance ratio when setting a color by numerical designation for each replacement route. For example, the luminance when the value of the route shading information is 0 is set to 0, the luminance when the value of the route shading information is 100 is maximized, and the luminance corresponding to the value of the route shading information is linearly interpolated and calculated. Give to the replacement path.
  • step S35 of FIG. 13 the shape display unit 21 acquires the replacement route after the replacement by the route replacement process in step S14 from the route replacement processing unit 19, and obtains the route density information from the route density information generation unit 24. Based on the acquired replacement route and the route shading information, a color having luminance corresponding to the value of the route shading information is attached to the replacement route, and the replacement route with this color is arranged and displayed in the three-dimensional space 101. To do.
  • the shape display unit 21 displays a color having a luminance corresponding to the given value of the shade information on the replacement route. As a result, the shape display unit 21 can display each replacement path with shades of colors according to the angle ⁇ ls.
  • the display unit 20 attaches a color shade corresponding to the angle between the replacement route and a predetermined reference vector to the replacement route replaced by the route replacement processing unit 19. To display. Thereby, even when the separation of the replacement paths displayed on the display screen of the shape display unit 21 is unclear, it is easy to grasp the positional relationship between the replacement paths that are continuous by the shaded color attached to the replacement paths. Therefore, it is possible to obtain an effect that the operator can easily check and edit the NC machining program data.
  • Embodiment 4 FIG. Next, a numerical control device including the display device according to Embodiment 4 will be described.
  • the movement command corresponding to the extracted replacement route among the replacement routes displayed on the display unit is searched, and the NC machining program data is displayed by highlighting the searched movement command.
  • the replacement route corresponding to the extracted movement command is searched from the NC machining program data displayed on the device or the display unit, and the replacement route replaced by the route replacement processing unit is highlighted.
  • the same names and symbols are used for the same or equivalent means, configurations, and the like as in the first embodiment, and a description thereof is omitted.
  • FIG. 15 is a block diagram showing the configuration of the numerical control apparatus according to the fourth embodiment.
  • the NC machining program analysis unit 15 calculates position information, which is a position in the NC machining program corresponding to the calculated tool movement path, based on the calculated tool movement path.
  • the tool movement path storage unit 16 receives the tool movement path from the NC machining program analysis unit 15, and stores the input tool movement path with the calculated position information.
  • the display device 12d includes a display shape position specifying means 25, an NC machining program position specifying means 26, and a corresponding information search unit 27, unlike the first embodiment.
  • the display shape position designation means 25 designates a position on the display screen of the shape display unit 21.
  • the NC machining program position designation means 26 designates a position on the display screen of the NC machining program display / editing unit 22.
  • the correspondence information search unit 27 acquires information on the designated position designated by the display shape position designation unit 25 from the shape display unit 21. Further, the correspondence information search unit 27 acquires information on the designated position designated by the NC machining program position designation unit 26 from the NC machining program display editing unit 22.
  • the correspondence information search unit 27 acquires the replacement route after the replacement by the route replacement processing from the route replacement processing unit 19, and acquires the NC processing program from the NC processing program storage unit 11.
  • the correspondence information search unit 27 extracts an arbitrary replacement route from the replacement route displayed on the shape display unit 21 based on the information on the designated position acquired from the shape display unit 21 and the replacement route, and extracts the replacement Based on the path and the acquired NC machining program, a tool movement command corresponding to the extracted replacement path is retrieved from the machining program data.
  • the correspondence information search unit 27 uses the NC machining program data displayed on the NC machining program display editing unit 22 based on the information on the designated position acquired from the NC machining program display editing unit 22 and the NC machining program data. Then, a movement command for an arbitrary tool is extracted. The correspondence information search unit 27 searches for a replacement path corresponding to the extracted movement command from the replacement path replaced by the path replacement processing unit 19 based on the extracted tool movement command and the acquired replacement path.
  • the shape display unit 21 acquires a replacement route from the route replacement processing unit 19, acquires the replacement route searched from the correspondence information search unit 27, and displays the replacement route after being replaced by the route replacement processing, The retrieved replacement route is highlighted.
  • the NC machining program display / editing unit 22 acquires the NC machining program from the NC machining program storage unit 11, acquires the tool movement command searched from the correspondence information search unit 27, and displays the acquired NC machining program data. At this time, the acquired tool movement command is highlighted.
  • FIG. 16 is a flowchart showing a procedure for displaying the replacement path and editing the NC machining program in the display device of the numerical control device according to the fourth embodiment.
  • a description will be given of a method in which the display device 12d in the fourth embodiment displays the replacement path and edits the NC machining program.
  • the process shown in FIG. 16 is the same as the process shown in FIG. 2 of the first embodiment in steps S11, S13, S17, and S18, and steps S42, S44, S45,
  • steps S42, S44, S45, S46, S49, S50, S51, S52, S53 and S54 which are different from the first embodiment, will be described here, and description of the remaining steps will be omitted.
  • step S42 of FIG. 16 the NC machining program analysis unit 15 analyzes the NC machining program acquired from the NC machining program storage unit 11, and based on the tool movement command on the three-dimensional coordinates described in the NC machining program. Thus, the tool movement path on the three-dimensional coordinate is calculated. Further, the NC machining program analysis unit 15 calculates position information that is a position in the NC machining program corresponding to the calculated tool movement path.
  • FIG. 17 is a conceptual diagram showing a method for calculating position information of the NC machining program. With reference to FIG. 17, the method by which the NC machining program analysis unit 15 calculates the command position information in the NC machining program will be described.
  • the letters or numbers described in the leftmost column are NC machining program data.
  • the explanation at the right end is an explanation of commands used in the NC machining program such as a so-called G code.
  • the NC machining program analysis unit 15 uses the number of lines, the number of characters, the number of bytes, etc. for the position and range in the NC machining program in which these commands are described for the command of the start point and end point of each tool movement path. To uniquely convert it into position information. For example, the NC machining program analysis unit 15 sets the position and range in the NC machining program to “4” for the command “G00 X-5.0 Y-5.0” of the NC machining program data shown in FIG. The position information is converted to "position 1st to 15th characters". As another example, the NC machining program analysis unit 15 sets the position and range in the NC machining program “X5.0” of the NC machining program data shown in FIG. It is converted into position information “9th line, 1st to 4th characters”. In this way, the NC machining program analysis unit 15 calculates the position information by converting the command position in the NC machining program into the number of lines and the number of characters.
  • the tool movement command is the first positioning command or the third linear interpolation command shown in FIG. 17 in the fourth embodiment.
  • the NC machining program analysis unit 15 calculates the position information of the NC machining program corresponding to the calculated tool movement path with respect to the tool movement command on the three-dimensional coordinates described in the NC machining program.
  • the tool movement path storage unit 16 receives the tool movement path from the NC machining program analysis unit 15 and stores the input tool movement path with the calculated position information.
  • step S44 the path replacement processing unit 19 replaces the tool movement path with the replacement path through the path replacement process in the same manner as in the first embodiment.
  • the position information attached to the tool movement path is succeeded to the replacement path after the replacement. That is, for the continuous tool movement path before being replaced with the replacement path, the path replacement processing unit 19 receives the command position information related to the start point of the first tool movement path and the command information related to the end point of the last tool movement path.
  • the position information can be inherited as the position information of the start point and end point of the replacement path after replacement.
  • step S ⁇ b> 45 the shape display unit 21 acquires the replacement route after the replacement by the route replacement processing from the route replacement processing unit 19 as in the first embodiment, and places the acquired replacement route in the three-dimensional space 101. And display it on the display screen.
  • step S46 the NC machining program display editing unit 22 displays the NC machining program data acquired from the NC machining program storage unit 11 on the display screen and inputs an editing command for the NC machining program, as in the first embodiment. Make it possible.
  • step S49 the shape display unit 21 monitors whether or not a command for specifying a position on the display screen is input by the display shape position specifying unit 25.
  • a command for designating a position is input by the display shape position designating unit 25 (YES in step S49)
  • the shape display unit 21 acquires information on the designated position designated by the display shape position designating unit 25 in step S50. Then, the process proceeds to step S51 in FIG.
  • the display shape position specifying means 25 is, for example, a pointing device such as a cursor movement key on a keyboard, a mouse, or a touch panel.
  • the operator operates the display shape position specifying means 25 that is a pointing device to move a cursor or the like displayed on the display screen of the shape display unit 21.
  • the operator moves the cursor or the like to a desired shape to be selected from the shapes displayed on the display screen of the shape display unit 21, and inputs a command for designating the position.
  • the display shape position designating unit 25 selects the position where the cursor or the like is displayed as the designated position. In this way, the display shape position specifying unit 25 can specify the position of the shape display unit 21 on the display screen.
  • the correspondence information search unit 27 acquires information on the designated position designated by the display shape position designation unit 25 from the shape display unit 21, obtains a replacement route from the route replacement processing unit 19, and NC An NC machining program is acquired from the machining program storage unit 11. Further, the correspondence information search unit 27 extracts a replacement route corresponding to the specified position from the replacement route displayed on the shape display unit 21 based on the acquired information on the specified position and the replacement route. In addition, the correspondence information search unit 27 searches for the tool movement command corresponding to the extracted replacement path from the data of the NC machining program based on the extracted replacement path and the acquired NC machining program.
  • FIG. 18 is a diagram showing a display screen of the display unit in the fourth embodiment. A method in which the correspondence information search unit 27 extracts a replacement path corresponding to a specified position and a method of searching for a tool movement command corresponding to the extracted replacement path will be described with reference to FIG.
  • the NC machining program display / editing unit 22 displays data of the NC machining program shown in FIG.
  • the starting point of the replacement path 157 displayed on the shape display unit 21 is “G01 Z20.0” on the seventh line of the NC machining program data displayed on the NC machining program display editing unit 22. Is the position corresponding to the command.
  • the end point of the replacement path 157 is a position corresponding to the command “Y5.0” on the eighth line in the NC machining program data displayed on the NC machining program display / editing unit 22.
  • the starting point of the replacement path 158 displayed on the shape display unit 21 corresponds to the command “Y5.0” on the eighth line in the NC machining program data displayed on the NC machining program display editing unit 22.
  • the end point of the replacement path 158 is a position corresponding to the command “X5.0” on the ninth line in the NC machining program data displayed on the NC machining program display / editing unit 22.
  • the correspondence information search unit 27 arranges, for example, a straight line that is virtually extended from the tip of the arrow pointed by the cursor 105a in the direction of the arrow in the three-dimensional space 101 of the shape display unit 21. Then, the interference between the straight line and each replacement path is determined, and a replacement path 158 that interferes with the straight line is extracted.
  • the correspondence information search unit 27 determines the display direction of the three-dimensional space 101 when the position is designated by the display shape position designation unit 25 in the three-dimensional space 101 of the shape display unit 21 in which the replacement path is arranged. , A straight line starting from the designated position is virtually arranged. Then, interference is determined between this straight line and each replacement route arranged in the three-dimensional space 101. If there is an interference replacement route, this replacement route is extracted. In this way, the correspondence information search unit 27 can extract a replacement route corresponding to the designated position.
  • the correspondence information search unit 27 searches for the position command indicated by the position information in the NC machining program based on the position information attached to the replacement path 158 for the extracted replacement path 158.
  • the correspondence information search unit 27 uses, for example, position information corresponding to the end point of this replacement path among the position information attached to the extracted replacement path.
  • the replacement path 158 shown in FIG. 18 is accompanied by position information “9th line, 1st to 4th characters” as position information corresponding to the end point, as shown in FIG.
  • the position of “9th line, 1st to 4th characters” in the NC machining program is the command “X5.0” of the data of the NC machining program as described above. Therefore, the correspondence information search unit 27 searches for a command “X5.0” in the NC machining program data as a tool movement command corresponding to the extracted replacement path 158. In this way, the correspondence information search unit 27 can search for a tool movement command corresponding to the extracted replacement path.
  • the correspondence information search unit 27 may use position information corresponding to the start point of the replacement path among the position information attached to the extracted replacement path. In addition, the correspondence information search unit 27 may use a range of position information from the start point to the end point of the replacement path among the position information attached to the extracted replacement path.
  • the position information attached to the start point of the replacement path 158 is “8th line, 1st to 4th characters”, and the position information attached to the end point of the replacement path 158 is “9”. If it is “the first line, the first to fourth characters”, the correspondence information search unit 27 may use either one as the position information, or “the eighth character, the first character to the ninth line, the fourth character. The “eye” may be used as position information.
  • step S46 in FIG. 16 the NC machining program display editing unit 22 acquires the NC machining program from the NC machining program storage unit 11, acquires the tool movement command searched from the correspondence information search unit 27, and acquires the acquired NC.
  • the acquired tool movement command is highlighted.
  • the NC machining program display / editing unit 22 highlights and displays a portion for displaying the acquired tool movement command on the display screen by changing the background color, character color, character format, and the like.
  • the NC machining program display editing unit 22 is a tool movement command corresponding to the replacement path 158 with respect to the replacement path 158 specified and extracted by the cursor 105a displayed on the shape display unit 21.
  • the X5.0 command is highlighted.
  • step S49 of FIG. 16 when the command for specifying the position is not input by the display shape position specifying means 25 (NO in step S49), the process proceeds to step S52 of FIG.
  • step S52 the NC machining program display editing unit 22 monitors whether or not a command for designating a position on the display screen has been input by the NC machining program position designating means 26.
  • a command for designating a position is input by the NC machining program position designating means 26 (YES in step S52)
  • the NC machining program display editing unit 22 designates the designation designated by the NC machining program position designating means 26 in step S53.
  • the position information is acquired, and the process proceeds to step S54 in FIG.
  • the NC machining program position designation means 26 has the same configuration as the display shape position designation means 25, and is, for example, a pointing device such as a cursor movement key on a keyboard, a mouse, or a touch panel.
  • the display shape position specifying means 25 and the NC machining program position specifying means 26 are not limited to being provided as separate means, and may be provided as one means having both functions.
  • the correspondence information search unit 27 acquires information on the designated position designated by the NC machining program position designation unit 26 from the NC machining program display / editing unit 22, and performs NC machining from the NC machining program storage unit 11. A program is acquired and a replacement route is acquired from the route replacement processing unit 19.
  • the correspondence information search unit 27 determines the tool corresponding to the designated position from the NC machining program data displayed on the NC machining program display editing unit 22 based on the acquired designated position information and the NC machining program data. Extract movement commands. Further, the correspondence information search unit 27 calculates position information of the NC machining program for the extracted tool movement command, and the replacement replaced by the path replacement processing unit 19 based on the calculated position information and the acquired replacement path. A replacement route corresponding to the calculated position information is searched from the route.
  • the correspondence information search unit 27 displays the NC machining program displayed by the NC machining program display / editing unit 22.
  • a command described at a specified position is extracted as a tool movement command corresponding to the specified position.
  • the correspondence information search unit 27 extracts the command “Y5.0” as the tool movement command corresponding to the designated position. To do.
  • the method for calculating the position information of the NC machining program for the extracted tool movement command is the same as the method shown in step S42 above. That is, the correspondence information search unit 27 uniquely converts the position and range in the NC machining program in which this command is described, into the position information using the number of lines, the number of characters, the number of bytes, etc. By doing so, position information is calculated.
  • the correspondence information search unit 27 can calculate the position information of the NC machining program as “8th line, 1st to 4th characters” for the command “Y5.0”, for example.
  • a method of searching for a replacement route corresponding to the calculated position information there is a method of comparing the calculated position information with the position information attached to the acquired replacement route.
  • the acquired replacement route is after the route replacement processing is performed by the route replacement processing unit 19.
  • the replacement route is determined as the searched replacement path. Further, if it is determined that the replacement route corresponding to the calculated position information is not necessary for display in the route replacement processing unit 19, it is assumed that there is no corresponding replacement route.
  • step S45 of FIG. 16 the shape display unit 21 acquires the replacement route after the replacement by the route replacement processing from the route replacement processing unit 19, and acquires the searched replacement route from the correspondence information search unit 27.
  • the searched replacement route is highlighted.
  • the shape display unit 21 displays, for example, a portion on the display screen that displays the searched replacement path with emphasis by changing the line color, line type, or the like.
  • the shape display unit 21 determines that the command “Y5.0.”, Which is a tool movement command designated and extracted by the cursor 105b displayed on the NC machining program display editing unit 22, is “Y5.
  • the replacement route 157 corresponding to the command “0” is highlighted.
  • step S52 of FIG. 16 when the command for specifying the position is not input by the NC machining program position specifying means 26 (NO in step S52), the process proceeds to step S17 of FIG.
  • the display device 12d searches for the movement information corresponding to the replacement route extracted from the replacement routes displayed on the display unit 20 from the data of the NC machining program.
  • the display unit 20 displays the data of the NC machining program with emphasis on the movement command searched by the correspondence information search unit 27.
  • the display device 12d of the numerical control device 1d has the NC machining program data displayed on the display unit 20 for displaying the NC machining program data from the replacement path replaced by the path replacement processing unit 19.
  • the correspondence information search unit 27 for searching for a replacement route corresponding to the extracted movement command is included, and the display unit 20 searches for the replacement route replaced by the route replacement processing unit 19 by the correspondence information search unit 27. Highlight the replacement path.
  • Embodiment 5 a numerical control device including the display device according to Embodiment 5 will be described.
  • the NC machining program data is divided into arbitrary processes, and the tool movement path included in the arbitrarily divided process is calculated based on the movement command included in the arbitrarily divided process.
  • a display device for replacing a plurality of continuous tool movement paths included in an arbitrarily divided process with one replacement path based on the calculated tool movement path and a predetermined index, and displaying the replacement path Will be described. Note that the same names and symbols are used for the same or equivalent means, configurations, and the like as in the first embodiment, and a description thereof is omitted.
  • FIG. 19 is a block diagram showing the configuration of the numerical control apparatus according to the fifth embodiment.
  • the display device 12e differs from the first embodiment in that the process division designation information storage unit 28, the process information display unit 29, the process information position designation unit 30, and the process information search unit 31 are used.
  • the process division designation information storage unit 28 stores process division designation information, which will be described later, input from the outside of the numerical controller 1e.
  • the NC machining program analysis unit 15 analyzes the NC machining program acquired from the NC machining program storage unit 11, acquires the process division designation information from the process division designation information storage unit 28, and acquires the obtained NC machining program and tool division designation information. Based on the above, the NC machining program is divided into arbitrary processes, and process information to be described later is generated.
  • the NC machining program analysis unit 15 calculates a tool movement path included in each process based on a tool movement command included in an arbitrarily divided process. At this time, the NC machining program analysis unit 15 calculates the tool movement path on the three-dimensional coordinate based on the tool movement command on the three-dimensional coordinate described in the NC machining program, as in the first embodiment. Then, the tool movement path included in each calculated process is attached to the process information.
  • the tool movement path storage unit 16 stores the process information input from the NC machining program analysis unit 15 along with the tool movement path.
  • the path approximation information generation unit 17 acquires process information and a tool movement path associated with the process information from the tool movement path storage unit 16, acquires a path replacement index from the path replacement index storage unit 13, and acquires the acquired process information and path. Based on the replacement index, route approximation information is generated so that the approximate route does not extend over a plurality of steps.
  • the path replacement processing unit 19 acquires the process information and the tool movement path associated with the process information from the tool movement path storage unit 16, acquires the path approximation information from the path approximation information storage unit 18, and the path replacement index storage unit 13.
  • the route replacement index is acquired, and the current display area and display magnification when the shape display unit 21 displays the replacement route are acquired from the shape display unit 21.
  • the path replacement processing unit 19 obtains a plurality of continuous tool movement paths based on the acquired process information and the tool movement path accompanying the process information, the path approximation information, the path replacement index, the display area, and the display magnification.
  • a route replacement process is performed to replace one replacement route so as not to span a plurality of steps.
  • the route replacement processing unit 19 attaches the calculated replacement route to the process information.
  • the shape display unit 21 acquires the process information and the replacement path associated with the process information from the path replacement processing unit 19, and displays the acquired replacement path in the display area 102 of the three-dimensional space 101 on the display screen.
  • the process information display unit 29 acquires process information from the tool movement path storage unit 16 and displays the acquired process information.
  • the process information position designating unit 30 designates a position on the display screen of the process information display unit 29.
  • the process information search unit 31 acquires information on the specified position specified by the process information position specifying unit 30 from the process information display unit 29, acquires process information from the tool movement path storage unit 16, and acquires the acquired information on the specified position.
  • the process information corresponding to the designated position is extracted from the process information displayed on the process information display unit 29 based on the process information.
  • the process information search unit 31 acquires the process information and the replacement route accompanying the process information from the route replacement processing unit 19.
  • the process information search unit 31 corresponds to the process number of the extracted process information from the replacement path replaced by the path replacement processing unit 19 based on the extracted process information, the acquired process information, and the replacement path accompanying the process information. Search for a replacement route to perform.
  • the process information search unit 31 acquires the stored NC machining program from the NC machining program storage unit 11. Based on the extracted process information and the acquired NC machining program data, the process information search unit 31 searches the NC machining program data for a tool movement command corresponding to the process position information of the extracted process information.
  • FIG. 20 is a flowchart showing the procedure for displaying the replacement path and editing the NC machining program in the display device of the numerical control apparatus according to the fifth embodiment.
  • FIG. 20 a description will be given of a method in which the display device 12e according to the fifth embodiment displays the replacement path and edits the NC machining program.
  • the process shown in FIG. 20 is the same as the process shown in FIG. 2 of the first embodiment in steps S11, S17, and S18, and steps S62, S63, S64, S65, and S66. , S69, S70, S71, S72 and S73 are different in operation. Therefore, steps S62, S63, S64, S65, S66, S69, S70, S71, S72, and S73, which are the differences from the first embodiment, will be described here, and the description of the remaining steps will be omitted.
  • the process division designation information storage unit 28 stores the process division designation information input from the outside of the numerical controller 1e.
  • the process division designation information is information indicating which process is divided when dividing the data of the NC machining program stored in the NC machining program storage unit 11 into arbitrary processes.
  • the process division designation information designates one or a plurality of specific words described in the NC machining program.
  • the specific word designated at this time may be designated from a group of words prepared in advance, or a word may be designated freely.
  • Words specified as a prepared word group include, for example, tool selection, coordinate system selection, sub-pro call, program end, non-modal macro call, positioning, automatic home return, sequence number, comment, special machining mode This word indicates ON / OFF, optional block skip, and the like.
  • designating division of a process it designates combining one or more among the words which show these.
  • step S62 of FIG. 20 the NC machining program analysis unit 15 acquires and analyzes the NC machining program from the NC machining program storage unit 11, acquires the process division designation information from the process division designation information storage unit 28, and obtains it. Based on the NC machining program and the tool division designation information, the NC machining program is divided into arbitrary processes to generate process information.
  • the process information is information indicating each process as a result of the division.
  • FIG. 21 is a conceptual diagram showing a method for generating process information by dividing an NC machining program into arbitrary processes.
  • a description will be given of a method in which the NC machining program analysis unit 15 generates process information by dividing an NC machining program into arbitrary processes.
  • the letters or numbers in the leftmost column are NC machining program data.
  • the explanation at the right end is an explanation of commands used in the NC machining program such as a so-called G code.
  • the NC machining program analysis unit 15 divides the NC machining program into a plurality of arbitrary processes, with the word designated by the process division designation information as “positioning”.
  • the NC machining program analysis unit 15 divides the NC machining program into four processes from the first process to the fourth process based on the process division designation information.
  • the NC machining program analysis unit 15 generates process information for each process as a result of the division.
  • the process information includes a process number, word information, and process position information.
  • the process number is a number indicating the number of the process from the beginning of the NC machining program.
  • the word information is information indicating what word the process is divided into.
  • the process position information is information representing the position and range in the NC machining program of the process using the number of lines, the number of characters, the number of bytes, and the like.
  • the NC machining program analysis unit 15 has a process number of the third process, word information positioning, process position information of the 12th line, 1st character, for the process information of this process. Information indicating that the fifth character is on the 17th line is added.
  • the NC process program analysis part 15 when producing
  • the NC machining program analysis unit 15 calculates a tool movement path included in each process based on a tool movement command included in an arbitrarily divided process, and calculates each process. Is attached to the process information.
  • step S62 the tool movement path storage unit 16 stores the process information input from the NC machining program analysis unit 15 along with the tool movement path.
  • step S63 the path approximation information generation unit 17 acquires the process information and the tool movement path associated with the process information from the tool movement path storage unit 16, acquires the path replacement index from the path replacement index storage unit 13, and acquires it. Based on the process information and the route replacement index, route approximation information is generated so that the approximate route does not extend over a plurality of steps.
  • step S63 the route approximation information storage unit 18 stores the route approximation information input from the route approximation information generation unit 17.
  • the path replacement processing unit 19 acquires the process information and the tool movement path associated with the process information from the tool movement path storage unit 16, acquires the path approximation information from the path approximation information storage unit 18, and the path replacement index.
  • a path replacement index is acquired from the storage unit 13, and the current display area and display magnification when the shape display unit 21 displays the replacement path are acquired from the shape display unit 21.
  • the path replacement processing unit 19 obtains a plurality of continuous tool movement paths based on the acquired process information and the tool movement path accompanying the process information, the path approximation information, the path replacement index, the display area, and the display magnification.
  • a route replacement process is performed to replace one replacement route so as not to span a plurality of steps.
  • the route replacement processing unit 19 attaches the calculated replacement route to the process information.
  • the method of the route replacement processing unit 19 performing the route replacement processing is the same as the method described in the first embodiment.
  • step S65 of FIG. 20 the shape display unit 21 acquires process information and a replacement path associated with the process information from the path replacement processing unit 19, arranges the acquired replacement path in the three-dimensional space 101, and displays it on the display screen. indicate.
  • FIG. 22 is a diagram showing a display screen of the display unit in the fifth embodiment. As shown in FIG. 22A, the shape display unit 21 displays the replacement route 159 after being replaced by the route replacement process.
  • step S66 of FIG. 20 the NC machining program display / editing unit 22 displays the NC machining program data acquired from the NC machining program storage unit 11 on the display screen as shown in FIG.
  • the edit command for can be input.
  • the NC machining program display / editing unit 22 displays data of the NC machining program shown in FIG.
  • step S70 the process information display unit 29 acquires the process information from the tool movement path storage unit 16, and displays the acquired process information as shown in FIG.
  • the process information display unit 29 may display either one or both of the process number and the word information included in each process information.
  • step S71 the process information display unit 29 monitors whether or not a command for specifying a position on the display screen is input by the process information position specifying unit 30.
  • step S72 the process information display unit 29 displays information on the designated position designated by the process information position designating unit 30. Acquire and go to step S73.
  • the process information position specifying means 30 has the same configuration as the display shape position specifying means 25 or the NC machining program position specifying means 26, and is, for example, a pointing device such as a cursor movement key on a keyboard, a mouse, or a touch panel. .
  • the display shape position specifying means 25, the NC machining program position specifying means 26, and the process information position specifying means 30 are not limited to being provided as separate means, but are provided as one means having these functions. Also good.
  • step S ⁇ b> 73 the process information search unit 31 acquires information on the specified position specified by the process information position specifying unit 30 from the process information display unit 29, acquires process information from the tool movement path storage unit 16, and acquires the information. Based on the information on the designated position and the process information, the process information corresponding to the designated position is extracted from the process information displayed on the process information display unit 29.
  • the process information search unit 31 specifies the specified position among the process information displayed by the process information display unit 29 when the process information position specifying unit 30 specifies the position on the display screen of the process information display unit 29. Is extracted as process information corresponding to the designated position. For example, when the cursor 105c is moved to the position shown in FIG. 22B and the position is specified, the process information search unit 31 stores the process information of the third process as a result of the division by the NC machining program analysis unit 15. The process information corresponding to the designated position is extracted.
  • step S73 the process information search unit 31 acquires the process information and a replacement route associated with the process information from the route replacement processing unit 19.
  • the process information search unit 31 corresponds to the process number of the extracted process information from the replacement path replaced by the path replacement processing unit 19 based on the extracted process information, the acquired process information, and the replacement path accompanying the process information. Search for a replacement route to perform.
  • the process information search unit 31 As a method for searching for a replacement path corresponding to the process number of the extracted process information, it corresponds to the process number of the process information extracted by the process information search unit 31 from the process information acquired from the path replacement processing unit 19.
  • the process information is searched, and only the replacement route accompanying the searched process information is extracted.
  • the process information search unit 31 replaces the replacement route 159 associated with the process information acquired from the route replacement processing unit 19. Of these, only the replacement path 160 associated with the process information whose process number is the third process is extracted. In this way, the process information search unit 31 can search for a replacement route corresponding to the process number of the extracted process information.
  • step S73 the process information search unit 31 acquires the stored NC machining program from the NC machining program storage unit 11. Based on the extracted process information and the acquired NC machining program data, the process information search unit 31 searches the NC machining program data for a tool movement command corresponding to the process position information of the extracted process information.
  • the number of lines, the number of characters included in the process position information of the extracted process information is “12th line, 1st character to 17th line, 5th character”.
  • the position and range of “12th line 1st character to 17th line 5th character” in NC machining program is from NC command data “G00 Z25.0” command to “X-5.0” command. This is a command.
  • the process information search unit 31 uses the tool in the position and range from the command “G00 Z25.0” to the command “X-5.0” as the tool movement command corresponding to the process position information of the extracted process information. Search for movement commands. In this way, the process information search unit 31 can search for a tool movement command corresponding to the process position information of the extracted process information.
  • step S65 the shape display unit 21 acquires the searched replacement route from the process information search unit 31, arranges the acquired replacement route in the three-dimensional space 101, and displays it on the display screen.
  • the shape display unit 21 displays the replacement path 160 after performing the path replacement process on the tool movement path associated with the third process extracted by the process information search unit 31.
  • the shape display unit 21 further acquires the replacement route after the replacement by the route replacement processing from the route replacement processing unit 19, and highlights the searched replacement route 160 when displaying the acquired replacement route. It is good also as displaying. In this case, for example, the shape display unit 21 displays the portion on the display screen where the searched replacement path 160 is displayed with emphasis by changing the line color, line type, or the like.
  • step S66 the NC machining program display / editing unit 22 obtains the NC machining program from the NC machining program storage unit 11, and obtains the tool movement command retrieved from the process information retrieval unit 31.
  • the NC machining program display editing unit 22 highlights and displays the acquired tool movement command when displaying the data of the acquired NC machining program.
  • the NC machining program display / editing unit 22 highlights and displays a portion for displaying the acquired tool movement command on the display screen by changing the background color, character color, character format, and the like.
  • the NC machining program display / editing unit 22 performs the process position information of the third process extracted by the process information search unit 31 with respect to “12th line 1st character to 17th line 5th character”.
  • the movement command of the tool in the position and range corresponding to this process position information is highlighted and displayed as highlighted section 106.
  • step S71 of FIG. 20 when the command for specifying the position is not input by the process information position specifying means 30 (NO in step S71), the process proceeds to step S17.
  • the tool movement path calculation unit 14 divides the data of the NC machining program into arbitrary processes, and based on the movement commands included in the divided processes, The tool movement path included in the divided process is calculated, and the path replacement processing unit 19 is arbitrarily divided based on the tool movement path calculated by the tool movement path calculation unit 14 and a predetermined index. A plurality of continuous tool movement paths included in the process are replaced with one replacement path.

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Manufacturing & Machinery (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Numerical Control (AREA)

Abstract

 取り扱うデータが3次元座標のデータであっても表示すべきデータの数を削減できるようにすることで、表示に要する時間を短縮することができる表示装置及び表示方法を得る。 この発明に係る表示装置は、3次元座標上における工具の移動指令が記述された加工プログラムのデータに基づいて、3次元座標上において工具が移動する経路である工具移動経路を算出する工具移動経路算出手段(14)と、工具移動経路算出手段(14)により算出された工具移動経路と予め定められた指標とに基づいて、連続する複数の工具移動経路を1つの置換経路に置換する経路置換処理部(19)と、経路置換処理部(19)により置換された置換経路を表示する表示部(20)とを備える。

Description

表示装置及び表示方法
 本発明は、指令された経路に沿って被加工物または工具を移動させる工作機械を制御する数値制御装置の表示装置及び表示方法に関する。
 一般的な数値制御装置は、工作機械を制御して工具により被加工物を加工するために、NC加工プログラムを用いる。このNC加工プログラムには、被加工物または工具を所定の経路に沿って移動させるための移動指令が記述されている。通常、作業者がNC加工プログラムのデータのみを見てNC加工プログラムを確認することは困難であるため、一般的な数値制御装置は、NC加工プログラムに記述されている移動指令をベクトルデータ等の経路の情報に変換し、CRT装置、液晶モニタ等の表示装置に表示させている。
 従来の表示装置は、互いに連接された複数の線分からなるポリラインまたはポリゴンを構成するための各頂点の座標とそれらの頂点の接続順を示す頂点番号を頂点座標データとして保管しており、保管している頂点座標データから必要な頂点座標データを検索し、検索した頂点座標データに基づき表示部に表示する。
 また、表示部において縮小表示を行った場合に重なる頂点および一直線と見なせる経路の中間の頂点を間引く処理を行い、言い換えれば、表示縮尺によって頂点座標を無視したり省略したりする処理を行って、表示縮尺が非常に小さい場合において、表示すべきデータの数を削減して表示を高速化している(例えば、特許文献1参照)。
特開2000-276579号公報(段落0007、0009、0019、0021、0022、及び図5から図8)
 従来の表示装置において、取り扱う頂点座標データは2次元座標のデータである。そうすると、従来の表示装置が3次元座標のデータを表示する場合、3次元座標のデータを2次元座標のデータに変換した上で間引き処理を行わなければならず、表示に時間を要してしまうという課題があった。
 本発明は、上記のような課題を解決するためになされたものであり、取り扱うデータが3次元座標のデータであっても表示に要する時間を短縮することができる表示装置及び表示方法を得ることを目的とする。
 この発明に係る表示装置は、3次元座標上における工具の移動指令が記述された加工プログラムのデータに基づいて、3次元座標上において工具が移動する経路である工具移動経路を算出する工具移動経路算出手段と、工具移動経路算出手段により算出された工具移動経路と予め定められた指標とに基づいて、連続する複数の工具移動経路を1つの置換経路に置換する経路置換処理部と、経路置換処理部により置換された置換経路を表示する表示部とを備える。
 この発明に係る表示方法は、3次元座標上における移動指令が記述された加工プログラムのデータに基づいて、3次元座標上において工具が移動する経路である工具移動経路を算出する工具移動経路算出工程と、工具移動経路算出工程において算出された工具移動経路と予め定められた指標とに基づいて、連続する複数の工具移動経路を1つの置換経路に置換する経路置換工程と、経路置換工程において置換された置換経路を表示部に表示する置換経路表示工程とを備える。
 本発明によれば、取り扱うデータが3次元座標のデータであっても表示すべきデータの数を削減できるため、表示に要する時間を短縮することができる表示装置及び表示方法を提供できる。
実施の形態1における数値制御装置の構成を示すブロック図である。 実施の形態1における数値制御装置の表示装置が置換経路を表示してNC加工プログラムを編集する手順を示すフローチャートである。 実施の形態1における経路近似情報を生成する方法を示す概念図である。 実施の形態1の経路置換処理において、連続する工具移動経路を近似経路に置換する方法を示す概念図である。 実施の形態1の経路置換処理において、近似経路に基づいて形状表示部に表示されるべき工具移動経路を抽出する方法を示す概念図である。 実施の形態1の経路置換処理において、抽出された工具移動経路を置換経路に置換する方法を示す概念図である。 実施の形態1の経路置換処理において、抽出された工具移動経路を置換経路に置換する方法であって表示倍率が異なる場合を示す概念図である。 実施の形態1における形状表示部が表示する置換経路の全体を示す斜視図である。 実施の形態2における数値制御装置の構成を示すブロック図である。 実施の形態2における数値制御装置の表示装置が置換経路を表示してNC加工プログラムを編集する手順を示すフローチャートである。 実施の形態2における形状表示部が表示する3次元空間を示す斜視図である。 実施の形態3における数値制御装置の構成を示すブロック図である。 実施の形態3における数値制御装置の表示装置が置換経路を表示してNC加工プログラムを編集する手順を示すフローチャートである。 実施の形態3における経路濃淡情報を生成する方法を示す概念図である。 実施の形態4における数値制御装置の構成を示すブロック図である。 実施の形態4における数値制御装置の表示装置が置換経路を表示してNC加工プログラムを編集する手順を示すフローチャートである。 実施の形態4におけるNC加工プログラムの位置情報を算出する方法を示す概念図である。 実施の形態4における表示部の表示画面を示す図である。 実施の形態5における数値制御装置の構成を示すブロック図である。 実施の形態5における数値制御装置の表示装置が置換経路を表示してNC加工プログラムを編集する手順を示すフローチャートである。 実施の形態5におけるNC加工プログラムを任意の工程に分割して工程情報を生成する方法を示す概念図である。 実施の形態5における表示部の表示画面を示す図である。
実施の形態1.
 図1は、実施の形態1における数値制御装置の構成を示すブロック図である。図1を用いて、実施の形態1における表示装置を備えた数値制御装置について説明する。
 実施の形態1における数値制御装置1aは、NC加工プログラム記憶部11と、表示装置12aとから構成される。NC加工プログラム記憶部11は、数値制御装置1aの外部から入力されたNC加工プログラムを記憶する。NC加工プログラムには、被加工物または被加工物の加工を行う工具を3次元座標上において所定の経路に沿って移動させるための移動指令、工作機械の補助動作指令、加工条件の設定値等が記述されている。このNC加工プログラムは、市販のCAMソフトウェア等により作成され、EIAフォーマット形式、ISOフォーマット形式等に基づいた、いわゆるGコード及びマクロ文等の文字列で記述されている。
 表示装置12aは、経路置換指標記憶部13と、工具移動経路算出手段14と、経路近似情報生成部17と、経路近似情報記憶部18と、経路置換処理部19と、表示部20とを備える。
 経路置換指標記憶部13は、数値制御装置1aの外部から入力された後述する経路置換指標を記憶する。
 工具移動経路算出手段14は、NC加工プログラム記憶部11から3次元座標上における工具の移動指令が記述された加工プログラムを取得し、取得したNC加工プログラムのデータに基づいて、3次元座標上において工具が移動する経路である工具移動経路を算出する。
 より詳細には、工具移動経路算出手段14は、NC加工プログラム解析部15と、工具移動経路記憶部16とを有する。NC加工プログラム解析部15は、NC加工プログラム記憶部11から取得したNC加工プログラムを解析し、NC加工プログラムに記述された工具の移動指令に基づいて工具移動経路を算出する。工具移動経路記憶部16は、NC加工プログラム解析部15から入力された工具移動経路を記憶する。
 経路近似情報生成部17は、工具移動経路記憶部16から工具移動経路を取得し、経路置換指標記憶部13から経路置換指標を取得し、取得した工具移動経路と経路置換指標に基づいて、後述する経路近似情報を生成する。経路近似情報記憶部18は、経路近似情報生成部17から入力された経路近似情報を記憶する。
 経路置換処理部19は、工具移動経路記憶部16から工具移動経路を取得し、経路近似情報記憶部18から経路近似情報を取得し、経路置換指標記憶部13から経路置換指標を取得し、後述する形状表示部21から形状表示部21が置換経路を表示する際の現在の表示領域及び表示倍率を取得する。また、経路置換処理部19は、取得した工具移動経路、経路近似情報、経路置換指標、表示領域及び表示倍率に基づいて、連続する複数の工具移動経路を1つの置換経路に置換する経路置換処理を行う。経路置換処理についての詳細は後述する。
 表示部20は、経路置換処理部19から取得した置換経路を表示する。
 より詳細には、表示部20は、形状表示部21と、NC加工プログラム表示編集部22とを有する。形状表示部21は、液晶ディスプレイ等の表示画面を有し、経路置換処理部19から取得した置換経路を3次元空間の表示領域に配置し、表示されるべき置換経路を表示画面に表示する。また、形状表示部21には、置換経路等を表示する際の表示倍率が設定される。
 NC加工プログラム表示編集部22は、液晶ディスプレイ等の表示画面を有し、NC加工プログラム記憶部11から取得したNC加工プログラムのデータを表示画面に表示し、NC加工プログラムに対する編集指令(図示せず)が入力されるまで待機する。
 NC加工プログラムの編集指令が入力された場合、NC加工プログラム表示編集部22は、NC加工プログラムの編集指令に基づいてNC加工プログラムのデータを編集し、編集されたNC加工プログラムをNC加工プログラム記憶部11に記憶させる。また、NC加工プログラム表示編集部22は、NC加工プログラム記憶部11から取得した編集後のNC加工プログラムのデータを表示画面に表示する。
 なお、形状表示部21とNC加工プログラム表示編集部22は、別々の表示画面を有するものに限られず、表示部20として1つの表示画面を有することとしても良い。
 図2は、実施の形態1の数値制御装置の表示装置において、置換経路を表示してNC加工プログラムを編集する手順を示すフローチャートである。図2を用いて、実施の形態1における数値制御装置1aの表示装置12aが、置換経路を表示し、NC加工プログラムを編集する方法について説明する。
 図2のステップS11において、NC加工プログラム記憶部11は、数値制御装置1aの外部から入力されたNC加工プログラムを記憶し、経路置換指標記憶部13は、数値制御装置1aの外部から入力された経路置換指標を記憶する。
 ここで、経路置換指標について説明する。経路置換指標は、工具移動経路を置換経路に置換する経路置換処理を行う際に、当該工具移動経路を置換するか否かを判断するための基本指標となる値である。実施の形態1においては、経路置換指標を、連続する2つの工具移動経路において、2つ目の工具移動経路の終点と1つ目の工具移動経路を進行方向へ仮想的に延伸させた直線との最短距離(以下、置換距離指標と称する)tbase、及び連続する2つの工具移動経路のなす角度(以下、置換角度指標と称する)θbaseとする。なお、この経路置換指標は、置換距離指標及び置換角度指標に限定されるものではない。例えば、経路置換指標は、置換距離指標または置換角度指標のうち何れか1つでも良いし、1つの工具移動経路の始点から終点までの線分長、加工条件の設定値である工具送り速度等としても良い。
 図2のステップS12において、NC加工プログラム解析部15は、NC加工プログラム記憶部11から取得したNC加工プログラムを解析し、NC加工プログラムに記述されている3次元座標上における工具の移動指令に基づいて、3次元座標上における工具移動経路を算出する。また、ステップS12において、工具移動経路記憶部16は、NC加工プログラム解析部15から入力された工具移動経路を記憶する。
 ステップS13において、経路近似情報生成部17は、工具移動経路記憶部16から工具移動経路を取得し、経路置換指標記憶部13から経路置換指標を取得し、取得した工具移動経路と経路置換指標に基づいて経路近似情報を生成する。ここで、経路近似情報は、複数の工具移動経路を単一の近似経路として近似するための情報である。各工具移動経路は、近似経路に基づいて、表示部20に表示されるべき経路であるか否かが判断される。
 図3は、実施の形態1における経路近似情報を生成する方法を示す概念図である。図3を用いて、実施の形態1において経路近似情報生成部17が経路近似情報を生成する方法について説明する。
 図3(a)において、工具移動経路111a、111b、111c、111d、111e、111fは、経路近似情報生成部17が取得した工具移動経路に含まれる、連続する6つの工具移動経路である。経路近似情報生成部17は、工具移動経路111a、111b、111c、111d、111e、111fを3次元空間において配置する。
 図3(b)において、経路近似情報生成部17は、距離t1と角度θ1とを算出する。距離t1は、連続する2つの工具移動経路111bと工具移動経路111cにおいて、2つ目の工具移動経路111cの終点と1つ目の工具移動経路111bを進行方向へ仮想的に延伸させた直線との最短距離である。また、角度θ1は、連続する2つの工具移動経路111bと工具移動経路111cのなす角度である。
 次に、経路近似情報生成部17は、経路置換指標に基づいて、近似限界距離tcl1と近似限界角度θcl1を算出する。近似限界距離tcl1は、経路置換指標記憶部13から取得した置換距離指標tbaseに対し、任意の係数a1を乗算したものである。また、近似限界角度θcl1は、経路置換指標記憶部13から取得した置換角度指標θbaseに対し、任意の係数b1を乗算したものである。近似限界距離tcl1と近似限界角度θcl1は、それぞれ次の(式1)と(式2)により表される。
Figure JPOXMLDOC01-appb-M000001
Figure JPOXMLDOC01-appb-M000002
 実施の形態1において、係数a1とb1は、形状表示部21に置換経路を表示する際の初期表示倍率に合わせて予め算出したものである。例えば、係数a1とb1は、形状表示部21が置換経路を表示する際に、置換経路全体が形状表示部21の表示領域に丁度収まって表示できるときの表示倍率に合わせて予め算出される。係数a1とb1は、例えば実数として算出される。経路近似情報生成部17は、係数a1とb1を、これらの表示倍率等に合わせて適宜算出する。
 また、係数a1とb1は、例えば、置換距離指標tbase及び置換角度指標θbaseに付随して与えられ、経路置換指標記憶部17に予め記憶されるようにしても良い。さらに、係数a1とb1は、同値である必要は無い。
 図3(c)において、経路近似情報生成部17は、仮想円柱121と仮想円錐131を演算し、工具移動経路が配置される3次元空間において配置する。仮想円柱121は、工具移動経路111b及びその進行方向へ仮想的に延伸させた直線を中心軸、近似限界距離tcl1を半径とした円柱である。また、仮想円錐131は、工具移動経路111bの終点を頂点、工具移動経路111bを進行方向へ仮想的に延伸させた直線を中心軸、近似限界角度θcl1を中心軸と母線とのなす角度とした円錐である。
 ここで、経路近似情報生成部17は、仮想円柱121と仮想円錐131を配置したときに、工具移動経路111cの終点が仮想円柱121内に位置し、かつ工具移動経路111cを進行方向へ仮想的に延伸させた直線が仮想円錐131の底面と交差しているか否かを判断する。
 なお、工具移動経路111cの終点が仮想円柱121内に位置し、かつ工具移動経路111cを進行方向へ仮想的に延伸させた直線が仮想円錐131の底面と交差している場合とは、距離t1が近似限界距離tcl1以下であり、かつ角度θ1が近似限界角度θcl1以下である場合のことである。このときの距離t1及び角度θ1についての条件は、それぞれ次の(式3)と(式4)により表される。
Figure JPOXMLDOC01-appb-M000003
Figure JPOXMLDOC01-appb-M000004
 図3(c)の場合においては、距離t1及び角度θ1が(式3)と(式4)を満たすため、経路近似情報生成部17は、図3(d)に示すとおり、連続する2つの工具移動経路111bと工具移動経路111cを、1つ目の工具移動経路111bの始点と2つ目の工具移動経路111cの終点を線分で結んだ経路である近似経路141aに置換する。
 経路近似情報生成部17は、連続する6つの工具移動経路111a、111b、111c、111d、111e、111fに対して図3(b)、図3(c)及び図3(d)と同様の動作を繰り返す。例えば、経路近似情報生成部17は、近似経路141aと工具移動経路111dとについて上記の動作を繰り返し、近似経路141aと工具移動経路111dを近似経路に置換する。次に、近似経路141a及び工具移動経路111dから置換された後の近似経路と工具移動経路111eとについても上記の動作を繰り返し、近似経路141a及び工具移動経路111dから置換された後の近似経路と工具移動経路111eを近似経路に置換する。これにより、経路近似情報生成部17は、図3(e)に示すとおり、連続する工具移動経路111b、111c、111d、111eを近似経路141bに置換する。
 なお、工具移動経路111a、111b、111c、111d、111e、111fの近似経路141bへの置換にあたり、経路近似情報生成部17は、工具移動経路111bと工具移動経路111cを近似経路141aに置換し、次に、工具移動経路111dと工具移動経路111eについて上記の動作を繰り返して近似経路に置換し、さらに、近似経路141aと、工具移動経路111d及び工具移動経路111eから置換された後の近似経路とについて上記の動作を繰り返し、近似経路141bに置換することとしても良い。
 このようにして、経路近似情報生成部17は、工具移動経路111b、111c、111d、111eが近似経路141bに置換されることを示す経路近似情報を生成する。経路近似情報は、例えば、工具移動経路111aの終点の次は工具移動経路111fの始点に接続するという接続順の情報に、このときの近似限界距離tcl1を付随させた情報であり、言い換えれば、近似限界距離tcl1及び近似限界角度θcl1の条件が与えられた場合に工具移動経路111b、111c、111d、111eを近似経路141bという1本の経路に近似して省略可能であるということを示す。
 経路近似情報生成部17は、以上の動作を取得した工具移動経路のすべてに対して繰り返し、工具移動経路のすべてに関して経路近似情報を生成する。
 なお、経路近似情報生成部17は、経路置換指標として、置換距離指標tbaseのみを使用することとしても良い。この場合、経路近似情報生成部17は、置換距離指標tbaseに係数b1を乗算して近似限界距離tcl1を算出し、仮想円柱を演算して工具移動経路が配置される3次元空間において配置し、距離t1が上記の(式4)を満たすか否かを判断することにより連続する工具移動経路を近似経路に置換するか否かを判断して、経路近似情報を生成する。
 また、経路近似情報生成部17は、経路置換指標として、置換角度指標θbaseのみを使用することとしても良い。この場合、経路近似情報生成部17は、置換角度指標θbaseに係数a1を乗算して近似限界角度θcl1を算出し、仮想円錐を演算して工具移動経路が配置される3次元空間において配置し、角度θ1が上記の(式3)を満たすか否かを判断することにより連続する工具移動経路を近似経路に置換するか否かを判断して、経路近似情報を生成する。
 以上が、図2のステップS13において、経路近似情報生成部17が経路近似情報を生成する方法の説明である。
 図2のフローチャートに戻り、ステップS13において、経路近似情報記憶部18は、経路近似情報生成部17から入力された経路近似情報を記憶する。
 ステップS14において、経路置換処理部19は、工具移動経路記憶部16から工具移動経路を取得し、経路近似情報記憶部18から経路近似情報を取得し、経路置換指標記憶部13から経路置換指標を取得し、形状表示部21から形状表示部21が置換経路を表示する際の現在の表示領域及び表示倍率を取得する。また、経路置換処理部19は、取得した工具移動経路、経路近似情報、経路置換指標、表示領域及び表示倍率に基づいて、連続する複数の工具移動経路を1つの置換経路に置換する経路置換処理を行う。
 次に、経路置換処理部19が経路置換処理を行う方法について、図4、図5及び図6を用いて説明する。
 図4は、経路置換処理において、連続する工具移動経路を近似経路に置換する方法を示す概念図である。図4において、経路置換処理部19は、経路近似情報記憶部18から取得した経路近似情報に基づいて、連続する工具移動経路を近似経路に置換する。
 図4(a)において、工具移動経路112a、112b、112c、112d、112e、112fは、経路置換処理部19が取得した工具移動経路に含まれる、連続する6つの工具移動経路である。経路置換処理部19は、工具移動経路112a、112b、112c、112d、112e、112fを3次元空間において配置する。
 ここで、経路置換処理部19が、接続順の情報が工具移動経路112aの始点から工具移動経路112fの終点まで、近似限界距離がtcl2である経路近似情報を取得した場合を考える。この場合、経路置換処理部19は、取得した経路近似情報に基づいて、図4(b)に示す近似経路142と仮想円柱122を演算する。
 近似経路142は、工具移動経路112aの始点と工具移動経路112fの終点を線分で結んだ経路である。経路置換処理部19は、図4(b)に示すとおり、連続する6つの工具移動経路112a、112b、112c、112d、112e、112fを近似経路142に置換する。また、仮想円柱122は、近似経路142を中心軸、近似限界距離tcl2を半径とした円柱である。
 図5は、経路置換処理において、近似経路に基づいて形状表示部21に表示されるべき工具移動経路を抽出する方法を示す概念図である。
 図5において、経路置換処理部19は、演算した近似経路142と仮想円柱122とを、形状表示部21の3次元空間101に仮想的に配置する。経路置換処理部19は、形状表示部21が置換経路を表示する際の現在の表示領域102と仮想円柱122とに基づいて、近似経路142に置換される前の工具移動経路112a、112b、112c、112d、112e、112fが、形状表示部21に表示されるべき経路か否かの判断を行う。この判断は、仮想円柱122を形状表示部21の3次元空間101に仮想的に配置させた場合に、形状表示部21から取得した現在の表示領域102に対して仮想円柱122の少なくとも一部が包含されるか否かを判断することにより行う。
 図5(a)に示すように、形状表示部21の3次元空間101に仮想円柱122を仮想的に配置したときに、現在の表示領域102に対して仮想円柱122が全く包含されない場合には、経路置換処理部19は、近似経路142に置換される前の工具移動経路112a、112b、112c、112d、112e、112fが、形状表示部21に表示されるべき工具移動経路ではないと判断する。当該工具移動経路112a等が表示されるべき工具移動経路ではないと判断された場合には、経路置換処理部19は、工具移動経路112fの次に連続する工具移動経路に対して近似経路及び仮想円柱を生成し、上記の動作を繰り返す。
 一方、図5(b)に示すように、形状表示部21の3次元空間101に仮想円柱122を仮想的に配置したときに、現在の表示領域102に対して仮想円柱122の少なくとも一部が包含される場合には、経路置換処理部19は、近似経路142に置換される前の工具移動経路112a、112b、112c、112d、112e、112fが、形状表示部21に表示されるべき工具移動経路であると判断する。当該工具移動経路112a等が表示されるべき工具移動経路であると判断された場合には、経路置換処理部19は、それらの工具移動経路について、置換経路に置換するか否かを判断する。
 このようにして、経路置換処理部19は、経路近似情報に基づいて置換された近似経路から、形状表示部21の表示に必要な近似経路を抽出し、抽出された近似経路に置換される前の工具移動経路を、形状表示部21に表示されるべき工具移動経路として抽出する。
 なお、経路置換処理部19は、次に説明する置換経路に置換するか否かの判断を行う前に、すべての工具移動経路について、近似経路及び仮想円柱を生成して上記の動作を繰り返し、形状表示部21に表示されるべき工具移動経路を抽出しておく。
 図6は、経路置換処理において、抽出された工具移動経路を置換経路に置換する方法を示す概念図である。図6において、経路置換処理部19は、形状表示部21に表示されるべき工具移動経路として抽出した工具移動経路を置換経路に置換する。ここでは、経路置換処理部19の取得した現在の表示倍率がSC1である場合を考える。
 図6(a)において、工具移動経路112a、112b、112c、112d、112e、112fは、形状表示部21に表示されるべき工具移動経路として抽出された、連続する6つの工具移動経路である。経路置換処理部19は、工具移動経路112a、112b、112c、112d、112e、112fを、3次元空間において配置する。
 次に、経路置換処理部19は、距離t2と角度θ2とを算出する。距離t2は、連続する2つの工具移動経路112aと工具移動経路112bにおいて、2つ目の工具移動経路112bの終点と1つ目の工具移動経路112aを進行方向へ仮想的に延伸させた直線との最短距離である。また、角度θ2は、連続する2つの工具移動経路112aと工具移動経路112bのなす角度である。
 また、経路置換処理部19は、経路置換指標に基づいて、置換限界距離tcu1と置換限界角度θcu1を算出する。置換限界距離tcu1は、経路置換指標記憶部13から取得した置換距離指標tbaseに対し、任意の係数a2を乗算したものである。また、置換限界角度θcu1は、経路置換指標記憶部13から取得した置換角度指標θbaseに対し、任意の係数b2を乗算したものである。置換限界距離tcu1と置換限界角度θcu1は、それぞれ次の(式5)と(式6)により表される。
Figure JPOXMLDOC01-appb-M000005
Figure JPOXMLDOC01-appb-M000006
 実施の形態1において、係数a2及びb2は、取得した現在の表示倍率SC1に基づいて算出される。係数a2及びb2の算出方法は、次のとおりである。
 経路置換処理において、表示倍率の範囲は、形状表示部21が置換経路を表示する際に、置換経路全体を形状表示部21の表示領域102に丁度収めて表示できるときの表示倍率を最大値、0を最小値と設定する。係数a2及びb2の最大値は、経路近似情報生成部17において経路近似情報を生成する際に用いた係数a1及びb1とする。また、係数a2及びb2の最小値を0とする。
 係数a2及びb2は、最大値と最小値の間の範囲内で、現在の表示倍率SC1に基づいて補間して求める。係数a2及びb2は、補間により、形状表示部21が置換経路を拡大して表示する場合には小さな値として、形状表示部21が置換経路を縮小して表示する場合には大きな値として求められる。
 なお、補間の方法は、例えば1次補間でも良いし、2次補間またはそれ以上の高次補間としても良い。また、係数a2及びb2の算出方法はそれぞれ異なっても良い。さらに、係数a2及びb2の最大値は、記憶されるNC加工プログラムに応じて動的に変更させても良い。
 図6(a)において、経路置換処理部19は、仮想円柱123と仮想円錐132を演算し、工具移動経路が配置される3次元空間において配置する。仮想円柱123は、工具移動経路112a及びその進行方向へ仮想的に延伸させた直線を中心軸、置換限界距離tcu1を半径とした円柱である。また、仮想円錐132は、工具移動経路112aの終点を頂点、工具移動経路112aを進行方向へ仮想的に延伸させた直線を中心軸、置換限界角度θcu1を中心軸と母線とのなす角度とした円錐である。
 図6(a)において、経路置換処理部19は、仮想円柱123と仮想円錐132を配置したときに、工具移動経路112bの終点が仮想円柱123内に位置し、かつ工具移動経路112bを進行方向へ仮想的に延伸させた直線が仮想円錐132の底面と交差しているか否かを判断する。
 なお、工具移動経路112bの終点が仮想円柱123内に位置し、かつ工具移動経路112bを進行方向へ仮想的に延伸させた直線が仮想円錐132の底面と交差している場合とは、距離t2が置換限界距離tcu1以下であり、かつ角度θ2が置換限界角度θcu1以下である場合のことである。このときの距離t2及び角度θ2についての条件は、それぞれ次の(式7)と(式8)により表される。
Figure JPOXMLDOC01-appb-M000007
Figure JPOXMLDOC01-appb-M000008
 図6(a)の場合においては、距離t2及び角度θ2が(式7)と(式8)を満たすため、経路置換処理部19は、連続する2つの工具移動経路112aと工具移動経路112bを、1つ目の工具移動経路112aの始点と2つ目の工具移動経路112bの終点を線分で結んだ経路である置換経路に置換する。
 経路置換処理部19は、連続する6つの工具移動経路112a、112b、112c、112d、112e、112fに対して上記の動作を繰り返す。この動作の繰り返しにあたり、経路置換処理部19は、工具移動経路112a及び工具移動経路112bから置換された置換経路と工具移動経路112cとについて、上記の動作を繰り返し、工具移動経路112a及び工具移動経路112bから置換された置換経路と工具移動経路112cを、図6(b)に示す置換経路151aに置換する。
 さらに、置換経路151aと工具移動経路112dとについて、経路置換処理部19は、上記の動作を繰り返し、置換経路151aと工具移動経路112dを置換経路に置換するか否かを判断する。また、置換経路151aと工具移動経路112dを置換経路に置換しないと判断された場合には、工具移動経路112dと工具移動経路112eについて、経路置換処理部19は、上記の動作を繰り返し、工具移動経路112dと工具移動経路112eを置換経路に置換する。
 これにより、経路置換処理部19は、図6(b)に示すとおり、連続する工具移動経路112a、112b、112cを置換経路151aに置換し、連続する工具移動経路112d、112e、112fを置換経路151bに置換する。
 以上の動作を取得した工具移動経路全体に対して繰り返すことにより、経路置換処理部19は、取得した現在の表示倍率がSC1である場合において、工具移動経路全体の経路置換処理を行い、すべての工具移動経路を置換経路に置換する。
 なお、(式7)と(式8)によれば、置換限界距離tcu1と置換限界角度θcu1の値が大きい場合、距離t2と角度θ2は、(式7)と(式8)を満たすことになる。この場合、連続する2つの工具移動経路を1つの置換経路に置換すると判断される回数が多くなる。また、反対に、置換限界距離tcu2と置換限界角度θcu2の値が小さい場合、距離t2と角度θ2は、(式7)と(式8)を満たさないことになる。この場合、連続する2つの工具移動経路を1つの置換経路に置換すると判断される回数が少なくなる。
 次に、経路置換処理部19が、上記の表示倍率SC1とは異なる表示倍率を取得した場合を考える。図7は、実施の形態1の経路置換処理において、抽出された工具移動経路を置換経路に置換する方法であって表示倍率が異なる場合を示す概念図である。
 図7においては、経路置換処理部19の取得した現在の表示倍率が、表示倍率SC1と異なる表示倍率SC2である場合を考える。なお、表示倍率SC2は、形状表示部21が置換経路を表示する際に、表示倍率SC1のときよりも置換経路を拡大して表示する場合の表示倍率とする。
 図7(a)において、経路置換処理部19は、工具移動経路112a、112b、112c、112d、112e、112fを3次元空間において配置し、距離t2と角度θ2とを算出する。
 また、経路置換処理部19は、経路置換指標に基づいて、置換限界距離tcu2と置換限界角度θcu2を算出する。置換限界距離tcu2は、取得した置換距離指標tbaseに対し、任意の係数a3を乗算したものであり、置換限界角度θcu2は、取得した置換角度指標θbaseに対し、任意の係数b3を乗算したものである。置換限界距離tcu2と置換限界角度θcu2は、それぞれ次の(式9)と(式10)により表される。
Figure JPOXMLDOC01-appb-M000009
Figure JPOXMLDOC01-appb-M000010
 係数a3及びb3は、表示倍率SC1の場合と同様に、取得した現在の表示倍率SC2に基づいて算出される。係数a3及びb3の算出方法は、前述の係数a2及びb2の算出方法と同様であり、係数a3及びb3の最大値と最小値の間の範囲内で、現在の表示倍率SC2に基づいて補間して求める。
 なお、表示倍率SC2は、上記のとおり、形状表示部21が置換経路を表示する際に、表示倍率SC1のときよりも置換経路を拡大して表示する場合の表示倍率としている。このため、結果として、係数a3及びb3は、係数a2及びb3よりも小さな値として算出される。つまり、経路置換処理部19は、取得した現在の表示倍率SC2に基づいて、係数a3及びb3を、係数a2及びb2と比較して次の(式11)と(式12)の条件を満たす値として算出する。このとき、経路置換処理部19は、置換限界距離tcu2と置換限界角度θcu2を、置換限界距離tcu1と置換限界角度θcu1よりも小さい値として算出する。
Figure JPOXMLDOC01-appb-M000011
Figure JPOXMLDOC01-appb-M000012
 図7(a)において、経路置換処理部19は、仮想円柱124と仮想円錐133を演算し、工具移動経路が配置される3次元空間において配置する。仮想円柱124は、工具移動経路112a及びその進行方向へ仮想的に延伸させた直線を中心軸、置換限界距離tcu2を半径とした円柱である。また、仮想円錐133は、工具移動経路112aの終点を頂点、工具移動経路112aを進行方向へ仮想的に延伸させた直線を中心軸、置換限界角度θcu2を中心軸と母線とのなす角度とした円錐である。
 経路置換処理部19は、工具移動経路112bの終点が仮想円柱124内に位置し、かつ工具移動経路112bを進行方向へ仮想的に延伸させた直線が仮想円錐133の底面と交差しているか否か、すなわち距離t2が置換限界距離tcu2以下であり、かつ角度θ2が置換限界角度θcu2以下であるか否かを判断する。このときの距離t2及び角度θ2についての条件は、それぞれ次の(式13)と(式14)により表される。
Figure JPOXMLDOC01-appb-M000013
Figure JPOXMLDOC01-appb-M000014
 なお、置換限界距離tcu2と置換限界角度θcu2は、上記のとおり、置換限界距離tcu1と置換限界角度θcu1よりも小さい値として算出される。このため、図7(a)においては、距離t2が置換限界距離tcu2よりも大きく、かつ角度θ2が置換限界角度θcu2よりも大きくなっており、(式13)と(式14)を満たさない。
 よって、表示倍率がSC2の場合、経路置換処理部19は、表示倍率がSC1の場合と異なり、連続する2つの工具移動経路112aと工具移動経路112bを置換経路に置換しないと判断する。代わりに、経路置換処理部19は、工具移動経路112aを置換経路152aに置換する。経路置換処理部19は、次に、工具移動経路112bと工具移動経路112cとについて、上記の動作を繰り返し、置換経路に置換するか否かを判断する。
 経路置換処理部19は、連続する6つの工具移動経路112a、112b、112c、112d、112e、112fに対して上記の動作を繰り返す。これにより、経路置換処理部19は、図7(b)に示すとおり、工具移動経路112aを置換経路152aに置換し、連続する工具移動経路112b、112cを置換経路152bに置換し、連続する工具移動経路112d、112eを置換経路152cに置換し、工具移動経路112fを置換経路152dに置換する。
 以上の動作を取得した工具移動経路全体に対して繰り返すことにより、経路置換処理部19は、取得した現在の表示倍率がSC1とは異なる表示倍率SC2である場合において、工具移動経路全体の経路置換処理を行い、すべての工具移動経路を置換経路に置換する。
 図8は、実施の形態1における形状表示部21が表示する置換経路の全体を示す斜視図である。図8(a)においては、経路置換処理部19が経路置換処理を実施する前の工具移動経路の全体を示している。工具移動経路113は、経路置換処理部19が工具移動経路記憶部16から受けとった工具移動経路である。
 また、図8(b)においては、経路置換処理部19が、取得した表示倍率SC3に基づいて、図8(a)に示した工具移動経路全体に対して経路置換処理を実施した場合の置換経路の全体を示している。図8(b)において、置換経路153は、経路置換処理部19が表示倍率SC3に基づいて行った経路置換処理により、工具移動経路113から置換された置換経路である。表示倍率がSC3の場合、図8(b)に示すとおり、形状表示部21に表示される置換経路の数は、図8(a)に示す元の工具移動経路の全体の数と比較して減少していることがわかる。
 さらに、図8(c)に、経路置換処理部19の取得した表示倍率がSC4のときに、図8(a)に示した工具移動経路全体に対して経路置換処理を実施した場合の置換経路の全体を示す。図8(c)において、置換経路154は、経路置換処理部19が表示倍率SC4に基づいて行った経路置換処理により、工具移動経路113から置換された置換経路である。
 ここで、表示倍率SC4は、形状表示部21が置換経路を表示する際に、表示倍率SC3のときよりも置換経路を縮小して表示する場合の表示倍率とする。この場合、置換限界距離と置換限界角度は、上記のとおり、表示倍率がSC3のときの置換限界距離と置換限界角度よりも大きい値として算出される。このため、表示倍率がSC4の場合、表示倍率がSC3のときよりも、連続する2つの工具移動経路を1つの置換経路に置換すると判断される回数が多くなる。
 これにより、表示倍率SC4が、表示倍率SC3のときよりも置換経路を縮小して表示する表示倍率である場合、図8(c)に示すとおり、形状表示部21に表示される置換経路の数は、図8(a)に示す元の工具移動経路の全体と比較して、図8(b)に示す表示倍率がSC3の場合よりもさらに減少する。つまり、表示倍率がSC4の場合、表示倍率がSC3のときと比較して、より少ない数の置換経路が表示されることになり、置換経路を表現する線の分離が不明瞭となることを防ぐことができる。よって、縮小表示時において、形状表示部21に表示される置換経路の把握が容易になる。
 一方、表示倍率SC3は、上記のとおり、形状表示部21が置換経路を表示する際に、表示倍率SC4のときよりも置換経路を拡大して表示する場合の表示倍率である。この場合、置換限界距離と置換限界角度は、上記のとおり、表示倍率がSC4のときの置換限界距離と置換限界角度よりも小さい値として算出される。このため、表示倍率がSC3の場合、表示倍率がSC4のときよりも連続する2つの工具移動経路を1つの置換経路に置換すると判断される回数が少なくなるので、図8(b)において、形状表示部21に表示される置換経路の数は、図8(c)に示す表示倍率がSC4の場合よりも多くなる。
 つまり、表示倍率がSC3の場合、形状表示部21に表示される置換経路の数は、図8(a)に示す元の工具移動経路の全体よりも少なく、かつ、表示倍率がSC4のときよりも多くなる。よって、拡大表示時において、経路置換処理を行う前の本来の工具移動経路に近い置換経路を表示することができる。
 なお、上記動作において、置換距離指標tbase及び置換角度指標θbaseに実数0を乗算して経路置換処理を行う場合、置換限界距離及び置換限界角度が0となるため、経路置換処理を行った後の置換経路と経路置換処理を行う前の本来の工具移動経路は、当然に一致する。つまり、表示を拡大していくことにより、経路置換処理を行う前の本来の工具移動経路を表示することも可能となる。
 このようにして、工具移動経路の全体について、経路置換処理部19が表示倍率に応じた経路置換処理を行うことにより、表示装置12aは、形状表示部21に表示される置換経路の数を増減させることができ、表示時間の短縮が図れるとともに、表示内容の把握をしやすくすることができる。
 以上が、実施の形態1の図2のステップS14における経路置換処理の説明である。
 図2のフローチャートに戻り、ステップS15において、形状表示部21は、経路置換処理部19から、上記の経路置換処理により置換された後の置換経路を取得し、取得した置換経路を3次元空間101に配置して表示画面に表示する。
 ステップS16において、NC加工プログラム表示編集部22は、NC加工プログラム記憶部11から取得したNC加工プログラムのデータを表示画面に表示し、NC加工プログラムに対する編集指令を入力可能とする。
 ステップS17において、NC加工プログラム表示編集部22は、NC加工プログラムに対して編集が行われたか否かを監視する。NC加工プログラムの編集指令が入力された場合(ステップS17のYES)、ステップS18において、NC加工プログラム表示編集部22は、NC加工プログラムの編集指令に基づいて、NC加工プログラムのデータを編集し、編集されたNC加工プログラムをNC加工プログラム記憶部11に記憶させる。また、図2のステップS12へと戻り、上記のステップS12以降の動作を繰り返す。
 一方、ステップS17において、NC加工プログラムの編集指令が入力されず、NC加工プログラムの編集を終了する指令が入力された場合(ステップS17のNO)、実施の形態1における数値制御装置1aの表示装置12aは、置換経路を表示してNC加工プログラムを編集する処理を終了する。
 以上において説明したとおり、表示装置12aは、工具移動経路算出手段14と、経路置換処理部19と、表示部20とを備え、工具移動経路算出手段14は、3次元座標上における工具の移動指令が記述されたNC加工プログラムのデータに基づいて、3次元座標上において工具が移動する経路である工具移動経路を算出し、経路置換処理部19は、工具移動経路算出手段14により算出された工具移動経路と予め定められた指標とに基づいて、連続する複数の工具移動経路を1つの置換経路に置換し、表示部20は、経路置換処理部19により置換された置換経路を表示する。
 これにより、表示装置12aは、取り扱うデータが3次元座標のデータであっても表示すべきデータの数を削減できるため、表示に要する時間を短縮することができる。
 経路置換処理部19は、予め定められた指標として、工具移動経路算出手段14により算出された連続する2つの工具移動経路において、2つ目の工具移動経路の終点と1つ目の工具移動経路を進行方向へ仮想的に延伸させた直線との最短距離を使用する。または、経路置換処理部19は、予め定められた指標として、工具移動経路算出手段14により算出された連続する2つの工具移動経路のなす角度を使用する。
 これにより、表示装置12aは、3次元座標のデータを表示する場合において、3次元座標のデータを2次元座標のデータに変換することなく、表示すべきデータの数を削減できるため、表示に要する時間を短縮することができる。
 経路置換処理部19は、連続する2つの工具移動経路において、2つ目の工具移動経路の終点と1つ目の工具移動経路を進行方向へ仮想的に延伸させた直線との最短距離が、表示部20により表示される置換経路の表示倍率に対応して予め定められた距離以下である場合、連続する2つの工具移動経路を1つの置換経路に置換する。または、経路置換処理部19は、連続する2つの工具移動経路のなす角度が、表示部20により表示される置換経路の表示倍率に対応して予め定められた角度以下である場合、連続する2つの工具移動経路を1つの置換経路に置換する。
 つまり、表示装置12aにおいて、経路置換処理部19は、表示倍率に応じて経路置換処理を行い、形状表示部21に表示される置換経路の数を増減させることができる。このため、縮小表示時において、置換経路を表現する線の分離が不明瞭となることを防ぐことができる。よって、縮小表示時において、把握が容易な置換経路を表示することがきる。また、拡大表示時において、経路置換処理を行う前の本来の工具移動経路に近い置換経路を表示することができる。さらに、表示を拡大していくことにより、経路置換処理を行う前の本来の工具移動経路を表示することも可能となる。これにより、作業者によるNC加工プログラムのデータの確認作業及び編集作業が容易になるという効果を奏することができる。
 経路置換処理部19は、工具移動経路算出手段14により算出された工具移動経路と表示部20により表示される置換経路の表示倍率とは異なる表示倍率に対応して予め定められた距離または角度とに基づいて、連続する複数の工具移動経路を1つの近似経路に置換し、この置換された近似経路から、表示部20の表示に必要な近似経路を抽出し、抽出された近似経路に置換される前の工具移動経路について、予め定められた指標に基づき、連続する複数の工具移動経路を1つの置換経路に置換する。また、経路置換処理部19は、表示部20により表示される置換経路の表示倍率とは異なる表示倍率に対応して予め定められた距離または角度に基づいて置換された近似経路が、表示部20が置換経路を表示する際の表示部20の表示領域に含まれる場合、表示部20の表示領域に含まれる近似経路を表示部20の表示に必要な近似経路として抽出する。
 つまり、表示装置12aにおいて、経路置換処理部19は、経路近似情報生成部17が生成した経路近似情報に基づいて、表示部20の表示に必要な近似経路を抽出し、抽出された近似経路に置換される前の工具移動経路について、経路置換処理を行う。これにより、経路置換処理の対象となる工具移動経路の数を削減した上で経路置換処理を行うため、表示に要する時間を短縮することができる。
実施の形態2.
 次に、実施の形態2における表示装置を備えた数値制御装置について説明する。実施の形態2においては、経路置換処理部により置換された置換経路とともに、工具により加工される被加工物の3次元形状モデルを重ねて表示する表示装置について説明する。なお、実施の形態1と同一または同等の手段、構成等に関しては、同一の名称と符号とを用いて説明を省略する。
 図9は、実施の形態2における数値制御装置の構成を示すブロック図である。図9に示す数値制御装置1bにおいて、表示装置12bは、実施の形態1と異なり、3次元形状モデル記憶部23を有する。3次元形状モデル記憶部23は、数値制御装置1bの外部から3次元形状モデルが入力され、3次元形状モデルを記憶する。
 形状表示部21は、実施の形態1と同様に、経路置換処理部19から、工具移動経路を置換した後の置換経路を取得し、さらに3次元形状モデル記憶部23から、記憶されている3次元形状モデルを取得する。また、形状表示部21は、3次元空間101の表示領域102において、取得した置換経路と3次元形状モデルを重ねて配置し、表示画面に表示する。
 図10は、実施の形態2の数値制御装置の表示装置において、置換経路を表示してNC加工プログラムを編集する手順を示すフローチャートである。図10を用いて、実施の形態2における数値制御装置1bの表示装置12bが、置換経路及び3次元形状モデルを表示し、NC加工プログラムを編集する方法について説明する。
 なお、実施の形態2において、実施の形態1との相違点は、図10に示すステップS21及びステップS25における動作であるため、ここでは図10のステップS21及びステップS25について説明し、残りのステップの説明を省略する。
 図10のステップS21において、NC加工プログラム記憶部11は、数値制御装置1bの外部から入力されたNC加工プログラムを記憶し、経路置換指標記憶部13は、数値制御装置1bの外部から入力された経路置換指標を記憶する。さらに、3次元形状モデル記憶部23は、数値制御装置1bの外部から入力された3次元形状モデルを記憶する。
 ここで、3次元形状モデル記憶部23に記憶される3次元形状モデルは、例えば、NC加工プログラム記憶部11に記憶されたNC加工プログラムを外部CAMソフトウェア等により生成するために利用した加工物形状を模した3次元形状モデルである。また、3次元形状モデルは、例えば、NC加工プログラム記憶部11に記憶されたNC加工プログラムを用いて加工シミュレーションを実施した結果の形状を表現した3次元形状モデルであっても良い。
 図10のステップS25において、形状表示部21は、経路置換処理部19から、図10のステップS14における経路置換処理により置換された後の置換経路を取得し、取得した置換経路を3次元空間101に配置し表示する。さらに、形状表示部21は、3次元形状モデル記憶部23から3次元形状モデルを取得し、取得した3次元形状モデルの座標系を置換経路の座標系と一致させ、3次元空間101の表示領域102において、置換経路と重ねて配置し表示する。
 図11は、実施の形態2における形状表示部が表示する3次元空間を示す斜視図である。図11において、3次元形状モデル103は、形状表示部21が3次元形状モデル記憶部23から取得した3次元形状モデルである。また、置換経路155は、3次元形状モデル103のポケット部104を加工するための工具移動経路に対し、経路置換処理部19が経路置換処理を行った後の置換経路である。形状表示部21は、図11に示すとおり、3次元空間101に3次元形状モデル103と置換経路155を重ねて配置する。このとき、形状表示部21は、3次元形状モデル103と置換経路155の座標系を一致させることにより、3次元形状モデル103のポケット部104に置換経路155を重ねて配置した状態を表示できる。
 以上において説明したとおり、実施の形態2の表示部20は、経路置換処理部19により置換された置換経路とともに、工具により加工される被加工物の3次元形状モデル103を重ねて表示する。これにより、形状表示部21は、経路置換処理を行った置換経路とともに、その工具移動経路により加工されることが期待される加工物形状を模した3次元形状モデル103を重ねて表示することができる。このため、作業者が置換経路と3次元形状モデル103を対応付けて確認でき、NC加工プログラムのデータの確認作業及び編集作業が容易になるという効果を奏することができる。
実施の形態3.
 次に、実施の形態3における表示装置を備えた数値制御装置について説明する。実施の形態3においては、経路置換処理部により置換された置換経路を、置換経路と予め定められた基準ベクトルとのなす角度に応じた色の濃淡を付けて表示する表示装置について説明する。なお、実施の形態1と同一または同等の手段、構成等に関しては、同一の名称と符号とを用いて説明を省略する。
 図12は、実施の形態3における数値制御装置の構成を示すブロック図である。図12に示す数値制御装置1cにおいて、表示装置12cは、実施の形態1と異なり、経路濃淡情報生成部24を有する。経路濃淡情報生成部24は、経路置換処理部19から、実施の形態1と同様の経路置換処理により置換された後の置換経路を取得し、取得した置換経路に基づいて経路濃淡情報を生成する。また、経路濃淡情報生成部24は、各置換経路に対して数値指定により色を設定する際に、経路濃淡情報の値を輝度の割合として与える。
 形状表示部21は、実施の形態1と同様に、経路置換処理部19から、工具移動経路を置換した後の置換経路を取得し、さらに経路濃淡情報生成部24から経路濃淡情報を取得する。また、形状表示部21は、取得した置換経路と経路濃淡情報に基づいて、経路濃淡情報の値に基づく輝度を有する色を置換経路に付する。形状表示部21は、3次元空間101の表示領域102において、色を付した置換経路を配置し、表示画面に表示する。
 図13は、実施の形態3の数値制御装置の表示装置において、置換経路を表示してNC加工プログラムを編集する手順を示すフローチャートである。図13を用いて、実施の形態3における数値制御装置1cの表示装置12cが、置換経路を表示し、NC加工プログラムを編集する方法について説明する。
 なお、実施の形態3において、実施の形態1との相違点は、図13に示すステップS35及びステップS39における動作であるため、ここでは図13のステップS35及びステップS39について説明し、残りのステップの説明を省略する。
 図13のステップS39において、経路濃淡情報生成部24は、経路置換処理部19から、S14における経路置換処理により置換された後の置換経路を取得し、取得した置換経路に基づいて経路濃淡情報を生成する。
 図14は、実施の形態3における経路濃淡情報を生成する方法を示す概念図である。図14を用いて、実施の形態3において経路濃淡情報生成部24が経路濃淡情報を生成する方法について説明する。
 図14(a)において、置換経路156aは、経路濃淡情報生成部24が経路置換処理部19から取得した置換経路である。平面Wは、置換経路が配置される3次元空間において基準となる平面である。法線ベクトルNは、平面Wに対して垂直な法線ベクトルである。
 なお、平面Wは、例えば、置換経路が位置する座標系のXY平面、YZ平面、またはZX平面としても良いし、置換経路が配置される3次元空間において、現在の表示方向を表すベクトルが法線ベクトルNと一致するような平面としても良い。
 図14(b)において、経路濃淡情報生成部24は、置換経路156bについて角度θlsを算出する。角度θlsは、置換経路156bの進行方向ベクトルと法線ベクトルNとのなす角度である。このとき、なす角度が90度以上であった場合、角度θlsは、なす角度の外角として算出するものとする。例えば、なす角度が110度であった場合、角度θlsは、70度として算出する。
 経路濃淡情報生成部24は、図14(a)に示す各置換経路について、置換経路156bと同様にして、置換経路の進行方向ベクトルと法線ベクトルNとのなす角度を算出する。なお、以下において、角度θlsは、置換経路156bに限らず、置換経路の進行方向ベクトルと法線ベクトルNとのなす角度を指すものとする。
 次に、経路濃淡情報生成部24は、算出した角度θlsに応じて各置換経路における経路濃淡情報を補間して算出する。
 角度θlsに応じて経路濃淡情報を補間して算出する方法としては、例えば、変化させる色成分値の範囲をNC加工プログラムに付随させて、NC加工プログラム記憶部11に予め記憶させておき、経路濃淡情報生成部24が、算出された角度θlsに基づいて、NC加工プログラム記憶部11に記憶された色成分値の範囲で色成分値を補間し、経路濃淡情報として算出するような方法がある。
 図14(c)において、経路濃淡情報の値は、図14(a)に示した置換経路の一部に対して算出した経路濃淡情報の値である。経路濃淡情報生成部24は、各置換経路について算出した角度θlsの値に応じて、経路濃淡情報の値を、0~100の範囲の整数値として算出する。このとき、経路濃淡情報生成部24は、経路濃淡情報の値を、角度θlsが90度に近いほど100に近く、0度に近いほど0に近くなるように線形に補間する。つまり、置換経路についての経路濃淡情報の値は、その置換経路の進行方向ベクトルと法線ベクトルNとのなす角度が90度に近いほど大きくなる。
 以上が、実施の形態3において経路濃淡情報生成部24が経路濃淡情報を生成する方法の説明である。また、経路濃淡情報生成部24は、各置換経路に対して数値指定により色を設定する際に、経路濃淡情報の値を輝度の割合として与えるようにする。例えば、経路濃淡情報の値が0のときの輝度を0、経路濃淡情報の値が100のときの輝度を最大として、経路濃淡情報の値に対応する輝度を線形に補間して算出し、各置換経路に対して与えるようにする。
 図13のステップS35において、形状表示部21は、経路置換処理部19から、ステップS14における経路置換処理により置換された後の置換経路を取得するとともに、経路濃淡情報生成部24から経路濃淡情報を取得し、取得した置換経路と経路濃淡情報に基づいて、経路濃淡情報の値に対応する輝度を有する色を置換経路に付し、この色を付した置換経路を3次元空間101に配置し表示する。
 つまり、形状表示部21は、与えられた経路濃淡情報の値に応じた輝度を有する色を、置換経路に付して表示する。これにより、形状表示部21は、各置換経路を、角度θlsに応じた色の濃淡を付けて表示することができる。
 以上において説明したとおり、実施の形態3の表示部20は、経路置換処理部19により置換された置換経路を、置換経路と予め定められた基準ベクトルとのなす角度に応じた色の濃淡を付けて表示する。これにより、形状表示部21の表示画面に表示されている置換経路の分離が不明瞭になる場合においても、置換経路に付せられた濃淡色によって連続する置換経路同士の位置関係の把握が容易となるため、作業者によるNC加工プログラムのデータの確認作業及び編集作業が容易になるという効果を奏することができる。
実施の形態4.
 次に、実施の形態4における表示装置を備えた数値制御装置について説明する。実施の形態4においては、表示部に表示される置換経路のうち抽出された置換経路に対応する移動指令を検索し、NC加工プログラムのデータを、検索された移動指令を強調して表示する表示装置、または表示部に表示されるNC加工プログラムのデータのうち抽出された移動指令に対応する置換経路を検索し、経路置換処理部により置換された置換経路を、検索された置換経路を強調して表示する表示装置について説明する。なお、実施の形態1と同一または同等の手段、構成等に関しては、同一の名称と符号とを用いて説明を省略する。
 図15は、実施の形態4における数値制御装置の構成を示すブロック図である。実施の形態4において、NC加工プログラム解析部15は、算出した工具移動経路に基づいて、算出した工具移動経路に対応するNC加工プログラム中の位置である位置情報を算出する。工具移動経路記憶部16は、NC加工プログラム解析部15から工具移動経路が入力され、入力された工具移動経路を、算出された位置情報を付随させて記憶する。
 実施の形態4の数値制御装置1dにおいて、表示装置12dは、実施の形態1と異なり、表示形状位置指定手段25、NC加工プログラム位置指定手段26及び対応情報検索部27を有する。
 表示形状位置指定手段25は、形状表示部21の表示画面における位置を指定する。また、NC加工プログラム位置指定手段26は、NC加工プログラム表示編集部22の表示画面における位置を指定する。
 対応情報検索部27は、形状表示部21から、表示形状位置指定手段25により指定された指定位置の情報を取得する。また、対応情報検索部27は、NC加工プログラム表示編集部22から、NC加工プログラム位置指定手段26により指定された指定位置の情報を取得する。
 また、対応情報検索部27は、経路置換処理部19から経路置換処理により置換された後の置換経路を取得し、NC加工プログラム記憶部11からNC加工プログラムを取得する。
 また、対応情報検索部27は、形状表示部21から取得した指定位置の情報と置換経路に基づいて、形状表示部21に表示される置換経路から、任意の置換経路を抽出し、抽出した置換経路と取得したNC加工プログラムに基づいて、加工プログラムのデータから、抽出した置換経路に対応する工具の移動指令を検索する。
 さらに、対応情報検索部27は、NC加工プログラム表示編集部22から取得した指定位置の情報とNC加工プログラムのデータに基づいて、NC加工プログラム表示編集部22に表示されるNC加工プログラムのデータから、任意の工具の移動指令を抽出する。対応情報検索部27は、抽出した工具の移動指令と取得した置換経路とに基づいて、経路置換処理部19により置換された置換経路から、抽出した移動指令に対応する置換経路を検索する。
 形状表示部21は、経路置換処理部19から置換経路を取得し、対応情報検索部27から検索された置換経路を取得し、経路置換処理により置換された後の置換経路を表示する際に、検索された置換経路を強調して表示する。
 NC加工プログラム表示編集部22は、NC加工プログラム記憶部11からNC加工プログラムを取得し、対応情報検索部27から検索された工具の移動指令を取得し、取得したNC加工プログラムのデータを表示する際に、取得した工具の移動指令を強調して表示する。
 図16は、実施の形態4の数値制御装置の表示装置において、置換経路を表示してNC加工プログラムを編集する手順を示すフローチャートである。図16を用いて、実施の形態4における表示装置12dが、置換経路を表示し、NC加工プログラムを編集する方法について説明する。
 なお、実施の形態4において、図16に示す処理は、実施の形態1の図2に記載の処理とは、ステップS11、S13、S17及びS18の動作が共通し、ステップS42、S44、S45、S46、S49、S50、S51、S52、S53及びS54における動作が相違する。このため、ここでは実施の形態1との相違点であるステップS42、S44、S45、S46、S49、S50、S51、S52、S53及びS54について説明し、残りのステップの説明を省略する。
 図16のステップS42において、NC加工プログラム解析部15は、NC加工プログラム記憶部11から取得したNC加工プログラムを解析し、NC加工プログラムに記述されている3次元座標上における工具の移動指令に基づいて、3次元座標上における工具移動経路を算出する。さらに、NC加工プログラム解析部15は、算出した工具移動経路に対応するNC加工プログラム中の位置である位置情報を算出する。
 図17は、NC加工プログラムの位置情報を算出する方法を示す概念図である。図17を用いて、NC加工プログラム解析部15がNC加工プログラム中の指令の位置情報を算出する方法について説明する。
 図17において、左端の列に記載の文字または数字は、NC加工プログラムのデータである。また、右端に記載の説明は、いわゆるGコードなど、NC加工プログラムにおいて使用される指令等についての説明である。
 図17において、NC加工プログラム解析部15は、各工具移動経路の始点及び終点の指令について、これらの指令が記述されたNC加工プログラムにおける位置及び範囲を、行数、文字数、バイト数等を利用して位置情報に一意に変換する。例えば、NC加工プログラム解析部15は、図17に示すNC加工プログラムのデータの「G00 X-5.0 Y-5.0」の指令、すなわち位置決め第1の指令について、NC加工プログラムにおける位置及び範囲を「4行目、1~15文字目」という位置情報に変換する。もう一つの例として、NC加工プログラム解析部15は、図17に示すNC加工プログラムのデータの「X5.0」の指令、すなわち直線補間第3の指令について、NC加工プログラムにおける位置及び範囲を「9行目、1~4文字目」という位置情報に変換する。このようにして、NC加工プログラム解析部15は、NC加工プログラム中の指令の位置を行数と文字数に変換して、位置情報を算出する。
 なお、工具の移動指令とは、実施の形態4において、図17に示す位置決め第1の指令や直線補間第3の指令などのことである。
 このようにして、NC加工プログラム解析部15は、NC加工プログラムに記述されている3次元座標上における工具の移動指令について、算出した工具移動経路に対応するNC加工プログラムの位置情報を算出する。
 図16のステップS42において、工具移動経路記憶部16は、NC加工プログラム解析部15から工具移動経路が入力され、入力された工具移動経路を、算出された位置情報を付随させて記憶する。
 ステップS44において、経路置換処理部19は、実施の形態1と同様にして、経路置換処理により工具移動経路を置換経路に置換する。このとき、工具移動経路に付随された位置情報は、置換された後の置換経路に引き継がれる。つまり、経路置換処理部19は、置換経路に置換される前の連続する工具移動経路について、先頭の工具移動経路の始点に係る指令の位置情報と最後尾の工具移動経路の終点に係る指令の位置情報を、置換された後の置換経路の始点と終点の位置情報として引き継がせる。
 ステップS45において、形状表示部21は、実施の形態1と同様に、経路置換処理部19から経路置換処理により置換された後の置換経路を取得し、取得した置換経路を3次元空間101に配置し、表示画面に表示する。
 ステップS46において、NC加工プログラム表示編集部22は、実施の形態1と同様に、NC加工プログラム記憶部11から取得したNC加工プログラムのデータを表示画面に表示し、NC加工プログラムに対する編集指令を入力可能とする。
 ステップS49において、形状表示部21は、表示形状位置指定手段25によって表示画面における位置を指定する指令が入力されたか否かを監視する。表示形状位置指定手段25により位置を指定する指令が入力された場合(ステップS49のYES)、ステップS50において、形状表示部21は、表示形状位置指定手段25により指定された指定位置の情報を取得し、図16のステップS51へと進む。
 ここで、表示形状位置指定手段25は、例えば、キーボードにおけるカーソル移動キー、マウス、またはタッチパネル等のポインティングデバイスである。作業者は、ポインティングデバイスである表示形状位置指定手段25を操作して、形状表示部21の表示画面に表示されるカーソル等を移動させる。作業者は、形状表示部21の表示画面に表示されている形状のうち、所望の選択しようとする形状にカーソル等を合わせ、その位置を指定する指令を入力する。表示画面における位置を指定する指令が入力された場合、表示形状位置指定手段25は、カーソル等が表示されている位置を指定位置として選択する。このようにして、表示形状位置指定手段25は、形状表示部21の表示画面における位置を指定することができる。
 図16のステップS51において、対応情報検索部27は、形状表示部21から表示形状位置指定手段25により指定された指定位置の情報を取得し、経路置換処理部19から置換経路を取得し、NC加工プログラム記憶部11からNC加工プログラムを取得する。また、対応情報検索部27は、取得した指定位置の情報と置換経路に基づいて、形状表示部21に表示される置換経路から、指定位置に対応する置換経路を抽出する。また、対応情報検索部27は、抽出した置換経路と取得したNC加工プログラムに基づいて、NC加工プログラムのデータから、抽出した置換経路に対応する工具の移動指令を検索する。
 図18は、実施の形態4における表示部の表示画面を示す図である。図18を用いて、対応情報検索部27が指定位置に対応する置換経路を抽出する方法、及び抽出した置換経路に対応する工具の移動指令を検索する方法について説明する。なお、図18において、NC加工プログラム表示編集部22は、図17に示したNC加工プログラムのデータを表示している。
 なお、図18において、形状表示部21に表示された置換経路157の始点は、NC加工プログラム表示編集部22に表示されたNC加工プログラムのデータのうち、7行目の「G01 Z20.0」の指令に対応する位置である。置換経路157の終点は、NC加工プログラム表示編集部22に表示されたNC加工プログラムのデータのうち、8行目の「Y5.0」の指令に対応する位置である。また、形状表示部21に表示された置換経路158の始点は、NC加工プログラム表示編集部22に表示されたNC加工プログラムのデータのうち、8行目の「Y5.0」の指令に対応する位置である。置換経路158の終点は、NC加工プログラム表示編集部22に表示されたNC加工プログラムのデータのうち、9行目の「X5.0」の指令に対応する位置である。
 まず、対応情報検索部27が指定位置に対応する置換経路を抽出する方法について説明する。図18(a)において、対応情報検索部27は、例えば、カーソル105aが指す矢印の先端からこの矢印の方向へと仮想的に延伸させた直線を形状表示部21の3次元空間101に配置し、この直線と各置換経路の干渉判定を行って、この直線と干渉する置換経路158を抽出する。
 なお、対応情報検索部27が指定位置に対応する置換経路を抽出する方法は、次のように説明することができる。すなわち、対応情報検索部27は、置換経路が配置される形状表示部21の3次元空間101において、表示形状位置指定手段25により位置が指定された際の3次元空間101の表示方向を方向ベクトル、指定位置を始点とする直線を仮想的に配置する。そして、この直線と3次元空間101に配置される各置換経路の干渉判定を行い、干渉した置換経路が存在すれば、この置換経路を抽出する。このようにして、対応情報検索部27は、指定位置に対応する置換経路を抽出することができる。
 次に、対応情報検索部27が抽出した置換経路に対応する工具の移動指令を検索する方法について説明する。図18(a)において、対応情報検索部27は、抽出した置換経路158について、置換経路158に付随された位置情報に基づいて、NC加工プログラムにおいて位置情報が示す位置の指令を検索する。
 ここで、対応情報検索部27は、例えば、抽出した置換経路に付随されている位置情報のうち、この置換経路の終点に対応する位置情報を使用することとする。図18に示す置換経路158には、終点に対応する位置情報として、図17に示すとおり「9行目、1~4文字目」の位置情報が付随されている。また、NC加工プログラムにおける「9行目、1~4文字目」の位置は、上記のとおり、NC加工プログラムのデータの「X5.0」の指令である。このため、対応情報検索部27は、抽出した置換経路158に対応する工具の移動指令として、NC加工プログラムのデータの「X5.0」の指令を検索する。このようにして、対応情報検索部27は、抽出した置換経路に対応する工具の移動指令を検索することができる。
 なお、対応情報検索部27は、抽出した置換経路に付随されている位置情報のうち、この置換経路の始点に対応する位置情報を使用することとしても良い。また、対応情報検索部27は、抽出した置換経路に付随されている位置情報のうち、この置換経路の始点から終点までの一連の位置情報の範囲を使用することとしても良い。
 つまり、図17に示すとおり、置換経路158の始点に付随されている位置情報が「8行目、1~4文字目」であり、置換経路158の終点に付随されている位置情報が「9行目、1~4文字目」であったとすれば、対応情報検索部27は、いずれか一方を位置情報として使用することとしても良いし、「8行目1文字目~9行目4文字目」を位置情報として使用することとしても良い。
 図16のステップS46において、NC加工プログラム表示編集部22は、NC加工プログラム記憶部11からNC加工プログラムを取得し、対応情報検索部27から検索された工具の移動指令を取得し、取得したNC加工プログラムのデータを表示する際に、取得した工具の移動指令を強調して表示する。NC加工プログラム表示編集部22は、例えば、表示画面において、取得した工具の移動指令を表示する部分を、背景色、文字色、文字書式等を変更することにより強調して表示する。
 図18(a)において、NC加工プログラム表示編集部22は、形状表示部21に表示されるカーソル105aにより指定され抽出された置換経路158について、置換経路158に対応する工具の移動指令である「X5.0」の指令を強調して表示している。
 図16のステップS49において、表示形状位置指定手段25により位置を指定する指令が入力されなかった場合(ステップS49のNO)、図16のステップS52へと進む。
 ステップS52において、NC加工プログラム表示編集部22は、NC加工プログラム位置指定手段26によって表示画面における位置を指定する指令が入力されたか否かを監視する。NC加工プログラム位置指定手段26により位置を指定する指令が入力された場合(ステップS52のYES)、ステップS53において、NC加工プログラム表示編集部22は、NC加工プログラム位置指定手段26により指定された指定位置の情報を取得し、図16のステップS54へと進む。
 ここで、NC加工プログラム位置指定手段26は、表示形状位置指定手段25と同様の構成であり、例えば、キーボードにおけるカーソル移動キー、マウス、またはタッチパネル等のポインティングデバイスである。なお、表示形状位置指定手段25とNC加工プログラム位置指定手段26は、別々の手段として設けることに限られず、両者の機能を持つ一つの手段として設けることとしても良い。
 図16のステップS54において、対応情報検索部27は、NC加工プログラム表示編集部22からNC加工プログラム位置指定手段26により指定された指定位置の情報を取得し、NC加工プログラム記憶部11からNC加工プログラムを取得し、経路置換処理部19から置換経路を取得する。また、対応情報検索部27は、取得した指定位置の情報とNC加工プログラムのデータに基づいて、NC加工プログラム表示編集部22に表示されるNC加工プログラムのデータから、指定位置に対応する工具の移動指令を抽出する。また、対応情報検索部27は、抽出した工具の移動指令について、NC加工プログラムの位置情報を算出し、算出した位置情報と取得した置換経路に基づいて、経路置換処理部19により置換された置換経路から、算出した位置情報に対応する置換経路を検索する。
 ここで、対応情報検索部27は、NC加工プログラム位置指定手段26がNC加工プログラム表示編集部22の表示画面における位置を指定した際に、NC加工プログラム表示編集部22が表示するNC加工プログラムのデータのうち、指定された位置に記述されている指令を、指定位置に対応する工具の移動指令として抽出する。例えば、図18(b)に示す位置にカーソル105bが移動され位置が指定された場合、対応情報検索部27は、「Y5.0」の指令を、指定位置に対応する工具の移動指令として抽出する。
 抽出した工具の移動指令についてNC加工プログラムの位置情報を算出する方法としては、上記のステップS42において示した方法と同様である。つまり、対応情報検索部27は、抽出した工具の移動指令について、この指令が記述されたNC加工プログラムにおける位置及び範囲を、行数、文字数、バイト数等を利用して位置情報に一意に変換することにより、位置情報を算出する。図18(b)において、対応情報検索部27は、例えば「Y5.0」の指令について、NC加工プログラムの位置情報を「8行目、1~4文字目」として算出することができる。
 算出した位置情報に対応する置換経路を検索する方法としては、算出した位置情報と取得した置換経路に付随されている位置情報とを比較する方法が挙げられる。なお、取得した置換経路は、経路置換処理部19により経路置換処理が行われた後のものである。このため、算出した位置情報に対応する置換経路として、一意に等しい位置情報が始点または終点に付随された置換経路を検索できない場合がある。この場合、ある置換経路の始点に付随する位置情報と終点に付随する位置情報の間に算出した位置情報が位置するならば、当該置換経路を検索された置換経路とする。また、算出した位置情報に対応する置換経路が経路置換処理部19において表示に必要でないと判断されている場合、該当する置換経路はないものとする。
 図16のステップS45において、形状表示部21は、経路置換処理部19から、経路置換処理により置換された後の置換経路を取得し、対応情報検索部27から、検索された置換経路を取得し、経路置換処理により置換された後の置換経路を表示する際に、検索された置換経路を強調して表示する。なお、形状表示部21は、例えば、表示画面において、検索された置換経路を表示する部分を、線色、線種等を変更することにより強調して表示する。
 図18(b)において、形状表示部21は、NC加工プログラム表示編集部22に表示されるカーソル105bにより指定され抽出された工具の移動指令である「Y5.0」の指令について、「Y5.0」の指令に対応する置換経路である置換経路157を、強調して表示している。
 図16のステップS52において、NC加工プログラム位置指定手段26により位置を指定する指令が入力されなかった場合(ステップS52のNO)、図16のステップS17へと進む。
 以上において説明したとおり、実施の形態4の表示装置12dは、NC加工プログラムのデータから、表示部20に表示される置換経路のうち抽出された置換経路に対応する移動指令を検索する対応情報検索部27を備え、表示部20は、NC加工プログラムのデータを、対応情報検索部27により検索された移動指令を強調して表示する。
 また、実施の形態4の数値制御装置1dの表示装置12dは、経路置換処理部19により置換された置換経路から、NC加工プログラムのデータを表示する表示部20に表示されるNC加工プログラムのデータのうち抽出された移動指令に対応する置換経路を検索する対応情報検索部27を備え、表示部20は、経路置換処理部19により置換された置換経路を、対応情報検索部27により検索された置換経路を強調して表示する。
 これにより、形状表示部21の表示画面に表示される置換経路とNC加工プログラム表示編集部22の表示画面に表示されるNC加工プログラムのデータとの対応箇所を検索する手間が省略できるため、作業者によるNC加工プログラムのデータの確認作業及び編集作業が容易になるという効果を奏することができる。
実施の形態5.
 次に、実施の形態5における表示装置を備えた数値制御装置について説明する。実施の形態5においては、NC加工プログラムのデータを任意の工程に分割し、任意に分割された工程に含まれる移動指令に基づいて、任意に分割された工程に含まれる工具移動経路を算出し、算出した工具移動経路と予め定められた指標とに基づいて、任意に分割された工程に含まれる連続する複数の工具移動経路を1つの置換経路に置換し、この置換経路を表示する表示装置について説明する。なお、実施の形態1と同一または同等の手段、構成等に関しては、同一の名称と符号とを用いて説明を省略する。
 図19は、実施の形態5における数値制御装置の構成を示すブロック図である。実施の形態5の数値制御装置1eにおいて、表示装置12eは、実施の形態1と異なり、工程分割指定情報記憶部28、工程情報表示部29、工程情報位置指定手段30、及び工程情報検索部31を有する。
 実施の形態5において、工程分割指定情報記憶部28は、数値制御装置1eの外部から入力された後述する工程分割指定情報を記憶する。
 NC加工プログラム解析部15は、NC加工プログラム記憶部11から取得したNC加工プログラムを解析し、工程分割指定情報記憶部28から工程分割指定情報を取得し、取得したNC加工プログラムと工具分割指定情報に基づいて、NC加工プログラムを任意の工程に分割し、後述する工程情報を生成する。
 また、NC加工プログラム解析部15は、任意に分割された工程に含まれる工具の移動指令に基づいて、各工程に含まれる工具移動経路を算出する。このとき、NC加工プログラム解析部15は、実施の形態1と同様に、NC加工プログラムに記述されている3次元座標上における工具の移動指令に基づいて、3次元座標上における工具移動経路を算出し、算出した各工程に含まれる工具移動経路を工程情報に付随させる。
 工具移動経路記憶部16は、NC加工プログラム解析部15から入力された工程情報を、工具移動経路を付随させて記憶する。
 経路近似情報生成部17は、工具移動経路記憶部16から工程情報及び工程情報に付随する工具移動経路を取得し、経路置換指標記憶部13から経路置換指標を取得し、取得した工程情報と経路置換指標に基づいて、近似経路が複数の工程にまたがらないように経路近似情報を生成する。
 経路置換処理部19は、工具移動経路記憶部16から工程情報及び工程情報に付随する工具移動経路を取得し、経路近似情報記憶部18から経路近似情報を取得し、経路置換指標記憶部13から経路置換指標を取得し、形状表示部21から、形状表示部21が置換経路を表示する際の現在の表示領域及び表示倍率を取得する。また、経路置換処理部19は、取得した工程情報及び工程情報に付随する工具移動経路、経路近似情報、経路置換指標、表示領域、並びに表示倍率に基づいて、連続する複数の工具移動経路を、複数の工程にまたがらないようにして、1つの置換経路に置換する経路置換処理を行う。経路置換処理部19は、算出した置換経路を工程情報に付随させる。
 形状表示部21は、経路置換処理部19から工程情報及び工程情報に付随する置換経路を取得し、表示画面において、取得した置換経路を3次元空間101の表示領域102に配置して表示する。
 工程情報表示部29は、工具移動経路記憶部16から工程情報を取得し、取得した工程情報を表示する。工程情報位置指定手段30は、工程情報表示部29の表示画面における位置を指定する。
 工程情報検索部31は、工程情報表示部29から工程情報位置指定手段30により指定された指定位置の情報を取得し、工具移動経路記憶部16から工程情報を取得し、取得した指定位置の情報と工程情報に基づいて、工程情報表示部29に表示される工程情報から、指定位置に対応する工程情報を抽出する。
 また、工程情報検索部31は、経路置換処理部19から、工程情報及び工程情報に付随する置換経路を取得する。工程情報検索部31は、抽出した工程情報と取得した工程情報及び工程情報に付随する置換経路に基づいて、経路置換処理部19により置換された置換経路から、抽出した工程情報の工程番号に対応する置換経路を検索する。
 さらに、工程情報検索部31は、NC加工プログラム記憶部11から、記憶されているNC加工プログラムを取得する。工程情報検索部31は、抽出した工程情報と取得したNC加工プログラムのデータに基づいて、NC加工プログラムのデータから、抽出した工程情報の工程位置情報に対応する工具の移動指令を検索する。
 図20は、実施の形態5の数値制御装置の表示装置において、置換経路を表示してNC加工プログラムを編集する手順を示すフローチャートである。図20を用いて、実施の形態5の表示装置12eが、置換経路を表示し、NC加工プログラムを編集する方法について説明する。
 なお、実施の形態5において、図20に示す処理は、実施の形態1の図2に記載の処理とはステップS11、S17、S18の動作が共通し、ステップS62、S63、S64、S65、S66、S69、S70、S71、S72及びS73における動作が相違する。このため、ここでは実施の形態1との相違点であるステップS62、S63、S64、S65、S66、S69、S70、S71、S72及びS73について説明し、残りのステップの説明を省略する。
 図20のステップS69において、工程分割指定情報記憶部28は、数値制御装置1eの外部から入力された工程分割指定情報を記憶する。ここで、工程分割指定情報は、NC加工プログラム記憶部11に記憶されているNC加工プログラムのデータを任意の工程に分割するにあたり、どのような工程に分割するかを示す情報である。工程分割指定情報は、NC加工プログラム中に記述されている特定のワードを、一つまたは複数組み合わせて指定する。このとき指定される特定のワードは、予め用意しておいたワード群から指定するようにしても良いし、自由にワードを指定するようにしても良い。
 また、予め用意しておいたワード群として指定されるワードは、例えば工具選択、座標系選択、サブプロ呼び出し、プログラムエンド、ノンモーダルマクロ呼び出し、位置決め、自動原点復帰、シーケンス番号、コメント、特殊加工モードオン/オフ、オプショナルブロックスキップ等を示すワードである。工程の分割を指定する場合、これらを示すワードのうち、一つまたは複数を組み合わせて指定する。
 図20のステップS62において、NC加工プログラム解析部15は、NC加工プログラム記憶部11からNC加工プログラムを取得して解析し、工程分割指定情報記憶部28から工程分割指定情報を取得し、取得したNC加工プログラムと工具分割指定情報に基づいて、NC加工プログラムを任意の工程に分割し、工程情報を生成する。ここで、工程情報は、分割された結果の各工程を示す情報である。
 図21は、NC加工プログラムを任意の工程に分割して工程情報を生成する方法を示す概念図である。図21を用いて、NC加工プログラム解析部15がNC加工プログラムを任意の工程に分割して工程情報を生成する方法について説明する。
 図21において、左端の列に記載の文字または数字は、NC加工プログラムのデータである。また、右端に記載の説明は、いわゆるGコードなど、NC加工プログラムにおいて使用される指令等についての説明である。
 図21において、NC加工プログラム解析部15は、工程分割指定情報が指定するワードを「位置決め」として、NC加工プログラムを任意の複数の工程に分割する。NC加工プログラム解析部15は、工程分割指定情報に基づいて、NC加工プログラムを第1工程~第4工程までの4つの工程に分割している。また、NC加工プログラム解析部15は、分割した結果の各工程について工程情報を生成する。
 ここで、工程情報は、工程番号、ワード情報及び工程位置情報を有するものとする。工程番号は、NC加工プログラムの先頭から何番目の工程であるかを示す番号である。ワード情報は、その工程が何のワードにより分割されたかを示す情報である。工程位置情報は、その工程のNC加工プログラムにおける位置及び範囲を行数、文字数、バイト数等を利用して表した情報である。
 NC加工プログラム解析部15は、例えば分割した結果の3つ目の工程について、この工程の工程情報に対し、工程番号が第3工程、ワード情報が位置決め、工程位置情報が12行目1文字目~17行目5文字目であるという情報を付加している。なお、分割した結果の1つ目の工程について工程情報を生成する場合、NC加工プログラム解析部15は、ワード情報がプログラム先頭であるという工程情報を生成する。
 また、図20のステップS62において、NC加工プログラム解析部15は、任意に分割された工程に含まれる工具の移動指令に基づいて、各工程に含まれる工具移動経路を算出し、算出した各工程に含まれる工具移動経路を工程情報に付随させる。
 ステップS62において、工具移動経路記憶部16は、NC加工プログラム解析部15から入力された工程情報を、工具移動経路を付随させて記憶する。
 ステップS63において、経路近似情報生成部17は、工具移動経路記憶部16から工程情報及び工程情報に付随する工具移動経路を取得し、経路置換指標記憶部13から経路置換指標を取得し、取得した工程情報と経路置換指標に基づいて、近似経路が複数の工程にまたがらないように、経路近似情報を生成する。
 ステップS63において、経路近似情報記憶部18は、経路近似情報生成部17から入力された経路近似情報を記憶する。
 ステップS64において、経路置換処理部19は、工具移動経路記憶部16から工程情報及び工程情報に付随する工具移動経路を取得し、経路近似情報記憶部18から経路近似情報を取得し、経路置換指標記憶部13から経路置換指標を取得し、形状表示部21から、形状表示部21が置換経路を表示する際の現在の表示領域及び表示倍率を取得する。また、経路置換処理部19は、取得した工程情報及び工程情報に付随する工具移動経路、経路近似情報、経路置換指標、表示領域、並びに表示倍率に基づいて、連続する複数の工具移動経路を、複数の工程にまたがらないようにして、1つの置換経路に置換する経路置換処理を行う。経路置換処理部19は、算出した置換経路を工程情報に付随させる。
 なお、経路置換処理部19が経路置換処理を行う方法は、実施の形態1において説明した方法と同様である。
 図20のステップS65において、形状表示部21は、経路置換処理部19から、工程情報及び工程情報に付随する置換経路を取得し、取得した置換経路を3次元空間101に配置し、表示画面に表示する。
 図22は、実施の形態5における表示部の表示画面を示す図である。形状表示部21は、図22(a)に示すとおり、経路置換処理により置換された後の置換経路159を表示する。
 図20のステップS66において、NC加工プログラム表示編集部22は、NC加工プログラム記憶部11から取得したNC加工プログラムのデータを、図22(a)に示すとおり、表示画面に表示し、NC加工プログラムに対する編集指令を入力可能とする。なお、図22において、NC加工プログラム表示編集部22は、図21に示したNC加工プログラムのデータを表示している。
 ステップS70において、工程情報表示部29は、工具移動経路記憶部16から工程情報を取得し、図22(a)に示すとおり、取得した工程情報を表示する。
 なお、取得した工程情報を表示する際、工程情報表示部29は、各工程情報が有する工程番号とワード情報のうち、いずれか一方または両方を表示することとしても良い。
 ステップS71において、工程情報表示部29は、工程情報位置指定手段30によって表示画面における位置を指定する指令が入力されたか否かを監視する。工程情報位置指定手段30により位置を指定する指令が入力された場合(ステップS71のYES)、ステップS72において、工程情報表示部29は、工程情報位置指定手段30により指定された指定位置の情報を取得し、ステップS73へと進む。
 ここで、工程情報位置指定手段30は、表示形状位置指定手段25またはNC加工プログラム位置指定手段26と同様の構成であり、例えば、キーボードにおけるカーソル移動キー、マウス、またはタッチパネル等のポインティングデバイスである。なお、表示形状位置指定手段25、NC加工プログラム位置指定手段26、及び工程情報位置指定手段30は、別々の手段として設けることに限られず、これらの機能を合わせ持った一つの手段として設けることとしても良い。
 ステップS73において、工程情報検索部31は、工程情報表示部29から工程情報位置指定手段30により指定された指定位置の情報を取得し、工具移動経路記憶部16から工程情報を取得し、取得した指定位置の情報と工程情報に基づいて、工程情報表示部29に表示される工程情報から、指定位置に対応する工程情報を抽出する。
 ここで、工程情報検索部31は、工程情報位置指定手段30が工程情報表示部29の表示画面における位置を指定した際に、工程情報表示部29が表示する工程情報のうち、指定された位置に表示されている工程情報を、指定位置に対応する工程情報として抽出する。例えば、図22(b)に示す位置にカーソル105cが移動され位置が指定された場合、工程情報検索部31は、NC加工プログラム解析部15が分割した結果の3つ目の工程の工程情報を、指定位置に対応する工程情報として抽出する。
 また、ステップS73において、工程情報検索部31は、経路置換処理部19から、工程情報及び工程情報に付随する置換経路を取得する。工程情報検索部31は、抽出した工程情報と取得した工程情報及び工程情報に付随する置換経路に基づいて、経路置換処理部19により置換された置換経路から、抽出した工程情報の工程番号に対応する置換経路を検索する。
 このとき、抽出した工程情報の工程番号に対応する置換経路を検索する方法としては、経路置換処理部19より取得した工程情報から、工程情報検索部31が抽出した工程情報の工程番号に対応する工程情報を検索し、この検索した工程情報に付随する置換経路のみを抽出することにより行う。例えば、図22(b)に示す場合において、抽出した工程情報の工程番号が第3工程であるため、工程情報検索部31は、経路置換処理部19より取得した工程情報に付随する置換経路159のうち、工程番号が第3工程である工程情報に付随する置換経路160のみを抽出する。このようにして、工程情報検索部31は、抽出した工程情報の工程番号に対応する置換経路を検索することができる。
 さらに、ステップS73において、工程情報検索部31は、NC加工プログラム記憶部11から、記憶されているNC加工プログラムを取得する。工程情報検索部31は、抽出した工程情報と取得したNC加工プログラムのデータに基づいて、NC加工プログラムのデータから、抽出した工程情報の工程位置情報に対応する工具の移動指令を検索する。
 このとき、抽出した工程情報の工程位置情報に対応する工具の移動指令を検索する方法としては、取得したNC加工プログラムのデータから、抽出した工程情報の工程位置情報に含まれる行数、文字数、バイト数等の情報に対応する位置及び範囲を抽出することにより行う。例えば、図22(b)に示す場合において、抽出した工程情報の工程位置情報は、「12行目1文字目~17行目5文字目」である。また、NC加工プログラムにおける「12行目1文字目~17行目5文字目」の位置及び範囲は、NC加工プログラムのデータの「G00 Z25.0」の指令から「X-5.0」の指令までの指令である。このため、工程情報検索部31は、抽出した工程情報の工程位置情報に対応する工具の移動指令として、「G00 Z25.0」の指令から「X-5.0」の指令までの位置及び範囲における工具の移動指令を検索する。このようにして、工程情報検索部31は、抽出した工程情報の工程位置情報に対応する工具の移動指令を検索することができる。
 ステップS65において、形状表示部21は、工程情報検索部31から、検索された置換経路を取得し、取得した置換経路を3次元空間101に配置し、表示画面に表示する。図22(b)において、形状表示部21は、工程情報検索部31が抽出した第3工程に付随する工具移動経路に対して経路置換処理を行った後の置換経路160を表示している。
 なお、形状表示部21は、経路置換処理部19から、経路置換処理により置換された後の置換経路をさらに取得し、この取得した置換経路を表示する際に、検索された置換経路160を強調して表示することとしても良い。この場合、形状表示部21は、例えば、表示画面において、検索された置換経路160を表示する部分を、線色、線種等を変更することにより強調して表示する。
 ステップS66において、NC加工プログラム表示編集部22は、NC加工プログラム記憶部11からNC加工プログラムを取得し、工程情報検索部31から検索された工具の移動指令を取得する。NC加工プログラム表示編集部22は、取得したNC加工プログラムのデータを表示する際に、取得した工具の移動指令を強調して表示する。NC加工プログラム表示編集部22は、例えば、表示画面において、取得した工具の移動指令を表示する部分を、背景色、文字色、文字書式等を変更することにより強調して表示する。
 図22(b)において、NC加工プログラム表示編集部22は、工程情報検索部31が抽出した第3工程の工程位置情報である「12行目1文字目~17行目5文字目」について、この工程位置情報に対応する位置及び範囲の工具の移動指令を、強調表示部分106のとおり強調して表示している。
 図20のステップS71において、工程情報位置指定手段30により位置を指定する指令が入力されなかった場合(ステップS71のNO)、ステップS17へと進む。
 以上において説明したとおり、実施の形態5の表示装置12eにおいて、工具移動経路算出手段14は、NC加工プログラムのデータを任意の工程に分割し、分割された工程に含まれる移動指令に基づいて、分割された工程に含まれる工具移動経路を算出し、経路置換処理部19は、工具移動経路算出手段14により算出された工具移動経路と予め定められた指標とに基づいて、任意に分割された工程に含まれる連続する複数の工具移動経路を1つの置換経路に置換する。
 これにより、作業者がNC加工プログラムを指定した任意の工程に分割することが可能となる。また、置換経路を表示する際において分割された工程に含まれる置換経路のみを強調して表示できるとともに、NC加工プログラムのデータを表示する際において分割された工程に含まれる工具の移動指令を強調表示できる。このため、任意の工程単位でNC加工プログラムのデータを確認することが可能になり、作業者によるNC加工プログラムのデータの確認作業及び編集作業が容易になるという効果を奏することができる。
 1a,1b,1c,1d,1e 数値制御装置、11 NC加工プログラム記憶部、12a,12b,12c,12d,12e 表示装置、13 経路置換指標記憶部、14 工具移動経路算出手段、15 NC加工プログラム解析部、16 工具移動経路記憶部、17 経路近似情報生成部、18 経路近似情報記憶部、19 経路置換処理部、20 表示部、21 形状表示部、22 NC加工プログラム表示編集部、23 3次元形状モデル記憶部、24 経路濃淡情報生成部、25 表示形状位置指定手段、26 NC加工プログラム位置指定手段、27 対応情報検索部、28 工程分割指定情報記憶部、29 工程情報表示部、30 工程情報位置指定手段、31 工程情報検索部101 3次元空間、102 表示領域、103 3次元形状モデル、104 ポケット部、105a,105b,105c カーソル、106 強調表示部分、111a,111b,111c,111d,111e,111f,112a,112b,112c,112d,112e,112f,113 工具移動経路、121,122,123,124 仮想円柱、131,132,133 仮想円錐、141a,141b,142 近似経路、151a,151b,152a,152b,152c,152d,153,154,155,156a,156b,156c,157,158,159,160 置換経路

Claims (23)

  1.  3次元座標上における工具の移動指令が記述された加工プログラムのデータに基づいて、3次元座標上において工具が移動する経路である工具移動経路を算出する工具移動経路算出手段と、
     前記工具移動経路算出手段により算出された前記工具移動経路と予め定められた指標とに基づいて、連続する複数の前記工具移動経路を1つの置換経路に置換する経路置換処理部と、
     前記経路置換処理部により置換された前記置換経路を表示する表示部と
    を備えたことを特徴とする表示装置。
  2.  前記予め定められた指標は、前記工具移動経路算出手段により算出された連続する2つの前記工具移動経路において、2つ目の前記工具移動経路の終点と1つ目の前記工具移動経路を進行方向へ仮想的に延伸させた直線との最短距離である
    ことを特徴とする請求項1に記載の表示装置。
  3.  前記経路置換処理部は、前記最短距離が、前記表示部により表示される前記置換経路の表示倍率に対応して予め定められた距離以下である場合、連続する2つの前記工具移動経路を1つの前記置換経路に置換する
    ことを特徴とする請求項2に記載の表示装置。
  4.  前記予め定められた指標は、前記工具移動経路算出手段により算出された連続する2つの前記工具移動経路のなす角度である
    ことを特徴とする請求項1に記載の表示装置。
  5.  前記経路置換処理部は、前記角度が、前記表示部により表示される前記置換経路の表示倍率に対応して予め定められた角度以下である場合、連続する2つの前記工具移動経路を1つの前記置換経路に置換する
    ことを特徴とする請求項4に記載の表示装置。
  6.  前記経路置換処理部は、前記工具移動経路算出手段により算出された前記工具移動経路と前記表示倍率とは異なる表示倍率に対応して予め定められた距離または角度とに基づいて、連続する複数の前記工具移動経路を1つの近似経路に置換し、この置換された前記近似経路から、前記表示部の表示に必要な前記近似経路を抽出し、抽出された前記近似経路に置換される前の前記工具移動経路について、前記予め定められた指標に基づき、連続する複数の前記工具移動経路を1つの前記置換経路に置換する
    ことを特徴とする請求項3または5のいずれか1項に記載の表示装置。
  7.  前記経路置換処理部は、前記表示倍率とは異なる表示倍率に対応して予め定められた角度または距離に基づいて置換された前記近似経路が、前記表示部が前記置換経路を表示する際の前記表示部の表示領域に含まれる場合、前記表示部の前記表示領域に含まれる前記近似経路を前記表示部の表示に必要な前記近似経路として抽出することを特徴とする請求項6に記載の表示装置。
  8.  前記表示部は、前記経路置換処理部により置換された前記置換経路とともに、工具により加工される被加工物の3次元形状モデルを重ねて表示する
    ことを特徴とする請求項1に記載の表示装置。
  9.  前記表示部は、前記経路置換処理部により置換された前記置換経路を、前記置換経路と予め定められた基準ベクトルとのなす角度に応じた色の濃淡を付けて表示する
    ことを特徴とする請求項1に記載の表示装置。
  10.  前記加工プログラムのデータから、前記表示部に表示される前記置換経路のうち抽出された前記置換経路に対応する前記移動指令を検索する対応情報検索部と、
    をさらに備え、
     前記表示部は、前記加工プログラムのデータを、前記対応情報検索部により検索された前記移動指令を強調して表示する
    ことを特徴とする請求項1に記載の表示装置。
  11.  前記対応情報検索部は、前記表示部に入力された前記表示部の表示画面における位置の情報に基づいて、前記表示部に表示される前記置換経路から任意の前記置換経路を抽出し、前記加工プログラムのデータから、抽出した前記置換経路に対応する前記移動指令を検索する
    ことを特徴とする請求項10に記載の表示装置。
  12.  前記経路置換処理部により置換された前記置換経路から、前記加工プログラムのデータを表示する前記表示部に表示される前記加工プログラムのデータのうち抽出された前記移動指令に対応する前記置換経路を検索する対応情報検索部と、
    をさらに備え、
     前記表示部は、前記経路置換処理部により置換された前記置換経路を、前記対応情報検索部により検索された前記置換経路を強調して表示する
    ことを特徴とする請求項1に記載の表示装置。
  13.  前記対応情報検索部は、前記表示部に入力された前記表示部の表示画面における位置の情報に基づいて、前記表示部に表示される前記加工プログラムのデータから任意の前記移動指令を抽出し、前記経路置換処理部により置換された前記置換経路から、抽出した前記移動指令に対応する前記置換経路を検索する
    ことを特徴とする請求項12に記載の表示装置。
  14.  前記工具移動経路算出手段は、前記加工プログラムのデータを任意の工程に分割し、任意に分割された前記工程に含まれる前記移動指令に基づいて、前記工程に含まれる前記工具移動経路を算出し、
     前記経路置換処理部は、前記工具移動経路算出手段により算出された前記工具移動経路と前記予め定められた指標とに基づいて、前記工程に含まれる連続する複数の前記工具移動経路を1つの前記置換経路に置換する
    ことを特徴とする請求項1に記載の表示装置。
  15.  前記経路置換処理部は、前記工具移動経路算出手段により算出された前記工具移動経路と前記表示部により表示される前記置換経路の表示倍率とは異なる表示倍率に対応して予め定められた角度または距離とに基づいて、前記工程に含まれる連続する複数の前記工具移動経路を1つの近似経路に置換し、この置換された前記近似経路から、前記表示部の表示に必要な前記近似経路を抽出し、抽出された前記近似経路に置換される前の前記工具移動経路について、前記予め定められた指標に基づき、前記工程に含まれる連続する複数の前記工具移動経路を1つの前記置換経路に置換することを特徴とする請求項14に記載の表示装置。
  16.  前記経路置換処理部により置換された前記置換経路から、前記表示部に表示された前記工程のうち抽出された前記工程に対応する前記置換経路を検索する工程情報検索部と、
    をさらに備え、
     前記表示部は、前記経路置換処理部により置換された前記置換経路を、前記工程情報検索部により検索された前記置換経路を強調して表示する
    ことを特徴とする請求項14に記載の表示装置。
  17.  前記加工プログラムのデータから、前記表示部に表示された前記工程のうち抽出された前記工程に対応する前記移動指令を検索する工程情報検索部と、
    をさらに備え、
     前記表示部は、前記加工プログラムのデータを、前記工程情報検索部により検索された前記移動指令を強調して表示する
    ことを特徴とする請求項14に記載の表示装置。
  18.  3次元座標上における前記移動指令が記述された加工プログラムのデータに基づいて、3次元座標上において工具が移動する経路である工具移動経路を算出する工具移動経路算出工程と、
     前記工具移動経路算出工程において算出された前記工具移動経路と予め定められた指標とに基づいて、連続する複数の前記工具移動経路を1つの置換経路に置換する経路置換工程と、
     前記経路置換工程において置換された前記置換経路を表示部に表示する置換経路表示工程と
    を備えることを特徴とする表示方法。
  19.  前記置換経路表示工程は、前記経路置換工程において置換された前記置換経路とともに、工具により加工される被加工物の3次元形状モデルを重ねて前記表示部に表示する
    ことを特徴とする請求項18に記載の表示方法。
  20.  前記置換経路表示工程は、前記経路置換工程において置換された前記置換経路を、前記置換経路と予め定められた基準ベクトルとのなす角度に応じた色の濃淡を付けて前記表示部に表示する
    ことを特徴とする請求項18に記載の表示方法。
  21.  前記加工プログラムのデータから、前記表示部に表示される前記置換経路のうち抽出された前記置換経路に対応する前記移動指令を検索する移動指令検索工程と、
     前記加工プログラムのデータを、前記移動指令検索工程において検索された前記移動指令を強調して前記表示部に表示する加工プログラム表示工程と、
    をさらに備えることを特徴とする請求項18に記載の表示方法。
  22.  前記経路置換工程において置換された前記置換経路から、前記加工プログラムのデータを表示する前記表示部に表示される前記加工プログラムのデータのうち抽出された前記移動指令に対応する前記置換経路を検索する置換経路検索工程と、
    をさらに備え、
     前記置換経路表示工程は、前記経路置換工程において置換された前記置換経路を、前記置換経路検索工程において検索された前記置換経路を強調して前記表示部に表示する
    ことを特徴とする請求項18に記載の表示方法。
  23.  前記工具移動経路算出工程は、前記加工プログラムのデータを任意の工程に分割し、任意に分割された前記工程に含まれる前記移動指令に基づいて、前記工程に含まれる前記工具移動経路を算出し、
     前記経路置換工程は、前記工具移動経路算出工程において算出された前記置換経路と前記予め定められた指標とに基づいて、前記工程に含まれる連続する複数の前記工具移動経路を1つの前記置換経路に置換する
    ことを特徴とする請求項18に記載の表示方法。
PCT/JP2014/003876 2014-07-23 2014-07-23 表示装置及び表示方法 WO2016013043A1 (ja)

Priority Applications (5)

Application Number Priority Date Filing Date Title
CN201480080783.7A CN106575111B (zh) 2014-07-23 2014-07-23 显示装置及显示方法
JP2015531398A JP5843053B1 (ja) 2014-07-23 2014-07-23 表示装置及び表示方法
US15/327,203 US20180210420A1 (en) 2014-07-23 2014-07-23 Display device and display method
DE112014006829.2T DE112014006829T5 (de) 2014-07-23 2014-07-23 Anzeigevorrichtung und Anzeigeverfahren
PCT/JP2014/003876 WO2016013043A1 (ja) 2014-07-23 2014-07-23 表示装置及び表示方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2014/003876 WO2016013043A1 (ja) 2014-07-23 2014-07-23 表示装置及び表示方法

Publications (1)

Publication Number Publication Date
WO2016013043A1 true WO2016013043A1 (ja) 2016-01-28

Family

ID=55073305

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2014/003876 WO2016013043A1 (ja) 2014-07-23 2014-07-23 表示装置及び表示方法

Country Status (5)

Country Link
US (1) US20180210420A1 (ja)
JP (1) JP5843053B1 (ja)
CN (1) CN106575111B (ja)
DE (1) DE112014006829T5 (ja)
WO (1) WO2016013043A1 (ja)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016164695A (ja) * 2015-03-06 2016-09-08 株式会社ソディック 表示機能付き数値制御装置および表示プログラム

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6333798B2 (ja) 2015-12-03 2018-05-30 ファナック株式会社 数値制御装置
WO2017145912A1 (ja) * 2016-02-23 2017-08-31 三菱電機株式会社 数値制御パラメータ調整装置及び数値制御パラメータ調整方法
US10868764B2 (en) * 2016-05-17 2020-12-15 Nippon Telegraph And Telephone Corporation Route calculation control device and route calculation control method
JP6829221B2 (ja) * 2018-04-13 2021-02-10 ファナック株式会社 数値制御システム
JP2020149672A (ja) * 2019-03-11 2020-09-17 株式会社ミツトヨ 測定結果表示装置及びプログラム

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10312452A (ja) * 1997-05-09 1998-11-24 Matsushita Electric Ind Co Ltd 地理情報提供システムと地理情報記述方法
JP2000276579A (ja) * 1999-03-23 2000-10-06 Mitsubishi Electric Corp ベクトルデータ保管装置、ベクトルデータ表示装置、及びベクトルデータ保管・表示装置
JP2001043350A (ja) * 1999-07-29 2001-02-16 Hitachi Software Eng Co Ltd 地図データ表示処理方法及び装置
JP2002311942A (ja) * 2001-04-19 2002-10-25 Nec Eng Ltd ベクトル地図の縮小表示装置およびその方法
JP2003141554A (ja) * 2001-10-30 2003-05-16 Hitachi Ltd 図形データ表示制御システム
JP2006113458A (ja) * 2004-10-18 2006-04-27 Xanavi Informatics Corp 要約地図作成装置
JP2011022688A (ja) * 2009-07-14 2011-02-03 Fanuc Ltd 工作機械の工具軌跡表示装置
WO2013118179A1 (ja) * 2012-02-09 2013-08-15 三菱電機株式会社 工具軌跡表示方法および工具軌跡表示装置

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4689745B2 (ja) * 2009-08-19 2011-05-25 ファナック株式会社 工作機械の工具ベクトル表示装置
JP2011096077A (ja) * 2009-10-30 2011-05-12 Makino Milling Mach Co Ltd 工具経路の生成方法及び装置
JP5192578B2 (ja) * 2011-06-03 2013-05-08 ファナック株式会社 加工プログラムの移動経路を修正する機能を備えた数値制御装置
JP5192574B2 (ja) * 2011-08-25 2013-05-08 ファナック株式会社 工具先端点の加速度または加加速度の表示部を備えた工具軌跡表示装置
JP5374616B1 (ja) * 2012-06-14 2013-12-25 ファナック株式会社 工作機械の工具ベクトルを表示する工具軌跡表示装置
JP5819812B2 (ja) * 2012-12-25 2015-11-24 ファナック株式会社 工作機械の負荷表示装置
JP6266300B2 (ja) * 2013-10-24 2018-01-24 Dmg森精機株式会社 工作機械

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10312452A (ja) * 1997-05-09 1998-11-24 Matsushita Electric Ind Co Ltd 地理情報提供システムと地理情報記述方法
JP2000276579A (ja) * 1999-03-23 2000-10-06 Mitsubishi Electric Corp ベクトルデータ保管装置、ベクトルデータ表示装置、及びベクトルデータ保管・表示装置
JP2001043350A (ja) * 1999-07-29 2001-02-16 Hitachi Software Eng Co Ltd 地図データ表示処理方法及び装置
JP2002311942A (ja) * 2001-04-19 2002-10-25 Nec Eng Ltd ベクトル地図の縮小表示装置およびその方法
JP2003141554A (ja) * 2001-10-30 2003-05-16 Hitachi Ltd 図形データ表示制御システム
JP2006113458A (ja) * 2004-10-18 2006-04-27 Xanavi Informatics Corp 要約地図作成装置
JP2011022688A (ja) * 2009-07-14 2011-02-03 Fanuc Ltd 工作機械の工具軌跡表示装置
WO2013118179A1 (ja) * 2012-02-09 2013-08-15 三菱電機株式会社 工具軌跡表示方法および工具軌跡表示装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016164695A (ja) * 2015-03-06 2016-09-08 株式会社ソディック 表示機能付き数値制御装置および表示プログラム

Also Published As

Publication number Publication date
JP5843053B1 (ja) 2016-01-13
DE112014006829T5 (de) 2017-04-06
US20180210420A1 (en) 2018-07-26
JPWO2016013043A1 (ja) 2017-04-27
CN106575111B (zh) 2018-11-27
CN106575111A (zh) 2017-04-19

Similar Documents

Publication Publication Date Title
JP5843053B1 (ja) 表示装置及び表示方法
JP5925976B1 (ja) 加工プログラム編集支援装置
US8933937B2 (en) Visualizing a layered graph using edge bundling
JP6441262B2 (ja) 加工プログラム編集装置、方法、及び編集用プログラム
JP2009054018A (ja) 画像検索装置、画像検索方法及びプログラム
JP6426772B2 (ja) 座標情報変換装置及び座標情報変換プログラム
EP1189123A2 (en) Automatic programming and simulation apparatus
JP6333798B2 (ja) 数値制御装置
JP5990662B2 (ja) 加工プログラム編集支援装置
CN104070265A (zh) 焊缝信息设定装置、程序、自动示教系统以及焊缝信息设定方法
JP5936781B1 (ja) 数値制御装置、nc加工装置、nc加工方法およびシミュレーション装置
JP2019212040A (ja) 位置情報表示システム
JP4046370B2 (ja) 3次元形状の作図方法
JP5274714B1 (ja) 加工プログラム生成装置、加工プログラム生成方法、および加工プログラム生成プログラム
JP5970434B2 (ja) 教示データ作成システムおよびプログラム
JP3134653B2 (ja) 中間点教示データ作成方法
KR102035464B1 (ko) 프로그램 생성 장치 및 프로그램 생성 장치에 있어서의 프로그램 생성 방법
US11727615B1 (en) Needle point path editing
JP4630589B2 (ja) 解析結果出力方法、解析結果出力装置、コンピュータプログラム及び記録媒体
WO2023112206A1 (ja) 図形データ編集装置、加工プログラム作成装置、および図形データ編集方法
JP3435956B2 (ja) グラフイメージ表示装置及びグラフイメージ表示方法
JPH09153070A (ja) 図面編集装置
CN115202289A (zh) 信息处理装置、加工程序生成方法以及程序
JPH09160626A (ja) Ncデータ作成システム
JP3952463B2 (ja) Camシステムにおける工具軌跡データ分割装置および工具軌跡データ分割方法

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2015531398

Country of ref document: JP

Kind code of ref document: A

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14898022

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 15327203

Country of ref document: US

WWE Wipo information: entry into national phase

Ref document number: 112014006829

Country of ref document: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14898022

Country of ref document: EP

Kind code of ref document: A1