JP5492437B2 - Robot control system and controller - Google Patents

Robot control system and controller Download PDF

Info

Publication number
JP5492437B2
JP5492437B2 JP2009080229A JP2009080229A JP5492437B2 JP 5492437 B2 JP5492437 B2 JP 5492437B2 JP 2009080229 A JP2009080229 A JP 2009080229A JP 2009080229 A JP2009080229 A JP 2009080229A JP 5492437 B2 JP5492437 B2 JP 5492437B2
Authority
JP
Japan
Prior art keywords
key
communication
packet
unit
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
JP2009080229A
Other languages
Japanese (ja)
Other versions
JP2010167550A (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.)
Nachi Fujikoshi Corp
Daihen Corp
Original Assignee
Nachi Fujikoshi Corp
Daihen 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 Nachi Fujikoshi Corp, Daihen Corp filed Critical Nachi Fujikoshi Corp
Priority to JP2009080229A priority Critical patent/JP5492437B2/en
Publication of JP2010167550A publication Critical patent/JP2010167550A/en
Application granted granted Critical
Publication of JP5492437B2 publication Critical patent/JP5492437B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Numerical Control (AREA)
  • Manipulator (AREA)

Description

本発明は、ティーチペンダントとコントローラをネットワークや非有線通信手段で接続するロボット制御システム及びコントローラに関する。   The present invention relates to a robot control system and a controller for connecting a teach pendant and a controller via a network or non-wired communication means.

特許文献1では、ティーチペンダント(可搬式操作装置)とロボット制御を行うコントローラ間の通信制御において、ティーチペンダントの非常停止機能を通信化する際、両者間の通信の定時性を保証することにより、非常停止の応答性を確保する技術が提案されている。   In Patent Document 1, in communication control between a teach pendant (portable operation device) and a controller that performs robot control, when communicating the emergency stop function of the teach pendant, by guaranteeing the punctuality of communication between the two, Techniques for ensuring emergency stop responsiveness have been proposed.

一方、特許文献2では、リモートデスクトッププロトコル(以下、RDPという)を利用し、ティーチペンダントのGUI(Graphical User Interface)機能をネットワーク化する技術が提案されている。   On the other hand, Patent Document 2 proposes a technique for networking a teach pendant GUI (Graphical User Interface) function using a remote desktop protocol (hereinafter referred to as RDP).

特許文献2のティーチペンダントでは、上記の非常停止機能と、GUI機能の2つの機能を備える端末として利用されている。このため、可搬式操作装置とロボット制御を行うコントローラとの間では、非常停止機能のための安全通信と、GUI機能のためのRDP通信の、2種類の通信が行われている。   The teach pendant of Patent Document 2 is used as a terminal having the two functions of the emergency stop function and the GUI function. For this reason, two types of communication are performed between the portable operating device and the controller that performs robot control: safety communication for the emergency stop function and RDP communication for the GUI function.

特許文献3では、ティーチペンダントのGUI機能をネットワーク通信化する方法が述べられている。
ここで、ネットワーク接続したロボットシステムの概略を図7を参照して説明する。
Patent Document 3 describes a method of networking the teach pendant GUI function.
Here, an outline of the networked robot system will be described with reference to FIG.

ティーチペンダント200は、安全機能とGUI機能とを兼ね備えた、ロボットの教示を行うための端末である。そして、ティーチペンダント200とロボット制御装置300(コントローラ)とをネットワーク経由で接続するロボット制御システムでは、両者の間で、「安全機能」のネットワーク化を実現するための安全通信と、GUI機能のネットワーク化を実現するための通信とがそれぞれティーチペンダント200の安全送信部202とロボット制御装置300の安全受信部302間、及び非安全送信部204と非安全受信部304間で行われる。   The teach pendant 200 is a terminal for teaching a robot having both a safety function and a GUI function. In the robot control system in which the teach pendant 200 and the robot control device 300 (controller) are connected via a network, a safety communication for realizing a “safety function” network and a GUI function network between the two. Communication for realizing the communication is performed between the safety transmission unit 202 of the teach pendant 200 and the safety reception unit 302 of the robot control device 300, and between the non-safety transmission unit 204 and the non-safety reception unit 304, respectively.

安全機能とは、作業者がティーチペンダント200の非常停止スイッチ206、又はデッドマンスイッチ208を作業者が操作したときに、ロボット制御部306を制御して確実にロボットRを停止させるための機能である。   The safety function is a function for reliably stopping the robot R by controlling the robot control unit 306 when the operator operates the emergency stop switch 206 or the deadman switch 208 of the teach pendant 200. .

安全通信は、ティーチペンダント200の非常停止スイッチ206、デッドマンスイッチ208の「ON/OFF状態」(以下、安全キー状態という)を確実にロボット制御装置300に伝達することを目的としている。   The purpose of the safety communication is to reliably transmit the “ON / OFF state” (hereinafter referred to as “safety key state”) of the emergency stop switch 206 and the deadman switch 208 of the teach pendant 200 to the robot controller 300.

ロボット制御装置300は、安全通信で送られてきた安全キー状態に応じて、ロボット制御部306を制御してロボットRに停止/動作許可の指示を行う。
又、特許文献1では、安全通信における通信エラーや通信機の故障により、安全入力を正しく伝達できないような安全通信エラー状態が発生した場合でも、ティーチペンダント200及びロボット制御装置300の安全通信エラー検出機能、例えば、タイムアウト、CRC、連番チェック、チェックの2重化により、安全機能が安全通信エラー状態であることが検出され、この場合には、ロボットに非常停止を指示する。
The robot control device 300 controls the robot control unit 306 to instruct the robot R to stop / permit operation according to the safety key state sent through the safety communication.
Further, in Patent Document 1, even when a safety communication error state that prevents a safety input from being correctly transmitted due to a communication error in safety communication or a failure of a communication device occurs, safety communication error detection of the teach pendant 200 and the robot controller 300 is detected. The function, for example, timeout, CRC, serial number check, and double check, it is detected that the safety function is in a safety communication error state, and in this case, an emergency stop is instructed to the robot.

このため、安全通信エラーが発生した場合でも、ロボットシステム全体としては安全性が確保される。
又、GUI機能とは、安全機能以外の操作入力手段(ボタン、スイッチ、タッチパネル、ダイヤルなど、以下、GUIキー類210という)と、表示手段212(画面、インジケータ等を含む)の機能である。
For this reason, even when a safety communication error occurs, the safety of the entire robot system is ensured.
The GUI function is a function of operation input means (buttons, switches, touch panels, dials, etc., hereinafter referred to as GUI keys 210) and display means 212 (including screens, indicators, etc.) other than safety functions.

GUI機能を実現するために行われている非安全通信は、ティーチペンダント200のGUIキー類210の操作状態を、ロボット制御装置300に伝達すること、及びティーチペンダント200の表示手段212に表示する情報を前記ロボット制御装置300から取得することを目的としている。特許文献2,3では、前記非安全通信の一例として、RDP、ウェブ・ブラウザ、ジャバスクリプト(Java ScriptTM)、アクティブX(登録商標)、電子メールなどが挙げられている。このように従来技術の非安全通信は、一般的なコンピュータ同士の通信方式を採用している。なお、GUIキー類210には、作業者がロボットの動作/停止を指示するためのキー類も存在する。   The non-safety communication performed for realizing the GUI function is to transmit the operation state of the GUI keys 210 of the teach pendant 200 to the robot control device 300 and to display the information on the display unit 212 of the teach pendant 200. Is obtained from the robot controller 300. In Patent Documents 2 and 3, as an example of the non-secure communication, RDP, web browser, JavaScript (Java Script ™), Active X (registered trademark), electronic mail, and the like are cited. Thus, the conventional non-safety communication employs a general communication method between computers. Note that the GUI keys 210 also include keys for an operator to instruct operation / stop of the robot.

特開2008−9872号公報JP 2008-9872 A 特開2008−80475号公報JP 2008-80475 A 特開2003−53688号公報JP 2003-53688 A

ところで、安全通信と非安全通信は、図7に示すように、ティーチペンダント200の安全送信部202とロボット制御装置300の安全受信部302間、及び非安全送信部204と非安全受信部304間で、別々に処理される。なお、通信経路は、別々でもよいが、安全送信部202とロボット制御装置300の安全受信部302間では、安全通信パケットSxが生成されて送信され、非安全送信部204と非安全受信部304間では、非安全通信パケットNSが生成されて送信され、両パケットはそれぞれ別々のものとなる。なお、xは1,2,3……である。 By the way, as shown in FIG. 7, the safety communication and the non-safety communication are performed between the safety transmission unit 202 of the teach pendant 200 and the safety reception unit 302 of the robot control device 300, and between the non-safety transmission unit 204 and the non-safety reception unit 304. It is processed separately. The communication paths may be different, but the safety communication packet Sx is generated and transmitted between the safety transmission unit 202 and the safety reception unit 302 of the robot controller 300, and the non-safety transmission unit 204 and the non-safety reception unit 304 are transmitted. In between, the non-secure communication packet NS x is generated and transmitted, and both packets are different from each other. Note that x is 1, 2, 3,.

ロボット教示作業中の通信エラーを種類別に分けると、エラー種別とその時のロボットの動作は、表1のようになる。   When communication errors during robot teaching work are classified by type, the error types and the robot operation at that time are as shown in Table 1.

Figure 0005492437
表1の第3欄の非安全通信エラーがあった場合でも、安全機能では安全通信の通信エラーが発生していないため、安全機能が持つ通信エラー検出機能は働かない。この場合は、作業者が異常状態であることを、ロボットの動作状況から判断して、安全機能を操作、すなわち、非常停止スイッチの操作をしなければ、ロボットは停止しないことになる。
Figure 0005492437
Even if there is a non-safety communication error in the third column of Table 1, the communication error detection function of the safety function does not work because the safety function does not generate a safety communication error. In this case, the robot will not stop unless the operator is in an abnormal state and the safety function is operated, that is, the emergency stop switch is not operated.

又、前述のように従来技術の非安全通信は、一般的なコンピュータ同士の通信方式を利用しているため、このような非安全通信における通信エラー発生時の安全確保、すなわち、ロボット停止については、従来は検討されていなかった。   In addition, as described above, the conventional non-safety communication uses a general computer-to-computer communication method. Therefore, for ensuring safety when a communication error occurs in such non-safety communication, that is, for stopping the robot. In the past, it was not studied.

上述した例は、ロボットが停止しない例であったが、その他にも、ティーチペンダント200に設けられたロボットの速度の動的変更ボタンの操作が解除されたにもかかわらず、通信エラーによりロボット制御装置側では速度の動的変更ボタンが押し放しと同じ状態と解釈されてしまい、ロボットの動作速度が異常に速くなることもあり得る。   The above-described example is an example in which the robot does not stop. In addition, the robot control is performed due to a communication error even though the operation of the dynamic speed change button of the robot provided on the teach pendant 200 is released. On the device side, the dynamic speed change button is interpreted as being in the same state as when the button is released, and the operation speed of the robot may become abnormally high.

又、ティーチペンダントの溶接パラメータの変更ボタンの操作が解除されているにもかかわらず、通信エラーによりロボット制御装置側では溶接機に異常な指令が送られることもあり得る。   In addition, even though the operation of the change button of the teaching parameter of the teach pendant is released, an abnormal command may be sent to the welding machine on the robot controller side due to a communication error.

又、溶接ロボットのロボット制御装置では、文字入力ボタン、或いはDelキーの操作が解除されたにもかかわらず、通信エラーにより押し放しと同じ状態と解釈されてしまうと、ロボット制御装置が管理しているデータが破損することも有り得る。   Moreover, in the robot controller of the welding robot, if the character input button or the Del key is released, the robot controller will manage if it is interpreted as being pressed due to a communication error. It is possible that the stored data is corrupted.

本発明の目的は、教示時において通信エラーが発生した場合でも、ロボット制御を行うコントローラ側の反応の遅れや、或いは操作不可の状態が発生することがなく、安全性を高めることができるネットワーク対応のロボット制御システムを提供することにある。   The object of the present invention is to support a network that can improve safety without causing a delay in reaction on the controller side that performs robot control or an inoperable state even when a communication error occurs during teaching. It is to provide a robot control system.

又、本発明の他の目的は、上記ロボット制御システムに適用できるコントローラを提供することにある。   Another object of the present invention is to provide a controller applicable to the robot control system.

上記問題点を解決するために、請求項1に記載の発明は、ロボットの動作に関連する1以上の教示操作キーおよびロボットの動作には関連しない1以上の非教示操作キーを含んだ操作キーと、前記各種の操作キーのオンオフ状態を監視するキー状態監視手段と、前記キー状態監視手段が監視している前記教示操作キーの各入力状態に応じたパケットデータである教示操作パケットを、前記教示操作キーの入力順に作成して送信するとともに、前記キー状態監視手段が監視している前記非教示操作キーの各入力状態に応じたパケットデータである非教示操作パケットを、前記非教示操作キーの入力順に作成して送信する第1通信手段と、を備えた可搬式操作装置と、
受信した前記教示操作パケットおよび前記非教示操作パケットについて、通信エラーの有無を検証する第2通信手段と、前記第2通信手段が受信した前記教示操作パケットに前記通信エラーが生じていない場合はそのパケットデータに応じたロボット制御を行い、前記通信エラーが生じている場合にはロボットを停止する一方、前記第2通信手段が受信した前記非教示操作パケットのうち、前記通信エラーが生じていない非教示操作パケットに基づいてGUI制御を行うコントローラと、を備え、前記第2通信手段は、受信した前記非教示操作パケットに通信エラーを検出したときは、前記可搬式操作装置に再送信要求を行うことを特徴とするロボット制御システム
を要旨とするものである。
In order to solve the above problems, the invention according to claim 1 is an operation key including one or more teaching operation keys related to the operation of the robot and one or more non-teaching operation keys not related to the operation of the robot. A key state monitoring unit that monitors on / off states of the various operation keys, and a teaching operation packet that is packet data corresponding to each input state of the teaching operation key monitored by the key state monitoring unit, The non-teaching operation key is generated and transmitted in the order of input of the teaching operation key, and the non-teaching operation key is packet data corresponding to each input state of the non-teaching operation key monitored by the key state monitoring unit. A first communication means that creates and transmits in the input order, and a portable operation device comprising:
Second communication means for verifying the presence or absence of a communication error for the received teaching operation packet and the non-teaching operation packet, and if the communication error has not occurred in the teaching operation packet received by the second communication means Robot control is performed according to packet data, and when the communication error occurs, the robot is stopped. On the other hand, the non-teaching operation packet received by the second communication means has no non-communication error. A controller that performs GUI control based on the teaching operation packet, and when the second communication means detects a communication error in the received non-teaching operation packet, the second communication unit makes a retransmission request to the portable operation device. The gist of the robot control system is characterized by this.

請求項2の発明は、請求項1において、前記第1通信手段は、前記操作キーの入力順にパケットデータを作成して連番を付与して定期周期で送信し、前記第2通信手段は、前記教示操作パケットに対しては、前記定期周期での受信がなかった場合、または連番で受信されなかった場合に通信エラーと判定し、前記非教示操作パケットに対しては、定期周期での受信がなかった場合と、連番で受信されなかった場合のうち、少なくとも連番またはで受信されなかった場合に通信エラーと判定することを特徴とする。 According to a second aspect of the present invention, in the first aspect, the first communication unit creates packet data in the order of input of the operation keys, assigns serial numbers, and transmits them in a periodic cycle . When the teaching operation packet is not received at the regular cycle or when it is not received with a serial number, it is determined as a communication error, and the non-teaching operation packet is received at the regular cycle. It is characterized in that it is determined as a communication error when there is no reception and serial number is not received, and at least when the serial number is not received .

請求項の発明は、請求項1または請求項2において、前記第1通信手段は、前記再送信要求があったパケットデータについては再送することを特徴とする。 According to a third aspect of the present invention, in the first or second aspect , the first communication unit retransmits the packet data requested to be retransmitted.

請求項の発明は、ロボットの動作に関連する1以上の教示操作キーおよびロボットの動作には関連しない1以上の非教示操作キーを含んだ操作キーと、前記各種の操作キーのオンオフ状態を監視するキー状態監視手段と、前記キー状態監視手段が監視している前記教示操作キーの各入力状態に応じたパケットデータである教示操作パケットを、前記教示操作キーの入力順に作成して送信するとともに、前記キー状態監視手段が監視している前記非教示操作キーの各入力状態に応じたパケットデータである非教示操作パケットを、前記非教示操作キーの入力順に作成して送信する第1通信手段と、を備えた可搬式操作装置と通信するコントローラにおいて、ロボットの動作に関連する前記教示操作パケットおよびロボットの動作には関連しない前記非教示操作パケットについて、通信エラーの有無を検証する通信手段と、前記通信手段が受信した前記教示操作パケットに前記通信エラーが生じていない場合はそのパケットデータに応じたロボット制御を行い、前記通信エラーが生じている場合にはロボットを停止する一方、前記第2通信手段が受信した前記非教示操作パケットのうち、前記通信エラーが生じていない非教示操作パケットに基づいてGUI制御を行う制御手段と、を備え、前記第2通信手段は、受信した前記非教示操作パケットに通信エラーを検出したときは、前記可搬式操作装置に再送信要求を行うことを特徴とするコントローラを要旨とするものである。 According to a fourth aspect of the present invention, there is provided an operation key including one or more teaching operation keys related to the operation of the robot and one or more non-teaching operation keys not related to the operation of the robot, and on / off states of the various operation keys. A teaching state packet that is packet data corresponding to each input state of the teaching operation key monitored by the key state monitoring unit to be monitored and the teaching operation key monitored by the key state monitoring unit is created and transmitted in the order of input of the teaching operation key. A first communication that creates and transmits non-teaching operation packets, which are packet data corresponding to the input states of the non-teaching operation keys monitored by the key state monitoring means, in the order of input of the non-teaching operation keys. the controller in communication with the portable operating device and means, and Do is related to the operation of the teaching operation packet and the robot associated with the operation of the robot Wherein the non-teaching packet, a communication means for verifying the presence or absence of a communication error, when said communication means the communication error to the teaching operation packet received does not occur performs robot control in accordance with the packet data, the Control that performs GUI control based on a non-teaching operation packet in which no communication error has occurred among the non-teaching operation packets received by the second communication means while stopping the robot when a communication error has occurred And the second communication means makes a retransmission request to the portable operation device when a communication error is detected in the received non-teaching operation packet. Is.

