JP5804042B2 - Robot control system and robot control method - Google Patents

Robot control system and robot control method Download PDF

Info

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.)
Active
Application number
JP2013270457A
Other languages
Japanese (ja)
Other versions
JP2014073576A (en
Inventor
小島 貴志
貴志 小島
俊博 久保
俊博 久保
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2013270457A priority Critical patent/JP5804042B2/en
Publication of JP2014073576A publication Critical patent/JP2014073576A/en
Application granted granted Critical
Publication of JP5804042B2 publication Critical patent/JP5804042B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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).

特開2004−25428号公報JP 2004-25428 A

しかしながら、特許文献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.

本発明の第一の実施形態に係るロボット制御システムの構成の一例を示すブロック図である。It is a block diagram showing an example of composition of a robot control system concerning a first embodiment of the present invention. 同実施形態に係るロボット制御システムの起動手順の一例を示すフローチャートである。It is a flowchart which shows an example of the starting procedure of the robot control system which concerns on the same embodiment. 同実施形態に係るロボット制御システムの動作結果データの書き込み手順の一例を示すフローチャートである。It is a flowchart which shows an example of the write-in procedure of the operation result data of the robot control system which concerns on the embodiment. 同実施形態に係るロボット制御システムの動作結果データの書き込み手順の一例を示すフローチャートである。It is a flowchart which shows an example of the write-in procedure of the operation result data of the robot control system which concerns on the embodiment. 同実施形態に係るロボット制御システムの動作結果データの読み出し手順の一例を示すフローチャートである。It is a flowchart which shows an example of the read-out procedure of the operation result data of the robot control system which concerns on the embodiment. 同実施形態に係るロボット制御システムの動作結果データの読み出し手順の一例を示すフローチャートである。It is a flowchart which shows an example of the read-out procedure of the operation result data of the robot control system which concerns on the embodiment. 本発明の第二の実施形態に係るロボット制御システムの構成の一例を示すブロック図である。It is a block diagram which shows an example of a structure of the robot control system which concerns on 2nd embodiment of this invention.

以下、本発明の実施形態について、図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 operation control device 2 and an operation instruction device 3. The operation control device 2 is connected to a robot 4, and the operation instruction device 3 is connected to an image display device 5 and an input device 6. The operation control device 2 and the operation instruction device 3 are connected via a network such as a LAN or a USB I / F. The robot 4 is, for example, an industrial SCARA robot or a multi-axis robot, and its operation is controlled by the robot control system 1.
The image display device 5 receives the operation state of the operation instruction device 3 output from the input / output unit 306, various data, data of various programs, and the like, and receives the operation state, various data, and various programs of the received operation instruction device 3. Display data etc. The input device 6 is a keyboard, a mouse, or the like, for example, and is connected to the input / output unit 306. Furthermore, data is read from an external storage device such as a USB memory connected to the input device 6, and the read data is output to the input / output unit 306.

次に、動作制御装置2の構成について説明する。動作制御装置2は、通信部201と、プロキシ部202と、プログラム記憶部203と、コントローラー統括部204と、プログラム実行部205と、ロボット制御部206とを備えている。   Next, the configuration of the operation control device 2 will be described. The operation control device 2 includes a communication unit 201, a proxy unit 202, a program storage unit 203, a controller control unit 204, a program execution unit 205, and a robot control unit 206.

通信部(第一通信部)201は、LAN等のネットワークやUSB I/Fを介して動作指示装置3と接続し、動作指示装置3との各種データや制御プログラム等の送受信を行う。また、通信部201は、受信した制御プログラムや制御に関わるデータ等をプロキシ部202に出力する。また、通信部201は、プロキシ部202が出力する制御に関わるデータや制御に関わるデータの読み出し指示、および、各種制御コマンドや各種データを受け取り、受け取った制御に関わるデータや制御に関わるデータの読み出し指示、および、各種制御コマンドや各種データを動作指示装置3に送信する。なお、制御に関するデータとは、例えば、ロボット4の各軸の角度や座標などの動作結果データなどである。   A communication unit (first communication unit) 201 is connected to the operation instruction device 3 via a network such as a LAN or a USB I / F, and transmits / receives various data, control programs, and the like to / from the operation instruction device 3. In addition, the communication unit 201 outputs the received control program, control-related data, and the like to the proxy unit 202. Further, the communication unit 201 receives the control-related data output from the proxy unit 202 and the control-related data read instruction, and various control commands and various data, and reads the received control-related data and control-related data. The instruction and various control commands and various data are transmitted to the operation instruction device 3. The data related to control is, for example, operation result data such as the angle and coordinates of each axis of the robot 4.

プロキシ部(第一プロキシ部)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 communication unit 201, data related to control, and the like. Further, the proxy unit 202 receives control-related data output from the program execution unit 205, a read-out instruction for data related to control, and the like. Further, the proxy unit 202 detects a read instruction of data related to control from the received data, and directly outputs the read instruction of data related to control detected to the program execution unit 205 without using the controller control unit 204. . The proxy unit 202 receives various control commands and various data output from the controller supervision unit 204. Further, the proxy unit 202 outputs to the communication unit 201 the control data received from the program execution unit 205, the control data read instruction, and the various control commands and data received from the controller control unit 204. . In addition, the proxy unit 202 includes a transmission buffer 211 and a reception buffer 212 that temporarily store received various commands and various data.

