JP2008097274A - Communications system for apparatus control - Google Patents

Communications system for apparatus control Download PDF

Info

Publication number
JP2008097274A
JP2008097274A JP2006277734A JP2006277734A JP2008097274A JP 2008097274 A JP2008097274 A JP 2008097274A JP 2006277734 A JP2006277734 A JP 2006277734A JP 2006277734 A JP2006277734 A JP 2006277734A JP 2008097274 A JP2008097274 A JP 2008097274A
Authority
JP
Japan
Prior art keywords
communication
slave station
station
slave
master station
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.)
Pending
Application number
JP2006277734A
Other languages
Japanese (ja)
Inventor
Isayuki Kawamata
功征 川又
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.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
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 Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP2006277734A priority Critical patent/JP2008097274A/en
Publication of JP2008097274A publication Critical patent/JP2008097274A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To allow reconnection of restored slave stations to communication using a simple instruction operation regardless of the number of the restored slave stations, when one or two or more slave stations disconnected from the communication due to a certain cause are restored and go into communication available, and to realize this kind of reconnection functions at low cost. <P>SOLUTION: When a communication target slave station list stored in a first storage means is collated with respective slave station communication states stored in a second storage means, in response to a predetermined reconnection instruction, slave stations which are determined as being in "communication stopped" condition, even though they are communication targets, are specified, and to each of the specified slave stations, communication is restarted via predetermined procedures. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

この発明は、1台の親局と、複数台の子局とを、フィールドバスを介して結び、親局と各子局との間で、データの送受信を行うようにした機器制御用の通信システムに関する。   The present invention relates to device control communication in which one master station and a plurality of slave stations are connected via a field bus, and data is transmitted and received between the master station and each slave station. About the system.

1台の親局と、複数台の子局とを、フィールドバスを介して結び、親局と各子局との間で、データの送受信を行うようにした機器制御用の通信システムは、従来より知られている(例えば、特許文献1参照)。   A communication system for device control in which one master station and a plurality of slave stations are connected via a field bus and data is transmitted / received between the master station and each slave station is conventionally known. (For example, refer to Patent Document 1).