請求項の発明は、請求項において、前記第2通信手段は、前記教示操作パケットが、定期周期での受信がなかった場合、または連番で受信されなかった場合に通信エラーと判定し、前記非教示操作パケットに対しては、連番で受信されなかった場合に通信エラーと判定することを特徴とする。 According to a fifth aspect of the present invention, in the fourth aspect , the second communication means determines that a communication error has occurred when the teaching operation packet is not received at a regular period or when it is not received with a serial number. the relative non-teaching packet shall be the determining means determines that a communication error if it is not received by the sequence number.

以上詳述したように、請求項1乃至請求項の発明によれば、教示時において通信エラーが発生した場合でも、ロボット制御を行うコントローラ側の反応の遅れや、或いは操作不可の状態が発生することがなく、安全性を高めることができるネットワーク対応のロボット制御システムを提供することができる。また、再送信要求を受けた可搬式操作装置は、当該再送信要求についての非教示操作パケットをコントローラへ再送することができる。 As described above in detail, according to the first to third aspects of the invention, even when a communication error occurs during teaching, a reaction delay on the controller side that performs robot control or an inoperable state occurs. Therefore, it is possible to provide a network-compatible robot control system that can improve safety. In addition, the portable operating device that has received the retransmission request can retransmit the non-teach operation packet for the retransmission request to the controller.

又、請求項2の発明によれば、第2通信手段は、受信した教示操作パケット前記定期周期毎に送信があったか、又は、連番で受信したか否かで通信エラー検出を行うことができ、この結果、ロボット制御を行うコントローラ側の通信エラーに伴う反応の遅れや、或いは操作不可の状態が発生することがない。また、非教示操作パケットに対しては、定期周期での受信がなかった場合と、連番で受信されなかった場合のうち、少なくとも連番で受信されなかった場合に通信エラーと判定される。このため、この通信エラーとはされない場合、非教示操作パケットに基づいてGUI制御を行うことができる。 According to the second aspect of the present invention, the second communication means can detect a communication error depending on whether the received teaching operation packet has been transmitted at each of the regular periods or whether it has been received with a serial number. As a result, there is no reaction delay or inoperable state due to a communication error on the controller side that performs robot control. A non-teaching operation packet is determined to be a communication error at least when it is not received with a serial number, when it is not received with a regular cycle or when it is not received with a serial number. For this reason, when this communication error is not considered, GUI control can be performed based on the non-teaching operation packet.

又、請求項3の発明によれば、再送信要求に基づいて受信した非教示操作パケットに基づいてコントローラはGUI制御を行うことができる。
又、請求項の発明によれば、リモートデスクトップ技術を応用した可搬式操作装置とロボット制御を行うコントローラの通信において、前記可搬式操作装置によりロボット動作を教示する場合のキー操作の伝達に関しては、リアルタイム性を保証するとともに、通信の信頼性を高め、安全かつ安定した操作性を確保することができる。又、リアルタイム性が必要とされないロボット動作を教示しない場合においては、RDP通信により、可搬式操作装置からコントローラのGUI制御を行わせることができる。また、第2通信手段は、受信した前記非教示操作パケットに通信エラーを検出したときは、可搬式操作装置に再送信要求を行うことから、可搬式操作装置からの、当該再送信要求についての非教示操作パケットの受信を期待できる。
According to the invention of claim 3, the controller can perform GUI control based on the non-teach operation packet received based on the retransmission request.
According to a fourth aspect of the present invention, in communication between a portable operating device to which a remote desktop technology is applied and a controller that performs robot control, transmission of a key operation when a robot operation is taught by the portable operating device. In addition to guaranteeing real-time performance, it is possible to increase communication reliability and ensure safe and stable operability. Further, when the robot operation that does not require real-time property is not taught, the GUI control of the controller can be performed from the portable operation device by RDP communication. When the second communication means detects a communication error in the received non-teaching operation packet, the second communication means makes a retransmission request to the portable operation device. The reception of the non-teaching operation packet can be expected.

又、請求項の発明によれば、教示操作パケットと非教示操作パケットにより、操作キーの重要度に応じた信頼性の確保が可能となる。
なお、従来は、RDPは一般的な用途においては、厳密なリアルタイム性は必要でないため、クライアント端末からの操作に対するサーバPCの応答性は保証されていない。通信の遅延や通信エラーが発生すると、キー操作に対するロボット制御を行うコントローラ側の反応の遅れや、或いは操作不可の状態が発生する虞がある。RDPを用いてロボットを動作させる場合、キー操作のロボット制御を行うコントローラへの伝達の遅れは、ロボットの操作性の悪化に繋がるため、好ましくなく、これを回避することが望ましい。従来は、ロボット操作のようにリアルタイム制御が必要な場面に、リモートデスクトップを利用することが想定されていなかったことにより、可搬式操作装置のキー操作の伝達に関してリアルタイム性が保証されていない問題があったが、構造的な対策は行われていなかった。
According to the invention of claim 4 , the teaching operation packet and the non-teaching operation packet can ensure the reliability according to the importance of the operation key.
Conventionally, since RDP does not require strict real-time characteristics in general applications, the responsiveness of server PCs to operations from client terminals is not guaranteed. When a communication delay or a communication error occurs, there is a possibility that a response delay on the controller side that performs the robot control with respect to the key operation or a state where the operation cannot be performed may occur. When operating a robot using RDP, a delay in the transmission of key operations to the controller that controls the robot leads to deterioration of the operability of the robot. Conventionally, it has not been assumed that remote desktops are used in situations where real-time control is required, such as robot operations, so there is a problem that real-time performance is not guaranteed for the transmission of key operations of portable operation devices. However, no structural measures were taken.

しかし、請求項の発明によれば、上述した問題が上記したように解決できる。
又、請求項の発明によれば、教示操作キー用の定期周期的な通信パケットの通信が1つで済むため、ネットワーク通信の頻度の増大を抑止できる。
However, according to the invention of claim 4 , the above-described problem can be solved as described above.
According to the invention of claim 4 , since only one periodic communication packet communication for the teaching operation key is required, an increase in the frequency of network communication can be suppressed.

又、請求項のコントローラによれば、上記ロボット制御システムに使用できるコントローラを提供できる。
又、請求項の発明のコントローラによれば、請求項2のロボット制御システムに使用できるコントローラを提供できる
According to the controller of the fourth aspect, a controller that can be used in the robot control system can be provided.
According to the controller of the invention of claim 5 , a controller that can be used in the robot control system of claim 2 can be provided .

本発明の第1実施形態のロボット制御システムのコントローラとティーチペンダントのブロック図。The block diagram of the controller and teach pendant of the robot control system of a 1st embodiment of the present invention. (a)は通常通信パケットの説明図、(b)は、安全通信パケットの説明図。(A) is explanatory drawing of a normal communication packet, (b) is explanatory drawing of a safe communication packet. 第2実施形態のロボット制御システムのコントローラとティーチペンダントのブロック図。The block diagram of the controller and teach pendant of the robot control system of a 2nd embodiment. (a)は、非安全パケット生成部の機能ブロック図、(b)は、安全送信部の機能ブロック図、(c)は、非安全通信パケット検査部の機能ブロック図。(A) is a functional block diagram of a non-safety packet generation unit, (b) is a functional block diagram of a safe transmission unit, and (c) is a functional block diagram of a non-safety communication packet inspection unit. 作用の説明図。Explanatory drawing of an effect | action. 作用の説明図。Explanatory drawing of an effect | action. 従来のロボット制御システムの機能ブロック図。The functional block diagram of the conventional robot control system. 他の実施形態のロボット制御システムのコントローラとティーチペンダントのブロック図。The block diagram of the controller and teach pendant of the robot control system of other embodiments. 他の実施形態のロボット制御システムのコントローラとティーチペンダントのブロック図。The block diagram of the controller and teach pendant of the robot control system of other embodiments.

(第1実施形態)
以下、本発明を教示装置である可搬式操作装置としてのティーチペンダント10とロボット制御装置としてのコントローラ30とがネットワーク手段としての有線LAN(ローカルエリアネットワーク)を介して通信を行うロボット制御システムSに具体化した第1実施形態を図1及び図2を参照して説明する。
(First embodiment)
Hereinafter, a robot control system S in which the teach pendant 10 as a portable operation device as a teaching device and the controller 30 as a robot control device communicate with each other via a wired LAN (local area network) as a network means will be described. A specific first embodiment will be described with reference to FIGS. 1 and 2.

このロボット制御システムSのコントローラ30が制御するロボットRは、例えば溶接ロボットである。なお、ロボットは、溶接ロボットに限定されるものではなく、例えば搬送ロボット等の他のロボットであってもよい。   The robot R controlled by the controller 30 of the robot control system S is, for example, a welding robot. The robot is not limited to a welding robot, and may be another robot such as a transfer robot.

(ティーチペンダント10)
図1に示すように可搬式操作装置としてのティーチペンダント10はメインCPU(中央演算処理装置)11、安全送信部12、LANI/Fからなる通信部13、キーボード14、非常停止スイッチ21、液晶ディスプレイ等の表示装置(図示しない)等の各部を備えている。本実施形態では、安全送信部12、及び通信部13とにより、第1通信手段が構成されている。
(Teach pendant 10)
As shown in FIG. 1, a teach pendant 10 as a portable operation device includes a main CPU (central processing unit) 11, a safety transmission unit 12, a communication unit 13 including a LAN I / F, a keyboard 14, an emergency stop switch 21, and a liquid crystal display. Each unit such as a display device (not shown) is provided. In the present embodiment, the safety transmission unit 12 and the communication unit 13 constitute a first communication unit.

キーボード14は、GUI機能を実現させるための各種の操作キースイッチ(以下、操作キーという)を備えている。該操作キーの中で、教示操作に使用される操作キーは、教示モードでロボットの動作又は停止を行うためのキーであり、以下、優先キー15という。優先キー15は教示操作キーに相当する。   The keyboard 14 includes various operation key switches (hereinafter referred to as operation keys) for realizing a GUI function. Among the operation keys, an operation key used for the teaching operation is a key for operating or stopping the robot in the teaching mode, and is hereinafter referred to as a priority key 15. The priority key 15 corresponds to a teaching operation key.

優先キー15としては、例えば、X軸の移動方向を示す「−X」キー及び「X+」キー、Y軸の移動方向を示す「−Y」キー及び「Y+」キー及び「−Y」キー、Z軸の移動方向を示す「−Z」キー及び「Z+」キー、教示結果の確認操作に使用するキー等がある。これらの操作キーが教示モードにおいて操作されると、ロボットの動作又は停止を指示することとなる。優先キー15には、作業者がロボットの動作/停止を指示するためのキー類も含む。なお、上記の優先キー15は例示であって、優先キー15はこれらの操作キーに限定されるものではない。   As the priority key 15, for example, “−X” key and “X +” key indicating the movement direction of the X axis, “−Y” key, “Y +” key and “−Y” key indicating the movement direction of the Y axis, There are a “−Z” key and a “Z +” key indicating the movement direction of the Z axis, keys used for confirming the teaching result, and the like. When these operation keys are operated in the teaching mode, the robot is instructed to move or stop. The priority key 15 includes keys for an operator to instruct the operation / stop of the robot. The priority key 15 described above is an example, and the priority key 15 is not limited to these operation keys.

又、キーボード14は、GUI機能を実現させるための各種の操作キーの中で、非教示操作に使用するキー(教示モード以外の他のモード、あるいは教示モードであってもロボットの動作、停止に関連しない操作に使用するキー)、すなわち、リモートデスクトップ操作を行うために使用されるキーを非優先キー16という。非優先キー16は、非教示操作キーに相当する。   The keyboard 14 is a key used for non-teaching operation among various operation keys for realizing the GUI function (other than the teaching mode, or the robot can be operated and stopped even in the teaching mode). Keys used for unrelated operations), that is, keys used for remote desktop operations are referred to as non-priority keys 16. The non-priority key 16 corresponds to a non-teach operation key.

これらの非優先キー16は、例えば、モード切替キー、数字キー、画面選択キー、教示点の削除キー、カーソルキー等を含む。なお、前述した非優先キー16は例示であって、非優先キー16は上述した操作キーに限定されるものではない。前述したリモートデスクトップ操作を行うためのキーを含む趣旨である。   These non-priority keys 16 include, for example, a mode switching key, a numeric key, a screen selection key, a teaching point deletion key, a cursor key, and the like. The non-priority key 16 described above is an example, and the non-priority key 16 is not limited to the operation keys described above. This includes the keys for performing the above-described remote desktop operation.

メインCPU11は、該CPUが備える図示しないROMに格納されたソフトウエアによりRDPクライアントとして機能する。メインCPU11が実行する前記RDPクライアントの機能には、優先キー15のオンオフの入力操作を監視する第1監視手段としての優先キー入力監視部17と非優先キーのオンオフの入力操作を監視する非優先キー16の入力操作を監視する第2監視手段としての非優先キー入力監視部18の機能が含まれる。   The main CPU 11 functions as an RDP client by software stored in a ROM (not shown) included in the CPU. The functions of the RDP client executed by the main CPU 11 include a priority key input monitoring unit 17 serving as a first monitoring unit that monitors the on / off input operation of the priority key 15 and a non-priority monitoring of the on / off input operation of the non-priority key. The function of the non-priority key input monitoring unit 18 as the second monitoring means for monitoring the input operation of the key 16 is included.

又、優先キー入力監視部17及び非優先キー入力監視部18とにより、キー状態監視手段が構成されている。
なお、図1に示すメインCPU11内のブロックは、ハード構成を示すものではなく、機能ブロックを示している。又、前記RDPクライアントは、優先キー及び非優先キー16のキー状態を、当該ティーチペンダント10と関連付けられた、すなわち、コントロールの対象となるロボットRを制御するコントローラ30のRDPサーバ36へ送信する機能を有する。
The priority key input monitoring unit 17 and the non-priority key input monitoring unit 18 constitute key state monitoring means.
Note that the blocks in the main CPU 11 shown in FIG. 1 indicate functional blocks rather than hardware configurations. The RDP client also transmits the key states of the priority key and the non-priority key 16 to the RDP server 36 of the controller 30 associated with the teach pendant 10, that is, the controller 30 that controls the robot R to be controlled. Have

非常停止スイッチ21は、押されて図示しない接点が開となった場合、非常停止状態となる。又、非常停止スイッチ21は押されない場合には、前記非常停止状態が解除されている。   When the emergency stop switch 21 is pressed and a contact (not shown) is opened, the emergency stop switch 21 enters an emergency stop state. When the emergency stop switch 21 is not pushed, the emergency stop state is released.

安全送信部12は、第1CPU19(中央演算処理装置)と第2CPU20(中央演算処理装置)とから構成されている。第1CPU19と第2CPU20とは、後述するコントローラ30間と安全通信を行うためのソフトウエアを格納したROM(図示しない)をそれぞれ備え、シリアル通信により互いに必要なデータの交信が可能である。   The safety transmission unit 12 includes a first CPU 19 (central processing unit) and a second CPU 20 (central processing unit). Each of the first CPU 19 and the second CPU 20 includes a ROM (not shown) that stores software for performing safe communication with the controller 30 described later, and can communicate necessary data with each other by serial communication.

安全送信部12は、優先キー入力監視部17で監視された優先キー15のキー状態、すなわち、オンオフのキー状態をパケットデータとして含む安全通信パケットの生成、及び、前記非常停止スイッチ21が押された際の非常停止状態をパケットデータとして含む安全通信パケットの生成を行い、通信部13を介して送信する。本実施形態の前記安全通信パケットは教示操作パケットに相当する。 The safety transmission unit 12 generates a safety communication packet including the key state of the priority key 15 monitored by the priority key input monitoring unit 17, that is, the on / off key state as packet data, and the emergency stop switch 21 is pressed. A safety communication packet including the emergency stop state as packet data is generated and transmitted via the communication unit 13. The safety communication packet of this embodiment corresponds to a teaching operation packet.

又、通信部13は、非優先キー入力監視部18で監視された非優先キー16のキー状態、すなわち、キー状態をパケットデータとして含む通信パケット(以下、この通信パケットを通常通信パケットという)を生成して送信する。本実施形態の前記通常通信パケットは非教示操作パケットに相当する。 Further, the communication unit 13 receives the key state of the non-priority key 16 monitored by the non-priority key input monitoring unit 18, that is, a communication packet including the key state as packet data (hereinafter, this communication packet is referred to as a normal communication packet). generated to send to. The normal communication packet of this embodiment corresponds to a non-teach operation packet.

