JP7842227B2 - Machining program editing device and machining program editing method - Google Patents

Machining program editing device and machining program editing method

Info

Publication number
JP7842227B2
JP7842227B2 JP2024542493A JP2024542493A JP7842227B2 JP 7842227 B2 JP7842227 B2 JP 7842227B2 JP 2024542493 A JP2024542493 A JP 2024542493A JP 2024542493 A JP2024542493 A JP 2024542493A JP 7842227 B2 JP7842227 B2 JP 7842227B2
Authority
JP
Japan
Prior art keywords
machining
data
program
machining program
processing
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
JP2024542493A
Other languages
Japanese (ja)
Other versions
JPWO2024042633A1 (en
Inventor
真 鈴木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fanuc Corp
Original Assignee
Fanuc Corp
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 Fanuc Corp filed Critical Fanuc Corp
Publication of JPWO2024042633A1 publication Critical patent/JPWO2024042633A1/ja
Application granted granted Critical
Publication of JP7842227B2 publication Critical patent/JP7842227B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B23MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
    • B23QDETAILS, COMPONENTS, OR ACCESSORIES FOR MACHINE TOOLS, e.g. ARRANGEMENTS FOR COPYING OR CONTROLLING; MACHINE TOOLS IN GENERAL CHARACTERISED BY THE CONSTRUCTION OF PARTICULAR DETAILS OR COMPONENTS; COMBINATIONS OR ASSOCIATIONS OF METAL-WORKING MACHINES, NOT DIRECTED TO A PARTICULAR RESULT
    • B23Q15/00Automatic control or regulation of feed movement, cutting velocity or position of tool or work
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Program-control systems
    • G05B19/02Program-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 program data in numerical form
    • G05B19/409Numerical 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 program data in numerical form characterised by using manual data input [MDI] or by using control panel, e.g. controlling functions with the panel; characterised by control panel details or by setting parameters
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Program-control systems
    • G05B19/02Program-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 program 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 program 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 program, for the NC machine
    • 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]

Landscapes

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

Description

本発明は、加工プログラム編集装置、及び加工プログラム編集方法に関する。The present invention relates to a processing program editing device and a processing program editing method.

加工プログラムを生成するために必要な加工データ(送り速度、主軸速度、使用工具、切込み量、仕上げ形状等)を基に、加工プログラムを自動生成する技術が知られている。例えば、特許文献1参照。
また、生成後の加工プログラムを編集した場合に、ツールパスに影響を与えない編集内容であれば加工データを変更することで、編集後の加工プログラムと加工データの対応関係を保つ技術が知られている。例えば、特許文献2参照。
A technology is known for automatically generating machining programs based on machining data necessary for generating a machining program (feed rate, spindle speed, tool used, depth of cut, finished shape, etc.). See, for example, Patent Document 1.
Furthermore, there is a known technique for maintaining the correspondence between the edited machining program and the machining data by modifying the machining data if the edited machining program does not affect the toolpath. See, for example, Patent Document 2.

特開2005-108077号公報Japanese Patent Publication No. 2005-108077 特開2015-170147号公報Japanese Patent Publication No. 2015-170147

ツールパスに影響する編集内容であっても、編集内容に直接関係のない加工データについては変更したい場合がある。しかしながら、特許文献1、2には、これを可能とする技術について記載されていない。
例えば、オペレータが図16に示す加工データ入力画面において送り速度や主軸速度等の加工データを指定することで、特許文献2では、図17に示すような前工程、加工部、後工程を含む加工プログラムを生成(Gコードプログラムに展開)する。サイクルタイム短縮を目的としたツールパスの変更等、生成された加工プログラムを編集したい場合、特許文献2では、網掛けで示す部分の加工プログラムの変更を、ツールパスに影響しない範囲で加工データの変更により行うことができる。しかしながら、特許文献2では、ツールパスに影響する範囲で加工データの変更ができないという問題がある。
換言すれば、ツールパスは、加工データを基に一定のアルゴリズムによって生成され、細かな調整ができず、加工データと編集内容とが1対1で対応していない場合、編集内容を加工データに反映することはできない。このため、編集内容と加工データの変更により変化する部分が一致する場合、編集内容を保持したまま加工データを変更することは不可能であるという問題がある。
Even if the edits affect the toolpath, there are times when it is desirable to modify the processing data that is not directly related to the edits. However, Patent Documents 1 and 2 do not describe any technology that makes this possible.
For example, when an operator specifies machining data such as feed rate and spindle speed on the machining data input screen shown in Figure 16, Patent Document 2 generates a machining program (expanded into a G-code program) that includes pre-processing, machining, and post-processing, as shown in Figure 17. If the generated machining program needs to be edited, such as by changing the toolpath to shorten the cycle time, Patent Document 2 allows the machining program in the shaded area to be modified by changing the machining data, within a range that does not affect the toolpath. However, Patent Document 2 has the problem that it does not allow the modification of machining data within a range that affects the toolpath.
In other words, toolpaths are generated by a fixed algorithm based on machining data, and fine adjustments are not possible. If there is no one-to-one correspondence between the machining data and the edited content, the edited content cannot be reflected in the machining data. Therefore, if the edited content and the parts that change due to the modification of the machining data coincide, there is a problem in that it is impossible to modify the machining data while retaining the edited content.

そこで、ツールパスに影響する編集内容であっても、編集内容に直接関係のない加工データを変更できることが望まれている。Therefore, it is desirable to be able to modify processing data that is not directly related to the edits, even if the edits affect the toolpath.

本開示の加工プログラム編集装置の一態様は、送り速度、主軸速度、使用工具、切込み量、加工形状、位置情報の少なくともいずれかを含む加工データを入力する加工データ入力部と、前記加工データを基に加工プログラムを生成する加工プログラム生成部と、前記加工プログラム生成部で生成した加工プログラムを編集する加工プログラム編集部と、前記加工データと、前記加工プログラム生成部で生成した加工プログラムと、前記加工プログラム編集部で編集した加工プログラムの編集内容と、を記憶する記憶部と、前記加工データが変更された場合、前記加工データの変更部分と前記加工プログラムの編集内容とを比較し、ツールパスに影響するか否かを判定するツールパス影響判定部と、を備える。One embodiment of the machining program editing device of the present disclosure includes: a machining data input unit for inputting machining data including at least one of feed rate, spindle speed, tool used, depth of cut, machining shape, and position information; a machining program generation unit for generating a machining program based on the machining data; a machining program editing unit for editing the machining program generated by the machining program generation unit; a storage unit for storing the machining data, the machining program generated by the machining program generation unit, and the edited contents of the machining program edited by the machining program editing unit; and a toolpath influence determination unit for determining whether or not the modified portion of the machining data affects the toolpath when the machining data is modified.

本開示の加工プログラム編集方法の一態様は、コンピュータを加工プログラム編集装置として機能させる加工プログラム編集方法であって、送り速度、主軸速度、使用工具、切込み量、加工形状、位置情報の少なくともいずれかを含む加工データを入力する加工データ入力ステップと、前記加工データを基に加工プログラムを生成する加工プログラム生成ステップと、前記加工プログラム生成ステップで生成した加工プログラムを編集する加工プログラム編集ステップと、前記加工データと、前記加工プログラム生成ステップで生成した加工プログラムと、前記加工プログラム編集ステップで編集した前記加工プログラムの編集内容と、を記憶する記憶ステップと、前記加工データが変更された場合、前記加工データの変更部分と前記加工プログラムの編集内容とを比較し、ツールパスに影響するか否かを判定するツールパス影響判定ステップと、を備える。One embodiment of the machining program editing method of the present disclosure is a machining program editing method that causes a computer to function as a machining program editing device, comprising: a machining data input step of inputting machining data including at least one of feed rate, spindle speed, tool used, depth of cut, machining shape, and position information; a machining program generation step of generating a machining program based on the machining data; a machining program editing step of editing the machining program generated in the machining program generation step; a storage step of storing the machining data, the machining program generated in the machining program generation step, and the edited content of the machining program edited in the machining program editing step; and a toolpath influence determination step of comparing the changed portion of the machining data with the edited content of the machining program and determining whether or not it affects the toolpath when the machining data is changed.

一態様によれば、ツールパスに影響する編集内容であっても、編集内容に直接関係のない加工データを変更できる。According to one embodiment, even if the edits affect the toolpath, the processing data that is not directly related to the edits can be modified.

