WO2014167736A1 - 数値制御プログラム編集装置、数値制御プログラム編集方法およびプログラム - Google Patents

数値制御プログラム編集装置、数値制御プログラム編集方法およびプログラム Download PDF

Info

Publication number
WO2014167736A1
WO2014167736A1 PCT/JP2013/061127 JP2013061127W WO2014167736A1 WO 2014167736 A1 WO2014167736 A1 WO 2014167736A1 JP 2013061127 W JP2013061127 W JP 2013061127W WO 2014167736 A1 WO2014167736 A1 WO 2014167736A1
Authority
WO
WIPO (PCT)
Prior art keywords
shape
program
display screen
machining
item
Prior art date
Application number
PCT/JP2013/061127
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 US14/768,314 priority Critical patent/US10114364B2/en
Priority to CN201380075448.3A priority patent/CN105103066B/zh
Priority to PCT/JP2013/061127 priority patent/WO2014167736A1/ja
Priority to JP2015511065A priority patent/JP5905159B2/ja
Publication of WO2014167736A1 publication Critical patent/WO2014167736A1/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/4093Numerical 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 part programming, e.g. entry of geometrical information as taken from a technical drawing, combining this with machining and material information to obtain control information, named part programme, for the NC machine
    • 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/4093Numerical 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 part programming, e.g. entry of geometrical information as taken from a technical drawing, combining this with machining and material information to obtain control information, named part programme, for the NC machine
    • G05B19/40937Numerical 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 part programming, e.g. entry of geometrical information as taken from a technical drawing, combining this with machining and material information to obtain control information, named part programme, for the NC machine concerning programming of machining or material parameters, pocket machining
    • 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/34Director, elements to supervisory
    • G05B2219/34291Programmable interface, pic, plc
    • 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/36Nc in input of data, input key till input tape
    • G05B2219/36246Comments, messages displayed with program instructions, explain process
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Definitions

  • the present invention relates to a numerical control (NC) program editing apparatus, a numerical control program editing method, and a program for editing a numerical control program (Numerical Control machining Program: NC program) for numerically controlling a machine tool.
  • NC numerical Control
  • NC program for numerically controlling a machine tool.
  • NC program creation device that can create an NC program simply by inputting an operation for setting a coordinate value of a workpiece while an operator looks at a production drawing.
  • NC program creation device has also appeared that can create an NC program by directly reading CAD data modeled using a CAD system.
  • the numerical control device described in Patent Document 1 includes drawing means for allowing the operator to confirm the definition shape when the definition of the machining shape is input from the input device, and sets the coordinates of the reference point when the machining shape is defined.
  • Dimension display means for storing and displaying the dimension of the shape in addition to the drawing of the shape by comparing the coordinates of each end point with the stored coordinates is provided.
  • the machining data detection means detects machining data corresponding to the designated position, and the editing control means The detected machining data is displayed on the display means and can be edited by the machining data editing means.
  • the numerical control device described in Patent Document 3 generates and displays arbitrary coordinate axis information along with the tool trajectory on the display device, so that the operator can check the exact coordinate value of the passing point of the tool trajectory. Like that.
  • the present invention has been made in view of the above, and an object thereof is to obtain an NC program editing device, a numerical control program editing method, and a program that allow an operator to easily check an NC program.
  • the present invention provides a position in a three-dimensional virtual space based on attribute information which is dimension information or position information described for each processing unit constituting an NC program.
  • a machining shape generator for generating a three-dimensional machining shape having information for each machining unit, and extracting the attribute information from the NC program and extracting the three-dimensional position information corresponding to the corresponding machining shape
  • An attribute processing unit associated with information, the NC program on the program display screen, and a projected view obtained by obliquely projecting the machining shape arranged in the virtual space according to the positional information of the machining shape is displayed on the shape display screen, respectively.
  • the input content is changed to the NC.
  • a display screen control unit to be reflected in the program and the display screen control unit displays the extracted attribute information at a position corresponding to the position information associated with the attribute information in the shape display screen. It is characterized by.
  • An NC program editing device, a numerical control program editing method, and a program according to the present invention display a machining shape three-dimensionally and display dimension information or position information at a corresponding position on the three-dimensionally displayed machining shape. As a result, the operator can easily confirm the NC program.
  • FIG. 1 is a block diagram showing a configuration of an NC program editing apparatus according to an embodiment of the present invention.
  • FIG. 2 is a diagram illustrating an example of a display screen generated by the display screen control unit.
  • FIG. 3 is a diagram illustrating a configuration example of the NC program.
  • FIG. 4 is a diagram illustrating a configuration example of the NC program.
  • FIG. 5 is a diagram illustrating a configuration example of the NC program.
  • FIG. 6 is a flowchart for explaining the operation of the NC program editing apparatus according to the embodiment.
  • FIG. 7 is a flowchart illustrating a processing procedure in which the 3D machining shape generation unit generates a 3D machining shape in a hole machining unit.
  • FIG. 1 is a block diagram showing a configuration of an NC program editing apparatus according to an embodiment of the present invention.
  • FIG. 2 is a diagram illustrating an example of a display screen generated by the display screen control unit.
  • FIG. 3 is a diagram illustrating a configuration example of
  • FIG. 8 is a diagram illustrating an example of a 3D machining shape of a hole machining unit.
  • FIG. 9 is a flowchart for explaining a processing procedure in which the 3D processing shape generation unit generates a 3D processing shape in units of line processing.
  • FIG. 10 is a diagram illustrating an example of a 3D processing shape of a line processing unit.
  • FIG. 11 is a flowchart for explaining a processing procedure in which the 3D machining shape generation unit generates a 3D machining shape in units of surface machining.
  • FIG. 12 is a diagram illustrating an example of a 3D processing shape of a surface processing unit.
  • FIG. 13 is a flowchart illustrating a processing procedure in which the 3D machining shape generation unit generates a 3D machining shape in a turning unit.
  • FIG. 14 is a diagram showing a 3D machining shape defined by the turning unit of unit number # 3.
  • FIG. 15 is a flowchart illustrating a processing procedure in which the 3D finished shape generation unit generates a material shape.
  • FIG. 16 is a diagram illustrating an example of a material shape.
  • FIG. 17 is a diagram illustrating a display example of the position of the 3D machining shape in the hole machining unit.
  • FIG. 18 is a diagram illustrating a display example of dimensions of the 3D machining shape of the hole machining unit.
  • FIG. 19 is a diagram illustrating a display example of the dimensions of the material shape.
  • FIG. 20 is a diagram illustrating a display example of dimensions of a 3D machining shape of a turning unit.
  • FIG. 21 is a diagram illustrating a display example of dimensions of a 3D machining shape in a line machining unit.
  • FIG. 22 is a diagram illustrating a display example of the dimensions of the 3D machining shape of the surface machining unit.
  • FIG. 23 is a diagram illustrating a display example in a state in which the turning instruction data is selected.
  • FIG. 24 is a diagram showing a display example in a state where the “cut-X” item in the turning instruction data is selected.
  • FIG. 25 is a diagram illustrating a display example in a state where one of the trace elements is selected.
  • FIG. 26 is a diagram illustrating a display example in a state in which the “radius R” item is selected from the items for setting the trajectory elements.
  • FIG. 27 is a diagram illustrating a display example of the coordinate object when the surface processing unit of the unit number # 7 is selected.
  • FIG. 28 is a diagram illustrating another display example of the dimensions of the 3D machining shape of the line machining unit.
  • the priority of each of the “depth” item, the “toro allowance-Z” item, and the “take allowance—R” item is set lower than the priorities of the “start point coordinate” item and the “end point coordinate” item. It is a figure which shows the example of a display of the dimension of 3D processing shape of the line processing unit in case.
  • FIG. 29 shows the example of a display of the dimension of 3D processing shape of the line processing unit in case.
  • FIG. 30 is a flowchart for explaining the operation of the display screen control unit when the operator selects text information displayed on the shape display screen.
  • FIG. 31 is a diagram illustrating a display example when text information is selected.
  • FIG. 32 is a diagram illustrating a display example of a shape display screen that displays a material processing unit in a state where all items are not set.
  • FIG. 33 is a diagram illustrating a display example of the shape display screen when the “material outer diameter” item is set from the state of FIG. 32.
  • FIG. 34 is a diagram showing a display example of the shape display screen when the “material inner diameter” item is set from the state of FIG.
  • FIG. 35 is a diagram showing a display example of the shape display screen when the “material length” item is set from the state of FIG.
  • FIG. 31 is a diagram illustrating a display example when text information is selected.
  • FIG. 32 is a diagram illustrating a display example of a shape display screen that displays a material processing unit in a state where
  • FIG. 36 is a diagram showing a display example of the shape display screen when the “material end face length” item is set from the state of FIG. 35.
  • FIG. 37 is a diagram illustrating a display example of a shape display screen that displays a drilling unit in a state where all items are not set.
  • FIG. 38 is a diagram showing a display example of the shape display screen when the “hole diameter” item is set from the state of FIG.
  • FIG. 39 is a diagram showing a display example of the shape display screen when the “hole depth” item is set from the state of FIG.
  • FIG. 40 is a diagram showing a display example of the shape display screen when the “chamfering” item is set from the state of FIG. 39.
  • FIG. 41 is a flowchart for explaining the operation of the 2D shape generation unit.
  • FIG. 41 is a flowchart for explaining the operation of the 2D shape generation unit.
  • FIG. 42 is a diagram showing a display screen when “Line” is set in the “Shape” item when a turning unit is newly created.
  • FIG. 43 is a diagram showing a display screen when “Line” is set in the “Shape” item when a new line center processing unit is created.
  • FIG. 1 is a block diagram showing a configuration of an NC program editing apparatus according to an embodiment of the present invention.
  • the NC program editing device 100 is a device for editing an NC program.
  • the NC program is a program for controlling the numerical control device.
  • the numerical control device operates the machine tool based on the NC program to process the material (workpiece before machining) that is the workpiece, and has a finished product (workpiece after machining) ).
  • the NC program editing device 100 includes a dialogue operation processing unit 1, a display unit 2, an instruction input unit 3, and a program editing unit 4.
  • the dialogue operation processing unit 1 is connected to a display unit 2, an instruction input unit 3, and a program editing unit 4.
  • the program editing unit 4 includes a program input unit 5, a program storage unit 6, a 3D machining shape generation unit (machining shape generation unit) 7, a 3D finished shape generation unit (finished shape generation unit) 8, a CAD data input unit 9, and attribute processing Unit 10, display screen control unit 11, 2D shape generation unit 12, and program output unit 13.
  • the dialogue operation processing unit 1, the program input unit 5, the program storage unit 6, the 3D machining shape generation unit 7, the 3D finished shape generation unit 8, the CAD data input unit 9, and the attributes A part or all of the processing unit 10, the display screen control unit 11, the 2D shape generation unit 12, and the program output unit 13 are realized by software, hardware, or a combination of both.
  • the program storage unit 6 is configured by a memory or a register. Realization by software means that in a computer having a storage device and an arithmetic device, the storage device stores a predetermined program in advance, and the arithmetic device executes the predetermined program stored in the storage device, thereby corresponding functional configuration To function as an element.
  • the functional component is realized by hardware or software depends on a specific embodiment or a design constraint imposed on the entire apparatus.
  • the recording medium from which the program that implements the functional components is loaded may be any medium other than a tangible medium other than a storage device provided in the computer.
  • a CD-ROM, a DVD-ROM, an external storage device, or a detachable memory device can be applied as a recording medium.
  • the NC program editing device 100 may be realized by a single computer or a plurality of computers connected by a network. Further, the NC program editing apparatus 100 may be realized using a control computer of an arbitrary apparatus. For example, the NC program editing device 100 may be realized on a control computer of a numerical control device. The NC program editing device 100 may be realized on a computer that functions as an NC program creation device that automatically generates an NC program based on a definition shape or CAD data.
  • the display unit 2 is a device for displaying a display screen, and is a liquid crystal monitor, for example.
  • the instruction input unit 3 includes a mouse and a keyboard, and receives input of operation information and the like from an operator. The operation information input via the instruction input unit 3 is sent to the dialogue operation processing unit 1.
  • the dialogue operation processing unit 1 provides a GUI environment. That is, for example, the interactive operation processing unit 1 displays the display screen sent from the program editing unit 4 on the display unit 2 or when the mouse is clicked while the cursor is displayed on the display screen. The screen coordinates of the clicked part and the notification of the click are sent to the program editing unit 4.
  • the program input unit 5 inputs the NC program 20 from an external storage device (not shown) and stores the NC program 20 in the program storage unit 6.
  • the 3D machining shape generation unit 7 generates a 3D machining shape, which is a three-dimensional model of the shape to be removed by machining, based on the NC program stored in the program storage unit 6.
  • the NC program is composed of a plurality of instruction data. Note that the minimum unit of the set of instruction data for defining one or the same plurality of machining shapes is referred to as a machining unit.
  • the 3D machining shape generation unit 7 generates a three-dimensional machining shape model (hereinafter, 3D machining shape) for each machining unit.
  • Each 3D machining shape generated by the 3D machining shape generation unit 7 is positioned in a three-dimensional virtual space so that the mutual positional relationship is equal to the positional relationship between machining shapes for each machining unit based on the NC program.
  • Position information in a three-dimensional virtual space is expressed using a single coordinate system.
  • the coordinate system to which the position information of the 3D machining shape conforms may be any coordinate system, but there is a one-to-one correspondence with a non-relative coordinate system (for example, a machine coordinate system) based on the NC program. Is assumed to hold. The configuration of the NC program will be described in detail later.
  • the 3D finished shape generation unit 8 generates a 3D model of material shape (hereinafter simply referred to as material shape) based on the NC program stored in the program storage unit 6.
  • the 3D finished shape generation unit 8 generates a 3D finished shape that is a three-dimensional model of the finished shape based on the generated material shape and the 3D processed shape generated by the 3D processed shape generation unit 7.
  • the material shape and the 3D finished shape generated by the 3D finished shape generating unit 8 have position information in the virtual space, like the 3D processed shape. That is, the coordinate system to which the position information of the material shape and the 3D finished shape is based is the same as the coordinate system to which the position information of the 3D processed shape is based.
  • the 3D processed shape, the 3D finished shape, and the material shape may be collectively referred to as a 3D shape.
  • the CAD data input unit 9 inputs CAD data 30 from a CAD system (not shown) or an external storage device (not shown) and arranges it in a coordinate system based on the NC program.
  • the CAD data 30 includes, for example, information on products, information on materials, information on processing instructions used when forming products from materials, and the like.
  • the information regarding the product in the CAD data 30 includes, for example, product shape data.
  • Product shape data (hereinafter referred to as product shape data) is generated by using, for example, a CAD system and has information indicating the shape and dimensions of the product.
  • the attribute processing unit 10 extracts dimension data which is attribute information described for each processing unit in the NC program stored in the program storage unit 6. And the attribute process part 10 arrange
  • the dimension data includes dimension information defining the 3D shape, position information, or both.
  • the dimension data corresponds to, for example, length information of 3D shapes, distance information between 3D shapes, or coordinate value information where 3D shapes are located.
  • the display screen control unit 11 generates a display screen to be displayed on the display unit 2 and interprets operation information input by the operator via the display screen.
  • FIG. 2 is a diagram illustrating an example of a display screen generated by the display screen control unit 11.
  • the display screen 200 includes a program display screen 201 and a shape display screen 202.
  • the display screen control unit 11 displays part or all of the NC program on the program display screen 201.
  • the display screen control unit 11 displays the 3D shape in which the dimension data is arranged on the shape display screen 202 in a three-dimensional manner.
  • the display screen control unit 11 generates an image to be displayed on the shape display screen 202 as follows.
  • the display screen control unit 11 arranges the 3D shape in the position indicated by the position information included in each of the three-dimensional virtual spaces, and obliquely projects the arranged 3D shape on the two-dimensional plane from a predetermined viewpoint.
  • the display screen control unit 11 displays on the shape display screen 202 a projection diagram generated by oblique projection on a two-dimensional plane.
  • the projection viewpoint may be set as desired by the operator.
  • dimension data is displayed in each 3D shape.
  • the display position of the dimension data is based on position information given to the dimension data.
  • the shape display screen 202 can accept an input for specifying the dimension data being displayed.
  • the input designating the dimension data being displayed is, for example, that the dimension data being displayed is clicked.
  • the dialogue operation processing unit 1 displays the clicked screen coordinates on the display screen control unit 11.
  • the display screen control unit 11 specifies the designated dimension data based on the screen coordinates. Then, the display screen control unit 11 finds a part where the specified dimension data is described in the NC program, and highlights the found part on the program display screen 201.
  • the 2D shape generation unit 12 generates a trajectory shape indicating an initial value of the tool trajectory when a machining shape that requires setting of the tool trajectory is newly created.
  • the generated trajectory shape has position information in the virtual space.
  • the generated trajectory shape is sent to the display screen control unit 11.
  • the program output unit 13 outputs the NC program (NC program 40) stored in the program storage unit 6 to the outside.
  • the operator can input an instruction to output the NC program (output instruction) to the instruction input unit 3 after the editing of the NC program is completed.
  • the dialogue operation processing unit 1 detects the output instruction, it sends the output instruction to the program editing unit 4.
  • the program output unit 13 outputs the NC program stored in the program storage unit 6 to the outside.
  • FIG. 4 and FIG. 5 are diagrams showing configuration examples of the NC program.
  • 3 to 5 show partial programs obtained by dividing the same NC program.
  • the unit number is an identification number assigned to the machining unit.
  • instruction data for setting a material shape, basic coordinates, a machining surface angle, and the like are also treated as machining units.
  • the processing unit of unit number # 0 is a processing unit (material processing unit) composed of instruction data for setting the material shape.
  • the material processing unit has attributes (items) for setting the material shape and the material material, respectively.
  • the shape of the material to be processed is a cylinder.
  • the “material material” item is an item for setting the material of the material to be processed.
  • the “material outer diameter” item is an item for setting the maximum outer diameter (material outer diameter) of the material.
  • the “material inner diameter” item is an item for setting a minimum inner diameter (material inner diameter) of the material.
  • the “material length” item is an item for setting the axial length of the material shape.
  • the “material end face length” item is an item for setting the length of the material protruding portion (material length) in the ⁇ Z-axis direction from the workpiece origin.
  • the “rotation speed” item is an item for setting the maximum rotation speed of the spindle rotation speed at the time of turning. Note that the Z axis of the workpiece coordinate system is a turning axis, and in the case of turning, machining is performed in the + Z axis direction.
  • the machining unit of unit number # 1 is a machining unit (basic coordinate machining unit) composed of instruction data for setting the workpiece origin position (basic coordinates).
  • the basic coordinate processing unit has a plurality of items for setting the distance and direction between the machine origin and the workpiece origin.
  • the “X” item is an item for setting a coordinate value from the machine origin to the workpiece origin in the X-axis direction.
  • the “Y” item is an item for setting a coordinate value from the machine origin to the workpiece origin in the Y-axis direction.
  • the “Z” item is an item for setting a coordinate value from the machine origin to the workpiece origin in the Z-axis direction.
  • the “ ⁇ ” item is an item for setting an angle formed by the machine coordinate system and the workpiece coordinate system.
  • the “C” item is an item for setting a component around the turning axis in the angle formed by the machine coordinate system and the workpiece coordinate system.
  • the processing unit of unit number # 2 and the processing unit of unit number # 15 are processing units (processing surface angle processing units) composed of instruction data for setting the angle of the processing surface.
  • the machining surface angle machining unit has a plurality of items for setting the angle of the machining surface.
  • the “angle B” item is an item for setting an angle for indexing the mill shaft head.
  • the “angle C” item is an item for setting an angle for determining the C axis that is the turning axis.
  • the processing unit of unit number # 3 is a processing unit (end surface processing unit) that commands processing to scrape off the protruding portion of the material end surface.
  • the end face machining unit includes end face machining instruction data for setting a part to be scraped off, tool instruction data for setting a tool and a condition relating to the tool, and shape instruction data for setting a shape to be machined by the end face machining.
  • the end face machining instruction data includes an “machining part” item that is an item for setting a machining position, an “cutting-X” item, and an “cutting-Z” item that are items for setting coordinate values of cutting points, respectively. Is provided.
  • the tool instruction data includes a “tool number” item in which an identification number assigned when a tool to be used in the end face machining unit is set, a “tool” item, a “call” item, “Speed” item and “Feed” item.
  • a “shape number” item that stores an identification number assigned to each element that defines a shape to be machined by end face machining and an element that defines a shape to be machined by end face machining is set. And items for setting specific numerical values.
  • the element that defines the shape to be machined by the end face machining specifically refers to one or more elements that constitute the wire shape that defines the machining surface.
  • a line type such as “line” or “arc” is set.
  • the items for setting specific numerical values include, for example, a “start point coordinate” item, an “end point coordinate” item, and a “radius R” item.
  • start point coordinate item
  • end point coordinate item
  • end point coordinate the end surface processing coordinate values are set using the XZ plane.
  • a “radius R” item that is an item for setting the radius of the arc is further used.
  • the machining unit with unit number # 4 is a machining unit (turning unit) that commands machining (turning) for turning the outer circumference, inner circumference, front or back of a round bar using a general turning tool.
  • the turning unit includes turning instruction data for setting a portion to be turned, tool instruction data for setting a tool and conditions for the tool, and shape instruction data for setting a shape to be processed by the turning tool.
  • Turning instruction data includes a “machining part” item that is an item for setting a machining position, and a “cut-X” item and a “cut-Z” item that are items for setting a coordinate value of a cutting point, respectively. Is provided.
  • the tool instruction data includes a “tool number” item in which an identification number assigned when a tool used in a turning unit is set, a “tool” item, a “nominal” item, a “circumferential speed” item, And a “feed” item.
  • shape instruction data a “shape number” item that stores an identification number assigned to each element that defines the shape to be machined by turning and an element that defines the shape to be machined by turning is set.
  • the element that defines the shape to be machined by turning refers to one or more elements that constitute the trajectory of the tool.
  • a line type such as “line” or “arc” is set.
  • the items for setting specific numerical values are the same as the items described in the end face machining unit.
  • the machining unit with unit number # 6, the machining unit with unit number # 9, and the machining unit with unit number # 16 are machining units (basic coordinate movement machining units) that command movement of the workpiece origin position.
  • the basic coordinate movement machining unit is an item for setting the movement amount in the X-axis direction from the workpiece origin position set by the basic coordinate machining unit, the workpiece origin position set by the basic coordinate machining unit “Movement Y” item that is an item for setting the movement amount in the Y-axis direction from the “Movement Z” item that is an item for setting the movement amount in the Z-axis direction from the work origin position set by the basic coordinate machining unit , “Move C” which is an item for setting the turning angle from the angle set by the basic coordinate machining unit of the C axis, and the angle for rotating the workpiece coordinate system in the XY plane after the machining surface is determined
  • the item includes a “rotation ⁇ ” item that is an item for setting.
  • the processing unit of unit number # 7 is a processing unit (surface processing unit) that commands processing (surface processing) to flatten the surface of the material using a face mill.
  • the surface processing unit includes surface processing instruction data for setting the depth processed by the surface processing, tool instruction data for setting the tool and the conditions for the tool, and a shape instruction for setting the shape of the region processed by the surface processing. Data.
  • the surface machining instruction data is the “depth” item that sets the distance in the Z-axis direction from the workpiece origin to the machined surface, and the length of the machining allowance, and the length in the Z-axis direction in the workpiece coordinate system "Torrow allowance-Z” item, which is an item to be performed, and "finishing allowance-Z", which is the length of the finish machining allowance when finishing machining, and is an item for setting the length in the Z-axis direction in the workpiece coordinate system With items.
  • the tool instruction data includes a “tool number” item in which an identification number assigned when a tool used in a surface machining unit is set, a “tool” item, a “nominal” item, a “circumferential speed” item, And a “feed” item.
  • the “shape number” item that stores the identification number assigned to each element that defines the shape of the region to be processed by surface processing and the element that defines the shape of the region processed by surface processing are set.
  • “Shape” items which are items to be set, and items for setting specific numerical values.
  • the element that defines the shape of the region processed by surface processing refers to one or more elements that constitute the boundary of the region.
  • a line type such as “straight line” or “arc” is set.
  • the items for setting specific numerical values include, for example, a “start point coordinate” item, an “end point coordinate” item, and a “radius R” item.
  • the machining unit of unit number # 10, the machining unit of unit number # 12, and the machining unit of unit number # 14 command machining (line center machining) that moves the center of the tool along the trajectory set in the machining unit.
  • the line center processing unit includes line processing instruction data that sets the depth and the like processed by line center processing, tool instruction data that sets the conditions for the tool and the tool, and a trajectory that moves the center of the tool by line center processing.
  • Shape designating data for designating the shape of the image.
  • the line processing instruction data includes the “depth” item, which is an item for setting the distance in the Z-axis direction from the workpiece origin to the machining finish surface, the length of the machining allowance, and the length in the Z-axis direction in the workpiece coordinate system (axis "Tolerance-Z” item, which is an item for setting direction allowance, and “Tolerance-R” item, which is an item for setting the allowance length on the XY plane (radial allowance) in the work coordinate system And a “finishing allowance-Z” item, which is the length of the finishing machining allowance when performing the finishing machining, and is an item for setting the length in the Z-axis direction in the workpiece coordinate system.
  • the tool instruction data includes the “tool number” item, the “tool” item, the “nominal” item, and the “circumferential speed” item that store the identification number assigned when the tool used in the line center machining unit is set. , And a “feed” item.
  • the shape instruction data includes a “shape number” item that stores an identification number assigned to each element that defines the shape of the tool trajectory, and an item that sets an element that defines the shape of the tool trajectory. And an item for setting a specific numerical value. In the “shape” item, a line type such as “straight line” or “arc” is set.
  • the items for setting specific numerical values are the same as the items described in the surface machining unit.
  • line center machining is one of machining (line machining) in which a tool is moved along a linear trajectory.
  • line machining includes line right machining that moves the tool so that the left edge of the tool (the left side of the tool when the tool travel direction is the front) is set, and the right edge of the tool. (The right side of the tool when the traveling direction of the tool is the front surface) includes a line left side machining that moves the tool along the set locus.
  • Data and items included in the processing unit for line right side processing and the processing unit for line left side processing are the same as those for line center processing.
  • the processing unit of unit number # 17 is a processing unit (drilling unit) that commands drilling with a drill.
  • the drilling unit includes hole machining instruction data for setting the hole dimensions, tool instruction data for setting the tool and the conditions for the tool, and shape instruction data for setting a position to be machined by drilling.
  • the hole processing instruction data includes the “hole diameter” item, which sets the hole diameter, the “hole depth” item, which sets the hole depth, and chamfering when chamfering a hole hole.
  • a “chamfering” item which is an item for setting a length for executing machining, is provided.
  • the tool instruction data includes a “tool number” item in which an identification number assigned when a tool used in a drilling unit is set, a “tool” item, a “nominal” item, a “circumferential speed” item, “Feed” item, “machined hole diameter” item, and “machined hole depth” are provided.
  • the shape instruction data includes a “shape number” item in which an identification number assigned for each machining position is stored, a “shape” item that is an item for setting the shape of the position, and an “coordinate” that is an item for setting a position.
  • a “value” item is provided.
  • the “coordinate value” item is set using XYZ coordinates.
  • the drilling unit is one of the processing (hole processing) for making a hole in the material shape.
  • hole processing includes reaming or tapping.
  • the data and items included in the processing unit for reamer processing and the processing unit for tapping are the same as in drilling.
  • FIG. 6 is a flowchart for explaining the operation of the NC program editing device 100 according to the embodiment.
  • the program input unit 5 receives an input of the NC program 20 (step S101).
  • the program input unit 5 stores the received NC program 20 in the program storage unit 6.
  • the 3D machining shape generation unit 7 generates a 3D machining shape for each machining unit based on the NC program stored in the program storage unit 6 (step S102).
  • the generated 3D machining shape is sent to the 3D finished shape generation unit 8 and the display screen control unit 11.
  • the 3D finished shape generation unit 8 generates a material shape based on the NC program stored in the program storage unit 6 (step S103). Then, the 3D finished shape generation unit 8 generates a 3D finished shape by subtracting the 3D processed shape generated by the 3D processed shape generation unit 7 from the generated material shape (step S104). The generated 3D finished shape is sent to the display screen control unit 11.
  • the attribute processing unit 10 extracts dimension data for each machining unit from the NC program stored in the program storage unit 6, and associates position information with the created dimension data (step S105).
  • the attribute processing unit 10 associates, for example, a part (or its vicinity) representing an item in which dimension data is set in a 3D shape (3D processed shape and material shape) with position information of the dimension data.
  • the position information given to the dimension data may be expressed as a relative position from the corresponding 3D machining shape.
  • the dimension data associated with the position information is sent to the display screen control unit 11.
  • the display screen control unit 11 generates image data for displaying the 3D finished shape generated by the 3D finished shape generating unit 8, the 3D processed shape generated by the 3D processed shape generating unit 7, and the dimension data.
  • the generated image data is displayed on the shape display screen 202 (step S106).
  • the display position of the dimension data is a position based on position information associated with the dimension data.
  • the display screen control unit 11 may display the CAD data 30 input by the CAD data input unit on the shape display screen 202 instead of the 3D finished shape in accordance with an operator instruction.
  • the NC program editing device 100 can accept an output instruction and an NC program editing input.
  • the program output unit 13 determines whether there is an output instruction (step S107). When there is an output instruction (step S107, Yes), the program output unit 13 outputs the NC program stored in the program storage unit 6 to the outside (step S108). Then, the operation of the NC program editing device 100 ends.
  • step S107 determines whether there is an NC program editing input via the program display screen 201 (step S109).
  • step S109 Yes
  • the display screen control unit 11 reflects the edited input content in the NC program stored in the program storage unit 6 (step S110). The process is executed again. If there is no NC program edit input (No in step S109), the process in step S107 is executed again.
  • step S102 the process of step S102 will be described for each type of processing.
  • FIG. 7 is a flowchart illustrating a processing procedure in which the 3D machining shape generation unit 7 generates a 3D machining shape in a hole machining unit.
  • the 3D machining shape generation unit 7 first sets the hole diameter set in the “hole diameter” item, the hole depth set in the “hole depth” item, and the “chamfer” item in the hole machining instruction data. Based on the set chamfering amount, a drilling definition shape is generated (step S201).
  • the hole machining definition shape is generated as follows, for example. First, a solid model of a cylinder having a hole diameter as a diameter and a hole depth as an axial length is generated. Then, a conical solid model is generated in which (hole diameter + chamfering amount ⁇ 2) is a large diameter, a hole diameter is a small diameter, and a chamfering amount is an axial length. Then, the cylindrical solid model and the conical solid model are arranged so as to maintain a predetermined positional relationship with each other, and a sum calculation of the two solid models is performed, thereby generating a hole processing definition shape.
  • the 3D machining shape generation unit 7 arranges the generated hole machining definition shape at the coordinates set in the shape instruction data (step S202).
  • the 3D machining shape generation unit 7 copies the defined number of hole machining definition shapes, and sets the copied hole machining definition shapes to the respective coordinates. Deploy.
  • the 3D machining shape generation unit 7 rotates the generated hole machining definition shape so as to match the machining surface (step S203).
  • the machining surface set by the last machining surface angle machining unit among the machining surface angle machining units commanded before the hole machining unit is used.
  • the last machining surface angle machining unit among the machining surface angle machining units commanded before the machining unit of interest may be referred to as the last machining surface angle machining unit.
  • the 3D machining shape generation unit 7 moves / rotates the rotated hole machining definition shape by the movement / rotation amount of the workpiece origin position (step S204).
  • the movement / rotation amount set by the last basic coordinate movement machining unit among the basic coordinate movement machining units commanded before the hole machining unit is used.
  • the last basic coordinate movement machining unit among the basic coordinate movement machining units commanded before the machining unit of interest may be referred to as the immediately preceding basic coordinate movement machining unit.
  • the generated 3D machining shape of the hole machining unit is accompanied by the position information determined by the processing in step S203 and step S204.
  • FIG. 8 is a diagram illustrating an example of a 3D machining shape of a hole machining unit.
  • a shape 300 indicated by a broken line is a finished processed shape by the NC program shown in FIGS.
  • a shape 301 indicated by a solid line is a 3D machining shape set by a hole machining unit of unit number # 17.
  • FIG. 9 is a flowchart illustrating a processing procedure in which the 3D processing shape generation unit 7 generates a 3D processing shape in units of line processing.
  • the 3D machining shape generation unit 7 first defines the line machining definition based on the radial machining allowance set in the “Trottle allowance-R” item in the line machining instruction data and the shape of the tool trajectory set in the shape instruction data.
  • a shape is generated (step S301).
  • the line processing definition shape is generated as follows, for example.
  • a wire shape is generated based on the shape of the tool trajectory set in the line machining shape data.
  • the wire shape generation method varies depending on the type of line processing (line right side processing, line left side processing, line center processing).
  • line right side processing When the right side machining is instructed, the shape obtained by offsetting the right side of the tool trajectory (the right side when the traveling direction of the tool is viewed in front) by the length of the radial machining allowance is calculated.
  • a closed loop wire shape is generated.
  • a shape obtained by offsetting the left side of the tool trajectory (left side when the tool traveling direction is viewed in front) by the length of the radial machining allowance is calculated. Then, by interpolating between the end point of the shape of the tool trajectory and the end point of the shape obtained by offsetting from the trajectory, a closed loop wire shape is generated.
  • the shapes obtained by offsetting the left and right sides of the tool trajectory by half the radial machining allowance are calculated.
  • a wire shape in a closed loop shape is generated by interpolating between the calculated end points of each shape with a wire.
  • the end points are interpolated using a semicircular arc having a diameter in the radial direction allowance.
  • the semicircular arc may be approximately represented by a plurality of short straight lines.
  • the 3D machining shape generation unit 7 pushes out the generated line machining definition shape by the length of the machining allowance set in the “Take allowance-Z” item in the line machining instruction data, thereby performing the 3D machining line shape 3D.
  • a machining shape is generated (step S302).
  • the 3D processing shape generation unit 7 rotates the generated 3D processing shape so as to match the processing surface (step S303). Then, the 3D machining shape generation unit 7 moves / rotates the rotated 3D machining shape by the movement / rotation amount of the workpiece origin position (step S304).
  • the rotation according to the machining surface and the movement / rotation according to the workpiece origin position / rotation amount are set by the machining surface angle machining unit immediately before and the basic coordinate movement machining unit just like the case of hole machining unit. Value is used.
  • the generated 3D processing shape of the line processing unit is accompanied by the position information determined by the processing in step S303 and step S304.
  • FIG. 10 is a diagram illustrating an example of a 3D machining shape of a line machining unit.
  • a shape 302 indicated by a solid line is a 3D machining shape set by a line machining unit of unit number # 10.
  • FIG. 11 is a flowchart for explaining a processing procedure in which the 3D machining shape generation unit 7 generates a 3D machining shape for each surface machining unit.
  • the 3D machining shape generation unit 7 generates a surface machining definition shape indicating a machining surface based on the surface machining shape data (step S401).
  • the surface processing definition shape is generated as follows, for example. First, a closed loop wire shape indicating a processed surface is generated based on the surface processed shape data. A surface having the wire shape as a boundary corresponds to the surface processing definition shape.
  • the 3D machining shape generation unit 7 extrudes the generated surface machining definition shape by the machining allowance length set in the “coating allowance-Z” item in the surface machining instruction data, thereby obtaining a 3D machining surface 3D.
  • a machining shape is generated (step S402).
  • the 3D processing shape generation unit 7 rotates the generated 3D processing shape so as to match the processing surface (step S403).
  • the 3D machining shape generation unit 7 moves / rotates the rotated 3D machining shape by the movement / rotation amount of the workpiece origin position (step S404).
  • the rotation according to the machining surface and the movement / rotation according to the workpiece origin position / rotation amount are set by the machining surface angle machining unit immediately before and the basic coordinate movement machining unit just like the case of hole machining unit. Value is used.
  • the generation of the 3D machining shape of the surface machining unit is completed.
  • the generated 3D machining shape of the surface machining unit is accompanied by the position information determined by the processing in step S403 and step S404.
  • FIG. 12 is a diagram illustrating an example of a 3D machining shape of a surface machining unit.
  • a shape 303 indicated by a solid line is a 3D machining shape set by the surface machining unit of unit number # 7.
  • FIG. 13 is a flowchart for explaining a processing procedure in which the 3D machining shape generation unit 7 generates a 3D machining shape of a turning unit.
  • the 3D machining shape generation unit 7 first generates a turning definition shape based on the turning shape data (step S501).
  • the turning definition shape is generated as follows.
  • a closed loop wire shape including a cutting point set in the turning instruction data and a trajectory set in the turning shape data is generated. Between the cut point and the trajectory is interpolated by the wire shape. For the interpolation, for example, the cross-sectional shape of the material shape is used.
  • the generated wire shape corresponds to the turning process definition shape. Since the cutting point and the trajectory have position information, the turning definition shape generated by the process of step S501 has position information.
  • the 3D machining shape generation unit 7 generates a 3D machining shape for a turning unit by extruding the turning definition shape by 360 degrees about the turning center axis (step S502).
  • the generation of the 3D machining shape of the surface machining unit is completed.
  • the generated 3D machining shape of the surface machining unit is accompanied by position information determined by the process of step S501.
  • FIG. 14 is a diagram illustrating an example of a 3D machining shape of a turning unit.
  • a shape 304 indicated by a solid line is a 3D machining shape of a turning unit of unit number # 4.
  • the 3D machining shape generation unit 7 can generate a 3D machining shape based on the dimension data described in the machining unit.
  • step S103 Next, the process of step S103 will be described in more detail.
  • FIG. 15 is a flowchart for explaining the processing in step S103, that is, the processing procedure in which the 3D finished shape generation unit 8 generates the material shape.
  • the 3D finished shape generation unit 8 sets the material outer diameter set in the “material outer diameter” item, the material inner diameter set in the “material inner diameter” item, and the “material length” item.
  • a material definition shape is generated based on the set material length (step S601).
  • the material definition shape is generated as follows, for example.
  • a cylindrical solid model is generated with the material outer diameter as the diameter and the material length as the axial length.
  • a solid model of a cylinder having a material inner diameter as a diameter and a material length as an axial length is generated.
  • a material-defined shape is generated by executing a difference calculation for removing a cylindrical solid model having a material inner diameter as a diameter from a cylindrical solid model having a material outer diameter as a diameter.
  • the 3D finished shape generation unit 8 determines an arrangement position of the material definition shape (step S602). Specifically, for example, if the Z-axis is the turning center axis, the material-defined shape is arranged so that the columnar center axis of the material-defined shape matches the Z-axis. Then, the end surface of the material-defined shape is translated in the ⁇ Z-axis direction so that the length of the protruding portion from the workpiece origin position matches the material end surface length set in the “material end surface length” item. Thus, the generation of the material shape is completed. The generated material shape is accompanied by position information determined by the processing in step S602.
  • FIG. 16 is a diagram illustrating an example of a material shape.
  • a shape 400 indicated by a solid line is a material shape set by a material processing unit of unit number # 0.
  • the display screen control unit 11 converts the dimension data into text information. Then, the display screen control unit 11 projects the points indicated by the position information attached to the dimension data onto the two-dimensional plane that forms the shape display screen 202. The display screen control unit 11 displays the text information on the two-dimensional plane of the shape display screen 202 in the vicinity of the position where the point is projected.
  • FIG. 17 is a diagram showing a display example of the position of the 3D machining shape in the hole machining unit.
  • coordinate values indicating the positions of the holes set in the “coordinate value” item which is one of the items constituting the shape instruction data, are displayed (text information 501).
  • the coordinate data set in the “coordinate value” item is associated with the dimension data that is the basis of the text information 501 as position information.
  • a point is displayed at the position indicated by the position information, and the text information 501 is displayed so that the point coincides with the left corner of the text information 501.
  • FIG. 18 is a diagram showing a display example of the dimensions of the 3D machining shape of the hole machining unit.
  • the shape display screen 202 displays values set for each of the “hole diameter” item, the “hole depth” item, and the “chamfering” item, and the number of holes (text information 502).
  • the number of holes is equal to the number of machining positions set in the shape instruction data.
  • the coordinate data set in the “coordinate value” item is associated with the dimension data that is the basis of the text information 502 as position information.
  • a point is displayed at the position indicated by the position information, a leader line is displayed obliquely upward to the right from the point, and the text information 502 is displayed so that the leading end of the leader line coincides with the left corner of the text information 502.
  • the attribute processing unit 10 adds a prefix according to the extraction source item to the top of the extracted dimension data.
  • the value set in the “hole diameter” item of the hole machining unit is prefixed with “D”
  • the value set in the “hole depth” item is prefixed with “H”.
  • the value set in the “chamfering” item is prefixed with “C”
  • the value indicating the number of holes is prefixed with “ ⁇ ”.
  • the attribute processing unit 10 attaches an instruction to use a leader line to the dimension data. Whether or not an instruction to use a leader line is attached to the dimension data is set in advance for each item, for example.
  • the display screen control unit 11 displays the leader line when an instruction to use the leader line is attached to the dimension data.
  • FIG. 19 is a diagram showing a display example of the dimensions of the material shape.
  • the shape display screen 202 displays values set in the “material outer diameter” item, the “material inner diameter” item, the “material length” item, and the “material end face length” item (text information 503). ).
  • the value set in the “material outer diameter” item of the material processing unit is prefixed with “OD”, and the value set in the “material inner diameter” item is prefixed with “ID”.
  • the value set in the “material length” item is prefixed with “L”, and the value set in the “material end face length” item is prefixed with “WF”.
  • the dimension data that is the basis of the text information 503 has, for example, the drawing positions of two lead lines as position information. A leader line starting from the two leader positions is displayed, a dimension line in the shape of a double-sided arrow is displayed between the leader lines, and text information 503 is displayed at a predetermined position near the double-sided arrow.
  • the display screen controller 11 can draw two lead lines and double-sided arrows when displaying the length.
  • the attribute processing unit 10 attaches an instruction using two leader lines and a double-sided arrow to the dimension data.
  • the attribute processing unit 10 uses the drawing position of the leader line and the display position of the text information 503 as the position information of the dimension data.
  • the display screen control unit 11 displays a leader line, a double-sided arrow, and text information 503 based on the position information and instructions given to the dimension data.
  • FIG. 20 is a diagram showing a display example of the dimensions of the 3D machining shape of the turning unit.
  • the coordinate values of the cut points set in the “cut-X” item and the “cut-Z” item, the “start point coordinate” item, the “end point coordinate” item, and the “radius R” are displayed.
  • a value for each element set in the item is displayed (text information 504).
  • the value set in the “cut-X” item of the turning unit is prefixed with “D”
  • the value set in the “radius R” item is prefixed with “R”
  • the value set in the “start point-Z” item or the “end point-Z” item is prefixed with “L”
  • the value set in the “start point-X” item or the “end point-X” item is It is prefixed with “D”.
  • the shape display screen 202 displays trajectory elements using arrows from the start point coordinates to the end point coordinates.
  • FIG. 21 is a diagram showing a display example of dimensions of a 3D machining shape in a line machining unit.
  • the values set for the “depth” item, the “Tori allowance-Z” item, and the “Tori allowance-R” item, and the “start point coordinate” item and the “end point coordinate” item are set.
  • a value for each element is displayed (text information 505).
  • the value set in the “Toriyo-Z” item of the line processing unit is prefixed with “SrvZ”, and the value set in the “Toriyo-R” item is prefixed with “SrvR”.
  • the value set in the “depth” item is prefixed with “Dep”.
  • the shape display screen 202 displays trajectory elements using arrows from the start point coordinates to the end point coordinates.
  • FIG. 22 is a diagram showing a display example of the dimensions of the 3D machining shape of the surface machining unit.
  • the shape display screen 202 displays the values set in the “depth” item and the “Toro-Z” item, and the values for each element set in the “start point coordinate” item and the “end point coordinate” item. (Text information 506).
  • the value set in the “depth” item of the surface machining unit is prefixed with “Dep”, and the value set in the “Toro-Z” item is prefixed with “Srv”. .
  • the locus element is an arc
  • the value set in the “radius R” item is displayed.
  • the shape display screen 202 displays the shape of the element that defines the machining surface using an arrow from the start point coordinate to the end point coordinate.
  • the display screen control unit 11 uses the arrow from the start point coordinates to the end point coordinates.
  • Display elements For example, the attribute processing unit 10 generates an arrow display instruction including a start point coordinate and an end point coordinate for each element of the trajectory, an element shape, and an instruction to display an arrow based on a corresponding item set as a processing unit.
  • the display screen control unit 11 displays the shape of the element based on the arrow display instruction.
  • the display screen control unit 11 can accept an input for editing the NC program via the program display screen 201. Specifically, it is possible to accept an input of a value via the instruction input unit 3 in a state where a desired item of the NC program being displayed on the program display screen 201 is selected.
  • the display screen control unit 11 can update the set value of the selected item in the NC program stored in the program storage unit 6 with the input value.
  • the selectable unit of the NC programs being displayed on the program display screen 201 is not limited to item units.
  • the display screen control unit 11 highlights the dimension data or 3D shape corresponding to the selected item on the shape display screen 202. Can do.
  • FIG. 23 is a diagram showing a display example in a state where the turning instruction data is selected. As shown in the figure, text information 507 for displaying the value set in the “cut-X” item and text information 508 for displaying the value set in the “cut-Z” item are highlighted in bold. .
  • FIG. 24 is a diagram showing a display example in a state where the “cut-X” item in the turning instruction data is selected. As shown in the figure, text information 507 displaying the value set in the “cut-X” item is highlighted in bold. Since the “cut-Z” item is not selected, the corresponding text information 508 is not highlighted.
  • FIG. 25 is a diagram showing a display example in a state where one of the trace elements is selected.
  • an arc-shaped element is selected.
  • an arc-shaped arrow 509 corresponding to the selected item is highlighted with a bold line.
  • text information 510 for displaying the value set in the “start point-X” item constituting the “start point coordinate” item, and the value set in the “start point-Z” item constituting the “start point coordinate” item are displayed.
  • Text information 511, text information 512 for displaying the value set in the “end point-X” item constituting the “end point coordinate” item, and the value set in the “end point-Z” item constituting the “end point coordinate” item Text information 513 to be displayed and text information 514 to display a value set in the “radius R” item are highlighted in bold.
  • FIG. 26 is a diagram showing a display example in a state in which the “radius R” item is selected from items for setting trajectory elements. As shown in the figure, text information 514 displaying the value set in the “radius R” item is highlighted in bold. Text information (text information 510 to 513) and an arrow 509 corresponding to an item not selected are not highlighted.
  • the highlighting method is not limited to display in bold or bold lines.
  • a method of displaying using a specific color different from other parts or a blinking display can be adopted as a highlighting method.
  • the display screen control unit 11 3D shape of the selected processing unit. Can be displayed on the shape display screen 202.
  • the attribute processing unit 10 determines the position information of the workpiece coordinate origin and the orientation information of each coordinate axis constituting the workpiece coordinates based on the machining surface angle machining unit immediately before the selected machining unit and the immediately preceding basic coordinate movement machining unit. (Work coordinate information) is generated.
  • the display screen control unit 11 displays the coordinate object at the position indicated by the information on the work coordinate system generated by the attribute processing unit 10 so that the direction of the coordinate axis matches the direction indicated by the direction information.
  • FIG. 27 is a diagram showing a display example of the coordinate object when the surface machining unit of unit number # 7 is selected.
  • the coordinate object 515 is a machining unit of unit number # 5, which is a machining surface angle machining unit immediately before the surface machining unit of unit number # 7, and a basic coordinate movement machining unit immediately before the surface machining unit of unit number # 7. It is displayed at a position based on the processing unit of unit number # 6. Specifically, the coordinate object 515 has a direction rotated 45 degrees counterclockwise around the + Y axis according to the setting value “45” of the “angle B” item of the processing unit of unit number # 5.
  • a coordinate object 515 is displayed in such a manner that the workpiece coordinate origin coincides with the position moved by ⁇ 25 in the Z-axis direction.
  • the display screen control unit 11 may be configured to be able to change the scale of the shape display screen 202 based on an instruction from an operator or the like.
  • the display screen control unit 11 may not display the text information related to the item with high priority and the text information related to the low priority item that overlaps display.
  • the priority is set for each item in advance by an operator, for example.
  • FIG. 28 is a diagram showing another display example of the dimensions of the 3D machining shape of the line machining unit. As shown in the drawing, various text information are displayed so as to overlap each other along with the 3D processing shape of the line processing unit.
  • the priority of each of the “depth” item, the “toro allowance-Z” item, and the “take allowance—R” item is set lower than the priorities of the “start point coordinate” item and the “end point coordinate” item.
  • It is a figure which shows the example of a display of the dimension of 3D processing shape of the line processing unit in case.
  • the values set in the “start point coordinate” item and the “end point coordinate” item are displayed, and the text information set in the “depth” item, the “Toro-Z” item, and the “Toro-R” item. Is hidden.
  • FIG. 30 is a flowchart for explaining the operation of the display screen control unit 11 when the operator selects text information displayed on the shape display screen 202.
  • the screen coordinates of the clicked position are detected by the dialogue operation processing unit 1.
  • the display screen control unit 11 acquires screen coordinates detected by the dialogue operation processing unit 1 (step S701).
  • the display screen control unit 11 determines whether or not the acquired screen coordinates intersect with the display area of the text information being displayed (step S702).
  • the display screen control unit 11 specifies the text information displayed at the position closest to the screen coordinates (Step S703), and the specified text information It is determined whether the distance between the display area and the screen coordinates is smaller than a predetermined distance (step S704).
  • step S703 When the distance between the display area of the text information specified by the process of step S703 and the screen coordinates is larger than the predetermined distance (No in step S704), the display screen control unit 11 ends the process.
  • step S704 When the distance between the display area of the text information specified by the process of step S703 and the screen coordinates is smaller than the predetermined distance (step S704, Yes), the display screen control unit 11 includes the items constituting the NC program. The item corresponding to the text information specified by the process of step S703 is specified (step S705).
  • the display screen control unit 11 corresponds to the text information whose display area intersects with the screen coordinates among the items constituting the NC program. Is identified (step S706).
  • step S705 or step S706 the display screen control unit 11 moves the cursor to the part displaying the item specified by the process of step S705 or step S706 on the program display screen 201 (step S707). Exit.
  • FIG. 31 is a diagram showing a display example when text information is selected.
  • the mouse is clicked with the mouse cursor 600 placed in the vicinity of the display area 601 in which the material length of the material shape dimensions is displayed, the “material length included in the material processing unit” is selected.
  • the cursor is displayed on the item.
  • the highlighted state is the state where the cursor is placed.
  • the display screen control unit 11 can accept an edit input for newly creating a processing unit. In a transient state until each item is set when a machining unit is newly created, “***” indicating that it is not set is displayed as dimension data.
  • the attribute processing unit 10 associates position information of a predetermined initial value with the dimension data.
  • FIG. 32 is a diagram showing a display example of the shape display screen 202 displaying the material processing unit in a state where all items are not set. As shown in the drawing, “***” is displayed in the text information relating to the dimension. In this state, the material shape is not displayed yet.
  • FIG. 33 is a diagram showing a display example of the shape display screen 202 when the “material outer diameter” item is set from the state of FIG. When the “material outline” item is set, a disk having the diameter of the set material outline is displayed.
  • FIG. 34 is a diagram showing a display example of the shape display screen 202 when the “material inner diameter” item is set from the state of FIG.
  • a disk obtained by calculating a difference between a disk having the material inner diameter as a diameter from a disk having the material outer diameter as a diameter is displayed.
  • FIG. 35 is a diagram showing a display example of the shape display screen 202 when the “material length” item is set from the state of FIG.
  • the disc obtained by subtracting the disc with the material inner diameter from the disc with the material outer diameter as the diameter is pushed out by the set material length. The resulting shape is displayed.
  • FIG. 36 is a diagram showing a display example of the shape display screen 202 when the “material end face length” item is set from the state of FIG.
  • the shape shown in FIG. 35 is moved and displayed so that the length of the protruding portion from the workpiece origin position matches the material end face length.
  • FIG. 37 is a diagram showing a display example of the shape display screen 202 displaying the drilling unit in a state where all items are not set. As shown in the drawing, “***” is displayed in the text information relating to the dimension. In this state, the 3D machining shape of the hole machining unit generated using the initial value is displayed.
  • FIG. 38 is a diagram showing a display example of the shape display screen 202 when the “hole diameter” item is set from the state of FIG.
  • a 3D machining shape in which the hole diameter is changed in accordance with the set hole diameter is displayed.
  • FIG. 39 is a diagram showing a display example of the shape display screen 202 when the “hole depth” item is set from the state of FIG.
  • a 3D machining shape in which the axial length of the hole is changed in accordance with the set hole depth is displayed.
  • FIG. 40 is a diagram showing a display example of the shape display screen 202 when the “chamfering” item is set from the state of FIG.
  • a 3D machining shape in which the 3D machining shape is changed so that the length of the portion to be chamfered becomes the length set in the “chamfering” item is displayed. .
  • the display screen control unit 11 displays the tool trajectory on the shape display screen 202.
  • the display object indicating the tool trajectory is generated by the 2D shape generation unit 12.
  • FIG. 41 is a flowchart for explaining the operation of the 2D shape generation unit 12.
  • the 2D shape generation unit 12 acquires the initial value of the dimension that defines the shape of the set line type (step S801).
  • the initial value of the dimension is set in advance for each line type, for example.
  • the 2D shape generation unit 12 generates a wire shape indicating a trajectory based on the acquired initial value of the dimension (step S802).
  • the attribute processing unit 10 generates dimension data having position information based on the wire shape generated by the 2D shape generation unit 12.
  • the display screen control unit 11 displays the wire shape generated by the 2D shape generation unit 12 on the shape display screen 202 together with the dimension data.
  • FIG. 42 is a diagram showing the display screen 200 when “Line” is set in the “Shape” item when a turning unit is newly created.
  • the “line” is set in the “shape” item in a state where the turning instruction data and the tool instruction data are already set.
  • FIG. 43 is a diagram showing the display screen 200 when “straight line” is set in the “shape” item when a line center machining unit is newly created.
  • “Line” is set in the “Shape” item in a state where the line processing instruction data and the tool instruction data are already set.
  • a linear wire shape having initial lengths in the + X axis direction and the + Y axis direction from the workpiece coordinate origin is displayed on the shape display screen 202.
  • start point-X item, “start point-Z” item, “end point-X” item, and “end point-Z” item are not set, “D ***”, “ “***” is displayed.
  • the NC program editing device 100 has position information in the three-dimensional virtual space based on the dimension data described for each processing unit constituting the NC program.
  • a 3D machining shape generation unit 7 that generates a 3D machining shape
  • an attribute processing unit 10 that extracts dimension data from the NC program and sets three-dimensional position information corresponding to the corresponding 3D machining shape in the extracted dimension data.
  • the display screen control unit 11 displays the extracted dimension data at a position corresponding to the position information set in the dimension data on the shape display screen 202.
  • the NC program editing device 100 displays the machining shape for each machining unit in a three-dimensional manner and dimensions at corresponding positions on the three-dimensionally displayed machining shape. Since the information or the position information can be displayed, the operator can easily check the NC program.
  • the display screen control unit 11 When the display screen control unit 11 receives an input for selecting arbitrary text information being displayed on the shape display screen 202 via the shape display screen 202, the display screen control unit 11 includes the NC program being displayed on the program display screen 201. The cursor is moved to a location where the dimension data described in the selected text information is described. As a result, the number of inputs by the operator when the operator edits the NC program can be reduced.
  • the display screen control unit 11 when the display screen control unit 11 receives an input for selecting an arbitrary item on the program display screen 201, the display screen control unit 11 displays text information corresponding to the selected item among the text information being displayed on the shape display screen 202. Highlight. As a result, the operator can easily understand the edited portion.
  • the display screen controller 11 can display only one of the pieces of text information that are overlapped. Thereby, the visibility of dimension data can be improved.
  • the priority is set in advance for each item, and the display screen control unit 11 is configured to display the text information related to the item with the highest priority among the text information that overlaps the display. Also good.
  • the attribute processing unit 10 generates work coordinate information that describes the work coordinate origin and the orientation of each axis included in the work coordinate system for each machining shape, and the display screen control unit 11 performs coordinate object processing based on the work coordinate information. Is displayed on the shape display screen 202. This can help the operator understand the workpiece coordinate system.
  • the display screen control unit 11 displays the shape of the tool trajectory using an arrow from the start point to the end point. As a result, the operator can easily understand the distinction between the start point and the end point.
  • the attribute processing unit 10 associates position information of a predetermined initial value with the non-set dimension data
  • the display screen control unit 11 associates the non-set dimension data with the non-set dimension data. It is displayed in a state indicating that it is not set at a position corresponding to the position information of the initial value associated with the unset dimension data.
  • the CAD data input unit 9 inputs CAD data
  • the display screen control unit 11 displays the CAD data, the 3D machining shape, and the dimension data in an overlapping manner.
  • the operator can edit the program while comparing the CAD data with the NC program, and can easily check the program.
  • the numerical control program editing apparatus As described above, the numerical control program editing apparatus, the numerical control program editing method, and the program according to the present invention are a numerical control program editing apparatus and numerical control program editing for editing an NC program for numerically controlling a machine tool. It is suitable for application to methods and programs.
  • 1 dialogue operation processing unit 2 display unit, 3 instruction input unit, 4 program editing unit, 5 program input unit, 6 program storage unit, 7 3D machining shape generation unit, 8 3D finished shape generation unit, 9 CAD data input unit, 10 attribute processing unit, 11 display screen control unit, 12 2D shape generation unit, 13 program output unit, 20, 40 NC program, 30 CAD data, 100 NC program editing device, 200 display screen, 201 program display screen, 202 shape display Screen, 300-304, 400 shape, 501-508, 510-514 text information, 509 arrow, 515 coordinate object, 600 mouse cursor, 601 display area.

