JP2014010501A - Teaching data editing system and program - Google Patents

Teaching data editing system and program Download PDF

Info

Publication number
JP2014010501A
JP2014010501A JP2012144682A JP2012144682A JP2014010501A JP 2014010501 A JP2014010501 A JP 2014010501A JP 2012144682 A JP2012144682 A JP 2012144682A JP 2012144682 A JP2012144682 A JP 2012144682A JP 2014010501 A JP2014010501 A JP 2014010501A
Authority
JP
Japan
Prior art keywords
file
identification information
teaching data
call
instruction
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.)
Granted
Application number
JP2012144682A
Other languages
Japanese (ja)
Other versions
JP5865192B2 (en
Inventor
Kenji Sadahiro
健次 定廣
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.)
Kobe Steel Ltd
Original Assignee
Kobe Steel Ltd
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 Kobe Steel Ltd filed Critical Kobe Steel Ltd
Priority to JP2012144682A priority Critical patent/JP5865192B2/en
Priority to CN201310146815.6A priority patent/CN103514148B/en
Publication of JP2014010501A publication Critical patent/JP2014010501A/en
Application granted granted Critical
Publication of JP5865192B2 publication Critical patent/JP5865192B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To reduce labor required for editing teaching data and prevent rewriting of call command from being omitted.SOLUTION: A teaching data editing system comprises: a list generation unit 42 for generating a list of identification information for files included in teaching data; a command receiving unit 43 for receiving an alteration command for altering the identification information for the files included in the list generated by the list generation unit 42; an identification information alteration unit 44 for, in accordance with the alteration command, specifying a target file that is a target of altering the identification information and altering the identification information for the specified target file; a retrieval unit 45 for retrieving a calling file that becomes a source of call, as a file having a call command for calling the target file out of the files included in the teaching data; and a command rewriting unit 46 for rewriting the identification information for the target file in the call command of the target file described in the retrieved calling file.

Description

本発明は、産業用ロボットの教示データを編集する編集システムおよびプログラムに関する。   The present invention relates to an editing system and program for editing teaching data of an industrial robot.

溶接を行う溶接ロボット等の産業用ロボットは、教示データを与えることにより、その教示データにより設定される作業を実行するように動作する(例えば、特許文献1、2参照)。教示データは、例えば、ロボットに実行させる動作を記述したプログラムファイルと各種の条件等のデータを記述したデータファイルの集合として構成される。そして、これらのファイルを組み合わせることにより、ロボットに所望の作業を実行させる。ここで、プログラムファイルやデータファイル(以下、プログラム等)は、相互に呼び出して利用することが可能となっている。   Industrial robots such as welding robots that perform welding operate to perform work set by the teaching data by providing the teaching data (see, for example, Patent Documents 1 and 2). The teaching data is configured, for example, as a set of a program file describing an operation to be executed by the robot and a data file describing data such as various conditions. Then, by combining these files, the robot is caused to execute a desired work. Here, a program file and a data file (hereinafter referred to as a program or the like) can be called and used.

ロボットによる作業を追加する場合、教示データを編集して、新たなプログラム等の組み合わせ(セット)が教示データに登録される。このとき、新たなプログラム等が教示データに追加される場合もある。また、既に存在する教示データに基づく作業を変更したり修正したりする場合、個々のプログラム等の内容が変更されたり、新たなプログラム等が教示データに追加されたりする。   When adding work by the robot, the teaching data is edited, and a combination (set) of a new program or the like is registered in the teaching data. At this time, a new program or the like may be added to the teaching data. Further, when the work based on already existing teaching data is changed or corrected, the contents of individual programs or the like are changed, or new programs or the like are added to the teaching data.

特開2005−135095号公報JP 2005-135095 A 特開2008−250706号公報JP 2008-250706 A

教示データを編集した際、プログラム等の識別情報(ファイル番号やファイル名など)が変更される場合がある。ここで、識別情報が変更されたプログラム等を呼び出す他のプログラム等が存在する場合、この呼び出し元のプログラム等における呼び出し命令を書き換え、その呼び出し命令に記述された呼び出し先のプログラム等の識別情報を変更する必要がある。   When teaching data is edited, identification information (file number, file name, etc.) such as a program may be changed. Here, if there is another program that calls the program whose identification information has been changed, the call instruction in the calling program is rewritten, and the identification information such as the called program described in the call instruction is changed. Need to change.

本発明は、教示データの編集においてプログラム等の識別情報が変更された際に、そのプログラム等を呼び出す呼び出し元における呼び出し命令を書き換える手間を削減し、呼び出し命令の書き換えの漏れの発生を防止することを目的とする。   The present invention reduces the trouble of rewriting a call instruction at a caller that calls a program or the like when the identification information of the program or the like is changed in teaching data editing, and prevents the occurrence of a rewrite of the call instruction. With the goal.

上記の目的を達成する本発明は、次のような編集システムとして実現される。この編集システムは、ロボットの教示データを編集する編集システムであって、複数のファイルを含む教示データを取得して保持する教示データ保持手段と、この教示データ保持手段に保持された教示データに含まれるファイルの識別情報のリストを作成するリスト作成手段と、このリスト作成手段により作成されたリストに含まれるファイルの識別情報を変更する変更命令を受け付ける命令受け付け手段と、この命令受け付け手段により受け付けた変更命令にしたがって、識別情報を変更する対象である対象ファイルを特定し、特定した対象ファイルの識別情報を変更する識別情報変更手段と、教示データに含まれるファイルのうち対象ファイルを呼び出す呼び出し命令を有するファイルとしての、呼び出しの元となる呼び出し元ファイルを検索する検索手段と、検索手段により検索された呼び出し元ファイルに記述されている対象ファイルの呼び出し命令における対象ファイルの識別情報を変更命令による変更後の識別情報に書き換える命令書き換え手段と、を備えることを特徴とする。
このような構成とすることにより、特定のファイルを指定して識別情報の変更を指示することにより、指定されたファイルの識別情報を変更すると共に、指定されたファイルを呼び出す他のファイルにおける呼び出し命令を自動的に書き換えることができる。
The present invention that achieves the above object is realized as the following editing system. This editing system is an editing system for editing robot teaching data, including teaching data holding means for acquiring and holding teaching data including a plurality of files, and teaching data held in the teaching data holding means. Creating means for creating a list of file identification information, command accepting means for accepting a change command for changing the identification information of a file included in the list created by the list creating means, and accepting by the command accepting means In accordance with the change instruction, an identification information changing means for specifying the target file whose identification information is to be changed, and changing the identification information of the specified target file, and a call instruction for calling the target file among the files included in the teaching data Caller file that is the source of the call as a file Searching means for searching, and instruction rewriting means for rewriting the identification information of the target file in the calling instruction of the target file described in the calling source file searched by the searching means to the identification information after being changed by the change instruction It is characterized by.
With such a configuration, by specifying a specific file and instructing to change the identification information, the identification information of the specified file is changed, and a call instruction in another file that calls the specified file Can be rewritten automatically.

ここで、命令書き換え手段は、対象ファイルがテーブルファイルである場合に、呼び出し元ファイルに記述されている対象ファイルの呼び出し命令における対象ファイルの識別情報を書き換える前に呼び出し命令の引数を保存し、対象ファイルの識別情報を書き換えた後に呼び出し命令の引数を保存した値に戻す。
このような構成とすることにより、テーブルファイルを呼び出す呼び出し元ファイルにおいて、テーブルファイルを呼び出す際の条件を変えることなく、呼び出し命令におけるファイルの識別情報を書き換えることができる。
Here, when the target file is a table file, the instruction rewriting means saves the call instruction argument before rewriting the identification information of the target file in the call instruction of the target file described in the caller file, After rewriting the file identification information, the call command argument is returned to the saved value.
With such a configuration, the file identification information in the call instruction can be rewritten in the caller file that calls the table file without changing the conditions for calling the table file.