(コントローラ30)
コントローラ30は、メインCPU31、安全受信部32、LANI/Fからなる通信部33等の各部を備えている。ティーチペンダント10の通信部13、コントローラ30の通信部33とにより、有線LANからなるネットワーク手段が構成されている。通信部33と、安全受信部32とにより第2通信手段が構成されている。安全受信部32は記憶手段に相当する。
(Controller 30)
The controller 30 includes various components such as a main CPU 31, a safety receiving unit 32, and a communication unit 33 including a LAN I / F. The communication unit 13 of the teach pendant 10 and the communication unit 33 of the controller 30 constitute a network means including a wired LAN. A communication unit 33, second communication hand stage is constituted by a safety receiver 32. The safety receiving unit 32 corresponds to a storage unit.

通信部33は、ティーチペンダント10の通信部13と交信可能である。そして、通信部33はティーチペンダント10から送信された安全通信パケット、通常通信パケットを受信し、安全通信パケットを安全受信部32に送信するとともに通常通信パケットをメインCPU31に送信する。通信部33は、通常通信パケットの場合には、該通常通信パケットの中から非優先キー16のキー状態のパケットデータを抽出して、メインCPU31に送信する。   The communication unit 33 can communicate with the communication unit 13 of the teach pendant 10. The communication unit 33 receives the safety communication packet and the normal communication packet transmitted from the teach pendant 10, transmits the safety communication packet to the safety receiving unit 32, and transmits the normal communication packet to the main CPU 31. In the case of a normal communication packet, the communication unit 33 extracts key state packet data of the non-priority key 16 from the normal communication packet and transmits it to the main CPU 31.

安全受信部32は、第1CPU34(中央演算処理装置)と第2CPU35(中央演算処理装置)とから構成されている。第1CPU34と第2CPU35とは、ティーチペンダント10と安全通信を行うためのソフトウエアを格納したROM(図示しない)をそれぞれ備え、シリアル通信により第1CPU34と第2CPU35間とは互いに必要なデータの交信が可能である。そして、安全受信部32は、ティーチペンダント10の安全送信部12と定期的な安全通信パケットと応答パケットの送受信を相互に行い、通信によって後述する非常停止機能を実現する。   The safety receiving unit 32 includes a first CPU 34 (central processing unit) and a second CPU 35 (central processing unit). Each of the first CPU 34 and the second CPU 35 includes a ROM (not shown) that stores software for performing safety communication with the teach pendant 10. Is possible. And the safety receiving part 32 mutually performs transmission / reception of the safety transmission part 12 of the teach pendant 10, and a periodic safety communication packet and a response packet, and implement | achieves the emergency stop function mentioned later by communication.

安全受信部32では、第1CPU34が通信部33を介して受信した安全通信パケットと、第2CPU35が第1CPU34を介して受信した安全通信パケットの検証をそれぞれ行う。そして、安全受信部32は両検証で問題の発生がない場合には、安全通信パケットから優先キー15のキー状態データを抽出してメインCPU31に出力する。   In the safety receiving unit 32, the safety communication packet received by the first CPU 34 via the communication unit 33 and the safety communication packet received by the second CPU 35 via the first CPU 34 are respectively verified. Then, when there is no problem in both verifications, the safety receiving unit 32 extracts the key state data of the priority key 15 from the safety communication packet and outputs it to the main CPU 31.

メインCPU31は、図示しないROMを備え、該ROMには、該コントローラ30が制御対象とするロボットRの動作制御を実行するための制御プログラムとその制御定数や、各種プログラムが格納される。又、メインCPU31は、前記図示しないROMに格納された各種プログラム中、RDPサーバプログラムによりRDPサーバ36として機能する。なお、図1に示すメインCPU31内のブロックは、ハード構成を示すものではなく、機能ブロックを示する。この機能ブロックにはRDPサーバ36と、動作制御部39及びGUI制御部40が設けられている。   The main CPU 31 includes a ROM (not shown), and the ROM stores a control program for controlling the operation of the robot R to be controlled by the controller 30, control constants thereof, and various programs. The main CPU 31 functions as the RDP server 36 by the RDP server program among various programs stored in the ROM (not shown). Note that the blocks in the main CPU 31 shown in FIG. 1 do not indicate a hardware configuration but indicate functional blocks. In this functional block, an RDP server 36, an operation control unit 39, and a GUI control unit 40 are provided.

又、前記RDPサーバ36は、安全受信部32が抽出した優先キー15のキー状態データを受信する優先キー状態受信部37と、通信部33が抽出した非優先キー16のキー状態データを受信する非優先キー状態受信部38を備える。   Further, the RDP server 36 receives the key state data of the priority key state receiver 37 that receives the key state data of the priority key 15 extracted by the safety receiver 32 and the key state data of the non-priority key 16 extracted by the communication unit 33. A non-priority key state receiving unit 38 is provided.

優先キー状態受信部37は、受信した優先キー15のキー状態データを、動作制御部39に出力する。動作制御部39は、教示モードでは、入力した優先キー15のキー状態データに応じてロボットRの各関節の動作を制御する。   The priority key state reception unit 37 outputs the received key state data of the priority key 15 to the operation control unit 39. In the teaching mode, the operation control unit 39 controls the operation of each joint of the robot R in accordance with the input key state data of the priority key 15.

又、非優先キー状態受信部38は、受信した非優先キー16のキー状態データを、GUI制御部40に出力する。GUI制御部40は、入力した非優先キー16のキー状態データに応じてGUI制御を行う。GUI制御部40によるGUI制御は、図示しないROMに格納されたGUI制御プログラムに従って行われる。   In addition, the non-priority key state reception unit 38 outputs the received key state data of the non-priority key 16 to the GUI control unit 40. The GUI control unit 40 performs GUI control according to the input key state data of the non-priority key 16. GUI control by the GUI control unit 40 is performed according to a GUI control program stored in a ROM (not shown).

すなわち、GUI制御部40は、前記GUI制御プログラムを実行して、入力された非優先キーのキー状態データに応じて、画面データを生成し、作成された該画面データを、通信部33を介してティーチペンダント10側に送信する。なお、ティーチペンダント10のメインCPU11は、受信した画面データに基づく画像をティーチペンダント10が備える図示しない表示装置に表示する。なお、GUI制御は、本発明の要旨ではなく、又、特許文献2等により公知であるため、詳細な説明を省略する。   That is, the GUI control unit 40 executes the GUI control program, generates screen data according to the key state data of the input non-priority key, and transmits the generated screen data via the communication unit 33. To the teach pendant 10 side. The main CPU 11 of the teach pendant 10 displays an image based on the received screen data on a display device (not shown) provided in the teach pendant 10. Note that the GUI control is not the gist of the present invention and is known from Patent Document 2 and the like, and therefore detailed description thereof is omitted.

(作用)
さて、上記のように構成されたロボット制御システムSの作用を説明する。なお、説明の便宜上、ティーチペンダント10がコントローラ30に有線LANで接続された状態であって、ティーチペンダント10から非優先キー16、或いは、非優先キー16が入力操作されたものとして説明する。
(Function)
Now, the operation of the robot control system S configured as described above will be described. For convenience of explanation, it is assumed that the teach pendant 10 is connected to the controller 30 via a wired LAN and the non-priority key 16 or the non-priority key 16 is input from the teach pendant 10.

(1.非優先キー16が入力操作された場合)
まず、ティーチペンダント10から、いずれかの非優先キー16が入力操作されると、非優先キー入力監視部18は、定期周期的(例えば、数msec毎)に非優先キー16の入力を監視しており、その監視結果を通信部13に出力する。
(1. When non-priority key 16 is input)
First, when any non-priority key 16 is input from the teach pendant 10, the non-priority key input monitoring unit 18 monitors the input of the non-priority key 16 periodically (for example, every several msec). The monitoring result is output to the communication unit 13.

通信部13では、監視結果である入力操作された非優先キー16について通常通信パケットを生成する(図2(a)参照)。
通常通信パケットは、操作された非優先キー16のキー状態をパケットデータとしてのキー状態データとして、図2(a)に示すように、コントローラ30の宛先データA1(すなわち、宛先アドレス)、送信元データA2(すなわち、送信元アドレス)、送信番号データA3(すなわち、通信番号データ)、キー状態データA4(すなわち、非優先キーのキー状態)、誤り検出データA5を含む。
The communication unit 13 generates a normal communication packet for the non-priority key 16 that has been input and is a monitoring result (see FIG. 2A).
As shown in FIG. 2 (a), the normal communication packet uses the key state of the operated non-priority key 16 as the key state data as packet data, and the destination data A1 (that is, the destination address) of the controller 30 and the source Data A2 (that is, source address), transmission number data A3 (that is, communication number data), key status data A4 (that is, key status of non-priority key), and error detection data A5 are included.

宛先データA1及び送信元データA2は、ヘッダとなる。又、キー状態データA4は、キー名データと、キー状態データを含む。
この場合、宛先データとしては、本実施形態では、ティーチペンダント10のメインCPU31の固有アドレスとなる。
The destination data A1 and the transmission source data A2 are headers. The key status data A4 includes key name data and key status data.
In this case, the destination data is a unique address of the main CPU 31 of the teach pendant 10 in this embodiment.

なお、宛先データA1、送信元データA2、送信番号データA3、キー状態データA4、誤り検出データA5は、通信データを構成するデータであり、予め定められた通信プロトコルに従ってパケットの形式で作成される。送信番号データA3は、前回送信した送信番号データA3に1が加えられることにより更新される。この結果、送信番号データA3は連番で付与されることになる。又、誤り検出データの作成としては、例えば、CRC(Cyclic Redundancy Check)方式や、垂直パリティチェック方式或いは水平パリティチェック方式等があるが、限定されるものではない。   The destination data A1, the transmission source data A2, the transmission number data A3, the key state data A4, and the error detection data A5 are data constituting communication data, and are created in a packet format according to a predetermined communication protocol. . The transmission number data A3 is updated by adding 1 to the previously transmitted transmission number data A3. As a result, the transmission number data A3 is assigned with a serial number. In addition, the creation of error detection data includes, for example, a CRC (Cyclic Redundancy Check) method, a vertical parity check method, or a horizontal parity check method, but is not limited thereto.

従って、複数の非優先キー16が順次入力操作された場合は、通信部13は、非優先キー16の入力順に該非優先キー16のキー状態をキー状態データ(パケットデータ)を含む通常通信パケットを連番で生成して、通信部13を介して、コントローラ30に定期周期(例えば、数十msec毎)で送信することになる。なお、通信部13では、前記定期周期毎に、安全通信パケットや、通常通信パケットを送信している。   Therefore, when a plurality of non-priority keys 16 are sequentially input, the communication unit 13 changes the key states of the non-priority keys 16 in the input order of the non-priority keys 16 and transmits a normal communication packet including key state data (packet data). The serial numbers are generated and transmitted to the controller 30 via the communication unit 13 at regular intervals (for example, every several tens of milliseconds). Note that the communication unit 13 transmits a safety communication packet and a normal communication packet every regular period.

コントローラ30の通信部33は、通常通信パケットを順次受信する。複数の通常通信パケットが連番で受信が成功した場合には、これら受信した通常通信パケットを、通信部33は、非優先キー状態受信部38に送信する。   The communication unit 33 of the controller 30 sequentially receives normal communication packets. When a plurality of normal communication packets have been successfully received with serial numbers, the communication unit 33 transmits the received normal communication packets to the non-priority key state reception unit 38.

なお、受信した通常通信パケットが連番で受信しなかった場合、或いは、通常通信パケットに付与されている誤り検出データに基づいて、データが化けていると通信部33が判定した場合には、通信部33は、当該通信エラーが生じた通常通信パケットに関して、再送信要求を行う。この再送信要求を受けたティーチペンダント10の通信部13では、当該再送信要求を受けた通常通信パケットを再送する。この再送により、正常な通常通信パケットを受信した場合、既に正常に受信した通常通信パケットとともに、非優先キー状態受信部38に送信する。   When the received normal communication packet is not received with a serial number, or when the communication unit 33 determines that the data is garbled based on the error detection data attached to the normal communication packet, The communication unit 33 makes a retransmission request for the normal communication packet in which the communication error has occurred. The communication unit 13 of the teach pendant 10 that has received the retransmission request retransmits the normal communication packet that has received the retransmission request. When a normal communication packet is received normally by this retransmission, it is transmitted to the non-priority key state receiving unit 38 together with the normal communication packet that has been normally received.

非優先キー状態受信部38は、入力した通常通信パケットから非優先キー16のキー状態データ(パケットデータ)を送信番号データ順に抽出し、抽出した順に、非優先キー16のキー状態データを、GUI制御部40に出力する。GUI制御部40は、入力した非優先キー16のキー状態データに応じてGUI制御を行う。このようにして、通常通信パケットを受信した場合においては、GUI制御が行われる。   The non-priority key state receiving unit 38 extracts the key state data (packet data) of the non-priority key 16 from the input normal communication packet in the order of the transmission number data, and the key state data of the non-priority key 16 in the order of extraction. Output to the control unit 40. The GUI control unit 40 performs GUI control according to the input key state data of the non-priority key 16. In this way, GUI control is performed when a normal communication packet is received.

(2.優先キー15が入力操作された場合)
優先キー入力監視部17は、定期周期的(例えば、数msec毎)に優先キー15の入力を監視しており、ティーチペンダント10が、前記モード設定キー(図示しない)により教示モードに設定された状態で、いずれかの優先キー15が入力操作されると、その監視結果を安全送信部12に出力する。安全送信部12では、まず、第1CPU19が、図2(b)に示すように安全通信パケットを生成する。
(2. When priority key 15 is input)
The priority key input monitoring unit 17 monitors the input of the priority key 15 periodically (for example, every several msec), and the teach pendant 10 is set to the teaching mode by the mode setting key (not shown). When any of the priority keys 15 is input in the state, the monitoring result is output to the safety transmission unit 12. In the safety transmission unit 12, first, the first CPU 19 generates a safety communication packet as shown in FIG.

安全通信パケットは、操作された優先キー15のキー状態をパケットデータとしてのキー状態データとして、図2(b)に示すように、安全受信部32の宛先データB1(すなわち、宛先アドレス)、送信元データB2(すなわち、送信元アドレス)、送信番号データB3(すなわち、通信番号データ)、キー状態データB4(すなわち、優先キーのキー状態)、誤り検出データB5を含む。   As shown in FIG. 2B, the safety communication packet transmits the destination data B1 (that is, the destination address) of the safety receiving unit 32 as the key state data as the packet data with the key state of the operated priority key 15 being transmitted. It includes original data B2 (that is, transmission source address), transmission number data B3 (that is, communication number data), key state data B4 (that is, key state of the priority key), and error detection data B5.

宛先データB1及び送信元データB2は、ヘッダHとなる。又、キー状態データB4は、キー名データと、キー状態データを含む。
なお、宛先データB1、送信元データB2、送信番号データB3、キー状態データB4、誤り検出データB5は、通信データを構成するデータであり、予め定められた通信プロトコルに従ってパケットの形式で作成される。送信番号データB3は、前回送信した送信番号データB3に1が加えられることにより更新される。この結果、送信番号データB3は連番で付与されることになる。又、誤り検出データの作成としては、例えば、CRC方式や、垂直パリティチェック方式或いは水平パリティチェック方式等があるが、限定されるものではない。
The destination data B1 and the transmission source data B2 become the header H. The key status data B4 includes key name data and key status data.
The destination data B1, the transmission source data B2, the transmission number data B3, the key state data B4, and the error detection data B5 are data constituting communication data, and are created in a packet format according to a predetermined communication protocol. . The transmission number data B3 is updated by adding 1 to the transmission number data B3 transmitted last time. As a result, the transmission number data B3 is assigned with a serial number. In addition, the creation of error detection data includes, for example, a CRC method, a vertical parity check method, or a horizontal parity check method, but is not limited thereto.

第1CPU19は、生成した前記安全通信パケットを、第2CPU20に送信する。なお、優先キー15の入力操作がない場合にも、優先キー入力監視部17は、その監視結果を安全送信部12の第1CPU19に対して出力しており、この場合には、第1CPU19は、いずれの優先キー15の入力操作がない旨のデータをキー状態データB4にして、同様に安全通信パケットを生成して、第2CPU20に送信する。   The first CPU 19 transmits the generated safety communication packet to the second CPU 20. Even when the input operation of the priority key 15 is not performed, the priority key input monitoring unit 17 outputs the monitoring result to the first CPU 19 of the safety transmission unit 12. In this case, the first CPU 19 The data indicating that there is no input operation of any priority key 15 is set as the key state data B4, and a safety communication packet is similarly generated and transmitted to the second CPU 20.

第2CPU20は、第1CPU19とは定期周期(例えば数十msec毎)で通信を行っており、第1CPU19から送信されてきた安全通信パケットを下記の三点の観点で検証する。   The second CPU 20 communicates with the first CPU 19 at a regular cycle (for example, every several tens of milliseconds), and verifies the safety communication packet transmitted from the first CPU 19 from the following three viewpoints.

(1)当該検証対象の安全通信パケットが定期周期(例えば数十msec毎)で受信されたか否かを検証する。
(2)当該検証対象の安全通信パケットに含まれる送信番号データB3と、当該安全通信パケットの直前に受信した安全通信パケットに含まれる送信番号データB3とが連番になっているかを検証する。
(1) It is verified whether or not the safety communication packet to be verified is received at regular intervals (for example, every several tens of milliseconds).
(2) It is verified whether the transmission number data B3 included in the safety communication packet to be verified and the transmission number data B3 included in the safety communication packet received immediately before the safety communication packet are serial numbers.

