JP2006295710A - Information communication system and master unit - Google Patents
Information communication system and master unit Download PDFInfo
- Publication number
- JP2006295710A JP2006295710A JP2005115936A JP2005115936A JP2006295710A JP 2006295710 A JP2006295710 A JP 2006295710A JP 2005115936 A JP2005115936 A JP 2005115936A JP 2005115936 A JP2005115936 A JP 2005115936A JP 2006295710 A JP2006295710 A JP 2006295710A
- Authority
- JP
- Japan
- Prior art keywords
- slave
- command
- data
- individual data
- transmitted
- 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
Links
- 238000004891 communication Methods 0.000 title claims abstract description 87
- 230000005540 biological transmission Effects 0.000 claims abstract description 59
- 238000013500 data storage Methods 0.000 claims abstract description 8
- 238000011084 recovery Methods 0.000 abstract 3
- 230000004044 response Effects 0.000 description 19
- 238000003860 storage Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 230000000737 periodic effect Effects 0.000 description 7
- 238000000034 method Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- 238000004519 manufacturing process Methods 0.000 description 2
- 239000011159 matrix material Substances 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000005856 abnormality Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Images
Landscapes
- Small-Scale Networks (AREA)
Abstract
Description
本発明は、1台のマスター装置と複数のスレーブ装置との間で、予め設定された順序に基づき、データ通信をサイクル的に繰り返し行う情報通信システム及びこのシステムを構成するマスター装置に関する。 The present invention relates to an information communication system in which data communication is periodically repeated between a single master device and a plurality of slave devices based on a preset order, and a master device constituting this system.
かかる情報通信システムでは、1台の通信制御装置(マスター装置)とn台の情報表示装置(スレーブ装置)をRS485などのシリアル通信線で接続してデータ通信を行う。かかる情報通信システムは、例えば、工場における生産ラインに設置され、マスター装置から特定のスレーブ装置を指定し、表示データ(個別データに相当)を送信する。指定されたスレーブ装置は、受信した表示データに基づいて表示を行う。また、マスター装置は、表示データの送信を行わない場合でも、絶えずスレーブ装置と通信を行っており、各スレーブ装置と平等に通信を行うため、n台のスレーブ装置と、サイクル的に通信を繰り返している。この通信態様を図6に示す。 In such an information communication system, one communication control device (master device) and n information display devices (slave devices) are connected by a serial communication line such as RS485 to perform data communication. Such an information communication system is installed, for example, in a production line in a factory, designates a specific slave device from a master device, and transmits display data (corresponding to individual data). The designated slave device performs display based on the received display data. In addition, even when the display device does not transmit display data, the master device constantly communicates with the slave devices and communicates with each slave device equally, so communication with the n slave devices is repeated in cycles. ing. This communication mode is shown in FIG.
まず、マスター装置からスレーブ装置1にコマンドc1を送信する。スレーブ装置1は、これに応答して応答コマンドr1を返信する。次に、マスター装置からスレーブ装置2にコマンドc2を送信する。スレーブ装置2はマスター装置に応答コマンドr2を返信する。以下同様に、マスター装置はスレーブ装置3〜nにコマンドc3〜cnを送信し、各スレーブ装置3〜nは応答コマンドr3〜rnを返信する。マスター装置は、スレーブ装置nからの応答コマンドrnを受信すると、スレーブ装置1へのコマンド送信から繰り返す。
First, the command c1 is transmitted from the master device to the
以上の通信システムにおけるマスター装置の動作フローチャートを図7により説明する。まず、マスター装置は、スレーブ装置1に対してコマンドc1を送信する(#1−1)。マスター装置はスレーブ装置1からの応答コマンドr1を受信した場合(#1−2)、スレーブ装置2にコマンドc2を送信する(#2−1)。スレーブ装置1からの応答コマンドr1を受信していない場合は、スレーブ装置1にコマンド送信後、タイムアウト時間を経過したか否かを判断する(#1−3)。タイムアウト時間内に応答コマンドr1を受信できなかった場合は、マスター装置はスレーブ装置1がコマンド受信状態でないことを認識する(#1−4)。
An operation flowchart of the master device in the above communication system will be described with reference to FIG. First, the master device transmits a command c1 to the slave device 1 (# 1-1). When the master device receives the response command r1 from the slave device 1 (# 1-2), the master device transmits a command c2 to the slave device 2 (# 2-1). If the response command r1 from the
以下、スレーブ装置2にコマンドc2を送信した後は、同様の処理手順をスレーブ装置nまで行い、その後再びステップ(#1−1)に戻り、スレーブ装置1へのコマンド送信から繰り返す。
Thereafter, after the command c2 is transmitted to the
一方、スレーブ装置における動作フローチャートを図8に示す。まず、マスター装置から自機宛のコマンドを受信したか否かを判断する(#10)。受信すればマスター装置に応答コマンドを返信する(#14)。自機宛のコマンドを受信していない場合は、マスター装置からのコマンド待ち時間がタイムアウト時間になったか否かを判断し(#11)、タイムアウト時間が経過した場合は、マスター装置がコマンド送信可能でないと認識する(#12)。この認識後も、マスター装置から自機宛のコマンドを受信したか否かを判断し(#13)、コマンドを受信できた場合は、マスター装置に応答コマンドを返信する(#14)。 On the other hand, an operation flowchart in the slave device is shown in FIG. First, it is determined whether a command addressed to the own device is received from the master device (# 10). If it is received, a response command is returned to the master device (# 14). If the command addressed to the device itself has not been received, it is determined whether the command waiting time from the master device has reached the timeout time (# 11). If the timeout time has elapsed, the master device can send the command. (# 12). After this recognition, it is determined whether or not a command addressed to itself is received from the master device (# 13). If the command is received, a response command is returned to the master device (# 14).
以上のように、マスター装置は複数(n台)のスレーブ装置1〜nと、予め設定された順序(この場合、スレーブ装置1→スレーブ装置2→・・・・→スレーブ装置n)でデータ通信をサイクル的に繰り返し行っている。
As described above, the master device performs data communication with a plurality of (n)
また、マスター装置とスレーブ装置との間でデータ通信を行うシステムとして、下記特許文献1に開示される通信システムが知られている。特許文献1に係る通信システムは、1つのマスター局と、このマスター局と全二重方式のシリアル伝送ラインで接続される複数のスレーブ局との間で、所定の送信周期で定期送信データの授受を行うものであり、送信周期で特定される送信周期内の定期送信データの授受が行われていない空き時間に、定期送信する必要のない非定期送信データの授受を行うようにしたシステムである。
Further, as a system for performing data communication between a master device and a slave device, a communication system disclosed in
上記図6〜8で説明したシステムにおいて、マスター装置から特定のスレーブ装置に対して、表示データを送信する場合がある。例えば、n台のスレーブ装置のうち、特定のスレーブ装置(例えば、スレーブ装置1)について表示内容を変更する必要性が生じた場合である。かかる表示データは、各スレーブ装置へ送信するコマンドに乗せて送信するわけであるが、送信すべき表示データの量が大きい場合、表示データを分割して何回かに分けて送信することになる。 In the system described with reference to FIGS. 6 to 8, display data may be transmitted from the master device to a specific slave device. For example, there is a need to change the display content of a specific slave device (for example, slave device 1) among n slave devices. Such display data is transmitted on a command transmitted to each slave device. However, when the amount of display data to be transmitted is large, the display data is divided and transmitted several times. .
スレーブ装置1に表示データを送信することを考えると、スレーブ装置がn台ある場合、スレーブ装置1に分割した1回分の表示データを送信した後、残りのn−1台のスレーブ装置に順次コマンド送信を行い、夫々のコマンドに対する応答コマンドを受信している。残りのn−1台のスレーブ装置に表示データを送信する必要がない場合でも、上記のようにサイクル的にデータ通信を行っているため、スレーブ装置1に対して表示データを送信するのに時間がかかり、スレーブ装置1の表示内容の変更がスムーズに行かないという問題が生じる。
Considering sending display data to the
仮に、スレーブ装置1〜nへのコマンド送信/応答コマンド受信に各々K時間必要であるとすると、スレーブ装置1へのコマンド通信はK×n時間ごとに1回行われることになる。表示データの分割数がmであったとすると、全ての表示データをスレーブ装置1に送信し終わるまでに、その所要時間は、m回×K時間×n台=mnK時間を必要とし、表示データの送信効率が良くなかった。
Assuming that K hours are required for command transmission / response command reception to the
また、スレーブ装置1のみに対して通信を独占的に行おうとすると、スレーブ装置1以外のスレーブ装置は、コマンドをマスター装置から受信しないため、図8のステップ#12のようにマスター装置がコマンド送信可能でないと認識してしまい、エラー表示あるいは他の機器に接続中である旨の表示などをさせてしまうことになる。
Further, if communication is exclusively performed only for the
また、前述した特許文献1における通信システムにおいては、マスター局からn台の各スレーブ局への定期送信データを行わない空き時間を利用して、非定期送信データ(上記表示データに対応する)を送信するものである。しかしながら、非定期送信データを送信する場合でも、常に全てのスレーブ局と定期送信データの授受を行う必要があることから、非定期送信データの量が増大した場合には、データ送信完了まで多大な時間を要することになる。
Further, in the communication system in
本発明は上記実情に鑑みてなされたものであり、その課題は、マスター装置と複数台のスレーブ装置との間でデータ通信を行うに際して、特定のスレーブ装置に対する表示データの送信を効率よく行うことができ、エラー表示などをさせる必要のない情報通信システム、及びこのシステムを構成するマスター装置を提供することである。 The present invention has been made in view of the above circumstances, and its problem is to efficiently transmit display data to a specific slave device when performing data communication between the master device and a plurality of slave devices. It is possible to provide an information communication system that does not need to display an error and the like, and a master device that constitutes this system.
上記課題を解決するため本発明に係る情報通信システムは、
1台のマスター装置と複数のスレーブ装置との間で、予め設定された順序に基づき、データ通信をサイクル的に繰り返し行う情報通信システムであって、
前記マスター装置が、
複数のスレーブ装置のうちの特定の第1スレーブ装置に対して送信すべき表示データを格納する個別データ格納手段と、
前記第1スレーブ装置以外の第2スレーブ装置に対して停止コマンドを送信する停止コマンド送信手段と、
前記第2スレーブ装置に対して復帰コマンドを送信する復帰コマンド送信手段と、
第1スレーブ装置に対する表示データの送信開始に際して、第2スレーブ装置のすべてに対して停止コマンドを送信すると共に、個別データの送信終了に際して、第2スレーブ装置のすべてに対して復帰コマンドを送信させる送信制御手段とを備えていることを特徴とするものである。
In order to solve the above problems, an information communication system according to the present invention provides:
An information communication system in which data communication is repeated cyclically based on a preset order between one master device and a plurality of slave devices,
The master device is
Individual data storage means for storing display data to be transmitted to a specific first slave device among a plurality of slave devices;
Stop command transmitting means for transmitting a stop command to a second slave device other than the first slave device;
Return command transmission means for transmitting a return command to the second slave device;
At the start of display data transmission to the first slave device, a stop command is transmitted to all of the second slave devices, and at the end of transmission of the individual data, transmission to transmit a return command to all of the second slave devices. And a control means.
かかる情報通信システムの作用・効果を説明する。このシステムは、1台のマスター装置と複数のスレーブ装置との間で、予め設定された順序に基づき、データ通信をサイクル的に繰り返し行うものであり、マスター装置が次のような機能を有している。 The operation and effect of the information communication system will be described. In this system, data communication is repeated cyclically based on a preset order between one master device and a plurality of slave devices. The master device has the following functions. ing.
すなわち、複数のスレーブ装置のうちの特定の第1スレーブ装置に対して送信すべき個別データが個別データ格納手段に格納される。個別データを送信しようとする場合は、第1スレーブ装置以外の全ての第2スレーブ装置に対して停止コマンドを送信する。この停止コマンドにより、第2スレーブ装置はマスター装置からのコマンドを受信しなくても正常な状態であると認識することができる。これにより、マスター装置は第1スレーブ装置のみと通信できる状態となり、個別データを短時間で送信可能になる。個別データの送信が終了すると、第2スレーブ装置の全てに対して復帰コマンドを送信する。これにより、第2スレーブ装置は、通常の通信モードに復帰したことを認識することができる。その結果、マスター装置と複数台のスレーブ装置との間でデータ通信を行うに際して、特定のスレーブ装置に対する個別データの送信を効率よく行うことができ、エラー表示などをさせる必要のない情報通信システムを提供することができる。 That is, individual data to be transmitted to a specific first slave device among the plurality of slave devices is stored in the individual data storage means. When trying to transmit individual data, a stop command is transmitted to all second slave devices other than the first slave device. By this stop command, the second slave device can recognize that it is in a normal state without receiving a command from the master device. Thus, the master device can communicate with only the first slave device, and individual data can be transmitted in a short time. When the transmission of the individual data is completed, a return command is transmitted to all the second slave devices. Thereby, the second slave device can recognize that the normal communication mode has been restored. As a result, when performing data communication between a master device and a plurality of slave devices, an information communication system that can efficiently transmit individual data to a specific slave device and does not need to display an error or the like. Can be provided.
なお、本発明として、個別データを送信しようとする第1スレーブ装置は1台とは限らず2台以上の複数台であってもよい。その場合、スレーブ装置ごとに個別データの内容が異なっていても良いし、一部あるいは全部が同じ個別データを送信するものであってもよい。 In the present invention, the number of first slave devices that are to transmit individual data is not limited to one, and may be two or more. In that case, the contents of the individual data may be different for each slave device, or a part or all of them may transmit the same individual data.
本発明において、前記マスター装置と接続されるホストコンピュータが、
個別データを送信すべきスレーブ装置を設定する送信先設定手段と、
送信すべき個別データを設定する個別データ設定手段と、
送信される個別データの分割数を設定する分割数設定手段と、
これら送信先設定手段、個別データ設定手段、分割数設定手段による設定データに基づいて、マスター装置に対して指令を行う通信指令手段とを備えていることが好ましい。
In the present invention, a host computer connected to the master device is
Destination setting means for setting a slave device to which individual data is to be transmitted;
Individual data setting means for setting individual data to be transmitted;
A division number setting means for setting the division number of the individual data to be transmitted;
It is preferable to include a communication command unit that commands the master device based on the setting data by the transmission destination setting unit, the individual data setting unit, and the division number setting unit.
個別データを送信する場合は、マスター装置と接続されるホストコンピュータで必要事項が設定される。すなわち、個別データを送信すべきスレーブ装置と、送信すべき個別データの内容と、個別データの分割数を設定する。これらの設定されたデータは、通信指令手段により、ホストコンピュータからマスター装置へと送信される。このホストコンピュータにより、マスター装置やスレーブ装置の集中制御を行うことができる。 When individual data is transmitted, necessary items are set in the host computer connected to the master device. That is, the slave device to which the individual data is to be transmitted, the content of the individual data to be transmitted, and the number of divisions of the individual data are set. These set data are transmitted from the host computer to the master device by the communication command means. This host computer can perform centralized control of the master device and slave devices.
本発明に係る情報通信システムを構成するマスター装置は、
複数のスレーブ装置のうちの特定の第1スレーブ装置に対して送信すべき個別データを格納する個別データ格納手段と、
前記第1スレーブ装置以外の第2スレーブ装置に対して停止コマンドを送信する停止コマンド送信手段と、
前記第2スレーブ装置に対して復帰コマンドを送信する復帰コマンド送信手段と、
第1スレーブ装置に対する個別データの送信開始に際して、第2スレーブ装置のすべてに対して停止コマンドを送信すると共に、個別データの送信終了に際して、第2スレーブ装置のすべてに対して復帰コマンドを送信させる送信制御手段とを備えていることを特徴とするものである。
The master device constituting the information communication system according to the present invention,
Individual data storage means for storing individual data to be transmitted to a specific first slave device among a plurality of slave devices;
Stop command transmitting means for transmitting a stop command to a second slave device other than the first slave device;
Return command transmission means for transmitting a return command to the second slave device;
At the start of transmission of individual data to the first slave device, a stop command is transmitted to all of the second slave devices, and at the end of transmission of the individual data, transmission to send a return command to all of the second slave devices And a control means.
更に、前記送信制御手段は、個別データを送信するに際して、設定された分割数により個別データを分割して送信させることが好ましい。 Furthermore, it is preferable that the transmission control means divides the individual data according to the set number of divisions when transmitting the individual data.
かかる構成によるマスター装置の作用・効果は、既に説明したとおりである。 The operation and effect of the master device having such a configuration is as described above.
本発明において、前記停止コマンド送信手段は、すべての第2スレーブ装置に対して同一の停止コマンドを送信することが好ましい。 In this invention, it is preferable that the said stop command transmission means transmits the same stop command with respect to all the 2nd slave apparatuses.
全ての第2スレーブ装置が認識できる停止コマンドを送信することで、応答コマンドを返信しない構成にすることができ、個別データの送信を終了するまでの時間を更に短縮化することができる。 By transmitting a stop command that can be recognized by all the second slave devices, a configuration in which a response command is not returned can be achieved, and the time until the end of transmission of individual data can be further shortened.
本発明において、スレーブ装置は、前記個別データとしての表示データを受信してLEDによる外部表示を行う情報表示装置であることが好ましい。 In the present invention, the slave device is preferably an information display device that receives display data as the individual data and performs external display using LEDs.
本発明に係る情報通信システムの好適な実施形態を図面を用いて説明する。図1は、システムの概要を示す模式図である。 A preferred embodiment of an information communication system according to the present invention will be described with reference to the drawings. FIG. 1 is a schematic diagram showing an outline of the system.
<システムの構成>
マスター装置(親機)としてのリンクターミナル10が設けられており、RS485等のシリアル通信線により、複数台(例えば32台)の情報表示装置11と接続される。情報表示装置11は、スレーブ装置(子機)に相当する。情報表示装置11は、マトリクスLEDパネルを備えており、リンクターミナル10から表示データを受信すると、その表示データに基づいてLEDパネルに表示を行う。情報表示装置11としては、種々の実施形態が考えられるが、特定の形状・構造に限定されるものではない。リンクターミナル10は、ホストコンピュータ20(以下、ホストと省略)と接続されており、ホスト20から表示データの送信に関する指令信号を受信する。
<System configuration>
A
リンクターミナル10は、シリアル通信線で接続された全ての情報表示装置11と、平等に通信することが可能であり、予め設定された順序に基づき、データ通信をサイクル的に繰り返し行うことができる。予め設定された順序とは、例えば、図1に示す情報表示装置11において、11(1)→(2)→(3)→・・・→(n)→(1)→(2)・・・であり、情報表示装置11(1)から(n)までの1サイクル分の通信が終了すると、再び11(1)に戻ってデータ通信を繰り返す。このような通信順序については、ホスト20において設定可能であり、適宜設定変更も可能である。
The
リンクターミナル10と各情報表示装置11とは、このように絶えず通信を行うことで、お互いの動作状況を監視したり、必要なデータを送信・受信するようにしている。また、情報表示装置11では、LEDで情報を表示するものであるが、表示内容を変更する必要があるときは、リンクターミナル10から所望の表示データ(個別データに相当)が特定の情報表示装置11に対して送信される。この表示データの送信は、必要なときに必要な情報表示装置11に対して行われるものであり、常時行われるものではない。例えば、生産ラインにおいてトラブルが発生した場合は、その旨を表示させるための表示データを送信させる。
The
<システムの主要な機能>
図1に示す情報通信システムの主要な機能を図2のブロック図により説明する。ホスト20は、例えば、汎用パソコンにより構成することができ、リンクターミナル10に対する通信指令を行うための通信プログラム21がインストールされている。なお汎用パソコン以外のコンピュータを用いて、ホストコンピュータとしての機能を果たしてもよい。
<Main functions of the system>
The main functions of the information communication system shown in FIG. 1 will be described with reference to the block diagram of FIG. The
通信プログラム21の主要な機能を順番に説明する。送信先設定手段21aは、表示データを送信すべき情報表示装置11を設定する。設定される情報表示装置11は、n台のうちの1台もしくは2台以上であり、必要に応じて指定される。表示データ設定手段21b(個別データ設定手段に相当)は、指定された情報表示装置11に対して送信すべき表示データを設定する。設定は、例えば、キーボードやマウス等の入力操作部を利用して入力したり、予め用意しておいた表示データ群の中から特定の1つを選択するような方法で行われる。情報表示装置11が複数指定された場合は、夫々に対して異なる表示データを設定してもよいし、同じ表示データが設定されてもよい。すなわち、状況に応じて表示データの内容を自由に設定できることが好ましい。
The main functions of the
分割数設定手段21cは、表示データを送信する場合の表示データの分割数を設定する機能を有する。表示データのデータ量が多くなることもあり、かつ、1回のデータ通信で送信されるデータ量には制限があるため、表示データの量が多くなった場合には、前記制限内容に応じて分割して送信させるようにする。 The division number setting means 21c has a function of setting the division number of display data when display data is transmitted. Since the amount of display data may increase and the amount of data transmitted in a single data communication is limited, when the amount of display data increases, Send it in pieces.
通信指令手段21dは、送信先設定手段21a、表示データ設定手段21b、分割数設定手段21cにより設定されたデータに基づいて、リンクターミナル10に対して指令を行う。
The
次に、リンクターミナル10の主要な機能を説明する。記憶回路12には、各情報表示装置11へ送信すべきデータと、各情報表示装置11から受信したデータが記憶される。表示データ格納手段12aには、ホスト20からの指令により送信されてきた表示データが格納される。通信回路13は、リンクターミナル10と各情報表示装置11の間で通信を行うための回路である。停止コマンド送信手段13aは、各情報表示装置11に対して停止コマンドを送信する機能を有する。この停止コマンドを送信後、情報表示装置11への通信を一時的に停止する。復帰コマンド送信手段13bは、各情報表示装置11に対して復帰コマンドを送信する機能を有する。この復帰コマンドが送信されると、各情報表示装置11への通信停止状態を解除することができ、通常の通信状態に復帰させることができる。
Next, main functions of the
制御回路14は、記憶回路12と通信回路13に対する制御を行う電子回路である。送信制御手段14aは、前記停止コマンドや復帰コマンドを情報表示装置11に送信するように通信回路13に対する制御を行う。また、表示データ送信制御手段14bは、ホスト20からの指令に基づき、表示データを設定された分割数で送信するように制御を行う。
The
次に、情報表示装置11の主要な機能を説明する。記憶回路15は、リンクターミナル10から受信したデータと、リンクターミナル10へ送信すべきデータが記憶される。通信回路16は、リンクターミナル10と情報表示装置11の間で通信を行うための回路である。制御回路17は記憶回路15と通信回路16に対する制御を行う電子回路である。これら記憶回路15、通信回路16、制御回路17の構成については、基本的にリンクターミナル10と同じとすることができる。
Next, main functions of the
表示制御回路18は、記憶回路15に記憶されている表示データに基づいて、LED表示パネル19に所望の表示をさせる機能を有する。LED表示パネル19は、マトリクス状に配置されたLEDドットに対する点灯・消灯の制御を行うことで、所望の情報表示をさせることができる。
The
<表示データを送信するときの動作>
次に、図3により表示データを送信する場合の動作を説明する。表示データの送信を行う場合には、最初にホスト20からリンクターミナル10に対して、表示データを送信したい情報表示装置11、送信すべき表示データ、データの分割数に関する指令を与える。以下の説明では、情報表示装置11(1)に対してのみ表示データを送信する場合について説明する。すなわち、情報表示装置11(1)は第1スレーブ装置に該当し、残りの情報表示装置11(2)〜(n)は、第2スレーブ装置に該当する。
<Operation when sending display data>
Next, the operation in the case of transmitting display data will be described with reference to FIG. When transmitting display data, the
まず、リンクターミナル10から情報表示装置11(1)にコマンドc1を送信した後、情報表示装置11(2)〜(n)に対して停止コマンドc2〜cnを送信する。停止コマンドを受信した各情報表示装置11(2)〜(n)は、それに対する応答コマンドr2〜rnを返信する。これにより、情報表示装置11(2)〜(n)は、通信停止モードに移行する。通信停止モードでは、リンクターミナル10からのコマンドを受信しなくても、異常であるとはみなさない。
First, after the command c1 is transmitted from the
通信停止モードに移行すると、リンクターミナル10と指定された情報表示装置11(1)との間のみで、通信が行われ、コマンドc1に表示データが乗せられた状態で、表示データが送信される。表示データの送信は、予め設定された分割数(m)で分割されて行われる。
When the communication stop mode is entered, communication is performed only between the
設定された分割数(m)の通信が終了すると、表示データの送信が完了したことになり、情報表示装置11(2)〜(n)に対して復帰コマンドを送信する。これにより、通信停止モードが解除され、通常の通信モードに復帰する。 When communication for the set number of divisions (m) is completed, transmission of display data is completed, and a return command is transmitted to the information display devices 11 (2) to (n). As a result, the communication stop mode is canceled and the normal communication mode is restored.
図4は、情報表示装置11における動作フローチャートを示す図である。情報表示装置11は、リンクターミナル10から自機宛のコマンド受信を待つ(#20)。コマンドが停止コマンドが否かを判断する(#21)。停止コマンドでなければ、リンクターミナル10に対して応答コマンドを送信する(#22)。
FIG. 4 is a diagram showing an operation flowchart in the
停止コマンドの場合は、リンクターミナル10から自機宛のコマンド受信を待つ(#23)。このとき、コマンドは復帰コマンドか否かを判断する(#24)。復帰コマンドであった場合は、それに対する応答コマンドをリンクターミナル10に返信する。このように、停止コマンドを受信すると、その情報表示装置11は、復帰コマンドを受信するまで通信停止モードになり、復帰コマンドを受信すると、通常の通信モードに復帰する。
In the case of a stop command, it waits for a command received from the
なお、表示データを送信すべき情報表示装置11は1台に限定されるものではなく、n台以下の任意の数を設定することができる。また、図3における通信において、停止コマンドを送信する際に、コマンドには情報表示装置11を特定するIDデータが含まれている。従って、このIDデータにより、各情報表示装置11は自機宛のデータであるか否かを判断することができる。
Note that the number of
これに換えて、情報表示装置11(2)〜(n)の全てが認識できる停止コマンド(同一の停止コマンド)を送信するようにしてもよい。この場合の通信動作を図5により説明する。この場合、同時に情報表示装置11(2)〜(n)が停止コマンドを受信できる。この場合、同時に応答コマンドを送信することになるので、これを回避するため、情報表示装置11(2)〜(n)は、応答コマンドをリンクターミナル10に対して返信しないようにする。
Instead, a stop command (identical stop command) that can be recognized by all of the information display devices 11 (2) to (n) may be transmitted. The communication operation in this case will be described with reference to FIG. In this case, the information display devices 11 (2) to (n) can receive the stop command at the same time. In this case, since a response command is transmitted simultaneously, in order to avoid this, the information display apparatuses 11 (2) to 11 (n) do not return a response command to the
<効果>
以上のとおり、表示データの送信を行う場合、表示データを送信しない情報表示装置11とは通信を行わなくてすむので、表示データの送信を完了するまでの時間を短縮化することができる。また、停止コマンドを予め送信することにより、停止状態の情報表示装置11に対してコマンドを送信しなくても、異常であるという判断がされることはない。
<Effect>
As described above, when display data is transmitted, it is not necessary to communicate with the
次に、データをm回に分割して情報表示装置11に送信する場合の、データを送信終了するまでの所要時間を説明する。1台の情報表示装置11に対する通信時間はKとする。
Next, a description will be given of the time required until data transmission ends when data is divided into m times and transmitted to the
停止モードへの移行時間:n台×K時間=nK時間
表示データの転送時間:m回×K時間=mK時間
通常モードへの復帰時間:n台×K時間=nK時間
従って、トータルで2nK+mK 時間となる。図6に示す従来の通信方式では、mnK時間を要する。
Transition time to stop mode: n units x K time = nK time Display data transfer time: m times x K time = mK time Return time to normal mode: n units x K time = nK time Therefore, 2nK + mK time in total It becomes. The conventional communication method shown in FIG. 6 requires mnK time.
ここでm=100、n=10とすると、
従来の方式では、1000K時間、本発明による方式では、120K時間であり、データ転送に要する時間が1/8に短縮される。この時間短縮の効果は、表示データの量が大きいほど、また、接続される情報表示装置11の数が多いほど、大きくなる。
If m = 100 and n = 10,
The conventional method is 1000K hours, and the method according to the present invention is 120K hours, and the time required for data transfer is reduced to 1/8. The effect of shortening the time becomes larger as the amount of display data is larger and as the number of
<別実施形態>
本実施形態では、マスター装置とスレーブ装置の例として、リンクターミナルと情報表示装置の組み合わせをあげて説明したが、これに限定されるものではない。シリアル通信の具体例として、RS485を例示したが、これに限定されるものではなく、他の方式を用いてもよい。また、通信は無線であるか有線であるかは問わないものとする。
<Another embodiment>
In the present embodiment, a combination of a link terminal and an information display device has been described as an example of a master device and a slave device, but the present invention is not limited to this. Although RS485 was illustrated as a specific example of serial communication, it is not limited to this, and other methods may be used. In addition, it does not matter whether the communication is wireless or wired.
10 リンクターミナル
11 情報表示装置
12 記憶回路
12a 表示データ格納手段
13 通信回路
13a 停止コマンド送信手段
13b 復帰コマンド送信手段
14 制御回路
14a 送信制御手段
14b 表示データ送信制御手段
15 記憶回路
16 通信回路
17 制御回路
18 表示制御回路
19 LED表示パネル
20 ホストコンピュータ
21 通信プログラム
21a 送信先設定手段
21b 表示データ設定手段
21c 分割数設定手段
21d 通信指令手段
DESCRIPTION OF
Claims (6)
前記マスター装置が、
複数のスレーブ装置のうちの特定の第1スレーブ装置に対して送信すべき個別データを格納する個別データ格納手段と、
前記第1スレーブ装置以外の第2スレーブ装置に対して停止コマンドを送信する停止コマンド送信手段と、
前記第2スレーブ装置に対して復帰コマンドを送信する復帰コマンド送信手段と、
第1スレーブ装置に対する表示データの送信開始に際して、第2スレーブ装置のすべてに対して停止コマンドを送信すると共に、個別データの送信終了に際して、第2スレーブ装置のすべてに対して復帰コマンドを送信させる送信制御手段とを備えていることを特徴とする情報通信システム。 An information communication system in which data communication is repeated cyclically based on a preset order between one master device and a plurality of slave devices,
The master device is
Individual data storage means for storing individual data to be transmitted to a specific first slave device among a plurality of slave devices;
Stop command transmitting means for transmitting a stop command to a second slave device other than the first slave device;
Return command transmission means for transmitting a return command to the second slave device;
At the start of display data transmission to the first slave device, a stop command is transmitted to all of the second slave devices, and at the end of transmission of the individual data, transmission to transmit a return command to all of the second slave devices. An information communication system comprising control means.
個別データを送信すべきスレーブ装置を設定する送信先設定手段と、
送信すべき個別データを設定する個別データ設定手段と、
送信される個別データの分割数を設定する分割数設定手段と、
これら送信先設定手段、個別データ設定手段、分割数設定手段による設定データに基づいて、マスター装置に対して指令を行う通信指令手段とを備えていることを特徴とする請求項1に記載の情報通信システム。 A host computer connected to the master device is
Destination setting means for setting a slave device to which individual data is to be transmitted;
Individual data setting means for setting individual data to be transmitted;
A division number setting means for setting the division number of the individual data to be transmitted;
2. The information according to claim 1, further comprising: a communication command unit that commands the master device based on the setting data by the transmission destination setting unit, the individual data setting unit, and the division number setting unit. Communications system.
複数のスレーブ装置のうちの特定の第1スレーブ装置に対して送信すべき個別データを格納する個別データ格納手段と、
前記第1スレーブ装置以外の第2スレーブ装置に対して停止コマンドを送信する停止コマンド送信手段と、
前記第2スレーブ装置に対して復帰コマンドを送信する復帰コマンド送信手段と、
第1スレーブ装置に対する個別データの送信開始に際して、第2スレーブ装置のすべてに対して停止コマンドを送信すると共に、個別データの送信終了に際して、第2スレーブ装置のすべてに対して復帰コマンドを送信させる送信制御手段とを備えていることを特徴とするマスター装置。 A master device constituting the information communication system according to claim 1 or 2,
Individual data storage means for storing individual data to be transmitted to a specific first slave device among a plurality of slave devices;
Stop command transmitting means for transmitting a stop command to a second slave device other than the first slave device;
Return command transmission means for transmitting a return command to the second slave device;
At the start of transmission of individual data to the first slave device, a stop command is transmitted to all of the second slave devices, and at the end of transmission of the individual data, transmission to send a return command to all of the second slave devices And a control device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2005115936A JP2006295710A (en) | 2005-04-13 | 2005-04-13 | Information communication system and master unit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2005115936A JP2006295710A (en) | 2005-04-13 | 2005-04-13 | Information communication system and master unit |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2006295710A true JP2006295710A (en) | 2006-10-26 |
Family
ID=37415768
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2005115936A Pending JP2006295710A (en) | 2005-04-13 | 2005-04-13 | Information communication system and master unit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2006295710A (en) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH02274037A (en) * | 1989-04-14 | 1990-11-08 | Matsushita Electric Ind Co Ltd | Communication test method and communication control device used in the test method |
| JP2004242031A (en) * | 2003-02-05 | 2004-08-26 | Fuji Electric Fa Components & Systems Co Ltd | Communications system |
-
2005
- 2005-04-13 JP JP2005115936A patent/JP2006295710A/en active Pending
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH02274037A (en) * | 1989-04-14 | 1990-11-08 | Matsushita Electric Ind Co Ltd | Communication test method and communication control device used in the test method |
| JP2004242031A (en) * | 2003-02-05 | 2004-08-26 | Fuji Electric Fa Components & Systems Co Ltd | Communications system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9836038B2 (en) | Control device, and control method for link activating and deactivating | |
| US7852790B2 (en) | Communication master station startup period control method | |
| JP5408445B2 (en) | Programmable controller and master communication circuit | |
| US11233674B2 (en) | Processing of process data | |
| CA2627492A1 (en) | Modular avionics system of an aircraft | |
| US10033546B2 (en) | Method and system for reprogramming | |
| CN102662383B (en) | Realizing method for controlling chain of chain control system | |
| JP5570556B2 (en) | Numerical control device that communicates with IO unit | |
| US5896509A (en) | Network system for a programmable controller | |
| JP2006295710A (en) | Information communication system and master unit | |
| US10108214B2 (en) | Automation plant having a reduced-power stoppage operating mode | |
| JP2007027889A (en) | Method for teaching network configuration information in PLC system | |
| JP4458279B2 (en) | Programmable controller system communication method | |
| CN114301776A (en) | Function panel, function panel configuration system, and function panel configuration method | |
| JP2006171833A (en) | PLC data exchange system and control method of PLC data exchange system | |
| CN103235570A (en) | Monitoring message communication system of distributed production equipment | |
| JP4458278B2 (en) | Communication cycle control method | |
| JP4407838B2 (en) | Communication master station startup control method | |
| JP2017010295A (en) | Line system | |
| JP2014222444A (en) | Numerical control device and communication method | |
| JP6321393B2 (en) | Master-slave relay device and relay method thereof | |
| JP7608880B2 (en) | Network equipment and network systems | |
| CN103825753A (en) | Server system | |
| CN111245693A (en) | Time-sharing data transmission system and transmission method | |
| WO2022190508A1 (en) | Master device, slave device, control system, and control method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Effective date: 20070926 Free format text: JAPANESE INTERMEDIATE CODE: A621 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20091222 |
|
| A131 | Notification of reasons for refusal |
Effective date: 20100113 Free format text: JAPANESE INTERMEDIATE CODE: A131 |
|
| A02 | Decision of refusal |
Effective date: 20100512 Free format text: JAPANESE INTERMEDIATE CODE: A02 |