第1実施形態に係る加工プログラム編集装置の機能的構成例を示す機能ブロック図である。This is a functional block diagram showing an example of the functional configuration of a processing program editing device according to the first embodiment. 入力された加工データを基に生成された加工プログラムの一例を示す図である。This figure shows an example of a machining program generated based on the input machining data. 図2の加工プログラムが編集された加工プログラムの一例を示す図である。Figure 2 shows an example of a processed processing program. 図2の加工プログラムの加工データが変更された加工プログラムの一例を示す図である。This figure shows an example of a machining program in which the machining data of the machining program in Figure 2 has been changed. 加工データが変更された変更部分と加工プログラムの編集内容との比較の一例を示す図である。This figure shows an example of comparing the modified parts of the processing data with the edited parts of the processing program. 加工プログラム編集装置の編集処理について説明するフローチャートである。This is a flowchart explaining the editing process of the machining program editing device. 生成された加工プログラムの一例を示す図である。This figure shows an example of a generated processing program. 図7の加工プログラムにおいて編集及び加工データの変更が行われた加工プログラムの一例を示す図である。Figure 7 shows an example of a machining program in which editing and modification of machining data have been performed. 編集及び加工データの変更が行われたアブソリュート指令がある加工プログラムの一例を示す図である。This figure shows an example of a machining program with absolute commands that have been modified for editing and processing. 第2実施形態に係る加工プログラム編集装置の機能的構成例を示す機能ブロック図である。This is a functional block diagram showing an example of the functional configuration of a processing program editing device according to the second embodiment. ブロック毎の加工データ関係情報の一例を示す図である。This figure shows an example of processing data relationship information for each block. ワード毎の加工データ関係情報の一例を示す図である。This figure shows an example of processing data relationship information for each word. 図11の加工プログラムが編集された加工プログラムの一例を示す図である。Figure 11 shows an example of a modified machining program. 加工データ入力画面の一例を示す図である。This figure shows an example of a processing data input screen. 加工プログラム編集装置の編集処理について説明するフローチャートである。This is a flowchart explaining the editing process of the machining program editing device. 加工データ入力画面の一例を示す図である。This figure shows an example of a processing data input screen. 図16の加工データに基づいて生成された加工プログラムの一例を示す図である。This figure shows an example of a machining program generated based on the machining data in Figure 16.

<第1実施形態>
まず、本実施形態の概略を説明する。本実施形態では、入力された加工データを基に加工プログラムを生成し、生成された加工プログラムを編集し、加工データと、生成された加工プログラムと、編集された加工プログラムの編集内容とを記憶し、加工データが変更された場合、加工データの変更部分と加工プログラムの編集内容とを比較し、ツールパスに影響するか否かを判定する。
これにより、本実施形態によれば、ツールパスに影響する編集内容であっても、編集内容に直接関係のない加工データを変更できる。
以上が本実施形態の概略である。
<First Embodiment>
First, the outline of this embodiment will be described. In this embodiment, a machining program is generated based on the input machining data, the generated machining program is edited, the machining data, the generated machining program, and the edited contents of the edited machining program are stored, and if the machining data is changed, the changed portion of the machining data and the edited contents of the machining program are compared to determine whether or not it affects the toolpath.
As a result, according to this embodiment, even if the edits affect the toolpath, the processing data that is not directly related to the edits can be modified.
The above is an overview of this embodiment.

次に、本実施形態の構成について図面を用いて詳細に説明する。
図1は、第1実施形態に係る加工プログラム編集装置の機能的構成例を示す機能ブロック図である。
図1に示すように、加工プログラム編集装置1は、公知のコンピュータであり、制御部10、入力部11、表示部12、及び記憶部13を有する。制御部10は、加工データ入力部101、加工プログラム生成部102、加工プログラム編集部103、及びツールパス影響判定部104を含む。
なお、加工プログラム編集装置1は、工作機械(図示しない)の動作を制御する数値制御装置(図示しない)とLAN(Local Area Network)やインターネット等の図示しないネットワークを介して相互に接続されていてもよい。あるいは、加工プログラム編集装置1は、数値制御装置(図示しない)と図示しない接続インターフェースを介して互いに直接接続されてもよい。
Next, the configuration of this embodiment will be described in detail with reference to the drawings.
Figure 1 is a functional block diagram showing an example of the functional configuration of a processing program editing device according to the first embodiment.
As shown in Figure 1, the machining program editing device 1 is a known computer and has a control unit 10, an input unit 11, a display unit 12, and a storage unit 13. The control unit 10 includes a machining data input unit 101, a machining program generation unit 102, a machining program editing unit 103, and a toolpath influence determination unit 104.
The machining program editing device 1 may be interconnected with a numerical control device (not shown) that controls the operation of a machine tool (not shown) via a network (not shown), such as a LAN (Local Area Network) or the Internet. Alternatively, the machining program editing device 1 may be directly connected to the numerical control device (not shown) via a connection interface (not shown).

<入力部11>
入力部11は、例えば、キーボードや、後述する表示部12に配置されたタッチパネル等であり、ユーザからの入力を受け付ける。
<Input section 11>
The input unit 11 is, for example, a keyboard or a touch panel located on the display unit 12 (described later), and accepts input from the user.

<表示部12>
表示部12は、例えば、液晶ディスプレイ等である。表示部12は、後述する加工プログラム生成部102により生成された加工プログラムや、後述する加工プログラム編集部103により編集された加工プログラム、及び後述するツールパス影響判定部104により加工データが変更された加工プログラムを表示する。
<Display section 12>
The display unit 12 is, for example, a liquid crystal display. The display unit 12 displays machining programs generated by the machining program generation unit 102 (described later), machining programs edited by the machining program editing unit 103 (described later), and machining programs whose machining data has been modified by the toolpath influence determination unit 104 (described later).

<記憶部13>
記憶部13は、SSD(Solid State Drive)やHDD(Hard Disk Drive)等であり、図示しない工作機械を動作させる加工プログラム等を記憶してもよい。また、記憶部13は、RAM(Random Access Memory)等を含み、加工データと、後述する加工プログラム生成部102で生成した加工プログラムと、後述する加工プログラム編集部103で編集した加工プログラムの編集内容とを記憶する、プログラムメモリとして機能してもよい。
<Storage unit 13>
The storage unit 13 may be an SSD (Solid State Drive) or an HDD (Hard Disk Drive), and may store machining programs for operating machine tools (not shown). Alternatively, the storage unit 13 may include a RAM (Random Access Memory) and function as a program memory, storing machining data, machining programs generated by the machining program generation unit 102 (described later), and the edited content of machining programs edited by the machining program editing unit 103 (described later).

<制御部10>
制御部10は、CPU(Central Processing Unit)、ROM(Read Only Memory)、RAM、CMOS(Complementary Metal-Oxide-Semiconductor)メモリ等を有し、これらはバスを介して相互に通信可能に構成される、当業者にとって公知のものである。
CPUは加工プログラム編集装置1を全体的に制御するプロセッサである。CPUは、ROMに格納されたシステムプログラム及びアプリケーションプログラムを、バスを介して読み出し、システムプログラム及びアプリケーションプログラムに従って加工プログラム編集装置1全体を制御する。これにより、図1に示すように、制御部10が、加工データ入力部101、加工プログラム生成部102、加工プログラム編集部103、及びツールパス影響判定部104の機能を実現するように構成される。RAMには、一時的な計算データや表示データ等の各種データが格納される。また、CMOSメモリは図示しないバッテリでバックアップされ、加工プログラム編集装置1の電源がオフされても記憶状態が保持される不揮発性メモリとして構成される。
<Control Unit 10>
The control unit 10 includes a CPU (Central Processing Unit), ROM (Read Only Memory), RAM, CMOS (Complete Metal-Oxide-Semiconductor) memory, etc., and these are configured to communicate with each other via a bus, as is well known to those skilled in the art.
The CPU is a processor that controls the entire machining program editing device 1. The CPU reads the system program and application programs stored in the ROM via the bus and controls the entire machining program editing device 1 according to the system program and application programs. As a result, as shown in Figure 1, the control unit 10 is configured to realize the functions of the machining data input unit 101, the machining program generation unit 102, the machining program editing unit 103, and the toolpath influence determination unit 104. Various data such as temporary calculation data and display data are stored in the RAM. The CMOS memory is backed up by a battery (not shown) and is configured as a non-volatile memory that retains its memory state even when the power to the machining program editing device 1 is turned off.