(3)当該検証対象の安全通信パケットに含まれる誤り検出データを使用して、該安全通信パケットに含まれるデータが正しいか否かを検証する。
検証対象の安全通信パケットが、定期周期(例えば数十msec毎)で受信されており、当該安全通信パケットの直前に受信した安全通信パケットに含まれる送信番号データB3と連番になっており、かつ、当該検証対象の安全通信パケットに含まれるデータが正しいと、第2CPU20は、検証した場合には、通信部13を介してコントローラ30に送信する。なお、第2CPU20において、前記三点の検証結果に良くないものが1つ以上あれば、安全通信パケットの優先キーのキー状態データを、キー入力OFF状態に変更して、通信部13を介してコントローラ30に送信する。
(3) Using error detection data included in the safety communication packet to be verified, it is verified whether the data included in the safety communication packet is correct.
The safety communication packet to be verified is received at a regular cycle (for example, every several tens of milliseconds), and is a serial number with the transmission number data B3 included in the safety communication packet received immediately before the safety communication packet, If the data included in the safety communication packet to be verified is correct, the second CPU 20 transmits the data to the controller 30 via the communication unit 13 when verified. In the second CPU 20, if one or more of the three verification results are not good, the key state data of the priority key of the safety communication packet is changed to the key input OFF state, and the communication unit 13 is used. It transmits to the controller 30.

通信部13では、入力した安全通信パケットを定期周期(例えば、数十msec毎)で送信している。この場合、複数の優先キー15の操作が順次連続して行われた場合、或いは、共通の優先キーの操作が連続して行われた場合、送信番号データB3を連番にした複数の安全通信パケットが生成されるため、これらの安全通信パケットは、通信部13により、前記定期周期毎に順次コントローラ30へ送信される。   The communication unit 13 transmits the input safety communication packet at regular intervals (for example, every several tens of msec). In this case, when the operations of the plurality of priority keys 15 are sequentially performed continuously, or when the operations of the common priority key are performed continuously, a plurality of safety communications using the transmission number data B3 as serial numbers. Since packets are generated, these safety communication packets are sequentially transmitted to the controller 30 by the communication unit 13 at each regular period.

コントローラ30の通信部33は、受信した安全通信パケットを、安全受信部32の第1CPU34に送信する。
安全受信部32の第1CPU34は、通信部33から受信した安全通信パケットを前記(1)〜(3)の観点で検証し、前記三点の検証結果が良ければ、第2CPU35に送信する。なお、第1CPU34において、前記三点の検証結果に良くないものが1つ以上あれば、安全通信パケットの優先キーのキー状態データを、キー入力OFF状態に変更して、第2CPU35に渡す。
The communication unit 33 of the controller 30 transmits the received safety communication packet to the first CPU 34 of the safety receiving unit 32.
The first CPU 34 of the safety receiving unit 32 verifies the safety communication packet received from the communication unit 33 from the viewpoints of (1) to (3), and transmits the result to the second CPU 35 if the three verification results are good. In the first CPU 34, if one or more of the three verification results are not good, the key state data of the priority key of the safety communication packet is changed to the key input OFF state and passed to the second CPU 35.

第2CPU35は、第1CPU34とは定期周期(例えば数十msec毎)で通信を行っており、第1CPU34から送信されてきた安全通信パケットを上記の三点の観点で検証する。前記三点の検証結果が良ければ、第2CPU35は受信した安全通信パケットから、優先キー15のキー状態データB4を取り出し、当該優先キーのキー状態データB4を図示しない記憶部に記憶するとともに優先キー状態受信部37に該キー状態データB4を出力する。   The second CPU 35 communicates with the first CPU 34 at a regular cycle (for example, every several tens of milliseconds), and verifies the safety communication packet transmitted from the first CPU 34 from the above-described three points of view. If the three verification results are good, the second CPU 35 extracts the key state data B4 of the priority key 15 from the received safety communication packet, stores the key state data B4 of the priority key in a storage unit (not shown), and stores the priority key data B4. The key status data B4 is output to the status receiving unit 37.

又、第2CPU35の前記検証結果が良ければ、メインCPU31は、ロボットRを駆動するためのモータ(図示しない)のサーボアンプ(図示しない)への電力供給を許容している旨の非常停止出力状態をそのまま更新する。なお、図示しないサーボアンプへの電力供給を許容している旨の非常停止出力状態が更新されることにより、メインCPU31は、サーボアンプへの電力供給を遮断する制御は行わないことになる。   If the verification result of the second CPU 35 is good, the main CPU 31 outputs an emergency stop signal indicating that power supply to a servo amplifier (not shown) of a motor (not shown) for driving the robot R is permitted. Update as it is. In addition, when the emergency stop output state indicating that power supply to a servo amplifier (not shown) is permitted is updated, the main CPU 31 does not perform control to cut off power supply to the servo amplifier.

又、第2CPU35の前記検証結果が良ければ、第2CPU35は、第1CPU34、及び通信部33を介して良好に安全通信パケットを受信した旨の応答パケットを定期周期(例えば、数十msec毎)で送信する。すなわち、コントローラ30において、次々と受信されてくる安全通信パケットの第2CPU35までの受信で問題がなければ、前記応答パケットの送信が、定期的に繰り返されることになる。この応答パケットは、ティーチペンダント10の通信部13に送信され、ティーチペンダント10側では、この応答パケットの受信がされる限り、安全通信パケットが定期周期で行われていることが確認される。   If the verification result of the second CPU 35 is good, the second CPU 35 sends a response packet indicating that the safety communication packet has been successfully received via the first CPU 34 and the communication unit 33 at regular intervals (for example, every several tens of milliseconds). Send. That is, in the controller 30, if there is no problem in receiving the safety communication packets received one after another up to the second CPU 35, the transmission of the response packet is periodically repeated. This response packet is transmitted to the communication unit 13 of the teach pendant 10, and on the teach pendant 10 side, as long as the response packet is received, it is confirmed that the safety communication packet is performed at a regular cycle.

そして、第2CPU35による前記三点の検証結果が良とされて、優先キー状態受信部37が前記キー状態データB4を入力すると、優先キー状態受信部37は優先キー15のキー状態データB4(キー状態)を、動作制御部39に出力する。動作制御部39は、このキー状態データB4に基づいてロボットRを動作制御する。   Then, if the three CPU verification results by the second CPU 35 are good and the priority key state receiving unit 37 inputs the key state data B4, the priority key state receiving unit 37 receives the key state data B4 (key key) of the priority key 15 Status) is output to the operation control unit 39. The operation control unit 39 controls the operation of the robot R based on the key state data B4.

一方、安全受信部32の第2CPU35は、安全通信パケットの3つの観点の検証で何れか1つ以上に問題が発生した場合、前記サーボアンプ(図示しない)への電力を遮断制御する。   On the other hand, when a problem occurs in any one or more of the three viewpoints of the safety communication packet, the second CPU 35 of the safety receiver 32 controls to cut off power to the servo amplifier (not shown).

又、安全受信部32の第2CPU35は、安全通信パケットの3つの観点の検証で何れか1つ以上に問題が発生した場合、当該安全通信パケット、及び以前に受信して記憶した安全通信パケットの全ての優先キー15のキー状態データB4をキー入力OFF状態に変更して、優先キー状態受信部37に渡す。優先キー状態受信部37は、キー状態データB4を動作制御部39に出力する。   In addition, the second CPU 35 of the safety receiving unit 32, when a problem occurs in any one or more of the verifications of the three aspects of the safety communication packet, the safety communication packet and the safety communication packet previously received and stored. The key state data B4 of all priority keys 15 is changed to the key input OFF state and is passed to the priority key state receiving unit 37. The priority key state receiving unit 37 outputs the key state data B4 to the operation control unit 39.

この結果、優先キー15のキー状態データB4(キー状態)は、全てキー入力OFF状態となっているため、動作制御部39は、このキー状態データB4に基づいてロボットRを動作させないことになる。又、同時に前述したように動力源としてのモータ(図示しない)は停止するため、前記動力源からも、或いは動作制御側においてもロボットRは停止する。   As a result, all the key state data B4 (key state) of the priority key 15 are in the key input OFF state, so that the operation control unit 39 does not operate the robot R based on this key state data B4. . At the same time, since the motor (not shown) as the power source stops as described above, the robot R also stops from the power source or the operation control side.

このように、安全通信パケットの通信エラーが生じた場合、前記動力源への電力遮断及び動作制御側において、ロボット制御システムSの非常停止機能を実現することになる。
以上のように、本実施形態では、キー操作の伝達が遅れることなく、安全通信パケットの送信を定期周期で行い、一方、データ化け、送信番号データB3が更新されない場合、定期周期で送信されてこない場合等の通信エラーが生じた場合には、ロボットRの動作を停止することができる。この結果、ティーチペンダント10の操作によりロボット動作の信頼性を確保することができる。
Thus, when a communication error of the safety communication packet occurs, the emergency stop function of the robot control system S is realized on the power cut-off and operation control side to the power source.
As described above, in this embodiment, the transmission of the safety communication packet is performed in a regular cycle without delaying the transmission of the key operation. On the other hand, if the data is garbled and the transmission number data B3 is not updated, it is transmitted in the regular cycle. When a communication error occurs, such as when it does not occur, the operation of the robot R can be stopped. As a result, the reliability of the robot operation can be ensured by operating the teach pendant 10.

具体的な事例を挙げて、説明すると、優先キー15を操作した入力順通りに、安全通信パケットが伝達される必要があることは、下記の問題例を解決することになる。下記の問題例では、2つの安全通信パケットの送信番号データB3が「01」と「02」のとき、「01」の安全通信パケットがキー状態データB4が停止キーONで、「02」の安全通信パケットのキー状態データB4が停止キーOFFの場合、この順番が前後入れ替わると、受信側(コントローラ側)では、停止キーONが後になるため、停止キーがON状態と誤認する問題がある。   Explaining with specific examples, the fact that the safety communication packet needs to be transmitted in the input order in which the priority key 15 is operated solves the following problem example. In the following problem example, when the transmission number data B3 of two safety communication packets is “01” and “02”, the safety communication packet of “01” has the key status data B4 as the stop key ON, and the safety of “02”. When the key status data B4 of the communication packet is the stop key OFF, there is a problem that the stop key is erroneously recognized as the ON state because the stop key ON is later on the receiving side (controller side) when this order is changed.

又、優先キー15の操作した情報が、一定の時間で伝達される必要があることは、下記の問題例を解決することになる。
すなわち、2つの安全通信パケットの送信番号データB3が「01」と「02」のとき、「01」の安全通信パケットがキー状態データB4が停止キーONで、「02」の安全通信パケットのキー状態データB4が停止キーOFFの場合、「02」の安全通信パケットの伝達が遅れると、ロボットRが余計に動いてしまい、壁に当たる等の二次的問題も生ずる。
In addition, the fact that the information operated by the priority key 15 needs to be transmitted in a certain time solves the following problem example.
That is, when the transmission number data B3 of two safety communication packets is “01” and “02”, the safety communication packet of “01” has the key status data B4 as the stop key ON, and the key of the safety communication packet of “02” When the status data B4 is the stop key OFF, if the transmission of the safety communication packet “02” is delayed, the robot R moves excessively and a secondary problem such as hitting the wall also occurs.

(3.非常停止スイッチ21が操作された場合)
又、安全送信部12の第1CPU19は、定期周期的(例えば、数msec毎)に非常停止スイッチ21の操作されたか否かを監視しており、ティーチペンダント10の非常停止スイッチ21が押されて操作された場合は、安全送信部12は、まず、第1CPU19が、安全通信パケットを生成する。このときの安全通信パケットとしては、図2(b)に示すキー状態データB4には、優先キー15の状態に加えて、非常停止スイッチ21が押された旨の情報も格納される。他の宛先データB1〜送信番号データB3,誤り検出データB5の生成は優先キー15の場合と同様に行われる。以後の、安全送信部12、通信部13、通信部33、安全受信部32における第1CPU34、第2CPU35での通信処理及び検証は、前述した優先キー15の場合と同様に処理される。このように、非常停止スイッチ21が押された場合の安全通信パケットの通信処理は、優先キー15の状態と非常停止スイッチ21の状態とが1つの安全通信パケットとして処理される。
(3. When emergency stop switch 21 is operated)
Further, the first CPU 19 of the safety transmission unit 12 monitors whether or not the emergency stop switch 21 is operated periodically (for example, every several msec), and the emergency stop switch 21 of the teach pendant 10 is pressed. When operated, first, in the safety transmission unit 12, the first CPU 19 generates a safety communication packet. As the safety communication packet at this time, in addition to the state of the priority key 15, information indicating that the emergency stop switch 21 has been pressed is stored in the key state data B4 shown in FIG. The other destination data B1 to transmission number data B3 and error detection data B5 are generated in the same manner as the priority key 15. Subsequent communication processing and verification in the first CPU 34 and the second CPU 35 in the safety transmission unit 12, the communication unit 13, the communication unit 33, and the safety reception unit 32 are performed in the same manner as in the case of the priority key 15 described above. As described above, in the communication process of the safety communication packet when the emergency stop switch 21 is pressed, the state of the priority key 15 and the state of the emergency stop switch 21 are processed as one safety communication packet.

そして、安全受信部32の第2CPU35において、いずれから通信処理にエラーが生じたり、或いは、通信処理にエラーが生ぜず、前記操作された状態を示す非常停止スイッチ状態データが安全通信パケットにあることが分かると、前述したことと同様に、前記動力源への電力遮断及び動作制御側において、ロボット制御システムSの非常停止機能を実現する。   Then, in the second CPU 35 of the safety receiving unit 32, an error has occurred in the communication process, or no error has occurred in the communication process, and the emergency stop switch state data indicating the operated state is in the safety communication packet. If it is understood, the emergency stop function of the robot control system S is realized on the power cut-off and operation control side to the power source, as described above.

さて、本実施形態によれば、以下のような特徴がある。
(1) 本実施形態のロボット制御システムSの10のティーチペンダント10(可搬式操作装置)は、各種の操作キーのオンオフ状態を監視する(キー状態監視手段)と、前記操作キーのうち、ロボットの動作に関連する1以上の優先キー15(教示操作キー)の各入力状態に応じた教示操作パケットを、前記教示操作キーの入力順に作成して送信する一方、前記操作キーのうち、前記ロボットの動作には関連しない1以上の非優先キー16(非教示操作キー)の各入力状態に応じた非教示操作パケットを、前記非教示操作キーの入力順に作成して送信する安全送信部12及び通信部13(第1通信手段)とを備えている。
又、ロボット制御システムSのコントローラ30は、安全送信部12及び通信部13(第1通信手段)と通信を行い、受信した前記教示操作パケットおよび前記非教示操作パケットについて、通信エラーの有無を検証する通信部33及び安全受信部32(第2通信手段)を備える。そして、コントローラ30は、通信部33及び安全受信部32が受信した前記前記教示操作パケットに前記通信エラーが生じていない場合はそのパケットデータに応じたロボット制御を行い、前記通信エラーが生じている場合にはロボットを停止する一方、通信部33及び安全受信部32が受信した前記非教示操作パケットのうち、前記通信エラーが生じていない非教示操作パケットに基づいてGUI制御を行う制御手段を備える。
Now, according to this embodiment, there are the following features.
(1) Ten teach pendants 10 (portable operation devices) of the robot control system S of the present embodiment monitor on / off states of various operation keys (key state monitoring means). A teaching operation packet corresponding to each input state of one or more priority keys 15 (teaching operation keys) related to the operation of the above is generated and transmitted in the order of input of the teaching operation keys. A safety transmitting unit 12 that generates and transmits non-teaching operation packets corresponding to respective input states of one or more non-priority keys 16 (non-teaching operation keys) not related to the operation of And a communication unit 13 (first communication means).
In addition, the controller 30 of the robot control system S communicates with the safety transmission unit 12 and the communication unit 13 (first communication unit), and verifies whether the received teaching operation packet and the non-teaching operation packet have a communication error. the communication unit 33 and the safety receiver 32 includes a (second communication hand stage). When the communication error is not generated in the teaching operation packet received by the communication unit 33 and the safety receiving unit 32, the controller 30 performs robot control according to the packet data, and the communication error occurs. In some cases, the robot is stopped, and control means for performing GUI control based on the non-teaching operation packet in which no communication error has occurred among the non-teaching operation packets received by the communication unit 33 and the safety receiving unit 32 is provided. .

又、優先キー15に関する通信エラーが検出された場合、メインCPU31(制御手段)は、ロボットを停止する。 Further, if a communication error regarding priority key 15 is detected, main CPU 31 (control means) stops the robot.

この結果、教示時において、通信エラーを検出した際に、ロボット制御を行うコントローラ側の反応の遅れや、或いは操作不可の状態が発生することがなく、安全性を高めることができるネットワーク対応のロボット制御システムを提供することができる。   As a result, when a communication error is detected during teaching, there is no response delay on the controller side that controls the robot, or no operation is disabled, and a network-compatible robot that can improve safety A control system can be provided.

(2) 本実施形態のティーチペンダント10の安全送信部12、及び通信部13(第1通信手段)は、操作キーの入力順にパケットデータを作成して連番を付与して定期周期で送信する。
また、コントローラ30の通信部33及び安全受信部32(第2通信手段)は、前記教示操作パケットに対しては、前記定期周期での受信がなかった場合、または連番で受信されなかった場合に通信エラーと判定する。また、通信部33及び安全受信部32(第2通信手段)は、前記非教示操作パケットに対しては、連番で受信されなかった場合に通信エラーと判定する。
(2) The safety transmission unit 12 and the communication unit 13 (first communication unit) of the teach pendant 10 according to the present embodiment create packet data in the order of operation key input, assign serial numbers, and transmit them at regular intervals. .
The communication unit 33 and the safety receiver 32 of the controller 30 (second communication hand stage), the for the teaching packet, the if there is no reception at regular periods, or has not been received by the sequence number In case of a communication error. The communication unit 33 and the safety receiver 32 (second communicating hand stage), the relative non-teaching packet, determines that a communication error if it is not received by the sequence number.

