JP5804042B2 - Robot control system and robot control method - Google Patents
Robot control system and robot control method Download PDFInfo
- Publication number
- JP5804042B2 JP5804042B2 JP2013270457A JP2013270457A JP5804042B2 JP 5804042 B2 JP5804042 B2 JP 5804042B2 JP 2013270457 A JP2013270457 A JP 2013270457A JP 2013270457 A JP2013270457 A JP 2013270457A JP 5804042 B2 JP5804042 B2 JP 5804042B2
- Authority
- JP
- Japan
- Prior art keywords
- unit
- control
- data
- program
- robot
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims description 29
- 238000013500 data storage Methods 0.000 claims description 22
- 230000005540 biological transmission Effects 0.000 description 22
- 230000004044 response Effects 0.000 description 20
- 230000006870 function Effects 0.000 description 8
- 230000008569 process Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 230000004913 activation Effects 0.000 description 3
- 230000003139 buffering effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
Images
Landscapes
- Manipulator (AREA)
- Selective Calling Equipment (AREA)
Description
本発明は、ロボット制御システム、ロボット制御方法に関する。 The present invention relates to a robot control system and a robot control method.
機器の組み立てや部品搬送用途向け等に用いるロボットを制御するロボット制御システムは、一般的に動作制御装置と動作指示装置を備えている。動作制御装置は、例えば、ロボットの各軸のモーターを制御し、ロボットが所望の動作をするように制御する。また、動作指示装置は、例えば、外部ネットワークとのインタフェース、汎用アプリケーション、ロボット動作に必要なデータベース等を備えている。このようなロボット制御システムにおいて、動作指示装置は汎用性や拡張性が要求されるため、動作指示を行うアプリケーション等をインストールしたPC(パーソナル・コンピュータ)が用いられる。また、動作制御装置と動作指示装置とが、LAN等のネットワークやUSB(Universal
Serial Bus) I/F(インタフェース)を介して接続されている(例えば、特許文献1参照)。
2. Description of the Related Art A robot control system that controls a robot used for assembling equipment or carrying parts is generally provided with an operation control device and an operation instruction device. The motion control device controls, for example, a motor for each axis of the robot so that the robot performs a desired motion. The operation instruction device includes, for example, an interface with an external network, a general-purpose application, a database necessary for robot operation, and the like. In such a robot control system, since the operation instruction device is required to be versatile and expandable, a PC (personal computer) in which an application for instructing the operation is installed is used. In addition, the operation control device and the operation instruction device are connected to a network such as a LAN or USB (Universal
It is connected via a serial bus (I / F) (for example, see Patent Document 1).
しかしながら、特許文献1の図1のようなロボット制御システムにおいて、例えば、煩雑にPCの記憶部に記憶されているデータの書き込みや読み出しを行いPCのCPU(中央演算装置)をロボット制御以外のタスクが占有した場合、PCはロボットプログラムの実行に遅延が発生したり、またはデータの書き込みや読み出しに遅延が発生する場合がある。このため、PCのCPUをロボット制御以外のタスクが占有した場合、高速かつ遅延の少ないデータ送受信をPCと動作制御装置との間で行えないという問題があった。 However, in the robot control system as shown in FIG. 1 of Patent Document 1, for example, tasks other than robot control are performed by writing and reading data stored in the storage unit of the PC in a complicated manner. May cause a delay in execution of the robot program or a delay in data writing or reading. For this reason, when tasks other than robot control occupy the CPU of the PC, there is a problem that data transmission / reception with high speed and little delay cannot be performed between the PC and the operation control device.
本発明は、上記の問題点に鑑みてなされたものであって、高速かつ遅延の少ないデータ送受信をPCと動作制御装置との間で行うことができるロボット制御システムおよびロボット制御方法を提供することを課題としている。 The present invention has been made in view of the above problems, and provides a robot control system and a robot control method capable of performing high-speed and low-delay data transmission / reception between a PC and an operation control device. Is an issue.
上記課題を解決するため、本発明にかかるロボット制御システムは、プログラム記憶部とコントローラー統括部とプログラム実行部と通信部とを含む動作制御装置と、データ記憶部を含む動作指示装置と、を備え、前記プログラム記憶部は、前記動作指示装置から入力されたロボットの制御プログラムを記憶し、前記コントローラー統括部は、前記プログラム記憶部に記憶された前記制御プログラムを読み出し、前記プログラム実行部に出力し、前記プログラム実行部は、前記コントローラー統括部から出力された前記制御プログラムにより、前記ロボットを動作させ、前記制御プログラムに前記ロボットの動作結果の書き込み指示を含む場合には、前記コントローラー統括部を介さずに、前記通信部により前記動作結果が前記動作指示装置に送信され、前記動作結果が前記データ記憶部に記憶される。
また、本発明にかかるロボット制御システムは、筐体を備え、前記動作制御装置および前記動作指示装置は、前記筐体の内部に配置されている。
In order to solve the above problems, a robot control system according to the present invention includes an operation control device including a program storage unit, a controller control unit, a program execution unit, and a communication unit, and an operation instruction device including a data storage unit. The program storage unit stores a robot control program input from the operation instruction device, and the controller control unit reads the control program stored in the program storage unit and outputs the control program to the program execution unit. The program execution unit operates the robot according to the control program output from the controller control unit, and when the control program includes an instruction to write the operation result of the robot, The operation result is transmitted to the operation instruction device by the communication unit. Transmitted, the operation result is stored in the data storage unit.
Moreover, the robot control system according to the present invention includes a housing, and the motion control device and the motion instruction device are arranged inside the housing.
また、本発明にかかるロボット制御方法は、プログラム記憶部とコントローラー統括部とプログラム実行部と通信部とを含む動作制御装置と、データ記憶部を含む動作指示装置と、を備えるロボット制御システムのロボット制御方法であって、前記動作指示装置から入力されたロボットの制御プログラムを前記プログラム記憶部に記憶することと、前記プログラム記憶部に記憶された前記制御プログラムを読み出し、前記プログラム実行部に出力することと、前記コントローラー統括部から出力された前記制御プログラムにより、前記ロボットを動作させることと、前記制御プログラムに前記ロボットの動作結果の書き込み指示を含む場合には、前記コントローラー統括部を介さずに、前記通信部により前記動作結果を前記動作指示装置に送信し、前記動作結果を前記データ記憶部に記憶することと、を含む。
また、本発明にかかるロボット制御方法において、前記ロボット制御システムは、筐体を備え、前記動作制御装置および前記動作指示装置は、前記筐体の内部に配置されている。
A robot control method according to the present invention is a robot of a robot control system comprising: an operation control device including a program storage unit, a controller control unit, a program execution unit, and a communication unit; and an operation instruction device including a data storage unit. A control method for storing a robot control program input from the operation instruction device in the program storage unit, reading the control program stored in the program storage unit, and outputting the program to the program execution unit And when the robot is operated by the control program output from the controller control unit, and when the control program includes an instruction to write the operation result of the robot, without passing through the controller control unit. The operation result is sent to the operation instruction device by the communication unit. And includes a method comprising storing the operation result to the data storage unit.
In the robot control method according to the present invention, the robot control system includes a housing, and the motion control device and the motion instruction device are disposed inside the housing.
本発明によれば、高速かつ遅延の少ないデータ送受信をPCと動作制御装置との間で行うことができる。 According to the present invention, high-speed and low-delay data transmission / reception can be performed between a PC and an operation control apparatus.
以下、本発明の実施形態について、図1〜7を用いて説明する。なお、本発明は係る実施形態の構成に限定されず、本発明の技術思想の範囲内で種々の変更が可能である。 Hereinafter, embodiments of the present invention will be described with reference to FIGS. In addition, this invention is not limited to the structure of the embodiment which concerns, A various change is possible within the range of the technical idea of this invention.
[第一実施形態]
図1は、第一の実施形態におけるロボット制御システムの構成の一例を示すブロック図である。ロボット制御システム1は、動作制御装置2と動作指示装置3を備えている。動作制御装置2は、ロボット4が接続され、動作指示装置3は、画像表示装置5と入力装置6が接続されている。また、動作制御装置2と動作指示装置3は、LAN等のネットワークやUSB I/Fを介して接続している。また、ロボット4は、例えば、産業用のスカラロボットや多軸ロボット等であり、ロボット制御システム1により動作が制御される。
また、画像表示装置5は、入出力部306が出力する動作指示装置3の動作状態や各種データ、各種プログラムのデータ等を受け取り、受け取った動作指示装置3の動作状態や各種データ、各種プログラムのデータ等を表示する。また、入力装置6は、例えば、キーボード、マウス等であり、入出力部306に接続している。さらにまた、入力装置6に接続されたUSBメモリー等の外部記憶装置からデータを読み込み、入出力部306に読み込んだデータを出力する。
[First embodiment]
FIG. 1 is a block diagram showing an example of the configuration of the robot control system in the first embodiment. The robot control system 1 includes an
The
次に、動作制御装置2の構成について説明する。動作制御装置2は、通信部201と、プロキシ部202と、プログラム記憶部203と、コントローラー統括部204と、プログラム実行部205と、ロボット制御部206とを備えている。
Next, the configuration of the
通信部(第一通信部)201は、LAN等のネットワークやUSB I/Fを介して動作指示装置3と接続し、動作指示装置3との各種データや制御プログラム等の送受信を行う。また、通信部201は、受信した制御プログラムや制御に関わるデータ等をプロキシ部202に出力する。また、通信部201は、プロキシ部202が出力する制御に関わるデータや制御に関わるデータの読み出し指示、および、各種制御コマンドや各種データを受け取り、受け取った制御に関わるデータや制御に関わるデータの読み出し指示、および、各種制御コマンドや各種データを動作指示装置3に送信する。なお、制御に関するデータとは、例えば、ロボット4の各軸の角度や座標などの動作結果データなどである。
A communication unit (first communication unit) 201 is connected to the
プロキシ部(第一プロキシ部)202は、通信部201が出力する制御プログラムや制御に関わるデータ等を受け取る。また、プロキシ部202は、プログラム実行部205が出力する制御に関わるデータや制御に関わるデータの読み出し指示等を受け取る。また、プロキシ部202は、受け取ったデータから制御に関わるデータの読み出し指示等を検出し、コントローラー統括部204を介さず、直接、プログラム実行部205に検出した制御に関わるデータの読み出し指示を出力する。また、プロキシ部202は、コントローラー統括部204が出力する各種制御コマンドや各種データを受け取る。また、プロキシ部202は、プログラム実行部205から受け取った制御に関わるデータや制御に関わるデータの読み出し指示等、および、コントローラー統括部204から受け取った各種制御コマンドや各種データを通信部201に出力する。また、プロキシ部202は、受け取った各種コマンドや各種データを、一時的に記憶する送信バッファ211と受信バッファ212を備えている。
The proxy unit (first proxy unit) 202 receives a control program output from the
プログラム記憶部203は、ロボット4の制御プログラムが記憶されている。
The
コントローラー統括部204は、プロキシ部202が出力するロボット4の制御プログラムを受け取り、受け取った制御プログラムをプログラム記憶部203に書き込んで記憶させる。また、コントローラー統括部204は、プロキシ部202が出力する各種コマンドや各種データを受け取り、受け取った各種コマンドや各種データをプログラム実行部205に出力する。また、コントローラー統括部204は、プログラム実行部205が出力する各種コマンドや各種データを受け取り、受け取った各種コマンドや各種データをプロキシ部202に出力する。
The
プログラム実行部205は、コントローラー統括部204が出力する各種コマンドや各種データを受け取り、受け取った各種コマンドや各種データに基づき、ロボット4を制御するコマンドをロボット制御部206に出力する。また、プログラム実行部205は、制御プログラムの中に制御に関わるデータを書き込む指示、または、制御に関わるデータを読み出す指示を検出する。また、プログラム実行部205は、制御に関わるデータを書き込む指示を検出した場合、制御に関わるデータを、コントローラー統括部204を介さず、直接、プロキシ部202に出力する。また、プログラム実行部205は、制御に関わるデータを読み出す指示を検出した場合、制御に関わるデータを読み出す指示をプロキシ部202に出力する。また、プログラム実行部205は、プロキシ部202が出力する読み出し指示に対する応答である制御に関わるデータを受け取る。
The
ロボット制御部206は、プログラム実行部205が出力するロボット4の各種制御コマンドを受け取り、受け取った制御コマンドに基づいてロボット4を制御する。
The
次に、動作指示装置3の構成について説明する。動作指示装置3は、通信部301と、プロキシ部302と、データ読出・書込部303と、データ記憶部304と、プログラム部305と、入出力部306とを備えている。
Next, the configuration of the
通信部(第二通信部)301は、LAN等のネットワークやUSB I/Fを介して動作制御装置2と接続し、動作制御装置2との制御に関わるデータや制御に関わるデータの読み出し指示等、および、各種制御コマンドや各種データ等の送受信を行う。また、通信部301は、受信した制御に関わるデータや制御に関わるデータの読み出し指示等、および、各種制御コマンドや各種データ等をプロキシ部302に出力する。また、通信部301は、プロキシ部302が出力する動作結果データ、および、制御プログラムや各種制御コマンドや各種データ等を受け取る。また、通信部301は、プロキシ部302から受け取った動作結果データ、および、制御プログラムや各種制御コマンドや各種データ等を動作制御装置2に送信する。
A communication unit (second communication unit) 301 is connected to the
プロキシ部(第二プロキシ部)302は、通信部310が出力する制御に関わるデータ、および、各種制御コマンドや各種データ等を受け取る。また、プロキシ部302は、受け取った制御に関わるデータ、および、各種制御コマンドや各種データ等から制御に関わるデータと制御に関わるデータの読み出し指示、または、制御に関わるデータの書き込み指示を検出し、検出した制御に関わるデータの読み出し指示をデータ読出・書込部303に出力する。また、プロキシ部302は、データ読出・書込部303が出力する制御に関わるデータを受け取る。また、プロキシ部302は、プログラム部305が出力するロボット4の制御プログラムを受け取る。また、プロキシ部302は、受け取った各種コマンドや各種データのバッファを行う送信バッファ311と受信バッファ312を備えている。
The proxy unit (second proxy unit) 302 receives data related to control output from the communication unit 310, various control commands, various data, and the like. Further, the
データ読出・書込部303は、プロキシ部302が出力する制御に関わるデータや制御に関わるデータの読み出し指示や書き込み指示等を受け取る。また、データ読出・書込部303は、プロキシ部302から受け取った制御に関わるデータの書き込み指示に基づき、制御に関わるデータをデータ記憶部304に書き込んで記憶させる。また、データ読出・書込部303は、受け取った制御に関わるデータの読み出し指示に基づき、データ記憶部304に記憶されている制御に関わるデータを読み出し、読み出した制御に関わるデータをプロキシ部302に出力する。
The data read /
データ記憶部304は、ロボット4の動作結果データ等の各種データが記憶されている。
The
プログラム部305は、入出力部306から受け取ったロボット4の制御プログラム、または、本ロボット制御システム1の利用者が予め入力装置6を用いて生成した制御プログラム、あるいは、予めプログラム部305に記憶されている制御プログラムを記憶している。また、プログラム部305は、制御プログラムをプロキシ部302に出力する。
The
入出力部306は、動作指示装置3の動作状態や各種データ、各種プログラムのデータ等を画像表示装置5に出力し、本ロボット制御システムの利用者が作成したデータやプログラム等を入力装置6から受け取る。
The input /
次に、図2のフローチャートを用いて、起動時のロボット制御方法を説明する。図2は、第一実施形態におけるロボット制御システムの起動手順の一例を示すフローチャートである。なお、動作制御装置2と動作指示装置3はLANのネットワークを介して接続されている場合について以下の説明を行う。また、プログラム実行部205が検出してコントローラー統括部204を介さず、直接、プロキシ部202と送受信を行う制御コマンドの例として、動作結果データの書き込み指示と動作結果データの読み出し指示について説明を行う。
Next, a robot control method at the time of activation will be described using the flowchart of FIG. FIG. 2 is a flowchart showing an example of a startup procedure of the robot control system in the first embodiment. The
動作制御装置2と動作指示装置3を起動する。動作制御装置2と動作指示装置3が起動後、動作指示装置3のプログラム部305は、プログラム部305に記憶されているロボット4の制御プログラムを読み出す(ステップS1)。
The
次に、プログラム部305は、読み出した制御プログラムをプロキシ部302に出力する。また、プロキシ部302はプログラム部305が出力する制御プログラムを受け取り、受け取った制御プログラムをプロキシ部302の送信バッファ311に格納する(ステップS2)。
Next, the
次に、プロキシ部302は送信バッファ311に格納している制御プログラムを読み出し、読み出した制御プログラムを通信部301に出力する。また、通信部301は、プロキシ部302が出力する制御プログラムを受け取り、受け取った制御プログラムをLANのネットワークを介して動作制御装置2に送信する(ステップS3)。
Next, the
次に、動作制御装置2の通信部201は、動作指示装置3から制御プログラムの受信を待つ(ステップS4)。制御プログラムが送信されてきた場合、通信部201は、制御プログラムを受信し、受信した制御プログラムをプロキシ部202に出力する。また、プロキシ部202は通信部201が出力する制御プログラムを受け取り、受け取った制御プログラムを受信バッファ212に格納する。
Next, the
次に、コントローラー統括部204は、プロキシ部202の受信バッファ212が格納している制御プログラムを読み出して取得し(ステップS5)、取得した制御プログラムをプログラム記憶部203に書き込んで記憶させる(ステップS6)。
Next, the
次に、コントローラー統括部204は、プログラム記憶部203に記憶されている制御プログラムを読み出し、読み出した制御プログラムをプログラム実行部205に出力する。また、プログラム実行部205は、コントローラー統括部204が出力する制御プログラムを受け取り、受け取った制御プログラムに基づき、ロボット4を制御するコマンド(以下、ロボット制御コマンドという)をロボット制御部206に出力する。さらに、ロボット制御部206は、プログラム実行部205が出力するロボット制御コマンドを受け取り、受け取ったロボット制御コマンドに基づき、ロボット4を制御する(ステップS7)。
Next, the
次に、プログラム実行部205は、実行する制御プログラムから動作結果データの書き込み指示(以下、書き込み指示という)、または、ロボットの動作結果データの読み出し指示(以下、読み出し指示という)を検出できたか否かを判定する(ステップS8)。判定の結果、実行する制御プログラムから書き込み指示、または、読み出し指示を検出できた場合(ステップS8;Yes)、プログラム実行部205は読み出し・書き込み処理を行う(ステップS9)。
Next, whether the
判定の結果、実行する制御プログラムから書き込み指示、または、読み出し指示を検出できない場合(ステップS8;No)、プログラム実行部205はコントローラー統括部204に制御コマンドの実行完了等の各種データを出力する(ステップS10)。また、コントローラー統括部204は、プログラム実行部205が出力するロボットの制御コマンドの実行完了等の各種データを受け取り、受け取った各種データに応じて、プロキシ部202に受け取った各種データを出力する。さらに、プロキシ部202は、コントローラー統括部204が出力する各種データを受け取り、受け取った各種データを通信部201に出力する。さらに、通信部201は、プロキシ部202が出力する各種データをLANのネットワークを介して動作指示装置3に送信する。
As a result of the determination, when a write instruction or a read instruction cannot be detected from the control program to be executed (step S8; No), the
次に、図3と図4のフローチャートを用いて、動作結果データの書き込み時のロボット制御方法を説明する。図3と図4は、第一実施形態におけるロボット制御システムの動作結果データの書き込み手順の一例を示すフローチャートである。なお、動作制御装置2と動作指示装置3はLANのネットワークを介して接続されていて、動作制御装置2と動作指示装置3は、図2のフローチャートの起動が完了し、ロボット4の制御を行っている場合について以下の説明を行う。
Next, a robot control method at the time of writing operation result data will be described using the flowcharts of FIGS. 3 and 4. 3 and 4 are flowcharts showing an example of a procedure for writing operation result data of the robot control system in the first embodiment. The
図3において、プログラム実行部205は、実行する制御プログラムから書き込み指示を検出できかたか否かを判定する(ステップS101)。判定の結果、実行する制御プログラムから書き込み指示を検出できない場合(ステップS101;No)、プログラム実行部205は、ロボット制御の実行を継続する。
In FIG. 3, the
判定の結果、実行する制御プログラムから書き込み指示を検出できた場合(ステップS101;Yes)、プログラム実行部205は、コントローラー統括部204を介さず、直接、プロキシ部202に書き込み指示とロボットの動作結果データ(以下、動作結果データという)を出力する。また、プロキシ部202は、プログラム実行部205が出力する書き込み指示と動作結果データを受け取り、受け取った書き込み指示と動作結果データを送信バッファ211に格納する(ステップS102)。
As a result of the determination, when a write instruction can be detected from the control program to be executed (step S101; Yes), the
次に、プロキシ部202は送信バッファ211に格納されている書き込み指示と動作結果データを読み出し、読み出した動作結果データを通信部201に出力する。また、通信部201は、受け取った書き込み指示と動作結果データをLANのネットワークを介して動作指示装置3に送信する(ステップS103)。
Next, the
次に、通信部201は、書き込み指示と動作結果データの送信が完了したか否かを判定する(ステップS104)。
Next, the
判定の結果、動作指示装置3から動作結果データの送信が所定の時間が経っても所定の応答が無い場合(ステップS104;No)、通信部201は送信が失敗したと判定し、送信失敗した情報をプログラム実行部205に出力する(ステップS105)。
As a result of the determination, if there is no predetermined response even if the operation result data is transmitted from the
通信部201が送信完了したと判定した場合(ステップS104;Yes)、動作指示装置3の通信部301は、動作制御装置2から書き込み指示と動作結果データの受信を待つ(ステップS106)。また、書き込み指示と動作結果データが送信されてきた場合、通信部301は、書き込み指示と動作結果データを受信し、受信した書き込み指示と動作結果データをプロキシ部302に出力する。さらに、プロキシ部302は通信部301が出力する書き込み指示と動作結果データを受け取り、受け取った書き込み指示と動作結果データを受信バッファ312に格納する。
When it is determined that the
次に、プロキシ部302は、受信バッファ312から書き込み指示と動作結果データを読み出し(ステップS107)、読み出したデータから動作結果データを検出できたか否かを判定する。
Next, the
判定の結果、読み出したデータから書き込み指示を検出できた場合、プロキシ部302は、読み出した書き込み指示に基づき、動作結果データをデータ読出・書込部303に出力して、データ読出・書込部303に通知する(ステップS108)。また、判定の結果、読み出したデータから書き込み指示を検出できない場合、プロキシ部302は読み出し・書き込み処理ではない一般的な処理を継続する。
As a result of the determination, when the write instruction can be detected from the read data, the
次に、プロキシ部302は、書き込み指示の通知が完了したか否かを判定する(ステップS109)。
Next, the
判定の結果、データ読出・書込部303から書き込み指示の通知に対して所定の時間が経っても所定の応答が無い場合(ステップS109;No)、プロキシ部302は通知が失敗したと判定する。また、プロキシ部302は、通知を失敗したと判定した場合、書き込み処理が失敗した情報を通信部301に出力する(ステップS110)。
As a result of the determination, when there is no predetermined response even after a predetermined time has passed from the data read /
判定の結果、データ読出・書込部303から書き込み指示の通知が完了した場合(ステップS109;Yes)、データ読出・書込部303は、プロキシ部302が出力する動作結果データを受け取り、受け取った動作結果データをデータ記憶部304に書き込んで記憶させる(ステップS111)。また、データ読出・書込部303は、データ記憶部304に動作結果データの書き込み完了後、書き込みが成功した情報をプロキシ部302に出力する。さらに、プロキシ部302は、データ読出・書込部303が出力する書き込みが成功した情報を受け取り、受け取った書き込みが成功した情報を通信部301に出力する。さらに、通信部301は、プロキシ部302が出力する書き込みが成功した情報、または、書き込みが失敗した情報を受け取り、受け取った書き込みの可否情報(書き込みが成功した情報、または、書き込みが失敗した情報)をLANのネットワークを介して動作制御装置2に送信する。
As a result of the determination, when the notification of the write instruction is completed from the data reading / writing unit 303 (step S109; Yes), the data reading /
次に、図4において、動作制御装置2の通信部201は、動作指示装置3から書き込みの可否情報の受信を待つ(ステップS121)。書き込みの可否情報が動作指示装置3から送信されてきた場合、通信部201は、書き込みの可否情報を受信し、受信した書き込みの可否情報をプロキシ部202に出力する。また、プロキシ部202は、通信部201が出力する書き込みの可否情報を受け取り、受け取った書き込みの可否情報を受信バッファ212に格納する。
Next, in FIG. 4, the
次に、プロキシ部202は、受信バッファ212に格納されているデータを読み出し(ステップS122)、読み出したデータから書き込み指示に対する応答データである書き込みの可否情報が検出できたか否かを判定する。
Next, the
判定の結果、読み出したデータから書き込みの可否情報を検出できた場合、プロキシ部202は、読み出した書き込みの可否情報を、コントローラー統括部204を介さず、直接、プログラム実行部205に出力して、プログラム実行部に通知する(ステップS123)。また、判定の結果、読み出したデータから書き込みの可否情報を検出できない場合、プロキシ部202は読み出したデータをコントローラー統括部204に出力する。
As a result of the determination, when it is possible to detect the writability information from the read data, the
以上のように、ロボット4の制御プログラムから動作結果データの書き込み指示があった場合、動作制御装置2のコントローラー統括部204を介さず、直接、プログラム実行部205からプロキシ部202に書き込み指示と動作結果データを出力するようにし、さらに動作指示装置3に送信する。また、動作指示装置3のプロキシ部302が、受信したデータから書き込み指示を検出して、動作結果データをデータ記憶部304に記憶させるようにしたので、ロボットを制御するプログラムを実行しながら、遅延の少ない高速な動作結果データの書き込みを行うことが可能になる。
As described above, when there is an instruction to write operation result data from the control program of the
次に、図5と図6のフローチャートを用いて、動作結果データの読み込み時のロボット制御方法を説明する。図5と図6は、第一実施形態におけるロボット制御システムの動作結果データの読み込み手順の一例を示すフローチャートである。なお、動作制御装置2と動作指示装置3はLANのネットワークを介して接続されていて、動作制御装置2と動作指示装置3は、図2のフローチャートの起動が完了し、ロボット4の制御を行っている場合について以下の説明を行う。
Next, a robot control method at the time of reading operation result data will be described using the flowcharts of FIGS. 5 and 6. 5 and 6 are flowcharts showing an example of a procedure for reading operation result data of the robot control system in the first embodiment. The
図5において、プログラム実行部205は、実行する制御プログラムから読み出し指示が検出できたか否かを判定する(ステップS201)。判定の結果、実行している制御プログラムから読み出し指示が検出できない場合(ステップS201;No)、プログラム実行部205は、ロボット制御の実行を継続する。
In FIG. 5, the
判定の結果、実行する制御プログラムから読み出し指示を検出できた場合(ステップS201;Yes)、プログラム実行部205は、コントローラー統括部204を介さず、直接、プロキシ部202に読み出し指示を出力する。また、プロキシ部202は、プログラム実行部205が出力する読み出し指示を受け取り、受け取った読み出し指示を送信バッファ211に格納する(ステップS202)。
As a result of the determination, if a read instruction can be detected from the control program to be executed (step S201; Yes), the
次に、プロキシ部202は送信バッファ211に格納されている読み出し指示を読み出し、読み出した読み出し指示を通信部201に出力する。また、通信部201は、受け取った読み出し指示をLANのネットワークを介して動作指示装置3に送信する(ステップS203)。
Next, the
次に、通信部201は、読み出し指示の送信が完了したか否かを判定する(ステップS204)。
Next, the
判定の結果、動作指示装置3から動作結果データの送信が所定の時間が経っても所定の応答が無い場合(ステップS204;No)、通信部201は送信が失敗したと判定する。また、通信部201は送信失敗した情報をプログラム実行部205に出力する(ステップS205)。
As a result of the determination, when there is no predetermined response even after a predetermined time has passed from the
通信部201が送信完了したと判定した場合(ステップS204;Yes)、動作指示装置3の通信部301は、動作指示装置3から読み出し指示の受信を待つ(ステップS206)。読み出し指示が送信されてきた場合、通信部301は、読み出し指示を受信し、受信した読み出し指示をプロキシ部302に出力する。また、プロキシ部302は通信部301が出力する読み出し指示を受け取り、受け取った読み出し指示を受信バッファ312に格納する。
When the
次に、プロキシ部302は、受信バッファ312から読み出し指示を読み出し(ステップS207)、読み出したデータから読み出し指示を検出できたか否かを判定する。
Next, the
判定の結果、読み出したデータから読み出し指示を検出できた場合、プロキシ部302は、読み出した読み出し指示をデータ読出・書込部303に出力して、データ読出・書込部303に通知する(ステップS208)。また、判定の結果、読み出したデータから読み出し指示を検出できない場合、プロキシ部302は読み出し・書き込み処理ではない一般的な処理を継続する。
As a result of the determination, when a read instruction can be detected from the read data, the
次に、プロキシ部302は、読み出し指示の通知が完了したか否かを判定する(ステップS209)。
Next, the
判定の結果、データ読出・書込部303から読み出し指示の通知に対して所定の時間が経っても所定の応答が無い場合(ステップS209;No)、プロキシ部302は通知が失敗したと判定する。また、プロキシ部302は、通知を失敗したと判定した場合、読み出し処理が失敗した情報を通信部301に出力する(ステップS210)。
As a result of the determination, if there is no predetermined response to the read instruction notification from the data reading /
プロキシ部302が通知完了したと判定した場合(ステップS209;Yes)、データ読出・書込部303は、プロキシ部302が出力する読み出し指示を受け取り、受け取った読み出し指示に基づきデータ記憶部304に記憶されている動作結果データを読み出す(ステップS211)。また、データ読出・書込部303は、データ記憶部304から動作結果データを読み出し完了後、読み出した動作結果データをプロキシ部302に出力する。さらに、プロキシ部302は、データ読出・書込部303が出力する動作結果データを受け取り、受け取った動作結果データを通信部301に出力する。さらに、通信部301は、プロキシ部302が出力する動作結果データ、または、読み出し処理が失敗した情報を受け取り、受け取った読み出し指示に対する応答データ(動作結果データ、または、読み出し処理が失敗した情報)をLANのネットワークを介して動作制御装置2に送信する。
If the
次に、図6において、動作制御装置2の通信部201は、動作指示装置3から読み出し指示に対する応答データの受信を待つ(ステップS221)。読み出し指示に対する応答データが送信されてきた場合、通信部201は読み出し指示に対する応答データを受信し、読み出し指示に対する応答データをプロキシ部202に出力する。また、プロキシ部202は通信部201が出力する読み出し指示に対する応答データを受け取り、受け取った読み出し指示に対する応答データを受信バッファ212に格納する。
Next, in FIG. 6, the
次に、プロキシ部202は、受信バッファ212に格納されているデータを読み出し(ステップS222)、読み出したデータから読み出し指示に対する応答データ(動作結果データ、または、書き込み処理が失敗した情報)を検出できたか否かを判定する。
Next, the
判定の結果、読み出したデータから読み出し指示に対する応答データを検出できた場合、プロキシ部202は、読み出した読み出し指示に対する応答データを、コントローラー統括部204を介さず、直接、プログラム実行部205に出力して、プログラム実行部に通知する(ステップS223)。また、判定の結果、読み出したデータから読み出し指示に対する応答データを検出できない場合、プロキシ部202は、読み出したデータをコントローラー統括部204に出力する。
As a result of the determination, when response data for the read instruction can be detected from the read data, the
以上のように、ロボット4の制御プログラムから動作結果データの読み出し指示があった場合、動作制御装置2のコントローラー統括部204を介さず、直接、プログラム実行部205からプロキシ部202に読み出し指示を出力する。また、動作指示装置3のプロキシ部302が読み出し指示を検出してデータ記憶部304に記憶されている動作結果データを読み出す。そして、読み出した動作結果データをプロキシ部302が検出して、検出した動作結果データを通信部301が動作制御装置2に送信する。そして、動作制御装置2のプロキシ部202が受信したデータから読み出し指示に対する応答である動作結果データを検出し、検出した動作結果データを、コントローラー統括部204を介さず、直接、プログラム実行部205に出力するようにしたので、ロボットを制御するプログラムを実行しながら、遅延の少ない高速な動作結果データの読み出しを行うことが可能になる。
As described above, when an operation result data read instruction is issued from the control program of the
[第二実施形態]
図7は、第二の実施形態におけるロボット制御システムの構成の一例を示すブロック図である。ここでは、第一の実施形態における図1の各部に相当する部分に同一の符号を付し、その説明は省略し、相違する構成について説明する。
[Second Embodiment]
FIG. 7 is a block diagram showing an example of the configuration of the robot control system in the second embodiment. Here, the same reference numerals are given to portions corresponding to the respective portions in FIG. 1 in the first embodiment, the description thereof will be omitted, and different configurations will be described.
動作制御装置2の構成について、図7を用いて説明する。第一の実施形態との差異は、通信部201と、プロキシ部202と、プログラム記憶部203と、コントローラー統括部204と、プログラム実行部205とをアプリケーション250で実現している点と、通信IF(インタフェース)部251を備えている点にある。アプリケーション250は、通信FW(ファームウェア)部252と、プロキシFW部253と、コントローラー統括FW部254と、プログラム実行FW部255とを備えている。
The configuration of the
通信IF部251は、通信部201のハードウェア部分である。また、通信FW部252は、通信部201の通信ファームウェア部分である。
The communication IF
プロキシFW部253は、プロキシ部202と同等の機能を備え、コントローラー統括FW部254はコントローラー統括部204と同等の機能を備え、プログラム実行FW部255はプログラム実行部205と同等の機能を備えている。また、プロキシFW部253は、受け取った各種コマンドや各種データのバッファを行う送信バッファ211と受信バッファ212を備えている。
The
次に、動作指示装置3の構成について説明する。第一の実施形態との差異は、通信部301と、プロキシ部302と、データ読出・書込部303と、プログラム部305をアプリケーション350で実現している点と、通信IF部(インタフェース)351を備えている点にある。アプリケーション350は、通信FW(ファームウェア)部352と、プロキシFW部353と、デーモン部354と、プログラム部355とを備えている。
Next, the configuration of the
通信IF部351は、通信部301のハードウェア部分である。また、通信FW部352は、通信部301の通信ファームウェア部分である。
The communication IF
プロキシFW部353はプロキシ部302と同等の機能を備え、デーモン部354はデータ読出・書込部303と同等の機能を備え、プログラム部355はプログラム部305と同等の機能を備える。すなわち、デーモン部354は、プロキシFW部353が出力する書き込み指示、または、読み出し指示により起動するデータの読み出し・書き込みを行うアプリケーションである。また、プロキシFW部353は、受け取った各種コマンドや各種データのバッファを行う送信バッファ311と受信バッファ312を備えている。
The proxy FW unit 353 has the same function as the
次に動作結果データの書き込み処理について、図5、図6および図7を用いて説明する。図5のステップS201〜ステップS206までは第一実施形態と同じ手順のため説明を省略する。通信IF部351が書き込み指示と動作結果データを受信し、受信した書き込み指示と動作結果データを通信FW部352に出力する。また、通信FW部352は受け取った書き込み指示と動作結果データをプロキシFW部353に出力し、プロキシFW部353は受け取った書き込み指示と動作結果データを受信バッファ312に格納する。
さらに、プロキシFW部353は受信バッファ312に格納されているデータを読み出し(ステップS107)、読み出したデータから書き込み指示が検出できたか否かを判定する。
Next, the operation result data writing process will be described with reference to FIGS. Since steps S201 to S206 in FIG. 5 are the same as those in the first embodiment, description thereof is omitted. The communication IF
Further, the proxy FW unit 353 reads the data stored in the reception buffer 312 (step S107), and determines whether or not a write instruction has been detected from the read data.
判定の結果、読み出したデータから書き込み指示を検出できた場合、プロキシFW部353は、読み出した書き込み指示に基づき、動作結果データをデーモン部354に出力して、デーモン部354に通知する(ステップS108)。以下、ステップS109〜ステップS123は第一実施形態と同様のため、説明を省略する。
As a result of the determination, when the write instruction can be detected from the read data, the proxy FW unit 353 outputs the operation result data to the
また、動作結果データの読み出し時、図5と図6のステップS201〜ステップS210まで同様の手順で行う。この場合、動作指示装置3は、読み出し指示を受信し、プロキシFW部353が読み出したデータから読み出し指示を検出できたか否かを判定し、判定の結果、読み出したデータから読み出し指示を検出できた場合、読み出し指示をデーモン部354に出力する。また、デーモン部354はプロキシFW部353が出力する読み出し指示を受け取り、受け取った読み出し指示に基づき、データ記憶部304に記憶されている動作結果データを読み出す(ステップS211)。以下、ステップS221〜ステップS223と同様の手順のため説明を省略する。
Further, when the operation result data is read, the same procedure is performed from step S201 to step S210 in FIGS. In this case, the
以上のように、第一の実施形態の機能の一部をアプリケーションで実現したため、動作指示装置3はPCを用いて、このPCに第二実施形態で説明したアプリケーション350をインストールすることで、第一の実施形態と同様の効果を得ることができる。
As described above, since a part of the functions of the first embodiment is realized by an application, the
また、第二の実施形態では、アプリケーション250は、動作制御装置2の通信部201とプロキシ部202とコントローラー統括部204とプログラム実行部205を備え、アプリケーション350は、動作指示装置3の通信部301とプロキシ部302とデータ読出・書込部303とプログラム部305を備える例を説明したが、第一実施形態の図1の機能の全て、もしくは一部を、光学式計測装置の図示しないCPU(中央演算装置)に接続されたROM(Read Only Memory)、HDD(Hard Disk
Drive)もしくはUSB I/Fを介して接続されるUSBメモリー等の記憶装置に保存されているアプリケーションにより実行することも可能である。
In the second embodiment, the
(Drive) or an application stored in a storage device such as a USB memory connected via a USB I / F.
また、本実施形態では、通信部201と通信部301が、LAN等のネットワークやUSB I/Fを介して接続している例を説明したが、例えばIEEE 1394等の他のネットワークを用いても良い。
In this embodiment, the
また、本実施形態では、ロボットの動作結果データとして、ロボットの各軸の角度や座標を例に説明したが、動作制御装置2に図示しないカメラを接続し、このカメラで撮像した画像データを書き込み指示または読み出し指示に基づいて、コントローラー統括部204を介さずに、直接プログラム実行部205とプロキシ部202間でデータの送受信を行う。また、撮像した画像データを動作指示装置3のデータ記憶部304に書き込んで記憶させ、または、撮像した画像データをデータ記憶部から読み出して、読み出した撮像した画像データを動作制御装置2に送信するようにしても良い。また、ロボットの動作を直接指示しない他のデータの読み出しや書き込みの場合、同様にコントローラー統括部204を介さず、直接、プログラム実行部205とプロキシ部202間でデータの送受信を行うようにしても良い。
In this embodiment, the robot motion result data has been described by taking the angle and coordinates of each axis of the robot as an example. However, a camera (not shown) is connected to the
また、本実施形態では、動作制御装置2と動作指示装置3をLAN等のネットワークで接続する例を説明したが、動作制御装置2と動作指示装置3を1個の筐体に入れ、筐体内において、動作制御装置2と動作指示装置3をUSBネットワークで接続するように構成しても良い。
In this embodiment, the example in which the
1・・・ロボット制御システム2・・・動作制御装置3・・・動作指示装置4・・・ロボット5・・・画像表示装置6・・・入力装置201,301・・・通信部202、302・・・プロキシ部203・・・プログラム記憶部204・・・コントローラー統括部205・・・プログラム実行部206・・・ロボット制御部303・・・データ読出・書込部304・・・データ記憶部305・・・プログラム部306・・・入出力部
DESCRIPTION OF SYMBOLS 1 ...
Claims (4)
データ記憶部を含む動作指示装置と、
を備え、
前記プログラム記憶部は、前記動作指示装置から入力されたロボットの制御プログラムを記憶し、
前記コントローラー統括部は、前記プログラム記憶部に記憶された前記制御プログラムを読み出し、前記プログラム実行部に出力し、
前記プログラム実行部は、前記コントローラー統括部から出力された前記制御プログラムにより、前記ロボットを動作させ、
前記制御プログラムに前記ロボットの動作結果の書き込み指示を含む場合には、前記コントローラー統括部を介さずに、前記通信部により前記動作結果が前記動作指示装置に送信され、前記動作結果が前記データ記憶部に記憶される、
ことを特徴とするロボット制御システム。 An operation control device including a program storage unit, a controller control unit, a program execution unit, and a communication unit;
An operation instruction device including a data storage unit;
With
The program storage unit stores a robot control program input from the operation instruction device,
The controller supervision unit reads the control program stored in the program storage unit, and outputs the control program to the program execution unit,
The program execution unit operates the robot according to the control program output from the controller supervision unit,
When the control program includes an instruction to write the operation result of the robot, the operation result is transmitted to the operation instruction device by the communication unit without going through the controller control unit, and the operation result is stored in the data storage. Stored in the department,
A robot control system characterized by that.
前記動作制御装置および前記動作指示装置は、前記筐体の内部に配置されている、 The operation control device and the operation instruction device are disposed inside the housing.
ことを特徴とする請求項1に記載のロボット制御システム。 The robot control system according to claim 1.
前記動作指示装置から入力されたロボットの制御プログラムを前記プログラム記憶部に記憶することと、
前記プログラム記憶部に記憶された前記制御プログラムを読み出し、前記プログラム実行部に出力することと、
前記コントローラー統括部から出力された前記制御プログラムにより、前記ロボットを動作させることと、
前記制御プログラムに前記ロボットの動作結果の書き込み指示を含む場合には、前記コントローラー統括部を介さずに、前記通信部により前記動作結果を前記動作指示装置に送信し、前記動作結果を前記データ記憶部に記憶することと、
を含むことを特徴とするロボット制御方法。 A robot control method for a robot control system comprising: an operation control device including a program storage unit, a controller control unit, a program execution unit, and a communication unit; and an operation instruction device including a data storage unit,
Storing a robot control program input from the operation instruction device in the program storage unit;
Reading the control program stored in the program storage unit and outputting it to the program execution unit;
By operating the robot by the control program output from the controller control unit,
If the control program includes an instruction to write the operation result of the robot, the operation result is transmitted to the operation instruction device by the communication unit without going through the controller control unit, and the operation result is stored in the data storage. Remembering in the department,
A robot control method comprising:
前記動作制御装置および前記動作指示装置は、前記筐体の内部に配置されている、 The operation control device and the operation instruction device are disposed inside the housing.
ことを特徴とする請求項3に記載のロボット制御方法。 The robot control method according to claim 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013270457A JP5804042B2 (en) | 2013-12-26 | 2013-12-26 | Robot control system and robot control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013270457A JP5804042B2 (en) | 2013-12-26 | 2013-12-26 | Robot control system and robot control method |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2009236199A Division JP5445012B2 (en) | 2009-10-13 | 2009-10-13 | Robot control system and robot control method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2014073576A JP2014073576A (en) | 2014-04-24 |
JP5804042B2 true JP5804042B2 (en) | 2015-11-04 |
Family
ID=50748153
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2013270457A Expired - Fee Related JP5804042B2 (en) | 2013-12-26 | 2013-12-26 | Robot control system and robot control method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5804042B2 (en) |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0695731A (en) * | 1992-09-11 | 1994-04-08 | Fanuc Ltd | Fault factor diagnosis system |
JP3308386B2 (en) * | 1994-04-25 | 2002-07-29 | ファナック株式会社 | Control system |
JP3913666B2 (en) * | 2002-10-30 | 2007-05-09 | 本田技研工業株式会社 | Simulation device |
-
2013
- 2013-12-26 JP JP2013270457A patent/JP5804042B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2014073576A (en) | 2014-04-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6399916B2 (en) | Information processing apparatus and control method thereof | |
TW201044272A (en) | Parallel processing method for a dual operating system | |
JP2008097105A (en) | Storage device and start-up method | |
JP2017187993A (en) | Control device, control method, and program | |
TW201324067A (en) | Positioning device, and PLC system | |
US9934100B2 (en) | Method of controlling memory swap operation and data processing system using same | |
JP5804042B2 (en) | Robot control system and robot control method | |
JP5277615B2 (en) | Data processing apparatus and data processing program | |
JP5445012B2 (en) | Robot control system and robot control method | |
JP6587031B2 (en) | Control device, data processing device, control system, control method, data processing method, control program, and data processing program | |
JP2011110687A (en) | Robot control system and robot control method | |
JP6716355B2 (en) | Video signal processing device with switching function and video signal processing system with switching function | |
JP2015049612A (en) | Usb host device and program for usb host device | |
JP2010134830A (en) | Programmable controller, cpu unit, analog input unit, and analog output unit | |
US20080307208A1 (en) | Application specific processor having multiple contexts | |
JP6405972B2 (en) | Operation verification apparatus, operation verification method, and operation verification program | |
JP4686211B2 (en) | Command output device and input / output execution time monitoring method | |
US8869137B2 (en) | Information processing apparatus that automatically and sequentially displays graphical user interface images and recording medium storing program | |
US20160231938A1 (en) | Storage control device and control method in storage control device | |
JP4813823B2 (en) | Test system and test method | |
JP6323155B2 (en) | Data processing apparatus and data processing apparatus control method | |
JP5330321B2 (en) | Programmable display | |
JP2010204737A (en) | Control system for programmable controller and control program execution method for programmable controller | |
JP5057102B2 (en) | USB storage simultaneous writing device and USB storage simultaneous writing method used therefor | |
JP2006330124A (en) | Data processor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20140127 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20140127 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20141023 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20141125 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20150123 |
|
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: 20150804 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20150817 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5804042 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
LAPS | Cancellation because of no payment of annual fees |