また、本発明は、次のような編集システムとしても実現される。この編集システムは、溶接ロボットの教示データを編集する編集システムであって、少なくとも、ロボットの作業手順を記述したプログラムファイルと、ロボットの作業の条件に関する情報を記述したデータバンクファイルとが含まれると共に、ロボットの作業に関して設定されるパラメータを切り替えるために参照されるパラメータ切り替えテーブルファイルと、溶接作業におけるロボットの動作のパターンを記述した矢じりバンクファイルとが含まれ得る、教示データを取得して保持する教示データ保持手段と、教示データ保持手段に保持された教示データに含まれるファイルの識別情報を変更する変更命令を受け付ける命令受け付け手段と、命令受け付け手段により受け付けた変更命令にしたがって、識別情報を変更する対象である対象ファイルを特定し、特定した対象ファイルの識別情報を変更する識別情報変更手段と、教示データに含まれるファイルのうち対象ファイルを呼び出す呼び出し命令を有するファイルとしての、呼び出しの元となる呼び出し元ファイルを検索する検索手段と、この検索手段により検索された呼び出し元ファイルに記述されている対象ファイルの呼び出し命令を書き換える命令書き換え手段とを備える。そして、命令書き換え手段は、対象ファイルがプログラムファイル、パラメータ切り替えテーブルファイルまたは矢じりバンクファイルである場合に、呼び出し元ファイルに記述された呼び出し命令における対象ファイルの識別情報を変更命令による変更後の識別情報に書き換え、対象ファイルがデータバンクファイルである場合に、呼び出し元ファイルに記述された呼び出し命令の引数を保存し、呼び出し命令における識別情報を変更命令による変更後の識別情報に書き換え、識別情報を書き換えた呼び出し命令の引数を保存した値に戻すことを特徴とする。
このような構成とすることにより、溶接ロボットの教示データの編集作業において、特定のファイルを指定して識別情報の変更を指示することにより、指定されたファイルの識別情報を変更すると共に、指定されたファイルを呼び出す他のファイルにおける呼び出し命令を自動的に書き換えることができる。
The present invention is also realized as the following editing system. This editing system is an editing system that edits teaching data of a welding robot, and includes at least a program file that describes a robot work procedure and a data bank file that describes information related to robot work conditions. , Acquiring and holding teaching data, which may include a parameter switching table file to be referred to for switching parameters set for the robot work, and an arrowhead bank file describing a robot operation pattern in welding work The identification data is changed in accordance with the teaching data holding means, the instruction receiving means for receiving a change instruction for changing the identification information of the file included in the teaching data held in the teaching data holding means, and the change instruction received by the instruction receiving means. Pairs that are subject to An identification information changing means for identifying the file and changing the identification information of the identified target file, and a call source file as a call source as a file having a call instruction for calling the target file among the files included in the teaching data Search means for searching, and instruction rewriting means for rewriting the call instruction of the target file described in the call source file searched by the search means. Then, when the target file is a program file, a parameter switching table file, or an arrowhead bank file, the instruction rewriting means changes the identification information of the target file in the call instruction described in the caller file to the identification information after being changed by the change instruction. When the target file is a data bank file, save the call instruction argument described in the caller file, rewrite the identification information in the call instruction to the identification information changed by the change instruction, and rewrite the identification information. It is characterized in that the argument of the call instruction is returned to the saved value.
With such a configuration, in editing the teaching data of the welding robot, the identification information of the designated file is changed and designated by designating a specific file and instructing the change of the identification information. Call commands in other files that call a file can be automatically rewritten.

さらにまた、本発明は、コンピュータを制御して上述した編集システムの各機能を実現するプログラムとしても実現される。このプログラムは、磁気ディスクや光ディスク、半導体メモリ、その他の記録媒体に格納して配布したり、ネットワークを介して配信したりすることにより、提供することができる。   Furthermore, the present invention is also realized as a program that controls a computer to realize each function of the editing system described above. This program can be provided by being stored and distributed in a magnetic disk, an optical disk, a semiconductor memory, or other recording media, or distributed via a network.

本発明によれば、特定のファイルを指定して識別情報の変更を指示することにより、指定されたファイルの識別情報を変更すると共に、指定されたファイルを呼び出す他のファイルにおける呼び出し命令を自動的に書き換えることができるため、教示データの編集に要する手間を削減すると共に、呼び出し命令の書き換えの漏れの発生を防止することができる。   According to the present invention, by designating a specific file and instructing to change the identification information, the identification information of the designated file is changed, and a call instruction in another file that calls the designated file is automatically issued. Therefore, it is possible to reduce the time and effort required for editing the teaching data and to prevent the occurrence of rewriting of the call instruction.

本実施の形態に係る編集システムおよび溶接ロボットシステムの概略構成を示す図である。It is a figure which shows schematic structure of the edit system and welding robot system which concern on this Embodiment. 本実施の形態の教示データ編集装置のハードウェア構成例を示す図である。It is a figure which shows the hardware structural example of the teaching data editing apparatus of this Embodiment. 本実施の形態の教示データ編集装置の機能構成例を示す図である。It is a figure which shows the function structural example of the teaching data editing apparatus of this Embodiment. 本実施の形態によるファイルの識別情報の変更処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the change process of the identification information of the file by this Embodiment. 本実施の形態によるファイルの識別情報の変更処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the change process of the identification information of the file by this Embodiment. 本実施の形態によるファイルの識別情報の変更処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the change process of the identification information of the file by this Embodiment. 本実施の形態によるファイルの識別情報の変更処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the change process of the identification information of the file by this Embodiment. 本実施の形態によるファイルの識別情報の変更処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the change process of the identification information of the file by this Embodiment.

以下、添付図面を参照して、本発明の実施の形態について詳細に説明する。
本実施の形態では、溶接ロボットシステムにおける教示データの編集システムを例として説明する。
〔システム構成〕
図1は、本実施の形態に係る編集システムおよび溶接ロボットシステムの概略構成を示す図である。
図1に示すように、溶接ロボットシステムは、ロボット(マニピュレータ)10と、ロボットを制御する制御装置(コントローラ)20と、教示データを入力する教示装置30とを備える。また、編集システムは、例えばコンピュータシステムにより実現される教示データ編集装置40にて構成される。
Embodiments of the present invention will be described below in detail with reference to the accompanying drawings.
In this embodiment, a teaching data editing system in a welding robot system will be described as an example.
〔System configuration〕
FIG. 1 is a diagram showing a schematic configuration of an editing system and a welding robot system according to the present embodiment.
As shown in FIG. 1, the welding robot system includes a robot (manipulator) 10, a control device (controller) 20 for controlling the robot, and a teaching device 30 for inputting teaching data. The editing system is constituted by a teaching data editing device 40 realized by, for example, a computer system.

ロボット10は、複数の関節を有する腕(アーム)を備え、教示データに基づく各種の作業を行う。溶接ロボットシステムの場合、腕の先端には、対象物の溶接作業を行うための溶接トーチ11が設けられる。制御装置20は、教示データを記憶する記憶装置(メモリ)と、教示データを読み込んでロボット10の動作を制御する処理装置(CPU)とを備える。教示装置30は、ロボット10の教示作業の際に、操作者が溶接経路や溶接作業条件等を入力するために使用される。教示装置30は、液晶ディスプレイなどにより構成された表示画面31と、入力ボタン32とを備えている。   The robot 10 includes arms having a plurality of joints, and performs various operations based on teaching data. In the case of a welding robot system, a welding torch 11 for performing a welding operation of an object is provided at the tip of the arm. The control device 20 includes a storage device (memory) that stores teaching data and a processing device (CPU) that reads the teaching data and controls the operation of the robot 10. The teaching device 30 is used when an operator inputs a welding path, welding work conditions, and the like during teaching work of the robot 10. The teaching device 30 includes a display screen 31 constituted by a liquid crystal display or the like and an input button 32.

制御装置20は、ロボット10に対するインターフェイスおよび教示装置30に対するインターフェイスを有し、これらを介してロボット10および教示装置30と接続される。また、制御装置20は、例えばメモリカード等のリムーバブルな記憶媒体50に対してデータの読み書きを行うインターフェイスを備えており、教示データを記憶媒体50に書き出したり、記憶媒体50に書き込まれた教示データを読み込んで記憶装置に格納したりすることができる。   The control device 20 has an interface for the robot 10 and an interface for the teaching device 30, and is connected to the robot 10 and the teaching device 30 via these. In addition, the control device 20 includes an interface for reading and writing data from and to a removable storage medium 50 such as a memory card, for example, writing teaching data to the storage medium 50 or teaching data written to the storage medium 50. Can be read and stored in a storage device.