この結果、本実施形態によれば、コントローラ30の通信部33及び安全受信部32は、受信した教示操作パケットが定期周期毎に送信があったか、又は、連番で受信したか否かで通信エラー検出を行うことができる。そして、この結果、ロボット制御を行うコントローラ側の通信エラーに伴う反応の遅れや、或いは操作不可の状態が発生することがない。
また、非教示操作パケットに対しては、連番で受信されなかった場合に通信エラーと判定される。このため、この通信エラーとはされない場合、非教示操作パケットに基づいてGUI制御を行うことができる。
また、リモートデスクトップ技術を応用したティーチペンダント10とロボット制御を行うコントローラ30の通信において、ティーチペンダント10が備える操作キーのキー状態を伝達する経路を2つ持たせることにより、ティーチペンダント10によりロボット動作を教示する場合のキー操作の伝達に関して、リアルタイム性を保証するとともに、通信の信頼性を高め、安全かつ安定した操作性を確保することができるロボット制御システムを提供できる。なお、従来は、RDPは一般的な用途においては、厳密なリアルタイム性は必要でないため、クライアント端末からの操作に対するサーバPCの応答性は保証されていない。通信の遅延や通信エラーが発生すると、キー操作に対するロボット制御を行うコントローラ側の反応の遅れや、或いは操作不可の状態が発生する虞がある。RDPを用いてロボットを動作させる場合、キー操作のロボット制御を行うコントローラへの伝達の遅れは、ロボットの操作性の悪化に繋がるため、好ましくなく、これを回避することが望ましい。従来は、ロボット操作のようにリアルタイム制御が必要な場面に、リモートデスクトップを利用することが想定されていなかったことにより、可搬式操作装置のキー操作の伝達に関してリアルタイム性が保証されていない問題があったが、構造的な対策は行われていなかった。
As a result, according to the present embodiment, the communication unit 33 and the safety reception unit 32 of the controller 30 determine whether the received teaching operation packet has been transmitted at regular intervals or whether it has been received with a serial number. Detection can be performed. As a result, there is no reaction delay due to a communication error on the controller side that performs the robot control, or an inoperable state does not occur.
A non-teaching operation packet is determined as a communication error when it is not received with a serial number. For this reason, when this communication error is not considered, GUI control can be performed based on the non-teaching operation packet.
Further, in the communication between the teach pendant 10 using the remote desktop technology and the controller 30 that performs robot control, the teach pendant 10 operates the robot by providing two paths for transmitting the key states of the operation keys included in the teach pendant 10. With respect to transmission of key operations when teaching the robot, it is possible to provide a robot control system that can guarantee real-time performance, increase communication reliability, and ensure safe and stable operability. Conventionally, since RDP does not require strict real-time characteristics in general applications, the responsiveness of server PCs to operations from client terminals is not guaranteed. When a communication delay or a communication error occurs, there is a possibility that a response delay on the controller side that performs the robot control with respect to the key operation or a state where the operation cannot be performed may occur. When operating a robot using RDP, a delay in the transmission of key operations to the controller that controls the robot leads to deterioration of the operability of the robot. Conventionally, it has not been assumed that remote desktops are used in situations where real-time control is required, such as robot operations, so there is a problem that real-time performance is not guaranteed for the transmission of key operations of portable operation devices. However, no structural measures were taken.

さらに、ロボットの操作キー(優先キー15)のキー状態データB4(操作情報)は、メインCPU31のRDPサーバ36を中継するようにしている。この結果、安全通信が未接続のときには、ロボットの操作キー(優先キー15)の操作情報が伝わらないため、安全である。又、RDPサーバ36が未接続時には、操作キー(優先キー15)の操作情報は、動作制御部39に伝わらないため、より安全である。   Further, the key status data B4 (operation information) of the operation key (priority key 15) of the robot is relayed to the RDP server 36 of the main CPU 31. As a result, when the safety communication is not connected, the operation information of the operation key (priority key 15) of the robot is not transmitted, which is safe. When the RDP server 36 is not connected, the operation information of the operation key (priority key 15) is not transmitted to the operation control unit 39, so that it is safer.

(3) 本実施形態のティーチペンダント10は、優先キー15のキー状態について監視する優先キー入力監視部17(第1監視手段)を備え、通信部13(第1通信手段)は、優先キー入力監視部17が監視した複数の優先キー15の各キー状態に応じて、該優先キー15の入力順に前記各キー状態のパケットデータを複数作成して該複数のパケットデータを定期周期毎に、前記入力順に連番で送信する。この結果、優先キー15のキー状態が把握され、該優先キー15のキー状態に基づいて、通信部13が複数のパケットデータを入力順に作成して、該複数のパケットデータを定期周期毎に、前記入力順に連番で送信することができる。   (3) The teach pendant 10 of the present embodiment includes a priority key input monitoring unit 17 (first monitoring unit) that monitors the key state of the priority key 15, and the communication unit 13 (first communication unit) receives priority key input. In accordance with each key state of the plurality of priority keys 15 monitored by the monitoring unit 17, a plurality of packet data in each key state are created in the order of input of the priority key 15, and the plurality of packet data are generated at regular intervals. Send in sequential order in input order. As a result, the key state of the priority key 15 is grasped, and based on the key state of the priority key 15, the communication unit 13 creates a plurality of packet data in the order of input, and the plurality of packet data is generated at regular intervals. It is possible to transmit in sequential order in the input order.

(4) 本実施形態のティーチペンダント10は非優先キー16のキー状態について監視する非優先キー入力監視部18(第2監視手段)を備える。そして、通信部13は、非優先キー入力監視部18が監視した複数の非優先キー16の各キー状態に応じて、該非優先キー16の入力順に前記各キー状態のパケットデータを複数作成して送信するとともに、再送信要求があったパケットデータについては再送する。この結果、通信部13は、非優先キー16が監視したキー状態について、複数のパケットデータを入力順に作成して送信するとともに、再送信要求があったパケットデータについては再送することができる。   (4) The teach pendant 10 of this embodiment includes a non-priority key input monitoring unit 18 (second monitoring means) that monitors the key state of the non-priority key 16. Then, the communication unit 13 creates a plurality of packet data of each key state in the order of input of the non-priority key 16 according to each key state of the plurality of non-priority keys 16 monitored by the non-priority key input monitoring unit 18. At the same time as transmission, the packet data requested to be retransmitted is retransmitted. As a result, for the key state monitored by the non-priority key 16, the communication unit 13 can create and transmit a plurality of packet data in the order of input, and can retransmit the packet data for which a retransmission request has been made.

(5) 本実施形態のティーチペンダント10は、教示操作に使用される複数の優先キー15の各キー状態に応じて、優先キー15の入力順に前記各キー状態のキー状態データB4(パケットデータ)を複数作成して該複数のキー状態データB4を定期周期毎に、前記入力順に連番で送信する安全送信部12(第1通信手段)を備える。又、ティーチペンダント10は、非教示操作に使用される複数の非優先キー16の各キー状態に応じて、該非優先キー16の入力順に各キー状態のキー状態データ(パケットデータ)を複数作成して送信するとともに、再送信要求があったパケットデータについては再送する通信部13(第1通信手段)を備える。この結果、上記ロボット制御システムSに使用できる可搬式操作装置を提供できる。   (5) The teach pendant 10 of the present embodiment has the key state data B4 (packet data) of each key state in the order of input of the priority key 15 in accordance with the key states of the plurality of priority keys 15 used for the teaching operation. And a plurality of key status data B4 are transmitted in a serial number in the order of input in a regular cycle. Further, the teach pendant 10 creates a plurality of key state data (packet data) of each key state in the order of input of the non-priority key 16 according to each key state of the plurality of non-priority keys 16 used for the non-teaching operation. And a communication unit 13 (first communication means) that retransmits the packet data requested to be retransmitted. As a result, a portable operating device that can be used in the robot control system S can be provided.

(6) 本実施形態のコントローラ30は、受信した非優先キー16に関するキー状態データA4(パケットデータ)を定期周期毎に連番で受信したか否かの検証を行うとともに、受信した前記非優先キーに関するパケットデータの通信エラーが生じた際、前記再送信要求を行う通信部33(第2通信手段)を備える。さらに、コントローラ30は、通信部33及び安全受信部32(第2通信手段)が受信した優先キー15に関するキー状態データB4(パケットデータ)が、前記定期周期毎に連番で受信した場合にそのキー状態データB4に応じたロボット制御を行い、前記定期周期毎に連番で受信しなかった場合には、ロボットRを停止する。さらに、コントローラ30は、通信部33が受信した非優先キー16に関して通信エラーが生じなかったパケットデータに基づいて、GUI制御を行う。この結果、上記ロボット制御システムに使用できるコントローラを提供できる。 (6) The controller 30 of the present embodiment verifies whether or not the key state data A4 (packet data) related to the received non-priority key 16 has been received with a serial number at regular intervals, and the received non-priority data when a communication error of the packet data regarding key occurs, provided the communication unit 33 for re-transmission request (second communication hand stage). Furthermore, the controller 30, when the communication unit 33 and the safety receiver 32 keys for priority key 15 (second communication hand stage) receives status data B4 (packet data), received in sequence number for each of the regular cycle The robot is controlled according to the key status data B4, and the robot R is stopped when the serial number is not received every regular cycle. Furthermore, the controller 30 performs GUI control based on the packet data in which no communication error has occurred regarding the non-priority key 16 received by the communication unit 33. As a result, a controller that can be used in the robot control system can be provided.

(第2実施形態)
次に、第2実施形態のロボット制御システムSを図3乃至図6を参照して説明する。なお、第2実施形態の構成中、第1実施形態の構成と同一又は相当する構成については、同一符号を付して説明する。
(Second Embodiment)
Next, the robot control system S of the second embodiment will be described with reference to FIGS. Note that, in the configuration of the second embodiment, the same or corresponding configuration as the configuration of the first embodiment will be described with the same reference numerals.

図3に示すように、本実施形態の搬式操作装置としてのティーチペンダント10はメインCPU(中央演算処理装置)11、安全送信部12、LANI/Fからなる通信部13、キーボード14、非常停止スイッチ21、デッドマンスイッチ22、液晶ディスプレイ等の表示装置(図示しない)等の各部を備えている。キーボード14には、第1実施形態と同様に各種キー群を備える。   As shown in FIG. 3, the teach pendant 10 as a portable operation device of this embodiment includes a main CPU (central processing unit) 11, a safety transmission unit 12, a communication unit 13 including a LAN I / F, a keyboard 14, and an emergency stop switch. 21, the deadman switch 22, and a display device (not shown) such as a liquid crystal display. The keyboard 14 includes various key groups as in the first embodiment.

すなわち、キーボード14は、第1実施形態と同様にGUI機能を実現させるための各種の操作キースイッチ(以下、操作キーという)を備えている。該操作キーの中で、教示操作に使用される操作キーは、教示モードでロボットの動作又は停止を行うためのキーであり、教示操作キーに相当する。教示操作キーとしては、例えば、X軸の移動方向を示す「−X」キー及び「X+」キー、Y軸の移動方向を示す「−Y」キー及び「Y+」キー及び「−Y」キー、Z軸の移動方向を示す「−Z」キー及び「Z+」キー、教示結果の確認操作に使用するキー等がある。これらの操作キーが教示モードにおいて操作されると、ロボットの動作又は停止を指示することとなる。教示操作キーには、作業者がロボットの動作/停止を指示するためのキー類も含む。なお、上記の教示操作キーは例示であり、前記操作キーに限定されるものではない。   That is, the keyboard 14 includes various operation key switches (hereinafter referred to as operation keys) for realizing the GUI function as in the first embodiment. Among the operation keys, the operation key used for the teaching operation is a key for operating or stopping the robot in the teaching mode, and corresponds to the teaching operation key. As teaching operation keys, for example, “−X” key and “X +” key indicating the movement direction of the X axis, “−Y” key, “Y +” key and “−Y” key indicating the movement direction of the Y axis, There are a “−Z” key and a “Z +” key indicating the movement direction of the Z axis, keys used for confirming the teaching result, and the like. When these operation keys are operated in the teaching mode, the robot is instructed to move or stop. The teaching operation keys include keys for an operator to instruct the robot to operate / stop. The teaching operation keys described above are merely examples, and are not limited to the operation keys.

又、キーボード14は、GUI機能を実現させるための各種の操作キーの中で、非教示操作に使用するキー(教示モード以外の他のモード、あるいは教示モードであってもロボットの動作、停止に関連しない操作に使用するキー)、すなわち、リモートデスクトップ操作を行うために使用されるキーをも含み、非教示操作キーに相当する。   The keyboard 14 is a key used for non-teaching operation among various operation keys for realizing the GUI function (other than the teaching mode, or the robot can be operated and stopped even in the teaching mode). Keys used for unrelated operations), that is, keys used for remote desktop operation, and correspond to non-teach operation keys.

これらの非教示操作キーは、例えば、モード切替キー、数字キー、画面選択キー、教示点の削除キー、カーソルキー等を含む。なお、前述した非教示操作キーは例示であって、上述した操作キーに限定されるものではない。前述したリモートデスクトップ操作を行うためのキーを含む趣旨である。   These non-teaching operation keys include, for example, a mode switching key, a numeric key, a screen selection key, a teaching point deletion key, a cursor key, and the like. The above-described non-teach operation keys are examples, and are not limited to the operation keys described above. This includes the keys for performing the above-described remote desktop operation.

又、コントローラ30は、メインCPU31、安全受信部32、通信部33、動作制御部39、GUI制御部40等の各部を備えている。
前記安全送信部12、安全受信部32は、通信によって安全機能を実現するために相互に定期的なデータパケット(安全通信パケット)の送受信を行うためのものであり、ハード及びソフトを組み合わせたモジュールからなる。
The controller 30 includes various parts such as a main CPU 31, a safety receiving unit 32, a communication unit 33, an operation control unit 39, and a GUI control unit 40.
The safety transmitting unit 12 and the safety receiving unit 32 are modules for mutually transmitting and receiving periodic data packets (safety communication packets) in order to realize a safety function by communication, and are a combination of hardware and software. Consists of.

そして、安全送信部12は、非常停止スイッチ21が押された際、或いはデッドマンスイッチ22が作動してその非常停止状態をパケットデータとして含む安全通信パケットの生成を行い、通信部13を介して、通信部33へ向けて送信する。   Then, the safety transmission unit 12 generates a safety communication packet including the emergency stop state as packet data when the emergency stop switch 21 is pressed or the deadman switch 22 is operated, and through the communication unit 13, It transmits toward the communication part 33.

通信部13、33は、ティーチペンダント10とコントローラ30間のネットワーク通信を実現するためのハード及びソフトを組み合わせたモジュールからなる。本実施形態では、通信部13、33は無線通信によるネットワーク通信が行われる。   The communication units 13 and 33 are composed of modules combining hardware and software for realizing network communication between the teach pendant 10 and the controller 30. In the present embodiment, the communication units 13 and 33 perform network communication by wireless communication.

メインCPU11は、ソフトウエアにより、キー情報送信部11aとして機能する。なお、図3に示すメインCPU11内のブロックは、ハード構成を示すものではなく、機能ブロックを示している。キー情報送信部11aは、さらに、キー入力監視部11b、非安全通信パケット生成部11cび非安全情報送信部11dとして機能する。キー情報送信部11aは、キーボード14の各種キー群のオン・オフ状態を取得し、この情報を通信部13を介してコントローラ30に送信する。なお、前記各種キー群には、キー、スイッチ、ボタン等の操作手段を含む。前記キー入力監視部11bは、前記各種操作キー群のキー状態、すなわち、前記オン・オフ状態を監視しており、キー状態監視手段に相当する。   The main CPU 11 functions as a key information transmission unit 11a by software. Note that the blocks in the main CPU 11 shown in FIG. 3 do not indicate a hardware configuration but indicate functional blocks. The key information transmission unit 11a further functions as a key input monitoring unit 11b, a non-safety communication packet generation unit 11c, and a non-safety information transmission unit 11d. The key information transmission unit 11 a acquires on / off states of various key groups of the keyboard 14, and transmits this information to the controller 30 via the communication unit 13. The various key groups include operation means such as keys, switches and buttons. The key input monitoring unit 11b monitors the key state of the various operation key groups, that is, the on / off state, and corresponds to a key state monitoring unit.

図4(a)に示すように非安全通信パケット生成部11cは、送信番号を管理する連番管理部11e、送信時間管理部11f、送信処理部11gを備える。連番管理部11e、送信時間管理部11f、及び送信処理部11gの詳細な説明は後述する。   As shown in FIG. 4A, the non-secure communication packet generation unit 11c includes a serial number management unit 11e that manages transmission numbers, a transmission time management unit 11f, and a transmission processing unit 11g. Detailed descriptions of the serial number management unit 11e, the transmission time management unit 11f, and the transmission processing unit 11g will be described later.

コントローラ30のメインCPU31は、ソフトウエアにより、キー情報受信部50、動作制御部39、GUI制御部40として機能する。なお、図3に示すメインCPU31内のブロックは、ハード構成を示すものではなく、機能ブロックを示している。動作制御部39及びGUI制御部40は、第1実施形態と同様に構成されている。   The main CPU 31 of the controller 30 functions as a key information receiving unit 50, an operation control unit 39, and a GUI control unit 40 by software. Note that the blocks in the main CPU 31 shown in FIG. 3 do not indicate a hardware configuration but indicate functional blocks. The operation control unit 39 and the GUI control unit 40 are configured in the same manner as in the first embodiment.