このような機器制御用の通信システムの基本構成図が図10に示されている。同図に示されるように、この通信システムは、1台の親局1と、複数台の子局2−1〜2−5(#1〜#5は子局を特定するための番号である)等々を、フィールドバス3を介して結び、親局1と各子局2−1〜2−5との間で、データの送受信を行うように構成されている。   FIG. 10 shows a basic configuration diagram of such a device control communication system. As shown in the figure, this communication system includes one master station 1 and a plurality of slave stations 2-1 to 2-5 (# 1 to # 5 are numbers for specifying slave stations. ) And the like are connected via the field bus 3, and data is transmitted and received between the master station 1 and each of the slave stations 2-1 to 2-5.

なお、親局1としては、それ自体に機器制御のための処理が組み込まれていて、機器の制御と通信との双方を担う場合と、機器制御のための処理については別の上位装置に組み込まれており、主として通信処理のみを担う場合とが含まれている。同様にして、子局2としても、それ自体に機器制御のための処理が組み込まれていて、機器の制御と通信との双方を担う場合と、機器制御のための処理については別の下位装置に組み込まれており、主として通信処理のみを担う場合とが含まれている。   Note that the master station 1 incorporates processing for device control in itself, and handles both device control and communication, and processing for device control is incorporated in another host device. And the case where only communication processing is mainly performed is included. Similarly, the slave station 2 incorporates processing for device control in itself and takes charge of both device control and communication, and another device for processing for device control. And the case where it mainly handles only communication processing is included.

親局1の内部メモリには、第1の領域と第2の領域とが設けられている。第1の領域には、現在どの子局が通信対象子局とされているかを示す通信対象子局リスト14aが記憶されており、第2の領域には現在各子局が「通信中」、「通信停止」のいずれの状態にあるかを示す子局通信状態リスト14bが記憶されている。   The internal memory of the master station 1 is provided with a first area and a second area. In the first area, a communication target slave station list 14a indicating which slave station is currently set as a communication target slave station is stored, and in the second area, each slave station is currently “in communication”, A slave station communication state list 14b indicating which state is “communication stopped” is stored.

通信システムの起動にあたって、親局1は、予め決められた起動時処理を実行する。すなわち、この起動時処理においては、親局1は、予め内部に記憶されている通信対象子局リスト14aにしたがい、登録されている子局のそれぞれ2−1〜2−5に対して所定の手順を経て通信を開始させ、併せて、親局1に記憶されている子局通信状態リスト14bの該当する子局の内容を、「通信中」と書き替える。   In starting the communication system, the master station 1 executes a predetermined start-up process. That is, in this start-up process, the master station 1 performs a predetermined process on each of the registered slave stations 2-1 to 2-5 in accordance with the communication target slave station list 14a stored in advance. The communication is started through the procedure, and at the same time, the content of the corresponding slave station in the slave station communication state list 14b stored in the master station 1 is rewritten as “in communication”.

通信システムの起動後にあっては、親局1は、予め決められた通常時処理を実行する。この通常時処理においては、親局1は、子局2−1〜2−5を特定する情報(子局のID番号等)を含んだ通信フレーム(コマンド)を子局に対して発行する。このとき、通信対象子局が複数存在する場合には、それらの子局の全てに対して通信フレームを順次に発行する。一方、子局2−1〜2−5の側では、親局1から送られてくる通信フレーム(コマンド)のうち、自局宛のものを選別して取得する。各子局は、自局を特定する情報を含めたレスポンスを親局1に返し、親局1は、その局を特定する情報に基づいて、通信対象の各子局からのレスポンスを取得する。   After the communication system is activated, the master station 1 executes a normal process determined in advance. In this normal processing, the master station 1 issues a communication frame (command) including information (such as a slave station ID number) specifying the slave stations 2-1 to 2-5 to the slave station. At this time, when there are a plurality of communication target slave stations, communication frames are sequentially issued to all of the slave stations. On the other hand, on the side of the slave stations 2-1 to 2-5, the communication frames (commands) sent from the master station 1 are selected and acquired for the own station. Each slave station returns a response including information identifying its own station to the master station 1, and the master station 1 acquires a response from each slave station to be communicated based on the information identifying the station.

通信システムの起動後にあっては、親局は、通信中の各子局の状態(正常、異常)を監視する。すなわち、親局1は、各子局に対する送信に対して、各子局からのレスポンスが返ってきていること(各子局を特定する情報が含まれている受信データが取得できていること)を監視する。そして、通信対象となる子局からレスポンスが返ってくる限りは、その子局は正常なものと認識する。このとき、子局通信状態リスト14bの該当する子局の内容は、「通信中」に維持される。   After the communication system is activated, the master station monitors the status (normal or abnormal) of each slave station in communication. That is, the master station 1 has returned a response from each slave station in response to transmission to each slave station (received data including information specifying each slave station has been acquired). To monitor. As long as a response is returned from the slave station to be communicated, the slave station is recognized as normal. At this time, the content of the corresponding slave station in the slave station communication state list 14b is maintained as “in communication”.

これに対して、子局の電源遮断や故障等により、この子局からのレスポンスが(例えば、ある一定期間)途絶えた状態が発生すると、親局1は、通信からその子局が離脱した状態であると認識して、規定の処理(例えば、異常時処理等)へと移行し、併せて、親局1に記憶されている子局通信状態リスト14bの該当する子局の内容を、「通信中」から「通信停止」へと書き替える。   On the other hand, if the response from this slave station is interrupted (for example, for a certain period) due to power interruption or failure of the slave station, the master station 1 is in a state where the slave station is disconnected from communication. It recognizes that there is, and shifts to the prescribed processing (for example, processing at the time of abnormality, etc.), and at the same time, the content of the corresponding slave station in the slave station communication state list 14b stored in the master station 1 Rewrite from “Medium” to “Communication Stop”.

このように、通常時処理においては、親局1は、内部メモリに記憶された通信対象子局リスト14aを参照することにより、通信対象として設定された子局のそれぞれに対して、コマンドの送信とレスポンスの受信とを繰り返し実行しつつ、その間に、レスポンスが途絶えたときには、内部メモリに記憶された子局通信状態リスト14bの該当する子局の内容を「通信中」から「通信停止」へと書き替える。   As described above, in the normal processing, the master station 1 transmits a command to each of the slave stations set as communication targets by referring to the communication target slave station list 14a stored in the internal memory. If the response is interrupted during this time, the content of the corresponding slave station in the slave station communication status list 14b stored in the internal memory is changed from “communication” to “communication stop”. And rewrite.

なお、子局を新規加入する場合には、例えば、所定のツールを使用することで、通信対象子局リストへの対象子局としての追加を行ったのち、通信システム全体の起動処理をやり直すこととなる。
特開平6−124104号公報
When newly joining a slave station, for example, by using a predetermined tool, adding the target slave station as a target slave station list to the communication target slave station list, and restarting the activation process of the entire communication system It becomes.
JP-A-6-124104

ところで、電源遮断や故障等により通信から離脱された子局を通信再加入させるについては、従来より幾つかの方式が知られているが、いずれも、一長一短があり、十分な満足が得られていないのが現状である。   By the way, several methods have been known for re-subscribing a slave station that has been disconnected from communication due to power interruption, failure, etc., all of which have merits and demerits and sufficient satisfaction has been obtained. There is no current situation.

第1従来例における子局復帰動作を示す説明図が図11に示されている。この第1従来例にあっては、通信から離脱された子局を通信に再加入させるため専用の仕組みは特に用意されてはいない。したがって、通信から離脱された子局を通信に再加入させるためには、通信システム全体を起動し直す必要がある。   FIG. 11 is an explanatory diagram showing the slave station return operation in the first conventional example. In the first conventional example, there is no special mechanism for re-subscribing the slave station that has been disconnected from the communication. Therefore, in order to re-subscribe the slave station that has been disconnected from the communication, it is necessary to restart the entire communication system.

この第1従来例によれば、通信から離脱された子局を通信に再加入させるため専用の仕組みを有しないことから、その分だけ開発コストを低減させることができる反面、通信から離脱された子局を通信に再加入させるためには、通信システム全体を起動し直す必要から、通信中の子局を一旦全て通信停止させねばならず、システム全体に与える影響が大きく、使い勝手が悪いと言う問題がある。   According to the first conventional example, since there is no dedicated mechanism for re-subscribing the slave station that has been removed from the communication to the communication, the development cost can be reduced by that amount. In order to re-subscribe the slave station to the communication, it is necessary to restart the entire communication system. Therefore, all the slave stations that are in communication must be temporarily stopped, which has a large effect on the entire system and is unusable. There's a problem.

第2従来例における子局復帰動作を示す説明図が図12に示されている。この第2従来例にあっては、通信から離脱された子局を通信に再加入させるために専用の仕組みが用意されている。すなわち、この第2従来例にあっては、通信から離脱された子局に対しては、その後も定期的に、所定のコマンド送信が試みられ、その子局からのレスポンスの有無か監視される。そして、離脱子局に対する定期的な監視により、レスポンスが再び返ってくる状態が検出されれば、自動的にその子局は通信に再加入される。   FIG. 12 is an explanatory diagram showing the slave station return operation in the second conventional example. In the second conventional example, a dedicated mechanism is prepared for re-subscribing the slave station that has been disconnected from the communication. That is, in the second conventional example, a predetermined command transmission is periodically attempted for the slave station that is disconnected from the communication, and the presence or absence of a response from the slave station is monitored. If a state in which a response is returned again is detected by periodic monitoring of the leaving slave station, the slave station is automatically rejoined in communication.

この第2従来例によれば、通信から離脱された子局は、電源投入や故障復旧により通信可能状態となれば、自動的に通信に再加入されるため、利用者からみれば手間がかからず、使い勝手が良好である反面、通信から離脱された子局に対しては、その後も定期的に、所定のコマンド送信を試みつつ、その子局からのレスポンスの有無を監視せねばならないことから、親局側の処理負荷が大きく又開発コストも大きいという問題がある。   According to the second conventional example, a slave station that has been disconnected from communication is automatically re-subscribed in communication if it becomes ready for communication upon power-on or failure recovery. Although it is easy to use, it is necessary to monitor the presence of a response from the slave station while periodically trying to send a predetermined command to the slave station that has left communication. There is a problem that the processing load on the master station side is large and the development cost is also high.

第3従来例における子局復帰動作を示す説明図が図13に示されている。この第3従来例にあっても、通信から離脱された子局を通信に再加入させるために専用の仕組みが用意されている。すなわち、この第3従来例にあっては、各子局のそれぞれ毎に、通信の再加入又は離脱を可能とする手段(子局#1〜#n通信加入手段)が用意されており、それらの手段の1つを外部から選択することで、任意の離脱状態にある子局の通信を個別に再開させることが可能とされている。   FIG. 13 is an explanatory diagram showing the slave station return operation in the third conventional example. Even in the third conventional example, a dedicated mechanism is provided to re-subscribe a slave station that has been disconnected from the communication. That is, in this third conventional example, means (slave station # 1 to #n communication subscription means) that enable re-subscription or withdrawal of communication are prepared for each of the slave stations. By selecting one of the means from the outside, it is possible to individually resume communication of a slave station in an arbitrary disconnected state.

この第3従来例によれば、任意の離脱状態にある子局の通信を個別に再開させることができる点で使い勝手が良好である反面、各子局のそれぞれ毎に、通信の再加入又は離脱を可能とする手段(子局#1〜#n通信加入手段)を用意せねばならないことから、子局の数が8台、16台、・・・64台と言ったように増加すると、開発コストが増大すると言う問題がある。   According to the third conventional example, it is convenient in that communication of a slave station in an arbitrary disconnection state can be individually resumed, but communication rejoining or disconnection for each slave station is possible. If the number of slave stations increases to 8, 64, etc., it will be necessary to develop a means to enable communication (slave station # 1 to #n communication subscription means). There is a problem that the cost increases.

この発明は、上述した従来の問題点に着目してなされたものであり、その目的とするところは、何らかの原因で通信を離脱した1又は2以上の子局が復旧して通信可能な状態となった場合には、復旧した子局の台数に拘わらず、それらの子局を簡単な指令操作で通信に再加入させることができ、しかもそのような再加入機能を低コストに実現することが可能な機器制御用の通信システムを提供することにある。   The present invention has been made paying attention to the above-mentioned conventional problems, and the object of the present invention is to restore a state in which one or more slave stations that have disconnected from communication for some reason are restored and can communicate. In such a case, regardless of the number of slave stations that have been restored, it is possible to re-subscribe those slave stations to communication with a simple command operation, and to realize such a re-subscription function at a low cost. An object is to provide a communication system for device control.

この発明のさらに他の目的並びに作用効果については、明細書の以下の記述を参照することにより、当業者であれば容易に理解されるであろう。   Other objects and operational effects of the present invention will be easily understood by those skilled in the art by referring to the following description of the specification.

上述の課題は、つぎのような構成を有する機器制御用の通信システムにより解決することができる。   The above-described problems can be solved by a device control communication system having the following configuration.

この機器制御用の通信システムは、1台の親局と、複数台の子局とを、フィールドバスを介して結び、親局と各子局との間で、データの送受信を行うように構成されている。   This communication system for device control is configured to connect one master station and a plurality of slave stations via a field bus, and transmit / receive data between the master station and each slave station. Has been.

親局には、現在どの子局が通信対象子局とされているかを示す通信対象子局リストを記憶する第1の記憶手段と、現在各子局が「通信中」、「通信停止」のいずれの状態にあるかを示す子局通信状態リストを記憶する第2の記憶手段と、第1の記憶手段に記憶された通信対象子局リストを参照することにより、通信対象として設定された子局のそれぞれに対して、コマンドの送信とレスポンスの受信とを繰り返し実行しつつ、その間に、レスポンスが途絶えたときには、以後、その子局に対するコマンド送信を停止し、併せて、第2の記憶手段に記憶された子局通信状態リストの該当する子局の内容を「通信中」から「通信停止」へと書き替える通常時処理手段と、が含まれている。   The master station includes a first storage means for storing a list of communication target slave stations indicating which slave station is currently set as a communication target slave station, and each of the slave stations is currently “in communication” and “communication stopped” A child set as a communication target by referring to a second storage means for storing a slave station communication state list indicating in which state and a communication target slave station list stored in the first storage means While the command transmission and the reception of the response are repeatedly performed for each of the stations, when the response is interrupted during that time, the command transmission to the slave station is stopped thereafter, and the second storage means Normal time processing means for rewriting the content of the corresponding slave station in the stored slave station communication status list from “in communication” to “communication stop”.

一方、子局のそれぞれには、親局から送られてくるコマンドのうちで、自局宛のコマンドを受信解読して指示された処理を実行し、併せて、対応するレスポンスを親局へと送信するコマンド処理手段が含まれている。   On the other hand, each of the slave stations receives and decodes the command addressed to the own station from the commands sent from the master station and executes the instructed process, and sends the corresponding response to the master station. Command processing means for transmitting is included.

親局には、さらに、所定の再加入指令が与えられるのに応答して、第1の記憶手段に記憶された通信対象子局リストと第2の記憶手段に記憶された子局通信状態リストとを照合することにより、通信対象とされてはいるものの、「通信停止」状態とされている子局を特定し、それら特定された子局のそれぞれに対して、所定の手順を経て通信を再開させ、併せて、第2の記憶手段に記憶された子局通信状態リストの該当する子局の内容を「通信停止」から「通信中」へと書き替える再加入時処理手段が含まれている。   Further, in response to a predetermined re-subscription command being given to the master station, a communication target slave station list stored in the first storage means and a slave station communication state list stored in the second storage means To identify the slave stations that have been subject to communication but are in a “communication stop” state, and communicate with each of the identified slave stations through a predetermined procedure. And a re-joining processing means for resuming and rewriting the contents of the corresponding slave station in the slave station communication status list stored in the second storage means from “communication stop” to “communication” Yes.

このような構成によれば、第1の記憶手段に記憶された通信対象子局リストには、現在どの子局が通信対象子局とされているかが示されると共に、第2の記憶手段に記憶された子局通信状態リストは、いずれかの子局が通信離脱すれば、その子局に対応して自動的に「通信中」から「通信停止」へと書き替えられる。   According to such a configuration, the communication target slave station list stored in the first storage means indicates which slave station is currently set as the communication target slave station, and is stored in the second storage means. If any of the slave stations is disconnected, the slave station communication status list is automatically rewritten from “during communication” to “communication stop” corresponding to the slave station.

したがって、何らかの原因で通信を離脱した1又は2以上の子局が復旧して通信可能な状態となったときに、親局に対して所定の再加入指令が与えられると、第1の記憶手段に記憶された通信対象子局リストと第2の記憶手段に記憶された子局通信状態リストとを照合することにより、通信対象とされてはいるものの、「通信停止」状態とされている子局が自動的に特定されて、それら特定された子局のそれぞれに対して、所定の手順を経て通信が再開される。   Accordingly, when a predetermined re-join command is given to the master station when one or more slave stations that have disconnected from communication for some reason are restored and ready to communicate, the first storage means The communication target slave station list stored in the second storage means and the slave station communication state list stored in the second storage means are collated to determine whether the communication target is in the “communication stopped” state. Stations are automatically identified, and communication is resumed for each of the identified slave stations through a predetermined procedure.

その結果、復旧した子局の台数に拘わらず、それら復旧した子局の全てを1つの指令操作で一括して通信に再加入させることができるから、使用者の使い勝手が向上する。   As a result, regardless of the number of restored slave stations, all of the restored slave stations can be re-joined to communication in one command operation, thereby improving the user-friendliness.

上記の通信システムにおいては、親局をビルディング・ブロック型PLCの通信親局ユニットとすると共に、かつ各子局のそれぞれを、リモートI/Oユニットやリモート特殊機能ユニット等の各種子局ユニットとしてもよい。   In the above communication system, the master station is a building block PLC communication master station unit, and each slave station is also a various slave station unit such as a remote I / O unit or a remote special function unit. Good.

このような構成によれば、何らかの原因で通信を離脱した1又は2以上の子局ユニットが復旧して通信可能な状態となったときに、通信親局ユニットに対して所定の再加入指令が与えられると、第1の記憶手段に記憶された通信対象子局リストと第2の記憶手段に記憶された子局通信状態リストとを照合することにより、通信対象とされてはいるものの、「通信停止」状態とされている子局ユニットが自動的に特定されて、それら特定された子局ユニットのそれぞれに対して、所定の手順を経て通信が再開される。その結果、復旧した子局の台数に拘わらず、それら復旧した子局ユニットの全てを1つの指令操作で一括して通信に再加入させることができるから、使用者の使い勝手が向上する。   According to such a configuration, when one or two or more slave station units that have disconnected from communication for some reason are restored and ready to communicate, a predetermined rejoin command is issued to the communication master station unit. When given, the communication target slave station list stored in the first storage means and the slave station communication state list stored in the second storage means are collated, but the communication target list is “ The slave station units in the “communication stopped” state are automatically identified, and communication is resumed for each of the identified slave station units through a predetermined procedure. As a result, regardless of the number of restored slave stations, all of the restored slave station units can be re-joined in communication by a single command operation, so that the convenience for the user is improved.

上記の通信システムにおいては、親局をビルディング・ブロック型PLCを構成するユニットの一つとすると共に、さらに、前記再加入指令を、ビルディング・ブロック型PLCを構成するCPUユニットが予めCPUユニット内に格納されているユーザプログラムを実行することにより親局に与えるようにしてもよい。   In the above communication system, the master station is set as one of the units constituting the building block type PLC, and the rejoin command is stored in the CPU unit in advance by the CPU unit constituting the building block type PLC. The user program may be given to the master station by executing it.

このような構成によれば、再加入指令を与えるための条件をユーザプログラムを介して様々に設定することができる。これを利用すれば、例えば、所定の押しボタンスイッチが操作されたとき、各種のセンサ等を介して一定の条件成立が判定されたとき等々に、PLCを構成するユニットの1つである親局に対して、再加入指令を与えることができる。   According to such a configuration, it is possible to set various conditions for giving a rejoin command via the user program. If this is used, for example, when a predetermined push button switch is operated, when it is determined that a certain condition is satisfied through various sensors, etc., the master station which is one of the units constituting the PLC Can be given a re-join command.

本発明を、多軸制御を行なう装置のコントローラとしてのビルディング・ブロック型のプログラマブル・コントローラ(以下、PLCと言う)に適用すると、親局は多軸制御のための機能を備えたモーション・コントロールユニットとして、又子局は、モータドライバとして構成することができる。なお、モーション・コントロールユニットとモータドライバは、フィールドバスを介して接続されている。また、モータドライバは、多軸制御の対象軸毎に設置されているモータを駆動するもので、モータ毎に設置されている。モーション・コントロールユニットは、フィールドバスを介して複数のモータドライバに指令を出し、モータの動作を制御することにより多軸制御を行なうものである。このとき、その装置のメンテナンスや故障修理等の状況下にあっては、子局である複数台のモータドライバは、全て電源が切られて通信離脱状態となっているのが通例である。   When the present invention is applied to a building block type programmable controller (hereinafter referred to as “PLC”) as a controller of an apparatus for performing multi-axis control, the master station has a motion control unit having a function for multi-axis control. The slave station can be configured as a motor driver. The motion control unit and the motor driver are connected via a fieldbus. The motor driver drives a motor installed for each target axis of multi-axis control, and is installed for each motor. The motion control unit performs multi-axis control by issuing commands to a plurality of motor drivers via a field bus and controlling the operation of the motor. At this time, under a situation such as maintenance or repair of the device, it is usual that a plurality of motor drivers as slave stations are all turned off and in a communication disconnected state.

このような状態において、その装置のメンテナンスや故障修理が完了して、各モータドライバに電源が投入され、その状態において、モーション・コントロールユニットに対して、その上位装置であるCPUユニットから所定の再加入指令が与えられると、今まで通信離脱状態にあった一連のモータドライバは全て同時に通信再加入されるから、その装置の制御に供されているモータドライバが、同時に動作可能な状態となり、好都合である。   In such a state, the maintenance and repair of the device are completed, and the power is turned on to each motor driver. In this state, the CPU unit, which is the host device, performs a predetermined restart on the motion control unit. When a join command is given, a series of motor drivers that have been in a disconnected state until now are re-joined at the same time, so that the motor driver that is used to control the device becomes ready to operate at the same time. It is.

また、この機器制御用の通信システムにあっては、通信離脱された子局に関する通信再加入は、親局に対する再加入指令を待って行うものであって、自動的に再加入するものではないから、離脱中の子局の状態を監視する必要もない。したがって、この通信システムにあっては、前述の第2従来例のように、離脱中の子局の監視のために、処理負荷が増大することもない。   Further, in this device control communication system, communication re-subscription for a slave station that has been disconnected is performed after waiting for a re-subscription command to the parent station, and not automatically re-subscription. Therefore, there is no need to monitor the status of the slave station that is leaving. Therefore, in this communication system, unlike the above-described second conventional example, the processing load does not increase due to the monitoring of the slave station that is leaving.

さらに、この機器制御用の通信ユニットにあっては、複数の子局を一括して通信再開させつつも、再加入されるべき子局の指定は、第1の記憶手段に記憶された通信対象子局リストと第2の記憶手段に記憶された子局通信状態リストとを照合することにより、自動的に行われるから、通信再開指令そのものについては通信再加入される子局の数に拘わらず1つで済むこととなり、前述の第3従来例のように、子局の台数に応じて開発コストが増加することもない。   Furthermore, in this communication unit for device control, the designation of the slave station to be re-joined while resuming communication of a plurality of slave stations at the same time is performed by the communication target stored in the first storage means. Since it is automatically performed by collating the slave station list with the slave station communication state list stored in the second storage means, the communication restart command itself is the same regardless of the number of slave stations to be rejoined. One is sufficient, and unlike the third conventional example, the development cost does not increase according to the number of slave stations.

この発明によれば、何らかの原因で通信を離脱した1又は2以上の子局が復旧して通信可能な状態となった場合には、復旧した子局の台数に拘わらず、それらの子局を簡単な指令操作で通信に再加入させることができ、しかもそのような再加入機能を低コストに実現することが可能な機器制御用の通信システムを提供することができる。   According to the present invention, when one or two or more slave stations that have lost communication due to some reason are restored and become communicable, the slave stations are connected regardless of the number of restored slave stations. It is possible to provide a communication system for device control that can re-subscribe to communication by a simple command operation and can realize such a re-subscription function at low cost.

以下に、この発明に係る機器制御用の通信システムの好適な実施の一形態を添付図面を参照しつつ詳細に説明する。   Hereinafter, a preferred embodiment of a communication system for device control according to the present invention will be described in detail with reference to the accompanying drawings.

本発明システムを構成する親局、子局の機能構成図が図1に示されている。同図に示されるように、この通信システムは、1台の親局1と、複数台の子局2−1,2−2,・・・とを、フィールドバス3を介して結び、親局1と各子局2−1,2−2,・・・との間で、データの送受信を行うものである。   FIG. 1 shows a functional configuration diagram of a master station and a slave station constituting the system of the present invention. As shown in the figure, this communication system connects one master station 1 and a plurality of slave stations 2-1, 2-2,... 1 and the slave stations 2-1, 2-2,... Transmit and receive data.

具体的な通信手順の一例としては、図3に示されるように、親局が各子局とのコマンド・レスポンスを順に行う例を挙げることができる。   As an example of a specific communication procedure, as shown in FIG. 3, an example in which the master station sequentially performs a command / response with each slave station can be given.

親局1は、マイクロプロセッサを主体して構成される通信処理演算部11と、上位装置との間で情報のやり取りを行うためのインタフェース部12と、フィールドバス3を介して各子局との間で情報のやり取りを行うための通信インタフェース13と、記憶装置14とを含んでいる。記憶装置14は第1の記憶領域と第2の記憶領域とを有する。第1の記憶領域には、現在どの子局が通信対象子局とされているかを示す通信対象子局リスト14aが記憶されている。第2の記憶領域には、現在各子局が「通信中」、「通信未加入」、「通信停止」のいずれの状態にあるかを示す子局通信状態リストが記憶されている。図示の親局1は、機器制御機能の組み込まれた上位装置からの指令を受けて、主として、子局2との間の通信機能を担うように構成されている。ここで、「通信未加入」の状態とは、通信対象子局とされていない子局の状態を表わしている。なお、「通信未加入」の状態を「通信停止」の状態に含めることにより、子局の状態を「通信中」と「通信停止」の二つの状態にしても良い。   The master station 1 includes a communication processing arithmetic unit 11 mainly composed of a microprocessor, an interface unit 12 for exchanging information with a host device, and each slave station via the field bus 3. A communication interface 13 for exchanging information between them and a storage device 14 are included. The storage device 14 has a first storage area and a second storage area. The first storage area stores a communication target slave station list 14a indicating which slave station is currently set as a communication target slave station. The second storage area stores a slave station communication status list indicating whether each slave station is currently in a “communication”, “not-communication with communication”, or “communication stopped” state. The master station 1 shown in the figure is configured to receive a command from a higher-level device with a built-in device control function and mainly perform a communication function with the slave station 2. Here, the “communication not subscribed” state represents a state of a slave station that is not a communication target slave station. Note that the state of the slave station may be set to two states of “communication” and “communication stop” by including the “communication not subscribed” state in the “communication stop” state.

一方、各子局2−1,2−2,・・・の側には、マイクロプロセッサを主体として構成される子局側処理・演算部21と、その子局に固有なID番号等の子局識別情報を設定するための子局識別設定手段22と、フィールドバス3を介して親局1との間で情報のやり取りを行うための通信インタフェース23とが含まれている。図示の子局2−1,2−2,・・・は、親局1との間の通信機能に加えて、機器制御機能をも担うように構成されている。   On the other hand, on each slave station 2-1, 2-2,..., A slave station side processing / calculation unit 21 mainly composed of a microprocessor and a slave station such as an ID number unique to the slave station A slave station identification setting means 22 for setting identification information and a communication interface 23 for exchanging information with the master station 1 via the field bus 3 are included. The illustrated slave stations 2-1, 2-2,... Are configured to have a device control function in addition to a communication function with the master station 1.

すなわち、各子局2−1,2−2,・・・は、それぞれ自局に割り当てられた機器制御機能を果たすと共に、それらの子局は、同時に、親局を介して、上位装置により統括制御されているのである。   That is, each slave station 2-1, 2-2,... Fulfills the device control function assigned to its own station, and these slave stations are simultaneously supervised by a host device via the master station. It is controlled.

この通信システムの起動にあたって、親局1は、予め決められた起動時処理を実行する。すなわち、この起動時処理においては、親局1は、予め内部に記憶されている通信対象子局リスト14aにしたがい、登録されている子局のそれぞれ2−1,2−2,・・・に対して所定の手順を経て通信を開始させ、併せて、親局1に記憶されている子局通信状態リスト14bの該当する子局の内容を、「通信中」に書き替える。   When the communication system is activated, the master station 1 executes a predetermined activation process. That is, in this start-up process, the master station 1 follows each of the registered slave stations 2-1, 2-2,... According to the communication target slave station list 14a stored therein in advance. On the other hand, communication is started through a predetermined procedure, and at the same time, the content of the corresponding slave station in the slave station communication state list 14b stored in the master station 1 is rewritten to “in communication”.

通信システムの起動後にあっては、親局1は、予め決められた通常時処理を実行する。この通常時処理においては、親局1は、子局2−1,2−2,・・・を特定する情報(子局のID番号等)を含んだ通信フレーム(コマンド)を子局に対して発行する。このとき、通信対象子局が複数存在する場合には、それらの子局の全てに対して通信フレームを順次に発行する。一方、子局2−1〜2−5の側では、親局1から送られてくる通信フレーム(コマンド)のうち、自局宛のものを選別して取得する。各子局は、自局を特定する情報を含めたレスポンスを親局1に返し、親局1は、その局を特定する情報に基づいて、通信対象の各子局からのレスポンスを取得する。   After the communication system is activated, the master station 1 executes a normal process determined in advance. In this normal processing, the master station 1 sends a communication frame (command) including information (slave station ID number, etc.) specifying the slave stations 2-1, 2-2,. Issue. At this time, when there are a plurality of communication target slave stations, communication frames are sequentially issued to all of the slave stations. On the other hand, on the side of the slave stations 2-1 to 2-5, the communication frames (commands) sent from the master station 1 are selected and acquired for the own station. Each slave station returns a response including information identifying its own station to the master station 1, and the master station 1 acquires a response from each slave station to be communicated based on the information identifying the station.

通信システムの起動後にあっては、親局は、通信中の各子局の状態(正常、異常)を監視する。すなわち、親局1は、各子局に対する送信に対して、各子局からのレスポンスが返ってきていること(各子局を特定する情報が含まれている受信データが取得できていること)を監視する。そして、通信対象となる子局からレスポンスが返ってくる限りは、その子局は正常なものと認識する。このとき、子局通信状態リスト14bの該当する子局の内容は、「通信中」に維持される。   After the communication system is activated, the master station monitors the status (normal or abnormal) of each slave station in communication. That is, the master station 1 has returned a response from each slave station in response to transmission to each slave station (received data including information specifying each slave station has been acquired). To monitor. As long as a response is returned from the slave station to be communicated, the slave station is recognized as normal. At this time, the content of the corresponding slave station in the slave station communication state list 14b is maintained as “in communication”.

これに対して、子局の電源遮断や故障等により、この子局からのレスポンスが(例えば、ある一定期間)途絶えた状態が発生すると、親局1は、通信からその子局が離脱した状態であると認識して、規定の処理(例えば、異常時処理等)へと移行し、それ以降、その子局に対する送信処理を中断し、併せて、親局1に記憶されている子局通信状態リスト14bの該当する子局の内容を、「通信中」から「通信停止」へと書き替える。   On the other hand, if the response from this slave station is interrupted (for example, for a certain period) due to power interruption or failure of the slave station, the master station 1 is in a state where the slave station is disconnected from communication. Recognizing that there is a transition to the specified processing (for example, processing at the time of abnormality, etc.), and thereafter, the transmission processing for the slave station is interrupted, and the slave station communication status list stored in the master station 1 The content of the corresponding slave station of 14b is rewritten from “during communication” to “communication stop”.

このように、通常時処理においては、親局1は、内部メモリに記憶された通信対象子局リスト14aを参照することにより、通信対象として設定された子局のそれぞれに対して、コマンドの送信とレスポンスの受信とを繰り返し実行しつつ、その間に、レスポンスが途絶えたときには、内部メモリに記憶された子局通信状態リスト14bの該当する子局の内容を「通信中」から「通信停止」へと書き替える。   As described above, in the normal processing, the master station 1 transmits a command to each of the slave stations set as communication targets by referring to the communication target slave station list 14a stored in the internal memory. If the response is interrupted during this time, the content of the corresponding slave station in the slave station communication status list 14b stored in the internal memory is changed from “communication” to “communication stop”. And rewrite.

なお、子局を新規加入する場合には、例えば、所定のツールを使用することで、通信対象子局リストへの対象子局としての追加を行ったのち、通信システム全体の起動処理をやり直すこととなる。   When newly joining a slave station, for example, by using a predetermined tool, adding the target slave station as a target slave station list to the communication target slave station list, and restarting the activation process of the entire communication system It becomes.

次に、本発明の要部であるところの子局復帰時の処理について説明する。本発明における子局復帰動作(子局再加入動作)を示す説明図が、図2に示されている。   Next, processing when returning to the slave station, which is the main part of the present invention, will be described. FIG. 2 is an explanatory diagram showing a slave station return operation (slave station re-join operation) in the present invention.

同図に示されるように、親局1には、上位装置から所定の再加入指令が与えられるのに応答して、記憶装置14の第1記憶領域(第1の記憶手段)に記憶された通信対象子局リスト14aと第2記憶領域(第2の記憶手段)に記憶された子局通信状態リスト14bとを照合することにより、通信対象とされてはいるものの、「通信停止」状態とされている子局(#5)を特定し、それら特定された子局(#5)のそれぞれに対して、所定の手順を経て通信を再開させ、併せて、第2記憶領域に記憶された子局通信状態リスト14bの該当する子局の内容(#5)を「通信停止」から「通信中」へと書き替える再加入時処理手段が含まれている。   As shown in the figure, the master station 1 is stored in the first storage area (first storage means) of the storage device 14 in response to a predetermined re-join command from the host device. Although the communication target slave station list 14a is collated with the slave station communication state list 14b stored in the second storage area (second storage means), the communication target list is set to the “communication stopped” state. The specified slave station (# 5) is identified, and communication is resumed for each of the identified slave stations (# 5) through a predetermined procedure, and is also stored in the second storage area. Re-submission processing means for rewriting the content (# 5) of the corresponding slave station in the slave station communication status list 14b from “communication stop” to “communication in progress” is included.

このような再加入時処理手段を実現するための処理を含む親局側の処理を示すフローチャートが図4に示されている。先ず、処理の全体を概略的に説明すると、親局1は上位装置からコマンド発行要求が到来するのを待機し(ステップ408)、コマンド発行要求が到来しない場合には(ステップ408NO)、不動作コマンド(No Operationコマンド)を生成する一方(ステップ410)、コマンド発行要求が到来した場合には(ステップ408YES)、指令解析・コマンド生成処理(ステップ409)を実行する。   FIG. 4 shows a flowchart showing processing on the master station side including processing for realizing such a re-joining processing means. First, the entire process will be schematically described. The master station 1 waits for a command issue request from a higher-level device (step 408), and when no command issue request arrives (NO in step 408), it does not operate. While generating a command (No Operation command) (step 410), when a command issue request arrives (step 408 YES), command analysis / command generation processing (step 409) is executed.

こうして生成されたコマンドは、コマンド発行タイミングの到来を待って(ステップ403YES)、該当する子局へと送信される(ステップ404)。子局からのレスポンスが到来した場合には(ステップ401YES)、そのレスポンスが取得され(ステップ402)、その後、取得されたレスポンスに関する処理(ステップ405)が実行される。   The command generated in this manner waits for the command issue timing to arrive (step 403 YES), and is transmitted to the corresponding slave station (step 404). When a response from the slave station has arrived (step 401 YES), the response is acquired (step 402), and thereafter, a process related to the acquired response (step 405) is executed.

以上の処理の流れの中で、所定時間以上に亘りレスポンスが到来しないこと等により通信異常ありとの判定が行われると(ステップ406YES)、該当子局に関する規定の異常処理の実行、並びに、通信離脱処理が実行され(ステップ407)、該当子局に関する子局通信状態リストの内容は、「通信中」から「通信停止」へと書き替えられ、以後、その子局に対する送信処理は中断される。   In the above processing flow, when it is determined that there is a communication abnormality due to the absence of a response for a predetermined time or longer (YES in step 406), the specified abnormality processing related to the corresponding slave station is executed and the communication is performed. The leaving process is executed (step 407), and the contents of the slave station communication state list relating to the slave station are rewritten from “during communication” to “communication stop”, and thereafter the transmission process for the slave station is interrupted.

一方、子局側の処理を示すフローチャートが図6に示されている。子局2は、親局1から何らかのコマンドが到来するのを待って(ステップ601NO)、そのコマンドを取得する(ステップ602)。次に、ステップ602で取得したコマンドの処理が可能かどうか、つまり、現在、処理中のコマンドが有るかどうかを判定する(ステップ603)。処理中のコマンドがない場合(ステップ603NO)、つまり、ステップ602で取得したコマンドの処理が可能な場合は、ステップ607へ進み取得したコマンドを解析する。そのコマンドが実行可能であれば(ステップ608YES)、そのコマンドを処理すると共に(ステップ604)、処理が完了するのを待って(ステップ605YES)、完了レスポンスを生成し(ステップ606)、生成したレスポンスを親局へ送信する(ステップ610)。これに対して、解析されたコマンドが実行不可(ステップ608NO)、又はコマンド実行未了(ステップ605NO)の場合には、処理中レスポンスを生成し(ステップ609)、生成したレスポンスを親局へ送信する(ステップ610)。   On the other hand, a flowchart showing processing on the slave station side is shown in FIG. The slave station 2 waits for a command to arrive from the master station 1 (step 601 NO), and acquires the command (step 602). Next, it is determined whether or not the command acquired in step 602 can be processed, that is, whether or not there is a command currently being processed (step 603). If there is no command being processed (NO in step 603), that is, if the command acquired in step 602 can be processed, the process proceeds to step 607 and the acquired command is analyzed. If the command can be executed (YES in step 608), the command is processed (step 604), waits for the process to complete (YES in step 605), generates a completion response (step 606), and generates the generated response. Is transmitted to the master station (step 610). On the other hand, if the analyzed command cannot be executed (NO in step 608) or the command execution has not been completed (NO in step 605), a response in process is generated (step 609), and the generated response is transmitted to the master station. (Step 610).

次に、図4に戻って、本発明の要部である再加入時処理手段を実現するための処理について説明する。指令解析・コマンド生成処理(ステップ409)において、上位装置から再加入要求の到来が判定されると(ステップ4091YES)、続いて離脱子局に関する通信再加入コマンドの生成処理(ステップ4092)が実行される。   Next, returning to FIG. 4, the processing for realizing the re-joining processing means that is the main part of the present invention will be described. In the command analysis / command generation process (step 409), when it is determined that a rejoin request has arrived from the host apparatus (YES in step 4091), a communication rejoin command generation process (step 4092) relating to the leaving slave station is subsequently executed. The

離脱子局の通信の通信再加入コマンドの生成処理の詳細フローチャートが図5に示されている。同図に示されるように、この通信再加入コマンドの生成処理においては、先ず、通信対象子局リスト(図2の14a)の先頭より通信対象である子局の識別番号(ID)を取得する(ステップ501)、取得したIDに該当する子局の通信状態を子局通信状態リスト(図2の14b)より取得する(ステップ502)。取得した通信状態が「通信停止」の場合(ステップ503YES)は、該当する子局に対する通信再加入コマンドを生成し、所定のメモリに格納する(ステップ504)。次に、通信対象子局リスト中において他に通信対象である子局があるかどうか確認し(ステップ505)、なければ終了する。他に通信対象である子局がある場合(ステップ505YES)は、通信対象子局リスト中の次の通信対象である子局のIDを取得し(ステップ506)、ステップ502へ戻る。また、ステップ503において、取得した通信状態が「通信停止」でない場合はステップ505へ進む。これにより、通信対象であるが、「通信停止」である全子局について、通信再加入コマンドが生成されることとなる。そして、こうして生成された通信再加入コマンドは、図4に戻って、コマンド発行タイミングの到来を待って(ステップ403YES)、該当する子局に宛てて送信される(ステップ404)。   FIG. 5 shows a detailed flowchart of the process for generating the communication re-subscription command for the communication of the leaving slave station. As shown in the figure, in this communication re-submission command generation process, first, the identification number (ID) of the slave station that is the communication target is acquired from the head of the communication target slave station list (14a in FIG. 2). (Step 501), the communication status of the slave station corresponding to the acquired ID is acquired from the slave station communication status list (14b in FIG. 2) (Step 502). When the acquired communication state is “communication stop” (step 503 YES), a communication re-join command for the corresponding slave station is generated and stored in a predetermined memory (step 504). Next, it is confirmed whether or not there are other slave stations to be communicated in the communication subject slave station list (step 505). If there is another slave station that is the communication target (YES in step 505), the ID of the slave station that is the next communication target in the communication target slave station list is acquired (step 506), and the process returns to step 502. In step 503, if the acquired communication state is not “communication stop”, the process proceeds to step 505. As a result, a communication re-join command is generated for all the slave stations that are communication targets but are “communication stopped”. Then, the communication re-subscription command generated in this way returns to FIG. 4 and waits for the command issuance timing to arrive (step 403 YES), and is transmitted to the corresponding slave station (step 404).

前述の第2従来例における親局側の処理を示すフローチャートが図7に示されている。図4と図7との比較から明らかなように、第2従来例の場合には、離脱した子局の自動再加入のために、波線で囲まれている部分の処理(ステップ701〜704)により、離脱した子局に対しても、その後、所定の再加入確認タイミングが到来する毎に(ステップ701YES)、離脱子局のレスポンスチェック処理(ステップ702)を実行すると共に、レスポンスが検出される場合には(ステップ703YES)、離脱子局の通信再加入処理(ステップ704)を実行せねばならず、本発明の場合に比べて、マイクロプロセッサの処理負荷が大きく、また開発コストもその分だけ大きいことが理解されるであろう。   FIG. 7 shows a flowchart showing the processing on the master station side in the second conventional example. As is clear from the comparison between FIG. 4 and FIG. 7, in the case of the second conventional example, the processing of the portion surrounded by the wavy line in order to automatically rejoin the detached slave station (steps 701 to 704) Thus, each time a predetermined re-subscription confirmation timing arrives (YES in step 701), a response check process (step 702) of the leaving child station is executed and a response is detected. In this case (YES in step 703), the re-submission processing (step 704) of the leaving slave station must be executed, and the processing load of the microprocessor is larger than that of the present invention, and the development cost is correspondingly increased. It will be understood that it is big.

最後に、本発明が適用されたPLCシステムの構成図が図8に示されている。このPLCシステムは、ビルディング・ブロック型のPLC5と複数台の子局ユニット6−1〜6−Nとを含んで構成される。   Finally, FIG. 8 shows a configuration diagram of a PLC system to which the present invention is applied. This PLC system includes a building block type PLC 5 and a plurality of slave station units 6-1 to 6-N.

PLC5は、周知のように、バックプレーン上に敷設されたI/Oバスに対して、それぞれコネクタを介して、CPUユニット51、通信親局ユニット52、及びその他のユニット53(入出力ユニット等々)を装着して一体化することで構成されている。   As is well known, the PLC 5 has a CPU unit 51, a communication master station unit 52, and other units 53 (input / output units, etc.) via I / O buses laid on the backplane via connectors. It is comprised by attaching and integrating.

通信親局ユニット52と複数台の子局ユニット6−1〜6−Nとの間は、フィールドバス7を介してディジーチェイン接続されており、通信手順としては、図3に示されるように、親局が各子局とコマンド/レスポンスを順に行なう例が採用されている。   The communication master station unit 52 and the plurality of slave station units 6-1 to 6-N are daisy chain connected via the field bus 7, and the communication procedure is as shown in FIG. An example is adopted in which the master station sequentially performs command / response with each slave station.

CPUユニット51内には、図中ラダー図で示されるように、再加入トリガに相当する入力接点と再加入ビットに相当するコイル出力との直列接続として表記されるユーザプログラムが組み込まれている。   In the CPU unit 51, a user program expressed as a serial connection of an input contact corresponding to a rejoin trigger and a coil output corresponding to a rejoin bit is incorporated as shown in a ladder diagram in the figure.

このユーザプログラムが実行された際に、再加入トリガに相当する入力接点がOFFからONに変化すると、再加入ビットに相当するコイル出力もOFFからONに変化する(図中[1]参照)。この再加入ビットに相当するコイル出力は、CPUユニット51の入出力リフレッシュ処理により、入出力メモリから読み出されて、共有メモリ8の所定領域に書き込まれる。こうして共有メモリ8の所定領域に書き込まれたコイル出力は、適当なタイミングで通信親局ユニット52から読み出される。これにより、CPUユニット51から通信親局ユニット52へと再加入要求が伝えられる(図中[2]参照)。   When this user program is executed, if the input contact corresponding to the re-join trigger changes from OFF to ON, the coil output corresponding to the re-join bit also changes from OFF to ON (see [1] in the figure). The coil output corresponding to the rejoin bit is read from the input / output memory by the input / output refresh process of the CPU unit 51 and written in a predetermined area of the shared memory 8. The coil output thus written in the predetermined area of the shared memory 8 is read from the communication master station unit 52 at an appropriate timing. As a result, a re-join request is transmitted from the CPU unit 51 to the communication master station unit 52 (see [2] in the figure).

親局として機能する通信親局ユニット内には、各子局のIDに対応する番号欄とそのID別に当該子局が通信対象の子局であるかどうかを登録する登録欄を有する通信対象子局リストと、各子局のIDに対応する番号欄とそのID別に当該子局の通信状態を格納する通信状態欄を有する子局通信状態リストが格納されている。この例では、通信対象子局リストと子局通信状態リストを異なるリスト(テーブル)として構成する場合を示した。しかし、これに限らず、通信対象子局リストと子局通信状態リストを合体させたテーブルとして構成しても良い。
例えば、各子局のIDに対応する番号欄と、登録欄と、通信状態欄を備えたテーブルとして構成しても良い。
In the communication master station unit that functions as a master station, a communication target child having a number field corresponding to the ID of each slave station and a registration field for registering whether or not the slave station is a slave station to be communicated for each ID A station list, a slave station communication status list having a number column corresponding to the ID of each slave station and a communication status column storing the communication status of the slave station for each ID are stored. In this example, the case where the communication target slave station list and the slave station communication state list are configured as different lists (tables) is shown. However, the present invention is not limited to this, and the communication target slave station list and the slave station communication state list may be combined as a table.
For example, you may comprise as a table provided with the number column corresponding to ID of each sub_station | mobile_unit, a registration column, and a communication status column.

通信親局ユニット52は、再加入要求が与えられるのに応答して、通信対象子局リストと子局通信状態リストとを照合することにより、通信対象とされてはいるものの、「通信停止」状態とされている子局を特定し(図中[3]参照)、それら特定された子局のそれぞれに対して、所定の手順を経て通信を再開させ(図中[4]参照)、併せて、子局通信状態リストの該当する子局の内容を「通信停止」を示す「NG」から「通信中」を示す「OK」へと書き替える。これにより、その時点で、通信対象とされてはいるものの、通信停止状態にあった子局の全てが、一括して、通信再加入されることとなる。以上の一連の流れをラダープログラムから見たシーケンス例を示すタイムチャートが図9に示されている。同図に示されるように、再加入トリガのOFFからONへの変化、再加入ビットのOFFからONへの変化、親局ユニットビジーフラグのOFFからONへの変化と続き、最後に、子局ユニット#2の通信が再開されることとなる。   In response to the request for re-subscription, the communication master station unit 52 collates the communication target slave station list with the slave station communication status list, but is “communication stopped”. The slave stations that are in the state are identified (see [3] in the figure), and communication is resumed for each of the identified slave stations through a predetermined procedure (see [4] in the figure). Then, the content of the corresponding slave station in the slave station communication status list is rewritten from “NG” indicating “communication stop” to “OK” indicating “during communication”. As a result, all of the slave stations that have been subject to communication at that time but are in a communication stopped state are re-joined together. FIG. 9 shows a time chart showing a sequence example in which the above series of flows is viewed from the ladder program. As shown in the figure, the rejoin trigger is changed from OFF to ON, the rejoin bit is changed from OFF to ON, the master station unit busy flag is changed from OFF to ON, and finally the slave station Communication of unit # 2 will be resumed.

このPLCシステムにおいて、例えばメンテナンス等の場合には、一連の子局ユニットは全て電源を断たれた状態にある。この状態からその装置の運転を開始すべく、各子局ユニットの電源が投入されたのち、CPUユニット51から通信親局ユニット52へと再加入要求が発せられると、一連の子局ユニットは一括して同時に通信再加入されることとなる。つまり、再加入要求が与えられれば、対象となる複数の子局ユニットを特定せずとも、それらの子局ユニットは一括して通信再開される。しかも、複数の子局ユニットの起動のために必要な共有メモリ上の領域は1ビットあれば済むから、子局ユニットが64台存在するような場合にも、共有メモリ8上に大きな容量を確保する必要もない。   In this PLC system, for example, in the case of maintenance or the like, all of the series of slave station units are in a state where the power is cut off. In order to start the operation of the apparatus from this state, when a power resumption request is issued from the CPU unit 51 to the communication master station unit 52 after the power of each slave station unit is turned on, a series of slave station units are batched. At the same time, the communication is rejoined. That is, if a re-join request is given, communication of these slave station units is resumed collectively without specifying a plurality of target slave station units. Moreover, since only one bit area is required on the shared memory for starting the plurality of slave station units, a large capacity is secured on the shared memory 8 even when 64 slave station units exist. There is no need to do.

以上の実施形態の説明でも明らかなように、本発明によれば、第1の記憶手段に記憶された「通信対象子局リスト」には、現在どの子局が通信対象子局とされているかが示されると共に、第2の記憶手段に記憶された「各子局通信状態」は、いずれかの子局が通信離脱すれば、その子局に対応して自動的に「通信中」から「通信停止」へと書き替えられる。   As is clear from the above description of the embodiment, according to the present invention, which slave station is currently set as the communication target slave station in the “communication target slave station list” stored in the first storage means. In addition, the “each slave station communication state” stored in the second storage means is automatically “communication” to “communication stop” corresponding to the slave station when any slave station is disconnected. Is rewritten.

したがって、何らかの原因で通信を離脱した1又は2以上の子局が復旧して通信可能な状態となったときに、親局に対して所定の再加入指令が与えられると、第1の記憶手段に記憶された通信対象子局リストと第2の記憶手段に記憶された各子局通信状態とを照合することにより、通信対象とされてはいるものの、「通信停止」状態とされている子局が自動的に特定されて、それら特定された子局のそれぞれに対して、所定の手順を経て通信が再開される。   Accordingly, when a predetermined re-join command is given to the master station when one or more slave stations that have disconnected from communication for some reason are restored and ready to communicate, the first storage means A child that is in a “communication stop” state although it is a communication target by collating the communication target slave station list stored in FIG. 2 with each slave station communication state stored in the second storage means Stations are automatically identified, and communication is resumed for each of the identified slave stations through a predetermined procedure.

その結果、復旧した子局の台数に拘わらず、それら復旧した子局の全てを1つの指令操作で一括して通信に再加入させることができるから、使用者の使い勝手が向上する。また、本発明を多軸制御を行なう装置のコントローラしてビルディング・ブロック型のプログラマブル・コントローラ(以下、PLCと言う)に適用すると、親局は多軸制御のための機能を備えたモーション・コントロールユニットとして、又子局は、モータドライバとして構成することができる。このとき、その装置のメンテナンスや故障修理等の状況下にあっては、子局である複数台のモータドライバは、全て電源が切られて通信離脱状態となっているのが通例である。   As a result, regardless of the number of restored slave stations, all of the restored slave stations can be re-joined to communication in one command operation, thereby improving the user-friendliness. Further, when the present invention is applied to a building block type programmable controller (hereinafter referred to as PLC) as a controller of a device for performing multi-axis control, the master station has a motion control having a function for multi-axis control. As a unit, the slave station can be configured as a motor driver. At this time, under a situation such as maintenance or repair of the device, it is usual that a plurality of motor drivers as slave stations are all turned off and in a communication disconnected state.

このような状態において、その装置のメンテナンスや故障修理が完了して、各モータドライバに電源が投入され、その状態において、モーション・コントロールユニットに対して、その上位装置であるCPUユニットから所定の再加入指令が与えられると、今まで通信離脱状態にあった一連のモータドライバは全て同時に通信再加入されるから、その装置の制御に供されているモータドライバの全てが、同時に動作可能な状態となり、好都合である。   In such a state, the maintenance and repair of the device are completed, and the power is turned on to each motor driver. In this state, the CPU unit, which is the host device, performs a predetermined restart on the motion control unit. When a join command is given, a series of motor drivers that have been in a disconnected state up to now will be re-joined at the same time, so all of the motor drivers that are used to control the device will be able to operate simultaneously. Convenient.

また、この機器制御用の通信システムにあっては、通信離脱された子局に関する通信再加入は、親局に対する再加入指令を待って行うものであって、自動的に再加入するものではないから、離脱中の子局の状態を監視する必要もない。したがって、この通信システムにあっては、前述の第2従来例のように、離脱中の子局の監視のために、処理負荷が増大することもない。   Further, in this device control communication system, communication re-subscription for a slave station that has been disconnected is performed after waiting for a re-subscription command to the parent station, and not automatically re-subscription. Therefore, there is no need to monitor the status of the slave station that is leaving. Therefore, in this communication system, unlike the above-described second conventional example, the processing load does not increase due to the monitoring of the slave station that is leaving.

さらに、この機器制御用の通信ユニットにあっては、複数の子局を一括して通信再開させつつも、再加入されるべき子局の指定は、第1の記憶手段に記憶された通信対象子局リストと第2の記憶手段に記憶された各子局通信状態とを照合することにより、自動的に行われるから、通信再開指令そのものについては通信再加入される子局の数に拘わらず1つで済むこととなり、前述の第3従来例のように、子局の台数に応じて開発コストが増加することもない。   Furthermore, in this communication unit for device control, the designation of the slave station to be re-joined while resuming communication of a plurality of slave stations at the same time is performed by the communication target stored in the first storage means. Since it is automatically performed by collating the slave station list with each slave station communication state stored in the second storage means, the communication restart command itself is the same regardless of the number of slave stations to be rejoined in communication. One is sufficient, and unlike the third conventional example, the development cost does not increase according to the number of slave stations.

この発明によれば、何らかの原因で通信を離脱した1又は2以上の子局が復旧して通信可能な状態となった場合には、復旧した子局の台数に拘わらず、それらの子局を簡単な指令操作で通信に再加入させることができ、しかもそのような再加入機能を低コストに実現することが可能な機器制御用の通信システムを提供することができる。   According to the present invention, when one or two or more slave stations that have lost communication due to some reason are restored and become communicable, the slave stations are connected regardless of the number of restored slave stations. It is possible to provide a communication system for device control that can re-subscribe to communication by a simple command operation and can realize such a re-subscription function at low cost.

本発明システムを構成する親局、子局の機能構成図である。It is a functional block diagram of the master station and the slave station that constitute the system of the present invention. 本発明における子局復帰動作を示す説明図である。It is explanatory drawing which shows the subunit | mobile_unit return operation | movement in this invention. 各子局とのコマンド・レスポンスを順に行う例を示す模式的説明図である。It is a schematic explanatory drawing which shows the example which performs a command and a response with each slave station in order. 本発明における親局側の処理を示すフローチャートである。It is a flowchart which shows the process by the side of the master station in this invention. 離脱子局の通信再加入コマンドの生成処理の詳細フローチャートである。It is a detailed flowchart of the generation process of the communication re-join command of the leaving slave station. 本発明における子局側の処理を示すフローチャートである。It is a flowchart which shows the process by the side of the subunit | mobile_unit in this invention. 第2従来例における親局側の処理を示すフローチャートである。It is a flowchart which shows the process by the main | base station in the 2nd prior art example. 本発明が適用されたPLCシステムの構成図である。1 is a configuration diagram of a PLC system to which the present invention is applied. ラダープログラムから見たシーケンス例を示すタイムチャートである。It is a time chart which shows the example of a sequence seen from the ladder program. 本発明の前提となる1台の親局と複数台の子局で構成される通信システムの基本構成図である。1 is a basic configuration diagram of a communication system including a single master station and a plurality of slave stations as a premise of the present invention. 第1従来例における子局復帰動作を示すフローチャートである。It is a flowchart which shows the subunit | mobile_unit return operation | movement in a 1st prior art example. 第2従来例における子局復帰動作を示すフローチャートである。It is a flowchart which shows the subunit | mobile_unit return operation | movement in a 2nd prior art example. 第3従来例における子局復帰動作を示すフローチャートである。It is a flowchart which shows the slave station return operation | movement in a 3rd prior art example.

符号の説明Explanation of symbols

1 親局
2−1〜2−n 子局
3 フィールドバス
5 プログラマブル・コントローラ(PLC)
6−1〜6−N 子局ユニット
7 フィールドバス
8 共有メモリ
11 通信処理演算部
12 上位装置とのインタフェース(I/F)
13 通信インタフェース(I/F)
14 記憶装置
14a 通信対象子局リスト
14b 子局通信状態リスト
21 子局側処理・演算部
22 子局識別設定手段
23 通信インタフェース
51 CPUユニット
52 通信親局ユニット
53 その他のユニット
1 Master station 2-1 to 2-n Slave station 3 Fieldbus 5 Programmable controller (PLC)
6-1 to 6 -N Slave station unit 7 Field bus 8 Shared memory 11 Communication processing operation unit 12 Interface (I / F) with host device
13 Communication interface (I / F)
DESCRIPTION OF SYMBOLS 14 Memory | storage device 14a Communication object slave station list 14b Slave station communication status list 21 Slave station side processing and calculating part 22 Slave station identification setting means 23 Communication interface 51 CPU unit 52 Communication master station unit 53 Other units

Claims (3)

1台の親局と、複数台の子局とを、フィールドバスを介して結び、親局と各子局との間で、データの送受信を行うようにした機器制御用の通信システムにおいて、
親局には、
現在どの子局が通信対象子局とされているかを示す通信対象子局リストを記憶する第1の記憶手段と、
現在各子局が「通信中」、「通信停止」のいずれの状態にあるかを示す子局通信状態リストを記憶する第2の記憶手段と、
第1の記憶手段に記憶された通信対象子局リストを参照することにより、通信対象として設定された子局のそれぞれに対して、コマンドの送信とレスポンスの受信とを繰り返し実行しつつ、その間に、レスポンスが途絶えたときには、以後、その子局に対するコマンド送信を停止し、併せて、第2の記憶手段に記憶された子局通信状態リストの該当する子局の内容を「通信中」から「通信停止」へと書き替える通常時処理手段と、が含まれており、
子局のそれぞれには、
親局から送られてくるコマンドのうちで、自局宛のコマンドを受信解読して指示された処理を実行し、併せて、対応するレスポンスを親局へと送信するコマンド処理手段が含まれており、さらに
親局には、
所定の再加入指令が与えられるのに応答して、第1の記憶手段に記憶された通信対象子局リストと第2の記憶手段に記憶された子局通信状態リストとを照合することにより、通信対象とされてはいるものの、「通信停止」状態とされている子局を特定し、それら特定された子局のそれぞれに対して、所定の手順を経て通信を再開させ、併せて、第2の記憶手段に記憶された子局通信状態リストの該当する子局の内容を「通信停止」から「通信中」へと書き替える再加入時処理手段が含まれている、
ことを特徴とする機器制御用の通信システム。
In a communication system for device control in which one master station and a plurality of slave stations are connected via a field bus, and data is transmitted and received between the master station and each slave station.
The master station
First storage means for storing a communication target slave station list indicating which slave station is currently set as a communication target slave station;
A second storage means for storing a slave station communication status list indicating whether each slave station is currently in a “communication” or “communication stop” state;
By referring to the communication target slave station list stored in the first storage means, while repeatedly executing command transmission and response reception for each of the slave stations set as communication targets, When the response is interrupted, thereafter, the command transmission to the slave station is stopped, and the contents of the corresponding slave station in the slave station communication status list stored in the second storage means are changed from “in communication” to “communication”. Normal processing means to rewrite to `` stop '',
Each slave station has
Includes command processing means that receives and decodes commands addressed to its own station from the commands sent from the master station, executes the instructed process, and sends the corresponding response to the master station And the master station
In response to the given re-subscription command being given, by comparing the communication target slave station list stored in the first storage means with the slave station communication status list stored in the second storage means, Identify the slave stations that are subject to communication but are in a “communication stop” state, and resume communication for each of the identified slave stations through a predetermined procedure. Re-subscription processing means for rewriting the content of the corresponding slave station in the slave station communication status list stored in the storage means of 2 from “communication stop” to “communication in progress”;
A communication system for device control.
親局がビルディング・ブロック型PLCの通信親局ユニットであり、かつ各子局のそれぞれが、リモートI/Oユニットやリモート特殊機能ユニット等の各種子局ユニットである、ことを特徴とする請求項1に記載の機器制御用の通信システム。   The master station is a communication master station unit of a building block type PLC, and each of the slave stations is a slave unit such as a remote I / O unit or a remote special function unit. A communication system for device control according to 1. 親局がビルディング・ブロック型PLCを構成するユニットの一つであり、さらに、前記再加入指令は、ビルディング・ブロック型PLCを構成するCPUユニットが予めCPUユニット内に格納されているユーザプログラムを実行することにより親局に与えられることを特徴とする請求項1に記載の機器制御用の通信システム。   The master station is one of the units constituting the building block type PLC, and the re-join command executes a user program in which the CPU unit constituting the building block type PLC is stored in the CPU unit in advance. The communication system for device control according to claim 1, wherein the communication is provided to the master station.
JP2006277734A 2006-10-11 2006-10-11 Communications system for apparatus control Pending JP2008097274A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006277734A JP2008097274A (en) 2006-10-11 2006-10-11 Communications system for apparatus control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006277734A JP2008097274A (en) 2006-10-11 2006-10-11 Communications system for apparatus control

Publications (1)

Publication Number Publication Date
JP2008097274A true JP2008097274A (en) 2008-04-24

Family

ID=39380062

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006277734A Pending JP2008097274A (en) 2006-10-11 2006-10-11 Communications system for apparatus control

Country Status (1)

Country Link
JP (1) JP2008097274A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06161521A (en) * 1992-11-27 1994-06-07 Omron Corp Remote i/o transmission system of programmable controller
JPH10243001A (en) * 1997-02-25 1998-09-11 Matsushita Electric Works Ltd Communication system
JP2000242599A (en) * 1999-02-24 2000-09-08 Keyence Corp Display controller
JP2002236501A (en) * 2001-02-13 2002-08-23 Yokogawa Electric Corp Communication method in process control system and process control system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06161521A (en) * 1992-11-27 1994-06-07 Omron Corp Remote i/o transmission system of programmable controller
JPH10243001A (en) * 1997-02-25 1998-09-11 Matsushita Electric Works Ltd Communication system
JP2000242599A (en) * 1999-02-24 2000-09-08 Keyence Corp Display controller
JP2002236501A (en) * 2001-02-13 2002-08-23 Yokogawa Electric Corp Communication method in process control system and process control system

Similar Documents

Publication Publication Date Title
US7852790B2 (en) Communication master station startup period control method
CA2733788C (en) Method and systems for redundant server automatic failover
CN103645678B (en) A kind of real-time response network control system
US9251632B2 (en) Vehicle diagnostic system
JP4888718B2 (en) Distributed control system
US20130186591A1 (en) Air conditioner, air conditioning system having the same, and method for controlling outdoor unit of the system
KR101256547B1 (en) Air conditioner, method for controlling outdoor units of the air conditioner, and central control system having the same
US20110238188A1 (en) Engineering tool
JP2006285758A (en) Display system of control device
CN105224362A (en) Host computer carries out the method and system of program upgrade to slave computer
US7912558B2 (en) PLC for distributed control and distributed control system
CN103257514A (en) Communication device and control method for communication device
CN111818125A (en) Control method of whole-plant merchant RPA robot
JP2008177796A (en) Saved-wiring system, its master communication equipment, its program, and display control method
JP3980768B2 (en) Distributed processing system and cooperative method thereof
KR101655727B1 (en) Programmable controller and control method for programmable controller
JP4950617B2 (en) Air conditioning management apparatus, air conditioning management method, and air conditioning management program
CN109245979B (en) CANopen master-slave station reliability control method and overall management device thereof
JP2008097274A (en) Communications system for apparatus control
JP2006277733A (en) Programmable controller system
JP4407838B2 (en) Communication master station startup control method
JP4826829B2 (en) Network management server, program, network, and power management method
JP2007066103A (en) Method for controlling event processing time
WO2006030697A1 (en) Communication device, communication control method, communication control program, and computer-readable recording medium containing the communication control program
JP5770546B2 (en) SIP server, network system, power control method and program for network device

Legal Events

Date Code Title Description
A621 Written request for application examination

Effective date: 20090123

Free format text: JAPANESE INTERMEDIATE CODE: A621

A977 Report on retrieval

Effective date: 20110106

Free format text: JAPANESE INTERMEDIATE CODE: A971007

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110105

A131 Notification of reasons for refusal

Effective date: 20110608

Free format text: JAPANESE INTERMEDIATE CODE: A131

A02 Decision of refusal

Effective date: 20111012

Free format text: JAPANESE INTERMEDIATE CODE: A02