〔教示データ編集装置のハードウェア構成〕
図2は、教示データ編集装置40のハードウェア構成例を示す図である。
図2に示すように、教示データ編集装置40は、演算手段であるCPU(Central Processing Unit)101と、主記憶手段であるメモリ102を備える。また、外部デバイスとして、画像表示機構(ビデオカード等)103および表示装置104と、磁気ディスク装置(HDD:Hard Disk Drive)105と、キーボードやマウス等の入力デバイス106等を備える。また、記憶媒体50に対してデータの読み書きを行うためのドライバ107を備える。これにより、教示データ編集装置40は、記憶媒体50から教示データを読み込むことができる。なお、図2は、教示データ編集装置40をコンピュータシステムにて実現した場合のハードウェア構成を例示するに過ぎず、教示データ編集装置40は図示の構成に限定されない。
[Hardware configuration of teaching data editing device]
FIG. 2 is a diagram illustrating a hardware configuration example of the teaching data editing device 40.
As shown in FIG. 2, the teaching data editing apparatus 40 includes a CPU (Central Processing Unit) 101 that is a calculation unit and a memory 102 that is a main storage unit. Further, as external devices, an image display mechanism (video card or the like) 103 and a display device 104, a magnetic disk device (HDD: Hard Disk Drive) 105, an input device 106 such as a keyboard or a mouse, and the like are provided. In addition, a driver 107 for reading / writing data from / to the storage medium 50 is provided. Thereby, the teaching data editing device 40 can read teaching data from the storage medium 50. 2 merely illustrates a hardware configuration when the teaching data editing apparatus 40 is realized by a computer system, and the teaching data editing apparatus 40 is not limited to the illustrated configuration.

〔教示データ編集装置の機能構成〕
図3は、教示データ編集装置40の機能構成例を示す図である。
図3に示すように、教示データ編集装置40は、教示データ保持部41と、リスト作成部42と、命令受け付け部43と、識別情報変更部44と、検索部45と、呼び出し命令書き換え部46とを備える。教示データ保持部41は、例えば、図2に示したハードウェア構成におけるメモリ102や磁気ディスク装置105等の記憶手段により実現される。教示データ保持部41、リスト作成部42、命令受け付け部43、識別情報変更部44、検索部45、呼び出し命令書き換え部46は、例えば、図2に示したハードウェア構成におけるCPU101により実現される。より具体的には、コンピュータにて本実施の形態による教示データ編集装置40の機能を実現するプログラムが磁気ディスク装置105に格納され、このプログラムをメモリ102に展開し、CPU101が実行することにより、上記の教示データ保持部41、リスト作成部42、命令受け付け部43、識別情報変更部44、検索部45、呼び出し命令書き換え部46の各機能が実現される。
[Functional structure of teaching data editing device]
FIG. 3 is a diagram illustrating a functional configuration example of the teaching data editing device 40.
As shown in FIG. 3, the teaching data editing device 40 includes a teaching data holding unit 41, a list creating unit 42, a command receiving unit 43, an identification information changing unit 44, a searching unit 45, and a calling command rewriting unit 46. With. The teaching data holding unit 41 is realized by, for example, a storage unit such as the memory 102 or the magnetic disk device 105 in the hardware configuration illustrated in FIG. The teaching data holding unit 41, the list creating unit 42, the command receiving unit 43, the identification information changing unit 44, the searching unit 45, and the calling command rewriting unit 46 are realized by the CPU 101 in the hardware configuration shown in FIG. 2, for example. More specifically, a program that realizes the function of the teaching data editing device 40 according to the present embodiment on a computer is stored in the magnetic disk device 105, this program is expanded in the memory 102, and executed by the CPU 101. The functions of the teaching data holding unit 41, the list creating unit 42, the command receiving unit 43, the identification information changing unit 44, the searching unit 45, and the calling command rewriting unit 46 are realized.

教示データ保持部41は、ドライバ107を介して記憶媒体50から読み込んだ教示データを保持する。教示データ保持部41に保持された教示データは、教示データ編集装置40による編集処理の対象となる。したがって、編集処理が行われたのちは、編集後の教示データが教示データ保持部41に保持される。ここで、教示データは、プログラムファイルやデータファイルの集合として構成される。本実施の形態では、溶接ロボットシステムを例としているので、プログラムファイル、データバンクファイル、パラメータ切り替えテーブルファイル、矢じりバンクファイルの4種類のファイルによって構成されているものとする。各ファイルの詳細については後述する。   The teaching data holding unit 41 holds teaching data read from the storage medium 50 via the driver 107. The teaching data held in the teaching data holding unit 41 is subjected to editing processing by the teaching data editing device 40. Therefore, after the editing process is performed, the edited teaching data is held in the teaching data holding unit 41. Here, the teaching data is configured as a set of program files and data files. In this embodiment, since the welding robot system is taken as an example, it is assumed that it is constituted by four types of files: a program file, a data bank file, a parameter switching table file, and an arrowhead bank file. Details of each file will be described later.

リスト作成部42は、教示データ保持部41に保持されている教示データに基づき、その教示データに含まれるファイルの識別情報のリストを作成する。この識別情報は、あるファイルから他のファイルを呼び出す場合に、呼び出し先のファイル(呼び出されるファイル)を特定するために用いられる。ファイルの識別情報としては、ファイル番号やファイル名を用いることができる。以下、本実施の形態では、ファイル番号をリストに記録する識別情報として用いる場合を例として説明する。リスト作成部42により作成された識別情報のリスト(ファイル番号リスト)は、例えば、図2に示した画像表示機構103の制御により、表示装置104に表示される。   The list creating unit 42 creates a list of identification information of files included in the teaching data based on the teaching data held in the teaching data holding unit 41. This identification information is used to specify a call destination file (file to be called) when calling another file from a certain file. As the file identification information, a file number or a file name can be used. Hereinafter, in the present embodiment, a case where a file number is used as identification information recorded in a list will be described as an example. The list of identification information (file number list) created by the list creation unit 42 is displayed on the display device 104, for example, under the control of the image display mechanism 103 shown in FIG.

本実施の形態では、ファイル番号リストを作成する際に、教示データに含まれるプログラムのツリー構造やデータバンクのテーブル構造に係る情報が抽出され、作業メモリ上に展開されるものとする。また、ファイル番号リストのデータ構成として、プログラムファイル間のツリー構造やデータバンクファイルのテーブル構造が反映された構成を採用しても良い。この場合、作業メモリ上に展開された情報やファイル番号リストを参照することにより、あるプログラムファイルやデータバンクファイルが他のファイルを呼び出すか否かを判断することができる。   In this embodiment, when creating a file number list, information related to the tree structure of the program and the table structure of the data bank included in the teaching data is extracted and developed on the work memory. Further, as the data structure of the file number list, a structure reflecting a tree structure between program files and a table structure of a data bank file may be adopted. In this case, it is possible to determine whether a certain program file or data bank file calls another file by referring to the information or file number list developed on the working memory.

命令受け付け部43は、ファイルの識別情報であるファイル番号を変更する命令(変更命令)を受け付ける。ファイル番号の変更を行う場合、リスト作成部42により作成されたファイル番号リストが表示装置104に表示されると、操作者は、表示装置104に表示されたファイル番号リストを参照して所望のファイル番号を指定し、変更命令を入力する。ファイル番号の変更命令の入力は、例えば、操作者が図2に示した入力デバイス106を操作することによって行われる。   The command receiving unit 43 receives a command (change command) for changing a file number, which is file identification information. When changing the file number, when the file number list created by the list creation unit 42 is displayed on the display device 104, the operator refers to the file number list displayed on the display device 104 and selects the desired file. Specify a number and enter a change order. The file number change command is input, for example, when the operator operates the input device 106 shown in FIG.

識別情報変更部44は、命令受け付け部43により受け付けた変更命令に基づき、教示データ保持部41に保持されている教示データのファイルのうち、指定されたファイル番号のファイルを読み込み、変更命令に従ってファイル番号を変更する。そして、ファイル番号が変更されたファイルを、教示データ保持部41に格納する。教示データのいずれかのファイルのファイル番号が変更されると、リスト作成部42は、そのファイル番号の変更を反映させてファイル番号リストを更新する。   Based on the change command received by the command receiving unit 43, the identification information changing unit 44 reads a file having the designated file number from among the teaching data files held in the teaching data holding unit 41, and the file according to the change command. Change the number. Then, the file whose file number has been changed is stored in the teaching data holding unit 41. When the file number of any file of the teaching data is changed, the list creation unit 42 updates the file number list by reflecting the change of the file number.