Landscapes

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

Abstract

NCプログラム編集装置(100)は、NCプログラムを構成する加工単位毎に記載された属性情報に基づいて、3次元の仮想空間における位置情報を有する3次元の加工形状を加工単位毎に生成する3D加工形状生成部(7)と、前記属性情報を前記NCプログラムから抽出するとともに、対応する加工形状に応じた3次元の位置情報を前記抽出した属性情報に対応付ける属性処理部(10)と、前記NCプログラムをプログラム表示画面に、前記加工 形状の投影図を当該加工形状が有する位置情報に応じて形状表示画面に、夫々表示するとともに、前記NCプログラムを編集する入力を前記プログラム表示画面を介して受け付けたとき、前記入力された内容を前記NCプログラムに反映させる表示画面制御部(11)と、を備え、前記表示画面制御部(11)は、前記属性情報を前記形状表示画面のうちの当該属性情報に対応付けられた位置情報に応じた位置に表示する。

Description

数値制御プログラム編集装置、数値制御プログラム編集方法およびプログラム
 本発明は、工作機械を数値制御するための数値制御プログラム(Numerical Control machining Program:NCプログラム)の編集を行うための数値制御(NC)プログラム編集装置、数値制御プログラム編集方法およびプログラムに関する。
 近年、オペレータが製作図面を見ながら加工対象物の座標値を設定する入力を行うだけでNCプログラムを作成できるNCプログラム作成装置がある。また、CADシステムを用いてモデリングされたCADデータを直接読み込んでNCプログラムを作成できNCプログラム作成装置も登場している。
 ところで、NCプログラム作成装置に加工形状の定義をオペレータがマウスまたはキーボードなどの入力装置を用いて入力してNCプログラムを作成せしめる場合、オペレータは、データの入力ミスが無いか確認する必要がある。
 例えば特許文献1に記載の数値制御装置は、入力装置から加工形状の定義を入力した時に定義形状をオペレータに確認せしめるための描画手段を備え、加工形状が定義された際の基準点の座標を記憶し、各端点の座標と記憶した座標を比較することで形状の寸法を形状の描画に加えて表示する寸法表示手段を備える。
 また、特許文献2に記載の加工データ編集装置は、位置指定手段により加工形状の所定の位置が指定されると、加工データ検出手段が指定位置に対応する加工データを検出し、編集制御手段が検出した加工データを表示手段に表示させるとともに、加工データ編集手段による編集を可能にする。
 また、特許文献3に記載の数値制御装置は、表示装置に工具の軌跡とともに任意の座標軸情報を生成して表示することにより、オペレータが前記工具の軌跡の正確な通過点の座標値を確認できるようにする。