キー情報受信部50は、非安全通信パケット検査部52、及び記憶手段としてしてのキー情報管理部54を備えている。非安全通信パケット検査部52及びキー情報管理部54の詳細な説明は後述する。前記キー情報受信部50は、ティーチペンダント10から受信したキー群のオン・オフ状態を、動作制御部39、又はGUI制御部40に送信する。   The key information receiving unit 50 includes a non-secure communication packet inspection unit 52 and a key information management unit 54 as a storage unit. Detailed descriptions of the non-secure communication packet inspection unit 52 and the key information management unit 54 will be described later. The key information receiving unit 50 transmits the on / off state of the key group received from the teach pendant 10 to the operation control unit 39 or the GUI control unit 40.

動作制御部39は、第1実施形態と同様に、教示モードでは、入力した優先キー15のキー状態データに応じてロボットRの各関節の動作を制御する。又、動作制御部39は、自動運転モードにおいては、教示されたプログラムに従ってロボットRの制御を行う。   Similar to the first embodiment, the motion control unit 39 controls the motion of each joint of the robot R according to the key state data of the priority key 15 that has been input in the teaching mode. The operation control unit 39 controls the robot R in accordance with the taught program in the automatic operation mode.

GUI制御部40は、第1実施形態と同様に、GUI制御を行うためのキー群のキー状態データに応じてGUI制御を行う。GUI制御部40によるGUI制御は、図示しないROMに格納されたGUI制御プログラムに従って行われる。   The GUI control unit 40 performs GUI control according to key state data of a key group for performing GUI control, as in the first embodiment. GUI control by the GUI control unit 40 is performed according to a GUI control program stored in a ROM (not shown).

すなわち、メインCPU31は、前記図示しないROMを備え、該ROMには、該コントローラ30が制御対象とするロボットRの動作制御を実行するための制御プログラムとその制御定数や、各種プログラムが格納される。又、メインCPU31は、前記図示しないROMに格納された各種プログラム中、RDPサーバプログラムによりRDPサーバとして機能する。   That is, the main CPU 31 includes the ROM (not shown), and the ROM stores a control program for controlling the operation of the robot R to be controlled by the controller 30, control constants thereof, and various programs. . The main CPU 31 functions as an RDP server by an RDP server program among various programs stored in the ROM (not shown).

又、GUI制御部40は、各種のデータ管理及び設定が可能であり、動作制御部39とは異なり、ロボットRの動作停止及び動作開始を直接制御しない非動作制御部に相当する。   Further, the GUI control unit 40 can manage and set various data, and is different from the operation control unit 39 and corresponds to a non-operation control unit that does not directly control operation stop and operation start of the robot R.

本実施形態では、ティーチペンダント10のメインCPU11、すなわちキー情報送信部11a、及び通信部13とにより、第1通信手段が構成されている。又、コントローラ30のメインCPU31、すなわち、キー情報受信部50と通信部33とにより第2通信手段が構成されている。   In the present embodiment, the main CPU 11 of the teach pendant 10, that is, the key information transmission unit 11 a and the communication unit 13 constitute a first communication unit. The main CPU 31 of the controller 30, that is, the key information receiving unit 50 and the communication unit 33 constitute a second communication unit.

(第2実施形態の作用)
次に、本実施形態のロボット制御システムSの作用を説明する。
1.通信が正常な場合の処理
(ステップ1:ティーチペンダント10による操作キーON状態の送信)
作業者が、ティーチペンダント10の操作キーを入力操作すると、キー入力監視部11bは、キー状態がオフからオンに変化したことを検出し、入力操作されたキー名とキー状態値(ON)を非安全通信パケット生成部11cに送る。
(Operation of Second Embodiment)
Next, the operation of the robot control system S of this embodiment will be described.
1. Processing when communication is normal (Step 1: Transmission of operation key ON state by teach pendant 10)
When the operator performs an input operation on the operation key of the teach pendant 10, the key input monitoring unit 11b detects that the key state has changed from OFF to ON, and inputs the key name and key state value (ON) for which the input operation has been performed. The data is sent to the non-secure communication packet generator 11c.

非安全通信パケット生成部11cは、上記キー名とキー状態値(ON)を入力すると、非安全通信パケットNSを生成する。前記非安全通信パケットNSは、接続状態にあるコントローラ30の宛先データA1、送信元データA2を含むヘッダH、前記送信番号データA3、キー名A4a、キー状態値A4bからなるキー状態データA4、誤り検出データA5を含む。なお、宛先データA1〜誤り検出データA5は、第1実施形態と同様の意味である。 The non-secure communication packet generator 11c generates the non-secure communication packet NS x when the key name and the key state value (ON) are input. The non-secure communication packet NS x includes key state data A4 including destination data A1 of the controller 30 in the connected state, header H including the transmission source data A2, transmission number data A3, key name A4a, and key state value A4b. Includes error detection data A5. The destination data A1 to error detection data A5 have the same meaning as in the first embodiment.

すなわち、非安全通信パケット生成部11cは、図4(a)に示すように、前記キー名とキー状態値(ON)を、非安全通信パケットNSに格納する。又、非安全通信パケット生成部11cの連番管理部11eは、管理している非安全通信パケットの送信番号x(連番)を+1して、同じく非安全通信パケットNSに格納する。 That is, the non-secure communication packet generator 11c stores the key name and the key state value (ON) in the non-secure communication packet NS x as shown in FIG. Further, the serial number management unit 11e of the non-safety communication packet generation unit 11c adds +1 to the transmission number x (serial number) of the managed non-safety communication packet, and stores the same in the non-safety communication packet NS x .

そして、送信処理部11gは、前記キー状態値がオフ(OFF)からオン(ON)に変化した、キー状態変化に基づいて上記のように生成された非安全通信パケットNSを通信部13に送る。又、非安全通信パケット生成部11cの送信時間管理部11fは、非安全通信パケットNSを送信した時刻を記憶し、非安全通信パケットNSを送信した時から計時する。 Then, the transmission processing unit 11g sends the non-safety communication packet NS x generated as described above to the communication unit 13 based on the key state change when the key state value has changed from OFF to ON. send. The transmission time management unit 11f of the non-secure communication packet generation unit 11c stores the time at which transmitted the non-secure communication packet NS x, is timed from when sending the non-secure communication packet NS x.

通信部13は、前記非安全通信パケットNSを受け取ると、これにネットワーク通信に必要な情報を付加し、接続状態にあるコントローラ30に対して、ネットワーク通信で送信する。 Upon receiving the non-safety communication packet NS x , the communication unit 13 adds information necessary for network communication to the non-safety communication packet NS x and transmits the information to the controller 30 in the connected state by network communication.

(ステップ2:コントローラ30によるキー状態値(ON)の受信)
コントローラ30の通信部33は、前記非安全通信パケットNSを受信すると、該非安全通信パケットNSを非安全通信パケット検査部52に送る。
(Step 2: Reception of the key status value (ON) by the controller 30)
When receiving the non-secure communication packet NS x , the communication unit 33 of the controller 30 sends the non-safe communication packet NS x to the non-safe communication packet inspection unit 52.

非安全通信パケット検査部52では、前記非安全通信パケットNSxを受信すると、パケットの検出データ5を検証し、検出データ5が正常であれば、エラー判定部58が、非安全通信パケットNSxの送信番号x(連番)を連番管理部56で管理している非安全通信パケットNSxの連番と比較して、+1されているか否かを確認、すなわち、判定する。ここで両者が一致していれば、すなわち、正常であれば、エラー判定部58は通信エラーがないと判定する、この判定結果に応じて、キー状態出力部60は、非安全通信パケットNSxからキー名とキー状態値(ON)を取り出し、パケット検査結果「OK」と共にキー名とキー状態値(ON)をキー情報管理部54に送る。 In non-secure communication packet checking unit 52, when receiving the non-secure communication packet NSx, verifies the detected data A 5 of the packet, if the normal detection data A 5, the error determination unit 58, a non-secure communication packet NSx The transmission number x (serial number) is compared with the serial number of the non-safety communication packet NSx managed by the serial number management unit 56, and it is confirmed whether it is +1, that is, determined. Here, if they match, that is, if they are normal, the error determination unit 58 determines that there is no communication error. In response to this determination result, the key state output unit 60 starts from the non-safety communication packet NSx. The key name and key state value (ON) are extracted, and the key name and key state value (ON) are sent to the key information management unit 54 together with the packet inspection result “OK”.

又、非安全通信パケット検査部52では、連番管理部56は自身が管理している非安全通信パケットNSの送信番号x(連番)を+1する。又、非安全通信パケット検査部52のタイムアウト監視部62は、非安全通信パケットNSを受信した時刻(受信時間)を記憶する。 In the non-safety communication packet inspection unit 52, the serial number management unit 56 increments the transmission number x (serial number) of the non-safety communication packet NS x managed by itself by +1. Further, the timeout monitoring unit 62 of the non-secure communication packet inspection unit 52 stores the time (reception time) when the non-safe communication packet NS x is received.

(ステップ3:コントローラ30によるキー状態値(ON)の処理)
キー情報管理部54は、パケット検査結果「OK」を受け取ると、一緒に受け取ったキー名とキー状態値(ON)を、図示しない記憶部に記憶する。次に、キー情報管理部54は、キー名とキー状態値(ON)を動作制御部39及びGUI制御部40に送る。動作制御部39及びGUI制御部40は、前記キー名とキー状態の変化(OFF→ON)に応じた動作を開始する。
(Step 3: Processing of key status value (ON) by controller 30)
Upon receiving the packet inspection result “OK”, the key information management unit 54 stores the received key name and key state value (ON) in a storage unit (not shown). Next, the key information management unit 54 sends the key name and the key state value (ON) to the operation control unit 39 and the GUI control unit 40. The operation control unit 39 and the GUI control unit 40 start an operation according to the change of the key name and the key state (OFF → ON).

このため、動作制御部39は、教示モードでは、前記キー名とキー状態の変化(OFF→ON)に応じてロボットRの各関節の動作を制御を開始する。又、GUI制御部40は、前記キー名とキー状態の変化(OFF→ON)に応じてGUI制御を開始する。GUI制御部40によるGUI制御は、図示しないROMに格納されたGUI制御プログラムに従って行われる。   For this reason, in the teaching mode, the operation control unit 39 starts controlling the operation of each joint of the robot R according to the change of the key name and the key state (OFF → ON). In addition, the GUI control unit 40 starts GUI control in response to a change in the key name and key state (OFF → ON). GUI control by the GUI control unit 40 is performed according to a GUI control program stored in a ROM (not shown).

(ステップ4:ティーチペンダント10による非安全通信の継続送信と、コントローラ30による受信)
ティーチペンダント10の非安全通信パケット生成部11cの送信時間管理部11fでは、前記計時により、前回の非安全通信パケットNSを送信した時刻から一定時間、非安全通信パケットを送信していない状態を検出すると、連番管理部11eで管理している、非安全通信パケットの連番を+1して、非安全通信パケットNSx+1に格納し、送信処理部11gは、その非安全通信パケットNSx+1を送信する。
(Step 4: Continuous transmission of non-safety communication by the teach pendant 10 and reception by the controller 30)
In the transmission time management unit 11f of the non-safety communication packet generation unit 11c of the teach pendant 10, a state in which the non-safety communication packet is not transmitted for a certain time from the time when the previous non-safety communication packet NS x is transmitted is measured. When detected, the serial number of the non-safe communication packet managed by the serial number management unit 11e is incremented by 1 and stored in the non-safe communication packet NS x + 1 , and the transmission processing unit 11g stores the non-safe communication packet NS x + 1 . Send.

すなわち、送信時間管理部11fは、前回の非安全通信パケットNSxを送信した時刻からこの送信周期で計時し、この非安全通信パケット送信周期内に新たなキー入力操作がない場合は、該周期毎に上記のように同様に非安全通信パケットが生成されて送信されることになる。なお、この場合、生成される非安全通信パケットには、キー状態データA4は格納されないものとする。   In other words, the transmission time management unit 11f counts in this transmission cycle from the time when the previous non-safe communication packet NSx was transmitted, and if there is no new key input operation within this non-safe communication packet transmission cycle, Similarly, as described above, a non-secure communication packet is generated and transmitted. In this case, the key state data A4 is not stored in the generated non-secure communication packet.

そして、この非安全通信パケットNSxは、ティーチペンダント10及びコントローラ30の通信部13,33を経由して、コントローラ30の非安全通信パケット検査部52に送られる。   The non-safety communication packet NSx is sent to the non-safety communication packet inspection unit 52 of the controller 30 via the teach pendant 10 and the communication units 13 and 33 of the controller 30.

コントローラ30の非安全通信パケット検査部52では、非安全通信パケットNSxを受け取ると、検出データ5が正常であって、エラー判定部58の判定が正常の判定であれば、連番管理部56が管理している連番と、タイムアウト監視部62が管理している受信した時刻(受信時間)を更新する。 In non-secure communication packet checking unit 52 of the controller 30, when receiving the non-secure communication packet NSx, a normal detection data A 5, if the determination determination of normal error determination unit 58, the serial number management section 56 The serial number managed by, and the reception time (reception time) managed by the timeout monitoring unit 62 are updated.

そして、コントローラ30の動作制御部39及びGUI制御部40は、キー状態値の変化(ON→OFF)の通知を受けるまでは、キー状態値(ON)と判断して動作を継続する。   Then, the operation control unit 39 and the GUI control unit 40 of the controller 30 determine that the key state value (ON) is received and continue the operation until receiving a notification of a change in the key state value (ON → OFF).

(ステップ5:ティーチペンダント10によるキー状態値(OFF)の送信)
作業者の操作により、ティーチペンダント10のキー入力監視部11bは、キー状態がオンからオフに変化したことを検出すると、キー名とキー状態値(OFF)を非安全通信パケット生成部11cに送る。
(Step 5: Transmission of key state value (OFF) by teach pendant 10)
When the key input monitoring unit 11b of the teach pendant 10 detects that the key state has changed from on to off by the operator's operation, the key name and the key state value (OFF) are sent to the non-safety communication packet generation unit 11c. .

非安全通信パケット生成部11cは、キー名とキー状態値(OFF)を、前述したステップ1〜2と同様の手順で非安全通信パケットを生成するとともに送信する。送信された非安全通信パケットはコントローラ30の通信部33を介して非安全通信パケット検査部52に送られる。   The non-secure communication packet generation unit 11c generates a non-safe communication packet and transmits the key name and the key state value (OFF) in the same procedure as in Steps 1 and 2 described above. The transmitted non-safe communication packet is sent to the non-safe communication packet inspection unit 52 via the communication unit 33 of the controller 30.

(ステップ6:コントローラ30によるキー状態値(OFF)の処理)
キー情報管理部54は、非安全通信パケット検査部52から受け取ったキー状態値がOFFの場合、該キー状態値とともに送られてきたキー名と同じキー名が既に図示しない記憶部に記憶されている場合は、図示しない記憶部に記憶していた該キー名を削除する。次にキー情報管理部54は、該キー名とキー状態値(OFF)を動作制御部39及びGUI制御部40に送る。
(Step 6: Key state value (OFF) processing by controller 30)
When the key state value received from the non-secure communication packet inspection unit 52 is OFF, the key information management unit 54 has already stored the same key name as the key name sent together with the key state value in a storage unit (not shown). If there is, the key name stored in the storage unit (not shown) is deleted. Next, the key information management unit 54 sends the key name and the key state value (OFF) to the operation control unit 39 and the GUI control unit 40.

このため、動作制御部39は、教示モードでは、前記キー名とキー状態の変化(ON→OFF)に応じてロボットRの各関節の動作の制御を開始する。又、GUI制御部40は、前記キー名とキー状態の変化(ON→OFF)に応じてGUI制御を開始する。ここで、ロボットRの各関節の動作の制御に関する非安全通信パケットは、教示操作パケットに相当し、GUI制御に関する非安全通信パケットは非教示操作パケットに相当する。 For this reason, in the teaching mode, the operation control unit 39 starts controlling the operation of each joint of the robot R according to the change of the key name and the key state (ON → OFF). In addition, the GUI control unit 40 starts GUI control in response to a change in the key name and key state (ON → OFF). Here, the non-safety communication packet related to the control of the motion of each joint of the robot R corresponds to a teaching operation packet, and the non-safety communication packet related to GUI control corresponds to a non-teaching operation packet.

上記のステップ1〜6は、通信エラーが生じていない場合の、正常な動作である。
次に、コントローラ30が受信できなかったときの通信エラーが生じた場合を説明する。
The above steps 1 to 6 are normal operations when no communication error has occurred.
Next, a case where a communication error occurs when the controller 30 cannot receive data will be described.

2.通信が異常な場合の処理
(ステップ7:コントローラ30による通信エラーの検出)
ステップ5で説明した、キー操作がされてキー状態値(OFF)を含んだ非安全通信パケットNSx+1が、通信エラーによりコントローラ30が受信できなかった場合は、以下のようになる(図5参照)。
2. Processing when communication is abnormal (Step 7: Detection of communication error by controller 30)
When the controller 30 cannot receive the non-safety communication packet NSx + 1 including the key state value (OFF) described in step 5 due to a communication error, the following occurs (FIG. 5). reference).