検索部45は、識別情報変更部44によりファイル番号が変更されるファイルを呼び出す呼び出し元のファイル(以下、呼び出し元ファイル)を検索する。言い換えると、検索対象のファイルは、他のファイルを呼び出す呼び出し命令を有するファイルであって、その呼び出し対象のファイル(以下、呼び出し先ファイル)が識別情報変更部44によりファイル番号を変更されるファイルであるようなファイルである。他のファイルを呼び出す呼び出し命令を有する呼び出し元ファイルとなり得るファイルは、上記の4種類のファイルのうち、プログラムファイルとデータバンクファイルのみである。検索方法の詳細については後述する。   The search unit 45 searches for a calling source file (hereinafter called a calling source file) that calls a file whose file number is changed by the identification information changing unit 44. In other words, the file to be searched is a file having a call instruction for calling another file, and the file to be called (hereinafter called a call destination file) is a file whose file number is changed by the identification information changing unit 44. It is a certain file. Of the above four types of files, only the program file and the data bank file can be called as a caller file having a call instruction for calling another file. Details of the search method will be described later.

呼び出し命令書き換え部46は、検索部45により検索された呼び出し元ファイルの呼び出し命令に記述されている呼び出し先ファイルのファイル番号を、命令受け付け部43により受け付けた変更命令に基づいて書き換える。すなわち、識別情報変更部44による呼び出し先ファイル自身のファイル番号の変更に合わせて、呼び出し命令中の呼び出し先のファイル番号が書き換わる。   The call command rewriting unit 46 rewrites the file number of the call destination file described in the call command of the call source file searched by the search unit 45 based on the change command received by the command receiving unit 43. That is, in accordance with the change of the file number of the call destination file itself by the identification information changing unit 44, the file number of the call destination in the call instruction is rewritten.

なお、本実施の形態では、記憶媒体50を介して、教示データ編集装置40が溶接ロボットシステムの制御装置20から教示データを取得する構成としたが、ネットワーク等を介して制御装置20と教示データ編集装置40とを接続しデータ交換することにより、教示データ編集装置40が教示データを取得する構成としても良い。   In the present embodiment, the teaching data editing device 40 acquires teaching data from the control device 20 of the welding robot system via the storage medium 50. However, the control device 20 and teaching data via a network or the like are used. The teaching data editing device 40 may acquire teaching data by connecting the editing device 40 and exchanging data.

〔処理対象となるファイルの種類および内容〕
ここで、本実施の形態の処理対象である教示データを構成するファイルの種類とその内容について説明する。上述したように、本実施の形態による溶接ロボットシステムの教示データは、プログラムファイル、データバンクファイル、パラメータ切り替えテーブルファイル、矢じりバンクファイルの4種類のファイルによって構成される。なお、プログラムファイルは必須のファイルであるが、その他のファイルは教示データによっては、存在しない場合もある。
[Type and contents of files to be processed]
Here, the types and contents of files constituting the teaching data to be processed in the present embodiment will be described. As described above, the teaching data of the welding robot system according to the present embodiment is composed of four types of files: a program file, a data bank file, a parameter switching table file, and an arrowhead bank file. The program file is an essential file, but other files may not exist depending on teaching data.

プログラムファイルは、ロボット10の作業位置や姿勢、作業手順等を記述したファイルである。
データバンクファイルは、プログラムファイルにより参照される、各種の作業条件を登録したテーブルである。溶接ロボットシステムにおいては、主に溶接条件(溶接作業に関連するパラメータ)が登録される。
The program file is a file describing the work position and posture of the robot 10, work procedures, and the like.
The data bank file is a table in which various work conditions referred to by the program file are registered. In the welding robot system, welding conditions (parameters related to welding work) are mainly registered.

パラメータ切り替えテーブルファイルは、ロボット10の作業における仕様(例えば、溶接作業の場合、溶接ワイヤの種類やワイヤの突出し長さ等)を複数の設定で実現したい場合等に、これらの仕様ごとに設定されるパラメータを切り替えるために用いられるテーブルである。
矢じりバンクファイルは、溶接作業におけるロボット10のウィービング動作のパターンを登録したテーブルである。
The parameter switching table file is set for each specification when it is desired to realize specifications for the work of the robot 10 (for example, in the case of welding work, the type of welding wire, the protruding length of the wire, etc.) with a plurality of settings. This table is used for switching parameters.
The arrowhead bank file is a table in which patterns of weaving operations of the robot 10 in welding work are registered.

上述したように、これら4種類のファイルのうち、プログラムファイルおよびデータバンクファイルは、他のファイルを呼び出す呼び出し命令を有する場合がある。すなわち、他のファイルの呼び出し元ファイルとなる場合がある。一方、パラメータ切り替えテーブルファイルおよび矢じりバンクファイルは、他のファイルを呼び出す呼び出し元ファイルとはならない。   As described above, among these four types of files, the program file and the data bank file may have a call instruction for calling another file. That is, it may be a caller file for another file. On the other hand, the parameter switching table file and the arrowhead bank file are not caller files that call other files.

〔識別情報変更処理の内容〕
図4〜図8は、本実施の形態によるファイルの識別情報の変更処理の流れを示すフローチャートである。
初期状態として、事前に処理対象の教示データが取得されて教示データ保持部41に保持され、リスト作成部42によりファイル番号リストが作成されて表示装置104に表示されているものとする。そして、操作者が、入力デバイス106を操作し、ファイル番号を指定して変更命令を入力したものとする。
[Contents of identification information change processing]
4 to 8 are flowcharts showing the flow of file identification information change processing according to this embodiment.
As an initial state, it is assumed that teaching data to be processed is acquired in advance and held in the teaching data holding unit 41, and a file number list is created by the list creating unit 42 and displayed on the display device 104. It is assumed that the operator operates the input device 106 and designates a file number and inputs a change command.

まず、命令受け付け部43が、ファイル番号リストに基づいて、教示データに含まれる、変更命令により指定されたファイルを特定する(図4、ステップ401)。そして、ファイル番号の変更が可能なファイルか否か(ステップ402)、変更後の番号がファイル番号として使用可能な番号か否か(ステップ403)を判定する。変更命令により指定されたファイルが、プログラムファイル、データバンクファイル、パラメータ切り替えテーブルファイル、矢じりバンクファイルのいずれかであるならば、ステップ402でYesである。そして、変更命令により付与される変更後のファイル番号が、教示データの仕様として使用可能な番号であれば、ステップ403でYesである。また、例えば、ファイル番号として使用可能な番号が1〜999であるのに、変更後の番号として1000が指示された場合は、使用不可能な番号なので、ステップ403でNoとなる。ステップ402またはステップ403でNoであった場合、その変更命令は実行できないため、処理を終了する。   First, the command receiving unit 43 specifies a file specified by the change command included in the teaching data based on the file number list (FIG. 4, step 401). Then, it is determined whether or not the file number can be changed (step 402) and whether or not the changed number can be used as a file number (step 403). If the file specified by the change command is any one of a program file, a data bank file, a parameter switching table file, and an arrowhead bank file, Yes in step 402. If the changed file number given by the change command is a number that can be used as the specification of the teaching data, Yes in step 403. Also, for example, when the number that can be used as the file number is 1 to 999 but 1000 is designated as the number after the change, the number is unusable, so No in step 403. If No in step 402 or 403, the change instruction cannot be executed, and the process is terminated.

ステップ402、403でいずれもYesであった場合、次に、検索部45が、教示データ保持部41に保持されている教示データからファイル(以下、第1対象ファイル)を一つ取り出す(ステップ404)。そして、取り出した第1対象ファイルがプログラムファイルか否かを判断する(ステップ405)。
第1対象ファイルがプログラムファイルであった場合、次に検索部45は、そのプログラムファイルが、プログラムファイル、データバンクファイル、パラメータ切り替えテーブルファイル、矢じりバンクファイルのいずれかを呼び出すファイル(呼び出し元ファイル)か否かを判断する(ステップ406)。
If both are Yes in steps 402 and 403, then the search unit 45 takes out one file (hereinafter referred to as the first target file) from the teaching data held in the teaching data holding unit 41 (step 404). ). Then, it is determined whether or not the extracted first target file is a program file (step 405).
If the first target file is a program file, the search unit 45 then calls the program file, the data bank file, the parameter switching table file, or the arrowhead bank file (calling source file). Whether or not (step 406).

第1対象ファイルがこれらのファイルのいずれかを呼び出すファイルである場合、次に検索部45は、呼び出し先のファイル(以下、第2対象ファイル)が変更命令により指定された(すなわち番号を変更しようとする)ファイルか否かを判断する(ステップ407)。
第2対象ファイルが変更命令で指定されたファイルである場合、次に、検索部45は、呼び出し先の第2対象ファイルが教示データに存在するか否かを判断する(ステップ408)。ここで、例えば、変更命令で指定されたファイル番号が間違っている場合や、誤って呼び出し先ファイルを削除してしまった場合等は、ステップ408でNoとなる。
When the first target file is a file that calls one of these files, the search unit 45 then specifies the call destination file (hereinafter, the second target file) by the change command (that is, changes the number). It is determined whether the file is a file (step 407).
When the second target file is a file specified by the change command, the search unit 45 next determines whether or not the second target file to be called exists in the teaching data (step 408). Here, for example, when the file number specified by the change command is wrong or when the call destination file is deleted by mistake, No is obtained in step 408.