特開平3-201010号公報 特開平1-307805号公報 特開平4-307605号公報
 しかしながら、上記従来の技術によれば、何れの装置も3次元の形状の奥行き方向の寸法または座標を表示できないため、オペレータがNCプログラムの確認を行うことが簡単でないという問題があった。
 本発明は、上記に鑑みてなされたものであって、オペレータがNCプログラムの確認を簡単に行うことができるNCプログラム編集装置、数値制御プログラム編集方法およびプログラムを得ることを目的とする。
 上述した課題を解決し、目的を達成するために、本発明は、NCプログラムを構成する加工単位毎に記載された寸法情報または位置情報である属性情報に基づいて、3次元の仮想空間における位置情報を有する3次元の加工形状を加工単位毎に生成する加工形状生成部と、前記属性情報を前記NCプログラムから抽出するとともに、対応する加工形状に応じた3次元の位置情報を前記抽出した属性情報に対応付ける属性処理部と、前記NCプログラムをプログラム表示画面に、前記加工形状が有する位置情報に応じて前記仮想空間に配置した当該加工形状を斜投影した投影図を形状表示画面に、夫々表示するとともに、前記NCプログラムを編集する入力を前記プログラム表示画面を介して受け付けたとき、前記入力された内容を前記NCプログラムに反映させる表示画面制御部と、を備え、前記表示画面制御部は、前記抽出された属性情報を前記形状表示画面のうちの当該属性情報に対応付けられた位置情報に応じた位置に表示する、ことを特徴とする。
 本発明にかかるNCプログラム編集装置、数値制御プログラム編集方法およびプログラムは、加工形状を立体的に表示するとともに当該立体的に表示された加工形状上の対応する位置に寸法情報または位置情報を表示することができるので、オペレータがNCプログラムの確認を簡単に行うことができるようになるという効果を奏する。