プログラム記憶部203は、ロボット4の制御プログラムが記憶されている。   The program storage unit 203 stores a control program for the robot 4.

コントローラー統括部204は、プロキシ部202が出力するロボット4の制御プログラムを受け取り、受け取った制御プログラムをプログラム記憶部203に書き込んで記憶させる。また、コントローラー統括部204は、プロキシ部202が出力する各種コマンドや各種データを受け取り、受け取った各種コマンドや各種データをプログラム実行部205に出力する。また、コントローラー統括部204は、プログラム実行部205が出力する各種コマンドや各種データを受け取り、受け取った各種コマンドや各種データをプロキシ部202に出力する。   The controller supervision unit 204 receives the control program for the robot 4 output from the proxy unit 202 and writes the received control program in the program storage unit 203 for storage. The controller supervision unit 204 receives various commands and various data output from the proxy unit 202, and outputs the received various commands and various data to the program execution unit 205. The controller supervision unit 204 receives various commands and various data output from the program execution unit 205, and outputs the received various commands and various data to the proxy unit 202.

プログラム実行部205は、コントローラー統括部204が出力する各種コマンドや各種データを受け取り、受け取った各種コマンドや各種データに基づき、ロボット4を制御するコマンドをロボット制御部206に出力する。また、プログラム実行部205は、制御プログラムの中に制御に関わるデータを書き込む指示、または、制御に関わるデータを読み出す指示を検出する。また、プログラム実行部205は、制御に関わるデータを書き込む指示を検出した場合、制御に関わるデータを、コントローラー統括部204を介さず、直接、プロキシ部202に出力する。また、プログラム実行部205は、制御に関わるデータを読み出す指示を検出した場合、制御に関わるデータを読み出す指示をプロキシ部202に出力する。また、プログラム実行部205は、プロキシ部202が出力する読み出し指示に対する応答である制御に関わるデータを受け取る。   The program execution unit 205 receives various commands and various data output from the controller supervision unit 204, and outputs a command for controlling the robot 4 to the robot control unit 206 based on the received various commands and various data. The program execution unit 205 detects an instruction to write data related to control in the control program or an instruction to read data related to control. When the program execution unit 205 detects an instruction to write data related to control, the program execution unit 205 outputs the data related to control directly to the proxy unit 202 without going through the controller control unit 204. When the program execution unit 205 detects an instruction to read data related to control, the program execution unit 205 outputs an instruction to read data related to control to the proxy unit 202. The program execution unit 205 also receives control-related data that is a response to the read instruction output from the proxy unit 202.

ロボット制御部206は、プログラム実行部205が出力するロボット4の各種制御コマンドを受け取り、受け取った制御コマンドに基づいてロボット4を制御する。   The robot control unit 206 receives various control commands of the robot 4 output from the program execution unit 205, and controls the robot 4 based on the received control commands.

次に、動作指示装置3の構成について説明する。動作指示装置3は、通信部301と、プロキシ部302と、データ読出・書込部303と、データ記憶部304と、プログラム部305と、入出力部306とを備えている。   Next, the configuration of the operation instruction device 3 will be described. The operation instruction device 3 includes a communication unit 301, a proxy unit 302, a data read / write unit 303, a data storage unit 304, a program unit 305, and an input / output unit 306.

通信部(第二通信部)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 operation control device 2 via a network such as a LAN or a USB I / F, and reads out data related to control with the operation control device 2 or data related to control. And transmission / reception of various control commands and various data. In addition, the communication unit 301 outputs the received data related to control, an instruction to read out data related to control, various control commands, various data, and the like to the proxy unit 302. The communication unit 301 also receives operation result data output from the proxy unit 302, a control program, various control commands, various data, and the like. In addition, the communication unit 301 transmits the operation result data received from the proxy unit 302, the control program, various control commands, various data, and the like to the operation control device 2.

プロキシ部(第二プロキシ部)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 proxy unit 302 detects the control-related data and the control-related data read instruction or the control-data write instruction from the received control-related data and various control commands and various data. An instruction to read out the data related to the detected control is output to the data reading / writing unit 303. Further, the proxy unit 302 receives data related to control output from the data reading / writing unit 303. Further, the proxy unit 302 receives a control program for the robot 4 output from the program unit 305. The proxy unit 302 also includes a transmission buffer 311 and a reception buffer 312 that buffer received various commands and various data.

データ読出・書込部303は、プロキシ部302が出力する制御に関わるデータや制御に関わるデータの読み出し指示や書き込み指示等を受け取る。また、データ読出・書込部303は、プロキシ部302から受け取った制御に関わるデータの書き込み指示に基づき、制御に関わるデータをデータ記憶部304に書き込んで記憶させる。また、データ読出・書込部303は、受け取った制御に関わるデータの読み出し指示に基づき、データ記憶部304に記憶されている制御に関わるデータを読み出し、読み出した制御に関わるデータをプロキシ部302に出力する。   The data read / write unit 303 receives data related to control output from the proxy unit 302, data read-related instructions, write instructions, and the like. Further, the data reading / writing unit 303 writes the data related to the control in the data storage unit 304 based on the data write instruction related to the control received from the proxy unit 302. Further, the data reading / writing unit 303 reads the data related to the control stored in the data storage unit 304 based on the received instruction to read the data related to the control, and sends the data related to the read control to the proxy unit 302. Output.