加工データ入力部101は、入力部11を介してユーザの入力操作に基づいて、送り速度、主軸速度、使用工具、切込み量、加工形状、位置情報の少なくともいずれかを含む加工データを入力する。
具体的には、加工データ入力部101は、例えば、入力部11を介したユーザの入力操作に基づいて加工データとして「G1234 P1_Q1_P2_Q2_P3_Q3_F_S_T_」を入力する。加工データ入力部101は、入力した加工データ「G1234 P1_Q1_P2_Q2_P3_Q3_F_S_T_」を記憶部13(プログラムメモリ)に記憶する。なお、引数「P1_Q1_」は、前工程の加工形状を示す。また、引数「P2_Q2_」は、加工部の加工形状を示す。また、引数「P3_Q3_」は、後工程の加工形状を示す。また、引数「F_」は、送り速度を示し、引数「S_」は、主軸速度(主軸回転数)を示し、引数「T_」は、使用工具を示す。
The machining data input unit 101 inputs machining data, including at least one of the following, via the input unit 11, based on the user's input operation: feed rate, spindle speed, tool used, depth of cut, machining shape, and position information.
Specifically, the machining data input unit 101 inputs "G1234 P1_Q1_P2_Q2_P3_Q3_F_S_T_" as machining data based on user input via the input unit 11. The machining data input unit 101 stores the input machining data "G1234 P1_Q1_P2_Q2_P3_Q3_F_S_T_" in the storage unit 13 (program memory). The argument "P1_Q1_" indicates the machining shape of the previous process. The argument "P2_Q2_" indicates the machining shape of the machining part. The argument "P3_Q3_" indicates the machining shape of the subsequent process. The argument "F_" indicates the feed rate, the argument "S_" indicates the spindle speed (spindle rotation speed), and the argument "T_" indicates the tool used.

加工プログラム生成部102は、入力された加工データを基に加工プログラムを生成する。
具体的には、加工プログラム生成部102は、例えば、加工データ「G1234 P1_Q1_P2_Q2_P3_Q3_F_S_T_」に基づいて、図2に示す加工プログラムを生成する。加工プログラム生成部102は、生成した加工プログラムを記憶部13(プログラムメモリ)に記憶する。
The machining program generation unit 102 generates a machining program based on the input machining data.
Specifically, the machining program generation unit 102 generates the machining program shown in Figure 2 based on, for example, the machining data "G1234 P1_Q1_P2_Q2_P3_Q3_F_S_T_". The machining program generation unit 102 stores the generated machining program in the storage unit 13 (program memory).

加工プログラム編集部103は、加工プログラム生成部102で生成した加工プログラムを編集する。
具体的には、加工プログラム編集部103は、例えば、入力部11を介したユーザの入力操作に基づいて、図2の加工プログラムを編集して、図3に示すように、矩形で示す部分の座標値を編集する。加工プログラム編集部103は、編集した加工プログラムとともに、矩形で示す部分を加工プログラムの編集内容として記憶部13(プログラムメモリ)に記憶する。
The processing program editing unit 103 edits the processing program generated by the processing program generation unit 102.
Specifically, the machining program editing unit 103 edits the machining program shown in Figure 2 based on user input via the input unit 11, for example, and edits the coordinate values of the rectangle shown in Figure 3. The machining program editing unit 103 stores the edited machining program along with the rectangle shown in the storage unit 13 (program memory) as the edited content of the machining program.

ツールパス影響判定部104は、加工データが変更された場合、加工データの変更部分と加工プログラムの編集内容とを比較し、ツールパスに影響するか否かを判定する。
具体的には、ツールパス影響判定部104は、入力部11を介したユーザの入力操作に基づいて、加工データの変更を受け付けた場合、図4に示すように、図2の加工プログラムのうち矩形で示す部分の加工データの座標値を変更した加工プログラムを仮生成する。ツールパス影響判定部104は、加工データの変更部分と加工プログラムの編集内容とを比較する。
図5は、加工データが変更された変更部分と加工プログラムの編集内容との比較の一例を示す図である。図5では、矩形で示す部分は、加工プログラム編集部103による編集内容を示し、網掛けで示す部分は、加工データが変更された変更部分を示す。
ツールパス影響判定部104は、加工データが変更によりツールパスに影響しない(例えば、位置指令ではない等)場合、又は変更部分と編集内容とが異なる加工データにより生成されたブロックの場合、いずれの変更部分も編集内容も保持する。すなわち、ツールパス影響判定部104は、図5の場合、変更部分と編集内容とが異なる加工データにより生成されたブロックであることから、変更内部分と編集内容との両方を保持する。
一方、ツールパス影響判定部104は、変更部分がツールパスに影響し、かつ変更部分と編集内容とが同一の加工データにより生成されたブロックである場合、「ツールパスに影響する加工プログラムの編集内容と、加工データの変更が互いに関係します。」等のワーニング(警告)を表示部12に表示する。ツールパス影響判定部104は、編集内容を保持して加工データの変更を破棄するか、編集内容を破棄して加工データの変更を保持するかをユーザに選択させ、加工プログラムの編集を支援する。
The toolpath influence determination unit 104, when the machining data is changed, compares the changed portion of the machining data with the edited content of the machining program to determine whether or not it will affect the toolpath.
Specifically, when the toolpath influence determination unit 104 receives a change in machining data based on the user's input operation via the input unit 11, it provisionally generates a machining program in which the coordinate values of the machining data in the rectangular portion of the machining program in Figure 2 have been changed, as shown in Figure 4. The toolpath influence determination unit 104 then compares the changed portion of the machining data with the edited content of the machining program.
Figure 5 shows an example of a comparison between the modified portion of the processing data and the edited portion of the processing program. In Figure 5, the rectangular portion shows the edited portion by the processing program editing unit 103, and the shaded portion shows the modified portion of the processing data.
The toolpath influence determination unit 104 retains both the modified portion and the edited content if the modification of the machining data does not affect the toolpath (for example, if it is not a position command), or if the block was generated by machining data in which the modified portion and the edited content are different. In other words, in the case of Figure 5, since the block was generated by machining data in which the modified portion and the edited content are different, the toolpath influence determination unit 104 retains both the modified portion and the edited content.
On the other hand, if the toolpath influence determination unit 104 determines that the modified portion affects the toolpath and that the modified portion and the edited portion are blocks generated by the same machining data, it displays a warning on the display unit 12 such as, "The edited content of the machining program that affects the toolpath and the changes to the machining data are related to each other." The toolpath influence determination unit 104 assists in editing the machining program by allowing the user to choose whether to retain the edited content and discard the changes to the machining data, or discard the edited content and retain the changes to the machining data.

<加工プログラム編集装置1の編集処理>
次に、図6を参照しながら、加工プログラム編集装置1の編集処理の流れを説明する。
図6は、加工プログラム編集装置1の編集処理について説明するフローチャートである。ここで示すフローは、ユーザから編集操作や変更操作を受け付ける度に実行される。
<Editing process of the processing program editing device 1>
Next, with reference to Figure 6, the editing process flow of the processing program editing device 1 will be explained.
Figure 6 is a flowchart illustrating the editing process of the processing program editing device 1. The flowchart shown here is executed each time an editing or modification operation is received from the user.

ステップS11において、加工データ入力部101は、入力部11を介したユーザの入力操作に基づいて、「G1234 P1_Q1_P2_Q2_P3_Q3_F_S_T_」等の加工データを入力する。In step S11, the processing data input unit 101 inputs processing data such as "G1234 P1_Q1_P2_Q2_P3_Q3_F_S_T_" based on the user's input operation via the input unit 11.

ステップS12において、加工プログラム生成部102は、ステップS11で入力された加工データを基に加工プログラムを生成する。In step S12, the machining program generation unit 102 generates a machining program based on the machining data input in step S11.

ステップS13において、加工プログラム編集部103は、ステップS12で生成された加工プログラムの編集を、入力部11を介してユーザから受け付けたか否かを判定する。加工プログラムの編集をユーザから受け付けた場合、処理はステップS14に進む。一方、加工プログラムの編集をユーザから受け付けていない場合、処理はステップS15に進む。In step S13, the machining program editing unit 103 determines whether or not it has received an edit of the machining program generated in step S12 from the user via the input unit 11. If an edit of the machining program has been received from the user, the process proceeds to step S14. On the other hand, if an edit of the machining program has not been received from the user, the process proceeds to step S15.

ステップS14において、加工プログラム編集部103は、編集した加工プログラムと加工プログラムの編集内容とを記憶部13に記憶する。In step S14, the processing program editing unit 103 stores the edited processing program and the edited content of the processing program in the storage unit 13.