図1は、本発明の実施の形態に係るNCプログラム編集装置の構成を示すブロック図である。 図2は、表示画面制御部が生成する表示画面の一例を示す図である。 図3は、NCプログラムの構成例を示す図である。 図4は、NCプログラムの構成例を示す図である。 図5は、NCプログラムの構成例を示す図である。 図6は、実施の形態に係るNCプログラム編集装置の動作を説明するフローチャートである。 図7は、3D加工形状生成部が穴加工単位の3D加工形状を生成する処理手順を説明するフローチャートである。 図8は、穴加工単位の3D加工形状の一例を示す図である。 図9は、3D加工形状生成部が線加工単位の3D加工形状を生成する処理手順を説明するフローチャートである。 図10は、線加工単位の3D加工形状の一例を示す図である。 図11は、3D加工形状生成部が面加工単位の3D加工形状を生成する処理手順を説明するフローチャートである。 図12は、面加工単位の3D加工形状の一例を示す図である。 図13は、3D加工形状生成部が旋削加工単位の3D加工形状を生成する処理手順を説明するフローチャートである。 図14は、単位番号#3の旋削加工単位によって定義される3D加工形状を示す図である。 図15は、3D仕上がり形状生成部が素材形状を生成する処理手順を説明するフローチャートである。 図16は、素材形状の一例を示す図である。 図17は、穴加工単位の3D加工形状の位置の表示例を示す図である。 図18は、穴加工単位の3D加工形状の寸法の表示例を示す図である。 図19は、素材形状の寸法の表示例を示す図である。 図20は、旋削加工単位の3D加工形状の寸法の表示例を示す図である。 図21は、線加工単位の3D加工形状の寸法の表示例を示す図である。 図22は、面加工単位の3D加工形状の寸法の表示例を示す図である。 図23は、旋削加工指示データが選択された状態の表示例を示す図である。 図24は、旋削加工指示データのうちの「切込-X」項目が選択された状態の表示例を示す図である。 図25は、軌跡の要素の1つが選択された状態の表示例を示す図である。 図26は、軌跡の要素を設定する項目のうちの「半径R」項目が選択された状態の表示例を示す図である。 図27は、単位番号#7の面加工単位が選択された場合の座標オブジェクトの表示例を示す図である。 図28は、線加工単位の3D加工形状の寸法の別の表示例を示す図である。 図29は、「深さ」項目、「取代-Z」項目および「取代-R」項目の夫々の優先度が「始点座標」項目および「終点座標」項目の優先度よりも低く設定されている場合の線加工単位の3D加工形状の寸法の表示例を示す図である。 図30は、オペレータが形状表示画面上に表示されているテキスト情報を選択した際の表示画面制御部の動作を説明するフローチャートである。 図31は、テキスト情報が選択された場合の表示例を示す図である。 図32は、全ての項目が未設定となっている状態の素材加工単位を表示する形状表示画面の表示例を示す図である。 図33は、図32の状態から「素材外径」項目が設定された場合における形状表示画面の表示例を示す図である。 図34は、図33の状態から「素材内径」項目が設定された場合における形状表示画面の表示例を示す図である。 図35は、図34の状態から「素材長さ」項目が設定された場合における形状表示画面の表示例を示す図である。 図36は、図35の状態から「素材端面長さ」項目が設定された場合における形状表示画面の表示例を示す図である。 図37は、全ての項目が未設定となっている状態のドリル加工単位を表示する形状表示画面の表示例を示す図である。 図38は、図37の状態から「穴径」項目が設定された場合における形状表示画面の表示例を示す図である。 図39は、図38の状態から「穴深さ」項目が設定された場合における形状表示画面の表示例を示す図である。 図40は、図39の状態から「面取」項目が設定された場合における形状表示画面の表示例を示す図である。 図41は、2D形状生成部の動作を説明するフローチャートである。 図42は、旋削加工単位が新規作成される際に「線」が「形状」項目に設定された場合における表示画面を示す図である。 図43は、線中心加工単位が新規作成される際に、「直線」が「形状」項目に設定された場合における表示画面を示す図である。
 以下に、本発明にかかるNCプログラム編集装置、数値制御プログラム編集方法およびプログラムの実施の形態を図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。