データ記憶部304は、ロボット4の動作結果データ等の各種データが記憶されている。   The data storage unit 304 stores various data such as operation result data of the robot 4.

プログラム部305は、入出力部306から受け取ったロボット4の制御プログラム、または、本ロボット制御システム1の利用者が予め入力装置6を用いて生成した制御プログラム、あるいは、予めプログラム部305に記憶されている制御プログラムを記憶している。また、プログラム部305は、制御プログラムをプロキシ部302に出力する。   The program unit 305 is stored in the control program of the robot 4 received from the input / output unit 306, the control program generated by the user of the robot control system 1 using the input device 6 in advance, or the program unit 305 in advance. The control program is stored. Further, the program unit 305 outputs a control program to the proxy unit 302.

入出力部306は、動作指示装置3の動作状態や各種データ、各種プログラムのデータ等を画像表示装置5に出力し、本ロボット制御システムの利用者が作成したデータやプログラム等を入力装置6から受け取る。   The input / output unit 306 outputs the operation state of the operation instruction device 3, various data, data of various programs, and the like to the image display device 5. receive.

次に、図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 operation control device 2 and the operation instruction device 3 will be described below in the case where they are connected via a LAN network. In addition, as an example of a control command that is detected by the program execution unit 205 and directly transmitted to and received from the proxy unit 202 without going through the controller control unit 204, an operation result data write instruction and an operation result data read instruction will be described. .

動作制御装置2と動作指示装置3を起動する。動作制御装置2と動作指示装置3が起動後、動作指示装置3のプログラム部305は、プログラム部305に記憶されているロボット4の制御プログラムを読み出す(ステップS1)。   The motion control device 2 and the motion instruction device 3 are activated. After the operation control device 2 and the operation instruction device 3 are activated, the program unit 305 of the operation instruction device 3 reads the control program for the robot 4 stored in the program unit 305 (step S1).

次に、プログラム部305は、読み出した制御プログラムをプロキシ部302に出力する。また、プロキシ部302はプログラム部305が出力する制御プログラムを受け取り、受け取った制御プログラムをプロキシ部302の送信バッファ311に格納する(ステップS2)。   Next, the program unit 305 outputs the read control program to the proxy unit 302. In addition, the proxy unit 302 receives the control program output from the program unit 305, and stores the received control program in the transmission buffer 311 of the proxy unit 302 (step S2).

次に、プロキシ部302は送信バッファ311に格納している制御プログラムを読み出し、読み出した制御プログラムを通信部301に出力する。また、通信部301は、プロキシ部302が出力する制御プログラムを受け取り、受け取った制御プログラムをLANのネットワークを介して動作制御装置2に送信する(ステップS3)。   Next, the proxy unit 302 reads the control program stored in the transmission buffer 311 and outputs the read control program to the communication unit 301. The communication unit 301 receives the control program output from the proxy unit 302 and transmits the received control program to the operation control apparatus 2 via the LAN network (step S3).

次に、動作制御装置2の通信部201は、動作指示装置3から制御プログラムの受信を待つ(ステップS4)。制御プログラムが送信されてきた場合、通信部201は、制御プログラムを受信し、受信した制御プログラムをプロキシ部202に出力する。また、プロキシ部202は通信部201が出力する制御プログラムを受け取り、受け取った制御プログラムを受信バッファ212に格納する。   Next, the communication unit 201 of the operation control device 2 waits for reception of a control program from the operation instruction device 3 (step S4). When the control program is transmitted, the communication unit 201 receives the control program and outputs the received control program to the proxy unit 202. Further, the proxy unit 202 receives the control program output from the communication unit 201 and stores the received control program in the reception buffer 212.

次に、コントローラー統括部204は、プロキシ部202の受信バッファ212が格納している制御プログラムを読み出して取得し(ステップS5)、取得した制御プログラムをプログラム記憶部203に書き込んで記憶させる(ステップS6)。   Next, the controller supervision unit 204 reads out and acquires the control program stored in the reception buffer 212 of the proxy unit 202 (step S5), and writes and stores the acquired control program in the program storage unit 203 (step S6). ).

次に、コントローラー統括部204は、プログラム記憶部203に記憶されている制御プログラムを読み出し、読み出した制御プログラムをプログラム実行部205に出力する。また、プログラム実行部205は、コントローラー統括部204が出力する制御プログラムを受け取り、受け取った制御プログラムに基づき、ロボット4を制御するコマンド(以下、ロボット制御コマンドという)をロボット制御部206に出力する。さらに、ロボット制御部206は、プログラム実行部205が出力するロボット制御コマンドを受け取り、受け取ったロボット制御コマンドに基づき、ロボット4を制御する(ステップS7)。   Next, the controller control unit 204 reads the control program stored in the program storage unit 203 and outputs the read control program to the program execution unit 205. The program execution unit 205 also receives a control program output from the controller supervision unit 204 and outputs a command for controlling the robot 4 (hereinafter referred to as a robot control command) to the robot control unit 206 based on the received control program. Further, the robot control unit 206 receives the robot control command output from the program execution unit 205, and controls the robot 4 based on the received robot control command (step S7).