第2対象ファイルが教示データに存在する場合、次に検索部45は、第1対象ファイルをプログラム呼び出し番号変更リストに登録する(ステップ409)。このプログラム呼び出し番号変更リストは、例えば、図2に示したハードウェア構成におけるメモリ102や磁気ディスク装置105等の記憶手段に格納される。
上記ステップ405乃至ステップ408のいずれかでNoであったならば、第1対象ファイルはプログラム呼び出し番号変更リストに登録されない。
If the second target file exists in the teaching data, the search unit 45 then registers the first target file in the program call number change list (step 409). This program call number change list is stored, for example, in a storage unit such as the memory 102 or the magnetic disk device 105 in the hardware configuration shown in FIG.
If No in any of Steps 405 to 408, the first target file is not registered in the program call number change list.

次に、検索部45は、ステップ404で教示データから取り出した第1対象ファイルがデータバンクファイルか否かを判断する(図5、ステップ410)。第1対象ファイルがプログラムファイルであった場合は(ステップ405でYes)、ステップ410ではNoとなる。また、第1対象ファイルがパラメータ切り替えテーブルファイルまたは矢じりバンクファイルであった場合も、ステップ410でNoとなる。
第1対象ファイルがデータバンクファイルであった場合、次に検索部45は、そのデータバンクが、パラメータ切り替えテーブルファイルまたは矢じりバンクファイルを呼び出すファイル(呼び出し元ファイル)か否かを判断する(ステップ411)。
Next, the search unit 45 determines whether or not the first target file extracted from the teaching data in step 404 is a data bank file (FIG. 5, step 410). If the first target file is a program file (Yes in Step 405), No in Step 410. Also, if the first target file is a parameter switching table file or an arrowhead bank file, the result in step 410 is No.
If the first target file is a data bank file, the search unit 45 next determines whether the data bank is a file (calling source file) that calls a parameter switching table file or an arrowhead bank file (step 411). ).

第1対象ファイルがこれらのファイルのいずれかを呼び出すファイルである場合、次に検索部45は、呼び出し先の第2対象ファイルが変更命令により指定された(すなわち番号を変更しようとする)ファイルか否かを判断する(ステップ412)。
第2対象ファイルが変更命令で指定されたファイルである場合、次に、検索部45は、呼び出し先の第2対象ファイルが教示データに存在するか否かを判断する(ステップ413)。
When the first target file is a file that calls one of these files, the search unit 45 next determines whether the second target file that is the call destination is a file that is designated by the change command (that is, the file whose number is to be changed). It is determined whether or not (step 412).
If the second target file is a file specified by the change command, the search unit 45 next determines whether or not the second target file to be called exists in the teaching data (step 413).

第2対象ファイルが教示データに存在する場合、次に検索部45は、第1対象ファイルをデータバンク呼び出し番号変更リストに登録する(ステップ414)。このデータバンク呼び出し番号変更リストは、例えば、図2に示したハードウェア構成におけるメモリ102や磁気ディスク装置105等の記憶手段に格納される。
上記ステップ410乃至ステップ413のいずれかでNoであったならば、第1対象ファイルはデータバンク呼び出し番号変更リストに登録されない。
以下、教示データに含まれる全てのファイルを処理対象(第1対象ファイル)として順次取得し、ステップ404乃至ステップ414の各処理を実行する(ステップ415)。
なお、上記の動作において、ステップ405乃至ステップ409の一連の処理と、ステップ410乃至ステップ414の一連の処理とは、いずれを先に行っても構わない。
If the second target file exists in the teaching data, the search unit 45 then registers the first target file in the data bank call number change list (step 414). The data bank call number change list is stored in, for example, a storage unit such as the memory 102 or the magnetic disk device 105 in the hardware configuration shown in FIG.
If No in any of Steps 410 to 413, the first target file is not registered in the data bank call number change list.
Thereafter, all the files included in the teaching data are sequentially acquired as processing targets (first target files), and each processing from step 404 to step 414 is executed (step 415).
In the above operation, any of the series of processing from Step 405 to Step 409 and the series of processing from Step 410 to Step 414 may be performed first.

次に、検索部45は、ステップ409で作成したプログラム呼び出し番号変更リストから、プログラムファイル(第1対象ファイル)を一つ取り出す(図6、ステップ416)。そして、取り出した第1対象ファイルに記述されているファイルの呼び出し命令を抽出し、命令リストに登録する(ステップ417)。ここで、命令リストは、例えば、図2に示したハードウェア構成におけるメモリ102や磁気ディスク装置105等の記憶手段に格納される。   Next, the search unit 45 extracts one program file (first target file) from the program call number change list created in step 409 (FIG. 6, step 416). Then, a file call command described in the extracted first target file is extracted and registered in the command list (step 417). Here, the instruction list is stored in, for example, a storage unit such as the memory 102 or the magnetic disk device 105 in the hardware configuration shown in FIG.

次に、検索部45は、命令リストから命令を一つ取り出す(ステップ418)。そして、取り出した命令がプログラムファイルを呼び出すプログラム呼び出し命令か否かを判定する(ステップ419)。プログラム呼び出し命令であった場合、次に検索部45は、そのプログラム呼び出し命令の呼び出し対象である呼び出し先ファイルが、変更命令により指定された(すなわち番号を変更しようとする)ファイルか否かを判断する(ステップ420)。   Next, the search unit 45 extracts one instruction from the instruction list (step 418). Then, it is determined whether or not the fetched instruction is a program call instruction for calling a program file (step 419). If it is a program call instruction, the search unit 45 next determines whether the call destination file to be called by the program call instruction is a file designated by the change instruction (that is, the file whose number is to be changed). (Step 420).

プログラム呼び出し命令の呼び出し先ファイルが変更命令で指定されたファイルである場合、呼び出し命令書き換え部46が、そのプログラム呼び出し命令に記述されている呼び出し先ファイルのファイル番号を変更命令に基づいて書き換える(ステップ421)。
ステップ419またはステップ420のいずれかでNoであった場合、プログラム呼び出し命令の書き換えは行われない。
When the call destination file of the program call instruction is a file specified by the change instruction, the call instruction rewriting unit 46 rewrites the file number of the call destination file described in the program call instruction based on the change instruction (step 421).
If No in either step 419 or step 420, the program call instruction is not rewritten.

次に、検索部45は、ステップ418で取り出した命令がデータバンクファイルを呼び出すデータバンク呼び出し命令か否かを判定する(ステップ422)。データバンク呼び出し命令であった場合、次に検索部45は、そのデータバンク呼び出し命令の呼び出し対象である呼び出し先ファイルが、変更命令により指定されたファイルか否かを判断する(ステップ423)。   Next, the search unit 45 determines whether or not the instruction extracted in step 418 is a data bank call instruction for calling a data bank file (step 422). If it is a data bank call instruction, the search unit 45 next determines whether or not the call destination file to be called by the data bank call instruction is a file designated by the change instruction (step 423).

データバンク呼び出し命令の呼び出し先ファイルが変更命令で指定されたファイルである場合、呼び出し命令書き換え部46が、データバンク呼び出し命令の引数を一時的にバッファメモリに保存し(ステップ424)、そのデータバンク呼び出し命令に記述されている呼び出し先ファイルのファイル番号を変更命令に基づいて書き換える(ステップ425)。そして、書き換えたファイル番号を除き、他の引数を、ステップ424で保存した値に戻す(ステップ426)。
ステップ422またはステップ423のいずれかでNoであった場合、データバンク呼び出し命令の書き換えは行われない。
When the call destination file of the data bank call instruction is a file specified by the change instruction, the call instruction rewriting unit 46 temporarily stores the argument of the data bank call instruction in the buffer memory (step 424), and the data bank The file number of the call destination file described in the call command is rewritten based on the change command (step 425). Then, except for the rewritten file number, the other arguments are returned to the values stored in step 424 (step 426).
If No in either step 422 or step 423, the data bank call instruction is not rewritten.

