JP2012074779A - Communication system - Google Patents

Communication system Download PDF

Info

Publication number
JP2012074779A
JP2012074779A JP2010216100A JP2010216100A JP2012074779A JP 2012074779 A JP2012074779 A JP 2012074779A JP 2010216100 A JP2010216100 A JP 2010216100A JP 2010216100 A JP2010216100 A JP 2010216100A JP 2012074779 A JP2012074779 A JP 2012074779A
Authority
JP
Japan
Prior art keywords
station
slave
bus line
slave station
connection connector
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.)
Withdrawn
Application number
JP2010216100A
Other languages
Japanese (ja)
Inventor
Makoto Umehara
誠 梅原
智行 ▲高▼田
Satoyuki Takada
Ko Tachiwa
航 立和
Kazushi Asai
一志 浅井
Sho Kikuchi
翔 菊池
直人 ▲高▼橋
Naoto Takahashi
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2010216100A priority Critical patent/JP2012074779A/en
Publication of JP2012074779A publication Critical patent/JP2012074779A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)
  • Manipulator (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a communication system that does not make a communication error at a time of hot swap for changing joint modules of a robot and the like.SOLUTION: A master station of a communication system physically connects with a slave station at the highest level, electrically connects with the slave station at the highest level through a bus line, terminates the bus line, and communicates with a plurality of slave stations. In addition, each of the plurality of slave stations in the system connects the bus line with an upper station, and moreover switches the bus line between termination and connection with a lower station. In the lowest station, the bus line is terminated, and in slave stations other than the lowest station, the bus line is connected to a lower station connection connector. If a new slave station having the same function as a slave station is inserted under the lowest station, after the upper station connection connector of the new slave station is physically connected to the lower station connection connector of the lowest station, the lowest station receives an insertion instruction from the master station, and the lowest station switches the bus line from the terminal and connects to the upper station connection connector of a lower station.

Description

本発明は、時分割にデータを送受信する端局を活線挿入、または活線抜去する通信システムに関する。   The present invention relates to a communication system for hot-plugging or hot-plugging a terminal station that transmits and receives data in a time division manner.

単純な形状の関節モジュールを多数組み合わせて種々の作業要求への対応を可能とするロボットシステムとして、特許文献1に示されるシステムが従来から知られている。このシステムは、まず機械的および電気的に独立した複数の関節モジュールが組み合わせられて互いに接続される。そしてこのシステムは、関節モジュール内部に備えられた通信手段を用いて動作制御に関わるデータを送受信することで、接続された全体の間接モジュールが動作する。なお、特許文献1の図2に示されるように、関節モジュール内の通信手段は、バスラインに接続された状態で通信が行われる構成をとっている。従って、多数の関節モジュールを組み合わせた場合にも、システムは、共通のバスラインを用いるので内部配線数を増やさずに、また作業内容に応じたロボットシステムを柔軟に構築することができる。また、このロボットシステムは、作業毎に専用のロボットを用意する必要がない。このため、例えば、多品種少量生産の製品組み立て等に用いられる自動機械に適したシステムといえる。   Conventionally, a system disclosed in Patent Document 1 has been known as a robot system that can cope with various work requests by combining a number of joint modules having simple shapes. In this system, first, a plurality of mechanically and electrically independent joint modules are combined and connected to each other. In this system, all the indirect modules connected are operated by transmitting and receiving data related to operation control using communication means provided in the joint module. As shown in FIG. 2 of Patent Document 1, the communication means in the joint module is configured to perform communication while being connected to the bus line. Therefore, even when a large number of joint modules are combined, the system uses a common bus line, so that it is possible to flexibly construct a robot system corresponding to the work content without increasing the number of internal wires. In addition, this robot system does not require a dedicated robot for each work. For this reason, for example, it can be said that the system is suitable for an automatic machine used for assembling a product of a small variety of products.

ところで、複数工程からなる作業をこのようなロボットシステムに行わせるには、システムは、各工程に応じた関節モジュール群(ロボットハンド)を複数用意して、工程の完了毎にロボットハンドを交換する必要がでてくる。この交換作業は、安全性と生産性の低下に繋がるため、人手で行うことは避けるべきである。このため、作業内容の変更に応じて、システムが自律的にロボットハンドを交換しながら動作することが強く望まれる。これを実現するためには、システムは、自らのシステム電源を停止することなく、関節モジュールの組み替えを行う活線挿抜機能を備えておく必要がある。   By the way, in order to cause such a robot system to perform a work including a plurality of processes, the system prepares a plurality of joint module groups (robot hands) corresponding to each process, and replaces the robot hand every time the process is completed. Necessity comes out. This replacement operation should be avoided manually as it leads to a reduction in safety and productivity. For this reason, it is strongly desired that the system operate while autonomously exchanging the robot hand in accordance with the change of work contents. In order to realize this, the system needs to have a hot-line insertion / extraction function for changing the joint module without stopping its own system power supply.

しかしながら、特許文献1に記載のロボットシステムにおいては、活線挿抜を行う場合、他の関節モジュールで通信エラーが発生し、しかもシステムの誤動作も引き起こしてしまう。この問題の第1の原因は、挿抜時に発生するノイズである。すなわち、バスラインが活線状態となっているときに関節モジュールを挿抜すると、バスラインにノイズが発生する。このノイズが、他の関節モジュールの通信信号に重畳された場合、通信エラーが発生する。   However, in the robot system described in Patent Document 1, when hot-swapping is performed, a communication error occurs in another joint module, and the system malfunctions. The first cause of this problem is noise generated during insertion / extraction. That is, if the joint module is inserted and removed while the bus line is in a live line state, noise is generated in the bus line. When this noise is superimposed on the communication signal of another joint module, a communication error occurs.

第2の原因は、終端処理が正しく行われないことで通信信号品質が劣化してしまうことである。バス通信においては、伝送路の末端を終端処理することで通信信号の反射を抑制すること必要となる。関節モジュールの挿抜を行うと、末端となる関節モジュールが取り替えられることになるので、それまで末端で行っていた終端処理を、別の関節モジュールに変更する必要がある。しかしながら、特許文献1に記載のロボットシステムでは、この処理が考慮されていないため、関節モジュールの挿抜時に信号品質が低下し、通信エラーが発生してしまうことが考えられる。   The second cause is that the communication signal quality deteriorates due to the termination processing not being performed correctly. In bus communication, it is necessary to suppress the reflection of communication signals by terminating the end of the transmission path. When the joint module is inserted / removed, the joint module at the end is replaced. Therefore, it is necessary to change the termination process that has been performed at the end to another joint module. However, since this process is not taken into consideration in the robot system described in Patent Document 1, it is conceivable that signal quality deteriorates and a communication error occurs when the joint module is inserted and removed.

第1の原因に対処する技術として、特許文献2には、時分割でデータを送受信するシステムにおいて、他の通信に影響を与えないタイミングで、挿抜対象とバスラインとの電気的に接続関係を切り換える技術が開示されている。また、第2の原因の対策技術として、特許文献3には、デイジーチェーン接続で構成されるバス通信システムにおいて、最下位局が適応的に伝送路の終端処理を行う技術が開示されている。   As a technique for coping with the first cause, Patent Document 2 discloses an electrical connection relationship between an object to be inserted and a bus line at a timing that does not affect other communication in a system that transmits and receives data in a time division manner. A technique for switching is disclosed. Also, as a countermeasure technique for the second cause, Patent Document 3 discloses a technique in which the lowest station adaptively performs transmission line termination processing in a bus communication system configured by daisy chain connection.

特開平09−029671号公報JP 09-029671 A 特開平11−261667号公報Japanese Patent Laid-Open No. 11-261667 特開平04−326832号公報Japanese Patent Laid-Open No. 04-326832

特許文献2に開示されている技術は、通信信号を駆動するドライバの発生するノイズを抑制する技術としては有効といえるが、コネクタピンの接続または切断時に発生するノイズを抑制することはできない。このため挿抜を行う場合、バスラインにノイズが乗り、通信エラーを生じてしまうという問題は依然として残っている。さらに、特許文献2のシステムには、挿抜対象とバスラインとの接続切換手段にタイミングを通知するための信号線を別途設ける必要がある。ロボットシステムにおいて、配線数の増加は関節の曲げ自由度を低下させることとなるため、配線数を増やすことは避けるべきである。   The technique disclosed in Patent Document 2 is effective as a technique for suppressing noise generated by a driver that drives a communication signal, but it cannot suppress noise generated when a connector pin is connected or disconnected. For this reason, when inserting / removing, there still remains a problem that noise occurs on the bus line and a communication error occurs. Furthermore, in the system of Patent Document 2, it is necessary to separately provide a signal line for notifying the connection switching means between the insertion / extraction object and the bus line. In a robot system, an increase in the number of wires reduces the degree of freedom of bending of the joint, so an increase in the number of wires should be avoided.

また特許文献3に開示されている技術は、活線状態での挿抜は考慮されていないため、挿抜の後、終端処理が切り替わるまでの間、信号品質が著しく低下し、この間に行われる通信にはエラーが生じてしまう。   In addition, since the technology disclosed in Patent Document 3 does not consider insertion / removal in a live line state, signal quality is significantly reduced until termination processing is switched after insertion / removal. Will cause an error.

すなわち、上記した特許文献1から3に開示されている技術を用いたとしても、活線挿抜時に通信エラーが発生するため、システムを動作させながら関節モジュールを自律的に交換できるシステムを実現することが困難である。   That is, even if the techniques disclosed in Patent Documents 1 to 3 described above are used, a communication error occurs during hot-swap, and thus a system capable of autonomously exchanging joint modules while operating the system is realized. Is difficult.

従って、本発明は、ロボットなどの関節モジュールを交換するための活線挿抜時に通信エラーを生じない通信システムを提供する。   Therefore, this invention provides the communication system which does not produce a communication error at the time of hot-line insertion and removal for exchanging joint modules, such as a robot.

本発明の通信システムは、係る課題を解決するため、親局と上位から下位に順番に接続された複数の子局との間で送受信を行う通信システムにおいて、前記親局は、前記複数の子局の内、最上位の子局と接続するための子局接続コネクタと、前記最上位の子局と電気的に接続するバスラインと、前記バスラインを終端する親局側終端手段と、前記複数の子局の各々と前記バスラインを通じて通信する通信手段と、を備え、前記複数の子局の各々は、前記バスラインを上位局と接続するための上位局接続コネクタと、前記バスラインを下位局と接続するための下位局接続コネクタと、前記バスラインを終端する子局側終端手段と、前記親局からの指示情報に基づき前記上位局接続コネクタからの前記バスラインを前記下位局接続コネクタまたは子局側終端手段に切換えて接続するスイッチ手段と、を備え、
前記複数の子局の最下位局の前記スイッチ手段は、前記バスラインを前記子局側終端手段に接続した状態にあり、また該最下位局以外の子局のスイッチ手段は、前記バスラインを前記下位局接続コネクタに接続した状態にあって、
前記最下位局に、該子局と同機能を有する新子局を挿入する場合には、前記最下位局の下位局接続コネクタに該新子局の上位局接続コネクタが物理的に接続された後、該最下位局が前記親局から挿入指示を受信し、該最下位局のスイッチ手段が、前記バスラインを前記子局側終端手段から前記下位局接続コネクタへ接続すること特徴とする。
In order to solve such a problem, the communication system of the present invention is a communication system that performs transmission / reception between a parent station and a plurality of slave stations connected in order from the upper level to the lower level. Of the stations, a slave station connection connector for connecting to the top slave station, a bus line electrically connected to the top slave station, a master station side termination means for terminating the bus line, Communication means for communicating with each of a plurality of slave stations through the bus line, each of the plurality of slave stations having an upper station connection connector for connecting the bus line to an upper station, and the bus line The lower station connection connector for connecting to the lower station, the slave station side termination means for terminating the bus line, and the lower station connection to the bus line from the upper station connection connector based on the instruction information from the parent station Connector or A switch means for connecting by switching the station side termination means comprises,
The switch means of the lowest station of the plurality of slave stations is in a state where the bus line is connected to the slave station side termination means, and the switch means of a slave station other than the lowest station is connected to the bus line. In the state connected to the lower station connector,
When a new slave station having the same function as the slave station is inserted into the lowest station, a higher station connection connector of the new slave station is physically connected to a lower station connection connector of the lowest station Thereafter, the lowest station receives an insertion instruction from the master station, and the switch means of the lowest station connects the bus line from the slave station side termination means to the lower station connection connector.

関節モジュールを自律的に交換するロボットシステムにおいて、関節モジュールを交換するための活線挿抜時に通信エラーを生じない通信システムを提供することができる。   In a robot system that autonomously replaces a joint module, a communication system that does not cause a communication error at the time of hot-swapping to replace the joint module can be provided.

ロボットシステム全体の構成を示す図。The figure which shows the structure of the whole robot system. フレームの構成を示す図。The figure which shows the structure of a flame | frame. スロット情報の割り当てを示す図。The figure which shows allocation of slot information. 親局の機能構成を示す図。The figure which shows the function structure of a master station. 子局Dを挿入する場合のスロット情報の割り当てを示す図。The figure which shows allocation of the slot information in case the sub_station | mobile_unit D is inserted. 子局Cを抜去する場合のスロット情報の割り当てを示す図。The figure which shows allocation of the slot information in the case of extracting the slave station C. 子局の機能構成を示す図。The figure which shows the function structure of a sub_station | mobile_unit. 子局を挿入する場合のシステムの動作フローを示す図。The figure which shows the operation | movement flow of the system in the case of inserting a slave station. 子局を抜去する場合のシステムの動作フローを示す図。The figure which shows the operation | movement flow of the system in the case of extracting a slave station. 複数の子局の挿抜を行うロボットシステムの構成を示す図。The figure which shows the structure of the robot system which inserts / extracts a some slave station. 子局の機能構成を示す図。The figure which shows the function structure of a sub_station | mobile_unit. 挿抜の検出を説明する図。The figure explaining the detection of insertion / extraction.

<実施形態1>
図1は、実施形態1のロボットなどの通信システムの構成を示す図である。本実施形態では、図1に示すように、親局と上位から下位に複数の子局とが順番に接続されてシステムを構成するものとする。後述するように、親局と複数の子局に備えられた通信手段は、共通バスラインである単一バスラインにより接続される。なお、任意の子局から見て、親局に近い子局を上位局、親局から遠い子局を下位局と呼ぶこととする。
<Embodiment 1>
FIG. 1 is a diagram illustrating a configuration of a communication system such as a robot according to the first embodiment. In the present embodiment, as shown in FIG. 1, it is assumed that a master station and a plurality of slave stations are connected in order from the upper level to the lower level to constitute a system. As will be described later, the communication means provided in the master station and the plurality of slave stations are connected by a single bus line which is a common bus line. Note that a slave station close to the master station when viewed from any slave station is called an upper station, and a slave station far from the master station is called a lower station.

親局200は、子局A〜子局Cに対してモータ制御情報を送信する。親局200には、子局の上位局接続コネクタ201が備えられており、最上位の子局となる子局Aの上位局接続コネクタ211と接続されている。   The master station 200 transmits motor control information to the slave stations A to C. The parent station 200 is provided with a higher-level station connection connector 201 of a child station, and is connected to a higher-level station connection connector 211 of a child station A that is the highest-level child station.

子局A、B、Cのそれぞれは、ロボットシステムの構成要素である関節モジュールである。子局A、B、Cには、上位局接続コネクタ211〜231と下位局接続コネクタ212〜232が備えられており、これらを介して上位局と下位局とに接続される。   Each of the slave stations A, B, and C is a joint module that is a component of the robot system. The slave stations A, B, and C are provided with upper station connection connectors 211 to 231 and lower station connection connectors 212 to 232, and are connected to the upper station and the lower station via these.

子局A、B、Cには、関節を曲げるためのモータ213、223、233と、関節の曲げ角度を検出するための角度センサ214、224、234が接続される。   The slave stations A, B, and C are connected to motors 213, 223, and 233 for bending the joints and angle sensors 214, 224, and 234 for detecting the bending angles of the joints.

親局200の送信するモータ制御情報には、例えばモータ213、223、233に印加する電圧値が含まれる。子局A、B、Cは、受信したモータ制御情報に基づいてモータ213、223、233を駆動する。また、子局A、B、は、それぞれ角度センサ214、224、234から関節の曲げ角度を取得し、角度情報として親局200に送信する。親局200は、受信した角度情報に応じて次のモータ制御情報を生成する。本実施形態では、このような通信、及びモータ制御を一定周期毎に行うことで、システム全体のフィードバック制御を行う。   The motor control information transmitted from the master station 200 includes voltage values to be applied to the motors 213, 223, and 233, for example. The slave stations A, B, and C drive the motors 213, 223, and 233 based on the received motor control information. Further, the slave stations A and B acquire joint bending angles from the angle sensors 214, 224, and 234, respectively, and transmit them to the master station 200 as angle information. The master station 200 generates the next motor control information according to the received angle information. In this embodiment, feedback control of the entire system is performed by performing such communication and motor control at regular intervals.

図2は、端局間の通信に使用されるフレーム構成の一例を示す図である。本実施形態では、TDMA(Time Division Multiple Access:時分割多元接続)方式により、局間で時分割通信が行われる。図2に示すように、一定時間長のフレーム内は一定時間幅のM個のタイムスロット0〜M−1に区切られている。フレーム先頭のタイムスロット0では、親局200から子局A、B、Cに対して当該フレームのスロット情報が送信される。ここでいうスロット情報とは、どの端局がどのタイムスロットに割り当てられデータの送受信を行うかを示す情報である。本実施形態では、例えば、スロット情報として図3に示す情報が送信される。図3の例では、タイムスロット1〜3は、親局200から子局A、B、Cへのモータ制御情報送信用に割り当てられている。そして、タイムスロット4〜6のそれぞれは、子局A、B、Cから親局200への角度情報の送信用に割り当てられている。また、他のタイムスロットは通信の行われない空きスロットとなっている。   FIG. 2 is a diagram illustrating an example of a frame configuration used for communication between terminal stations. In this embodiment, time division communication is performed between stations by a TDMA (Time Division Multiple Access) method. As shown in FIG. 2, a frame having a certain time length is divided into M time slots 0 to M-1 having a certain time width. In time slot 0 at the beginning of the frame, slot information of the frame is transmitted from the master station 200 to the slave stations A, B, and C. The slot information here is information indicating which terminal station is assigned to which time slot and performs data transmission / reception. In the present embodiment, for example, information shown in FIG. 3 is transmitted as slot information. In the example of FIG. 3, time slots 1 to 3 are allocated for transmitting motor control information from the master station 200 to the slave stations A, B, and C. Each of the time slots 4 to 6 is assigned to transmit angle information from the slave stations A, B, and C to the master station 200. Other time slots are empty slots in which communication is not performed.

図4は、本実施例の親局200の内部構成を示す図である。モータ制御情報生成部501は、システム動作に応じたモータ制御情報を生成する。また、システム動作時に子局A、B、Cから送信される角度情報に応じて、次のモータ制御情報を生成する。   FIG. 4 is a diagram illustrating an internal configuration of the master station 200 of the present embodiment. The motor control information generation unit 501 generates motor control information corresponding to the system operation. Further, the next motor control information is generated according to the angle information transmitted from the slave stations A, B, and C during the system operation.

挿抜指示情報生成部502は、新規の子局をシステムに挿入する場合に、新規となる子局に隣接する上位局に対して送信する挿入指示情報を生成する。例えば、これまでの子局Cまでの構成に子局Dを挿入する場合、新規の子局に隣接する上位の子局Cに対して送信するための挿入指示情報を生成する。また、子局をシステムの構成から抜去する場合には、抜去する子局に隣接する上位局に対して送信する抜去指示情報を親局200の挿抜指示情報生成部502が生成する。例えば、これまでの子局Cまでの構成から子局Cを抜去する場合、子局Cに隣接する上位の子局Bに送信するための抜去指示情報を親局200の挿抜指示情報生成部502が生成する。   The insertion / extraction instruction information generation unit 502 generates insertion instruction information to be transmitted to an upper station adjacent to a new child station when a new child station is inserted into the system. For example, when the slave station D is inserted into the configuration up to the slave station C so far, insertion instruction information to be transmitted to the upper slave station C adjacent to the new slave station is generated. When the slave station is removed from the system configuration, the removal instruction information generation unit 502 of the parent station 200 generates removal instruction information to be transmitted to the upper station adjacent to the child station to be removed. For example, when the slave station C is removed from the configuration up to the slave station C so far, the removal instruction information generation unit 502 of the master station 200 provides the removal instruction information to be transmitted to the upper slave station B adjacent to the slave station C. Produces.

スロット情報生成部503は、前述のスロット情報を生成する。スロット情報生成部503は、挿抜指示情報生成部502から挿入指示情報または抜去指示情報が入力された場合、前フレームで空きスロットであったタイムスロットを使用して、挿入指示情報または抜去指示情報が送信されるようスロット情報を生成する。   The slot information generation unit 503 generates the aforementioned slot information. When the insertion instruction information or the extraction instruction information is input from the insertion / extraction instruction information generation unit 502, the slot information generation unit 503 uses the time slot that was an empty slot in the previous frame to insert the insertion instruction information or the extraction instruction information. Generate slot information to be transmitted.

図5は、図1に示すシステムの子局Cまでの構成に新規の子局Dを挿入する場合のスロット情報の一例を示す。子局Dの挿入時には、図3に示したように前フレームで空きスロットであったタイムスロット7を利用して、親局200から子局Cに挿入指示情報が送信されるようにタイムスロットが割り当てられる。   FIG. 5 shows an example of slot information when a new slave station D is inserted into the configuration up to the slave station C in the system shown in FIG. When the slave station D is inserted, the time slot is set so that the insertion instruction information is transmitted from the master station 200 to the slave station C using the time slot 7 that was an empty slot in the previous frame as shown in FIG. Assigned.

また、図6は、図1に示すシステムの子局Cまでの構成から子局Cを抜去する場合のスロット情報の一例である。子局Cの抜去時には、図3に示したように前フレームで空きスロットであったタイムスロット7を利用して、親局200から子局Bに抜去指示情報が送信されるようにタイムスロットが割り当てられる。なお、挿入指示情報及び抜去指示情報を送信するために割り当てられるタイムスロットは、タイムスロット7に限定されるものでなく、空きスロット内であればどのタイムスロットでもよい。   FIG. 6 is an example of slot information when the slave station C is removed from the configuration up to the slave station C in the system shown in FIG. When the slave station C is extracted, the time slot is set so that the extraction instruction information is transmitted from the master station 200 to the slave station B using the time slot 7 that was an empty slot in the previous frame as shown in FIG. Assigned. Note that the time slot allocated to transmit the insertion instruction information and the extraction instruction information is not limited to the time slot 7 and may be any time slot as long as it is in an empty slot.

送受信タイミング制御部504は、スロット情報生成部503から入力されるスロット情報に基づき、通信部505の通信タイミングを制御する。また、通信部505は、送受信タイミング制御部504の制御に基づき、モータ制御情報、挿入指示情報または抜去指示情報、スロット情報を通信信号に変換し、子局A、B、Cに送信する。また、子局A、B、Cから送信される角度情報を受信する。   The transmission / reception timing control unit 504 controls the communication timing of the communication unit 505 based on the slot information input from the slot information generation unit 503. Further, the communication unit 505 converts the motor control information, insertion instruction information or removal instruction information, and slot information into communication signals based on the control of the transmission / reception timing control unit 504, and transmits the communication signals to the slave stations A, B, and C. In addition, angle information transmitted from the slave stations A, B, and C is received.

図4に示すように、親局200は、子局接続コネクタ506を介して子局Aと接続されている。子局接続コネクタ506は、通信部505と接続されており、親局200と子局が接続された場合、親局200の通信部505と子局の通信部は、単一のバスラインで接続される構成となっている。なお、終端器507は、バスラインの親局側終端を行っている。   As shown in FIG. 4, the master station 200 is connected to the slave station A via a slave station connection connector 506. The slave station connection connector 506 is connected to the communication unit 505. When the master station 200 and the slave station are connected, the communication unit 505 of the master station 200 and the communication unit of the slave station are connected by a single bus line. It becomes the composition which is done. The terminator 507 performs termination on the master station side of the bus line.

本実施形態の子局の説明を行う。図7は、子局Aの内部の機能構成を示す図である。スロット情報記憶部101は、親局200から受信したスロット情報を記憶し、送受信タイミング制御部102とスイッチタイミング制御部109にスロット情報を出力する。なお、親局200からスロット情報が受信されない場合、すなわち子局Aがバスラインに接続されていない場合には、スロット情報記憶部101はスロット情報の出力を停止する。   The slave station of this embodiment will be described. FIG. 7 is a diagram showing a functional configuration inside the slave station A. As shown in FIG. The slot information storage unit 101 stores the slot information received from the master station 200, and outputs the slot information to the transmission / reception timing control unit 102 and the switch timing control unit 109. When slot information is not received from the master station 200, that is, when the slave station A is not connected to the bus line, the slot information storage unit 101 stops outputting slot information.

送受信タイミング制御部102は、スロット情報記憶部101から入力されるスロット情報に基づいて、子局通信のための通信部103の通信タイミングを制御する。通信部103は、送受信タイミング制御部102の制御に基づいて親局200への角度情報の送信や、親局200から送信されるモータ制御情報、挿入指示情報、抜去指示情報、スロット情報などを受信する。モータ駆動部104は、親局200から送信されるモータ制御情報に基づき、外部に接続されたモータを駆動する。角度情報生成部105は、外部に接続された角度センサからの曲げ角度を取得し、角度情報を生成する。   The transmission / reception timing control unit 102 controls the communication timing of the communication unit 103 for slave station communication based on the slot information input from the slot information storage unit 101. The communication unit 103 receives angle information transmission to the master station 200 based on control of the transmission / reception timing control unit 102, and receives motor control information, insertion instruction information, removal instruction information, slot information, etc. transmitted from the parent station 200. To do. The motor drive unit 104 drives an externally connected motor based on the motor control information transmitted from the master station 200. The angle information generation unit 105 acquires a bending angle from an angle sensor connected to the outside, and generates angle information.

子局Aは、上位局接続コネクタ106を介して親局200に接続され、下位局接続コネクタ107を介して子局Bに接続されている。スイッチ108が、上位局接続コネクタ106と下位局接続コネクタ107とを接続するよう制御されている場合、親局200の通信部505と子局Aと子局Bの通信部103は、単一のバスラインに接続さた状態となる。もし、Aの子局以外に、接続されている子局がない場合には、子局Aが最下位局となり、この場合には、スイッチ108は、バスラインを終端器110に切換えて接続することで、子局側終端を行う。   The slave station A is connected to the master station 200 via the upper station connection connector 106 and is connected to the slave station B via the lower station connection connector 107. When the switch 108 is controlled to connect the upper station connection connector 106 and the lower station connection connector 107, the communication unit 505 of the master station 200 and the communication unit 103 of the slave station A and the slave station B have a single Connected to the bus line. If there is no slave station connected to other than the slave station of A, the slave station A becomes the lowest station. In this case, the switch 108 switches the bus line to the terminator 110 and connects it. In this way, the slave station side termination is performed.

スイッチ108は、スイッチタイミング制御部109から出力される接続制御信号に基づいて上位局接続コネクタ106を、下位局接続コネクタ107と終端器110のいずれか一方に、電気的に接続する。スイッチタイミング制御部109は、親局200から挿入指示情報を受信した場合、図3に示す空きスロットのいずれかのタイミングで上位局接続コネクタ106と下位局接続コネクタ107とが電気的に接続されるようスイッチ108に接続制御信号を出力する。また、親局200から抜去指示情報を受信した場合には、図3に示す空きスロットのいずれかのタイミングで、上位局接続コネクタ106と終端器110とが電気的に接続されるようスイッチ108を制御する。   The switch 108 electrically connects the upper station connection connector 106 to either the lower station connection connector 107 or the terminator 110 based on the connection control signal output from the switch timing control unit 109. When the switch timing control unit 109 receives the insertion instruction information from the master station 200, the upper station connection connector 106 and the lower station connection connector 107 are electrically connected at any timing of the empty slot shown in FIG. A connection control signal is output to the switch 108. Further, when the removal instruction information is received from the master station 200, the switch 108 is set so that the upper station connection connector 106 and the terminator 110 are electrically connected at any timing of the empty slot shown in FIG. Control.

なお、スイッチタイミング制御部109は、スロット情報が入力されず、子局Aがバスラインに接続されていない場合には、上位局接続コネクタ106と終端器110が電気的に接続されるようにスイッチ108を制御する。他の子局B、Cの内部の構成や動作も、子局Aと同様である。従って、子局B、Cの内部の構成や動作の説明は割愛する。   The switch timing control unit 109 switches so that the upper station connection connector 106 and the terminator 110 are electrically connected when no slot information is input and the slave station A is not connected to the bus line. 108 is controlled. The internal configurations and operations of the other slave stations B and C are the same as those of the slave station A. Therefore, the description of the internal configuration and operation of the slave stations B and C is omitted.

次に、子局の挿抜動作について説明する。まず、単一の子局を挿抜する場合の動作について説明する。これは、例えば作業内容の変更に応じて、関節モジュールの変更を行う場合に想定される動作である。   Next, the insertion / extraction operation of the slave station will be described. First, the operation for inserting / removing a single slave station will be described. This is an operation assumed when the joint module is changed in accordance with, for example, a change in work content.

図8は、新規に子局となる子局Dをシステムに挿入する場合の各局の動作フローを示している。本実施形態の挿入動作では、子局Dは所定の位置に配置されており、子局Cをこの位置まで動作させた場合、適切な機械的保持機構(不図示)により子局Cに子局Dが挿入される構成をとる。また一般に、挿入される側の子局のスイッチ108は、必ず終端器110へ接続された状態で、挿入されるものとする。   FIG. 8 shows an operation flow of each station when a slave station D as a new slave station is inserted into the system. In the insertion operation of the present embodiment, the slave station D is arranged at a predetermined position. When the slave station C is moved to this position, the slave station C is connected to the slave station C by an appropriate mechanical holding mechanism (not shown). A configuration is adopted in which D is inserted. In general, it is assumed that the inserted slave station switch 108 is always connected to the terminator 110.

S801で、最下位子局である子局Cに新子局として同機能を有する子局Dを挿入する。このときの挿入は、親局の指示に基づいて外部装置により行われても良いし、またユーザのマニュアルにより行われても良い。そして親局が、子局Dの挿入を検知、またはユーザからその旨を受信する。子局Cのスイッチ108は、上位局接続コネクタ106と終端器110とが電気的に接続されるよう制御される。まだ子局Dは電気的に前記バスラインに接続されない。したがって、まず子局Dのスイッチ108が、上位局接続コネクタ106と終端器110とが電気的に接続されるよう制御される。また、子局Dはバスラインに電気的にまだ接続されないので、子局Dの挿入によるノイズなどの影響がバスラインに発生しない。   In S801, the slave station D having the same function as the new slave station is inserted into the slave station C which is the lowest slave station. The insertion at this time may be performed by an external device based on an instruction from the master station, or may be performed by a user's manual. Then, the master station detects the insertion of the slave station D or receives a notice from the user. The switch 108 of the slave station C is controlled so that the upper station connector 106 and the terminator 110 are electrically connected. The slave station D is not yet electrically connected to the bus line. Therefore, first, the switch 108 of the slave station D is controlled so that the upper station connector 106 and the terminator 110 are electrically connected. Further, since the slave station D is not yet electrically connected to the bus line, the influence of noise or the like due to the insertion of the slave station D does not occur on the bus line.

S802で、親局200は、子局Dの挿入を検知しているので、バスラインに電気的に接続された子局の内、最下位局である子局C230に対して、挿入指示情報を送信する。挿入指示情報は、前述した通り、図5に示すスロットの割り当て情報に基づき送信される。   In S802, since the master station 200 has detected the insertion of the slave station D, the slave station C230, which is electrically connected to the bus line, sends insertion instruction information to the slave station C230, which is the lowest station. Send. As described above, the insertion instruction information is transmitted based on the slot allocation information shown in FIG.

S803で、子局Cが、親局200から挿入指示情報を受信する。S804で、子局Cが、空きスロットのタイミングで、上位局接続コネクタ106と下位局接続コネクタ107とが電気的に接続されるようにスイッチ108を制御する。これにより、子局Dがバスラインに接続される最下位局となる。そして子局Dの挿入により、終端処理を行う子局が子局Cから子局Dに変更され、バスラインの終端処理が正しく行われることとなる。従って、子局Aから子局Dのスイッチ108の状態を見ると、子局Dの最下位局以外の子局では、すべて下位局接続コネクタに接続されている状態となる。   In step S <b> 803, the slave station C receives insertion instruction information from the master station 200. In S804, the slave station C controls the switch 108 so that the upper station connection connector 106 and the lower station connection connector 107 are electrically connected at the timing of the empty slot. As a result, the slave station D becomes the lowest station connected to the bus line. Then, by inserting the slave station D, the slave station that performs the termination process is changed from the slave station C to the slave station D, and the termination process of the bus line is correctly performed. Accordingly, when viewing the state of the switch 108 from the slave station A to the slave station D, the slave stations other than the lowest station of the slave station D are all connected to the lower station connector.

S805で、親局200は、子局Dがバスラインに接続されたことを確認し、動作を終了する。バスラインに接続された子局の確認は、例えば、スイッチ108の切り換え制御を行った子局Cが、その旨を親局200に通知することにより行う。この場合、子局Cがスイッチ108の制御を行った後、親局200への通知を行う。そして、親局200は、子局Cからの通知を受けて子局Dがバスラインに接続されたことを認識する。なお、切り換え制御を行った子局Cから親局200への通知は、割り当てられたタイムスロットを使用するほかに、前フレームで空スロットであったタイムスロットを使用してもよい。   In S805, the master station 200 confirms that the slave station D is connected to the bus line, and ends the operation. Confirmation of the slave station connected to the bus line is performed, for example, when the slave station C that has performed switching control of the switch 108 notifies the master station 200 to that effect. In this case, after the slave station C controls the switch 108, it notifies the master station 200. Then, the master station 200 receives the notification from the slave station C and recognizes that the slave station D is connected to the bus line. The notification from the slave station C that has performed switching control to the master station 200 may use a time slot that was an empty slot in the previous frame, in addition to using the assigned time slot.

これら各局の動作により、子局Dをシステムに挿入する場合、他局の通信が行われない空きスロットのタイミングで、子局Dが電気的に接続される。また、子局Cに代わり最下位となった子局Dにおいて、終端処理が行われることになる。この結果、他局の通信に影響を与えることなく、新規の子局Dをシステムに挿入することが可能となる。   When the slave station D is inserted into the system by the operation of these stations, the slave station D is electrically connected at the timing of an empty slot where communication with other stations is not performed. In addition, termination processing is performed in the slave station D which is the lowest in place of the slave station C. As a result, it is possible to insert a new slave station D into the system without affecting the communication of other stations.

続いて、図1に示すシステムから子局Cを抜去する場合の各局の動作を、図9の動作フロー図を用いて説明する。本実施形態の抜去動作では、子局Cを所定の位置まで移動させた後、適切な機械的保持機構(不図示)により、子局Cと隣接する上位子局である子局Bから抜去するものとする。   Next, the operation of each station when the slave station C is removed from the system shown in FIG. 1 will be described with reference to the operation flowchart of FIG. In the extraction operation of this embodiment, after the slave station C is moved to a predetermined position, the slave station C is extracted from the slave station B that is an upper slave station adjacent to the slave station C by an appropriate mechanical holding mechanism (not shown). Shall.

S901で、親局200は、子局Cに隣接する上位局である子局Bに抜去指示情報を送信する。抜去指示情報は、前述した通り、図6に示すスロットの割り当て情報に基づき送信される。S902で、子局Bは親局200から抜去指示情報を受信する。S903で、子局Bは、図6に示す空きスロット7のタイミングで、スイッチ108を上位局接続コネクタ106と終端器110とが電気的に接続されるよう制御する。これにより、子局Cはバスラインから切断されると同時に、終端処理を行う子局は、子局Cから子局Bに変更され、バスラインの終端処理が正しく行われることになる。S904で、子局Cが子局Bから物理的に抜去される。子局Cの抜去は、親局の指示で外部装置により行われても良いし、ユーザによりマニュアルで行われても良い。   In step S <b> 901, the master station 200 transmits the extraction instruction information to the slave station B that is an upper station adjacent to the slave station C. As described above, the removal instruction information is transmitted based on the slot allocation information shown in FIG. In step S <b> 902, the slave station B receives the extraction instruction information from the master station 200. In S903, the slave station B controls the switch 108 so that the upper station connection connector 106 and the terminator 110 are electrically connected at the timing of the empty slot 7 shown in FIG. As a result, the slave station C is disconnected from the bus line, and at the same time, the slave station that performs the termination process is changed from the slave station C to the slave station B, and the termination process of the bus line is performed correctly. In S904, the slave station C is physically removed from the slave station B. Removal of the slave station C may be performed by an external device according to an instruction from the master station, or may be manually performed by a user.

以上のように、これら各局の動作により、子局Cをシステムから抜去する場合、他局の通信が行われない空きスロットのタイミングで、子局Cが電気的に切断される。そして、バスラインに接続された最下位局となる子局Bにおいて終端処理が行われる。この結果、他局の通信に影響を与えることなく、子局をシステムから抜去することが可能となる。なお、子局Cの抜去後、抜去された子局Cに隣接する上位の子局Bが、その旨を親局200に通知するようにしてもよい。   As described above, when the slave station C is removed from the system by the operation of each station, the slave station C is electrically disconnected at the timing of an empty slot where communication with other stations is not performed. Then, termination processing is performed in the slave station B which is the lowest station connected to the bus line. As a result, the slave station can be removed from the system without affecting the communication of other stations. Note that after the slave station C is removed, the upper slave station B adjacent to the removed slave station C may notify the master station 200 to that effect.

以下に、複数の子局を同時に挿抜する場合の動作について説明する。これは、例えば図10に示すように、子局Dと子局Eとを組み合わせたものを一つのロボットハンドとして用意し、これを作業内容に応じてシステムに挿抜することを想定する。この場合の動作も、図8と図9に示した動作フローの通り行われる。   The operation when a plurality of slave stations are simultaneously inserted and removed will be described below. For example, as shown in FIG. 10, it is assumed that a combination of a slave station D and a slave station E is prepared as one robot hand, and this is inserted into and removed from the system according to the work contents. The operation in this case is also performed according to the operation flow shown in FIGS.

まず、子局Dと子局Eをシステムに挿入する場合の動作を説明する。S901で、親局は、外部より最下位局である子局Cに、子局Dと子局Eを追加する指示を受ける。そして、例えば親局の指示で、外部装置により最下位局である子局Cに子局Dと子局Eが物理的に挿入される。ここで、子局Dと子局Eのスイッチ108は、バスラインに接続されていない状態にある。つまり、子局Dと子局Eのスイッチ108の各々は、共に終端器110に接続された状態にある。以下に示すステップで、上位局接続コネクタ106と終端器110とが電気的に接続されるように制御される。   First, the operation when the slave station D and the slave station E are inserted into the system will be described. In S901, the master station receives an instruction to add the slave station D and the slave station E to the slave station C that is the lowest station from the outside. For example, the slave station D and the slave station E are physically inserted into the slave station C, which is the lowest station, by an external device in accordance with an instruction from the master station. Here, the switches 108 of the slave station D and the slave station E are not connected to the bus line. That is, the switches 108 of the slave station D and the slave station E are both connected to the terminator 110. In the following steps, control is performed so that the upper station connector 106 and the terminator 110 are electrically connected.

S902で、親局200は、バスラインに電気的に接続された子局の内、最下位局である子局Cに対して、挿入指示情報を送信する。S903で、バスラインに電気的に接続された子局の内、最下位局である子局Cは、親局200から挿入指示情報を受信する。S904で、子局Cは、たとえば図5の空きスロット7のタイミングで、スイッチ108を上位局接続コネクタ106と下位局接続コネクタ107とが電気的に接続されるように制御する。これにより、子局Cのスイッチ108が下位局接続コネクタ107に接続され、子局C230のバスラインに子局D1010のバスラインが接続される。また、終端処理を行う子局は、子局Cから子局Dへと変更される。   In S902, the master station 200 transmits insertion instruction information to the slave station C that is the lowest station among the slave stations electrically connected to the bus line. In S903, the slave station C, which is the lowest station among the slave stations electrically connected to the bus line, receives the insertion instruction information from the master station 200. In S904, the slave station C controls the switch 108 so that the upper station connection connector 106 and the lower station connection connector 107 are electrically connected, for example, at the timing of the empty slot 7 in FIG. As a result, the switch 108 of the slave station C is connected to the lower station connection connector 107, and the bus line of the slave station D1010 is connected to the bus line of the slave station C230. Further, the slave station that performs the termination process is changed from the slave station C to the slave station D.

S905で、親局200は、子局Dがバスラインに電気的に接続されたことを確認する。そして、親局200は、子局Eがバスラインに電気的にまだ接続されていないことを確認し、ステップS902に戻り、S902〜S904までのステップの動作が、今度は子局Dに対して行われる。これにより、子局Eのバスラインと子局Dのバスラインとが接続され、子局Eで終端処理が行われる。S905で、親局200は、子局Dと子局Eがバスラインに電気的に接続されたことを確認し、動作を終了する。   In S905, the master station 200 confirms that the slave station D is electrically connected to the bus line. Then, the master station 200 confirms that the slave station E is not yet electrically connected to the bus line, returns to step S902, and the operations in steps S902 to S904 are now performed for the slave station D. Done. Thereby, the bus line of the slave station E and the bus line of the slave station D are connected, and the termination process is performed in the slave station E. In S905, the master station 200 confirms that the slave station D and the slave station E are electrically connected to the bus line, and ends the operation.

以上のように、複数の新規子局を同時にシステムに挿入する場合においても、他局の通信が行われない空きスロットのタイミングを用いて、新規の子局が電気的に接続される。また、子局Cに代わり、最下位局Eにおいて終端処理が行われる。この結果、他局の通信に影響を与えることなく、複数の新規子局を同時にシステムに挿入することが可能となることがわかる。   As described above, even when a plurality of new slave stations are inserted into the system at the same time, the new slave stations are electrically connected using the timings of the empty slots where communication with other stations is not performed. Further, termination processing is performed in the lowest station E instead of the slave station C. As a result, it can be seen that a plurality of new slave stations can be simultaneously inserted into the system without affecting the communication of other stations.

続いて、この状態から子局Dと子局Eをシステムから同時に抜去する場合の動作を説明する。複数の子局の抜去時には、親局200は抜去する複数子局の中から、最も上位の子局、子局Dを選択する。図9に示した、子局Dと子局Eの抜去のフローにしたがって説明する。   Next, the operation when the slave station D and the slave station E are simultaneously removed from the system will be described. At the time of extracting a plurality of slave stations, the master station 200 selects the highest slave station, the slave station D, from the plurality of slave stations to be extracted. A description will be given according to the flow of extracting the slave station D and the slave station E shown in FIG.

S901で、親局200は、子局Dに隣接する上位局である子局Cに抜去指示情報を送信する。S902で、子局Cは、親局200から抜去指示情報を受信する。S903で、子局Cは、たとえば図5の空きスロット7のタイミングで、スイッチ108を上位局接続コネクタ106と終端器110とが電気的に接続されるよう制御する。これにより、バスラインから子局Dと子局Eが切断されることとなる。また、終端処理を行う子局が、子局Eから子局Cに移動する。S904で、子局Dを子局C230から物理的に抜去する。   In step S <b> 901, the master station 200 transmits the extraction instruction information to the slave station C that is an upper station adjacent to the slave station D. In step S <b> 902, the slave station C receives the extraction instruction information from the master station 200. In S903, the slave station C controls the switch 108 so that the upper station connector 106 and the terminator 110 are electrically connected, for example, at the timing of the empty slot 7 in FIG. As a result, the slave station D and the slave station E are disconnected from the bus line. In addition, the slave station that performs the termination process moves from the slave station E to the slave station C. In S904, the slave station D is physically removed from the slave station C230.

以上のように、複数の子局を同時にシステムから抜去する場合においても、他局の通信が行われない空きスロットのタイミングで、子局が電気的に切断される。また、子局Eに代わり、最下位局となる子局Cにおいて終端処理が行われることとなる。この結果、他局の通信に影響を与えることなく、複数子局を同時にシステムから抜去することが可能となることがわかる。   As described above, even when a plurality of slave stations are removed from the system at the same time, the slave stations are electrically disconnected at the timing of an empty slot where communication with other stations is not performed. Further, in place of the slave station E, the termination process is performed in the slave station C which is the lowest station. As a result, it is understood that a plurality of slave stations can be removed from the system at the same time without affecting the communication of other stations.

以上に説明したように、実施形態1の構成をとることで、システムを動作させながら他の子局の通信に対して影響を与えることなく、システムから子局の活線挿抜を行うことが可能となる。これにより、子局であるそれぞれの関節モジュールを自律的に組み替えることが可能な、安全性および生産性の高いロボットシステムを実現することができる。   As described above, by adopting the configuration of the first embodiment, it is possible to perform hot-swapping of a slave station from the system without affecting the communication of other slave stations while operating the system. It becomes. As a result, it is possible to realize a highly safe and productive robot system that can autonomously recombine each joint module as a slave station.

<実施形態2>
実施形態2では、システム動作中に、例えばユーザが、システムを介さずに子局を物理的に挿抜を行った場合や、故障等により子局に機能が損なわれてしまった場合にでも、他の子局の通信を安定的に行うことが可能なことを説明する。これにより、システムの予期しないタイミングで子局の挿抜が行われた場合においても、誤動作が発生しない安全性の高いロボットシステムを実現できる。
<Embodiment 2>
In the second embodiment, even when the user physically inserts or removes the slave station without going through the system or when the function of the slave station is impaired due to a failure or the like during the system operation, Explain that it is possible to stably perform communication of the slave stations. Thereby, even when a slave station is inserted and removed at an unexpected timing of the system, it is possible to realize a highly safe robot system that does not cause a malfunction.

図11は、本実施形態における子局の内部機能の構成を示している。実施形態1の子局の内部構成を示すブロックには、図1と同じ符号を付し、そのブロックの説明を割愛する。図11に示すように、挿抜検出部1101は、下位局接続コネクタ107と下位局のコネクタの接続状態を検出するためのものである。挿抜検出部1101は、下位局が挿入されて自局と下位局の通信ラインとが電気的に接続されることにより、下位局の挿入を検出する。また、逆に下位局接続コネクタ107から下位局が抜去されると、自局と下位局の通信ラインが電気的に切断される前に、コネクタの機械的な状態を電気的にモニターすることで下位局の抜去を検出する。そして、挿抜検出部1101は、挿入検出時には挿入検出信号を、抜去検出時には抜去検出信号をスイッチタイミング制御部1102に出力する。   FIG. 11 shows the configuration of the internal functions of the slave station in this embodiment. The same reference numerals as those in FIG. 1 are attached to blocks indicating the internal configuration of the slave station of the first embodiment, and the description of the blocks is omitted. As shown in FIG. 11, the insertion / extraction detection unit 1101 is for detecting the connection state between the lower station connector 107 and the lower station connector. The insertion / removal detection unit 1101 detects the insertion of the lower station by inserting the lower station and electrically connecting the own station and the communication line of the lower station. Conversely, when a lower station is removed from the lower station connection connector 107, the mechanical state of the connector is electrically monitored before the communication line between the own station and the lower station is electrically disconnected. Detects removal of subordinate stations. Then, the insertion / extraction detection unit 1101 outputs an insertion detection signal to the switch timing control unit 1102 at the time of detection of insertion and an extraction detection signal at the time of detection of extraction.

図12に、以上の挿抜検出を可能とする、上位局接続コネクタ106、下位局接続コネクタ107および挿抜検出部1101の構成が示されている。   FIG. 12 shows the configurations of the upper station connection connector 106, the lower station connection connector 107, and the insertion / extraction detection unit 1101 that enable the above insertion / extraction detection.

図12で、雄ピン1201、1202は、下位局接続コネクタ107に備えられた通信ライン接続用のピンである。雄ピン1201、1202は、信号線1203、1204を介して、スイッチ108に接続されている。雄ピン1205、1206は、下位局接続コネクタ107に備えられた挿抜検出用のピンである。雄ピン1205、1206は、信号線1207、1208を介して、挿抜検出部1101に接続されている。   In FIG. 12, male pins 1201 and 1202 are communication line connection pins provided in the lower station connection connector 107. The male pins 1201 and 1202 are connected to the switch 108 via signal lines 1203 and 1204. Male pins 1205 and 1206 are insertion / extraction detection pins provided in the lower-level station connection connector 107. The male pins 1205 and 1206 are connected to the insertion / extraction detection unit 1101 through signal lines 1207 and 1208.

雌ピン1209、1210は、上位局接続コネクタ106に備えられた通信ライン接続用のピンである。雌ピン1209、1210は、信号線1211、1212を介して、スイッチ108と通信部103に接続されている。雌ピン1213、1214は、上位局接続コネクタ106に備えられた挿抜検出用のピンである。雌ピン1213、1214は、信号線1215を介して接続されている。   Female pins 1209 and 1210 are communication line connection pins provided in the upper station connection connector 106. The female pins 1209 and 1210 are connected to the switch 108 and the communication unit 103 via signal lines 1211 and 1212. The female pins 1213 and 1214 are insertion / extraction detection pins provided in the upper station connector 106. Female pins 1213 and 1214 are connected via a signal line 1215.

挿抜検出部1101は、信号線1207と信号線1208とが短絡状態である場合に、スイッチタイミング制御部1102に挿入検出信号を出力する。また、信号線1207と信号線1208とが開放状態である場合に、スイッチタイミング制御部1102に抜去検出信号を出力する。   The insertion / extraction detection unit 1101 outputs an insertion detection signal to the switch timing control unit 1102 when the signal line 1207 and the signal line 1208 are in a short circuit state. Further, when the signal line 1207 and the signal line 1208 are in an open state, an extraction detection signal is output to the switch timing control unit 1102.

ここで、図12に示すように、通信ライン接続用の雄ピン1201、1202の長さは、挿抜検出用の雄ピン1205、1206より長く設定されている。このように設定することにより、下位局接続コネクタ107に上位局接続コネクタ106が挿入される場合、上位局と下位局の通信ラインが接続した後に、信号線1207と信号線1208は短絡される。一方、下位局接続コネクタ107から上位局接続コネクタ106が抜去される場合、上位局と下位局の通信ラインが切断される前に、信号線1207と信号線1208は開放状態となる。この結果、挿抜検出部1101は、下位局が挿入される場合、自局と下位局の通信ラインが電気的に接続した後、挿入検出信号を出力することができる。また、挿抜検出部1101は、下位局が抜去される場合、自局と下位局の通信ラインが電気的に切断される前に、抜去検出信号を出力することができる。   Here, as shown in FIG. 12, the lengths of the male pins 1201 and 1202 for connecting the communication line are set longer than the male pins 1205 and 1206 for detecting insertion / removal. With this setting, when the upper station connection connector 106 is inserted into the lower station connection connector 107, the signal line 1207 and the signal line 1208 are short-circuited after the communication lines of the upper station and the lower station are connected. On the other hand, when the higher station connection connector 106 is removed from the lower station connection connector 107, the signal line 1207 and the signal line 1208 are opened before the communication line between the upper station and the lower station is disconnected. As a result, when a lower station is inserted, the insertion / extraction detection unit 1101 can output an insertion detection signal after the communication lines of the own station and the lower station are electrically connected. Further, when the lower station is removed, the insertion / removal detection unit 1101 can output the removal detection signal before the communication line between the own station and the lower station is electrically disconnected.

次に図11に戻ると、スイッチタイミング制御部1102は、実施形態1の動作に加え、挿抜検出部1101からの入力に応じて、スイッチ108の制御を行う。スイッチタイミング制御部1102は、挿抜検出部1101から挿入検出信号が入力された場合、親局200から挿入指示情報を受信した場合と同様にスイッチ108を制御する。また、挿抜検出部1101から抜去検出信号が入力された場合、親局200から抜去指示情報を受信した場合と同様にスイッチ108を制御する。なお、実施形態1と同様にスロット情報記憶部101からスロット情報が入力されない場合、スイッチタイミング制御部1102は、上位局接続コネクタ106と終端器110とが電気的に接続されるようスイッチ108を制御する。   Next, returning to FIG. 11, the switch timing control unit 1102 controls the switch 108 in accordance with the input from the insertion / extraction detection unit 1101 in addition to the operation of the first exemplary embodiment. When the insertion detection signal is input from the insertion / extraction detection unit 1101, the switch timing control unit 1102 controls the switch 108 in the same manner as when the insertion instruction information is received from the master station 200. When a removal detection signal is input from the insertion / removal detection unit 1101, the switch 108 is controlled in the same manner as when removal instruction information is received from the master station 200. As in the first embodiment, when no slot information is input from the slot information storage unit 101, the switch timing control unit 1102 controls the switch 108 so that the upper station connection connector 106 and the terminator 110 are electrically connected. To do.

次に、図10に示すシステムの構成において、挿抜検出部1101の挿抜検出により、スイッチ108の制御が行われる場合の動作について説明する。これは、例えば、ユーザが子局の挿抜を行った場合や、故障等により子局が外れてしまった場合などに、システムが予期しないタイミングで子局の挿抜が行われた場合の動作に該当する。   Next, the operation when the switch 108 is controlled by the insertion / extraction detection of the insertion / extraction detection unit 1101 in the system configuration shown in FIG. 10 will be described. This corresponds to the operation when the slave station is inserted / removed at an unexpected timing when the system inserts / removes the slave station or when the slave station is disconnected due to a failure or the like. To do.

まず、親局200から子局A,B,Cまでが接続されたシステムに、子局Dと子局Eを同時に挿入する場合について説明する。子局Dと子局Eは、挿入前には、スロット情報記憶部101からスロット情報が入力されない。このため、子局Dと子局Eのスイッチ108は、上位局接続コネクタ106と終端器110とを電気的に接続するよう制御されている。   First, a case where the slave station D and the slave station E are simultaneously inserted into a system in which the master station 200 to the slave stations A, B, and C are connected will be described. The slave station D and the slave station E do not receive slot information from the slot information storage unit 101 before insertion. For this reason, the switches 108 of the slave station D and the slave station E are controlled so as to electrically connect the upper station connection connector 106 and the terminator 110.

そして、子局Dが子局Cに挿入されると、子局Cの挿抜検出部1101は、挿入検出信号をスイッチタイミング制御部1102に出力する。この後、子局Cのスイッチ108は、空きスロットのタイミングで、上位局接続コネクタ106と下位局接続コネクタ107とを電気的に接続するように制御される。これにより、子局Dはバスラインに電気的に接続され、親局200からスロット情報を受信できるようになる。   When the slave station D is inserted into the slave station C, the insertion / extraction detection unit 1101 of the slave station C outputs an insertion detection signal to the switch timing control unit 1102. Thereafter, the switch 108 of the slave station C is controlled to electrically connect the upper station connection connector 106 and the lower station connection connector 107 at the timing of the empty slot. As a result, the slave station D is electrically connected to the bus line and can receive slot information from the master station 200.

子局Dには子局Eが挿入されている。従って、子局Dのスイッチタイミング制御部1102には、挿抜検出部1101から挿入検出信号が入力された状態にある。このため、子局Dのスイッチタイミング制御部1102は、スロット情報が入力されると、例えば図5の空きスロット7のタイミングで、上位局接続コネクタ106と下位局接続コネクタ107とが電気的に接続されるようにスイッチ108を制御する。この結果、子局E1020がバスラインに電気的に接続され、子局Dと子局Eの挿入動作が完了する。   A slave station E is inserted in the slave station D. Therefore, the switch timing control unit 1102 of the slave station D is in a state where an insertion detection signal is input from the insertion / extraction detection unit 1101. Therefore, when the slot information is input to the switch timing control unit 1102 of the slave station D, the upper station connection connector 106 and the lower station connection connector 107 are electrically connected, for example, at the timing of the empty slot 7 in FIG. The switch 108 is controlled as described above. As a result, the slave station E1020 is electrically connected to the bus line, and the insertion operation of the slave station D and the slave station E is completed.

続いて、この状態から子局Dと子局Eをシステムから同時に抜去する場合の動作について説明する。子局Dを子局Cから抜去する場合、子局間の電気的接続が切断される前に、子局Cの挿抜検出部1101からスイッチタイミング制御部1102に抜去検出信号が出力される。そして、子局Cのスイッチタイミング制御部1102は、空きスロット7のタイミングで、上位局接続コネクタ106と終端器110とを電気的に接続するようスイッチ108を制御する。なお、ここで、スイッチタイミング制御部1102は、抜去検出信号が入力されてから、子局Cの下位局接続コネクタ107と子局D1010の上位局接続コネクタ106との電気的接続が切断されるまでにスイッチ108の制御を完了しなければならない。すなわち、抜去検出信号が入力されてから電気的接続が切断されるまでの間に空きスロットが存在する必要があるが、これに対してはフレームの時間長を十分短く(例えば、1msec等)に設定すれば、実用上、問題無く動作させることが可能である。   Next, the operation when the slave station D and the slave station E are simultaneously removed from the system will be described. When the slave station D is removed from the slave station C, an extraction detection signal is output from the insertion / extraction detection unit 1101 of the slave station C to the switch timing control unit 1102 before the electrical connection between the slave stations is disconnected. Then, the switch timing control unit 1102 of the slave station C controls the switch 108 to electrically connect the upper station connection connector 106 and the terminator 110 at the timing of the empty slot 7. Here, the switch timing control unit 1102 until the disconnection detection signal is input until the electrical connection between the lower station connection connector 107 of the slave station C and the upper station connection connector 106 of the slave station D1010 is disconnected. The control of the switch 108 must be completed. That is, an empty slot needs to exist between the time when the removal detection signal is input and the time when the electrical connection is disconnected. For this, the time length of the frame is made sufficiently short (for example, 1 msec). If it is set, it can be operated practically without any problem.

以上のような実施形態2における各部の動作により、システム動作中に、ユーザが子局の挿抜を行った場合や、故障等により子局が外れてしまった場合においても、挿抜による影響が他の子局の通信に影響することなく、他の子局は安定した通信を行うことができる。したがって、システムの予期しないタイミングで挿抜が行われた場合に、親局がその検知情報を受信し、システム動作の停止コマンドを子局に送信して、安全にシステムを停止させることが可能となる。   By the operation of each part in the second embodiment as described above, even when the user inserts / removes the slave station during the system operation, or when the slave station is disconnected due to a failure or the like, the influence of the insertion / extraction is different. Other slave stations can perform stable communication without affecting the communication of the slave stations. Therefore, when insertion / extraction is performed at an unexpected timing of the system, it becomes possible for the master station to receive the detection information and transmit a system operation stop command to the slave station to safely stop the system. .

なお、実施形態1と2では、各局間をコネクタで直接縦続接続する形態としたが、本発明はこれに限定されるものではない。例えば、各局間をケーブルによって縦続接続する形態、すなわち、複数局をデイジーチェーン状に接続する通信システムに対しても、本発明は適用可能である。   In the first and second embodiments, the stations are directly connected in cascade using connectors, but the present invention is not limited to this. For example, the present invention can also be applied to a configuration in which the stations are connected in cascade by a cable, that is, a communication system in which a plurality of stations are connected in a daisy chain.

Claims (6)

親局と上位から下位に順番に接続された複数の子局との間で送受信を行う通信システムであって、
前記親局は、
前記複数の子局の内、最上位の子局と接続するための子局接続コネクタと、
前記最上位の子局と電気的に接続するバスラインと、
前記バスラインを終端する親局側終端手段と、
前記複数の子局の各々と前記バスラインを通じて通信する通信手段と、
を備え、
前記複数の子局の各々は、
前記バスラインを上位局と接続するための上位局接続コネクタと、
前記バスラインを下位局と接続するための下位局接続コネクタと、
前記バスラインを終端する子局側終端手段と、
前記親局からの指示情報に基づき前記上位局接続コネクタからの前記電気的に接続されたバスラインを前記下位局接続コネクタまたは子局側終端手段に切換えて接続するスイッチ手段と、
を備え、
前記複数の子局の最下位局の前記スイッチ手段は、前記バスラインを前記子局側終端手段に接続した状態にあり、また該最下位局以外の子局のスイッチ手段は、前記バスラインを前記下位局接続コネクタに接続した状態にあって、
前記最下位局に、該子局と同機能を有する新子局を挿入する場合には、前記最下位局の下位局接続コネクタに該新子局の上位局接続コネクタが物理的に接続された後、該最下位局が前記親局から挿入指示を受信し、該最下位局のスイッチ手段が、前記バスラインを前記子局側終端手段から前記下位局接続コネクタへ接続することを特徴とする通信システム。
A communication system that performs transmission and reception between a master station and a plurality of slave stations connected in order from the top to the bottom,
The master station is
Of the plurality of slave stations, a slave station connector for connecting to the top slave station,
A bus line electrically connected to the uppermost slave station;
Master station side termination means for terminating the bus line;
Communication means for communicating with each of the plurality of slave stations through the bus line;
With
Each of the plurality of slave stations is
An upper station connection connector for connecting the bus line to an upper station;
A subordinate station connection connector for connecting the bus line to a subordinate station;
Slave station side termination means for terminating the bus line;
Switch means for switching and connecting the electrically connected bus line from the upper station connection connector to the lower station connection connector or the slave station side termination means based on the instruction information from the parent station;
With
The switch means of the lowest station of the plurality of slave stations is in a state where the bus line is connected to the slave station side termination means, and the switch means of a slave station other than the lowest station is connected to the bus line. In the state connected to the lower station connector,
When a new slave station having the same function as the slave station is inserted into the lowest station, a higher station connection connector of the new slave station is physically connected to a lower station connection connector of the lowest station Thereafter, the lowest station receives an insertion instruction from the master station, and the switch means of the lowest station connects the bus line from the slave station side termination means to the lower station connection connector. Communications system.
前記複数の子局から前記最下位局を抜去する場合には、前記最下位局と隣接する上位子局が前記親局からの抜去指示を受信し、該上位子局のスイッチ手段が前記バスラインを前記下位局接続コネクタから前記子局側終端手段へ接続した後に、該最下位局の上位局接続コネクタが該上位子局の下位局接続コネクタから物理的に抜去されること特徴とする請求項1に記載の通信システム。   When the lowest station is removed from the plurality of slave stations, an upper slave station adjacent to the lowest station receives an removal instruction from the parent station, and the switch means of the higher slave station includes the bus line. The upper station connection connector of the lowest station is physically removed from the lower station connection connector of the upper station after connecting the lower station connection connector to the slave station side termination means. The communication system according to 1. 前記親局の前記通信手段は、前記複数の子局の各々に対して、時分割で前記挿入指示および前記抜去指示を送信するスロットを生成する生成手段を備えることを特徴とする請求項2に記載の通信システム。   The said communication means of the said master station is provided with the production | generation means which produces | generates the slot which transmits the said insertion instruction | indication and the said removal instruction | indication by time division with respect to each of these several slave stations. The communication system described. 親局と上位から下位に順番に接続された複数の子局との間で送受信を行う通信システムであって、
前記親局は、
前記複数の子局の内、最上位の子局と接続するための子局接続コネクタと、
前記最上位の子局と電気的に接続するバスラインと、
前記バスラインを終端する親局側終端手段と、
前記複数の子局の各々と前記バスラインを介して通信する通信手段と、
を備え、
前記複数の子局の各々は、
前記バスラインを上位局と接続するための上位局接続コネクタと、
前記バスラインを下位局と接続するための下位局接続コネクタと、
前記バスラインを終端する子局側終端手段と、
前記下位局接続コネクタと隣接する子局の上位局接続コネクタとの接続状態を検出する検出手段と、
前記検出手段の前記接続状態に従って、前記上位局接続コネクタからの前記バスラインを、前記下位局接続コネクタまたは子局側終端手段に切換えて接続するスイッチ手段と、
を備え、
前記複数の子局において、最下位局の前記スイッチ手段は、前記バスラインを前記子局側終端手段に接続した状態であり、また該最下位局以外の子局のスイッチ手段は、前記バスラインを前記下位局接続コネクタに接続した状態であって、
前記最下位局に、該子局と同機能を有する新子局を挿入する場合に、前記最下位局の検出手段が、下位局接続コネクタに該新子局の上位局接続コネクタが挿入されたことを検出し、該検出に基づいて前記最下位局のスイッチ手段が、前記バスラインを前記子局側終端手段から前記下位局接続コネクタへ接続することを特徴とする通信システム。
A communication system that performs transmission and reception between a master station and a plurality of slave stations connected in order from the top to the bottom,
The master station is
Of the plurality of slave stations, a slave station connector for connecting to the top slave station,
A bus line electrically connected to the uppermost slave station;
Master station side termination means for terminating the bus line;
Communication means for communicating with each of the plurality of slave stations via the bus line;
With
Each of the plurality of slave stations is
An upper station connection connector for connecting the bus line to an upper station;
A subordinate station connection connector for connecting the bus line to a subordinate station;
Slave station side termination means for terminating the bus line;
Detecting means for detecting a connection state between the lower station connection connector and an upper station connection connector of an adjacent slave station;
According to the connection state of the detection means, the bus line from the higher station connection connector, switch means for switching and connecting to the lower station connection connector or the slave station side termination means,
With
In the plurality of slave stations, the switch means of the lowest station is in a state where the bus line is connected to the slave station side termination means, and the switch means of a slave station other than the lowest station is the bus line Is connected to the subordinate station connector,
When a new slave station having the same function as the slave station is inserted into the lowest station, the detection means of the lowest station is inserted into the lower station connection connector of the higher station connection connector of the new slave station. And the switch means of the lowest station connects the bus line from the slave station side termination means to the lower station connection connector based on the detection.
前記複数の子局から前記最下位局が抜去される場合に、前記最下位局と隣接する上位子局の前記検出手段が、前記下位局接続コネクタから前記最下位局の上位局接続コネクタが抜去されたことを検出し、該検出に基づいて該上位子局のスイッチ手段が該前記バスラインを前記下位局接続コネクタから前記子局側終端手段へ接続すること特徴とする請求項4に記載の通信システム。   When the lowest station is removed from the plurality of slave stations, the detection means of the upper slave station adjacent to the lowest station removes the upper station connection connector of the lowest station from the lower station connection connector. 5. The switch according to claim 4, wherein the switching means of the upper slave station connects the bus line from the lower station connection connector to the slave station side termination means based on the detection. Communications system. 前記複数の子局の各々は、更に親局とバスラインを介して通信する子局通信手段を備え、
前記複数の子局のいずれかの前記スイッチ手段が接続を変更した場合に、該複数の子局のいずれかの前記子局通信手段が、その旨を前記親局に通知することを特徴とする請求項5に記載の通信システム。
Each of the plurality of slave stations further includes a slave station communication means for communicating with the master station via a bus line,
When the switch means of any of the plurality of slave stations changes connection, the slave station communication means of any of the plurality of slave stations notifies the master station to that effect. The communication system according to claim 5.
JP2010216100A 2010-09-27 2010-09-27 Communication system Withdrawn JP2012074779A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010216100A JP2012074779A (en) 2010-09-27 2010-09-27 Communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010216100A JP2012074779A (en) 2010-09-27 2010-09-27 Communication system

Publications (1)

Publication Number Publication Date
JP2012074779A true JP2012074779A (en) 2012-04-12

Family

ID=46170572

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010216100A Withdrawn JP2012074779A (en) 2010-09-27 2010-09-27 Communication system

Country Status (1)

Country Link
JP (1) JP2012074779A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014238826A (en) * 2013-06-05 2014-12-18 ザ・ボーイング・カンパニーTheBoeing Company Sensor network using pulse width modulated signals
CN106154875A (en) * 2015-05-27 2016-11-23 宁夏巨能机器人系统有限公司 A kind of communication device for articulated robot and host computer and the means of communication thereof
CN110048865A (en) * 2019-04-23 2019-07-23 深圳市麦格米特控制技术有限公司 A kind of bus data transmission method, device, electronic equipment and storage medium
CN111571620A (en) * 2020-04-24 2020-08-25 库卡机器人(广东)有限公司 Demonstrator connecting device, robot control cabinet and demonstrator interface board

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014238826A (en) * 2013-06-05 2014-12-18 ザ・ボーイング・カンパニーTheBoeing Company Sensor network using pulse width modulated signals
CN106154875A (en) * 2015-05-27 2016-11-23 宁夏巨能机器人系统有限公司 A kind of communication device for articulated robot and host computer and the means of communication thereof
CN106154875B (en) * 2015-05-27 2019-01-01 宁夏巨能机器人系统有限公司 A kind of communication device and its means of communication for articulated robot and host computer
CN110048865A (en) * 2019-04-23 2019-07-23 深圳市麦格米特控制技术有限公司 A kind of bus data transmission method, device, electronic equipment and storage medium
CN111571620A (en) * 2020-04-24 2020-08-25 库卡机器人(广东)有限公司 Demonstrator connecting device, robot control cabinet and demonstrator interface board
CN111571620B (en) * 2020-04-24 2021-06-22 库卡机器人(广东)有限公司 Demonstrator connecting device, robot control cabinet and demonstrator interface board

Similar Documents

Publication Publication Date Title
EP3715976B1 (en) Modular backplane for an industrial controller
US9104190B2 (en) Safety module for an automation device
JP4732865B2 (en) Method and apparatus for operating a network
US11936497B2 (en) Module unit for connecting a data bus subscriber
CN102804699A (en) Method and system for implementing redundant network interface modules in a distributed I/O system
US7596635B2 (en) Method and apparatus for providing redundant I/O adapters in machine and process controllers
CN106059874B (en) Automation device for the redundant control of bus subscribers
JP5142516B2 (en) Serial communication device for motor control
JP2012074779A (en) Communication system
CN101398801A (en) Method and device for expanding internal integrate circuit bus
JP4750905B2 (en) Communication system, test apparatus, and test method
US20240111708A1 (en) Status signal output
CN104808542A (en) Servo drive device
CN107608469A (en) A kind of LVDS high-speed communications backboard
JP5301088B2 (en) Serial communication device for motor control
US20080021573A1 (en) Communication system for flexible use in different application scenarios in automation technology
JP6596239B2 (en) Multiplexing communication device
CN102724144A (en) Self-adaptive gateway device and data transmission method thereof
JP2011211855A (en) Servo control device, and motion control system
JP2009290409A (en) Address setting device, communication unit, communication system and address setting method
US20140068130A1 (en) Information processing apparatus and controlling method
US8972643B2 (en) Field bus network adapter and field bus network subscriber with field bus connections
JP5278013B2 (en) Uninterruptible power supply system
JP2007134906A (en) Monitor control device
TW202144940A (en) Additional base unit, control device, control system and control method

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20131203