実施の形態.
 図1は、本発明に実施の形態に係るNCプログラム編集装置の構成を示すブロック図である。NCプログラム編集装置100は、NCプログラムを編集するための装置である。NCプログラムは、数値制御装置を制御するプログラムである。数値制御装置は、NCプログラムに基づいて工作機械を動作させることによって、加工対象物である素材(加工前の被加工物)を加工し、加工仕上がり形状を有した製品(加工後の被加工物)を形成する。
 NCプログラム編集装置100は、対話操作処理部1、表示部2、指示入力部3およびプログラム編集部4を備えている。対話操作処理部1は、表示部2、指示入力部3およびプログラム編集部4に接続されている。プログラム編集部4は、プログラム入力部5、プログラム記憶部6、3D加工形状生成部(加工形状生成部)7、3D仕上がり形状生成部(仕上がり形状生成部)8、CADデータ入力部9、属性処理部10、表示画面制御部11、2D形状生成部12およびプログラム出力部13を備える。
 NCプログラム編集装置100が備える機能構成要素のうち、対話操作処理部1、プログラム入力部5、プログラム記憶部6、3D加工形状生成部7、3D仕上がり形状生成部8、CADデータ入力部9、属性処理部10、表示画面制御部11、2D形状生成部12およびプログラム出力部13のうちの一部または全部は、ソフトウェア、ハードウェア、または両者の組合せによって実現される。プログラム記憶部6は、メモリまたはレジスタによって構成される。ソフトウェアによって実現されるとは、記憶装置および演算装置を備えたコンピュータにおいて、記憶装置が予め所定のプログラムを記憶し、演算装置が記憶装置が記憶する所定のプログラムを実行することによって該当の機能構成要素として機能することをいう。機能構成要素をハードウェアで実現するかソフトウェアで実現するかは、具体的な実施態様、或いは装置全体に課される設計制約に依存する。なお、機能構成要素を実現するプログラムのロード元の記録媒体は、コンピュータが備える記憶装置のほか、一時的でない有形の媒体であればどのような媒体であっても適用可能である。例えば、記録媒体としてCD-ROM、DVD-ROM、外部記憶装置または着脱可能なメモリデバイスが適用可能である。
 なお、NCプログラム編集装置100は、単一またはネットワークで接続された複数のコンピュータによって実現されてもよい。また、NCプログラム編集装置100は、任意の装置の制御コンピュータを用いて実現されてもよい。例えば、NCプログラム編集装置100は、数値制御装置の制御コンピュータ上で実現されてもよい。また、NCプログラム編集装置100は、定義形状またはCADデータに基づいてNCプログラムを自動生成するNCプログラム作成装置として機能するコンピュータ上で実現されてもよい。
 表示部2は、表示画面を表示するための装置であって、例えば液晶モニタである。指示入力部3は、マウスおよびキーボードを備えて構成され、オペレータからの操作情報などの入力を受け付ける。指示入力部3を介して入力された操作情報は、対話操作処理部1へ送られる。
 対話操作処理部1は、GUI環境を提供する。即ち、例えば、対話操作処理部1は、プログラム編集部4から送られてきた表示画面を表示部2に表示したり、表示画面上にカーソルが表示されている状態でマウスがクリックされたときにクリックされた箇所のスクリーン座標およびクリックされた旨の通知をプログラム編集部4に送ったりする。
 プログラム入力部5は、外部記憶装置(図示せず)などからNCプログラム20を入力し、NCプログラム20をプログラム記憶部6に格納する。
 3D加工形状生成部7は、プログラム記憶部6に格納されているNCプログラムに基づいて、加工により除去される形状の3次元モデルである3D加工形状を生成する。NCプログラムは、複数の指示データにより構成される。なお、1つまたは同一の複数の加工形状を定義するための、指示データの集合の最小単位を、加工単位という。3D加工形状生成部7は、加工単位毎に3次元の加工形状モデル(以降、3D加工形状)を生成する。なお、3D加工形状生成部7が生成した夫々の3D加工形状は、互いの位置関係がNCプログラムに基づく加工単位毎の加工形状間の位置関係に等しくなるように、3次元の仮想空間における位置情報を有している。3次元の仮想空間における位置情報は、単一の座標系を用いて表現される。3D加工形状の位置情報が準拠する座標系は、どのような座標系であってもよいが、NCプログラムに基づく相対的でない座標系(例えば機械座標系)との間で1対1の対応関係が成立するものとする。なお、NCプログラムの構成については後ほど詳しく説明される。
 3D仕上がり形状生成部8は、プログラム記憶部6に格納されているNCプログラムに基づいて、素材形状の3次元モデル(以降、単に素材形状)を生成する。また、3D仕上がり形状生成部8は、生成した素材形状と、3D加工形状生成部7によって生成された3D加工形状とに基づいて、仕上がり形状の3次元モデルである3D仕上がり形状を生成する。3D仕上がり形状生成部8によって生成される素材形状および3D仕上がり形状は、3D加工形状と同様に、仮想空間における位置情報を有する。即ち、素材形状および3D仕上がり形状の位置情報が準拠する座標系は、3D加工形状の位置情報が準拠する座標系と等しい。以降、3D加工形状、3D仕上がり形状および素材形状を総称して3D形状という場合がある。
 CADデータ入力部9は、CADシステム(図示せず)または外部記憶装置(図示せず)からCADデータ30を入力し、NCプログラムに基づく座標系に配置する。CADデータ30は、例えば、製品に関する情報、素材に関する情報、素材から製品を形成する際に用いられる加工指示に関する情報などを含んで構成されている。CADデータ30内の製品に関する情報には、例えば、製品の形状データなどがある。製品の形状データ(以下、製品形状データという)は、例えば、CADシステムなどを用いて生成されたものであり、製品の形状および寸法を示す情報を有している。
 属性処理部10は、プログラム記憶部6に格納されているNCプログラムに加工単位毎に記載された属性情報である寸法データを抽出する。そして、属性処理部10は、3D形状に寸法データを配置する。言い換えると、属性処理部10は、抽出した寸法データに、対応する3D加工形状に応じた位置情報を対応付ける。ここで、寸法データとは、3D形状を定義する寸法情報、位置情報またはその両方を含む。寸法データは、例えば、3D形状の長さ情報、3D形状間の距離情報、または3D形状が位置する座標値情報などが該当する。
 表示画面制御部11は、表示部2に表示する表示画面を生成したり、オペレータによって表示画面を介して入力された操作情報を解釈したりする。
 図2は、表示画面制御部11が生成する表示画面の一例を示す図である。図示するように、表示画面200は、プログラム表示画面201と形状表示画面202とを備えている。表示画面制御部11は、プログラム表示画面201に、NCプログラムの一部または全部を表示する。また、表示画面制御部11は、形状表示画面202に、寸法データが配置された3D形状を立体的に表示する。具体的には、表示画面制御部11は、形状表示画面202に表示する画像を次のようにして生成する。表示画面制御部11は、3D形状を3次元の仮想空間上に夫々が備える位置情報が示す位置に配置して、配置した3D形状を予め定められた視点から2次元平面に斜投影する。表示画面制御部11は、2次元平面上に斜投影して生成された投影図を形状表示画面202に表示する。なお、投影の視点はオペレータによって所望のように設定されてもよい。また、夫々の3D形状には、寸法データが表示される。寸法データの表示位置は、その寸法データに与えられた位置情報に基づく。
 形状表示画面202は、表示中の寸法データを指定する入力を受け付けることができる。表示中の寸法データを指定する入力とは、例えば、表示中の寸法データがクリックされることである。具体的には、形状表示画面202に表示されている寸法データにマウスカーソルが置かれた状態でマウスがクリックされたとき、対話操作処理部1は、クリックされたスクリーン座標を表示画面制御部11に送る。表示画面制御部11は、スクリーン座標に基づいて、指定された寸法データを特定する。そして、表示画面制御部11は、NCプログラムにおける、特定した寸法データが記載された部位を探し出して、探し出した部位をプログラム表示画面201に強調表示する。
 2D形状生成部12は、工具の軌跡の設定を必要とする加工形状が新規作成された際に、工具の軌跡の初期値を示す軌跡形状を生成する。生成された軌跡形状は、仮想空間における位置情報を有する。生成された軌跡形状は、表示画面制御部11に送られる。
 プログラム出力部13は、プログラム記憶部6に格納されているNCプログラム(NCプログラム40)を外部に出力する。オペレータは、NCプログラムの編集が完了した後に、NCプログラムを出力する指示(出力指示)を指示入力部3に入力することができる。対話操作処理部1は、出力指示を検知すると、当該出力指示をプログラム編集部4に送る。プログラム出力部13は、出力指示を受信すると、プログラム記憶部6に格納されているNCプログラムを外部に出力する。
 続いて、NCプログラムの構成について説明する。図3、図4および図5は、NCプログラムの構成例を示す図である。なお、図3~5は、夫々、同一のNCプログラムが分割された部分プログラムを示している。
 図3~図5に示すNCプログラムにおいて、単位番号とは、加工単位に対して振られる識別番号である。なお、ここでは、便宜的に、素材形状、基本座標、および、加工面角度などを設定する指示データも、夫々加工単位として扱われることとしている。
 単位番号#0の加工単位は、素材形状を設定する指示データからなる加工単位(素材加工単位)である。素材加工単位は、素材形状および素材材質を夫々設定する属性(項目)を備えている。ここでは、加工対象の素材の形状は円筒であることを前提としている。「素材材質」項目は、加工する素材の材質を設定する項目である。「素材外径」項目は、素材の最大外径(素材外径)を設定する項目である。「素材内径」項目は、素材の最小内径(素材内径)を設定する項目である。「素材長さ」項目は、素材形状の軸方向の長さを設定する項目である。「素材端面長さ」項目は、ワーク原点からの-Z軸方向の素材突き出し部の長さ(素材長さ)を設定する項目である。「回転数」項目は、旋削加工の際の主軸回転数の最大回転数を設定する項目である。なお、ワーク座標系のZ軸は旋削回転軸であって、旋削加工の場合には+Z軸方向に加工するものとしている。
 単位番号#1の加工単位は、ワーク原点位置(基本座標)を設定する指示データからなる加工単位(基本座標加工単位)である。基本座標加工単位は、機械原点とワーク原点までの距離と方向とを設定する複数の項目を備えている。例えば、「X」項目は、X軸方向における、機械原点からワーク原点までの座標値を設定する項目である。「Y」項目は、Y軸方向における、機械原点からワーク原点までの座標値を設定する項目である。「Z」項目は、Z軸方向における、機械原点からワーク原点までの座標値を設定する項目である。「θ」項目は、機械座標系とワーク座標系とがなす角度を設定する項目である。「C」項目は、機械座標系とワーク座標系とがなす角度のうちの旋削回転軸を中心とした成分を設定する項目である。
 単位番号#2の加工単位および単位番号#15の加工単位は、加工面の角度を設定する指示データからなる加工単位(加工面角度加工単位)である。加工面角度加工単位は、加工面の角度を設定する複数の項目を備えている。「角度B」項目は、ミル軸ヘッドを割り出す角度を設定する項目である。「角度C」項目は、旋削軸であるC軸を割り出す角度を設定する項目である。
 単位番号#3の加工単位は、素材端面の突き出す部を削り落とす加工を指令する加工単位(端面加工単位)である。端面加工単位は、削り落とす部分を設定する端面加工指示データと、工具および工具にかかる条件を設定する工具指示データと、端面加工によって加工される形状を設定する形状指示データとを備える。端面加工指示データは、加工位置を設定する項目である「加工部」項目と、夫々切込点の座標値を設定する項目である「切込-X」項目および「切込-Z」項目とを備える。なお、「加工部」項目には、-Z側の端面が加工される場合には正面が設定され、+Z側の端面が加工される場合には背面が設定される。工具指示データは、端面加工単位で使用される工具が設定される際に割り当てられる識別番号が格納される「工具番号」項目と、工具を設定する「工具」項目、「呼び」項目、「周速」項目および「送り」項目とを備えている。形状指示データは、端面加工によって加工される形状を定義する要素毎に割り当てられる識別番号が格納される「形状番号」項目と、端面加工によって加工される形状を定義する要素を設定する「形状」項目および具体的な数値を設定する項目とを備える。端面加工によって加工される形状を定義する要素とは、具体的には、加工面を定義するワイヤ形状を構成する1以上の要素をいう。「形状」項目には、「線」または「円弧」など、線種が設定される。具体的な数値を設定する項目は、例えば、「始点座標」項目、「終点座標」項目および「半径R」項目を含む。「形状」項目に「線」が設定される場合には、「始点座標」項目および「終点座標」項目が使用される。なお、端面加工の座標値はXZ平面を用いて設定される。「形状」項目に「円弧」が設定される場合には、さらに、円弧の半径を設定する項目である「半径R」項目が使用される。
 単位番号#4の加工単位は、一般旋削工具を用いて丸棒の外周、内周、正面または背面を旋削する加工(旋削加工)を指令する加工単位(旋削加工単位)である。旋削加工単位は、一般旋削する部分を設定する旋削加工指示データと、工具および工具にかかる条件を設定する工具指示データと、旋削工具によって加工する形状を設定する形状指示データとを備える。旋削加工指示データは、加工位置を設定する項目である「加工部」項目と、夫々切込点の座標値を設定する項目である「切込-X」項目および「切込-Z」項目とを備える。なお、「加工部」項目には、外周が加工される場合には「外径」が設定され、内周が加工される場合には「内径」が設定され、正面が加工される場合には「正面」が設定され、背面が加工される場合には「背面」が設定される。工具指示データは、旋削加工単位で使用される工具が設定される際に割り当てられる識別番号が格納される「工具番号」項目と、「工具」項目、「呼び」項目、「周速」項目、および、「送り」項目とを備える。形状指示データは、旋削加工によって加工される形状を定義する要素毎に割り当てられる識別番号が格納される「形状番号」項目と、旋削加工によって加工される形状を定義する要素を設定する「形状」項目および具体的な数値を設定する項目とを備える。旋削加工によって加工される形状を定義する要素とは、具体的には、工具の軌跡を構成する1以上の要素をいう。「形状」項目には、「線」または「円弧」など、線種が設定される。具体的な数値を設定する項目は、端面加工単位にて説明した項目と同様である。
 単位番号#6の加工単位、単位番号#9の加工単位、および、単位番号#16の加工単位は、ワーク原点位置の移動を指令する加工単位(基本座標移動加工単位)である。基本座標移動加工単位は、基本座標加工単位によって設定されたワーク原点位置からのX軸方向の移動量が設定される項目である「移動X」項目、基本座標加工単位によって設定されたワーク原点位置からのY軸方向の移動量を設定する項目である「移動Y」項目、基本座標加工単位によって設定されたワーク原点位置からのZ軸方向の移動量を設定する項目である「移動Z」項目、C軸の、基本座標加工単位によって設定された角度からの旋回角度を設定する項目である「移動C」、および、加工面が割り出された後のXY平面におけるワーク座標系を回転させる角度を設定する項目である「回転θ」項目を備える。
 単位番号#7の加工単位は、フェイスミルを用いて素材の表面を平らにする加工(表面加工)を指令する加工単位(面加工単位)である。面加工単位は、表面加工によって加工される深さを設定する面加工指示データと、工具および工具にかかる条件を設定する工具指示データと、表面加工によって加工される領域の形状を設定する形状指示データとを備える。面加工指示データは、ワーク原点から加工仕上がり面までのZ軸方向の距離を設定する項目である「深さ」項目、取代の長さであってワーク座標系におけるZ軸方向の長さを設定する項目である「取代-Z」項目、および、仕上げ加工を行う場合の仕上げ加工代の長さであってワーク座標系におけるZ軸方向の長さを設定する項目である「仕上代-Z」項目を備える。工具指示データは、面加工単位で使用される工具が設定される際に割り当てられる識別番号が格納される「工具番号」項目と、「工具」項目、「呼び」項目、「周速」項目、および、「送り」項目などと、を備える。形状指示データは、表面加工によって加工される領域の形状を定義する要素毎に割り当てられる識別番号が格納される「形状番号」項目と、表面加工によって加工される領域の形状を定義する要素を設定する項目である「形状」項目および具体的な数値を設定する項目とを備える。表面加工によって加工される領域の形状を定義する要素とは、当該領域の境界を構成する1以上の要素をいう。「形状」項目には、「直線」または「円弧」など、線種が設定される。具体的な数値を設定する項目は、例えば、「始点座標」項目、「終点座標」項目および「半径R」項目を含む。「形状」項目に「直線」が設定される場合には、「始点座標」項目および「終点座標」項目が使用される。「形状」項目に「円弧」が設定される場合には、さらに、円弧の半径を設定する項目である「半径R」項目が使用される。
 単位番号#10の加工単位、単位番号#12の加工単位および単位番号#14の加工単位は、工具の中心を当該加工単位において設定される軌跡に沿って移動せしめる加工(線中心加工)を指令する加工単位(線中心加工単位)である。線中心加工単位は、線中心加工によって加工される深さなどを設定する線加工指示データと、工具および工具にかかる条件を設定する工具指示データと、線中心加工によって工具の中心を移動せしめる軌跡の形状を指定する形状指示データとを備える。線加工指示データは、ワーク原点から加工仕上がり面までのZ軸方向の距離を設定する項目である「深さ」項目、取代の長さであってワーク座標系におけるZ軸方向の長さ(軸方向取代)を設定する項目である「取代-Z」項目、取代の長さであってワーク座標系におけるXY平面上の長さ(径方向取代)を設定する項目である「取代-R」項目、および、仕上げ加工を行う場合の仕上げ加工代の長さであってワーク座標系におけるZ軸方向の長さを設定する項目である「仕上代-Z」項目を備える。工具指示データは、線中心加工単位で使用される工具が設定される際に割り当てられる識別番号が格納される「工具番号」項目と、「工具」項目、「呼び」項目、「周速」項目、および、「送り」項目などと、を備える。形状指示データは、工具の軌跡の形状を定義する要素毎に割り当てられる識別番号が格納される「形状番号」項目と、工具の軌跡の形状を定義する要素を設定する項目である「形状」項目および具体的な数値を設定する項目とを備える。「形状」項目には、「直線」または「円弧」など、線種が設定される。具体的な数値を設定する項目は、面加工単位にて説明した項目と同様である。
 なお、線中心加工は、線状の軌跡に沿って工具を移動せしめる加工(線加工)のうちの1つである。線加工は、線中心加工のほかに、工具の左端(工具の進行方向を正面とする場合の工具の左側)が設定された軌跡に沿うように工具を移動せしめる線右側加工と、工具の右端(工具の進行方向を正面とする場合の工具の右側)が設定された軌跡に沿うように工具を移動せしめる線左側加工と、を含む。線右側加工の加工単位および線左側加工の加工単位が含むデータおよび項目は、夫々線中心加工と同様である。
 単位番号#17の加工単位は、ドリルによる穴あけ加工を指令する加工単位(ドリル加工単位)である。ドリル加工単位は、穴の寸法を設定する穴加工指示データと、工具および工具にかかる条件を設定する工具指示データと、穴あけ加工によって加工される位置を設定する形状指示データとを備える。穴加工指示データは、穴の直径を設定する項目である「穴径」項目、穴の深さを設定する項目である「穴深さ」項目、および、穴の淵を面取り加工する際の面取り加工を実行する長さを設定する項目である「面取」項目を備える。工具指示データは、ドリル加工単位で使用される工具が設定される際に割り当てられる識別番号が格納される「工具番号」項目と、「工具」項目、「呼び」項目、「周速」項目、「送り」項目、「加工穴径」項目および「加工穴深さ」とを備える。形状指示データは、加工位置毎に割り当てられる識別番号が格納される「形状番号」項目、位置の形状の種類を設定する項目である「形状」項目、および、位置を設定する項目である「座標値」項目を備える。「座標値」項目は、XYZ座標を用いて設定される。
 なお、ドリル加工単位は、素材形状に穴をあける加工(穴加工)のうちの1つである。穴加工は、ドリル加工のほかに、リーマ加工またはタップ加工などがある。リーマ加工の加工単位およびタップ加工の加工単位が含むデータおよび項目は、夫々ドリル加工と同様である。
 続いて、NCプログラム編集装置100の動作について説明する。図6は、実施の形態に係るNCプログラム編集装置100の動作を説明するフローチャートである。
 まず、プログラム入力部5は、NCプログラム20の入力を受けつける(ステップS101)。プログラム入力部5は、受け付けたNCプログラム20をプログラム記憶部6に格納する。
 次に、3D加工形状生成部7は、プログラム記憶部6に格納されているNCプログラムに基づいて、加工単位ごとに3D加工形状を生成する(ステップS102)。生成された3D加工形状は、3D仕上がり形状生成部8および表示画面制御部11に送られる。
 次に、3D仕上がり形状生成部8は、プログラム記憶部6に格納されているNCプログラムに基づいて素材形状を生成する(ステップS103)。そして、3D仕上がり形状生成部8は、生成した素材形状から3D加工形状生成部7によって生成された3D加工形状を引き去ることによって、3D仕上がり形状を生成する(ステップS104)。生成された3D仕上がり形状は、表示画面制御部11に送られる。
 次に、属性処理部10は、プログラム記憶部6に保存されているNCプログラムから加工単位ごとに寸法データを抽出し、作成した寸法データに位置情報を対応付ける(ステップS105)。ここで、属性処理部10は、例えば、3D形状(3D加工形状および素材形状)のうちの寸法データが設定された項目を表す部位(またはその近傍)を、その寸法データの位置情報に対応付ける。なお、寸法データに与えられる位置情報は、対応する3D加工形状からの相対位置で表現されてもよい。位置情報が対応付けられた寸法データは、表示画面制御部11に送られる。
 次に、表示画面制御部11は、3D仕上がり形状生成部8が生成した3D仕上がり形状と、3D加工形状生成部7が生成した3D加工形状と、寸法データとを表示する画像データを生成し、生成した画像データを形状表示画面202に表示する(ステップS106)。寸法データの表示位置は、当該寸法データに対応付けられた位置情報に基づく位置である。なお、表示画面制御部11は、オペレータの指示により、3D仕上がり形状の代わりにCADデータ入力部が入力したCADデータ30を形状表示画面202に表示するようにしてもよい。
 ここで、NCプログラム編集装置100は、出力指示およびNCプログラムの編集入力を受け付けることができる。プログラム出力部13は、出力指示が有るか否かを判定する(ステップS107)。出力指示があった場合(ステップS107、Yes)、プログラム出力部13は、プログラム記憶部6に格納されているNCプログラムを外部に出力する(ステップS108)。そして、NCプログラム編集装置100の動作が終了となる。
 出力指示がない場合(ステップS107、No)、表示画面制御部11は、プログラム表示画面201を介したNCプログラムの編集入力が有るか否かを判定する(ステップS109)。NCプログラムの編集入力があった場合(ステップS109、Yes)、表示画面制御部11は、編集入力された内容をプログラム記憶部6に格納されたNCプログラムに反映させ(ステップS110)、ステップS102の処理が再び実行される。NCプログラムの編集入力がない場合(ステップS109、No)、ステップS107の処理が再び実行される。
 続いて、ステップS102の処理を加工の種類毎に説明する。
 図7は、3D加工形状生成部7が穴加工単位の3D加工形状を生成する処理手順を説明するフローチャートである。3D加工形状生成部7は、まず、穴加工指示データにおいて、「穴径」項目に設定された穴径、「穴深さ」項目に設定された穴深さ、および、「面取」項目に設定された面取り量に基づいて、穴加工定義形状を生成する(ステップS201)。
 穴加工定義形状は、例えば、次のようにして生成される。まず、穴径を直径とし、穴深さを軸方向の長さとする円柱のソリッドモデルが生成される。そして、(穴径+面取り量×2)を大径、穴径を小径、面取り量を軸方向の長さとする円錐のソリッドモデルが生成される。そして、円柱のソリッドモデルと円錐のソリッドモデルとが互いに所定の位置関係を保つように配置されるとともに2つのソリッドモデルの和演算が行われることによって、穴加工定義形状が生成される。
 次に、3D加工形状生成部7は、生成した穴加工定義形状を、形状指示データに設定されている座標に配置する(ステップS202)。形状指示データに複数の座標が定義されている場合は、3D加工形状生成部7は、穴加工定義形状を定義されている数だけコピーして、コピーされた穴加工定義形状を夫々の座標に配置する。
 次に、3D加工形状生成部7は、生成した穴加工定義形状を加工面に合わせるように回転せしめる(ステップS203)。ステップS203の処理においては、穴加工単位の前に指令される加工面角度加工単位のうちの最後の加工面角度加工単位により設定された加工面が使用される。以降、着目している加工単位の前に指令される加工面角度加工単位のうちの最後の加工面角度加工単位を、直前の加工面角度加工単位という場合がある。
 次に、3D加工形状生成部7は、回転後の穴加工定義形状を、ワーク原点位置の移動・回転量だけ移動・回転せしめる(ステップS204)。ステップS204の処理においては、穴加工単位の前に指令される基本座標移動加工単位のうちの最後の基本座標移動加工単位により設定された移動・回転量が使用される。以降、着目している加工単位の前に指令される基本座標移動加工単位のうちの最後の基本座標移動加工単位を、直前の基本座標移動加工単位という場合がある。
 以上により、穴加工単位の3D加工形状の生成が完了する。生成された穴加工単位の3D加工形状は、ステップS203およびステップS204の処理によって決定された位置情報が付随する。
 図8は、穴加工単位の3D加工形状の一例を示す図である。破線で示される形状300は、図3~5に示したNCプログラムによる仕上がり加工形状である。また、実線で示される形状301は、単位番号#17の穴加工単位によって設定される3D加工形状である。
 図9は、3D加工形状生成部7が線加工単位の3D加工形状を生成する処理手順を説明するフローチャートである。3D加工形状生成部7は、まず、線加工指示データにおいて「取代-R」項目に設定された径方向取代と、形状指示データに設定された工具の軌跡の形状とに基づいて、線加工定義形状を生成する(ステップS301)。
 線加工定義形状は、例えば次のようにして生成される。まず、線加工形状データに設定された工具の軌跡の形状に基づいてワイヤ形状が生成される。ワイヤ形状の生成手法は、線加工の種類(線右側加工、線左側加工、線中心加工)に応じて異なる。線右側加工が指示されている場合は、工具の軌跡の右側(工具の進行方向を正面に見て右側)に径方向取代の長さ分だけオフセットして得られる形状が算出される。そして、工具の軌跡の形状の端点と当該軌跡からオフセットして得られる形状の端点との間がワイヤで補間されることによって、閉ループ状のワイヤ形状が生成される。線左側加工が指示されている場合は、工具の軌跡の左側(工具の進行方向を正面に見て左側)に径方向取代の長さ分だけオフセットして得られる形状が算出される。そして、工具の軌跡の形状の端点と当該軌跡からオフセットして得られる形状の端点との間がワイヤで補間されることによって、閉ループ状のワイヤ形状が生成される。線中心加工が指示されている場合は、工具の軌跡の左右にそれぞれ径方向取代の長さの半分の長さだけオフセットして得られる形状が夫々算出される。そして、算出された夫々の形状の端点の間がワイヤで補間されることによって、閉ループ状のワイヤ形状が生成される。なお、何れの場合であっても、端点間は径方向取代を直径とする半円状の円弧を用いて補間される。半円状の円弧は、複数の短い直線によって近似的に表現されてもよい。ワイヤ形状が生成された後、生成されたワイヤ形状を境界とする面が線加工定義形状に設定される。
 次に、3D加工形状生成部7は、生成した線加工定義形状を、線加工指示データにおいて「取代-Z」項目に設定された軸方向取代の長さ分だけ押し出すことにより、線加工の3D加工形状を生成する(ステップS302)。
 次に、3D加工形状生成部7は、生成した3D加工形状を加工面に合わせるように回転せしめる(ステップS303)。そして、3D加工形状生成部7は、回転後の3D加工形状をワーク原点位置の移動・回転量だけ移動・回転せしめる(ステップS304)。加工面に合わせた回転およびワーク原点位置の移動・回転量にあわせた移動・回転は、穴加工単位の場合と同様に、直前の加工面角度加工単位および直前の基本座標移動加工単位により夫々設定された値が用いられる。以上により、線加工単位の3D加工形状の生成が完了する。生成された線加工単位の3D加工形状は、ステップS303およびステップS304の処理によって決定された位置情報が付随する。
 図10は、線加工単位の3D加工形状の一例を示す図である。実線で示される形状302は、単位番号#10の線加工単位によって設定される3D加工形状である。
 図11は、3D加工形状生成部7が面加工単位の3D加工形状を生成する処理手順を説明するフローチャートである。3D加工形状生成部7は、まず、面加工形状データに基づいて、加工面を示す面加工定義形状を生成する(ステップS401)。面加工定義形状は、例えば次のように生成される。まず、面加工形状データに基づいて、加工面を示す閉ループ状のワイヤ形状が生成される。ワイヤ形状を境界とする面が面加工定義形状に該当する。
 次に、3D加工形状生成部7は、生成した面加工定義形状を、面加工指示データにおいて「取代-Z」項目に設定されている取代の長さ分だけ押し出すことにより、面加工単位の3D加工形状を生成する(ステップS402)。そして、3D加工形状生成部7は、生成した3D加工形状を加工面に合わせるように回転せしめる(ステップS403)。そして、3D加工形状生成部7は、回転後の3D加工形状をワーク原点位置の移動・回転量だけ移動・回転せしめる(ステップS404)。加工面に合わせた回転およびワーク原点位置の移動・回転量にあわせた移動・回転は、穴加工単位の場合と同様に、直前の加工面角度加工単位および直前の基本座標移動加工単位により夫々設定された値が用いられる。以上により、面加工単位の3D加工形状の生成が完了する。生成された面加工単位の3D加工形状は、ステップS403およびステップS404の処理によって決定された位置情報が付随する。
 図12は、面加工単位の3D加工形状の一例を示す図である。実線で示される形状303は、単位番号#7の面加工単位によって設定される3D加工形状である。
 図13は、3D加工形状生成部7が旋削加工単位の3D加工形状を生成する処理手順を説明するフローチャートである。3D加工形状生成部7は、まず、旋削加工形状データに基づいて旋削加工定義形状を生成する(ステップS501)。旋削加工定義形状は、例えば次のようにして生成される。旋削加工指示データに設定された切込点と、旋削加工形状データに設定された軌跡とを含む、閉ループ状のワイヤ形状を生成する。切込点と軌跡との間はワイヤ形状によって補間される。補間には、例えば素材形状の断面の形状を用いられる。生成されたワイヤ形状が旋削加工定義形状に該当する。切込点および軌跡は位置情報を有するので、ステップS501の処理により生成された旋削加工定義形状は位置情報を有する。
 次に、3D加工形状生成部7は、旋削加工定義形状を旋削中心軸を中心として360度回転押し出しすることにより、旋削加工単位の3D加工形状を生成する(ステップS502)。以上により、面加工単位の3D加工形状の生成が完了する。生成された面加工単位の3D加工形状は、ステップS501の処理によって定まる位置情報が付随する。
 図14は、旋削加工単位の3D加工形状の一例を示す図である。実線で示される形状304は、単位番号#4の旋削加工単位の3D加工形状である。
 このように、3D加工形状生成部7は、加工単位に記載された寸法データに基づいて3D加工形状を生成することができる。
 次に、ステップS103の処理をさらに詳しく説明する。
 図15は、ステップS103の処理、即ち、3D仕上がり形状生成部8が素材形状を生成する処理手順を説明するフローチャートである。3D仕上がり形状生成部8は、まず、素材加工単位において、「素材外径」項目に設定された素材外径、「素材内径」項目に設定された素材内径、および、「素材長さ」項目に設定された素材長さに基づいて、素材定義形状を生成する(ステップS601)。
 素材定義形状は、例えば次のように生成される。素材外径を直径、素材長さを軸方向の長さとする円柱のソリッドモデルが生成される。そして、素材内径を直径、素材長さを軸方向の長さとする円柱のソリッドモデルが生成される。そして、素材外径を直径とする円柱のソリッドモデルから素材内径を直径とする円柱のソリッドモデルを除くための差演算が実行されることによって、素材定義形状が生成される。
 次に、3D仕上がり形状生成部8は、素材定義形状の配置位置を決定する(ステップS602)。具体的には、例えば、Z軸が旋削中心軸であるものとすると、素材定義形状の円柱中心軸とZ軸とが一致するように素材定義形状が配置される。そして、ワーク原点位置からの突き出す部の長さが「素材端面長さ」項目に設定された素材端面長さに一致するように、-Z軸方向に素材定義形状の端面が平行移動せしめられる。以上により、素材形状の生成が完了する。生成された素材形状は、ステップS602の処理によって定まる位置情報が付随する。
 図16は、素材形状の一例を示す図である。実線で示される形状400は、単位番号#0の素材加工単位によって設定される素材形状である。
 続いて、表示画面制御部11によるステップS106の処理において寸法データを表示する処理を詳しく説明する。
 寸法データが座標値を示す場合には、表示画面制御部11は、寸法データをテキスト情報に変換する。そして、表示画面制御部11は、当該寸法データに付された位置情報が示す点を形状表示画面202を構成する2次元平面に投影する。そして、表示画面制御部11は、その点が投影された位置の近傍に、そのテキスト情報を形状表示画面202の2次元平面に表示する。
 図17は、穴加工単位の3D加工形状の位置の表示例を示す図である。形状表示画面202には、形状指示データを構成する項目のひとつである「座標値」項目に設定された、穴の位置を示す座標値が表示されている(テキスト情報501)。なお、テキスト情報501の元となる寸法データは、「座標値」項目に設定された座標値が位置情報として対応付けられる。位置情報が示す位置に点が表示され、その点がテキスト情報501の左隅部に一致するようにテキスト情報501が表示される。
 図18は、穴加工単位の3D加工形状の寸法の表示例を示す図である。形状表示画面202には、「穴径」項目、「穴深さ」項目および「面取」項目の夫々に設定された値と、穴の個数とが表示されている(テキスト情報502)。穴の個数は、形状指示データに設定された加工位置の数に等しい。なお、テキスト情報502の元となる寸法データは、「座標値」項目に設定された座標値が位置情報として対応付けられる。位置情報が示す位置に点が表示され、その点から右斜め上方に引出し線が表示され、その引出し線の先端がテキスト情報502の左隅部に一致するようにテキスト情報502が表示される。
 なお、属性処理部10は、抽出した寸法データの先頭に、抽出元の項目に応じた接頭辞を追加する。ここでは、穴加工単位の「穴径」項目に設定された値には「D」という接頭辞が付され、「穴深さ」項目に設定された値には「H」という接頭辞が付され、「面取」項目に設定された値には「C」という接頭辞が付され、穴の個数を示す値には「-」という接頭辞が付されている。
 また、位置情報が示す点から引出し線を引き出すか否かは任意である。例えば、属性処理部10は、引出し線を用いる指示を寸法データに添付する。引出し線を用いる指示を寸法データに添付するか否かは、例えば項目毎に予め設定される。表示画面制御部11は、引出し線を用いる指示が寸法データに添付されている場合には、引出し線を表示する。
 図19は、素材形状の寸法の表示例を示す図である。形状表示画面202には、「素材外径」項目、「素材内径」項目、「素材長さ」項目および「素材端面長さ」項目の夫々に設定された値が表示されている(テキスト情報503)。素材加工単位の「素材外径」項目に設定された値には「OD」という接頭辞が付され、「素材内径」項目に設定された値には「ID」という接頭辞が付され、「素材長さ」項目に設定された値には「L」という接頭辞が付され、「素材端面長さ」項目に設定された値には「WF」という接頭辞が付されている。テキスト情報503の元となる寸法データは、例えば夫々2つの引出し線の引出し位置を位置情報として有する。2つの引出し位置を始点とする引出し線が夫々表示され、引出し線間に両側矢印の形状の寸法線が表示され、両側矢印の近傍の所定の位置にテキスト情報503が表示される。
 このように、表示画面制御部11は、長さを表示する際には、2つの引出し線と両側矢印とを描画することができる。例えば、属性処理部10は、2つの引出し線と両側矢印とを用いる指示を寸法データに添付する。また、属性処理部10は、引出し線の引出し位置およびテキスト情報503の表示位置を寸法データの位置情報とする。表示画面制御部11は、寸法データに与えられた位置情報と指示とに基づいて、引出し線、両側矢印およびテキスト情報503を表示する。
 図20は、旋削加工単位の3D加工形状の寸法の表示例を示す図である。形状表示画面202には、「切込-X」項目および「切込-Z」項目に設定された切込点の座標値と、「始点座標」項目、「終点座標」項目および「半径R」項目に設定された要素毎の値とが表示されている(テキスト情報504)。旋削加工単位の「切込-X」項目に設定された値には「D」という接頭辞が付され、「半径R」項目に設定された値には「R」という接頭辞が付され、「始点-Z」項目または「終点-Z」項目に設定された値には「L」という接頭辞が付され、「始点-X」項目または「終点-X」項目に設定された値には「D」という接頭辞が付されている。また、形状表示画面202には、始点座標から終点座標に向かう矢印を用いて軌跡の要素が表示されている。
 図21は、線加工単位の3D加工形状の寸法の表示例を示す図である。形状表示画面202には、「深さ」項目、「取代-Z」項目および「取代-R」項目の夫々に設定された値と、「始点座標」項目および「終点座標」項目に設定された要素毎の値とが表示されている(テキスト情報505)。線加工単位の「取代-Z」項目に設定された値には「SrvZ」という接頭辞が付され、「取代-R」項目に設定された値には「SrvR」という接頭辞が付され、「深さ」項目に設定された値には「Dep」という接頭辞が付されている。軌跡の要素が円弧である場合には、「半径R」項目に設定された値が表示される。また、形状表示画面202には、始点座標から終点座標に向かう矢印を用いて軌跡の要素が表示されている。
 図22は、面加工単位の3D加工形状の寸法の表示例を示す図である。形状表示画面202には、「深さ」項目および「取代-Z」項目の夫々に設定された値と、「始点座標」項目および「終点座標」項目に設定された要素毎の値とが表示されている(テキスト情報506)。面加工単位の「深さ」項目に設定された値には「Dep」という接頭辞が付され、「取代-Z」項目に設定された値には「Srv」という接頭辞が付されている。軌跡の要素が円弧である場合には、「半径R」項目に設定された値が表示される。また、形状表示画面202には、始点座標から終点座標に向かう矢印を用いて、加工面を定義する要素の形状が表示されている。
 このように、加工単位が始点座標および終点座標を設定する項目(例えば工具の軌跡を設定する項目)を有する場合には、表示画面制御部11は、始点座標から終点座標に向かう矢印を用いて要素を表示する。例えば、属性処理部10は、軌跡の要素毎の始点座標および終点座標と要素の形状と矢印を表示する指示とを含む矢印表示指示を加工単位に設定された対応する項目に基づいて生成する。表示画面制御部11は、矢印表示指示に基づいて要素の形状を表示する。
 表示画面制御部11は、NCプログラムを編集する入力を、プログラム表示画面201を介して受け付けることができる。具体的には、プログラム表示画面201に表示中のNCプログラムのうちの所望の項目が選択された状態において指示入力部3を介した値の入力を受け付けることができる。表示画面制御部11は、プログラム記憶部6に格納されているNCプログラムのうちの選択された項目の設定値を入力された値で更新することができる。なお、プログラム表示画面201に表示中のNCプログラムのうちの選択可能な単位は項目単位のみに限定されない。ここで、表示画面制御部11は、プログラム表示画面201において項目が選択された状態となっているとき、形状表示画面202において、選択された項目に対応する寸法データまたは3D形状を強調表示することができる。
 図23は、旋削加工指示データが選択された状態の表示例を示す図である。図示するように、「切込-X」項目に設定された値を表示するテキスト情報507と「切込-Z」項目に設定された値を表示するテキスト情報508とが太字で強調されている。
 図24は、旋削加工指示データのうちの「切込-X」項目が選択された状態の表示例を示す図である。図示するように、「切込-X」項目に設定された値を表示するテキスト情報507が太字で強調されている。なお、「切込-Z」項目は選択されていないので、対応するテキスト情報508は強調表示されていない。
 図25は、軌跡の要素の1つが選択された状態の表示例を示す図である。ここでは、円弧の形状の要素が選択されている。図示するように、選択された項目に対応する、円弧の形状の矢印509が太線で強調されている。また、「始点座標」項目を構成する「始点-X」項目に設定された値を表示するテキスト情報510、「始点座標」項目を構成する「始点-Z」項目に設定された値を表示するテキスト情報511、「終点座標」項目を構成する「終点-X」項目に設定された値を表示するテキスト情報512、「終点座標」項目を構成する「終点-Z」項目に設定された値を表示するテキスト情報513、および「半径R」項目に設定された値を表示するテキスト情報514が太字で強調されている。
 図26は、軌跡の要素を設定する項目のうちの「半径R」項目が選択された状態の表示例を示す図である。図示するように、「半径R」項目に設定された値を表示するテキスト情報514が太字で強調されている。選択されていない項目に対応するテキスト情報(テキスト情報510~513)および矢印509は、強調表示されていない。
 なお、強調表示の手法は、太字または太線で表示することだけに限定されない。他の箇所と異なる特定の色を用いて表示したり、点滅表示したりする手法が強調表示の手法として採用可能である。
 また、表示画面制御部11は、プログラム表示画面201に表示中の加工単位が選択されている場合(指示データまたは項目が選択されている場合も含む)には、選択された加工単位の3D形状が準拠するワーク座標系を示す座標オブジェクトを形状表示画面202に表示することができる。例えば、属性処理部10は、選択された加工単位の直前の加工面角度加工単位および直前の基本座標移動加工単位に基づいて、ワーク座標原点の位置情報およびワーク座標を構成する各座標軸の向き情報(ワーク座標情報)を生成する。表示画面制御部11は、属性処理部10が生成したワーク座標系にかかる情報が示す位置に、座標軸の向きが向き情報が示す向きに一致するように座標オブジェクトを表示する。
 図27は、単位番号#7の面加工単位が選択された場合の座標オブジェクトの表示例を示す図である。座標オブジェクト515は、単位番号#7の面加工単位の直前の加工面角度加工単位である単位番号#5の加工単位と、単位番号#7の面加工単位の直前の基本座標移動加工単位である単位番号#6の加工単位とに基づく位置に表示されている。具体的には、座標オブジェクト515は、単位番号#5の加工単位の「角度B」項目の設定値「45」に応じて、+Y軸を中心として半時計周りに45度回転せしめられた向きを向くような様態で、かつ、単位番号#6の加工単位の「移動X」項目の設定値「50」および「移動Z」項目の設定値「-25」に応じて、X軸方向に50だけ移動せしめられるとともにZ軸方向に-25だけ移動せしめられた位置にワーク座標原点が一致するような様態で、座標オブジェクト515が表示されている。
 また、表示画面制御部11は、オペレータからの指示などに基づいて形状表示画面202の縮尺を変更することが可能に構成されてもよい。複数のテキスト情報の表示が重なり合う場合には、表示画面制御部11は、優先度が高い項目にかかるテキスト情報と表示が重なる優先度が低い項目にかかるテキスト情報を表示しないようにしてもよい。優先度は、例えばオペレータにより予め項目毎に設定される。
 図28は、線加工単位の3D加工形状の寸法の別の表示例を示す図である。図示するように、線加工単位の3D加工形状とともに、種々のテキスト情報が互いに重なり合って表示されている。図29は、「深さ」項目、「取代-Z」項目および「取代-R」項目の夫々の優先度が「始点座標」項目および「終点座標」項目の優先度よりも低く設定されている場合の線加工単位の3D加工形状の寸法の表示例を示す図である。図示するように、「始点座標」項目および「終点座標」項目に設定された値が表示され、「深さ」項目、「取代-Z」項目および「取代-R」項目に設定されたテキスト情報が非表示となっている。
 図30は、オペレータが形状表示画面202上に表示されているテキスト情報を選択した際の表示画面制御部11の動作を説明するフローチャートである。オペレータが形状表示画面202上でマウスをクリックすると、クリックされた位置のスクリーン座標が対話操作処理部1によって検知される。表示画面制御部11は、対話操作処理部1によって検知されたスクリーン座標を取得する(ステップS701)。表示画面制御部11は、取得したスクリーン座標が表示中のテキスト情報の表示領域と交差するか否かを判定する(ステップS702)。スクリーン座標がテキスト情報の表示領域と交差しない場合(ステップS702、No)、表示画面制御部11は、スクリーン座標に最も近い位置に表示されたテキスト情報を特定し(ステップS703)、特定したテキスト情報の表示領域とスクリーン座標との距離が所定の距離よりも小さいか否かを判定する(ステップS704)。
 ステップS703の処理により特定したテキスト情報の表示領域とスクリーン座標との距離が所定の距離よりも大きい場合(ステップS704、No)、表示画面制御部11は、処理を終了する。ステップS703の処理により特定したテキスト情報の表示領域とスクリーン座標との距離が所定の距離よりも小さい場合(ステップS704、Yes)、表示画面制御部11は、NCプログラムを構成する項目のうちの、ステップS703の処理により特定したテキスト情報に対応する項目を特定する(ステップS705)。
 スクリーン座標がテキスト情報の表示領域と交差する場合(ステップS702、Yes)、表示画面制御部11は、NCプログラムを構成する項目のうちの、表示領域がスクリーン座標と交差するテキスト情報に対応する項目を特定する(ステップS706)。
 ステップS705またはステップS706の処理の後、表示画面制御部11は、プログラム表示画面201において、ステップS705またはステップS706の処理により特定された項目を表示する部位にカーソルを移動させ(ステップS707)、処理を終了する。
 図31は、テキスト情報が選択された場合の表示例を示す図である。素材形状の寸法のうちの素材長さが表示されている表示領域601の近傍にマウスカーソル600が置かれた状態でマウスがクリックされたことに応じて、素材加工単位に含まれる「素材長さ」項目にカーソルが表示されている。なお、ここでは、強調表示された状態をカーソルが置かれた状態であるものとしている。
 表示画面制御部11は、加工単位を新規作成する編集入力を受け付けることができる。加工単位が新規作成される際の、各項目が設定されるまでの過渡状態においては、未設定である旨を示す「***」が寸法データとして表示される。属性処理部10は、予め定められた初期値の位置情報を寸法データに対応付ける。
 図32は、全ての項目が未設定となっている状態の素材加工単位を表示する形状表示画面202の表示例を示す図である。図示するように、寸法にかかるテキスト情報には「***」が表示されている。この状態においては、素材形状はまだ表示されない。
 図33は、図32の状態から「素材外径」項目が設定された場合における形状表示画面202の表示例を示す図である。「素材外形」項目が設定されると、設定された素材外形を直径とする円板が表示される。
 図34は、図33の状態から「素材内径」項目が設定された場合における形状表示画面202の表示例を示す図である。「素材内径」項目が設定されると、素材外径を直径とする円板から素材内径を直径とする円板が差演算されて得られる円板が表示される。
 図35は、図34の状態から「素材長さ」項目が設定された場合における形状表示画面202の表示例を示す図である。「素材長さ」項目が設定されると、素材外径を直径とする円板から素材内径を直径とする円板が差演算されて得られる円板を、設定された素材長さだけ押し出して得られる形状が表示される。
 図36は、図35の状態から「素材端面長さ」項目が設定された場合における形状表示画面202の表示例を示す図である。「素材端面長さ」項目が設定されると、ワーク原点位置からの突き出す部の長さが素材端面長さに一致するように、図35に示した形状が移動せしめられて表示される。
 図37は、全ての項目が未設定となっている状態のドリル加工単位を表示する形状表示画面202の表示例を示す図である。図示するように、寸法にかかるテキスト情報には「***」が表示されている。この状態においては、初期値を用いて生成された、穴加工単位の3D加工形状が表示されている。
 図38は、図37の状態から「穴径」項目が設定された場合における形状表示画面202の表示例を示す図である。「穴径」項目が設定されると、設定された穴径に応じて穴の直径が変化せしめられた3D加工形状が表示される。
 図39は、図38の状態から「穴深さ」項目が設定された場合における形状表示画面202の表示例を示す図である。「穴深さ」項目が設定されると、設定された穴深さに応じて穴の軸方向の長さが変化せしめられた3D加工形状が表示される。
 図40は、図39の状態から「面取」項目が設定された場合における形状表示画面202の表示例を示す図である。「面取」項目が設定されると、面取り加工を実行する部分の長さが「面取」項目に設定された長さとなるように3D加工形状が変化せしめられた3D加工形状が表示される。
 なお、図32~図40に示す3D形状は、3D加工形状生成部7によって生成される。
 形状指示データに工具の軌跡の設定が必要となるような加工単位が新規作成される際には、表示画面制御部11は、工具の軌跡を形状表示画面202に表示する。工具の軌跡を示す表示オブジェクトは、2D形状生成部12によって生成される。
 図41は、2D形状生成部12の動作を説明するフローチャートである。オペレータが工具の軌跡の要素を定義する線種を「形状」項目に設定すると、2D形状生成部12は、設定された線種の形状を定義する寸法の初期値を取得する(ステップS801)。寸法の初期値は、例えば、線種毎に予め設定される。次に、2D形状生成部12は、取得した寸法の初期値に基づいて、軌跡を示すワイヤ形状を生成する(ステップS802)。なお、属性処理部10は、2D形状生成部12が生成したワイヤ形状に基づいて、位置情報を有する寸法データを生成する。表示画面制御部11は、2D形状生成部12が生成したワイヤ形状を寸法データとともに形状表示画面202に表示する。
 図42は、旋削加工単位が新規作成される際に「線」が「形状」項目に設定された場合における表示画面200を示す図である。ここでは、旋削加工指示データおよび工具指示データが既に設定された状態で、「線」が「形状」項目に設定されている。この場合、「切込-X」項目および「切込-Z」項目に設定された切込み点を始点として当該始点から-X軸方向に初期値分だけ移動した位置を終点とする軌跡を示す矢印と、当該矢印の終点を次の軌跡の始点とし、当該次の軌跡の始点から+Z軸方向に初期値分だけ移動した位置を終点とする軌跡を示す矢印と、からなるワイヤ形状が形状表示画面202に表示されている。また、「始点-X」項目、「始点-Z」項目、「終点-X」項目および「終点-Z」項目は未設定であるため、寸法データのテキスト情報として「D***」、「***」が表示されている。なお、テキスト情報に含まれる接頭辞「D」は、直径であることを意味する。
 図43は、線中心加工単位が新規作成される際に、「直線」が「形状」項目に設定された場合における表示画面200を示す図である。ここでも上記と同様に、線加工指示データおよび工具指示データが既に設定された状態で、「直線」が「形状」項目に設定されている。この場合、ワーク座標原点から+X軸方向および+Y軸方向に対して夫々初期値の長さを有する直線形状のワイヤ形状が、形状表示画面202に表示されている。また、「始点-X」項目、「始点-Z」項目、「終点-X」項目および「終点-Z」項目は未設定であるため、寸法データのテキスト情報として「D***」、「***」が表示されている。
 以上述べたように、本発明の実施の形態によれば、NCプログラム編集装置100は、NCプログラムを構成する加工単位毎に記載された寸法データに基づいて3次元の仮想空間における位置情報を有する3D加工形状を生成する3D加工形状生成部7と、寸法データをNCプログラムから抽出するとともに、対応する3D加工形状に応じた3次元の位置情報を当該抽出した寸法データに設定する属性処理部10と、NCプログラムをプログラム表示画面201に、3D加工形状の投影図を形状表示画面202に夫々表示するとともに、NCプログラムを編集する入力をプログラム表示画面201を介して受け付けたとき、入力された内容を元のNCプログラムに反映させる表示画面制御部11と、を備える。そして、表示画面制御部11は、抽出された寸法データを形状表示画面202のうちの当該寸法データに設定された位置情報に応じた位置に表示する。このように、本発明の実施の形態によれば、NCプログラム編集装置100は、加工単位毎の加工形状を立体的に表示するとともに当該立体的に表示された加工形状上の対応する位置に寸法情報または位置情報を表示することができるので、オペレータがNCプログラムの確認を簡単に行うことができるようになる。
 また、表示画面制御部11は、形状表示画面202に表示中の任意のテキスト情報を選択する入力を形状表示画面202を介して受け付けたとき、プログラム表示画面201に表示中のNCプログラムのうちの前記選択されたテキスト情報に記載された寸法データが記載された箇所にカーソルを移動させる。これにより、オペレータがNCプログラムを編集する際のオペレータによる入力の回数を削減することが可能となる。
 また、表示画面制御部11は、プログラム表示画面201において任意の項目を選択する入力をうけつけたとき、形状表示画面202に表示中のテキスト情報のうちの前記選択された項目に対応するテキスト情報を強調表示する。これにより、オペレータに編集箇所を理解しやすくすることができるようになる。
 また、表示画面制御部11は、形状表示画面202において複数のテキスト情報が重なり合う場合には、表示が重なり合うテキスト情報のうちの1つのみを表示することができる。これにより、寸法データの視認性を向上させることができる。なお、例えば、項目毎に予め優先度が設定され、表示画面制御部11は、表示が重なり合うテキスト情報のうちの最も高い優先度が設定された項目にかかるテキスト情報を表示するように構成されてもよい。
 また、属性処理部10は、加工形状毎にワーク座標原点およびワーク座標系が備える各軸の向きを記述するワーク座標情報を生成し、表示画面制御部11は、ワーク座標情報に基づいて座標オブジェクトを形状表示画面202に表示する。これにより、オペレータによるワーク座標系の理解を助けることができる。
 また、表示画面制御部11は、工具の軌跡の形状を始点から終点に向かう矢印を用いて表示する。これにより、オペレータは始点および終点の区別を理解しやすくなる。
 また、属性処理部10は、抽出した寸法データが未設定の場合、当該未設定の寸法データに所定の初期値の位置情報を対応付け、表示画面制御部11は、未設定の寸法データを当該未設定の寸法データに対応付けられた初期値の位置情報に応じた位置に、未設定である旨を示す様態で表示する。これにより、オペレータは、未設定の項目がどのような項目であるかを簡単に理解できるようになる。
 また、CADデータ入力部9は、CADデータを入力し、表示画面制御部11は、CADデータと3D加工形状と寸法データとを重ねて表示する。これにより、オペレータはCADデータとNCプログラムとを比較しながらプログラム編集でき、プログラムの確認を簡単にできるようになる。
 以上のように、本発明にかかる数値制御プログラム編集装置、数値制御プログラム編集方法およびプログラムは、工作機械を数値制御するためのNCプログラムの編集を行うための数値制御プログラム編集装置、数値制御プログラム編集方法およびプログラムに適用して好適である。
 1 対話操作処理部、2 表示部、3 指示入力部、4 プログラム編集部、5 プログラム入力部、6 プログラム記憶部、7 3D加工形状生成部、8 3D仕上がり形状生成部、9 CADデータ入力部、10 属性処理部、11 表示画面制御部、12 2D形状生成部、13 プログラム出力部、20,40 NCプログラム、30 CADデータ、100 NCプログラム編集装置、200 表示画面、201 プログラム表示画面、202 形状表示画面、300~304,400 形状、501~508,510~514 テキスト情報、509 矢印、515 座標オブジェクト、600 マウスカーソル、601 表示領域。