次に、検索部45は、ステップ418で取り出した命令がパラメータ切り替えテーブルファイルを呼び出すパラメータ切り替えテーブル呼び出し命令か否かを判定する(図7、ステップ427)。パラメータ切り替えテーブル呼び出し命令であった場合、次に検索部45は、そのパラメータ切り替えテーブル呼び出し命令の呼び出し対象である呼び出し先ファイルが、変更命令により指定されたファイルか否かを判断する(ステップ428)。   Next, the search unit 45 determines whether or not the instruction extracted in step 418 is a parameter switching table calling instruction for calling the parameter switching table file (step 427 in FIG. 7). If the command is a parameter switching table call command, the search unit 45 next determines whether or not the call destination file that is the call target of the parameter switching table call command is a file specified by the change command (step 428). .

パラメータ切り替えテーブル呼び出し命令の呼び出し先ファイルが変更命令で指定されたファイルである場合、呼び出し命令書き換え部46が、そのパラメータ切り替えテーブル呼び出し命令に記述されている呼び出し先ファイルのファイル番号を変更命令に基づいて書き換える(ステップ429)。
ステップ427またはステップ428のいずれかでNoであった場合、パラメータ切り替えテーブル呼び出し命令の書き換えは行われない。
When the call destination file of the parameter switching table call instruction is a file specified by the change instruction, the call instruction rewriting unit 46 sets the file number of the call destination file described in the parameter change table call instruction based on the change instruction. (Step 429).
If the answer is No in either step 427 or step 428, the parameter switching table calling instruction is not rewritten.

次に、検索部45は、ステップ418で取り出した命令が矢じりバンクファイルを呼び出す矢じりバンク呼び出し命令か否かを判定する(ステップ430)。矢じりバンク呼び出し命令であった場合、次に検索部45は、その矢じりバンク呼び出し命令の呼び出し対象である呼び出し先ファイルが、変更命令により指定されたファイルか否かを判断する(ステップ431)。   Next, the search unit 45 determines whether or not the instruction extracted in step 418 is an arrowhead bank call instruction for calling an arrowhead bank file (step 430). If it is an arrowhead bank call instruction, the search unit 45 next determines whether the call destination file that is the call target of the arrowhead bank call instruction is a file specified by the change instruction (step 431).

矢じりバンク呼び出し命令の呼び出し先ファイルが変更命令で指定されたファイルである場合、呼び出し命令書き換え部46が、その矢じりバンク呼び出し命令に記述されている呼び出し先ファイルのファイル番号を変更命令に基づいて書き換える(ステップ432)。
ステップ430またはステップ431のいずれかでNoであった場合、矢じりバンク呼び出し命令の書き換えは行われない。
When the call destination file of the arrowhead bank call instruction is a file specified by the change instruction, the call instruction rewriting unit 46 rewrites the file number of the callee file described in the arrowhead bank call instruction based on the change instruction. (Step 432).
If the answer is No in either step 430 or step 431, the arrowhead bank call instruction is not rewritten.

以下、ステップ417で命令リストに登録された全ての命令を順次取得し、ステップ418乃至ステップ432の各処理を実行する(ステップ433)。
そして、プログラム呼び出し番号変更リストに登録されている全ての第1対象ファイルを順次取得し、上記の呼び出し命令の書き換えに係る処理を行う(ステップ434)。
なお、上記の動作において、ステップ419乃至ステップ421の一連の処理と、ステップ422乃至ステップ426の一連の処理と、ステップ427乃至ステップ429の一連の処理と、ステップ430乃至ステップ432の一連の処理とは、どのような順番で実行しても構わない。
Thereafter, all the instructions registered in the instruction list in step 417 are sequentially acquired, and the processes in steps 418 to 432 are executed (step 433).
Then, all the first target files registered in the program call number change list are sequentially acquired, and the process related to the rewriting of the call instruction is performed (step 434).
Note that in the above operation, a series of processing from Step 419 to Step 421, a series of processing from Step 422 to Step 426, a series of processing from Step 427 to Step 429, and a series of processing from Step 430 to Step 432, May be executed in any order.

次に、検索部45は、ステップ414で作成したデータバンク呼び出し番号変更リストから、データバンクファイル(第1対象ファイル)を一つ取り出す(図8、ステップ435)。そして、取り出した第1対象ファイルの内容を読み込む(ステップ436)。   Next, the search unit 45 extracts one data bank file (first target file) from the data bank call number change list created in step 414 (step 435 in FIG. 8). Then, the contents of the extracted first target file are read (step 436).

次に、検索部45は、読み込んだ第1対象ファイルに、パラメータ切り替えテーブルファイルを呼び出すパラメータ切り替えテーブル呼び出し命令が存在するか否かを判定する(ステップ437)。パラメータ切り替えテーブル呼び出し命令が存在する場合、次に検索部45は、そのパラメータ切り替えテーブル呼び出し命令の呼び出し対象である呼び出し先ファイルが、変更命令により指定された(すなわち番号を変更しようとする)ファイルか否かを判断する(ステップ438)。   Next, the search unit 45 determines whether or not there is a parameter switching table calling instruction for calling the parameter switching table file in the read first target file (step 437). If there is a parameter switching table call instruction, the search unit 45 next determines whether the call destination file that is the call target of the parameter switching table call instruction is the file specified by the change instruction (that is, the file whose number is to be changed). It is determined whether or not (step 438).

パラメータ切り替えテーブル呼び出し命令の呼び出し先ファイルが変更命令で指定されたファイルである場合、呼び出し命令書き換え部46が、そのパラメータ切り替えテーブル呼び出し命令に記述されている呼び出し先ファイルのファイル番号を変更命令に基づいて書き換える(ステップ439)。
ステップ437またはステップ438のいずれかでNoであった場合、パラメータ切り替えテーブル呼び出し命令の書き換えは行われない。
When the call destination file of the parameter switching table call instruction is a file specified by the change instruction, the call instruction rewriting unit 46 sets the file number of the call destination file described in the parameter change table call instruction based on the change instruction. (Step 439).
If No in either step 437 or step 438, the parameter switching table calling instruction is not rewritten.

次に、検索部45は、読み込んだ第1対象ファイルに、矢じりバンクファイルを呼び出す矢じりバンク呼び出し命令が存在するか否かを判定する(ステップ440)。矢じりバンク呼び出し命令が存在する場合、次に検索部45は、その矢じりバンク呼び出し命令の呼び出し対象である呼び出し先ファイルが、変更命令により指定された(すなわち番号を変更しようとする)ファイルか否かを判断する(ステップ441)。   Next, the search unit 45 determines whether or not an arrowhead bank call instruction for calling an arrowhead bank file exists in the read first target file (step 440). If there is an arrowhead bank call instruction, the search unit 45 next determines whether the call destination file that is the call target of the arrowhead bank call instruction is a file specified by the change instruction (that is, the file whose number is to be changed). Is determined (step 441).

矢じりバンク呼び出し命令の呼び出し先ファイルが変更命令で指定されたファイルである場合、呼び出し命令書き換え部46が、その矢じりバンク呼び出し命令に記述されている呼び出し先ファイルのファイル番号を変更命令に基づいて書き換える(ステップ442)。
ステップ440またはステップ441のいずれかでNoであった場合、パラメータ切り替えテーブル呼び出し命令の書き換えは行われない。
When the call destination file of the arrowhead bank call instruction is a file specified by the change instruction, the call instruction rewriting unit 46 rewrites the file number of the callee file described in the arrowhead bank call instruction based on the change instruction. (Step 442).
If the answer is No in either step 440 or step 441, the parameter switching table calling instruction is not rewritten.

以上、ステップ435乃至ステップ442の各処理を、データバンク呼び出し番号変更リストに登録されている全ての第1対象ファイルに対して行う(ステップ443)。
なお、上記の動作において、ステップ437乃至ステップ439の一連の処理と、ステップ440乃至ステップ442の一連の処理とは、いずれを先に行っても構わない。
As described above, the processing from step 435 to step 442 is performed on all the first target files registered in the data bank call number change list (step 443).
In the above operation, any of the series of processing from Step 437 to Step 439 and the series of processing from Step 440 to Step 442 may be performed first.

以上のようにして、変更命令で指定されたファイルを呼び出す呼び出し命令を持つファイル(呼び出し元ファイル)に関して、その呼び出し命令における呼び出し先ファイルのファイル番号(変更命令により変更されるファイル番号)が書き換えられた後、識別情報変更部44が、変更命令で指定されたファイル自体のファイル番号を、変更命令に従って変更する(ステップ444)。   As described above, for a file having a call instruction (caller file) that calls a file specified by a change instruction, the file number of the callee file in the call instruction (file number changed by the change instruction) is rewritten. After that, the identification information changing unit 44 changes the file number of the file itself specified by the change command according to the change command (step 444).