(A) 作業者が続けてキー操作をしなかった場合
図5に示すように非安全通信パケットNSx+1の消失により、コントローラ30はキー状態値(OFF)を受信していないため、ステップ4の機能により、前記非安全通信パケット送信周期による定期的な非安全通信パケットNSx+1の受信を待っている。しかし、ティーチペンダント10は、既にキー状態値(OFF)を消失している非安全通信パケットNSx+1にて送信しているため、次の非安全通信パケット送信周期までは、非安全通信パケットを送信しないことになる。このため、コントローラ30の非安全通信パケット検査部52が、タイムアウトエラーを検出する。
(A) When the operator does not continue to operate the key As shown in FIG. 5, the controller 30 has not received the key state value (OFF) due to the disappearance of the non-safety communication packet NS x + 1. With the function 4, the reception of a periodic non-safe communication packet NS x + 1 in the non-safe communication packet transmission cycle is awaited. However, since the teach pendant 10 transmits the non-safety communication packet NS x + 1 whose key state value (OFF) has already disappeared, the non-safety communication packet is not transmitted until the next non-safety communication packet transmission cycle. Will not be sent. For this reason, the non-secure communication packet inspection unit 52 of the controller 30 detects a timeout error.

具体的には、タイムアウト監視部62では、非安全通信パケットを受信する毎に、受信した時刻(受信時間)を更新している。しかし、非安全通信パケットが受信されなかった場合には、受信時間の更新が行われないため、エラー判定部58は前記非安全通信パケット送信周期において受信時間の更新が行われてないことに基づいて、タイムアウトエラーを検出し、すなわち通信エラーの判定を行う。   Specifically, the time-out monitoring unit 62 updates the received time (reception time) every time a non-safety communication packet is received. However, since the reception time is not updated when the non-safe communication packet is not received, the error determination unit 58 is based on the fact that the reception time is not updated in the non-safe communication packet transmission cycle. Thus, a timeout error is detected, that is, a communication error is determined.

(B) 作業者が続けてキー操作をした場合
図6に示すように、次の非安全通信パケット送信周期までに別のキーの押下状態が変化した場合、ティーチペンダント10はステップ1の手順で非安全通信パケットNSx+2を送信する。コントローラ30はステップ2の手順で非安全通信パケットNSx+2を受信するが、コントローラ30側の非安全通信パケットNSxの送信番号x(連番)は、パケット消失により+1されていない。このためコントローラ30の非安全通信パケット検査部52が、連番エラーを検出する。
(B) When the operator continuously operates the key As shown in FIG. 6, when the pressed state of another key changes by the next non-safe communication packet transmission cycle, the teach pendant 10 follows the procedure of step 1. The non-secure communication packet NSx + 2 is transmitted. The controller 30 receives the non-safety communication packet NSx + 2 in the procedure of step 2, but the transmission number x (serial number) of the non-safety communication packet NSx on the controller 30 side is not incremented by +1. For this reason, the non-secure communication packet inspection unit 52 of the controller 30 detects a serial number error.

具体的には、エラー判定部58は、非安全通信パケットNSx+2の送信番号x+2(連番)を連番管理部56で管理している非安全通信パケットNSの送信番号x(連番)と比較する。この場合は、管理していた送信番号と、現在受信した送信番号とは不一致となるため、エラー判定部58は連番エラーであると判定する。 Specifically, the error determination unit 58 transmits the transmission number x (serial number) of the non-safety communication packet NS x managed by the serial number management unit 56 of the transmission number x + 2 (serial number) of the non-safety communication packet NS x + 2. No.) In this case, the managed transmission number and the currently received transmission number do not match, so the error determination unit 58 determines that a serial number error has occurred.

(ステップ8:コントローラ30による、通信エラーの処理)
ステップ7で、コントローラ30の非安全通信パケット検査部52がエラーを検出すると、非安全通信パケット検査部52からキー情報管理部54にパケット検査結果「NG」が通知される。キー情報管理部54は、記憶しているキー名、すなわち、コントローラ30内ではキー状態値が(ON)状態と認識している全てのキーについて、キー名とキー状態(OFF)を動作制御部39及びGUI制御部40に送る。又、キー情報管理部54が記憶している全てのキー名及びキー状態値からなるキー情報を削除する。すなわち、キー情報の記憶を解除する。この結果、動作制御部39及びGUI制御部40は、キー名とキー状態の変化(ON→OFF)に応じた動作を開始する。すなわち、この場合は、ロボットRの動作は、停止される。又、GUI制御部40により、通信エラーに対応したGUI制御が行われる。例えば、通信エラーに対応したGUI制御では、ティーチペンダント10の図示しない表示装置に通信エラーである旨の注意喚起のための画像形成等を行い、形成した該画像データをティーチペンダント10へ送信する。
(Step 8: Processing of communication error by the controller 30)
If the non-secure communication packet inspection unit 52 of the controller 30 detects an error in step 7, the non-safe communication packet inspection unit 52 notifies the key information management unit 54 of the packet inspection result “NG”. The key information management unit 54 stores the key names and key states (OFF) of the stored key names, that is, all keys whose key state values are recognized as (ON) in the controller 30. 39 and the GUI control unit 40. Further, the key information including all key names and key status values stored in the key information management unit 54 is deleted. That is, the storage of the key information is released. As a result, the operation control unit 39 and the GUI control unit 40 start an operation corresponding to a change in key name and key state (ON → OFF). That is, in this case, the operation of the robot R is stopped. The GUI control unit 40 performs GUI control corresponding to the communication error. For example, in GUI control corresponding to a communication error, image formation for alerting a communication error is performed on a display device (not shown) of the teach pendant 10 and the formed image data is transmitted to the teach pendant 10.

以上の手順により、通信エラーで非安全通信パケットのみが欠損した場合でも、コントローラ30側の判断により、安全側への制御が行われる。
なお、第2実施形態において、ティーチペンダント10の安全送信部12は、図4(b)に示すように、非常停止スイッチ21又はデッドマンスイッチ22が操作された場合、非常停止スイッチ21又はデッドマンスイッチ22のキー名、及びキー状態がパケットデータとして含む安全通信パケットの生成を行い、通信部13を介してコントローラ30に送信する。
According to the above procedure, even when only a non-safe communication packet is lost due to a communication error, control to the safe side is performed according to the determination on the controller 30 side.
In the second embodiment, the safety transmission unit 12 of the teach pendant 10, as shown in FIG. 4B, when the emergency stop switch 21 or the deadman switch 22 is operated, the emergency stop switch 21 or the deadman switch 22. A secure communication packet including the key name and the key state as packet data is generated and transmitted to the controller 30 via the communication unit 13.

安全送信部12が生成する安全通信パケットは第1実施形態と同様に、安全通信パケットは、前操作された優先キー15のキー状態をパケットデータとしてのキー状態データとして、図4(b)に示すように、安全受信部32の宛先データB1(すなわち、宛先アドレス)、送信元データB2(すなわち、送信元アドレス)、送信番号データB3(すなわち、通信番号データ)、キー状態データB4(すなわち、教示操作キーのキー状態)、誤り検出データB5を含む。前記宛先データB1及び送信元データB2は、ヘッダとなる。又、キー状態データB4は、キー名データと、キー状態データを含む。送信番号データB3は、連番管理部12aにより前回送信した送信番号データB3に1が加えられることにより更新され、送信番号データB3は連番で付与されることになる。   As in the first embodiment, the safety communication packet generated by the safety transmission unit 12 is the same as that of the first embodiment. The safety communication packet is shown in FIG. 4B with the key state of the pre-operated priority key 15 as key state data as packet data. As shown, destination data B1 (ie destination address), source data B2 (ie source address), transmission number data B3 (ie communication number data), key status data B4 (ie Teaching operation key state), and error detection data B5. The destination data B1 and the transmission source data B2 are headers. The key status data B4 includes key name data and key status data. The transmission number data B3 is updated by adding 1 to the transmission number data B3 transmitted last time by the serial number management unit 12a, and the transmission number data B3 is given by serial numbers.

又、安全送信部12では、送信時間管理部12bにより、定期周期である安全通信パケット送信周期で安全通信パケットが生成されて、送信処理部12cにより、通信部13に出力され、コントローラ30に送信される。コントローラ30では、通信部33を介して受信した安全通信パケットは安全受信部32により、第1実施形態と同様に処理される。   Further, in the safety transmission unit 12, a safety communication packet is generated by a transmission time management unit 12 b at a safety communication packet transmission cycle that is a regular cycle, and is output to the communication unit 13 by the transmission processing unit 12 c and transmitted to the controller 30. Is done. In the controller 30, the safety communication packet received via the communication unit 33 is processed by the safety receiving unit 32 in the same manner as in the first embodiment.

第2実施形態のロボット制御システムSでは、下記の特徴がある。
(1) 本実施形態のロボット制御システムSのティーチペンダント10は、各種のキー群を備え、ロボットの教示操作に使用される複数の教示操作キーを含む各種キーのキー状態を監視するキー入力監視部11b(キー状態監視手段)と、キー入力監視部11bの監視結果である教示操作キーを含む各種キーのキー状態のパケットデータを送信するキー情報送信部11a及び通信部13(第1通信手段)を備える。
The robot control system S of the second embodiment has the following features.
(1) The teach pendant 10 of the robot control system S of the present embodiment includes various key groups and monitors key inputs of various keys including a plurality of teaching operation keys used for teaching operation of the robot. A key information transmission unit 11a for transmitting key state packet data of various keys including a teaching operation key as a monitoring result of the key input monitoring unit 11b and a communication unit 13 (first communication unit). ).

又、コントローラ30は、キー情報送信部11a及び通信部13(第1通信手段)との間の通信の通信エラーの検出を行うキー情報受信部50及び通信部33(第2通信手段)を備える。そして、キー情報管理部54(記憶手段)は、ティーチペンダント10から送信されたパケットデータのキー状態がオンのときその教示操作キーのオン状態を記憶する。そして、コントローラ30は、前記通信エラーが検出されない場合、ティーチペンダント10から送信された教示操作キーのキー状態のパケットデータに基づいてロボット制御を行う。キー情報管理部54(記憶手段)は、通信エラーが検出された場合、キー情報管理部54が記憶しているキー名及びキー状態値からなるキー情報を削除する。すなわち、キー情報の記憶を解除する。そして、コントローラ30は、通信エラーが検出された場合、前記記憶を解除したことに応じてロボットを停止する。   The controller 30 includes a key information receiving unit 50 and a communication unit 33 (second communication unit) that detect a communication error in communication between the key information transmission unit 11a and the communication unit 13 (first communication unit). . Then, the key information management unit 54 (storage means) stores the ON state of the teaching operation key when the key state of the packet data transmitted from the teach pendant 10 is ON. When the communication error is not detected, the controller 30 performs robot control based on the key state packet data of the teaching operation key transmitted from the teach pendant 10. When a communication error is detected, the key information management unit 54 (storage means) deletes the key information including the key name and key state value stored in the key information management unit 54. That is, the storage of the key information is released. When a communication error is detected, the controller 30 stops the robot in response to the cancellation of the memory.

この結果、教示時(教示モード)において、通信エラーを検出した際に、ロボット制御を行うコントローラ側の反応の遅れや、或いは操作不可の状態が発生することがなく、安全性を高めることができるネットワーク対応のロボット制御システムを提供することができる。   As a result, when a communication error is detected during teaching (teaching mode), there is no delay in response on the controller side that performs robot control, or no operation is disabled, and safety can be improved. A network-compatible robot control system can be provided.

(2) 本実施形態のロボット制御システムSでは、キー情報送信部11a及び通信部13(第1通信手段)は、定期周期毎にパケットデータを作成して連番で送信する。又、キー情報受信部50及び通信部33(第2通信手段)の通信エラーの検出は、受信したパケットデータが前記定期周期毎に送信があったか、又は、連番で受信したか否かで行う。この結果、本実施形態では、ロボット制御を行うコントローラ30側において、通信エラーに伴う反応の遅れや、或いは操作不可の状態が発生することがない。   (2) In the robot control system S of the present embodiment, the key information transmission unit 11a and the communication unit 13 (first communication unit) create packet data for each periodic period and transmit the packet data with serial numbers. Further, detection of a communication error in the key information receiving unit 50 and the communication unit 33 (second communication means) is performed based on whether the received packet data is transmitted at the regular period or whether it is received with a serial number. . As a result, in the present embodiment, there is no reaction delay due to a communication error or inoperable state on the controller 30 side that performs robot control.

(3) 本実施形態のロボット制御システムSでは、キー情報送信部11a及び通信部13(第1通信手段)は、キー入力監視部11b(キー状態監視手段)により、キー状態の変更を検出したときに、キー入力監視部11bの監視結果である教示操作キーのキー状態のパケットデータを送信する。又、合わせて、キー情報送信部11a及び通信部13(第1通信手段)は、該キー状態の変更のパケットデータを送信した後から、定期周期(非安全パケット送信周期)毎のパケットデータの送信を開始する。   (3) In the robot control system S of the present embodiment, the key information transmission unit 11a and the communication unit 13 (first communication unit) have detected a change in the key state by the key input monitoring unit 11b (key state monitoring unit). Sometimes, the packet data of the key state of the teaching operation key, which is the monitoring result of the key input monitoring unit 11b, is transmitted. At the same time, the key information transmission unit 11a and the communication unit 13 (first communication means) transmit packet data for changing the key state, and then transmit packet data for each periodic period (non-safe packet transmission period). Start sending.

この結果、本実施形態によれば、キー状態の変更を検出したとき、すなわち、教示操作キーの操作情報を、オン・オフの変化時しかデータとしてパケットに乗せないため、通信データ量の低減、可搬式操作装置とコントローラのCPUの処理量の低減が可能となる。   As a result, according to the present embodiment, when the change of the key state is detected, that is, the operation information of the teaching operation key is put on the packet as data only at the time of on / off change, the communication data amount is reduced, It is possible to reduce the processing amount of the portable operation device and the CPU of the controller.

(4) 本実施形態では、キー群の内、少なくとも教示操作キーが操作されていることにより、ロボットRが動作している際、非教示操作キーの操作が行われたときに通信エラーがあったとしても、ロボットRを停止することができる。   (4) In this embodiment, since at least the teaching operation key in the key group is operated, there is a communication error when the robot R is operating and the non-teaching operation key is operated. Even so, the robot R can be stopped.

(5) なお、従来、特許文献1〜3で提案されている技術の場合、安全通信と同じエラー検出機能を非安全通信にも設けることが考えられる。この場合、安全通信と同様に、非安全通信についても、ロボット制御装置側では、通信エラーを検出し、全ての非安全出力(GUIキー類210のON/OFF状態)について、安全方向になるよう、ロボット制御装置が出力を変更することで安全性は確保される。しかし、GUIキー類210は数が多く、一方でロボット制御装置のCPUのキー入力処理は、1つずつしか処理できない。このため、全てのGUIキー類210を短時間に処理することはできず、ロボットの停止が遅れるという問題がある。   (5) Conventionally, in the case of the techniques proposed in Patent Documents 1 to 3, it is conceivable to provide the same error detection function as that in safety communication in non-safety communication. In this case, as in the case of non-safety communication, for non-safety communication, the robot controller detects a communication error so that all non-safety outputs (the ON / OFF state of the GUI keys 210) are in the safe direction. The safety is ensured by the robot controller changing the output. However, there are many GUI keys 210, and on the other hand, the key input processing of the CPU of the robot control device can be processed only one by one. For this reason, all the GUI keys 210 cannot be processed in a short time, and there is a problem that the stop of the robot is delayed.

本実施形態では、非安全通信パケットを、操作キーのオン・オフの切替え時から、定時周期的に非安全通信パケットを作成して送信するようにしているため、上記の問題を抑制することができる。   In this embodiment, since the non-safety communication packet is generated and transmitted at regular intervals from the time when the operation key is switched on / off, the above problem can be suppressed. it can.

なお、本発明の実施形態は以下のように変更してもよい。
○ 第1実施形態においては、ティーチペンダント10の通信部13は、非優先キー入力監視部18で監視された非優先キー16のキー状態をパケットデータとして含む通常通信パケットを生成して送信するようにした。又、コントローラ30の通信部33は、該通常通信パケットの中から非優先キー16のキー状態のパケットデータを抽出して、メインCPU31に送信するようにした。
In addition, you may change embodiment of this invention as follows.
In the first embodiment, the communication unit 13 of the teach pendant 10 generates and transmits a normal communication packet including the key state of the non-priority key 16 monitored by the non-priority key input monitoring unit 18 as packet data. I made it. Further, the communication unit 33 of the controller 30 extracts the packet data of the key state of the non-priority key 16 from the normal communication packet and transmits it to the main CPU 31.

この構成に代えて、図8に示すように、ティーチペンダント10に通信部13とは別にLANI/Fからなる通信部13Aを設けて、該通信部13Aにより、非優先キー入力監視部18で監視された非優先キー16のキー状態をパケットデータとして含む通常通信パケットを生成して送信するようにしてもよい。そして、コントローラ30に、通信部33とは別に、LANI/Fからなる通信部33Aを設けてもよい。この場合、通信部33Aは、通信部13Aから送信された通常通信パケットの中から非優先キー16のキー状態のパケットデータを抽出して、メインCPU31に送信する。この例では、安全送信部12、通信部13、通信部13Aが第1通信手段を構成する。又、通信部33、通信部33A及び安全受信部32が第2通信手段を構成する。   Instead of this configuration, as shown in FIG. 8, the teach pendant 10 is provided with a communication unit 13A comprising a LAN I / F separately from the communication unit 13, and is monitored by the non-priority key input monitoring unit 18 by the communication unit 13A. A normal communication packet including the key state of the non-priority key 16 as packet data may be generated and transmitted. In addition to the communication unit 33, the controller 30 may be provided with a communication unit 33 </ b> A composed of a LAN I / F. In this case, the communication unit 33A extracts the key state packet data of the non-priority key 16 from the normal communication packet transmitted from the communication unit 13A, and transmits the packet data to the main CPU 31. In this example, the safety transmission unit 12, the communication unit 13, and the communication unit 13A constitute a first communication unit. In addition, the communication unit 33, the communication unit 33A, and the safety reception unit 32 constitute a second communication unit.