Claims (11)

  1.  数値制御プログラム(NCプログラム)を構成する加工単位毎に記載された寸法情報または位置情報である属性情報に基づいて、3次元の仮想空間における位置情報を有する3次元の加工形状を加工単位毎に生成する加工形状生成部と、
     前記属性情報を前記NCプログラムから抽出するとともに、対応する加工形状に応じた3次元の位置情報を前記抽出した属性情報に対応付ける属性処理部と、
     前記NCプログラムをプログラム表示画面に、前記加工形状が有する位置情報に応じて前記仮想空間に配置した当該加工形状を斜投影した投影図を形状表示画面に、夫々表示するとともに、前記NCプログラムを編集する入力を前記プログラム表示画面を介して受け付けたとき、前記入力された内容を前記NCプログラムに反映させる表示画面制御部と、
     を備え、
     前記表示画面制御部は、前記抽出された属性情報を前記形状表示画面のうちの当該属性情報に対応付けられた位置情報に応じた位置に表示する、
     ことを特徴とする数値制御プログラム編集装置。
  2.  前記表示画面制御部は、前記形状表示画面において当該形状表示画面に表示中の任意の属性情報を選択する入力を受け付けたとき、前記プログラム表示画面に表示中の前記NCプログラムのうちの前記選択された属性情報の記載箇所にカーソルを移動させる、
     ことを特徴とする請求項1に記載の数値制御プログラム編集装置。
  3.  前記表示画面制御部は、前記プログラム表示画面において当該プログラム表示画面に表示中の任意の属性情報を選択する入力を受け付けたとき、前記形状表示画面に表示中の属性情報のうちの前記選択された属性情報を強調表示する、
     ことを特徴とする請求項1に記載の数値制御プログラム編集装置。
  4.  前記表示画面制御部は、前記形状表示画面において複数の属性情報の表示が重なる場合には、表示が重なり合う属性情報のうちの1つのみを表示する、
     ことを特徴とする請求項1に記載の数値制御プログラム編集装置。
  5.  前記NCプログラムを構成する加工単位は、前記属性情報が記載される項目を複数備え、
     項目毎に予め優先度が設定され、
     前記表示画面制御部は、前記表示が重なり合う属性情報のうちの最も高い優先度が設定された項目にかかる属性情報を表示する、
     ことを特徴とする請求項4に記載の数値制御プログラム編集装置。
  6.  前記属性処理部は、前記NCプログラムに基づいて、加工形状毎にワーク座標原点およびワーク座標系が備える各軸の向きを記述するワーク座標情報を生成し、
     前記表示画面制御部は、前記ワーク座標情報に基づいて前記形状表示画面にワーク座標原点およびワーク座標系が備える各軸の向きを示すワーク座標オブジェクトを表示する、
     ことを特徴とする請求項1に記載の数値制御プログラム編集装置。
  7.  前記NCプログラムを構成する加工単位は、工具の軌跡の始点および終点の位置情報が属性情報として記載される加工単位を含み、
     前記表示画面制御部は、前記形状表示画面に、前記工具の軌跡の形状を前記始点から前記終点に向かう矢印を用いて表示する、
     ことを特徴とする請求項1に記載の数値制御プログラム編集装置。
  8.  前記属性処理部は、前記抽出した属性情報が未設定である場合、当該未設定の属性情報に所定の初期値の位置情報を対応付け、
     前記表示画面制御部は、前記抽出された未設定の属性情報を当該未設定の属性情報に対応付けられた初期値の位置情報に応じた位置に、未設定である旨を示す様態で表示する、
     ことを特徴とする請求項1に記載の数値制御プログラム編集装置。
  9.  前記加工形状に基づいて前記仮想空間における位置情報を有する3次元の仕上がり形状を生成する仕上がり形状生成部をさらに備え、
     前記表示画面制御部は、前記形状表示画面に、前記仕上がり形状が有する位置情報に応じて前記仮想空間に配置した当該仕上がり形状を斜投影した投影図を表示する、
     ことを特徴とする請求項1乃至請求項8の何れか一項に記載の数値制御プログラム編集装置。
  10.  NCプログラムを構成する加工単位毎に記載された寸法情報または位置情報である属性情報に基づいて、コンピュータが、3次元の仮想空間における位置情報を有する3次元の加工形状を加工単位毎に生成するステップと、
     前記コンピュータが、前記属性情報を前記NCプログラムから抽出するとともに、対応する加工形状に応じた3次元の位置情報を前記抽出した属性情報に対応付けるステップと、
     前記コンピュータが、前記NCプログラムをプログラム表示画面に、前記加工形状が有する位置情報に応じて前記仮想空間に配置した当該加工形状を斜投影した投影図を形状表示画面に、夫々表示するステップと、
     前記コンピュータが、前記抽出された属性情報を前記形状表示画面のうちの当該属性情報に対応付けられた位置情報に応じた位置に表示するステップと、
     前記コンピュータが、前記NCプログラムを編集する入力を前記プログラム表示画面を介して受け付けたとき、前記入力された内容を前記NCプログラムに反映させるステップと、
     を備えることを特徴とする数値制御プログラム編集方法。
  11.  コンピュータに、
     NCプログラムを構成する加工単位毎に記載された寸法情報または位置情報である属性情報に基づいて、3次元の仮想空間における位置情報を有する3次元の加工形状を加工単位毎に生成する機能と、
     前記属性情報を前記NCプログラムから抽出するとともに、対応する加工形状に応じた3次元の位置情報を前記抽出した属性情報に対応付ける機能と、
     前記NCプログラムをプログラム表示画面に、前記加工形状が有する位置情報に応じて前記仮想空間に配置した当該加工形状を斜投影した投影図を形状表示画面に、夫々表示する機能と、
     前記抽出された属性情報を前記形状表示画面のうちの当該属性情報に対応付けられた位置情報に応じた位置に表示する機能と、
     前記NCプログラムを編集する入力を前記プログラム表示画面を介して受け付けたとき、前記入力された内容を前記NCプログラムに反映させる機能と、
     を実現させるためのプログラム。
     