ステップS15において、ツールパス影響判定部104は、ステップS12で生成された加工プログラムにおける加工データの変更を、入力部11を介してユーザから受け付けたか否かを判定する。加工データの変更をユーザから受け付けた場合、処理はステップS16に進む。一方、加工データの変更をユーザから受け付けていない場合、加工プログラム編集装置1は、編集処理を終了する。In step S15, the toolpath influence determination unit 104 determines whether or not it has received a change to the machining data in the machining program generated in step S12 from the user via the input unit 11. If a change to the machining data has been received from the user, the process proceeds to step S16. On the other hand, if a change to the machining data has not been received from the user, the machining program editing device 1 terminates the editing process.

ステップS16において、ツールパス影響判定部104は、ステップS15で加工データが変更された加工プログラムを仮生成し、加工データの変更部分とステップS14で編集された加工プログラムの編集内容とを比較し、ツールパスに影響するか否かを判定する。ツールパス影響判定部104は、加工データが変更によりツールパスに影響しない場合、又は変更部分と編集内容とが異なる加工データにより生成されたブロックの場合、いずれの変更部分も編集内容も保持する。一方、ツールパス影響判定部104は、変更部分がツールパスに影響し、かつ変更部分と編集内容とが同一の加工データにより生成されたブロックである場合、「ツールパスに影響する加工プログラムの編集内容と、加工データの変更が互いに関係します。」等のワーニング(警告)を表示部12に表示する。In step S16, the toolpath influence determination unit 104 provisionally generates a machining program in which the machining data was modified in step S15, compares the modified portion of the machining data with the edited content of the machining program edited in step S14, and determines whether or not it affects the toolpath. If the modification of the machining data does not affect the toolpath, or if the block was generated by machining data in which the modified portion and the edited content are different, the toolpath influence determination unit 104 retains both the modified portion and the edited content. On the other hand, if the modified portion affects the toolpath and the block was generated by machining data in which the modified portion and the edited content are the same, the toolpath influence determination unit 104 displays a warning on the display unit 12 such as "The edited content of the machining program that affects the toolpath and the modification of the machining data are related to each other."

ステップS17において、ツールパス影響判定部104は、ステップS16でワーニングが表示された場合、編集内容を破棄して加工データの変更を保持する加工データ変更を実行するか否かをユーザに選択させる。ユーザにより加工データ変更の実行が選択された場合、処理はステップS18に進む。一方、ユーザにより加工データ変更の実行が選択されなかった場合、ツールパス影響判定部104は、編集内容を保持して加工データの変更を破棄し、加工プログラム編集装置1は、編集処理を終了する。In step S17, if a warning was displayed in step S16, the toolpath influence determination unit 104 prompts the user to choose whether to discard the edited content and retain the changes to the machining data, or to perform a machining data modification. If the user chooses to perform a machining data modification, the process proceeds to step S18. On the other hand, if the user does not choose to perform a machining data modification, the toolpath influence determination unit 104 retains the edited content and discards the changes to the machining data, and the machining program editing device 1 terminates the editing process.

ステップS18において、ツールパス影響判定部104は、編集内容を破棄して加工データの変更を保持する加工データ変更を実行し、加工プログラム編集装置1は、編集処理を終了する。In step S18, the toolpath influence determination unit 104 executes a machining data modification that discards the edited content and retains the changes to the machining data, and the machining program editing device 1 terminates the editing process.

以上により、第1実施形態に係る加工プログラム編集装置1は、入力された加工データを基に加工プログラムを生成し、生成された加工プログラムを編集し、加工データが変更された場合、加工データの変更部分と加工プログラムの編集内容とを比較して、ツールパスに影響するか否かを判定する。加工プログラム編集装置1は、加工データが変更によりツールパスに影響しない(例えば、位置指令ではない等)場合、又は変更部分と編集内容とが異なる加工データにより生成されたブロックの場合、いずれの変更部分も編集内容も保持する。一方、加工プログラム編集装置1は、変更部分がツールパスに影響し、かつ変更部分と編集内容とが同一の加工データにより生成されたブロックである場合、ワーニング(警告)を表示部12に表示し、編集内容を保持して加工データの変更を破棄するか、編集内容を破棄して加工データの変更を保持するかをユーザに選択させ、加工プログラムの編集を支援する。これにより、加工プログラム編集装置1は、ツールパスに影響する編集内容であっても、編集内容に直接関係のない加工データを変更でき、加工プログラムの編集が容易になる。
また、加工プログラム編集装置1は、編集内容に関係する加工データについて事前にユーザに明示することにより、ユーザの作業負担を軽減することができる。すなわち、ユーザが加工データを変更(又は仮入力)したタイミングで、変更する加工データが加工プログラム編集内容に関係するかを判定するため、事前にすべての加工データについて加工プログラム編集内容との関係を判定する必要がなく、処理負荷低減及びプログラムメモリ節約の効果を奏することができる。
また、加工プログラム編集装置1は、編集内容に関係する加工データを変更しようとした際にワーニングを表示することにより操作ミスを防止することができる。
以上、第1実施形態について説明した。
As described above, the machining program editing device 1 according to the first embodiment generates a machining program based on the input machining data, edits the generated machining program, and, when the machining data is changed, compares the changed portion of the machining data with the edited portion of the machining program to determine whether or not it affects the toolpath. The machining program editing device 1 retains both the changed portion and the edited portion if the change in machining data does not affect the toolpath (for example, it is not a position command), or if the block was generated by machining data in which the changed portion and the edited portion are different. On the other hand, if the changed portion affects the toolpath and the block was generated by machining data in which the changed portion and the edited portion are the same, the machining program editing device 1 displays a warning on the display unit 12 and allows the user to choose whether to retain the edited portion and discard the change in machining data, or discard the edited portion and retain the change in machining data, thereby assisting in the editing of the machining program. As a result, the machining program editing device 1 can change machining data that is not directly related to the edited portion, even if the edited portion affects the toolpath, making it easier to edit the machining program.
Furthermore, the processing program editing device 1 can reduce the user's workload by clearly indicating to the user in advance the processing data related to the editing content. In other words, since it determines whether the processing data to be changed is related to the processing program editing content at the time the user changes (or tentatively inputs) the processing data, it is not necessary to determine the relationship between all processing data and the processing program editing content in advance, thereby reducing the processing load and saving program memory.
Furthermore, the processing program editing device 1 can prevent operational errors by displaying a warning when attempting to change processing data related to the editing content.
The first embodiment has been described above.

<第1実施形態の変形例>
第1実施形態の変形例では、ツールパス影響判定部104は、加工データの変更部分と編集内容が異なる同一の加工データにより生成されたブロックである場合でも、変更部分と編集内容とが「互いに関係する」と判定させる点が、第1実施形態と異なる。
図7は、生成された加工プログラムの一例を示す図である。図8は、図7の加工プログラムにおいて編集及び加工データの変更が行われた加工プログラムの一例を示す図である。図8では、編集された箇所(編集内容)を矩形で示し、加工データが変更された箇所(変更部分)を網掛けで示す。
図8に示すように、変更部分(網掛けの部分)と編集内容(矩形の部分)に同一の軸アドレスが含まれ、図7の加工プログラムにおいて変更部分と編集内容の間(例えば、ブロック「X90.」等)に該当する軸のアブソリュート指令がない場合、ツールパス影響判定部104は、変更部分と編集内容の関係により、ユーザが意図しないツールパスとなる可能性があると判定する。
この場合、ツールパス影響判定部104は、ワーニングを表示部12に表示し、編集内容を破棄するか、編集内容を保持するかユーザに選択させるようにしてもよい。これにより、加工プログラム編集装置1は、加工プログラムの編集を支援することが可能となる。
一方、図7の加工プログラムにおいて変更部分と編集内容の間(例えば、ブロック「X90.」等)に該当する軸のアブソリュート指令があり、図9に示すように、編集及び加工データの変更が行われた場合、ツールパス影響判定部104は、変更部分と編集内容でツールパスの影響がないため、意図しないツールパスとならないことから、変更部分と編集内容との両方を保持するようにしてもよい。
<Modified form of the first embodiment>
In the modified version of the first embodiment, the toolpath influence determination unit 104 determines that the modified portion and the edited content are "related to each other," even if the block is generated by the same machining data and the modified portion and the edited content are different.
Figure 7 shows an example of a generated machining program. Figure 8 shows an example of a machining program in which editing and modification of the machining data have been performed on the machining program in Figure 7. In Figure 8, the edited areas (edited content) are shown by rectangles, and the areas where the machining data has been changed (modified parts) are shown by shading.
As shown in Figure 8, if the modified portion (shaded portion) and the edited content (rectangular portion) contain the same axis address, and there is no absolute command for the corresponding axis between the modified portion and the edited content in the machining program in Figure 7 (for example, block "X90."), the toolpath influence determination unit 104 determines that, based on the relationship between the modified portion and the edited content, there is a possibility that the toolpath will be one that the user did not intend.
In this case, the toolpath influence determination unit 104 may display a warning on the display unit 12 and allow the user to choose whether to discard the edited content or retain it. This enables the machining program editing device 1 to support the editing of the machining program.
On the other hand, in the machining program shown in Figure 7, there is an absolute command for the axis corresponding to the modified portion and the edited content (for example, block "X90."), and as shown in Figure 9, when editing and machining data are modified, the toolpath influence determination unit 104 may retain both the modified portion and the edited content because the modified portion and the edited content do not affect the toolpath, thus preventing an unintended toolpath.

