JP4280140B2 - Communication system, electronic equipment - Google Patents
Communication system, electronic equipment Download PDFInfo
- Publication number
- JP4280140B2 JP4280140B2 JP2003348098A JP2003348098A JP4280140B2 JP 4280140 B2 JP4280140 B2 JP 4280140B2 JP 2003348098 A JP2003348098 A JP 2003348098A JP 2003348098 A JP2003348098 A JP 2003348098A JP 4280140 B2 JP4280140 B2 JP 4280140B2
- Authority
- JP
- Japan
- Prior art keywords
- slave
- slave device
- data
- control signal
- host device
- 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.)
- Expired - Lifetime
Links
- 238000004891 communication Methods 0.000 title claims description 82
- 230000005540 biological transmission Effects 0.000 claims description 48
- 238000012546 transfer Methods 0.000 claims description 44
- 238000000034 method Methods 0.000 claims description 20
- 238000004364 calculation method Methods 0.000 claims description 14
- 230000004044 response Effects 0.000 claims description 7
- 238000005259 measurement Methods 0.000 description 25
- 238000001514 detection method Methods 0.000 description 10
- 238000006073 displacement reaction Methods 0.000 description 10
- 238000012545 processing Methods 0.000 description 6
- 238000011161 development Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 238000009825 accumulation Methods 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
Images
Landscapes
- Small-Scale Networks (AREA)
Description
本発明は、例えばRS−232C伝送方式に基づいて互いにデイジーチェーン接続されたスレーブ機器、ホスト機器間でシリアル通信を行う通信システム、並びに電子機器に関する。 The present invention relates to a slave device that is daisy chain connected to each other based on, for example, the RS-232C transmission method, a communication system that performs serial communication between host devices, and an electronic device.
従来より、工作機械や半導体製造装置等の可動部分における相対移動位置を検出する装置として、測定値を光学式或いは磁気式の検出手段により電気信号として検出する変位検出装置が知られている。特にこのような変位検出装置を所望の測定対象に対して複数箇所配設し、各変位検出装置より取得された測定データを収集処理することにより、多角的な形状解析を実現し得る測定システムも提案されている(例えば、特許文献1、2参照。)。かかる場合において、通常、各変位検出装置とRS−232Cケーブルを介して接続されたホスト機器に上記測定データを蓄積して、これを解析する。
2. Description of the Related Art Conventionally, as a device for detecting a relative movement position in a movable part such as a machine tool or a semiconductor manufacturing apparatus, a displacement detection device that detects a measurement value as an electric signal by an optical or magnetic detection means is known. In particular, there is also a measurement system that can realize a multi-faceted shape analysis by disposing a plurality of such displacement detection devices on a desired measurement object and collecting and processing measurement data acquired from each displacement detection device. It has been proposed (see, for example,
ちなみにこのRS−232C伝送方式は、基本的に1対1の通信である。このため、複数台の変位検出装置間で通信を行う場合には、以下に示す方法に基づいてこれを実現する必要があった。 Incidentally, this RS-232C transmission system is basically one-to-one communication. For this reason, when communicating between a plurality of displacement detection devices, it has been necessary to realize this based on the following method.
図5は、ホスト機器61と変位検出装置63における各ユニット63_1〜63_n間にマルチプレクサ(切換器)62を導入した従来の測定システム6を示している。ユニット63_1〜63_n毎に得られた測定データは、RS−232C伝送方式の下、マルチプレクサ62を介してホスト機器61へ転送されることになる。この測定システム6において、各ユニット63_1〜63_nは、通常のRS−232C伝送方式に基づく通信機能を有していればよく、大幅なシステム変更が要求されることはないが、切換器62の導入によるコストの増大を免れることができず、また切換時におけるタイムロスが発生するため、システム全体の高速化を図ることができなくなるという欠点があった。
FIG. 5 shows a conventional measurement system 6 in which a multiplexer (switcher) 62 is introduced between the units 63_1 to 63_n in the
ちなみに、この測定システム6の発展として、ホスト機器61に複数のRS−232C通信機能を持たせ、切換器62そのものをホスト機器61に内蔵してしまう方式や、各ユニット63_1〜63_nに、切換器62の機能を実装する方式が案出されているが、いずれも上述した問題点を解決するには至らなかった。
Incidentally, as a development of the measurement system 6, a method in which the
図6は、1対Nの通信ができるRS−485伝送方式を用いる従来の測定システム7を示している。この測定システム7では、ホスト機器71に対してRS−232Cケーブルを介して接続された信号変換器72と、この信号変換器72との間でRS−485通信を実現すべくRS−485ケーブルがそれぞれ接続されたn台の信号変換器73_1〜73_nと、各信号変換器73_1〜73_nに対してRS−232Cケーブルを介して接続された変位検出装置74における各ユニット74_1〜74_nを備えている。ユニット74_1〜74_n毎に得られた測定データは、RS−232C伝送方式の下、各信号変換器73_1〜73_nへ送信され、更にRS−485伝送方式の下、信号変換器72へ転送される。この信号変換器72へ転送された各測定データは、さらにRS−232C伝送方式の下、ホスト機器71へ転送されることになる。
FIG. 6 shows a
この測定システム7においても、各ユニット74_1〜74_nは、通常のRS−232C伝送方式に基づく通信機能を有していればよく、大幅なシステム変更が要求されることはないが、複数台の信号変換器73_1〜73_nの配設が必要となることから、コストの増大を免れることができないという欠点がある。
In this
ちなみに、この測定システム7の発展として、ホスト機器71にRS−485通信機能を持たせ、信号変換器72そのものをホスト機器71に内蔵してしまう方式や、各ユニット74_1〜74_nにRS−485通信機能を持たせる方式も案出されているが、いずれも上述した問題点を解決するには至らず、またRS−232C伝送方式を採用する機器との間で互換性がとれなくなるという問題も新たに生じる。
Incidentally, as a development of this
図7は、RS−232C通信の機能とは別にリンク通信機能を変位検出装置74における各ユニット74_1〜74_nに持たせた従来の測定システム8を示している。
FIG. 7 shows a
この測定システム8では、ホスト機器81に対してRS−232Cケーブルを介して接続されたマスターユニット82と、この信号変換器82との間でRS−232C通信を実現すべくRS−232Cケーブルがそれぞれ接続されたマスターユニット82と、マスターユニット82から順にデイジ−チェーン接続された変位検出装置83における各ユニット83_1〜83_nを備えている。
In this
この測定システム8は従来において最も頻繁に用いられているが、各ユニット83_1〜83_nには、通常のRS−232C通信機能に加えて、リンク通信の機能を別途実装する必要があるため、コスト負担は増大する。またマスターユニット82は、ホスト機器81と変位検出装置83とを中継する機能を備える必要があり、通常のRS−232C通信と比較して回路やソフトウェアに加わる負担は増大し、迅速なデータ通信を実現することができないという問題点もある。
Although this
そこで、本発明は、上述した問題点に鑑みて案出されたものであり、例えばRS−232C伝送方式に基づいて互いにデイジーチェーン接続されたスレーブ機器、ホスト機器間でシリアル通信を行う通信システム、並びに電子機器において、特に上述の如きマスターユニットの負担を軽減させ、極めてシンプルな通信システムとすることにより大幅なコスト削減を図ることを目的とする。 Therefore, the present invention has been devised in view of the above-described problems, for example, a slave device that is daisy chain connected to each other based on the RS-232C transmission method, a communication system that performs serial communication between host devices, In addition, in an electronic device, it is an object of the present invention to particularly reduce costs by reducing the burden on the master unit as described above and making it an extremely simple communication system.
本発明を適用した通信システムは、末端に位置する最下位スレーブ機器とホスト機器との間に少なくとも1つのスレーブ機器がデイジーチェーン接続されて構成される通信システムにおいて、前記ホスト機器は、接続されたスレーブ機器に対してスレーブ制御信号を送信し、前記ホスト機器と前記最下位スレーブ機器との間に接続されたスレーブ機器は、当該スレーブ機器と前記ホスト機器との間に接続された上位スレーブ機器又は前記ホスト機器から第1の制御用端子を介して受信したスレーブ制御信号に応じて、少なくとも当該スレーブ機器内で生成されたデータを前記スレーブ制御信号の送信元である上位スレーブ機器又は前記ホスト機器へ転送し、また前記データの転送状況に基づいて第1の論理信号を生成する制御手段と、前記スレーブ制御信号と前記制御手段により生成された前記第1の論理信号との論理積を算出する第1の論理積算出手段と、前記第1の論理算出手段により算出された論理積を当該スレーブ機器よりも下位側に接続された下位スレーブ機器に対するスレーブ制御信号として、前記下位スレーブ機器へ送信する送信手段と、当該スレーブ機器よりも前記最下位スレーブ機器側に接続された下位スレーブ機器から送信されたスレーブ制御信号と、前記制御手段により生成された第2の論理信号との論理積を算出する第2の論理積算出手段とを備え、前記制御手段は、前記下位スレーブ機器から第2の制御用端子を介して受信したスレーブ制御信号に応じて、少なくとも当該スレーブ機器内で生成されたデータを前記上位スレーブ機器又はホスト機器へ転送し、また前記データの転送状況に基づいて前記第2の論理信号を生成し、更に、前記データの前記上位スレーブ機器又は前記ホスト機器への転送終了時に、データの転送状況に応じた第1の論理信号を生成し、前記送信手段は、前記第2の論理積算出手段により算出された論理積を前記上位スレーブ機器又はホスト機器に対するスレーブ制御信号として、前記上位スレーブ機器又はホスト機器へ送信し、当該スレーブ機器と前記ホスト機器との間に接続された上位スレーブ機器又は前記ホスト機器にデータを出力する場合には、前記第1の論理積算出手段により算出された論理積を、下位スレーブ機器に対してデータの転送を禁止することを示すスレーブ制御信号として下位スレーブ機器に送信し、当該データの転送が終了した場合に、前記第1の論理積算出手段により算出された論理積を、下位スレーブ機器に対してデータの転送を許可することを示すスレーブ制御信号として下位スレーブ機器に送信すると共に、当該データの転送が終了した場合に、下位スレーブ機器の中でデータの送信を行うスレーブ機器が有ることを示すスレーブ制御信号を受け取った場合に、データの出力に対する優先権を下位スレーブ機器に移すようにして、より上位にある上位スレーブ機器に対して、前記データの出力における優先権を持たせた状態で前記データをシリアル通信により転送することを特徴とする。 A communication system to which the present invention is applied is a communication system in which at least one slave device is connected in a daisy chain between the lowest slave device located at the end and the host device, and the host device is connected A slave device that transmits a slave control signal to the slave device and is connected between the host device and the lowest slave device is an upper slave device connected between the slave device and the host device or In response to the slave control signal received from the host device via the first control terminal, at least data generated in the slave device is transmitted to the host slave device or the host device that is the transmission source of the slave control signal . Control means for transferring and generating a first logic signal based on the data transfer status; and Over Bed control signal and the first logical product calculation means and the first of the slave a logical product calculated by the logic calculation means for calculating a logical product of the first logic signal generated by said control means as a slave control signal for the lower slave devices connected to the lower side of the device, transmitting means for transmitting to the front Symbol lower slave device, transmitted from the lower slave device connected to the least significant slave device side of the slave device Second logical product calculating means for calculating a logical product of the slave control signal thus generated and the second logical signal generated by the control means, wherein the control means receives a second logical product from the lower slave device. In response to the slave control signal received via the control terminal, at least the data generated in the slave device is transferred to the upper slave device or host device. And generating the second logic signal based on the data transfer status, and further, when the transfer of the data to the upper slave device or the host device is completed, the first logic signal corresponding to the data transfer status is generated. Generating a logical signal, and the transmission means transmits the logical product calculated by the second logical product calculation means to the upper slave device or host device as a slave control signal for the upper slave device or host device, In the case of outputting data to the upper slave device or the host device connected between the slave device and the host device, the logical product calculated by the first logical product calculation means is sent to the lower slave device. For the slave control signal indicating to prohibit the transfer of data to the lower slave device, when the data transfer is completed, When the logical product calculated by the first logical product calculating means is transmitted to the lower slave device as a slave control signal indicating that data transfer is permitted to the lower slave device, and the data transfer is completed. to, when receiving the slave control signal indicating that the slave device there for transmitting data in a lower slave device, is a priority to the output of the data so as to move the lower slave device, to a higher-level The data is transferred by serial communication in a state in which priority is given to the output of the data to a slave device .
また、本発明を適用した電子機器は、末端に位置する最下位スレーブ機器とホスト機器との間にデイジーチェーン接続された電子機器において、当該電子機器と前記ホスト機器との間に接続された上位スレーブ機器又は前記ホスト機器から第1の制御用端子を介して受信したスレーブ制御信号に応じて、少なくとも当該当該電子機器内で生成されたデータを前記スレーブ制御信号の送信元である上位スレーブ機器又は前記ホスト機器へ転送し、また前記データの転送状況に基づいて第1の論理信号を生成する制御手段と、前記スレーブ制御信号と前記制御手段により生成された前記第1の論理信号との論理積を算出する第1の論理積算出手段と、前記第1の論理算出手段により算出された論理積を当該電子機器よりも前記最下位スレーブ機器側に接続された下位スレーブ機器に対するスレーブ制御信号として、前記下位スレーブ機器へ送信する送信手段と、当該電子機器よりも前記最下位スレーブ機器側に接続された下位スレーブ機器から送信されたスレーブ制御信号と、前記制御手段により生成された第2の論理信号との論理積を算出する第2の論理積算出手段とを備え、前記制御手段は、前記下位スレーブ機器から第2の制御用端子を介して受信したスレーブ制御信号に応じて、少なくとも当該電子機器内で生成されたデータを前記上位スレーブ機器又はホスト機器へ転送し、また前記データの転送状況に基づいて前記第2の論理信号を生成し、更に、前記データの前記上位スレーブ機器又は前記ホスト機器への転送終了時に、データの転送状況に応じた第1の論理信号を生成し、前記送信手段は、前記第2の論理積算出手段により算出された論理積を前記上位スレーブ機器又はホスト機器に対するスレーブ制御信号として、前記上位スレーブ機器又はホスト機器へ送信し、前記制御手段は、当該電子機器と前記ホスト機器との間に接続された上位スレーブ機器又は前記ホスト機器にデータを出力する場合には、前記第1の論理積算出手段により算出された論理積を、下位スレーブ機器に対してデータの転送を禁止することを示すスレーブ制御信号として下位スレーブ機器に送信し、当該データの転送が終了した場合に、前記第1の論理積算出手段により算出された論理積を、下位スレーブ機器に対してデータの転送を許可することを示すスレーブ制御信号として下位スレーブ機器に送信すると共に、当該データの転送が終了した場合に、下位スレーブ機器の中でデータの送信を行うスレーブ機器が有ることを示すスレーブ制御信号を受け取った場合に、データの出力に対する優先権を下位スレーブ機器に移すようにして、より上位にある上位スレーブ機器に対して、前記データの出力における優先権を持たせた状態で前記データをシリアル通信により転送することを特徴とする。 An electronic device to which the present invention is applied is an electronic device connected in a daisy chain between the lowest slave device located at the end and the host device, and the upper device connected between the electronic device and the host device. In accordance with a slave control signal received from the slave device or the host device via the first control terminal, at least data generated in the electronic device is a higher-level slave device that is a transmission source of the slave control signal or Control means for transferring to the host device and generating a first logic signal based on the data transfer status, and a logical product of the slave control signal and the first logic signal generated by the control means first aND calculation means and the least significant slave device than the electronic device a logical product calculated by the first logic calculating means for calculating the As a slave control signal for the connected subordinate slaves, the transmission means and the slave control signal transmitted from the lower slave device than the electronic apparatus connected to the least significant slave device side to be transmitted to the front Symbol lower slave device And second logical product calculating means for calculating a logical product with the second logical signal generated by the control means, wherein the control means is connected to the lower slave device via a second control terminal. In response to the received slave control signal, at least the data generated in the electronic device is transferred to the host slave device or the host device, and the second logic signal is generated based on the data transfer status. Further, when the transfer of the data to the upper slave device or the host device is completed, a first logic signal corresponding to the data transfer status is generated. The transmission means transmits the logical product calculated by the second logical product calculation means to the upper slave device or host device as a slave control signal for the upper slave device or host device, and the control means includes: In the case of outputting data to the upper slave device or the host device connected between the electronic device and the host device, the logical product calculated by the first logical product calculation means is sent to the lower slave device. When the data transfer is completed, the logical product calculated by the first logical product calculation means is transmitted to the lower slave device as a slave control signal indicating that data transfer is prohibited. Sends data to the slave slave device as a slave control signal indicating that the device is allowed to transfer data, and transfers the data. There when completed, when receiving the slave control signal indicating that the slave device there for transmitting data in a lower slave device, so as to transfer the priority to output the data to a lower slave device, and more The data is transferred by serial communication in a state where priority is given to the output of the data to a higher order slave device .
本発明を適用した通信システム、電子機器では、上位スレーブ機器又はホスト機器からの制御信号と、データの転送状況に基づいて生成した制御信号との論理積を算出することにより、上位スレーブ機器から優先的に送信線の使用権を与えることができ、簡単な構成でスレーブ機器間のリンク通信の混信を防止することができ、ひいては、極めてシンプルなシステム構成とすることにより大幅なコスト削減を図ることが可能となる。 In communication systems and electronic devices to which the present invention is applied, priority is given to the upper slave device by calculating the logical product of the control signal from the upper slave device or host device and the control signal generated based on the data transfer status. The right to use the transmission line can be given automatically, and interference of link communication between slave devices can be prevented with a simple configuration, and as a result, the cost can be greatly reduced by using an extremely simple system configuration. Is possible.
以下、本発明の実施の形態について図面を参照しながら詳細に説明する。本発明を適用した通信システム1は、例えば図1に示すように、所望の測定対象に対して複数箇所に配設された測長ユニット13_1〜13_nからデータを取得するスレーブ機器12_1〜12_nと、上記各スレーブ機器12_1〜12_nを制御するためのホスト機器15とが例えばRS(Recommended Standard)−232C伝送方式等に基づくネットワークケーブルを介してデイジーチェーン接続されている。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. The
測長ユニット13_1〜13_nは、工作機械や半導体製造装置等の可動部分における相対移動位置を検出する装置であり、例えば測定値を光学式或いは磁気式の検出手段により電気信号として検出するゲージ、スケール、エンコーダ等である。ちなみに、この測長ユニット13_1〜13_nは、温度、湿度、応力、光量等を計測して、これを電気信号に変換するセンサであってもよい。これら測長ユニット13_1〜13_nにより検出された各電気信号は、接続された各スレーブ機器12_1〜12_nへ供給されることになる。 The length measuring units 13_1 to 13_n are devices for detecting a relative movement position in a movable part such as a machine tool or a semiconductor manufacturing apparatus. For example, a gauge or a scale for detecting a measurement value as an electric signal by an optical or magnetic detection means. And an encoder. Incidentally, the length measurement units 13_1 to 13_n may be sensors that measure temperature, humidity, stress, light quantity, etc., and convert them into electrical signals. Each electrical signal detected by the length measuring units 13_1 to 13_n is supplied to each connected slave device 12_1 to 12_n.
スレーブ機器12_1〜12_nは、各測長ユニット13_1〜13_nから供給される電気信号をデータ化して、これをホスト機器15等へ送信する。このスレーブ機器12_1は、ホスト機器とスレーブ機器12_2との中間にデイジーチェーン接続されている。また、スレーブ機器12_2は、スレーブ機器12_1と、スレーブ機器12_2の中間にデイジーチェーン接続されている。即ち、各スレーブ機器12は、ホスト機器15、又は隣接するスレーブ機器12のうちよりホスト機器15に近いスレーブ機器12(以下、このスレーブ機器12を上位スレーブ機器という。)に一端が接続され、また隣接するスレーブ機器12のうちよりホスト機器15からよりホスト機器から遠隔にあるスレーブ機器12(以下、このスレーブ機器12を下位スレーブ機器という。)に他端が接続されている。
The slave devices 12_1 to 12_n convert the electrical signals supplied from the length measuring units 13_1 to 13_n into data, and transmit the data to the
各スレーブ機器12は、ホスト機器15に対して、測長ユニット13からの電気信号に基づくデータTXDを送信する場合には、先ず、接続された上位スレーブ機器に対してこれを送信する。データTXDが送信された当該上位スレーブ機器は、更に上位にあるスレーブ機器12に対してこれを送信し、順々にホスト機器15へ伝送してゆく。また各スレーブ機器12は、下位スレーブ機器からのデータTXDが送信された場合には、これをそのまま上位スレーブ機器へ渡すことにより、下位スレーブ機器,ホスト機器15間におけるデータTXDの通信を実現することが可能となる。
When each slave device 12 transmits data TXD based on the electrical signal from the length measurement unit 13 to the
また各スレーブ機器12_1〜12_nは、ホスト機器15からデータRXDが送信される。かかる場合においても、各スレーブ機器12は、上位スレーブ機器を介してデータRXDが送信されることになる。また下位スレーブ機器に向けて送信されてきたデータRXDに関しては、これをそのまま当該下位スレーブ機器へ渡すことにより、下位スレーブ機器,ホスト機器15間におけるデータRXDの通信を実現することが可能となる。
The slave devices 12_1 to 12_n receive data RXD from the
更に、このスレーブ機器12_1〜12_nは、下位スレーブに対してデータの送受信を許可し、或いは抑制するための制御信号ESOや、上位スレーブやホスト機器15に対しての制御情報が含まれる制御信号EEOを送信する。なお、スレーブ機器12の構成の詳細については、後述する。なお、このスレーブ機器12は、上述した測長ユニット13とを一体化されることにより、測長機能を有するようにしてもよい。
Further, the slave devices 12_1 to 12_n allow a control signal ESO for permitting or suppressing transmission / reception of data to / from a lower slave and a control signal EEO including control information for the upper slave or the
ホスト機器15は、例えばパーソナルコンピュータ(PC)等の電子機器により構成され、スレーブ機器12から伝送されるデータを記録し、また記録したデータにつき図示しないディスプレイを介してユーザに表示する。またこのホスト機器15は、ユーザから所望のデータの表示につき要求された場合には、記録したデータの中から最適なものを選択してこれを表示するように制御する。このホスト機器15は、この通信システム1全体を制御するためのいわゆる中央制御装置としての役割も担い、データの送受信を許可し、或いは抑制するための制御信号CTSを各スレーブ機器12へ供給する。
The
ちなみに、上述した各スレーブ機器12_1〜12_nでは、インターフェース部に限定して記述しているが、実際の回路では、スレーブ機器12の内部回路間で入出力する信号と、RS−232C伝送方式下における信号のレベルは異なる。このため各スレーブ機器12_1〜12_nにおける入出力端において所定のドライバ回路を設けるようにしてもよい。 Incidentally, in each of the slave devices 12_1 to 12_n described above, the description is limited to the interface unit. However, in an actual circuit, signals input / output between the internal circuits of the slave device 12 and the RS-232C transmission scheme are used. The signal level is different. Therefore, a predetermined driver circuit may be provided at the input / output terminals of the slave devices 12_1 to 12_n.
次に、スレーブ機器12の構成について、スレーブ機器12_1、12_2を例にとり、図2を用いて詳細に説明する。 Next, the configuration of the slave device 12 will be described in detail with reference to FIG. 2 taking the slave devices 12_1 and 12_2 as an example.
スレーブ機器12_1は、MPU(Micro Processing Unit)21_1と、MPU21_1に接続された送信制御部22_1と、第1のAND回路31_1と、第2のAND回路32_1と、第3のAND回路33_1と、第4のAND回路34_1とを備えている。またスレーブ機器12_2は、MPU(Micro Processing Unit)21_2と、MPU21_2に接続された送信制御部22_2と、第1のAND回路31_2と、第2のAND回路32_2と、第3のAND回路33_2と、第4のAND回路34_2とを備えている。 The slave device 12_1 includes an MPU (Micro Processing Unit) 21_1, a transmission control unit 22_1 connected to the MPU 21_1, a first AND circuit 31_1, a second AND circuit 32_1, a third AND circuit 33_1, 4 AND circuit 34_1. The slave device 12_2 includes an MPU (Micro Processing Unit) 21_2, a transmission control unit 22_2 connected to the MPU 21_2, a first AND circuit 31_2, a second AND circuit 32_2, a third AND circuit 33_2, And a fourth AND circuit 34_2.
MPU21は、スレーブ機器12全体を制御する中央演算ユニットであり、図示しないデータバスを介して、実行すべき制御プログラムを格納するROMやデータの蓄積や展開等に使用する作業領域としてのDRAM等が接続される。MPU21は、測長ユニット12からの電気信号が供給され、これをデータ化する。 The MPU 21 is a central processing unit that controls the entire slave device 12, and includes a ROM for storing a control program to be executed, a DRAM as a work area used for data accumulation, development, and the like via a data bus (not shown). Connected. The MPU 21 is supplied with an electrical signal from the length measurement unit 12 and converts it into data.
また、各MPU21_nには、データTXDを出力するためのTXD出力端子41_nと、データRXDを入力するためのRXD入力端子42_nと、ホスト機器15に対する制御信号RTSを出力するためのRTS出力端子43_nと、ホスト機器15から送信される制御信号CTSを受信するためのCTS入力端子44_1と、制御信号ESOを出力するためのESO出力端子45_nと、EEO制御信号を出力するためのEEO出力端子46_nと、EEO制御信号を入力するためのEEO入力端子47_nと、下位スレーブ機器からのデータTXDを入力するためのTXD入力端子48_nとを備えている。
Each MPU 21_n includes a TXD output terminal 41_n for outputting data TXD, an RXD input terminal 42_n for inputting data RXD, and an RTS output terminal 43_n for outputting a control signal RTS for the
第1のAND回路31_1は、ホスト機器15から送信された制御信号CTSと、MPU21_1からESO出力端子45_1を介して出力される制御信号ESOとの論理積を算出する。また第2のAND回路32_1は、MPU21_1からRTS出力端子43_1を介して出力される制御信号RTSと、第2のスレーブ機器12_2から第2のAND回路32_2を介して出力される制御信号RTSとの論理積を算出する。また第3のAND回路33_1は、MPU21_1からEEO出力端子46_1を介して出力される制御信号EEOと、スレーブ機器12_2から第3のAND回路33_2を介して出力される制御信号EEOとの論理積を算出する。また 第4のAND回路34_1は、TXD出力端子41_1を介してMPU21_1から出力されるデータTXDと、スレーブ機器12_2から第4のAND回路34_2を介して出力されるデータTXDとの論理積を算出する。算出された各論理積は、送信制御部22_1によりタイミング制御されてホスト機器15やスレーブ機器12_2へ送信される。
The first AND circuit 31_1 calculates a logical product of the control signal CTS transmitted from the
同様に、第1のAND回路31_2は、スレーブ機器12_1から送信された制御信号ESO(CTS)と、MPU21_2からESO出力端子45_2を介して出力される制御信号ESOとの論理積を算出する。また第2のAND回路32_2は、MPU21_2からRTS出力端子43_2を介して出力される制御信号RTSと、下位スレーブ機器から出力される制御信号RTSとの論理積を算出する。また第3のAND回路33_2は、MPU21_2からEEO出力端子46_2介して出力される制御信号EEOと、下位スレーブ機器から出力される制御信号EEOとの論理積を算出する。また 第4のAND回路34_2は、TXD出力端子41_2を介してMPU21_2から出力されるデータTXDと、下位スレーブ機器から出力されるデータTXDとの論理積を算出する。算出された各論理積は、送信制御部22_2によりタイミング制御されてスレーブ機器12_1や下位スレーブ機器へ送信される。 Similarly, the first AND circuit 31_2 calculates a logical product of the control signal ESO (CTS) transmitted from the slave device 12_1 and the control signal ESO output from the MPU 21_2 via the ESO output terminal 45_2. The second AND circuit 32_2 calculates a logical product of the control signal RTS output from the MPU 21_2 via the RTS output terminal 43_2 and the control signal RTS output from the lower slave device. The third AND circuit 33_2 calculates the logical product of the control signal EEO output from the MPU 21_2 via the EEO output terminal 46_2 and the control signal EEO output from the lower slave device. The fourth AND circuit 34_2 calculates a logical product of the data TXD output from the MPU 21_2 and the data TXD output from the lower slave device via the TXD output terminal 41_2. Each calculated logical product is subjected to timing control by the transmission control unit 22_2 and transmitted to the slave device 12_1 and the lower slave device.
このような通信システム1において、各スレーブ機器12を制御するMPU21は、外部から送信される制御信号ESO(CTS)、制御信号EEOに基づいて、データRXD,TXDを送受信する。
In such a
即ち、本発明を適用した通信システム1では、通常のデイジーチェーン接続の下、データを送受信するシステムに加えて、更にMPU21に対して制御信号ESO(CTS)、制御信号EEOを入出力するための各端子43_n〜47_nを新たに割り当てることが必須となる。
That is, in the
ちなみに、この制御信号ESO,EEOは、それぞれ制御信号CTS,RTSをアレンジしたものである。制御信号CTSが通信システムの最上位であるホスト機器15から下位のスレーブ機器12に向けて出力されるのに対して、EEO信号は、下位スレーブ機器から上位スレーブ機器に向けて出力される。
Incidentally, the control signals ESO and EEO are obtained by arranging the control signals CTS and RTS, respectively. The control signal CTS is output from the
各スレーブ機器12は、ホスト機器15又は上位スレーブ機器から送信される制御信号CTSや制御信号ESOが禁止の場合(Lowの場合)、自身から各データTXDの出力を禁止する。即ち、かかる禁止を示す制御信号CTS,ESOを受信したスレーブ機器12は、仮にホスト機器15又は上位スレーブ機器に対して出力を望むデータTXDがあっても、出力待ち状態となる。また、各スレーブ機器12は、下位スレーブ機器から送信される制御信号EEOが“禁止”を示す場合(Lowの場合)、外部からのデータ入力が禁止される。即ち、仮にホスト機器15又は他のスレーブ機器12に対して出力を望むデータTXD、RXDがあっても出力待ち状態となる。
Each slave device 12 prohibits the output of each data TXD from itself when the control signal CTS and the control signal ESO transmitted from the
次に、本発明を適用した通信システム1における具体的な動作につき更に詳しく説明をする。
Next, specific operations in the
上述した送信線としてのTXD伝送路は、各スレーブ機器12間において共通で利用するため、複数のスレーブ機器12が同時にデータを出力すると混信してしまうため、本発明を適用した通信システム1では、ホスト機器15に対してより近接するスレーブ機器12、換言すれば、より上位にあるスレーブ機器12に対して、データの出力における優先権を持たせる。そして、データ通信を実行しているスレーブ機器12が存在する場合には、その他のスレーブ機器12はデータ出力が禁止される。なお、各スレーブ機器12は、送信された制御信号ESOが“禁止”でない場合(“通信可”の場合)には、データを出力することができる。
Since the TXD transmission line as the transmission line described above is used in common among the slave devices 12, if the plurality of slave devices 12 output data at the same time, interference occurs. Therefore, in the
例えば、ホスト機器15からスレーブ機器12_1へ送信される制御信号CTSが禁止の場合、スレーブ機器12_1はデータを出力することはできないことは勿論、かかる制御信号CTSと、MPU21_1からESO出力端子45_1を介して出力される制御信号ESOとの論理積は、常にLowとなるため、禁止状態のESO信号が下位スレーブ機器に該当するスレーブ機器12_2へと送信されることになる。この禁止状態のESO信号を受信したスレーブ機器12_2においても、同様に第1のAND回路31_2から出力される論理積はLowとなる。即ち、ホスト機器15からスレーブ機器12_1へ送信される制御信号CTSが禁止の場合には、下位にある全てのスレーブ機器12はデータの出力が禁止されることになる。
For example, when the control signal CTS transmitted from the
これに対して、ホスト機器15からスレーブ機器12_1へ送信される制御信号ESOが“通信可”を示す場合(Highの場合)には、送信線の使用権は、スレーブ機器12_1に移り、データを出力することはできることになる。
On the other hand, when the control signal ESO transmitted from the
ここで、スレーブ機器12_1は、仮にTXD出力端子41_1を介してデータTXDをホスト機器15へ送信する場合には、下位スレーブからの出力されるデータとの混信を防止すべく、“禁止”を示すESO信号をMPU21_1からESO出力端子45_1を介して出力する。その結果、第1のAND回路31_1において算出される論理積は、Lowとなり、下位の全てのスレーブ機器12につきデータの出力を禁止させることができる。また、スレーブ機器12_1は、データTXDの出力を終了させると、ESO信号を“通信可”にすることにより、送信線の使用権を下位スレーブへ移すようにしてもよい。
Here, if the slave device 12_1 transmits the data TXD to the
これに対して、スレーブ機器12_1は、仮にTXD出力端子41_1を介してデータTXDをホスト機器15へ送信しない場合には、下位スレーブへ送信における使用権を移すことになる。かかる場合に、“通信可”を示すESO信号をMPU21_1からESO出力端子45_1を介して出力する。その結果、第1のAND回路31_1において算出される論理積は、Highとなり、下位にあるスレーブ機器12_2は、ホスト機器15への通信が可能となる。
On the other hand, if the slave device 12_1 does not transmit the data TXD to the
即ち、下位スレーブ機器は、上位スレーブ機器のデータ通信の終了後に出す制御信号ESOを受信したとき、或いは、全ての上位スレーブ機器がデータ通信を行わない場合のみ、データ通信を行うことが可能となる。 That is, the lower slave device can perform data communication only when receiving the control signal ESO issued after the data communication of the upper slave device is completed, or when all the upper slave devices do not perform data communication. .
以上、詳細に説明したように、スレーブ機器12は、上位スレーブ機器又はホスト機器15からの制御信号CTS,ESOと、データの転送状況に基づいて生成した制御信号ESOとの論理積を算出することにより、上位スレーブから優先的に送信線の使用権を与えることができ、簡単な構成でスレーブ機器間のリンク通信の混信を防止することができ、ひいては、極めてシンプルな通信システムとすることにより大幅なコスト削減を図ることが可能となる。
As described above in detail, the slave device 12 calculates the logical product of the control signals CTS, ESO from the upper slave device or the
特に各スレーブ機器12は、制御信号CTSを識別する代わりに、制御信号ESOを識別し、また制御信号RTSを識別する代わりに、制御信号EEOを識別すればよいため、負担が増加することはない。即ち、1対1接続した場合における制御信号RTS、CTSの処理時に、制御信号ESO、EEOをチェックするだけでよい。これにより、スレーブ機器12は、特に負担が増加することなく、1対1接続と同様に通信を行うことができる。 In particular, each slave device 12 may identify the control signal ESO instead of identifying the control signal CTS, and identify the control signal EEO instead of identifying the control signal RTS, so that the burden does not increase. . That is, it is only necessary to check the control signals ESO and EEO when processing the control signals RTS and CTS in the case of a one-to-one connection. As a result, the slave device 12 can perform communication in the same manner as the one-to-one connection without particularly increasing the burden.
また、制御信号ESOが発生するエッジを捉えて、隣接するスレーブ機器12へ出力することにより、従来のリンク通信において発生していたスレーブ機器間の時間ロスを低減させることができ、ひいてはリンク通信時間を大幅に短縮することができる。 Further, by capturing the edge where the control signal ESO is generated and outputting it to the adjacent slave device 12, it is possible to reduce the time loss between the slave devices that has occurred in the conventional link communication, and consequently the link communication time. Can be greatly shortened.
ちなみに、このデイジーチェーン接続の末端にあるスレーブ機器(以下、最下位スレーブ機器という。)は、上位スレーブ機器のデータ通信が全て終了するまで待ち状態となる。その間、最下位スレーブ機器は、上位スレーブ機器に対してEEO信号を送信する。このEEO信号を受け取った上位スレーブ機器は、自ら出力するEEO信号との論理積を算出し、更に上位のスレーブ機器へこれを送信する。 Incidentally, the slave device (hereinafter referred to as the lowest slave device) at the end of the daisy chain connection is in a waiting state until all data communication of the upper slave device is completed. Meanwhile, the lowest slave device transmits an EEO signal to the higher slave device. The upper slave device that has received this EEO signal calculates the logical product of the EEO signal output by itself and transmits it to the upper slave device.
仮に、スレーブ機器12_2が下位スレーブ機器より制御信号EEOを受け取った場合において、かかる制御信号EEOは、第3のAND回路33_2に供給される。またこの第3のAND回路33_2には、MPU21_2からEEO出力端子46_2を介して供給される制御信号EEOも供給され、両者間で論理積が算出されることになる。 If the slave device 12_2 receives the control signal EEO from the lower slave device, the control signal EEO is supplied to the third AND circuit 33_2. The third AND circuit 33_2 is also supplied with a control signal EEO supplied from the MPU 21_2 via the EEO output terminal 46_2, and a logical product is calculated between them.
また仮に、下位スレーブ機器から、“禁止”を示すEEO信号が第3のAND回路33_2に供給された場合には、第3のAND回路33_2から出力される論理積はLowとなる。これに対して下位スレーブ機器から、“通信可”を示すEEO信号が第3のAND回路33_2に供給された場合には、MPU21_2からEEO出力端子46_2を介して供給される制御信号EEOに応じて、第3のAND回路33_2から出力される論理積はLow又はHighとなる。また、この下位スレーブ機器からのEEO信号は、EEO入力端子47_2を介してMPU21_2へ供給される。 If an EEO signal indicating “prohibited” is supplied from the lower slave device to the third AND circuit 33_2, the logical product output from the third AND circuit 33_2 becomes Low. On the other hand, when an EEO signal indicating “communication is possible” is supplied from the lower slave device to the third AND circuit 33_2, the control signal EEO is supplied from the MPU 21_2 via the EEO output terminal 46_2. The logical product output from the third AND circuit 33_2 is Low or High. Further, the EEO signal from the lower slave device is supplied to the MPU 21_2 via the EEO input terminal 47_2.
MPU21_2は、この受信したEEO信号に基づいてデータの入出力を制御する。かかる場合において、MPU21_2は、自身が送信するデータが状態において、制御信号EEOを受け取った場合、LowかHighかを識別する。またMPU21_2により識別された制御信号EEOがLowである場合には、ホスト機器15に対してデータの送信を望む下位スレーブ機器が少なくとも1つ存在することを示唆しており、送信線を開放すべく、自らのデータ通信を禁止する。このときMPU21_2は、かかる転送状態に応じたEEO信号を生成し、これを上述の第3のAND回路33_2へ送信するようにしてもよい。
The MPU 21_2 controls data input / output based on the received EEO signal. In such a case, the MPU 21_2 identifies Low or High when the control signal EEO is received while the data transmitted by the MPU 21_2 is in a state. Further, when the control signal EEO identified by the MPU 21_2 is Low, it indicates that there is at least one lower slave device that desires to transmit data to the
ちなみに、第3のAND回路33_2から出力される論理積を含む制御信号EEOは、スレーブ機器12_1における第1のAND回路33_1並びにMPU21_1へ供給される。仮に、第3のAND回路33_2から、“禁止”を示すEEO信号が第3のAND回路33_1に供給された場合には、第1のAND回路33_2から出力される論理積はLowとなる。これに対して第3のAND回路33_2から“通信可”を示すEEO信号が第3のAND回路33_1に供給された場合には、MPU21_1からEEO出力端子46_1を介して供給される制御信号EEOに応じて、第3のAND回路33_1から出力される論理積はLow又はHighとなる。また、この第3のAND回路33_2からのEEO信号は、EEO入力端子47_1を介してMPU21_1へ供給される。 Incidentally, the control signal EEO including the logical product output from the third AND circuit 33_2 is supplied to the first AND circuit 33_1 and the MPU 21_1 in the slave device 12_1. If an EEO signal indicating “prohibition” is supplied from the third AND circuit 33_2 to the third AND circuit 33_1, the logical product output from the first AND circuit 33_2 becomes Low. On the other hand, when an EEO signal indicating “communication is possible” is supplied from the third AND circuit 33_2 to the third AND circuit 33_1, the control signal EEO supplied from the MPU 21_1 via the EEO output terminal 46_1 is used. Accordingly, the logical product output from the third AND circuit 33_1 is Low or High. Further, the EEO signal from the third AND circuit 33_2 is supplied to the MPU 21_1 through the EEO input terminal 47_1.
MPU21_1は、この受信したEEO信号に基づいてデータの入出力を制御する。このときMPU21_1は、かかるデータの入出力の制御状態に応じたEEO信号を生成し、これを上述の第3のAND回路33_1へ送信するようにしてもよい。 The MPU 21_1 controls data input / output based on the received EEO signal. At this time, the MPU 21_1 may generate an EEO signal corresponding to the control state of the input / output of the data and transmit this to the third AND circuit 33_1.
即ち各スレーブ機器12は、受信したEEO信号を介して、データ通信を望む下位スレーブ機器の存在の有無を識別し、識別した結果に応じて送信線を開放することができる。ちなみに各スレーブ機器21は、接続状況に応じて、ホスト機器15へケーブルを介して直接的に連結される場合もあり、制御信号RTSが送信される場合もあり、また自らが制御信号CTSを送信する場合もあることから、上述した第3のAND回路33の役割を、第2のAND回路32に代替させてもよい。同様に各スレーブ機器21は、ホスト機器15へ直接的に連結された場合には、第1のAND回路31に対して、制御信号ESOのみならず、制御信号CTSが送信される場合もあることから、全てのスレーブ機器21における第1のAND回路31_nは、制御信号ESO間で算出する論理積を、制御信号CTSとの間で求めることができるようにしてもよい。
That is, each slave device 12 can identify the presence or absence of a lower-level slave device that desires data communication via the received EEO signal, and can open the transmission line according to the identified result. Incidentally, each slave device 21 may be directly connected to the
なお、本発明を適用した通信システム1は、上述した実施の形態に限定されるものではない。例えば、ホスト機器15により指定されたスレーブ機器12_xが指定された場合に当該スレーブ機器12_xとホスト機器15との間でのみ通信を実現すべく、送信線を開放するようにしてもよい。
Note that the
かかる場合において、スレーブ機器21毎に予め割り当てられたID番号をスレーブ機器12_1からスレーブ12_nにかけて、順にID1、ID2、・・・、IDnとするとき、先ず、ホスト機器15から禁止を示す制御信号CTSが出力される。これにより、ホスト機器15からデイジーチェーン接続された全てのスレーブ機器21は、通信が禁止された状態となる。
In this case, when the ID numbers assigned in advance for each slave device 21 are sequentially assigned ID1, ID2,..., IDn from the slave device 12_1 to the slave 12_n, first, the control signal CTS indicating prohibition from the
次にホスト機器15との間で通信を望む所望のスレーブ機器12のID番号が指定される。かかる場合において、例えばスレーブ機器12_2が指定された場合には、当該スレーブ機器12_2のID番号としてのID2を制御信号CTS(ESO)に含めて、或いはRXDに含めて送信する。スレーブ機器12_2は、当該ID番号を受けて、自身がホスト機器15との間で通信を行うことを確認する。そしてMPU21_2からEEO出力端子46_2を介して、禁止を示す制御信号EEOを出力する。スレーブ機器12_2より上位にある上位スレーブ機器は、この制御信号EEOを受けることによりデータの送信を望む下位スレーブ機器が少なくとも1つ存在することを識別することができ、送信線へのデータ転送を禁止することができる。
Next, an ID number of a desired slave device 12 that desires communication with the
このようにして、送信線をホスト機器15とスレーブ機器12_2との間でのみ確立された後、スレーブ機器12_2は、ホスト機器15に対してデータTXDを送信する。同様にホスト機器15は、スレーブ機器12_2に対して、データRXDを送信する。スレーブ機器12_2は、データTXDの送信を終了させた後、“通信可”を示す制御信号EEOを送信することにより、送信線の使用権を上位スレーブ機器へ移す。
Thus, after the transmission line is established only between the
図3,4は、本発明を適用した通信システム1の処理手順を示すタイムチャートである。ホスト機器15とスレーブ機器12_1との間でRS−232C伝送方式に基づき通信を行う場合には、図3に示すように、ホスト機器15はデータRXDをスレーブ機器12_1へ送信するとともに、禁止を示す制御信号CTSを当該スレーブ機器12_1へ送信する。その結果、スレーブ機器12_1以降の下位スレーブ機器は、データ通信が禁止される結果、ホスト機器15とスレーブ機器12_1との間におけるデータ通信につき、他のデータと混信することなく実現することができる。
3 and 4 are time charts showing the processing procedure of the
次のタイミングにおいて、スレーブ機器12_1は、ホスト機器15からのデータTXDを解析するとともに、制御信号RTSをホスト機器15へ送信する。そして、ホスト機器15に対してデータTXDを返信する場合には、禁止を示す制御信号RTSを送り続ける。これに対して、データTXDを返信しない場合には、“通信可”を示す制御信号RTSを送信する。
At the next timing, the slave device 12_1 analyzes the data TXD from the
なお、スレーブ機器12_1は、自主的にデータTXDを出力する場合においても同様に禁止を示す制御信号RTSをホスト機器15へ送り続ける。そして、データTXD出力を終了させた後、“禁止”を示す制御信号CTSを出力する。
Note that the slave device 12_1 continues to send a control signal RTS indicating prohibition to the
また、ホスト機器15とスレーブ機器12_1、12_2との間でリンク通信を行う場合には、図4に示すように、ホスト機器15は、タイミングt1において、データRXDをスレーブ機器12_1,12_2へ送信するとともに、禁止を示す制御信号CTSを当該スレーブ機器12_1へ送信する。その結果、スレーブ機器12_1以降の下位スレーブ機器は、データ通信が禁止される結果、ホスト機器15とスレーブ機器12_1との間におけるデータ通信につき、他のデータと混信することなく実現することができる。また、同じタイミングt1において、スレーブ機器12_1はスレーブ機器12_2に対して、“禁止”を示す制御信号ESOすることにより、スレーブ機器12_2における通信を制限する。
When link communication is performed between the
次のタイミングt2において、スレーブ機器12_1,スレーブ機器12_2は、ホスト機器15からのデータTXDを解析するとともに、制御信号RTSをホスト機器15へ送信する。そして、ホスト機器15に対してデータTXDを返信する場合には、タイミングt3において“禁止”を示す制御信号RTSを送り続ける。これに対して、データTXDを返信しない場合には、“通信可”を示す制御信号RTSを送信する。ちなみに、スレーブ機器12_1は、このタイミングt3では、スレーブ機器12_1は、下位スレーブ機器(スレーブ機器12_2)に対して、“禁止”を示すESO信号を送信する。
At the next timing t2, the slave device 12_1 and the slave device 12_2 analyze the data TXD from the
次のタイミングt4において、スレーブ機器12_2は、ホスト機器15に対してデータTXDを返信する場合に“禁止”を示す制御信号RTSを送り続ける。なお、このスレーブ機器12_2は、タイミングt3、t4において制御信号EEOを“禁止”とし、データTXDの返信終了時において、この制御信号EEOを“通信可”に変更する。
At the next timing t4, the slave device 12_2 continues to send the control signal RTS indicating “prohibited” when returning the data TXD to the
またスレーブ機器12_1が自主的にデータTXDを出力する場合には、タイミングt5において、ホスト機器15に対して“禁止”を示す制御信号RTSを送信するとともに、“禁止”を示す制御信号ESOをスレーブ機器12_2へ送信する。また、データTXDの出力終了後、タイミングt6において、ホスト機器15は、“禁止”を示す制御信号CTSを出力することにより、スレーブ機器12_2は、タイミングt5、t6において、データ通信が禁止されることになるため、待機状態となる。
When the slave device 12_1 voluntarily outputs the data TXD, the control signal RTS indicating “prohibited” is transmitted to the
上述した例では、半二重通信の場合を例に挙げて説明をしたが、かかる場合に限定されるものではなく、全二重通信の場合においても同様となる。 In the example described above, the case of half-duplex communication has been described as an example. However, the present invention is not limited to such a case, and the same applies to the case of full-duplex communication.
また上述した例では、あくまで、上位スレーブ機器又はホスト機器からの制御信号と、データの転送状況に基づいて生成した制御信号との論理積を算出する場合につき説明をしたが、かかる場合に限定されるものではない。例えば、論理積を算出するAND回路の代替として、NAND回路を使用してもよい。かかる場合には、各信号レベルにおけるLowとHighとの関係は本実施例と逆になる。 In the above-described example, the case where the logical product of the control signal from the higher-level slave device or the host device and the control signal generated based on the data transfer status is described. However, the present invention is limited to this case. It is not something. For example, a NAND circuit may be used as an alternative to an AND circuit that calculates a logical product. In such a case, the relationship between Low and High at each signal level is the reverse of this embodiment.
なお本発明を適用した通信システム1は、シリアル通信を行う場合に限定されるものではなく、パラレル通信を行うシステムにおいて適用可能であることは勿論である。
Note that the
1 通信システム、12 スレーブ機器、13 測長ユニット、15 ホスト機器、21 MPU、22 送信制御部、31 第1のAND回路、32 第2のAND回路、33 第3のAND回路、34 第4のAND回路
DESCRIPTION OF
Claims (4)
前記ホスト機器は、接続されたスレーブ機器に対してスレーブ制御信号を送信し、
前記ホスト機器と前記最下位スレーブ機器との間に接続されたスレーブ機器は、
当該スレーブ機器と前記ホスト機器との間に接続された上位スレーブ機器又は前記ホスト機器から第1の制御用端子を介して受信したスレーブ制御信号に応じて、少なくとも当該スレーブ機器内で生成されたデータを前記スレーブ制御信号の送信元である上位スレーブ機器又は前記ホスト機器へ転送し、また前記データの転送状況に基づいて第1の論理信号を生成する制御手段と、
前記スレーブ制御信号と前記制御手段により生成された前記第1の論理信号との論理積を算出する第1の論理積算出手段と、
前記第1の論理算出手段により算出された論理積を当該スレーブ機器よりも下位側に接続された下位スレーブ機器に対するスレーブ制御信号として、前記下位スレーブ機器へ送信する送信手段と、
当該スレーブ機器よりも前記最下位スレーブ機器側に接続された下位スレーブ機器から送信されたスレーブ制御信号と、前記制御手段により生成された第2の論理信号との論理積を算出する第2の論理積算出手段とを備え、
前記制御手段は、前記下位スレーブ機器から第2の制御用端子を介して受信したスレーブ制御信号に応じて、少なくとも当該スレーブ機器内で生成されたデータを前記上位スレーブ機器又はホスト機器へ転送し、また前記データの転送状況に基づいて前記第2の論理信号を生成し、更に、前記データの前記上位スレーブ機器又は前記ホスト機器への転送終了時に、データの転送状況に応じた第1の論理信号を生成し、
前記送信手段は、前記第2の論理積算出手段により算出された論理積を前記上位スレーブ機器又はホスト機器に対するスレーブ制御信号として、前記上位スレーブ機器又はホスト機器へ送信し、
当該スレーブ機器と前記ホスト機器との間に接続された上位スレーブ機器又は前記ホスト機器にデータを出力する場合には、前記第1の論理積算出手段により算出された論理積を、下位スレーブ機器に対してデータの転送を禁止することを示すスレーブ制御信号として下位スレーブ機器に送信し、当該データの転送が終了した場合に、前記第1の論理積算出手段により算出された論理積を、下位スレーブ機器に対してデータの転送を許可することを示すスレーブ制御信号として下位スレーブ機器に送信すると共に、当該データの転送が終了した場合に、下位スレーブ機器の中でデータの送信を行うスレーブ機器が有ることを示すスレーブ制御信号を受け取った場合に、データの出力に対する優先権を下位スレーブ機器に移すようにして、より上位にある上位スレーブ機器に対して、前記データの出力における優先権を持たせた状態で前記データをシリアル通信により転送すること
を特徴とする通信システム。 In a communication system in which at least one slave device is daisy chain connected between the lowest slave device located at the end and the host device ,
The host device transmits a slave control signal to the connected slave device,
The slave device connected between the host device and the lowest slave device is:
Data generated at least in the slave device in response to a slave control signal received via the first control terminal from the host device or the host device connected between the slave device and the host device Control means for transferring the slave control signal to a higher-level slave device or the host device, and generating a first logic signal based on the data transfer status;
First logical product calculating means for calculating a logical product of the slave control signal and the first logical signal generated by the control means;
Transmission means for transmitting a slave control signal, Previous Symbol lower slave device a logical product calculated by the first logic calculating means for the lower slave devices connected to the lower side of the slave device,
A second logic that calculates a logical product of the slave control signal transmitted from the slave slave device connected to the lowest slave device with respect to the slave device and the second logic signal generated by the control means. Product calculating means,
The control means transfers at least data generated in the slave device to the upper slave device or host device in response to a slave control signal received from the lower slave device via the second control terminal, Further, the second logic signal is generated based on the data transfer status, and the first logic signal corresponding to the data transfer status at the end of transfer of the data to the upper slave device or the host device. Produces
The transmission means transmits the logical product calculated by the second logical product calculation means to the upper slave device or host device as a slave control signal for the upper slave device or host device,
In the case of outputting data to the upper slave device or the host device connected between the slave device and the host device, the logical product calculated by the first logical product calculation means is sent to the lower slave device. When the data transfer is completed, the logical product calculated by the first logical product calculation means is transmitted to the lower slave device as a slave control signal indicating that data transfer is prohibited. There is a slave device that transmits data to the slave slave device as a slave control signal indicating that data transfer is permitted to the device, and transmits data when the data transfer is completed. when receiving a slave control signal indicating that, as transfer priority to the output of the data to a lower slave device, and more To the upper level slave device in a position, a communication system, characterized by transferring the data by serial communication in a state in which no priority in the output of the data.
を特徴とする請求項1記載の通信システム。 Wherein each slave device, and is the host device, a communication system according to claim 1, wherein the forwarding based on the data in the RS-232C transmission scheme.
電子機器において、
当該電子機器と前記ホスト機器との間に接続された上位スレーブ機器又は前記ホスト機器から第1の制御用端子を介して受信したスレーブ制御信号に応じて、少なくとも当該当該電子機器内で生成されたデータを前記スレーブ制御信号の送信元である上位スレーブ機器又は前記ホスト機器へ転送し、また前記データの転送状況に基づいて第1の論理信号を生成する制御手段と、
前記スレーブ制御信号と前記制御手段により生成された前記第1の論理信号との論理積を算出する第1の論理積算出手段と、
前記第1の論理算出手段により算出された論理積を当該電子機器よりも前記最下位スレーブ機器側に接続された下位スレーブ機器に対するスレーブ制御信号として、前記下位スレーブ機器へ送信する送信手段と、
当該電子機器よりも前記最下位スレーブ機器側に接続された下位スレーブ機器から送信されたスレーブ制御信号と、前記制御手段により生成された第2の論理信号との論理積を算出する第2の論理積算出手段とを備え、
前記制御手段は、前記下位スレーブ機器から第2の制御用端子を介して受信したスレーブ制御信号に応じて、少なくとも当該電子機器内で生成されたデータを前記上位スレーブ機器又はホスト機器へ転送し、また前記データの転送状況に基づいて前記第2の論理信号を生成し、更に、前記データの前記上位スレーブ機器又は前記ホスト機器への転送終了時に、データの転送状況に応じた第1の論理信号を生成し、
前記送信手段は、前記第2の論理積算出手段により算出された論理積を前記上位スレーブ機器又はホスト機器に対するスレーブ制御信号として、前記上位スレーブ機器又はホスト機器へ送信し、
前記制御手段は、
当該電子機器と前記ホスト機器との間に接続された上位スレーブ機器又は前記ホスト機器にデータを出力する場合には、前記第1の論理積算出手段により算出された論理積を、下位スレーブ機器に対してデータの転送を禁止することを示すスレーブ制御信号として下位スレーブ機器に送信し、当該データの転送が終了した場合に、前記第1の論理積算出手段により算出された論理積を、下位スレーブ機器に対してデータの転送を許可することを示すスレーブ制御信号として下位スレーブ機器に送信すると共に、当該データの転送が終了した場合に、下位スレーブ機器の中でデータの送信を行うスレーブ機器が有ることを示すスレーブ制御信号を受け取った場合に、データの出力に対する優先権を下位スレーブ機器に移すようにして、より上位にある上位スレーブ機器に対して、前記データの出力における優先権を持たせた状態で前記データをシリアル通信により転送すること
を特徴とする電子機器。 In an electronic device daisy chained between the lowest slave device located at the end and the host device ,
Generated at least in the electronic device in response to a slave control signal received via the first control terminal from the host device or the host device connected between the electronic device and the host device Control means for transferring data to an upper slave device or the host device which is a transmission source of the slave control signal, and generating a first logic signal based on the data transfer status;
First logical product calculating means for calculating a logical product of the slave control signal and the first logical signal generated by the control means;
Transmission means for transmitting a slave control signal, Previous Symbol lower slave device for the lower slave device a logical product calculated is connected to the least significant slave device side of the electronic device by said first logic calculating means,
A second logic for calculating a logical product of a slave control signal transmitted from a lower slave device connected to the lowest slave device with respect to the electronic device and a second logical signal generated by the control means; Product calculating means ,
The control means transfers at least data generated in the electronic device to the upper slave device or host device in response to a slave control signal received from the lower slave device via the second control terminal, Further, the second logic signal is generated based on the data transfer status, and the first logic signal corresponding to the data transfer status at the end of transfer of the data to the upper slave device or the host device. Produces
The transmission means transmits the logical product calculated by the second logical product calculation means to the upper slave device or host device as a slave control signal for the upper slave device or host device,
The control means includes
In the case of outputting data to the upper slave device or the host device connected between the electronic device and the host device, the logical product calculated by the first logical product calculation means is sent to the lower slave device. When the data transfer is completed, the logical product calculated by the first logical product calculation means is transmitted to the lower slave device as a slave control signal indicating that data transfer is prohibited. There is a slave device that transmits data to the slave slave device as a slave control signal indicating that data transfer is permitted to the device, and transmits data when the data transfer is completed. when receiving a slave control signal indicating that, as transfer priority to the output of the data to a lower slave device, a higher For a higher-level slave device, the electronic device, characterized by transferring the data by serial communication in a state in which no priority in the output of the data.
を特徴とする請求項3記載の電子機器。 4. The electronic apparatus according to claim 3 , wherein the control unit transfers the data based on an RS-232C transmission method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2003348098A JP4280140B2 (en) | 2003-10-07 | 2003-10-07 | Communication system, electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2003348098A JP4280140B2 (en) | 2003-10-07 | 2003-10-07 | Communication system, electronic equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2005117299A JP2005117299A (en) | 2005-04-28 |
| JP4280140B2 true JP4280140B2 (en) | 2009-06-17 |
Family
ID=34540393
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2003348098A Expired - Lifetime JP4280140B2 (en) | 2003-10-07 | 2003-10-07 | Communication system, electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4280140B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009164786A (en) * | 2007-12-28 | 2009-07-23 | Nec Electronics Corp | Data transfer system and data transfer method |
-
2003
- 2003-10-07 JP JP2003348098A patent/JP4280140B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JP2005117299A (en) | 2005-04-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN208985152U (en) | Communication system | |
| CN107113211B (en) | Function connection unit containing service module | |
| CN104199796B (en) | IIC communication means and the embedded system for realizing IIC communications | |
| CN107113212B (en) | Functional connection unit including parameter memory | |
| EP2725436A1 (en) | Communication device connectable to a control device and a plurality of sensors | |
| CN103814549A (en) | Method and device for coupling a first sensor with at least one second sensor | |
| US7486997B2 (en) | Safety condition setting support device, program product and device control method for obtaining safety condition for safety network | |
| US6922790B2 (en) | Three wire communication protocol | |
| US12007922B2 (en) | IO-link system with diagnostic channel | |
| JP4280140B2 (en) | Communication system, electronic equipment | |
| CN109327365B (en) | Method for transmitting data between a rotation angle sensor and an engine control device or evaluation unit | |
| US10445256B2 (en) | Function connection unit | |
| JP7547805B2 (en) | Measurement system, measurement device, measurement system control method, and measurement system control program | |
| US20150355737A1 (en) | Steering Wheel with Improved Interface to a Finger Navigation Module | |
| US12181851B2 (en) | Settings information generation device, settings information generation method, and recording medium | |
| JP4935631B2 (en) | Node station positional relationship detection system | |
| US7761243B2 (en) | Measuring device for process engineering and operating method for a measuring device | |
| US11489697B2 (en) | Transmission of data on a local bus | |
| KR101275640B1 (en) | Programmable logic controller using multiple buses | |
| JP6685181B2 (en) | Process control equipment | |
| JP2004199658A5 (en) | ||
| JP4204483B2 (en) | Information processing device | |
| JPH05316128A (en) | Signal transfer method | |
| CN120898410A (en) | Efficient addressing and debugging of I/O modules | |
| CN117081882A (en) | A ModBus communication system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060907 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20081120 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20081202 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090202 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20090224 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20090313 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120319 Year of fee payment: 3 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 4280140 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
| S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313113 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120319 Year of fee payment: 3 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120319 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130319 Year of fee payment: 4 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130319 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140319 Year of fee payment: 5 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| EXPY | Cancellation because of completion of term |