○ 又、第1実施形態の構成を、図9に示すように、コントローラ30に通信部33とは別に、LANI/Fからなる通信部33Bを設けてもよい。この場合、通信部33Bは、通信部13から送信された通常通信パケットの中から非優先キー16のキー状態のパケットデータを抽出して、メインCPU31に送信する。この例では、通信部33、通信部33B及び安全受信部32が第2通信手段を構成する。   As shown in FIG. 9, the controller 30 may be provided with a communication unit 33 </ b> B including a LAN I / F separately from the communication unit 33 in the configuration of the first embodiment. In this case, the communication unit 33B extracts the packet data in the key state of the non-priority key 16 from the normal communication packet transmitted from the communication unit 13 and transmits it to the main CPU 31. In this example, the communication unit 33, the communication unit 33B, and the safety reception unit 32 constitute a second communication unit.

○ 第1実施形態では、有線LANでネットワークを構成したが、ネットワーク手段として無線LANに代えてもよい。或いは単に無線でティーチペンダント10と複数のコントローラ間を交信可能としてもよい。又、無線に換えて、赤外線通信、光通信、或いは磁気通信等のワイヤレスで行う伝送方式の非有線通信手段で構成してもよいことは勿論のことである。又、第2実施形態の無線LANに代えて有線LANに変更してもよい。   In the first embodiment, the wired LAN is used as the network, but the network means may be replaced with a wireless LAN. Alternatively, communication between the teach pendant 10 and a plurality of controllers may be simply performed wirelessly. Of course, it may be configured by non-wired communication means of a transmission system that performs wirelessly such as infrared communication, optical communication, or magnetic communication instead of wireless communication. Further, instead of the wireless LAN of the second embodiment, it may be changed to a wired LAN.

○ 第2実施形態の構成中、キー情報管理部54の、キー状態値がオン状態にあるキーの管理は行なわず、動作制御部39及びGUI制御部40が個別にキー情報管理部54と同様のキー情報の管理行うとともに、通信エラー処理を行なっても良い。この場合、非安全通信パケット検査部52からのエラー通知を、動作制御部39及びGUI制御部40に送ることにより、動作制御部39及びGUI制御部40が、エラー時の安全側への制御を開始する。   In the configuration of the second embodiment, the key information management unit 54 does not manage keys whose key state value is on, and the operation control unit 39 and the GUI control unit 40 are individually the same as the key information management unit 54. In addition to managing the key information, communication error processing may be performed. In this case, by sending an error notification from the non-safety communication packet inspection unit 52 to the operation control unit 39 and the GUI control unit 40, the operation control unit 39 and the GUI control unit 40 perform control to the safe side at the time of an error. Start.

○ 第2実施形態の構成中、非安全通信を定期周期的に送信するのは、ティーチペンダント10の操作キーが押されている間だけでも良い。このように構成しても、操作キーを離したということをコントローラ30に伝達できないことが、第2実施形態では問題となっているからである。   In the configuration of the second embodiment, the non-safety communication may be periodically transmitted only while the operation key of the teach pendant 10 is pressed. This is because even in this configuration, the fact that the operation key has been released cannot be transmitted to the controller 30 is a problem in the second embodiment.

○ 第2実施形態では、非安全通信パケット送信周期毎に非安全通信パケットを生成する際には、キー状態データA4を格納しないで生成するようにしているが、キー入力監視部11bにおいて、キー入力操作でオン操作があった履歴を記憶しておき、キーのオン操作がない場合には、非安全パケット送信周期毎に、その最新の履歴に基づいてキー名、及びそのキー状態値を非安全通信パケットに格納してもよい。このようにしても、第2実施形態と同様の効果を実現することができる。   In the second embodiment, when generating a non-safety communication packet for each non-safety communication packet transmission period, the key state data A4 is generated without being stored. Stores the history of on-operations during input operations, and if there is no key-on operation, the key name and its key status value are hidden based on the latest history for each non-safety packet transmission cycle. It may be stored in a secure communication packet. Even if it does in this way, the effect similar to 2nd Embodiment is realizable.

○ 第2実施形態では、RDP(リモートデスクトッププロトコル)を使用したが、RDPを使用せずに、他のプロトコルを使用することも勿論可能である。   In the second embodiment, RDP (Remote Desktop Protocol) is used, but it is of course possible to use other protocols without using RDP.

S…ロボット制御システム、R…ロボット、
10…ティーチペンダント(可搬式操作装置)、11…メインCPU、
12…安全送信部、
13…通信部(安全送信部12とともに第1通信部を構成する)、
14…キーボード、15…優先キー、16…非優先キー、
17…優先キー入力監視部(第1監視手段)、
18…非優先キー入力監視部(第2監視手段)、30…コントローラ、
31…メインCPU(制御手段)、32…安全受信部、
33…通信部(安全受信部32とともに第2通信部を構成する)、
36…RDPサーバ、
37…優先キー状態受信部、38…非優先キー状態受信部、
39…動作制御部、40…GUI制御部。
S ... Robot control system, R ... Robot,
10 ... Teach pendant (portable operation device), 11 ... Main CPU,
12 ... Safety transmitter
13... Communication unit (constitutes the first communication unit together with the safety transmission unit 12),
14 ... Keyboard, 15 ... Priority key, 16 ... Non-priority key,
17... Priority key input monitoring unit (first monitoring means)
18 ... Non-priority key input monitoring unit (second monitoring means), 30 ... Controller,
31 ... Main CPU (control means), 32 ... Safety receiver ,
33 ... Communication unit (constitutes the second communication unit together with the safety reception unit 32),
36 ... RDP server,
37 ... priority key state reception unit, 38 ... non-priority key state reception unit,
39 ... Operation control unit, 40 ... GUI control unit.

Claims (5)

ロボットの動作に関連する1以上の教示操作キーおよびロボットの動作には関連しない1以上の非教示操作キーを含んだ操作キーと、前記各種の操作キーのオンオフ状態を監視するキー状態監視手段と、前記キー状態監視手段が監視している前記教示操作キーの各入力状態に応じたパケットデータである教示操作パケットを、前記教示操作キーの入力順に作成して送信するとともに、前記キー状態監視手段が監視している前記非教示操作キーの各入力状態に応じたパケットデータである非教示操作パケットを、前記非教示操作キーの入力順に作成して送信する第1通信手段と、を備えた可搬式操作装置と、
受信した前記教示操作パケットおよび前記非教示操作パケットについて、通信エラーの有無を検証する第2通信手段と、
前記第2通信手段が受信した前記教示操作パケットに前記通信エラーが生じていない場合はそのパケットデータに応じたロボット制御を行い、前記通信エラーが生じている場合にはロボットを停止する一方、
前記第2通信手段が受信した前記非教示操作パケットのうち、前記通信エラーが生じていない非教示操作パケットに基づいてGUI制御を行うコントローラと、を備え
前記第2通信手段は、受信した前記非教示操作パケットに通信エラーを検出したときは、前記可搬式操作装置に再送信要求を行うことを特徴とするロボット制御システム。
An operation key including one or more teaching operation keys related to the operation of the robot and one or more non-teaching operation keys not related to the operation of the robot; and a key state monitoring means for monitoring the on / off state of the various operation keys. The teaching operation packet which is packet data corresponding to each input state of the teaching operation key monitored by the key state monitoring unit is generated and transmitted in the order of input of the teaching operation key, and the key state monitoring unit First communication means for generating and transmitting a non-teaching operation packet, which is packet data corresponding to each input state of the non-teaching operation key monitored by the computer, in the order of input of the non-teaching operation key. A portable operating device;
Second communication means for verifying the presence or absence of a communication error for the received teaching operation packet and the non-teaching operation packet;
When the communication error has not occurred in the teaching operation packet received by the second communication means, the robot is controlled according to the packet data, and when the communication error has occurred, the robot is stopped,
A controller that performs GUI control based on a non-teach operation packet in which no communication error has occurred among the non-teach operation packets received by the second communication unit ;
The robot control system according to claim 2, wherein when the communication error is detected in the received non-teaching operation packet, the second communication unit makes a re-transmission request to the portable operation device .
前記第1通信手段は、前記操作キーの入力順にパケットデータを作成して連番を付与して定期周期で送信し、
前記第2通信手段は、前記教示操作パケットに対しては、前記定期周期での受信がなかった場合、または連番で受信されなかった場合に通信エラーと判定し、前記非教示操作パケットに対しては、定期周期での受信がなかった場合と、連番で受信されなかった場合のうち、少なくとも連番で受信されなかった場合に通信エラーと判定することを特徴とする請求項1に記載のロボット制御システム。
The first communication means creates packet data in the order of input of the operation keys, assigns serial numbers, and transmits them in a periodic cycle.
The second communication means determines that there is a communication error when the teaching operation packet is not received at the regular period or when it is not received with a serial number, and the non-teaching operation packet is The communication error is determined when at least a serial number is not received among a case in which no periodic cycle is received and a case in which serial numbers are not received. Robot control system.
前記第1通信手段は、前記再送信要求があったパケットデータについては再送することを特徴とする請求項1または請求項2に記載のロボット制御システム。  3. The robot control system according to claim 1, wherein the first communication unit retransmits the packet data requested to be retransmitted. 4. ロボットの動作に関連する1以上の教示操作キーおよびロボットの動作には関連しない1以上の非教示操作キーを含んだ操作キーと、前記各種の操作キーのオンオフ状態を監視するキー状態監視手段と、前記キー状態監視手段が監視している前記教示操作キーの各入力状態に応じたパケットデータである教示操作パケットを、前記教示操作キーの入力順に作成して送信するとともに、前記キー状態監視手段が監視している前記非教示操作キーの各入力状態に応じたパケットデータである非教示操作パケットを、前記非教示操作キーの入力順に作成して送信する第1通信手段と、を備えた可搬式操作装置と通信するコントローラにおいて、  An operation key including one or more teaching operation keys related to the operation of the robot and one or more non-teaching operation keys not related to the operation of the robot; and a key state monitoring means for monitoring the on / off state of the various operation keys. The teaching operation packet which is packet data corresponding to each input state of the teaching operation key monitored by the key state monitoring unit is generated and transmitted in the order of input of the teaching operation key, and the key state monitoring unit First communication means for generating and transmitting a non-teaching operation packet, which is packet data corresponding to each input state of the non-teaching operation key monitored by the computer, in the order of input of the non-teaching operation key. In the controller that communicates with the portable operating device,
ロボットの動作に関連する前記教示操作パケットおよびロボットの動作には関連しない前記非教示操作パケットについて、通信エラーの有無を検証する第2通信手段と、  Second communication means for verifying the presence or absence of a communication error for the teaching operation packet related to the operation of the robot and the non-teaching operation packet not related to the operation of the robot;
前記第2通信手段が受信した前記教示操作パケットに前記通信エラーが生じていない場合はそのパケットデータに応じたロボット制御を行い、前記通信エラーが生じている場合にはロボットを停止する一方、  When the communication error has not occurred in the teaching operation packet received by the second communication means, the robot is controlled according to the packet data, and when the communication error has occurred, the robot is stopped,
前記第2通信手段が受信した前記非教示操作パケットのうち、前記通信エラーが生じていない非教示操作パケットに基づいてGUI制御を行う制御手段と、を備え、  Control means for performing GUI control based on a non-teaching operation packet in which the communication error has not occurred among the non-teaching operation packets received by the second communication means;
前記第2通信手段は、受信した前記非教示操作パケットに通信エラーを検出したときは、前記可搬式操作装置に再送信要求を行うことを特徴とするコントローラ。  When the second communication means detects a communication error in the received non-teaching operation packet, the second communication means makes a retransmission request to the portable operation device.
前記第2通信手段は、前記教示操作パケットが、定期周期での受信がなかった場合、または連番で受信されなかった場合に通信エラーと判定し、前記非教示操作パケットに対しては、連番で受信されなかった場合に通信エラーと判定することを特徴とする請求項4に記載のコントローラ。  The second communication means determines a communication error when the teaching operation packet is not received at a regular cycle or when it is not received with a serial number. The controller according to claim 4, wherein the controller determines that a communication error has occurred if the communication error is not received.
JP2009080229A 2008-12-24 2009-03-27 Robot control system and controller Active JP5492437B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009080229A JP5492437B2 (en) 2008-12-24 2009-03-27 Robot control system and controller

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2008328755 2008-12-24
JP2008328755 2008-12-24
JP2009080229A JP5492437B2 (en) 2008-12-24 2009-03-27 Robot control system and controller

Publications (2)

Publication Number Publication Date
JP2010167550A JP2010167550A (en) 2010-08-05
JP5492437B2 true JP5492437B2 (en) 2014-05-14

Family

ID=42700163

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009080229A Active JP5492437B2 (en) 2008-12-24 2009-03-27 Robot control system and controller

Country Status (1)

Country Link
JP (1) JP5492437B2 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6028573B2 (en) * 2013-01-09 2016-11-16 ブラザー工業株式会社 Control system, machine tool, servo motor control device, and position information transmission / reception method
JP5545380B1 (en) * 2013-01-28 2014-07-09 株式会社安川電機 Robot system
JP5590164B2 (en) * 2013-01-28 2014-09-17 株式会社安川電機 Robot system
JP6180745B2 (en) * 2013-01-30 2017-08-16 株式会社日立ハイテクノロジーズ Nucleic acid analyzer
JP6291743B2 (en) * 2013-08-12 2018-03-14 村田機械株式会社 Industrial machine system and transmission / reception system
JP6744790B2 (en) * 2016-09-06 2020-08-19 シャープ株式会社 Control system, control method, and control program
CN111687866A (en) * 2019-12-17 2020-09-22 成都博恩思医学机器人有限公司 Induction handle and detection method of using state of handle
KR20220027666A (en) * 2020-08-27 2022-03-08 삼성전자주식회사 Robot and controlling method thereof
JP2022071787A (en) * 2020-10-28 2022-05-16 川崎重工業株式会社 Control board of automatic system and robot system
CN117597898A (en) * 2021-07-07 2024-02-23 株式会社安川电机 Communication system, control system, and communication method

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61161518A (en) * 1985-01-11 1986-07-22 Mitsubishi Electric Corp Controller of industrial robot
JPH03104582A (en) * 1989-09-19 1991-05-01 Yokogawa Electric Corp Robot control device using serial communication
JPH07121216A (en) * 1993-10-26 1995-05-12 Komatsu Ltd Robot control unit
JP2004355195A (en) * 2003-05-28 2004-12-16 Yaskawa Electric Corp Teaching operation device for robot
JP2005250815A (en) * 2004-03-04 2005-09-15 Yaskawa Electric Corp Automatic machine system
JP2006285412A (en) * 2005-03-31 2006-10-19 Yaskawa Electric Corp Controller
JP4824362B2 (en) * 2005-08-01 2011-11-30 本田技研工業株式会社 Mobile robot controller
JP4659690B2 (en) * 2006-06-30 2011-03-30 株式会社ダイヘン Machine control device
JP4943916B2 (en) * 2006-08-29 2012-05-30 株式会社ダイヘン Robot control system

Also Published As

Publication number Publication date
JP2010167550A (en) 2010-08-05

Similar Documents

Publication Publication Date Title
JP5492437B2 (en) Robot control system and controller
JP3464907B2 (en) Protocol conversion system
US11171799B2 (en) Communication system, control device, setting device, setting method, and program
JP4851585B2 (en) COMMUNICATION METHOD FOR SYSTEM COMPRISING CLIENT DEVICE AND MULTIPLE SERVER DEVICE, ITS COMMUNICATION PROGRAM, CLIENT DEVICE, AND SERVER DEVICE
EP1890845B1 (en) A robot control system comprising a portable operating device with safety equipement
JP3912379B2 (en) Safety network system, safety slave and communication method
CN111817885B (en) Network-based master-slave machine distinguishing and switching method and device
US11669076B2 (en) System and method of communicating unconnected messages over high availability industrial control systems
US11927950B2 (en) System and method of communicating safety data over high availability industrial control systems
JP2008097326A (en) Snmp sequence management method, manager device, and agent device
JP7332442B2 (en) safety controller
CN110741607B (en) System and method for stabilizing BACnet MSTP network when fault occurs
WO2021149640A1 (en) Control device for industrial machine
JP7120678B1 (en) Communication processing device, communication processing system, failure notification method and failure notification program
KR20150009910A (en) Method for checking connectivity between controllers and network apparatuses
JP2007060444A (en) Optical wireless communication equipment, terminal equipment, information system, optical wireless communication method and program
WO2023100376A1 (en) Communication system, communication method, and communication program
JP6845127B2 (en) External monitoring system and monitoring terminal
JP6667341B2 (en) Network system
JP4574105B2 (en) Information processing apparatus, communication system, and program thereof
KR20100010191A (en) Method for reliability of transferring data in a network
JP6207710B1 (en) Transfer control device, transfer control method, and program
JP2024018734A (en) Communication processing device and communication method
JP4629906B2 (en) Machine trouble information transmission system and method
CN111918414A (en) Wireless multiple redundant communication method based on android system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120208

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130208

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130319

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130517

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20131015

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131225

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20140114

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140303

R150 Certificate of patent or registration of utility model

Ref document number: 5492437

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250