本実施の形態では、上記のように、まず、ファイル番号リストの作成時に得られた情報に基づき、教示データに含まれるファイル間の呼び出し関係を検査し、ファイル番号の変更対象であるファイルを呼び出す呼び出し元ファイルを特定し(ステップ404〜ステップ414参照)、その後に、特定されたファイルを解析して、ファイルに含まれる命令を書き換える。このような手順を取ることにより、教示データに含まれる全てのファイルを逐次解析してファイル番号の変更対象であるファイルの呼び出し命令を検出する場合と比較して、解析対象のファイルを予め絞り込むことにより削減することができ、処理効率の向上を図ることができる。   In the present embodiment, as described above, first, based on the information obtained when creating the file number list, the call relationship between files included in the teaching data is checked, and the file whose file number is to be changed is called. The caller file is specified (see steps 404 to 414), and then the specified file is analyzed to rewrite the instructions included in the file. By taking such a procedure, it is possible to narrow down the files to be analyzed in advance, compared with the case of sequentially analyzing all the files included in the teaching data and detecting the call instruction of the file whose file number is to be changed. Therefore, the processing efficiency can be improved.

〔本実施の形態の他の構成例〕
上記の説明では、コンピュータにより実現された教示データ編集装置40が、溶接ロボットシステムの教示データを取得し、所望のファイルの識別情報(ここでは、ファイル番号)を変更する編集処理を行った。これに対し、本実施の形態による教示データ編集装置40の機能を、例えば、図1に示した溶接ロボットシステムの制御装置20および教示装置30により実現することもできる。
[Other configuration examples of this embodiment]
In the above description, the teaching data editing device 40 implemented by a computer acquires teaching data of the welding robot system and performs editing processing for changing identification information (here, a file number) of a desired file. On the other hand, the function of the teaching data editing device 40 according to the present embodiment can be realized by the control device 20 and the teaching device 30 of the welding robot system shown in FIG.

この場合、制御装置20は、図2に示したハードウェア構成例におけるCPU101、メモリ102、磁気ディスク装置105を備える。また、教示装置30の表示画面31およびその駆動機構により画像表示機構103および表示装置104が実現され、教示装置30の入力ボタン32により入力デバイス106が実現される。この場合、リスト作成部42により作成されたファイル番号リストは、教示装置30の表示画面31に表示される。そして、操作者は、教示装置30の入力ボタン32を操作して、所望のファイルのファイル番号の変更命令を入力する。制御装置20は、この教示装置30による入力操作を受け付け、変更命令により指定されたファイルを呼び出す呼び出し元ファイルの呼び出し命令を書き換えると共に、変更命令により指定されたファイル自体のファイル番号を変更する。   In this case, the control device 20 includes the CPU 101, the memory 102, and the magnetic disk device 105 in the hardware configuration example shown in FIG. In addition, the image display mechanism 103 and the display device 104 are realized by the display screen 31 of the teaching device 30 and its driving mechanism, and the input device 106 is realized by the input button 32 of the teaching device 30. In this case, the file number list created by the list creation unit 42 is displayed on the display screen 31 of the teaching device 30. Then, the operator operates the input button 32 of the teaching device 30 to input a command for changing the file number of a desired file. The control device 20 accepts an input operation by the teaching device 30, rewrites the call command of the caller file that calls the file specified by the change command, and changes the file number of the file itself specified by the change command.

40…教示データ編集装置、41…教示データ保持部、42…リスト作成部、43…命令受け付け部、44…識別情報変更部、45…検索部、46…呼び出し命令書き換え部 DESCRIPTION OF SYMBOLS 40 ... Teaching data editing apparatus, 41 ... Teaching data holding part, 42 ... List preparation part, 43 ... Instruction reception part, 44 ... Identification information change part, 45 ... Search part, 46 ... Call instruction rewriting part

Claims (5)

ロボットの教示データを編集する編集システムであって、
複数のファイルを含む前記教示データを取得して保持する教示データ保持手段と、
前記教示データ保持手段に保持された前記教示データに含まれる前記ファイルの識別情報のリストを作成するリスト作成手段と、
前記リスト作成手段により作成された前記リストに含まれる前記ファイルの前記識別情報を変更する変更命令を受け付ける命令受け付け手段と、
前記命令受け付け手段により受け付けた前記変更命令にしたがって、前記識別情報を変更する対象である対象ファイルを特定し、特定した当該対象ファイルの識別情報を変更する識別情報変更手段と、
前記教示データに含まれる前記ファイルのうち前記対象ファイルを呼び出す呼び出し命令を有するファイルとしての、呼び出しの元となる呼び出し元ファイルを検索する検索手段と、
前記検索手段により検索された前記呼び出し元ファイルに記述されている前記対象ファイルの呼び出し命令における当該対象ファイルの識別情報を前記変更命令による変更後の識別情報に書き換える命令書き換え手段と、
を備えることを特徴とする、教示データの編集システム。
An editing system for editing robot teaching data,
Teaching data holding means for acquiring and holding the teaching data including a plurality of files;
List creating means for creating a list of identification information of the file included in the teaching data held in the teaching data holding means;
Command receiving means for receiving a change command for changing the identification information of the file included in the list created by the list creating means;
In accordance with the change command received by the command receiving unit, the target file that is the target for changing the identification information is identified, and the identification information changing unit that changes the identification information of the specified target file;
Search means for searching a call source file as a call source as a file having a call command for calling the target file among the files included in the teaching data;
Instruction rewriting means for rewriting identification information of the target file in the call instruction of the target file described in the call source file searched by the search means to identification information after change by the change instruction;
A teaching data editing system comprising:
前記命令書き換え手段は、前記対象ファイルがテーブルファイルである場合に、前記呼び出し元ファイルに記述されている当該対象ファイルの呼び出し命令における当該対象ファイルの識別情報を書き換える前に当該呼び出し命令の引数を保存し、当該対象ファイルの識別情報を書き換えた後に当該呼び出し命令の引数を保存した値に戻すことを特徴とする、請求項1に記載の教示データの編集システム。   The instruction rewriting means, when the target file is a table file, saves the argument of the call instruction before rewriting the identification information of the target file in the call instruction of the target file described in the call source file 2. The teaching data editing system according to claim 1, wherein after the identification information of the target file is rewritten, the argument of the call instruction is returned to the stored value. ロボットの教示データを編集する編集システムとしてコンピュータを機能させるプログラムであって、
記憶装置に記憶された複数のファイルを含む前記教示データに含まれる当該ファイルの識別情報を読み出し、当該識別情報のリストを作成する機能と、
作成された前記リストに含まれる前記ファイルの前記識別情報を変更する変更命令を受け付ける機能と、
受け付けた前記変更命令にしたがって、前記識別情報を変更する対象である対象ファイルを特定し、特定した当該対象ファイルの識別情報を変更する機能と、
前記教示データに含まれる前記ファイルのうち前記対象ファイルを呼び出す呼び出し命令を有するファイルである呼び出し元ファイルを検索する機能と、
検索された前記呼び出し元ファイルに記述されている前記対象ファイルの呼び出し命令における当該対象ファイルの識別情報を前記変更命令による変更後の識別情報に書き換える機能と、
を前記コンピュータに実現させることを特徴とする、プログラム。
A program for causing a computer to function as an editing system for editing robot teaching data,
A function of reading identification information of the file included in the teaching data including a plurality of files stored in a storage device, and creating a list of the identification information;
A function of accepting a change command for changing the identification information of the file included in the created list;
According to the received change instruction, a function for specifying a target file that is a target for changing the identification information, and a function for changing the identification information of the specified target file;
A function of searching for a caller file that is a file having a call command for calling the target file among the files included in the teaching data;
A function of rewriting the identification information of the target file in the call instruction of the target file described in the retrieved caller file to the identification information after the change by the change instruction;
Is realized by the computer.
前記呼び出し元ファイルに記述されている前記呼び出し命令を書き換える機能において、前記対象ファイルがテーブルファイルである場合に、前記呼び出し元ファイルに記述されている当該対象ファイルの呼び出し命令における当該対象ファイルの識別情報を書き換える前に当該呼び出し命令の引数を保存し、当該対象ファイルの識別情報を書き換えた後に当該呼び出し命令の引数を保存した値に戻すことを特徴とする、請求項4に記載のプログラム。   In the function of rewriting the call instruction described in the call source file, when the target file is a table file, the identification information of the target file in the call instruction of the target file described in the call source file 5. The program according to claim 4, wherein an argument of the call instruction is saved before rewriting, and the argument of the call instruction is restored to the saved value after rewriting the identification information of the target file. 溶接ロボットの教示データを編集する編集システムであって、
少なくとも、ロボットの作業手順を記述したプログラムファイルと、ロボットの作業の条件に関する情報を記述したデータバンクファイルとが含まれると共に、ロボットの作業に関して設定されるパラメータを切り替えるために参照されるパラメータ切り替えテーブルファイルと、溶接作業におけるロボットの動作のパターンを記述した矢じりバンクファイルとが含まれ得る、前記教示データを取得して保持する教示データ保持手段と、
前記教示データ保持手段に保持された前記教示データに含まれる前記ファイルの識別情報を変更する変更命令を受け付ける命令受け付け手段と、
前記命令受け付け手段により受け付けた前記変更命令にしたがって、前記識別情報を変更する対象である対象ファイルを特定し、特定した当該対象ファイルの識別情報を変更する識別情報変更手段と、
前記教示データに含まれる前記ファイルのうち前記対象ファイルを呼び出す呼び出し命令を有するファイルとしての、呼び出しの元となる呼び出し元ファイルを検索する検索手段と、
前記検索手段により検索された前記呼び出し元ファイルに記述されている前記対象ファイルの呼び出し命令を書き換える命令書き換え手段とを備え、
前記命令書き換え手段は、
前記対象ファイルがプログラムファイル、パラメータ切り替えテーブルファイルまたは矢じりバンクファイルである場合に、前記呼び出し元ファイルに記述された前記呼び出し命令における当該対象ファイルの識別情報を前記変更命令による変更後の識別情報に書き換え、
前記対象ファイルがデータバンクファイルである場合に、前記呼び出し元ファイルに記述された前記呼び出し命令の引数を保存し、当該呼び出し命令における識別情報を前記変更命令による変更後の識別情報に書き換え、当該識別情報を書き換えた呼び出し命令の引数を保存した値に戻すことを特徴とする、教示データの編集システム。
An editing system for editing teaching data of a welding robot,
A parameter switching table that includes at least a program file that describes the robot work procedure and a data bank file that describes information related to the robot work conditions, and is referred to for switching parameters set for the robot work A teaching data holding means for acquiring and holding the teaching data, which may include a file and an arrowhead bank file describing a pattern of movement of the robot in the welding operation;
Command accepting means for accepting a change command for changing the identification information of the file included in the teaching data held in the teaching data holding means;
In accordance with the change command received by the command receiving unit, the target file that is the target for changing the identification information is identified, and the identification information changing unit that changes the identification information of the specified target file;
Search means for searching a call source file as a call source as a file having a call command for calling the target file among the files included in the teaching data;
Command rewriting means for rewriting the call instruction of the target file described in the call source file searched by the search means,
The command rewriting means is
When the target file is a program file, a parameter switching table file, or an arrowhead bank file, the identification information of the target file in the call instruction described in the caller file is rewritten with the identification information changed by the change instruction ,
When the target file is a data bank file, the argument of the call instruction described in the caller file is saved, and the identification information in the call instruction is rewritten with the identification information changed by the change instruction, and the identification A teaching data editing system, wherein an argument of a call instruction in which information is rewritten is returned to a stored value.
JP2012144682A 2012-06-27 2012-06-27 Teaching data editing system and program Active JP5865192B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2012144682A JP5865192B2 (en) 2012-06-27 2012-06-27 Teaching data editing system and program
CN201310146815.6A CN103514148B (en) 2012-06-27 2013-04-25 Training data editing system and welding robot system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012144682A JP5865192B2 (en) 2012-06-27 2012-06-27 Teaching data editing system and program