<第2実施形態>
次に、第2実施形態について説明する。第1実施形態では、加工プログラム編集装置1は、入力された加工データを基に加工プログラムを生成し、生成された加工プログラムを編集し、加工データと、生成された加工プログラムと、編集された加工プログラム編集内容とを記憶し、加工データが変更された場合、加工データの変更部分と加工プログラムの編集内容とを比較し、ツールパスに影響するか否かを判定する。これに対して、第2実施形態では、加工プログラム編集装置1Aは、加工データと加工データを基に生成した加工プログラムとの関係を示す加工データ関係情報を生成し、加工データ関係情報を使用して加工データの変更部分と加工プログラムの編集内容とを比較し、ツールパスに影響するか否かを判定する点において、第1実施形態と相違する。
これにより、第2実施形態に係る加工プログラム編集装置1Aは、ツールパスに影響する編集内容であっても、編集内容に直接関係のない加工データを変更できる。
以下、第2実施形態について説明する。
<Second Embodiment>
Next, a second embodiment will be described. In the first embodiment, the machining program editing device 1 generates a machining program based on the input machining data, edits the generated machining program, stores the machining data, the generated machining program, and the edited machining program content, and when the machining data is changed, compares the changed portion of the machining data with the edited content of the machining program to determine whether or not it affects the toolpath. In contrast, the second embodiment differs from the first embodiment in that the machining program editing device 1A generates machining data relationship information that shows the relationship between the machining data and the machining program generated based on the machining data, and uses the machining data relationship information to compare the changed portion of the machining data with the edited content of the machining program to determine whether or not it affects the toolpath.
As a result, the machining program editing device 1A according to the second embodiment can modify machining data that is not directly related to the editing content, even if the editing content affects the toolpath.
The second embodiment will be described below.

図10は、第2実施形態に係る加工プログラム編集装置の機能的構成例を示す機能ブロック図である。なお、図1の加工プログラム編集装置1の要素と同様の機能を有する要素については、同じ符号を付し、詳細な説明は省略する。
図10に示すように、第2実施形態に係る加工プログラム編集装置1Aは、制御部10a、入力部11、表示部12、及び記憶部13を有する。制御部10aは、加工データ入力部101、加工プログラム生成部102、加工プログラム編集部103、ツールパス影響判定部104a、及び加工データ関係情報生成部105を含む。
入力部11、表示部12、及び記憶部13は、第1実施形態における入力部11、表示部12、及び記憶部13と同様の機能を有する。
Figure 10 is a functional block diagram showing an example of the functional configuration of a machining program editing device according to the second embodiment. Elements having the same functions as those of the machining program editing device 1 in Figure 1 are denoted by the same reference numerals, and detailed explanations are omitted.
As shown in Figure 10, the machining program editing device 1A according to the second embodiment has a control unit 10a, an input unit 11, a display unit 12, and a storage unit 13. The control unit 10a includes a machining data input unit 101, a machining program generation unit 102, a machining program editing unit 103, a toolpath influence determination unit 104a, and a machining data related information generation unit 105.
The input unit 11, display unit 12, and storage unit 13 have the same functions as the input unit 11, display unit 12, and storage unit 13 in the first embodiment.

<制御部10a>
制御部10aは、CPU、ROM、RAM、CMOSメモリ等を有し、これらはバスを介して相互に通信可能に構成される、当業者にとって公知のものである。
CPUは加工プログラム編集装置1Aを全体的に制御するプロセッサである。CPUは、ROMに格納されたシステムプログラム及びアプリケーションプログラムを、バスを介して読み出し、システムプログラム及びアプリケーションプログラムに従って加工プログラム編集装置1A全体を制御する。これにより、図10に示すように、制御部10aが、加工データ入力部101、加工プログラム生成部102、加工プログラム編集部103、ツールパス影響判定部104a、及び加工データ関係情報生成部105の機能を実現するように構成される。
加工データ入力部101、加工プログラム生成部102、及び加工プログラム編集部103は、第1実施形態における加工データ入力部101、加工プログラム生成部102、及び加工プログラム編集部103と同等の機能を有する。
<Control Unit 10a>
The control unit 10a includes a CPU, ROM, RAM, CMOS memory, etc., which are configured to communicate with each other via a bus, and are known to those skilled in the art.
The CPU is a processor that controls the machining program editing device 1A as a whole. The CPU reads the system program and application program stored in the ROM via the bus and controls the entire machining program editing device 1A according to the system program and application program. As a result, as shown in Figure 10, the control unit 10a is configured to realize the functions of the machining data input unit 101, the machining program generation unit 102, the machining program editing unit 103, the toolpath influence determination unit 104a, and the machining data related information generation unit 105.
The processing data input unit 101, the processing program generation unit 102, and the processing program editing unit 103 have the same functions as the processing data input unit 101, the processing program generation unit 102, and the processing program editing unit 103 in the first embodiment.

加工データ関係情報生成部105は、加工データと加工データを基に生成した加工プログラムとの関係についての加工データ関係情報を生成する。
図11は、ブロック毎の加工データ関係情報の一例を示す図である。図11では、加工プログラム生成部102は、加工データ「G1234 P1_Q1_P2_Q2_P3_Q3_F_S_T_」を基に加工プログラムが生成され、加工データ関係情報生成部105は、当該加工プログラムのブロック、例えば各ブロックの識別IDである「B0001」から「B0011」毎に、加工データ「G1234」の引数それぞれと対応付けし加工データ関係情報として生成する。
すなわち、加工データ関係情報では、「F10」のブロックの識別ID「B0001」に加工データの引数「F_」が、「S500」のブロックの識別ID「B0002」に加工データの引数「S_」が、「T0101」のブロックの識別ID「B0003」に加工データの引数「F_」がそれぞれ対応付けられる。また、加工データ関係情報では、「N100 G00 Z100. X100.」と「N101 Z95. X95.」とのブロックの識別ID「B0004」と「B0005」とに加工データの引数「P1_Q1_」が対応付けられる。また、加工データ関係情報では、「N200 G01 Z90. X90.」のブロックの識別ID「B0006」から「N201 X90.」のブロックの識別ID「B0009」に加工データの引数「P2_Q2_」が対応付けられる。また、加工データ関係情報では、「N300 G00 Z100. X100.」と「N301 Z150. X150.」とのブロックの識別ID「B0010」と「B0011」とに加工データの引数「P3_Q3_」が対応付けられる。
加工データ関係情報生成部105は、生成した加工データ関係情報を記憶部13に記憶する。
そうすることで、加工プログラム編集装置1Aは、例えば、図11の加工プログラムにおいて、ユーザが入力部11のマウスのポインタを識別ID「B0004」のブロックの「Z100.」の位置に当てることで、「P1_Q1_に関係します。」等のメッセージを表示部12に表示するようにしてもよい。これにより、加工プログラム編集装置1Aは、加工プログラムの編集を支援することができる。
The processing data-related information generation unit 105 generates processing data-related information about the relationship between processing data and processing programs generated based on the processing data.
Figure 11 shows an example of processing data relationship information for each block. In Figure 11, the processing program generation unit 102 generates a processing program based on the processing data "G1234 P1_Q1_P2_Q2_P3_Q3_F_S_T_", and the processing data relationship information generation unit 105 associates each block of the processing program, for example, each block's identification ID from "B0001" to "B0011", with each argument of the processing data "G1234" and generates processing data relationship information.
In other words, in the processing data related information, the processing data argument "F_" is associated with the identification ID "B0001" of the "F10" block, the processing data argument "S_" is associated with the identification ID "B0002" of the "S500" block, and the processing data argument "F_" is associated with the identification ID "B0003" of the "T0101" block. In addition, in the processing data related information, the processing data argument "P1_Q1_" is associated with the identification IDs "B0004" and "B0005" of the blocks "N100 G00 Z100. X100." and "N101 Z95. X95.". Furthermore, in the processing data-related information, the processing data argument "P2_Q2_" is associated with the identification ID "B0006" of the block "N200 G01 Z90. X90." and the identification ID "B0009" of the block "N201 X90.". Also, in the processing data-related information, the processing data argument "P3_Q3_" is associated with the identification IDs "B0010" and "B0011" of the blocks "N300 G00 Z100. X100." and "N301 Z150. X150.".
The processing data-related information generation unit 105 stores the generated processing data-related information in the storage unit 13.
By doing so, the machining program editing device 1A may, for example, display a message such as "Related to P1_Q1_" on the display unit 12 when the user places the mouse pointer of the input unit 11 at the position of "Z100." in the block with identification ID "B0004" in the machining program shown in Figure 11. This allows the machining program editing device 1A to assist in editing the machining program.