PCT/JP2013/061127 2013-04-12 2013-04-12 数値制御プログラム編集装置、数値制御プログラム編集方法およびプログラム WO2014167736A1 (ja)

Priority Applications (4)

Application Number Priority Date Filing Date Title
US14/768,314 US10114364B2 (en) 2013-04-12 2013-04-12 Numerical-control-program editing apparatus, numerical-control-program editing method, and program
CN201380075448.3A CN105103066B (zh) 2013-04-12 2013-04-12 数控程序编辑装置、数控程序编辑方法及程序
PCT/JP2013/061127 WO2014167736A1 (ja) 2013-04-12 2013-04-12 数値制御プログラム編集装置、数値制御プログラム編集方法およびプログラム
JP2015511065A JP5905159B2 (ja) 2013-04-12 2013-04-12 数値制御プログラム編集装置、数値制御プログラム編集方法およびプログラム

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2013/061127 WO2014167736A1 (ja) 2013-04-12 2013-04-12 数値制御プログラム編集装置、数値制御プログラム編集方法およびプログラム

Publications (1)

Publication Number Publication Date
WO2014167736A1 true WO2014167736A1 (ja) 2014-10-16

Family

ID=51689163

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2013/061127 WO2014167736A1 (ja) 2013-04-12 2013-04-12 数値制御プログラム編集装置、数値制御プログラム編集方法およびプログラム