Publications (2)

Publication Number Publication Date
JP2014010501A true JP2014010501A (en) 2014-01-20
JP5865192B2 JP5865192B2 (en) 2016-02-17

Family

ID=49896893

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012144682A Active JP5865192B2 (en) 2012-06-27 2012-06-27 Teaching data editing system and program

Country Status (2)

Country Link
JP (1) JP5865192B2 (en)
CN (1) CN103514148B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101858803B1 (en) 2015-05-29 2018-05-17 쿠카 도이칠란트 게엠베하 Method for converting at least a first safety configuration file
CN112440277A (en) * 2019-09-03 2021-03-05 精工爱普生株式会社 Program recognition method and robot system

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015166574A1 (en) * 2014-05-01 2015-11-05 本田技研工業株式会社 Teaching data preparation device and teaching data preparation method for articulated robot
CN104898470B (en) * 2015-04-01 2017-09-15 湖北骐通智能科技股份有限公司 Robot teaching data generation system and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04350703A (en) * 1991-05-28 1992-12-04 Mitsubishi Electric Corp Robot language editing device
JPH08314527A (en) * 1995-05-22 1996-11-29 Ricoh Elemex Corp Operation teaching system for robot
JPH11207671A (en) * 1998-01-28 1999-08-03 Hitachi Ltd Teaching device for industrial robot
JP2001318708A (en) * 2000-05-10 2001-11-16 Mitsubishi Electric Corp Numerical controller

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4000306B2 (en) * 2003-06-02 2007-10-31 本田技研工業株式会社 Teaching data creation method for articulated robots
JP2005135095A (en) * 2003-10-29 2005-05-26 Kawasaki Heavy Ind Ltd Robot operation data generating device
CN101559601A (en) * 2009-04-28 2009-10-21 广州亚陆控制系统有限公司 Method and system for controlling manipulator
JP5190023B2 (en) * 2009-05-20 2013-04-24 株式会社神戸製鋼所 Welding setting device, welding robot system, and welding setting program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04350703A (en) * 1991-05-28 1992-12-04 Mitsubishi Electric Corp Robot language editing device
JPH08314527A (en) * 1995-05-22 1996-11-29 Ricoh Elemex Corp Operation teaching system for robot
JPH11207671A (en) * 1998-01-28 1999-08-03 Hitachi Ltd Teaching device for industrial robot
JP2001318708A (en) * 2000-05-10 2001-11-16 Mitsubishi Electric Corp Numerical controller

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101858803B1 (en) 2015-05-29 2018-05-17 쿠카 도이칠란트 게엠베하 Method for converting at least a first safety configuration file
CN112440277A (en) * 2019-09-03 2021-03-05 精工爱普生株式会社 Program recognition method and robot system
CN112440277B (en) * 2019-09-03 2023-11-21 精工爱普生株式会社 Program identification method and robot system

Also Published As

Publication number Publication date
CN103514148A (en) 2014-01-15
CN103514148B (en) 2017-03-01
JP5865192B2 (en) 2016-02-17

Similar Documents

Publication Publication Date Title
JP2020013526A (en) Programmable logic controller and main unit
JP4631562B2 (en) Information processing apparatus, information processing method, and computer program
JP2020013527A (en) Programmable logic controller and program formation assistance device
JP5865192B2 (en) Teaching data editing system and program
JP5026451B2 (en) Scenario editing method, apparatus and program thereof
JP5987853B2 (en) Ladder program creation device, computer program, and computer-readable information recording medium
JP2008142788A (en) Operation program preparation supporting method and operation program preparing device
US20160378098A1 (en) Numerical controller having function of automatically selecting storage destination of machining program
US11320976B2 (en) Program development support device, program development support method, and non-transitory computer-readable recording medium
JP6168206B2 (en) Information processing apparatus, information processing apparatus control method, and program
JP2019171498A (en) Robot program execution device, robot program execution method and program
JP4475933B2 (en) Flow diagram creation program and flow diagram creation method
JP2005338935A (en) In-house information system management device and method
JP2007193555A (en) Editing device and method, program, and recording medium
US20190369820A1 (en) Supporting device
JP4964036B2 (en) Editor device and editor program
JP2007058677A (en) Display control device and method
JP5839589B2 (en) Teaching data editing system and program
JP3953738B2 (en) Graphic editing device and recording medium storing program for functioning as graphic editing device
JP5720749B2 (en) Display program, display method, and computer
JP2020091766A (en) Electronic computer, method, and program
JP2013137716A (en) Macro expansion device and program
JP2009258905A (en) Software selection program and installer
JP4180099B2 (en) Recording medium recording sequence analysis program, sequence analysis apparatus, and sequence analysis method
KR101535599B1 (en) System and method of providing service of dynamically searching service

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140901

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150707

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150709

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150826

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: 20151222

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20151225

R150 Certificate of patent or registration of utility model

Ref document number: 5865192

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150