なお、加工データ関係情報生成部105は、加工データ関係情報をブロック毎に生成したがこれに限定されず、ワード毎に加工データ関係情報を生成してもよい。
図12は、ワード毎の加工データ関係情報の一例を示す図である。なお、図12では、図11の加工プログラムの一部のみを示す。
図12に示すように、加工データ関係情報では、「F10」のワードの識別ID「W0001」に加工データの引数「F_」が、「S500」のワードの識別ID「W0002」に加工データの引数「S_」が、「T0101」のワードの識別ID「W0003」に加工データの引数「F_」がそれぞれ対応付けられてもよい。また、加工データ関係情報では、次のブロックの「N100 G00 Z100. X100.」のワードの識別ID「W0004」から「W0007」に加工データの引数「P1_Q1_」が対応付けられてもよい。
The processing data-related information generation unit 105 generates processing data-related information for each block, but is not limited to this; it may also generate processing data-related information for each word.
Figure 12 shows an example of processing data relationship information for each word. Note that Figure 12 shows only a portion of the processing program shown in Figure 11.
As shown in Figure 12, in the processing data related information, the processing data argument "F_" may be associated with the word identification ID "W0001" of "F10", the processing data argument "S_" may be associated with the word identification ID "W0002" of "S500", and the processing data argument "F_" may be associated with the word identification ID "W0003" of "T0101". In addition, in the processing data related information, the processing data argument "P1_Q1_" may be associated with the word identification IDs "W0004" to "W0007" of the next block "N100 G00 Z100. X100.".

ツールパス影響判定部104aは、加工データ関係情報を使用して加工データの変更部分と加工プログラムの編集内容とを比較し、ツールパスに影響するか否かを判定する。
具体的には、加工プログラム編集部103が、例えば図13に示すように、図11の加工プログラムの識別ID「B0004」のブロックの「Z100.」を矩形で示す「Z123.」に編集した場合、ツールパス影響判定部104aは、加工データ「P1_Q1_」を変更しようとすると、加工データ関係情報に基づいて加工プログラムの編集内容に関係することが判定できる。
ツールパス影響判定部104aは、例えば、加工データ「P1_Q1_」が編集されていることから、表示部12に表示された図14に示す加工データ入力画面において加工データ「P1」及び「P2」の入力欄をグレーアウトし、当該加工データを変更しようとすると「編集されています。値を変更すると編集内容は破棄されます。」等のワーニングを表示する。
そうすることで、加工プログラム編集装置1Aは、加工データ入力を支援することが可能となる。
The toolpath influence determination unit 104a uses machining data-related information to compare the modified parts of the machining data with the edited parts of the machining program and determines whether or not it will affect the toolpath.
Specifically, if the machining program editing unit 103 edits the "Z100." block of the machining program identification ID "B0004" in Figure 11 to "Z123.", as shown in Figure 13, the toolpath influence determination unit 104a can determine, based on the machining data-related information, that attempting to change the machining data "P1_Q1_" is related to the editing content of the machining program.
The toolpath influence determination unit 104a, for example, if it detects that the machining data "P1_Q1_" has been edited, will gray out the input fields for machining data "P1" and "P2" on the machining data input screen shown in Figure 14 displayed on the display unit 12, and will display a warning such as "This data has been edited. Changing the value will discard the edited content." if the user attempts to change the machining data.
By doing so, the processing program editing device 1A can assist in the input of processing data.

<加工プログラム編集装置1Aの編集処理>
次に、図15を参照しながら、加工プログラム編集装置1Aの編集処理の流れを説明する。
図15は、加工プログラム編集装置1Aの編集処理について説明するフローチャートである。ここで示すフローは、ユーザから編集操作や変更操作を受け付ける度に実行される。
なお、ステップS21及びステップS22の処理は、図6のステップS11及びステップS12の処理と同様であり、説明は省略する。
<Editing process of the processing program editing device 1A>
Next, referring to Figure 15, the editing process flow of the processing program editing device 1A will be explained.
Figure 15 is a flowchart illustrating the editing process of the processing program editing device 1A. The flowchart shown here is executed each time an editing or modification operation is received from the user.
Note that the processes in steps S21 and S22 are the same as those in steps S11 and S12 in Figure 6, and therefore their explanation is omitted.

ステップS23において、加工データ関係情報生成部105は、ステップS21で入力された加工データとステップS22で生成された加工プログラムとの関係を示す加工データ関係情報を生成する。In step S23, the processing data relationship information generation unit 105 generates processing data relationship information that shows the relationship between the processing data input in step S21 and the processing program generated in step S22.

ステップS24において、加工プログラム編集部103は、入力部11を介してユーザの入力操作に基づいて、ステップS22で生成された加工プログラムを編集する。In step S24, the machining program editing unit 103 edits the machining program generated in step S22 based on the user's input via the input unit 11.

ステップS25において、ツールパス影響判定部104aは、入力部11を介してユーザから加工データの変更を受け付け、加工データ関係情報に基づいてステップS24で編集された加工プログラムの編集内容に関係することが判定した場合、加工データが編集されていること、加工データを変更すると編集内容が破棄されることのワーニングを表示部12に表示する。ツールパス影響判定部104aは、ユーザにより加工データを変更し編集内容を破棄することが選択された場合、加工データを変更する。In step S25, the toolpath influence determination unit 104a receives a change in machining data from the user via the input unit 11. If it determines, based on the machining data-related information, that the change is related to the edited content of the machining program edited in step S24, it displays a warning on the display unit 12 indicating that the machining data has been edited and that changing the machining data will discard the edited content. If the user chooses to change the machining data and discard the edited content, the toolpath influence determination unit 104a changes the machining data.

以上により、第2実施形態に係る加工プログラム編集装置1Aは、加工データと加工データを基に生成した加工プログラムとの関係を示す加工データ関係情報を生成し、加工データが変更された場合、加工データ関係情報を使用して加工データの変更部分と加工プログラムの編集内容とを比較し、ツールパスに影響するか否かを判定する。これにより、加工プログラム編集装置1Aは、ツールパスに影響する編集内容であっても、編集内容に直接関係のない加工データを変更でき、加工プログラムの編集が容易になる。
また、加工プログラム編集装置1Aは、編集内容に関係する加工データについて事前にユーザに明示することにより、ユーザの作業負担を軽減することができる。すなわち、加工プログラム編集内容に関係する加工データが加工データの変更前に分かるため、どの加工データが加工プログラム編集内容に関係するかを加工データ入力画面で明示することが可能となり、ユーザの加工データ変更作業を容易にする効果を奏することができる。
また、加工プログラム編集装置1Aは、編集内容に関係する加工データを変更しようとした際にワーニングを表示することにより操作ミスを防止することができる。
以上、第2実施形態について説明した。
As described above, the machining program editing device 1A according to the second embodiment generates machining data relationship information that shows the relationship between machining data and a machining program generated based on the machining data. When machining data is changed, the device uses the machining data relationship information to compare the changed portion of the machining data with the edited content of the machining program and determines whether or not it affects the toolpath. As a result, the machining program editing device 1A can change machining data that is not directly related to the edited content, even if the edited content affects the toolpath, making it easier to edit the machining program.
Furthermore, the processing program editing device 1A can reduce the user's workload by clearly indicating to the user in advance the processing data related to the editing content. In other words, since the processing data related to the processing program editing content is known before the processing data is changed, it becomes possible to clearly indicate which processing data is related to the processing program editing content on the processing data input screen, thereby making the user's processing data modification work easier.
Furthermore, the processing program editing device 1A can prevent operational errors by displaying a warning when attempting to change processing data related to the editing content.
The second embodiment has now been described.

以上、第1実施形態及び第2実施形態について説明したが、加工プログラム編集装置1、1Aは、上述の実施形態に限定されるものではなく、目的を達成できる範囲での変形、改良等を含む。Although the first and second embodiments have been described above, the processing program editing devices 1 and 1A are not limited to the embodiments described above, and may include modifications, improvements, etc., to the extent that the objective can be achieved.