次に、プログラム実行部205は、実行する制御プログラムから動作結果データの書き込み指示(以下、書き込み指示という)、または、ロボットの動作結果データの読み出し指示(以下、読み出し指示という)を検出できたか否かを判定する(ステップS8)。判定の結果、実行する制御プログラムから書き込み指示、または、読み出し指示を検出できた場合(ステップS8;Yes)、プログラム実行部205は読み出し・書き込み処理を行う(ステップS9)。   Next, whether the program execution unit 205 has detected an operation result data write instruction (hereinafter referred to as a write instruction) or a robot operation result data read instruction (hereinafter referred to as a read instruction) from the control program to be executed. Is determined (step S8). As a result of the determination, when a write instruction or a read instruction can be detected from the control program to be executed (step S8; Yes), the program execution unit 205 performs a read / write process (step S9).

判定の結果、実行する制御プログラムから書き込み指示、または、読み出し指示を検出できない場合(ステップ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 program execution unit 205 outputs various data such as the completion of execution of the control command to the controller control unit 204 ( Step S10). The controller supervision unit 204 receives various data such as completion of execution of the robot control command output from the program execution unit 205, and outputs the received various data to the proxy unit 202 according to the received various data. Further, the proxy unit 202 receives various data output from the controller supervision unit 204 and outputs the received various data to the communication unit 201. Further, the communication unit 201 transmits various data output from the proxy unit 202 to the operation instruction device 3 via the LAN network.

次に、図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 operation control device 2 and the operation instruction device 3 are connected via a LAN network, and the operation control device 2 and the operation instruction device 3 complete the activation of the flowchart of FIG. The following explanation will be given for the case.

図3において、プログラム実行部205は、実行する制御プログラムから書き込み指示を検出できかたか否かを判定する(ステップS101)。判定の結果、実行する制御プログラムから書き込み指示を検出できない場合(ステップS101;No)、プログラム実行部205は、ロボット制御の実行を継続する。   In FIG. 3, the program execution unit 205 determines whether or not a write instruction has been detected from the control program to be executed (step S101). As a result of the determination, when the writing instruction cannot be detected from the control program to be executed (step S101; No), the program execution unit 205 continues to execute the robot control.

判定の結果、実行する制御プログラムから書き込み指示を検出できた場合(ステップ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 program execution unit 205 directly sends the write instruction and the robot operation result to the proxy unit 202 without going through the controller control unit 204. Data (hereinafter referred to as operation result data) is output. The proxy unit 202 also receives the write instruction and operation result data output from the program execution unit 205, and stores the received write instruction and operation result data in the transmission buffer 211 (step S102).

次に、プロキシ部202は送信バッファ211に格納されている書き込み指示と動作結果データを読み出し、読み出した動作結果データを通信部201に出力する。また、通信部201は、受け取った書き込み指示と動作結果データをLANのネットワークを介して動作指示装置3に送信する(ステップS103)。   Next, the proxy unit 202 reads the write instruction and operation result data stored in the transmission buffer 211, and outputs the read operation result data to the communication unit 201. Further, the communication unit 201 transmits the received write instruction and operation result data to the operation instruction device 3 via the LAN network (step S103).

次に、通信部201は、書き込み指示と動作結果データの送信が完了したか否かを判定する(ステップS104)。   Next, the communication unit 201 determines whether or not transmission of the write instruction and operation result data has been completed (step S104).

判定の結果、動作指示装置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 operation instruction device 3 for a predetermined time (step S104; No), the communication unit 201 determines that the transmission has failed and the transmission has failed. Information is output to the program execution unit 205 (step S105).

通信部201が送信完了したと判定した場合(ステップS104;Yes)、動作指示装置3の通信部301は、動作制御装置2から書き込み指示と動作結果データの受信を待つ(ステップS106)。また、書き込み指示と動作結果データが送信されてきた場合、通信部301は、書き込み指示と動作結果データを受信し、受信した書き込み指示と動作結果データをプロキシ部302に出力する。さらに、プロキシ部302は通信部301が出力する書き込み指示と動作結果データを受け取り、受け取った書き込み指示と動作結果データを受信バッファ312に格納する。   When it is determined that the communication unit 201 has completed transmission (step S104; Yes), the communication unit 301 of the operation instruction device 3 waits for reception of a write instruction and operation result data from the operation control device 2 (step S106). When a write instruction and operation result data are transmitted, the communication unit 301 receives the write instruction and operation result data, and outputs the received write instruction and operation result data to the proxy unit 302. Further, the proxy unit 302 receives the write instruction and operation result data output from the communication unit 301, and stores the received write instruction and operation result data in the reception buffer 312.

次に、プロキシ部302は、受信バッファ312から書き込み指示と動作結果データを読み出し(ステップS107)、読み出したデータから動作結果データを検出できたか否かを判定する。   Next, the proxy unit 302 reads a write instruction and operation result data from the reception buffer 312 (step S107), and determines whether the operation result data has been detected from the read data.

判定の結果、読み出したデータから書き込み指示を検出できた場合、プロキシ部302は、読み出した書き込み指示に基づき、動作結果データをデータ読出・書込部303に出力して、データ読出・書込部303に通知する(ステップS108)。また、判定の結果、読み出したデータから書き込み指示を検出できない場合、プロキシ部302は読み出し・書き込み処理ではない一般的な処理を継続する。   As a result of the determination, when the write instruction can be detected from the read data, the proxy unit 302 outputs the operation result data to the data read / write unit 303 based on the read write instruction, and the data read / write unit 303 is notified (step S108). Further, as a result of the determination, when the write instruction cannot be detected from the read data, the proxy unit 302 continues general processing that is not read / write processing.

次に、プロキシ部302は、書き込み指示の通知が完了したか否かを判定する(ステップS109)。   Next, the proxy unit 302 determines whether or not the notification of the write instruction has been completed (step S109).

判定の結果、データ読出・書込部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 / write unit 303 to the notification of the write instruction (step S109; No), the proxy unit 302 determines that the notification has failed. . If the proxy unit 302 determines that the notification has failed, the proxy unit 302 outputs information indicating that the writing process has failed to the communication unit 301 (step S110).

判定の結果、データ読出・書込部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 / writing unit 303 receives and receives the operation result data output from the proxy unit 302. The operation result data is written and stored in the data storage unit 304 (step S111). The data reading / writing unit 303 outputs information indicating successful writing to the proxy unit 302 after the operation result data has been written to the data storage unit 304. Further, the proxy unit 302 receives information on successful writing output from the data reading / writing unit 303, and outputs the received successful writing information to the communication unit 301. Further, the communication unit 301 receives the information on the successful writing or the information on the writing that is output from the proxy unit 302, and receives the information indicating whether or not the writing is possible (the information on the successful writing or the information on which the writing has failed). Is transmitted to the operation control apparatus 2 via the LAN network.

次に、図4において、動作制御装置2の通信部201は、動作指示装置3から書き込みの可否情報の受信を待つ(ステップS121)。書き込みの可否情報が動作指示装置3から送信されてきた場合、通信部201は、書き込みの可否情報を受信し、受信した書き込みの可否情報をプロキシ部202に出力する。また、プロキシ部202は、通信部201が出力する書き込みの可否情報を受け取り、受け取った書き込みの可否情報を受信バッファ212に格納する。   Next, in FIG. 4, the communication unit 201 of the operation control device 2 waits for reception of write permission information from the operation instruction device 3 (step S <b> 121). When the write availability information is transmitted from the operation instruction device 3, the communication unit 201 receives the write availability information and outputs the received write availability information to the proxy unit 202. In addition, the proxy unit 202 receives write permission information output from the communication unit 201 and stores the received write permission information in the reception buffer 212.

次に、プロキシ部202は、受信バッファ212に格納されているデータを読み出し(ステップS122)、読み出したデータから書き込み指示に対する応答データである書き込みの可否情報が検出できたか否かを判定する。   Next, the proxy unit 202 reads the data stored in the reception buffer 212 (step S122), and determines whether or not the write enable / disable information that is response data to the write instruction can be detected from the read data.

判定の結果、読み出したデータから書き込みの可否情報を検出できた場合、プロキシ部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 proxy unit 202 outputs the read writability information directly to the program execution unit 205 without using the controller overall unit 204. The program execution unit is notified (step S123). If the determination result indicates that the write permission / prohibition information cannot be detected from the read data, the proxy unit 202 outputs the read data to the controller control unit 204.

以上のように、ロボット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 robot 4, the program execution unit 205 directly writes to the proxy unit 202 and the operation does not go through the controller control unit 204 of the operation control device 2. The result data is output and further transmitted to the operation instruction device 3. In addition, since the proxy unit 302 of the operation instruction device 3 detects a write instruction from the received data and stores the operation result data in the data storage unit 304, a delay occurs while executing a program for controlling the robot. It is possible to write high-speed operation result data with less.

次に、図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 operation control device 2 and the operation instruction device 3 are connected via a LAN network, and the operation control device 2 and the operation instruction device 3 complete the activation of the flowchart of FIG. The following explanation will be given for the case.

図5において、プログラム実行部205は、実行する制御プログラムから読み出し指示が検出できたか否かを判定する(ステップS201)。判定の結果、実行している制御プログラムから読み出し指示が検出できない場合(ステップS201;No)、プログラム実行部205は、ロボット制御の実行を継続する。   In FIG. 5, the program execution unit 205 determines whether or not a read instruction has been detected from the control program to be executed (step S201). As a result of the determination, when a read instruction cannot be detected from the control program being executed (step S201; No), the program execution unit 205 continues to execute the robot control.

判定の結果、実行する制御プログラムから読み出し指示を検出できた場合(ステップ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 program execution unit 205 outputs the read instruction directly to the proxy unit 202 without going through the controller control unit 204. In addition, the proxy unit 202 receives the read instruction output from the program execution unit 205, and stores the received read instruction in the transmission buffer 211 (step S202).

次に、プロキシ部202は送信バッファ211に格納されている読み出し指示を読み出し、読み出した読み出し指示を通信部201に出力する。また、通信部201は、受け取った読み出し指示をLANのネットワークを介して動作指示装置3に送信する(ステップS203)。   Next, the proxy unit 202 reads the read instruction stored in the transmission buffer 211 and outputs the read read instruction to the communication unit 201. The communication unit 201 transmits the received read instruction to the operation instruction device 3 via the LAN network (step S203).

次に、通信部201は、読み出し指示の送信が完了したか否かを判定する(ステップS204)。   Next, the communication unit 201 determines whether or not the transmission of the read instruction has been completed (step S204).

判定の結果、動作指示装置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 operation instruction device 3 to transmit the operation result data (step S204; No), the communication unit 201 determines that the transmission has failed. In addition, the communication unit 201 outputs information on the transmission failure to the program execution unit 205 (step S205).

通信部201が送信完了したと判定した場合(ステップS204;Yes)、動作指示装置3の通信部301は、動作指示装置3から読み出し指示の受信を待つ(ステップS206)。読み出し指示が送信されてきた場合、通信部301は、読み出し指示を受信し、受信した読み出し指示をプロキシ部302に出力する。また、プロキシ部302は通信部301が出力する読み出し指示を受け取り、受け取った読み出し指示を受信バッファ312に格納する。   When the communication unit 201 determines that the transmission is completed (step S204; Yes), the communication unit 301 of the operation instruction device 3 waits for reception of a read instruction from the operation instruction device 3 (step S206). When a read instruction is transmitted, the communication unit 301 receives the read instruction and outputs the received read instruction to the proxy unit 302. Further, the proxy unit 302 receives a read instruction output from the communication unit 301 and stores the received read instruction in the reception buffer 312.

次に、プロキシ部302は、受信バッファ312から読み出し指示を読み出し(ステップS207)、読み出したデータから読み出し指示を検出できたか否かを判定する。   Next, the proxy unit 302 reads a read instruction from the reception buffer 312 (step S207), and determines whether the read instruction has been detected from the read data.

判定の結果、読み出したデータから読み出し指示を検出できた場合、プロキシ部302は、読み出した読み出し指示をデータ読出・書込部303に出力して、データ読出・書込部303に通知する(ステップS208)。また、判定の結果、読み出したデータから読み出し指示を検出できない場合、プロキシ部302は読み出し・書き込み処理ではない一般的な処理を継続する。   As a result of the determination, when a read instruction can be detected from the read data, the proxy unit 302 outputs the read instruction to the data read / write unit 303 and notifies the data read / write unit 303 (step). S208). If the determination result indicates that the read instruction cannot be detected from the read data, the proxy unit 302 continues general processing that is not read / write processing.

次に、プロキシ部302は、読み出し指示の通知が完了したか否かを判定する(ステップS209)。   Next, the proxy unit 302 determines whether or not the notification of the read instruction is completed (Step S209).

判定の結果、データ読出・書込部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 / writing unit 303 even after a predetermined time has passed (step S209; No), the proxy unit 302 determines that the notification has failed. . If the proxy unit 302 determines that the notification has failed, the proxy unit 302 outputs information indicating that the reading process has failed to the communication unit 301 (step S210).

プロキシ部302が通知完了したと判定した場合(ステップS209;Yes)、データ読出・書込部303は、プロキシ部302が出力する読み出し指示を受け取り、受け取った読み出し指示に基づきデータ記憶部304に記憶されている動作結果データを読み出す(ステップS211)。また、データ読出・書込部303は、データ記憶部304から動作結果データを読み出し完了後、読み出した動作結果データをプロキシ部302に出力する。さらに、プロキシ部302は、データ読出・書込部303が出力する動作結果データを受け取り、受け取った動作結果データを通信部301に出力する。さらに、通信部301は、プロキシ部302が出力する動作結果データ、または、読み出し処理が失敗した情報を受け取り、受け取った読み出し指示に対する応答データ(動作結果データ、または、読み出し処理が失敗した情報)をLANのネットワークを介して動作制御装置2に送信する。   If the proxy unit 302 determines that the notification has been completed (step S209; Yes), the data reading / writing unit 303 receives the read instruction output from the proxy unit 302 and stores it in the data storage unit 304 based on the received read instruction. The read operation result data is read (step S211). The data read / write unit 303 outputs the read operation result data to the proxy unit 302 after the operation result data is completely read from the data storage unit 304. Further, the proxy unit 302 receives the operation result data output from the data reading / writing unit 303 and outputs the received operation result data to the communication unit 301. Further, the communication unit 301 receives the operation result data output from the proxy unit 302 or information indicating that the reading process has failed, and receives response data (operation result data or information indicating that the reading process has failed) in response to the received read instruction. The data is transmitted to the operation control apparatus 2 via the LAN network.

次に、図6において、動作制御装置2の通信部201は、動作指示装置3から読み出し指示に対する応答データの受信を待つ(ステップS221)。読み出し指示に対する応答データが送信されてきた場合、通信部201は読み出し指示に対する応答データを受信し、読み出し指示に対する応答データをプロキシ部202に出力する。また、プロキシ部202は通信部201が出力する読み出し指示に対する応答データを受け取り、受け取った読み出し指示に対する応答データを受信バッファ212に格納する。   Next, in FIG. 6, the communication unit 201 of the operation control device 2 waits for reception of response data for the read instruction from the operation instruction device 3 (step S <b> 221). When response data for the read instruction is transmitted, the communication unit 201 receives the response data for the read instruction, and outputs the response data for the read instruction to the proxy unit 202. Further, the proxy unit 202 receives response data for the read instruction output from the communication unit 201, and stores the response data for the received read instruction in the reception buffer 212.

次に、プロキシ部202は、受信バッファ212に格納されているデータを読み出し(ステップS222)、読み出したデータから読み出し指示に対する応答データ(動作結果データ、または、書き込み処理が失敗した情報)を検出できたか否かを判定する。   Next, the proxy unit 202 can read the data stored in the reception buffer 212 (step S222), and can detect response data (operation result data or information on which write processing has failed) in response to the read instruction from the read data. It is determined whether or not.

判定の結果、読み出したデータから読み出し指示に対する応答データを検出できた場合、プロキシ部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 proxy unit 202 outputs the response data for the read instruction to the program execution unit 205 directly without using the controller control unit 204. Then, the program execution unit is notified (step S223). If the response data for the read instruction cannot be detected from the read data as a result of the determination, the proxy unit 202 outputs the read data to the controller control unit 204.

以上のように、ロボット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 robot 4, the read instruction is directly output from the program execution unit 205 to the proxy unit 202 without going through the controller control unit 204 of the operation control device 2. To do. In addition, the proxy unit 302 of the operation instruction apparatus 3 detects a read instruction and reads operation result data stored in the data storage unit 304. Then, the proxy unit 302 detects the read operation result data, and the communication unit 301 transmits the detected operation result data to the operation control device 2. Then, the operation result data that is a response to the read instruction is detected from the data received by the proxy unit 202 of the operation control apparatus 2, and the detected operation result data is directly transmitted to the program execution unit 205 without using the controller control unit 204. Since the data is output, it is possible to read out the operation result data at a high speed with little delay while executing the program for controlling the robot.

[第二実施形態]
図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 operation control device 2 will be described with reference to FIG. The difference from the first embodiment is that the communication unit 201, the proxy unit 202, the program storage unit 203, the controller control unit 204, and the program execution unit 205 are realized by the application 250, and the communication IF (Interface) unit 251 is provided. The application 250 includes a communication FW (firmware) unit 252, a proxy FW unit 253, a controller overall FW unit 254, and a program execution FW unit 255.

通信IF部251は、通信部201のハードウェア部分である。また、通信FW部252は、通信部201の通信ファームウェア部分である。   The communication IF unit 251 is a hardware part of the communication unit 201. The communication FW unit 252 is a communication firmware part of the communication unit 201.

プロキシFW部253は、プロキシ部202と同等の機能を備え、コントローラー統括FW部254はコントローラー統括部204と同等の機能を備え、プログラム実行FW部255はプログラム実行部205と同等の機能を備えている。また、プロキシFW部253は、受け取った各種コマンドや各種データのバッファを行う送信バッファ211と受信バッファ212を備えている。   The proxy FW unit 253 has the same function as the proxy unit 202, the controller overall FW unit 254 has the same function as the controller overall unit 204, and the program execution FW unit 255 has the same function as the program execution unit 205. Yes. Further, the proxy FW unit 253 includes a transmission buffer 211 and a reception buffer 212 for buffering various received commands and various data.

次に、動作指示装置3の構成について説明する。第一の実施形態との差異は、通信部301と、プロキシ部302と、データ読出・書込部303と、プログラム部305をアプリケーション350で実現している点と、通信IF部(インタフェース)351を備えている点にある。アプリケーション350は、通信FW(ファームウェア)部352と、プロキシFW部353と、デーモン部354と、プログラム部355とを備えている。   Next, the configuration of the operation instruction device 3 will be described. The difference from the first embodiment is that the communication unit 301, the proxy unit 302, the data read / write unit 303, and the program unit 305 are realized by the application 350, and the communication IF unit (interface) 351. It is in the point equipped with. The application 350 includes a communication FW (firmware) unit 352, a proxy FW unit 353, a daemon unit 354, and a program unit 355.

通信IF部351は、通信部301のハードウェア部分である。また、通信FW部352は、通信部301の通信ファームウェア部分である。   The communication IF unit 351 is a hardware part of the communication unit 301. The communication FW unit 352 is a communication firmware part of the communication unit 301.

プロキシ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 proxy unit 302, the daemon unit 354 has the same function as the data read / write unit 303, and the program unit 355 has the same function as the program unit 305. That is, the daemon unit 354 is an application that reads / writes data that is activated by a write instruction output from the proxy FW unit 353 or a read instruction. Further, the proxy FW unit 353 includes a transmission buffer 311 and a reception buffer 312 that buffer received various commands and various data.

次に動作結果データの書き込み処理について、図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 unit 351 receives the write instruction and operation result data, and outputs the received write instruction and operation result data to the communication FW unit 352. The communication FW unit 352 outputs the received write instruction and operation result data to the proxy FW unit 353, and the proxy FW unit 353 stores the received write instruction and operation result data in the reception buffer 312.
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 daemon unit 354 based on the read write instruction and notifies the daemon unit 354 (step S108). ). Hereinafter, step S109 to step S123 are the same as those in the first embodiment, and a description thereof will be omitted.

また、動作結果データの読み出し時、図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 operation instruction device 3 receives the read instruction, determines whether or not the read instruction can be detected from the data read by the proxy FW unit 353, and as a result of the determination, the read instruction can be detected from the read data. In this case, a read instruction is output to the daemon unit 354. In addition, the daemon unit 354 receives a read instruction output from the proxy FW unit 353, and reads operation result data stored in the data storage unit 304 based on the received read instruction (step S211). Hereinafter, since it is the same procedure as step S221 to step S223, description thereof is omitted.

以上のように、第一の実施形態の機能の一部をアプリケーションで実現したため、動作指示装置3はPCを用いて、このPCに第二実施形態で説明したアプリケーション350をインストールすることで、第一の実施形態と同様の効果を得ることができる。   As described above, since a part of the functions of the first embodiment is realized by an application, the operation instruction apparatus 3 uses a PC and installs the application 350 described in the second embodiment on the PC. Effects similar to those of the one embodiment can be obtained.

また、第二の実施形態では、アプリケーション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 application 250 includes the communication unit 201, the proxy unit 202, the controller control unit 204, and the program execution unit 205 of the operation control device 2, and the application 350 includes the communication unit 301 of the operation instruction device 3. The proxy unit 302, the data reading / writing unit 303, and the program unit 305 have been described. However, all or a part of the functions of FIG. ROM (Read Only Memory), HDD (Hard Disk) connected to the central processing unit
(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 communication unit 201 and the communication unit 301 are connected via a network such as a LAN or a USB I / F. However, for example, another network such as IEEE 1394 may be used. good.

また、本実施形態では、ロボットの動作結果データとして、ロボットの各軸の角度や座標を例に説明したが、動作制御装置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 motion control device 2 and image data captured by this camera is written. Based on the instruction or the read instruction, data is directly transmitted and received between the program execution unit 205 and the proxy unit 202 without going through the controller control unit 204. Further, the captured image data is written and stored in the data storage unit 304 of the operation instruction device 3 or the captured image data is read from the data storage unit and the read captured image data is transmitted to the operation control device 2. You may do it. In the case of reading or writing other data that does not directly instruct the operation of the robot, data may be directly transmitted and received between the program execution unit 205 and the proxy unit 202 without going through the controller control unit 204. good.

また、本実施形態では、動作制御装置2と動作指示装置3をLAN等のネットワークで接続する例を説明したが、動作制御装置2と動作指示装置3を1個の筐体に入れ、筐体内において、動作制御装置2と動作指示装置3をUSBネットワークで接続するように構成しても良い。   In this embodiment, the example in which the operation control device 2 and the operation instruction device 3 are connected via a network such as a LAN has been described. However, the operation control device 2 and the operation instruction device 3 are placed in one case, The operation control device 2 and the operation instruction device 3 may be connected via a USB network.

1・・・ロボット制御システム2・・・動作制御装置3・・・動作指示装置4・・・ロボット5・・・画像表示装置6・・・入力装置201,301・・・通信部202、302・・・プロキシ部203・・・プログラム記憶部204・・・コントローラー統括部205・・・プログラム実行部206・・・ロボット制御部303・・・データ読出・書込部304・・・データ記憶部305・・・プログラム部306・・・入出力部 DESCRIPTION OF SYMBOLS 1 ... Robot control system 2 ... Motion control apparatus 3 ... Motion instruction | indication apparatus 4 ... Robot 5 ... Image display apparatus 6 ... Input device 201,301 ... Communication part 202,302 ... Proxy section 203 ... Program storage section 204 ... Controller supervision section 205 ... Program execution section 206 ... Robot control section 303 ... Data read / write section 304 ... Data storage section 305 ... Program unit 306 ... Input / output unit

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.
筐体を備え、  With a housing,
前記動作制御装置および前記動作指示装置は、前記筐体の内部に配置されている、  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 robot control system includes a housing,
前記動作制御装置および前記動作指示装置は、前記筐体の内部に配置されている、  The operation control device and the operation instruction device are disposed inside the housing.
ことを特徴とする請求項3に記載のロボット制御方法。  The robot control method according to claim 3.
JP2013270457A 2013-12-26 2013-12-26 Robot control system and robot control method Active JP5804042B2 (en)

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 Active 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)

* Cited by examiner, † Cited by third party
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

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
JP2017187993A (en) Control device, control method, and program
JP2006293544A (en) Numerical control system
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
JP6587031B2 (en) Control device, data processing device, control system, control method, data processing method, control program, and data processing program
JP5445012B2 (en) Robot control system and robot control method
JP5794266B2 (en) USB host device and program for USB host device
JP2011110687A (en) Robot control system and robot control method
KR101772547B1 (en) Power consumption reduction in a computing device
JP2008226111A (en) Duplication controller system and operation system controller
JP2010134830A (en) Programmable controller, cpu unit, analog input unit, and analog output unit
JP4686211B2 (en) Command output device and input / output execution time monitoring method
JP6405972B2 (en) Operation verification apparatus, operation verification method, and operation verification program
US20080307208A1 (en) Application specific processor having multiple contexts
JP4813823B2 (en) Test system and test method
US8869137B2 (en) Information processing apparatus that automatically and sequentially displays graphical user interface images and recording medium storing program
JP2006330124A (en) Data processor
JP6563155B1 (en) Programmable logic controller, external device, method, and program
US20210064255A1 (en) Information processing apparatus and control method for information processing apparatus
JP2016146087A (en) Memory control unit and control method thereof
JP6323155B2 (en) Data processing apparatus and data processing apparatus control method
JP2006252482A (en) Starting method for device, and image forming device

Legal Events

Date Code Title Description
A521 Written amendment

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 Written amendment

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 (=grant) 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