Country Status (4)

Country Link
US (1) US10114364B2 (ja)
JP (1) JP5905159B2 (ja)
CN (1) CN105103066B (ja)
WO (1) WO2014167736A1 (ja)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018045504A (ja) * 2016-09-15 2018-03-22 株式会社 神崎高級工機製作所 Nc加工用データ作成支援装置、作成支援方法、及び作成支援プログラム
JP2019113705A (ja) * 2017-12-22 2019-07-11 株式会社Subaru 画像投影装置
JP2020144420A (ja) * 2019-03-04 2020-09-10 株式会社ディスコ 加工装置および加工管理部材
JP2020198061A (ja) * 2019-05-30 2020-12-10 ファナック株式会社 工作機械制御装置及び工作機械
JP2021028766A (ja) * 2019-08-09 2021-02-25 ファナック株式会社 加工プログラム生成支援装置
JP2021033765A (ja) * 2019-08-27 2021-03-01 ファナック株式会社 加工プログラム生成支援装置
JP6971416B1 (ja) * 2021-03-01 2021-11-24 Dmg森精機株式会社 プログラム編集装置およびプログラム

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3147736B1 (en) * 2014-09-03 2018-12-19 Yamazaki Mazak Corporation Machining program editing assistance device
CN107077123A (zh) * 2014-10-29 2017-08-18 三菱电机株式会社 数控装置、nc加工装置及nc加工方法
JP6392823B2 (ja) 2016-10-18 2018-09-19 ファナック株式会社 情報処理装置
JP6860529B2 (ja) * 2018-07-20 2021-04-14 ファナック株式会社 数値制御装置及びデータ編集方法
JP6878367B2 (ja) * 2018-08-29 2021-05-26 ファナック株式会社 数値制御装置
WO2020079796A1 (ja) * 2018-10-18 2020-04-23 三菱電機株式会社 表示システム、付加製造装置および進捗表示方法
CN113196187B (zh) * 2019-07-23 2024-07-05 山崎马扎克公司 机床、用于机床的输入辅助方法和存储介质
US11347199B2 (en) 2019-11-08 2022-05-31 Fanuc Corporation Program editing device, wire electrical discharge machine and program editing method
CN117506548B (zh) * 2023-12-29 2024-04-16 宁波经纬数控股份有限公司 一种多切割机头切割控制方法及***

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01307805A (ja) * 1988-06-07 1989-12-12 Mitsubishi Electric Corp 加工データ編集装置
JPH03201010A (ja) * 1989-12-28 1991-09-02 Mitsubishi Electric Corp 数値制御装置
JPH04307605A (ja) * 1991-04-04 1992-10-29 Mitsubishi Electric Corp 数値制御装置
JPH10180358A (ja) * 1996-12-20 1998-07-07 Amada Co Ltd 曲げ加工方法及びこの方法を用いた曲げ加工システム
JP2003029810A (ja) * 2001-07-12 2003-01-31 Mitsubishi Heavy Ind Ltd Nc加工システム、3次元cadシステム及びnc加工方法
JP2005044348A (ja) * 2003-07-04 2005-02-17 Mitsubishi Electric Corp 自動プログラミング方法および装置
JP2005309713A (ja) * 2004-04-21 2005-11-04 New Industry Research Organization 工程設計支援システム及び支援方法
WO2009008072A1 (ja) * 2007-07-11 2009-01-15 Mitsubishi Electric Corporation 情報処理装置および情報処理方法
JP2012198887A (ja) * 2011-03-10 2012-10-18 Mitsubishi Electric Corp 自動プログラミング装置および方法

Family Cites Families (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010049953A1 (en) 1996-12-20 2001-12-13 Amada Company Ltd. Apparatus for preparing data for manufacturing products with a pre-determined shape, having a memory storing a bending order information
US6256595B1 (en) 1998-03-04 2001-07-03 Amada Company, Limited Apparatus and method for manually selecting, displaying, and repositioning dimensions of a part model
JP3343682B2 (ja) 1999-06-18 2002-11-11 独立行政法人産業技術総合研究所 ロボット動作教示装置および動作教示方法
US6917842B2 (en) * 2001-02-20 2005-07-12 Canon Kabushiki Kaisha Information processing apparatus and method
EP1233377B1 (en) * 2001-02-20 2007-08-15 Canon Kabushiki Kaisha Information processing apparatus and information processing method
US7119805B2 (en) * 2001-02-20 2006-10-10 Canon Kabushiki Kaisha Three-dimensional CAD attribute information presentation
JP2003196345A (ja) * 2001-12-27 2003-07-11 Hitachi Ltd Nc加工機のデータサービス方法
JP3607259B2 (ja) 2002-04-16 2005-01-05 ヤマザキマザック株式会社 3次元線状加工装置
US20030228560A1 (en) * 2002-06-06 2003-12-11 Bwxt Y-12, Llc Applied instructional system
JP4284491B2 (ja) 2002-07-16 2009-06-24 豊和工業株式会社 ピストン外形の加工データ生成装置
US6907313B2 (en) * 2003-01-17 2005-06-14 Dp Technology Corp. Method and system for computer aided manufacturing
JP2006085306A (ja) 2004-09-15 2006-03-30 Tietech Co Ltd 機器の操作システム
JP5134791B2 (ja) 2006-07-27 2013-01-30 株式会社キーエンス レーザ加工装置
WO2008015737A1 (fr) * 2006-08-01 2008-02-07 Mitsubishi Electric Corporation Dispositif de création de programme et procédé de création de programme
EP2189860B1 (en) * 2007-08-29 2013-12-11 Mitsubishi Electric Corporation Nc program generating device and nc program generating method
JP4920785B2 (ja) * 2008-04-22 2012-04-18 三菱電機株式会社 数値制御方法及びその装置
JP5277021B2 (ja) 2009-02-23 2013-08-28 株式会社Ihi 設計情報表示プログラム及び設計情報表示装置
US20130190918A1 (en) * 2010-07-02 2013-07-25 Mitsubishi Electric Corporation Numerical control programming method, numerical control programming device, program, and numerical control apparatus
CN103189808B (zh) * 2010-11-04 2015-06-24 三菱电机株式会社 数控加工程序生成方法及其装置
JP5020412B1 (ja) * 2011-06-23 2012-09-05 三菱電機株式会社 自動プログラミング装置および制御指令生成方法
CN103635864B (zh) * 2011-06-29 2016-05-25 三菱电机株式会社 加工仿真装置以及方法
GB2542956B (en) * 2011-12-12 2017-08-23 Delcam Ltd Method and system for generating cutting paths
JP6066041B2 (ja) * 2012-07-17 2017-01-25 三菱日立パワーシステムズ株式会社 加工支援装置および加工支援システム
JP6033668B2 (ja) * 2012-12-25 2016-11-30 三菱日立パワーシステムズ株式会社 Cam装置及び製品形状加工方法

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01307805A (ja) * 1988-06-07 1989-12-12 Mitsubishi Electric Corp 加工データ編集装置
JPH03201010A (ja) * 1989-12-28 1991-09-02 Mitsubishi Electric Corp 数値制御装置
JPH04307605A (ja) * 1991-04-04 1992-10-29 Mitsubishi Electric Corp 数値制御装置
JPH10180358A (ja) * 1996-12-20 1998-07-07 Amada Co Ltd 曲げ加工方法及びこの方法を用いた曲げ加工システム
JP2003029810A (ja) * 2001-07-12 2003-01-31 Mitsubishi Heavy Ind Ltd Nc加工システム、3次元cadシステム及びnc加工方法
JP2005044348A (ja) * 2003-07-04 2005-02-17 Mitsubishi Electric Corp 自動プログラミング方法および装置
JP2005309713A (ja) * 2004-04-21 2005-11-04 New Industry Research Organization 工程設計支援システム及び支援方法
WO2009008072A1 (ja) * 2007-07-11 2009-01-15 Mitsubishi Electric Corporation 情報処理装置および情報処理方法
JP2012198887A (ja) * 2011-03-10 2012-10-18 Mitsubishi Electric Corp 自動プログラミング装置および方法

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018045504A (ja) * 2016-09-15 2018-03-22 株式会社 神崎高級工機製作所 Nc加工用データ作成支援装置、作成支援方法、及び作成支援プログラム
JP2019113705A (ja) * 2017-12-22 2019-07-11 株式会社Subaru 画像投影装置
US10812763B2 (en) 2017-12-22 2020-10-20 Subaru Corporation Image projection apparatus
JP7198119B2 (ja) 2019-03-04 2022-12-28 株式会社ディスコ 加工装置
JP2020144420A (ja) * 2019-03-04 2020-09-10 株式会社ディスコ 加工装置および加工管理部材
JP2020198061A (ja) * 2019-05-30 2020-12-10 ファナック株式会社 工作機械制御装置及び工作機械
JP7384584B2 (ja) 2019-05-30 2023-11-21 ファナック株式会社 工作機械制御装置及び工作機械
JP2021028766A (ja) * 2019-08-09 2021-02-25 ファナック株式会社 加工プログラム生成支援装置
JP7324085B2 (ja) 2019-08-09 2023-08-09 ファナック株式会社 加工プログラム生成支援装置
JP2021033765A (ja) * 2019-08-27 2021-03-01 ファナック株式会社 加工プログラム生成支援装置
JP7339069B2 (ja) 2019-08-27 2023-09-05 ファナック株式会社 加工プログラム生成支援装置
JP2022132726A (ja) * 2021-03-01 2022-09-13 Dmg森精機株式会社 プログラム編集装置およびプログラム
WO2022185712A1 (ja) * 2021-03-01 2022-09-09 Dmg森精機株式会社 プログラム編集装置およびプログラム
JP6971416B1 (ja) * 2021-03-01 2021-11-24 Dmg森精機株式会社 プログラム編集装置およびプログラム

Also Published As

Publication number Publication date
JP5905159B2 (ja) 2016-04-20
CN105103066B (zh) 2017-12-15
JPWO2014167736A1 (ja) 2017-02-16
US20160011583A1 (en) 2016-01-14
US10114364B2 (en) 2018-10-30
CN105103066A (zh) 2015-11-25

Similar Documents

Publication Publication Date Title
JP5905159B2 (ja) 数値制御プログラム編集装置、数値制御プログラム編集方法およびプログラム
US11048231B2 (en) Beam tool pathing for 3D compound contours using machining path surfaces to maintain a single solid representation of objects
JP5084836B2 (ja) Ncプログラム生成装置およびncプログラム生成方法
JP5349713B1 (ja) Ncプログラム検索方法、ncプログラム検索装置、ncプログラム作成方法およびncプログラム作成装置
EP3147736B1 (en) Machining program editing assistance device
JP6719790B1 (ja) Cadデータによるマシニングセンタの自動運転装置
JP2020024676A (ja) データベースから選択された方針に基づく機械加工
JP5436731B1 (ja) 数値制御加工プログラム作成装置
JP5436733B1 (ja) 数値制御加工プログラム作成装置
WO2012001746A1 (ja) 数値制御プログラミング方法、数値制御プログラミング装置、プログラム、及び数値制御装置
JP5724833B2 (ja) 自動プログラミング装置および自動プログラミング方法
JP6376558B2 (ja) 加工データ演算装置および加工データ演算プログラム
JP5591576B2 (ja) 切削装置、切削方法、プログラムおよびコンピューター読み取り可能な記録媒体
JPWO2021014571A1 (ja) 工作機械、工作機械のための入力支援方法、及び工作機械のためのプログラム
US20220342381A1 (en) Managing a machine tool method, for example method of mapping toolpath data and machine code, a control device, and a machine tool
JP7290452B2 (ja) 研削プログラム生成装置及び研削プログラム生成方法
JP6219866B2 (ja) 表示機能付き数値制御装置および表示プログラム
JP7285660B2 (ja) 寸法生成装置、寸法生成方法及びプログラム
Mocian et al. Software for computer aided manufacturing with the MORI SEIKI CNC milling machine
JP2006139503A (ja) 工具軌跡生成プログラム及び記録媒体、並びに工具軌跡生成装置及び工具軌跡生成方法
WO2006097983A1 (ja) 数値制御プログラム生成装置及び数値制御プログラム生成方法
WO2004038522A1 (ja) Cadシステム並びにこれを実行するためのプログラム及びこのプログラムを記録した記録媒体

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201380075448.3

Country of ref document: CN

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

Ref document number: 13881992

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2015511065

Country of ref document: JP

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 14768314

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13881992

Country of ref document: EP

Kind code of ref document: A1