<変形例>
第1実施形態及び第2実施形態では、加工プログラム編集装置1、1Aは、数値制御装置(図示しない)と異なる装置としたが、これに限定されない。例えば、加工プログラム編集装置1、1Aは、数値制御装置(図示しない)に含まれてもよい。
<Different example>
In the first and second embodiments, the machining program editing devices 1 and 1A are separate devices from the numerical control device (not shown), but the embodiment is not limited to this. For example, the machining program editing devices 1 and 1A may be included in the numerical control device (not shown).

なお、第1実施形態及び第2実施形態における、加工プログラム編集装置1、1Aに含まれる各機能は、ハードウェア、ソフトウェア又はこれらの組み合わせによりそれぞれ実現することができる。ここで、ソフトウェアによって実現されるとは、コンピュータがプログラムを読み込んで実行することにより実現されることを意味する。Furthermore, each function included in the processing program editing devices 1 and 1A in the first and second embodiments can be realized by hardware, software, or a combination thereof. Here, realization by software means that it is realized by a computer reading and executing a program.

プログラムは、様々なタイプの非一時的なコンピュータ可読媒体(Non-transitory computer readable medium)を用いて格納され、コンピュータに供給することができる。非一時的なコンピュータ可読媒体は、様々なタイプの実体のある記録媒体(Tangible storage medium)を含む。非一時的なコンピュータ可読媒体の例は、磁気記録媒体(例えば、フレキシブルディスク、磁気テープ、ハードディスクドライブ)、光磁気記録媒体(例えば、光磁気ディスク)、CD-ROM(Read Only Memory)、CD-R、CD-R/W、半導体メモリ(例えば、マスクROM、PROM(Programmable ROM)、EPROM(Erasable PROM)、フラッシュROM、RAM)を含む。また、プログラムは、様々なタイプの一時的なコンピュータ可読媒体(Transitory computer readable medium)によってコンピュータに供給されてもよい。一時的なコンピュータ可読媒体の例は、電気信号、光信号、及び電磁波を含む。一時的なコンピュータ可読媒体は、電線及び光ファイバ等の有線通信路、又は、無線通信路を介して、プログラムをコンピュータに供給できる。Programs can be stored and supplied to a computer using various types of non-transitor computer-readable media. Non-transitor computer-readable media include various types of tangible storage media. Examples of non-transitor computer-readable media include magnetic recording media (e.g., flexible disks, magnetic tapes, hard disk drives), magneto-optical recording media (e.g., magneto-optical disks), CD-ROMs (Read Only Memory), CD-Rs, CD-R/Ws, and semiconductor memory (e.g., mask ROMs, PROMs (Programmable ROMs), EPROMs (Erasable PROMs), flash ROMs, RAMs). Furthermore, programs may be supplied to the computer by various types of temporary computer-readable media. Examples of temporary computer-readable media include electrical signals, optical signals, and electromagnetic waves. Temporary computer-readable media can be supplied to the computer via wired communication channels such as electric wires and optical fibers, or via wireless communication channels.

なお、記録媒体に記録されるプログラムを記述するステップは、その順序に沿って時系列的に行われる処理はもちろん、必ずしも時系列的に処理されなくとも、並列的あるいは個別に実行される処理をも含むものである。Furthermore, the step of writing the program to be recorded on the recording medium includes not only processes that are performed chronologically in that order, but also processes that are not necessarily performed chronologically, but are executed in parallel or individually.

以上を換言すると、本開示の加工プログラム編集装置、及び加工プログラム編集方法は、次のような構成を有する各種各様の実施形態を取ることができる。In other words, the processing program editing device and processing program editing method of this disclosure can take various forms having the following configurations.

(1)本開示の加工プログラム編集装置1は、送り速度、主軸速度、使用工具、切込み量、加工形状、位置情報の少なくともいずれかを含む加工データを入力する加工データ入力部101と、加工データを基に加工プログラムを生成する加工プログラム生成部102と、加工プログラム生成部102で生成した加工プログラムを編集する加工プログラム編集部103と、加工データと、加工プログラム生成部102で生成した加工プログラムと、加工プログラム編集部103で編集した加工プログラムの編集内容と、を記憶する記憶部13と、加工データが変更された場合、加工データの変更部分と加工プログラムの編集内容とを比較し、ツールパスに影響するか否かを判定するツールパス影響判定部104と、を備える。
この加工プログラム編集装置1によれば、ツールパスに影響する編集内容であっても、編集内容に直接関係のない加工データを変更できる。
(1) The machining program editing device 1 of the present disclosure includes: a machining data input unit 101 for inputting machining data including at least one of feed rate, spindle speed, tool used, depth of cut, machining shape, and position information; a machining program generation unit 102 for generating a machining program based on the machining data; a machining program editing unit 103 for editing the machining program generated by the machining program generation unit 102; a storage unit 13 for storing machining data, the machining program generated by the machining program generation unit 102, and the edited contents of the machining program edited by the machining program editing unit 103; and a toolpath influence determination unit 104 for determining whether or not the toolpath is affected when the machining data is changed by comparing the changed portion of the machining data with the edited contents of the machining program.
This machining program editing device 1 allows for the modification of machining data that is not directly related to the editing content, even if the editing content affects the toolpath.

(2) (1)に記載の加工プログラム編集装置1Aにおいて、加工データと加工データを基に生成した加工プログラムとの関係を示す加工データ関係情報を生成する加工データ関係情報生成部105を備え、ツールパス影響判定部104aは、加工データ関係情報を使用して加工データの変更部分と加工プログラムの編集内容とを比較し、ツールパスに影響するか否かを判定してもよい。(2) The machining program editing device 1A described in (1) may be equipped with a machining data relationship information generation unit 105 that generates machining data relationship information showing the relationship between machining data and a machining program generated based on the machining data, and the toolpath influence determination unit 104a may use the machining data relationship information to compare the changed portion of the machining data with the edited content of the machining program and determine whether or not it will affect the toolpath.

(3) (1)又は(2)に記載の加工プログラム編集装置1、1Aは、表示部12をさらに備え、ツールパス影響判定部104、104aは、ツールパスに影響すると判定した場合、表示部12に警告を表示してもよい。(3) The machining program editing device 1, 1A described in (1) or (2) further comprises a display unit 12, and the toolpath influence determination unit 104, 104a may display a warning on the display unit 12 if it determines that the toolpath is being affected.

(4)本開示の加工プログラム編集方法は、コンピュータを加工プログラム編集装置として機能させる加工プログラム編集方法であって、送り速度、主軸速度、使用工具、切込み量、加工形状、位置情報の少なくともいずれかを含む加工データを入力する加工データ入力ステップと、加工データを基に加工プログラムを生成する加工プログラム生成ステップと、加工プログラム生成ステップで生成した加工プログラムを編集する加工プログラム編集ステップと、加工データと、加工プログラム生成ステップで生成した加工プログラムと、加工プログラム編集ステップで編集した加工プログラムの編集内容と、を記憶する記憶ステップと、加工データが変更された場合、加工データの変更部分と加工プログラムの編集内容とを比較し、ツールパスに影響するか否かを判定するツールパス影響判定ステップと、を備える。
このプログラム編集方法は、(1)と同様の効果を奏することができる。
(4) The machining program editing method of the present disclosure is a machining program editing method that causes a computer to function as a machining program editing device, and comprises: a machining data input step of inputting machining data including at least one of feed rate, spindle speed, tool used, depth of cut, machining shape, and position information; a machining program generation step of generating a machining program based on the machining data; a machining program editing step of editing the machining program generated in the machining program generation step; a storage step of storing machining data, the machining program generated in the machining program generation step, and the edited contents of the machining program edited in the machining program editing step; and a toolpath influence determination step of comparing the changed portion of the machining data with the edited contents of the machining program and determining whether or not it affects the toolpath when the machining data is changed.
This program editing method can produce the same effect as (1).

1、1A 加工プログラム編集装置
10、10a 制御部
101 加工データ入力部
102 加工プログラム生成部
103 加工プログラム編集部
104、104a ツールパス影響判定部
105 加工データ関係情報生成部
11 入力部
12 表示部
13記憶部
1, 1A Machining program editing device 10, 10a Control unit 101 Machining data input unit 102 Machining program generation unit 103 Machining program editing unit 104, 104a Toolpath influence determination unit 105 Machining data related information generation unit 11 Input unit 12 Display unit 13 Storage unit

Claims (4)

送り速度、主軸速度、使用工具、切込み量、加工形状、位置情報の少なくともいずれかを含む加工データを入力する加工データ入力部と、
前記加工データを基に加工プログラムを生成する加工プログラム生成部と、
前記加工プログラム生成部で生成した加工プログラムを編集する加工プログラム編集部と、
前記加工データと、前記加工プログラム生成部で生成した加工プログラムと、前記加工プログラム編集部で編集した加工プログラムの編集内容と、を記憶する記憶部と、
前記加工プログラム編集部で前記加工プログラムを編集した後に前記加工データ変更された場合、前記加工データの変更をした加工プログラムを仮生成し、前記仮生成した加工プログラムの加工データが変更された部分と前記加工プログラムの編集内容とを比較し、ツールパスに影響するか否かを判定するツールパス影響判定部と、
を備える加工プログラム編集装置。
A machining data input unit that inputs machining data including at least one of the following: feed rate, spindle speed, tool used, depth of cut, machining shape, and position information.
A machining program generation unit that generates a machining program based on the aforementioned machining data,
A machining program editing unit edits the machining program generated by the machining program generation unit,
A storage unit that stores the aforementioned processing data, the processing program generated by the processing program generation unit, and the edited content of the processing program edited by the processing program editing unit,
If the machining data is changed after the machining program has been edited by the machining program editing unit , the toolpath influence determination unit provisionally generates a machining program with the modified machining data, compares the modified portion of the provisionally generated machining program with the edited content of the machining program, and determines whether or not it affects the toolpath.
A processing program editing device equipped with the following features.
前記加工データと前記加工データを基に生成した加工プログラムとの関係を示す加工データ関係情報を生成する加工データ関係情報生成部を備え、
前記ツールパス影響判定部は、前記加工データ関係情報を使用して前記加工データの変更部分と前記加工プログラムの編集内容とを比較し、前記ツールパスに影響するか否かを判定する、請求項1に記載の加工プログラム編集装置。
The system includes a processing data relationship information generation unit that generates processing data relationship information showing the relationship between the processing data and the processing program generated based on the processing data,
The machining program editing device according to claim 1, wherein the toolpath influence determination unit compares the modified portion of the machining data with the edited content of the machining program using the machining data related information and determines whether or not it has an effect on the toolpath.
表示部をさらに備え、
前記ツールパス影響判定部は、前記ツールパスに影響すると判定した場合、前記表示部に警告を表示する、請求項1又は請求項2に記載の加工プログラム編集装置。
It also includes a display unit,
The machining program editing device according to claim 1 or 2, wherein the toolpath influence determination unit determines that the toolpath is affected and displays a warning on the display unit.
コンピュータを加工プログラム編集装置として機能させる加工プログラム編集方法であって、
送り速度、主軸速度、使用工具、切込み量、加工形状、位置情報の少なくともいずれかを含む加工データを入力する加工データ入力ステップと、
前記加工データを基に加工プログラムを生成する加工プログラム生成ステップと、
前記加工プログラム生成ステップで生成した加工プログラムを編集する加工プログラム編集ステップと、
前記加工データと、前記加工プログラム生成ステップで生成した加工プログラムと、前記加工プログラム編集ステップで編集した前記加工プログラムの編集内容と、を記憶する記憶ステップと、
前記加工プログラム編集ステップで前記加工プログラムを編集した後に前記加工データ変更された場合、前記加工データの変更をした加工プログラムを仮生成し、前記仮生成した加工プログラムの加工データが変更された部分と前記加工プログラムの編集内容とを比較し、ツールパスに影響するか否かを判定するツールパス影響判定ステップと、
を備える加工プログラム編集方法。
A method for editing machining programs that makes a computer function as a machining program editing device,
A machining data input step involves inputting machining data that includes at least one of the following: feed rate, spindle speed, tool used, depth of cut, machining shape, and position information.
A machining program generation step that generates a machining program based on the aforementioned machining data,
A machining program editing step for editing the machining program generated in the machining program generation step,
A storage step that stores the aforementioned processing data, the processing program generated in the processing program generation step, and the edited content of the processing program edited in the processing program editing step,
If the machining data is changed after the machining program has been edited in the machining program editing step , the toolpath impact determination step involves generating a provisional machining program with the modified machining data, comparing the modified portion of the provisionally generated machining program with the edited content of the machining program, and determining whether or not it affects the toolpath.
A method for editing a processing program, comprising the following features.
JP2024542493A 2022-08-24 2022-08-24 Machining program editing device and machining program editing method Active JP7842227B2 (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2022/031854 WO2024042633A1 (en) 2022-08-24 2022-08-24 Machining program editing device and machining program editing method

Publications (2)

Publication Number Publication Date
JPWO2024042633A1 JPWO2024042633A1 (en) 2024-02-29
JP7842227B2 true JP7842227B2 (en) 2026-04-07

Family

ID=90012699

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2024542493A Active JP7842227B2 (en) 2022-08-24 2022-08-24 Machining program editing device and machining program editing method

Country Status (2)

Country Link
JP (1) JP7842227B2 (en)
WO (1) WO2024042633A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005108077A (en) 2003-10-01 2005-04-21 Toyoda Mach Works Ltd Machining program creation support apparatus, creation support software, and storage medium
JP2015170147A (en) 2014-03-07 2015-09-28 Dmg森精機株式会社 NC program generation and editing device
JP2016139349A (en) 2015-01-29 2016-08-04 ファナック株式会社 Numerical control device capable of partially correcting processing cycle
WO2019130412A1 (en) 2017-12-26 2019-07-04 三菱電機株式会社 Machining program modification device and machining program modification method
JP2019159478A (en) 2018-03-08 2019-09-19 ファナック株式会社 Controller, data creation device, and control method and control program
JP2020038529A (en) 2018-09-05 2020-03-12 Dmg森精機株式会社 Program editor, processor, processing method, and computer program
WO2021157509A1 (en) 2020-02-06 2021-08-12 ファナック株式会社 Assistance device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005108077A (en) 2003-10-01 2005-04-21 Toyoda Mach Works Ltd Machining program creation support apparatus, creation support software, and storage medium
JP2015170147A (en) 2014-03-07 2015-09-28 Dmg森精機株式会社 NC program generation and editing device
JP2016139349A (en) 2015-01-29 2016-08-04 ファナック株式会社 Numerical control device capable of partially correcting processing cycle
WO2019130412A1 (en) 2017-12-26 2019-07-04 三菱電機株式会社 Machining program modification device and machining program modification method
JP2019159478A (en) 2018-03-08 2019-09-19 ファナック株式会社 Controller, data creation device, and control method and control program
JP2020038529A (en) 2018-09-05 2020-03-12 Dmg森精機株式会社 Program editor, processor, processing method, and computer program
WO2021157509A1 (en) 2020-02-06 2021-08-12 ファナック株式会社 Assistance device

Also Published As

Publication number Publication date
JPWO2024042633A1 (en) 2024-02-29
WO2024042633A1 (en) 2024-02-29

Similar Documents

Publication Publication Date Title
CN104334303A (en) Machining program-generating device, machining program-generating method, and recording medium
JP3451594B2 (en) Storage unit access control method and numerical control device in numerical control device
CN104956274B (en) Numerical control device
JP7842227B2 (en) Machining program editing device and machining program editing method
US10376977B2 (en) Control device, wire electrical discharge machine, program editing apparatus, and control method
JP2000126991A (en) Control device for NC machine tool
JP5339815B2 (en) Numerical control device with processing resumption function
US10564630B2 (en) Numerical controller
JPH03158908A (en) Automatic programming system in compound working machine
JP6408044B2 (en) Programmable controller
JP7846222B2 (en) Information processing device
JP2852986B2 (en) Processing system
WO2024236757A1 (en) Program creation device and program creation method
JP7088820B2 (en) Numerical control device
JP5161057B2 (en) Numerical control device having a plurality of function keys
JP7814645B1 (en) Numerical control device and numerical control method
WO2024134737A1 (en) Control apparatus and computer-readable recording medium
JPH06250722A (en) Interactive numerical controller
JPH01189704A (en) Numerical controller
JPS61168008A (en) Numerical control device
JP3129889B2 (en) Numerical control unit
WO2026088459A1 (en) Nesting method, unit machining program generation method, pipe machining tool, pipe machining system, and computer program
JP2992163B2 (en) Numerical control method and device
WO2026033616A1 (en) Numerical control device and numerical control method
WO2025229732A1 (en) Control device and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20250306

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20260106

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20260129

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20260224

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20260326

R150 Certificate of patent or registration of utility model

Ref document number: 7842227

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150