JP2007251361A - Ring communication network system - Google Patents

Ring communication network system Download PDF

Info

Publication number
JP2007251361A
JP2007251361A JP2006069271A JP2006069271A JP2007251361A JP 2007251361 A JP2007251361 A JP 2007251361A JP 2006069271 A JP2006069271 A JP 2006069271A JP 2006069271 A JP2006069271 A JP 2006069271A JP 2007251361 A JP2007251361 A JP 2007251361A
Authority
JP
Japan
Prior art keywords
data
transmission
communication
station
packet
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.)
Granted
Application number
JP2006069271A
Other languages
Japanese (ja)
Other versions
JP4747890B2 (en
Inventor
Takashi Matsumoto
松本  孝
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.)
Nissan Motor Co Ltd
Original Assignee
Nissan Motor Co Ltd
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 Nissan Motor Co Ltd filed Critical Nissan Motor Co Ltd
Priority to JP2006069271A priority Critical patent/JP4747890B2/en
Publication of JP2007251361A publication Critical patent/JP2007251361A/en
Application granted granted Critical
Publication of JP4747890B2 publication Critical patent/JP4747890B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a ring communication network system capable of properly executing communication by configuring identically each slave station without the need for setting an individual address to each slave station and achieving high speed communication. <P>SOLUTION: A control station and slave stations are connected with a communication bus in a ring form. A form of data transmitted through the communication bus adopts a form of composite packets resulting from connecting data packets each allocated to each of the slave stations in the connection order of the slave stations, and each data packet is provided with a flag area to which a transmission/reception flag is written. Each slave station detects a start position of the data packet in the composite packets, transmits a transmission/reception flag T and discriminates a type of the original transmission/reception flag at the same time, reaches a bus-through state until a start position of a next data packet is detected when the transmission/reception flag is the transmission/reception flag T, receives succeeding reception data and transmits reply data at the same time when the transmission/reception flag is a transmission/reception flag R, and thereafter reaches the bus-through state until a data packet start position of a top of a succeeding composite packets. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、1つの制御局と複数の従属局とが通信バスを介してリング状に接続されてなるリング型通信ネットワークシステムに関する。   The present invention relates to a ring communication network system in which one control station and a plurality of dependent stations are connected in a ring shape via a communication bus.

近年、通信ネットワーク技術の発展に伴い、例えば自動車などの車両においても、各種電装品の統合的な制御を実現するための重要なシステムとして、通信ネットワークシステムが搭載されるようになってきている。車両に搭載される通信ネットワークシステムとしては様々な形態のものが提案されているが、中でもリング型通信ネットワークシステムは、制御局と複数の従属局とをリング状の通信バスで直列に接続することで信号の流れを一方向に定めているため、信号の衝突が起こらないという利点がある。   In recent years, with the development of communication network technology, for example, in vehicles such as automobiles, a communication network system has been installed as an important system for realizing integrated control of various electrical components. Various types of communication network systems mounted on vehicles have been proposed. Among them, ring-type communication network systems connect a control station and multiple subordinate stations in series via a ring-shaped communication bus. Therefore, there is an advantage that signal collision does not occur.

ところで、近年の車両に対する低価格化の要求は強く、車両に搭載される通信ネットワークシステムにおいても、できるだけ安価に構成することが重要な課題となっている。これを実現するため、リング型通信ネットワークシステムにおいてノードとして接続される各従属局を同一の構成とするとともにこれら各従属局に個別のアドレスを設定することなく適切な通信を行えるようにし、各従属局となる通信機器の製造、管理の一元化を可能にして、コスト削減を図る試みが提案されている(例えば、特許文献1参照。)。   By the way, there is a strong demand for lower prices for vehicles in recent years, and it is an important issue to configure a communication network system mounted on a vehicle as inexpensively as possible. In order to achieve this, each subordinate station connected as a node in a ring communication network system has the same configuration and can perform appropriate communication without setting an individual address for each subordinate station. There has been proposed an attempt to reduce costs by making it possible to centralize manufacture and management of communication equipment as a station (see, for example, Patent Document 1).

特許文献1には、制御局から各従属局あての受信データを各従属局の接続順序に従って繋ぎ合わせた複合パケットを通信バスに送出し、各従属局は、通信バスを流れる複合パケットから先頭のデータを取り込み、制御局へ返信する返信データを末尾に付加して通信バスに送出するという技術が記載されている。
特開平11−163898号公報
In Patent Document 1, a composite packet in which received data addressed to each dependent station is connected from the control station in accordance with the connection order of each dependent station is sent to the communication bus, and each dependent station starts from the composite packet flowing through the communication bus. A technique is described in which data is fetched, reply data to be sent back to the control station is added to the end, and the data is sent to the communication bus.
JP-A-11-163898

しかしながら、前記特許文献1に記載されている従来の技術では、各従属局は、通信バスを流れる複合パケットから先頭のデータを取り込み、制御局へ返信する返信データを末尾に付加して通信バスに送出する構成になっていたため、制御局と各従属局との間で双方向にデータを伝達するために必要な通信所要時間としては、制御局から各従属局あてにデータを送信する時間と、各従属局から制御局へとデータを返信する時間とで別々の時間を設定しなければならず、制御局が一連の送受信サイクルを終了するまでには、これらの時間を足し合わせた総和時間が必要となり、通信の高速化が困難であるといった問題があった。   However, in the conventional technique described in Patent Document 1, each dependent station takes the leading data from the composite packet flowing through the communication bus, adds reply data to the control station to the end, and adds it to the communication bus. Since it was configured to transmit, as the communication required time required to transmit data bidirectionally between the control station and each dependent station, the time to transmit data from the control station to each dependent station, A separate time must be set for the time at which data is returned from each subordinate station to the control station, and until the control station finishes a series of transmission / reception cycles, the total time of these times is added. There is a problem that it is necessary and it is difficult to increase the communication speed.

本発明は、以上のような従来技術が有する問題点を解消すべく創案されたものであって、各従属局を同一の構成とし個別のアドレスを設定することなく適切な通信を行えるようにするとともに、制御局と各従属局との間で双方向にデータを伝達するために必要な通信所要時間の短縮を図って、通信の高速化も実現できるようにしたリング型通信ネットワークシステムを提供することを目的としている。   The present invention was devised to solve the above-described problems of the prior art, and allows each dependent station to have the same configuration and perform appropriate communication without setting individual addresses. At the same time, a ring communication network system is provided in which the communication time required for bi-directionally transmitting data between the control station and each dependent station is shortened, and the communication speed can be increased. The purpose is that.

本発明では、通信バスを流れる信号の形式を複合パケットの形式とする。複合パケットとは、ネットワークのノードとなる複数の従属局の数に対応した複数のデータパケットを複数の従属局の接続順序に従って繋ぎ合わせたものであり、この複合パケットを構成する各データパケットには、従属局が受信すべき受信データ又は従属局から制御局への返信データが書き込まれるデータエリアと、当該データエリアの先頭に付加されて当該データエリアに書き込まれたデータが受信データであるか返信データであるかを識別するための送受信フラグが書き込まれるフラグエリアとが設定されている。   In the present invention, the format of the signal flowing through the communication bus is the composite packet format. A composite packet is a combination of a plurality of data packets corresponding to the number of a plurality of subordinate stations serving as network nodes in accordance with the connection order of a plurality of subordinate stations. Each data packet constituting the composite packet includes A data area in which received data to be received by the dependent station or reply data from the dependent station to the control station is written, and whether the data added to the head of the data area and written in the data area is received data is returned. A flag area in which a transmission / reception flag for identifying whether it is data is written is set.

そして、本発明では、制御局が、各データパケットのデータエリアに各従属局が受信すべき受信データ、フラグエリアに後続のデータエリアに書き込まれているデータが各従属局が受信すべき受信データであることを示すフラグをそれぞれ書き込んで、複合パケットとして通信バスに送出すると同時に、通信バスを流れる複合パケットを受信する通信制御手段を備える。一方、複数の従属局の各々は、複合パケットを構成するデータパケットに何らかのデータを書き込んで送信する送信状態と、データパケットをそのままスルーするバススルー状態とを切り替えながら、複合パケットによるデータ通信を制御する通信制御手段とを備える。   In the present invention, the control station receives the reception data that each dependent station should receive in the data area of each data packet, and the data written in the subsequent data area in the flag area is the reception data that each dependent station should receive. And a communication control means for receiving a composite packet that flows through the communication bus at the same time as writing a composite packet to the communication bus. On the other hand, each of the plurality of dependent stations controls data communication by the composite packet while switching between a transmission state in which some data is written and transmitted in the data packet constituting the composite packet and a bus-through state in which the data packet is passed through as it is. Communication control means.

そして、複数の従属局の各々が備える通信制御手段が、複合パケットにおけるデータパケットの開始位置が検出されるとバススルー状態から送信状態へと移行して、データパケットのフラグエリアに、後続のデータエリアに書き込まれているデータが返信データであることを示すフラグを書き込むと同時に、当該フラグエリアに書き込まれていた元の送受信フラグを受信してその種別を判定する。そして、複数の従属局の各々が備える通信制御手段は、フラグエリアに書き込まれていた元の送受信フラグが、後続のデータエリアに書き込まれているデータが返信データであることを示すフラグであれば、送信状態からバススルー状態へと移行して、次のデータパケットの開始位置が検出されるまでバススルー状態を維持する。一方、フラグエリアに書き込まれていた元の送受信フラグが、後続のデータエリアに書き込まれているデータが受信データであることを示すフラグであれば、後続のデータエリアに書き込まれている受信データを受信すると同時に、当該受信データが書き込まれていたデータエリアに制御局への返信データを書き込んだ後、送信状態からバススルー状態へと移行して、次の複合パケットにおける先頭のデータパケットの開始位置が検出されるまでバススルー状態を維持する。   Then, when the communication control means provided in each of the plurality of dependent stations detects the start position of the data packet in the composite packet, it shifts from the bus-through state to the transmission state, and the subsequent data is transferred to the flag area of the data packet. A flag indicating that the data written in the area is reply data is written, and at the same time, the original transmission / reception flag written in the flag area is received and its type is determined. If the communication control means provided in each of the plurality of dependent stations is a flag indicating that the original transmission / reception flag written in the flag area indicates that the data written in the subsequent data area is return data. From the transmission state to the bus-through state, the bus-through state is maintained until the start position of the next data packet is detected. On the other hand, if the original transmission / reception flag written in the flag area indicates that the data written in the subsequent data area is reception data, the reception data written in the subsequent data area is At the same time as receiving, after writing the reply data to the control station in the data area where the received data was written, transition from the transmission state to the bus-through state, the start position of the first data packet in the next composite packet The bus-through state is maintained until the signal is detected.

本発明によれば、各従属局を同一の構成とし、各従属局毎に個別のアドレスを設定することなく、制御局と各従属局との間での通信を適切に行うことができるので、コストの削減を実現できる。また、本発明によれば、制御局と各従属局は、複合パケット形式でのデータの受信と送信とを同時に行うことができるので、制御局と各従属局との間で双方向にデータを伝達するために必要な通信所要時間を短縮することができ、通信の高速化も実現できる。   According to the present invention, each dependent station has the same configuration, and communication between the control station and each dependent station can be appropriately performed without setting an individual address for each dependent station. Cost reduction can be realized. Further, according to the present invention, since the control station and each dependent station can simultaneously receive and transmit data in the composite packet format, data can be transmitted bidirectionally between the control station and each dependent station. The required communication time required for transmission can be shortened, and communication speed can be increased.

以下、本発明を適用したリング型通信ネットワークシステムの具体的な実施形態について、図面を参照しながら詳細に説明する。   Hereinafter, specific embodiments of a ring communication network system to which the present invention is applied will be described in detail with reference to the drawings.

[第1の実施形態]
<全体構成>
図1は、本発明を適用した第1の実施形態のリング型通信ネットワークシステムの全体構成を概略的に示す図である。本実施形態のリング型通信ネットワークシステムは、1つの制御局M1と3つの従属局(第1従属局S11,第2従属局S12,第3従属局S13)とが、ネットワークのノードとして、通信バス101,102,103,104を介してリング状に接続されて構成される。このリング型通信ネットワークシステムにおいて、ノードとなる制御局M1と3つの従属局S11,S12,S13とは直列に接続されており、信号の流れが一方向に定められている。すなわち、制御局M1の送信ポートTPと第1従属局S11の受信ポートRPとが通信バス101によって接続され、第1従属局S11の送信ポートTPと第2従属局S12の受信ポートRPとが通信バス102によって接続され、第2従属局S12の送信ポートTPと第3従属局S13の受信ポートRPとが通信バス103によって接続され、第3従属局S13の送信ポートTPと制御局M1の受信ポートRPとが通信バス104によって接続されている。そして、制御局M1から通信バス101を介して第1従属局S11、第1従属局S11から通信バス102を介して第2従属局S12、第2従属局S12から通信バス103を介して第3従属局S13、第3従属局S13から通信バス104を介して制御局M1へと、順次信号が流れる構成となっている。
[First Embodiment]
<Overall configuration>
FIG. 1 is a diagram schematically showing an overall configuration of a ring communication network system according to a first embodiment to which the present invention is applied. In the ring communication network system of the present embodiment, one control station M1 and three dependent stations (first dependent station S11, second dependent station S12, and third dependent station S13) serve as communication nodes as network nodes. 101, 102, 103 and 104 are connected in a ring shape. In this ring communication network system, the control station M1 as a node and the three dependent stations S11, S12, S13 are connected in series, and the signal flow is determined in one direction. That is, the transmission port TP of the control station M1 and the reception port RP of the first dependent station S11 are connected by the communication bus 101, and the transmission port TP of the first dependent station S11 and the reception port RP of the second dependent station S12 communicate with each other. The transmission port TP of the second dependent station S12 and the reception port RP of the third dependent station S13 are connected by the bus 102, and the transmission port TP of the third dependent station S13 and the reception port of the control station M1 are connected by the communication bus 103. The RP is connected to the communication bus 104. The third dependent station S1 from the control station M1 via the communication bus 101, the second dependent station S12 from the first dependent station S11 via the communication bus 102, and the third dependent station S12 from the second dependent station S12 via the communication bus 103. A signal sequentially flows from the dependent station S13 and the third dependent station S13 to the control station M1 via the communication bus 104.

<複合パケット>
本実施形態のリング型通信ネットワークシステムでは、通信バス101,102,103,104を流れる信号の形式が、図2に示すような複合パケットの形式とされている。この図2に示す複合パケットは、従属局S11,S12,S13の数に対応した3つのデータパケットが繋ぎ合わされたものであり、最初のデータパケットは第1従属局S11用に割り当てられ、次のデータパケットは第2従属局S12用に割り当てられ、最後のデータパケットは第3従属局S13用に割り当てられている。つまり、この複合パケットは、各従属局S11,S12,S13用にそれぞれ割り当てられた3つのデータパケットを、制御局M1からの信号の流れに沿った各従属局S11,S12,S13の接続順序に従って繋ぎ合せたものである。
<Composite packet>
In the ring communication network system of this embodiment, the format of the signal flowing through the communication buses 101, 102, 103, and 104 is a composite packet format as shown in FIG. The composite packet shown in FIG. 2 is a combination of three data packets corresponding to the number of dependent stations S11, S12, and S13. The first data packet is assigned to the first dependent station S11, The data packet is assigned for the second dependent station S12, and the last data packet is assigned for the third dependent station S13. That is, the composite packet is obtained by changing the three data packets respectively assigned to the dependent stations S11, S12, and S13 according to the connection order of the dependent stations S11, S12, and S13 along the signal flow from the control station M1. It is connected.

複合パケットを構成する各データパケットは、データエリア(Data Area)とこのデータエリアの先頭に付加されるフラグエリア(Flag Area)とを有している。データエリアは、制御局M1から送信されて従属局S11,S12,S13が受信すべき受信データ、又は、従属局S11,S12,S13から制御局M1への返信データが書き込まれる領域である。また、フラグエリアは、後続するデータエリアに書き込まれたデータが受信データであるか或いは返信データであるかを識別するための送受信フラグが書き込まれる領域である。   Each data packet constituting the composite packet has a data area and a flag area added to the head of the data area. The data area is an area in which received data transmitted from the control station M1 and to be received by the dependent stations S11, S12, S13, or return data from the dependent stations S11, S12, S13 to the control station M1 is written. The flag area is an area in which a transmission / reception flag for identifying whether the data written in the subsequent data area is reception data or reply data is written.

また、複合パケットの先頭には、当該複合パケットによる通信の開始を示す通信開始信号(SOM:Start Of Message)が付加されており、このSOMにより、複合パケットの開始位置が特定できるようになっている。   In addition, a communication start signal (SOM: Start Of Message) indicating the start of communication by the composite packet is added to the head of the composite packet, and the start position of the composite packet can be specified by this SOM. Yes.

<制御局及び従属局の概要>
本実施形態のリング型通信ネットワークシステムにおいて、ノードとなる制御局M1及び3つの従属局S11,S12,S13は、それぞれ、上述した送信ポートTP及び受信ポートRPのほかに、複合パケットによるデータ通信を制御するための通信制御手段を備えている。
<Outline of control station and dependent stations>
In the ring communication network system of this embodiment, the control station M1 and the three subordinate stations S11, S12, and S13, which are nodes, perform data communication using composite packets in addition to the transmission port TP and the reception port RP, respectively. Communication control means for controlling is provided.

制御局M1の通信制御手段は、各従属局S11,S12,S13宛のデータ(受信データ)を送信ポートTPから複合パケット形式で送信すると同時に、各従属局S11,S12,S13から複合パケット形式で送られてきた返信データを受信ポートRPから受信する機能を有している。   The communication control means of the control station M1 transmits the data (received data) addressed to each of the dependent stations S11, S12, S13 from the transmission port TP in the composite packet format, and at the same time from each of the dependent stations S11, S12, S13 in the composite packet format. It has a function of receiving the reply data sent from the reception port RP.

具体的には、制御局M1の通信制御手段は、通信を開始するときに、まず、複合パケットによる通信の開始を示すSOMを送信ポートTPから通信バス101上に送出し、続いて、後続のデータが従属局が受信すべき受信データであることを示す送受信フラグ(以下、送受信フラグRと呼ぶ。)、第1従属局S11宛の受信データ、送受信フラグR、第2従属局S12宛の受信データ、送受信フラグR、第3従属局S13宛の受信データを、順次、送信ポートTPから通信バス101上に送出する。これら制御局M1の送信ポートTPから通信バス101上に順次送出される送受信フラグRと受信データとの組み合わせのうち、最初に送出される送受信フラグRと受信データとの組み合わせが第1従属局S11用に割り当てられたデータパケットのデータであり、次に送出される送受信フラグRと受信データとの組み合わせが第2従属局S12用に割り当てられたデータパケットのデータであり、最後に送出される送受信フラグRと受信データとの組み合わせが第3従属局S13用に割り当てられたデータパケットのデータである。つまり、制御局M1の通信制御手段は、図3(a)に示すように、SOMに続いて、フラグエリアに送受信フラグR、データエリアに第1従属局S11宛の受信データRX1をそれぞれ書き込んだデータパケットと、フラグエリアに送受信フラグR、データエリアに第2従属局S12宛の受信データRX2をそれぞれ書き込んだデータパケットと、フラグエリアに送受信フラグR、データエリアに第3従属局S13宛の受信データRX3をそれぞれ書き込んだデータパケットとを、この順で、送信ポートTPから通信バス101上に送出することで、複合パケット形式でのデータの送信を行う。   Specifically, when starting the communication, the communication control means of the control station M1 first sends an SOM indicating the start of communication by the composite packet from the transmission port TP onto the communication bus 101, and then the subsequent Transmission / reception flag (hereinafter referred to as transmission / reception flag R) indicating that the data is reception data to be received by the dependent station, reception data addressed to the first dependent station S11, transmission / reception flag R, reception addressed to the second dependent station S12 The data, the transmission / reception flag R, and the reception data addressed to the third dependent station S13 are sequentially sent out on the communication bus 101 from the transmission port TP. Among the combinations of the transmission / reception flag R and the reception data sequentially transmitted from the transmission port TP of the control station M1 onto the communication bus 101, the combination of the transmission / reception flag R and the reception data transmitted first is the first subordinate station S11. Is a data packet assigned for the second dependent station S12, and the combination of the transmission / reception flag R and the reception data sent next is the data packet data assigned for the second dependent station S12. A combination of the flag R and the received data is data of the data packet allocated for the third dependent station S13. That is, as shown in FIG. 3A, the communication control means of the control station M1 writes the transmission / reception flag R in the flag area and the reception data RX1 addressed to the first subordinate station S11 in the data area following the SOM, respectively. Data packet, data packet in which transmission / reception flag R is written in the flag area, reception data RX2 addressed to the second dependent station S12 is written in the data area, transmission / reception flag R in the flag area, and reception addressed to the third dependent station S13 in the data area Data packets in which the data RX3 is written are transmitted in this order from the transmission port TP onto the communication bus 101, thereby transmitting data in a composite packet format.

また、制御局M1の通信制御手段は、送信ポートTPからのデータの送信と受信ポートRPからのデータの受信とを同時に行う機能を有しており、以上のような複合パケット形式でのデータの送信を行いながら、通信バス104上を流れる複合パケット形式のデータを順次受信ポートRPから受信する。すなわち、制御局M1の通信制御手段は、図3(b)に示すように、SOMに続いて、フラグエリアに後続のデータが従属局からの返信データであることを示す送受信フラグ(以下、送受信フラグTと呼ぶ。)、データエリアに第1従属局S11からの返信データTX1がそれぞれ書き込まれたデータパケットと、フラグエリアに送受信フラグT、データエリアに第2従属局S12からの返信データTX2がそれぞれ書き込まれたデータパケットと、フラグエリアに送受信フラグT、データエリアに第3従属局S13からの返信データTX3がそれぞれ書き込まれたデータパケットとを、この順で、受信ポートRPから受信する。   In addition, the communication control means of the control station M1 has a function of simultaneously transmitting data from the transmission port TP and receiving data from the reception port RP. While transmitting, the data in the composite packet format flowing on the communication bus 104 is sequentially received from the reception port RP. That is, the communication control means of the control station M1, as shown in FIG. 3B, transmits / receives a flag indicating that the subsequent data in the flag area is reply data from the subordinate station following the SOM (hereinafter referred to as transmission / reception). This is called a flag T.), a data packet in which the reply data TX1 from the first dependent station S11 is written in the data area, a transmission / reception flag T in the flag area, and a reply data TX2 from the second dependent station S12 in the data area. Each of the written data packets and the data packet in which the transmission / reception flag T is written in the flag area and the reply data TX3 from the third dependent station S13 are written in the data area are received in this order from the reception port RP.

従属局S11,S12,S13の通信制御手段は、互いに共通の構成とされ、制御局M1からの自局宛の受信データを受信ポートRPから受信する同時に、制御局M1への返信データを送信ポートTPから送信する機能を有し、複合パケットを構成するデータパケットに何らかのデータを書き込んで送信ポートTPから送信する送信状態と、受信ポートRPで受信したデータをそのまま送信ポートTPへとスルーするバススルー状態とを切り替えながら、複合パケットによるデータ通信を制御する。   The communication control means of the dependent stations S11, S12, and S13 are configured in common with each other, receive reception data addressed to the own station from the control station M1 from the reception port RP, and simultaneously send return data to the control station M1 as a transmission port. A transmission state that has a function of transmitting from the TP, writes some data in the data packet constituting the composite packet and transmits it from the transmission port TP, and a bus through that passes the data received at the reception port RP as it is to the transmission port TP The data communication by the composite packet is controlled while switching the state.

具体的には、各従属局S11,S12,S13の通信制御手段は、通信バス101,102,103を流れる複合パケットのSOMを受信ポートRPで受信すると、複合パケットによる通信の開始を判断して、複合パケットを構成する各データパケットに対して以下のような処理を行うことで、複合パケットによるデータ通信を制御する。すなわち、各従属局S11,S12,S13の通信制御手段は、複合パケットにおけるデータパケットの開始位置が検出されるとバススルー状態から送信状態へと移行して、当該データパケットのフラグエリアに送受信フラグTを書き込んで送信ポートTPから送信すると同時に、当該フラグエリアに書き込まれていた元の送受信フラグの種別を判定する。そして、各制御局S11,S12,S13の通信制御手段は、フラグエリアに書き込まれていた元の送受信フラグが送受信フラグTであれば、このデータパケットが自局よりも上流側の従属局用に割り当てられたデータパケットであると判断し、送信状態からバススルー状態へと移行して、次のデータパケットの開始位置が検出されるまでバススルー状態を維持し、後続のデータエリアに書き込まれているデータを受信ポートRPから送信ポートTPへとスルーする。そして、次のデータパケットの開始位置が検出されると、再度バススルー状態から送信状態へと移行して、上述した処理を繰り返す。   Specifically, when the communication control means of each dependent station S11, S12, S13 receives the SOM of the composite packet flowing through the communication buses 101, 102, 103 at the reception port RP, it determines the start of communication by the composite packet. The data communication by the composite packet is controlled by performing the following processing on each data packet constituting the composite packet. That is, when the start position of the data packet in the composite packet is detected, the communication control means of each subordinate station S11, S12, S13 shifts from the bus-through state to the transmission state, and transmits / receives a flag to the flag area of the data packet. At the same time when T is written and transmitted from the transmission port TP, the type of the original transmission / reception flag written in the flag area is determined. If the original transmission / reception flag written in the flag area is the transmission / reception flag T, the communication control means of each control station S11, S12, S13 uses the data packet for the dependent station upstream of the own station. It is determined that the data packet is allocated, transitions from the transmission state to the bus-through state, maintains the bus-through state until the start position of the next data packet is detected, and is written to the subsequent data area. Through the received data from the reception port RP to the transmission port TP. Then, when the start position of the next data packet is detected, the state transits again from the bus-through state to the transmission state, and the above-described processing is repeated.

一方、フラグエリアに書き込まれていた元の送受信フラグが送受信フラグRであれば、このデータパケットが自局用に割り当てられたデータパケットであると判断し、後続のデータエリアに書き込まれている受信データを受信ポートRPから受信すると同時に、当該受信データが書き込まれていたデータエリアに制御局M1への返信データを書き込んで送信ポートTPから送信した後、送信状態からバススルー状態へと移行して、次の複合パケットにおける先頭のデータパケットの開始位置が検出されるまでバススルー状態を維持し、後続するデータパケットのデータを受信ポートRPから送信ポートTPへとスルーする。なお、複合パケットにおける先頭のデータパケットの開始位置は、各複合パケットの先頭に付加されているSOMにより検出することができ、また、各複合パケットにおける先頭のデータパケット以外のデータパケットの開始位置は、例えば、各データパケットにおけるデータエリアを固定長としておけば、バススルー状態に移行した後の経過時間を計測することにより、このバススルー状態に移行した後の経過時間に基づいて、次のデータパケットの開始位置を検出することができる。   On the other hand, if the original transmission / reception flag written in the flag area is the transmission / reception flag R, it is determined that the data packet is a data packet assigned to the local station, and the reception data written in the subsequent data area is received. At the same time that the data is received from the reception port RP, the reply data to the control station M1 is written in the data area in which the reception data has been written and transmitted from the transmission port TP, and then the state shifts from the transmission state to the bus-through state. The bus through state is maintained until the start position of the first data packet in the next composite packet is detected, and the data of the subsequent data packet is passed from the reception port RP to the transmission port TP. The start position of the top data packet in the composite packet can be detected by the SOM added to the head of each composite packet. The start position of the data packet other than the top data packet in each composite packet is For example, if the data area in each data packet is set to a fixed length, the next data is determined based on the elapsed time after shifting to the bus-through state by measuring the elapsed time after shifting to the bus-through state. The start position of the packet can be detected.

本実施形態のリング型通信ネットワークシステムにおいては、各従属局S11,S12,S13の通信制御手段が以上のような処理を行うことで、複合パケットを用いた制御局M1と各従属局S11,S12,S13との間での双方向のデータ通信を適切に行うことができる。   In the ring communication network system of the present embodiment, the communication control means of each dependent station S11, S12, S13 performs the processing as described above, so that the control station M1 using the composite packet and each dependent station S11, S12. , S13 can be appropriately performed in two-way data communication.

すなわち、制御局M1が図3(a)に示したような複合パケットを通信バス101に送出すると、第1従属局S11は、通信制御手段が上述した処理を行うことで、通信バス101上を流れる図3(a)に示したような複合パケットから、先頭のデータパケットのデータエリアに書き込まれた自局宛の受信データRX1を受信すると同時に、このデータエリアに制御局M1への返信データTX1を書き込んで、図3(c)に示す複合パケットとして通信バス102に送出する。   That is, when the control station M1 sends a composite packet as shown in FIG. 3A to the communication bus 101, the first subordinate station S11 performs the above-described processing on the communication bus 101 by the communication control means. The received data RX1 addressed to the own station written in the data area of the leading data packet is received from the flowing composite packet as shown in FIG. 3A, and at the same time, the reply data TX1 to the control station M1 is received in this data area. Is sent to the communication bus 102 as a composite packet shown in FIG.

また、第2従属局S12は、通信制御手段が上述した処理を行うことで、通信バス102上を流れる図3(c)に示したような複合パケットから、2番目のデータパケットのデータエリアに書き込まれた自局宛の受信データRX2を受信すると同時に、このデータエリアに制御局M1への返信データTX2を書き込んで、図3(d)に示す複合パケットとして通信バス103に送出する。   In addition, the second dependent station S12 performs the above-described processing by the communication control unit, so that the composite packet as shown in FIG. 3C flowing on the communication bus 102 is transferred to the data area of the second data packet. Simultaneously with receiving the received reception data RX2 addressed to the own station, the return data TX2 to the control station M1 is written in this data area and sent to the communication bus 103 as a composite packet shown in FIG.

また、第3従属局S13は、通信制御手段が上述した処理を行うことで、通信バス103上を流れる図3(d)に示したような複合パケットから、3番目のデータパケットのデータエリアに書き込まれた自局宛の受信データRX3を受信すると同時に、このデータエリアに制御局M1への返信データTX3を書き込んで、図3(b)に示したような複合パケットとして通信バス104に送出する。そして、制御局M1が、通信バス104上を流れる図3(b)に示したような複合パケットから、各従属局S11,S12,S13からの返信データTX1,TX2,TX3をそれぞれ受信する。   In addition, the third dependent station S13 performs the above-described processing by the communication control unit, so that the composite packet as shown in FIG. 3D flowing on the communication bus 103 is transferred to the data area of the third data packet. At the same time that the received reception data RX3 addressed to the own station is received, reply data TX3 to the control station M1 is written in this data area and sent to the communication bus 104 as a composite packet as shown in FIG. . Then, the control station M1 receives the reply data TX1, TX2, TX3 from the subordinate stations S11, S12, S13 from the composite packet as shown in FIG. 3B flowing on the communication bus 104.

以上のように、本実施形態のリング型通信ネットワークシステムでは、各従属局S11,S12,S13を同一の構成とし、また、各従属局S11,S12,S13に個別のアドレスを設定せずに、いわゆるアドレスフリーの状態としながら、制御局M1と各従属局S11,S12,S13との間でのデータ通信を適切に行うことができる。したがって、本実施形態のリング型通信ネットワークシステムによれば、各従属局S11,S12,S13となる通信機器の製造、管理の一元化を可能にして、コストの削減を実現できる。   As described above, in the ring communication network system of the present embodiment, the dependent stations S11, S12, and S13 have the same configuration, and individual addresses are not set in the dependent stations S11, S12, and S13. Data communication between the control station M1 and each of the dependent stations S11, S12, S13 can be appropriately performed while maintaining a so-called address-free state. Therefore, according to the ring type communication network system of the present embodiment, it is possible to centralize the manufacture and management of the communication devices that are the subordinate stations S11, S12, and S13, thereby realizing cost reduction.

また、本実施形態のリング型通信ネットワークシステムでは、制御局M1と各従属局S11,S12,S13は、複合パケット形式でのデータの受信と送信とを同時に行うことができるので、制御局M1と各従属局S11,S12,S13との間で双方向にデータを伝達するために必要な通信所要時間を短縮することができ、通信の高速化も実現できる。   In the ring communication network system of the present embodiment, the control station M1 and each of the dependent stations S11, S12, S13 can simultaneously receive and transmit data in the composite packet format. It is possible to reduce the time required for communication required for bi-directionally transmitting data between the subordinate stations S11, S12, and S13, and it is possible to increase the communication speed.

<従属局の具体的な構成例>
ここで、以上のような本実施形態のリング型通信ネットワークシステムにおいて、各従属局S11,S12,S13で上述した処理を実現するための通信制御手段の具体的な構成例について、図4を参照しながら更に詳しく説明する。なお、本実施形態のリング型通信ネットワークシステムでは、上述したように各従属局S11,S12,S13が同一の構成とされているので、以下で説明する通信制御手段の構成及び動作も共通である。したがって、以下では、従属局S11,S12,S13を従属局Sと総称し、受信ポートRPに接続されている前段の通信バスを通信バスN、送信ポートTPに接続されている後段の通信バスを通信バスMとして説明する。
<Specific configuration example of dependent stations>
Here, in the ring communication network system of the present embodiment as described above, refer to FIG. 4 for a specific configuration example of the communication control means for realizing the processing described above in each of the dependent stations S11, S12, S13. Further details will be described. In the ring communication network system according to the present embodiment, since the subordinate stations S11, S12, and S13 have the same configuration as described above, the configuration and operation of the communication control means described below are also common. . Therefore, in the following, the dependent stations S11, S12, and S13 are collectively referred to as the dependent station S, and the preceding communication bus connected to the reception port RP is defined as the communication bus N, and the subsequent communication bus connected to the transmission port TP. The communication bus M will be described.

図4は、従属局Sの具体的な内部構成の一例を示すブロック図である。この図4に例示する従属局Sは、通信制御手段を構成する具体的な構成要素として、SOM検出回路1、送受信フラグ送信回路2、送受信フラグ検出回路3、スルータイマ4、送受信制御回路5、通信データ受信回路6、通信データ送信回路7、送信タイマ8、送信選択制御回路9、送信選択回路10を備える。   FIG. 4 is a block diagram illustrating an example of a specific internal configuration of the dependent station S. The subordinate station S illustrated in FIG. 4 includes SOM detection circuit 1, transmission / reception flag transmission circuit 2, transmission / reception flag detection circuit 3, through timer 4, transmission / reception control circuit 5, as specific components constituting communication control means. A communication data receiving circuit 6, a communication data transmitting circuit 7, a transmission timer 8, a transmission selection control circuit 9, and a transmission selection circuit 10 are provided.

この従属局Sにおいて、通信バスNから当該通信バスNに接続された受信ポートRPへと入力される通信信号は、SOM検出回路1と、送受信フラグ検出回路3と、通信データ受信回路6と、送信選択回路10とに受信信号として分配される。   In this dependent station S, a communication signal input from the communication bus N to the reception port RP connected to the communication bus N is sent to the SOM detection circuit 1, the transmission / reception flag detection circuit 3, the communication data reception circuit 6, The signal is distributed to the transmission selection circuit 10 as a reception signal.

SOM検出回路1は、受信信号からSOMを検出したら、SOM検出信号を送受信フラグ送信回路2と送信選択制御回路9とに出力する。   When detecting the SOM from the received signal, the SOM detection circuit 1 outputs the SOM detection signal to the transmission / reception flag transmission circuit 2 and the transmission selection control circuit 9.

送受信フラグ送信回路2は、SOM検出回路1から出力されるSOM検出信号が入力されると、送受信フラグTの送信を開始し、それを内部送信信号として送信選択回路10に出力する。また、送受信フラグ送信回路2は、スルータイマ4から出力される後述するスルー終了信号が入力されたときも、送受信フラグTの送信を開始して、それを内部送信信号として送信選択回路10に出力する。   When the SOM detection signal output from the SOM detection circuit 1 is input, the transmission / reception flag transmission circuit 2 starts transmission of the transmission / reception flag T and outputs it to the transmission selection circuit 10 as an internal transmission signal. The transmission / reception flag transmission circuit 2 also starts transmission of the transmission / reception flag T and outputs it as an internal transmission signal to the transmission selection circuit 10 when a later-described through end signal output from the through timer 4 is input. To do.

送受信フラグ検出回路3は、受信信号から送受信フラグTを検出したら、T受信信号をスルータイマ4と送信選択制御回路9とに出力する。また、送受信フラグ検出回路3は、受信信号から送受信フラグRを検出したら、R受信信号を送受信制御回路5に出力する。   When the transmission / reception flag detection circuit 3 detects the transmission / reception flag T from the reception signal, the transmission / reception flag detection circuit 3 outputs the T reception signal to the through timer 4 and the transmission selection control circuit 9. When the transmission / reception flag detection circuit 3 detects the transmission / reception flag R from the reception signal, the transmission / reception flag detection circuit 3 outputs the R reception signal to the transmission / reception control circuit 5.

スルータイマ4は、送受信フラグ検出回路3から出力されるT受信信号が入力されると、タイマカウントを開始して、複合パケットを構成する各データパケットのデータエリアの通信データ長で決定されるところの他の従属局宛の受信データの伝送が終了するタイミングで、スルー終了信号を送受信フラグ送信回路2と送信選択制御回路9とに出力する。   When the T reception signal output from the transmission / reception flag detection circuit 3 is input, the through timer 4 starts a timer count and is determined by the communication data length of the data area of each data packet constituting the composite packet. A through end signal is output to the transmission / reception flag transmission circuit 2 and the transmission selection control circuit 9 at the timing when the transmission of the reception data addressed to the other dependent stations is completed.

送受信制御回路5は、送信選択制御回路9から出力される後述する送信選択信号が送信状態であるときに、送受信フラグ検出回路3から出力されるR受信信号が入力されると、送受信開始信号を通信データ受信回路6と、通信データ送信回路7と、送信タイマ8とに出力する。   The transmission / reception control circuit 5 receives a transmission / reception start signal when an R reception signal output from the transmission / reception flag detection circuit 3 is input when a transmission selection signal described later output from the transmission selection control circuit 9 is in a transmission state. The data is output to the communication data receiving circuit 6, the communication data transmitting circuit 7, and the transmission timer 8.

通信データ受信回路6は、送受信制御回路5から出力される送受信開始信号が入力されると、受信ポートRPからの受信信号、すなわち、制御局M1から自局宛に送られた受信データの受信を開始する。   When the transmission / reception start signal output from the transmission / reception control circuit 5 is input, the communication data reception circuit 6 receives a reception signal from the reception port RP, that is, reception data sent from the control station M1 to the own station. Start.

通信データ送信回路7は、送受信制御回路5から出力される送受信開始信号が入力されると、制御局M1への返信データの送信を開始し、返信データを内部送信信号として送信選択回路10に出力する。   When the transmission / reception start signal output from the transmission / reception control circuit 5 is input, the communication data transmission circuit 7 starts transmission of reply data to the control station M1, and outputs the reply data to the transmission selection circuit 10 as an internal transmission signal. To do.

送信タイマ8は、送受信制御回路5から出力される送受信開始信号が入力されると、タイマカウントを開始して、複合パケットを構成する各データパケットのデータエリアの通信データ長で決定されるところの制御局M1宛の返信データの伝送が終了するタイミングで、送信状態終了信号を送信選択制御回路9に出力する。   The transmission timer 8 starts the timer count when the transmission / reception start signal output from the transmission / reception control circuit 5 is input, and is determined by the communication data length of the data area of each data packet constituting the composite packet. At the timing when transmission of reply data addressed to the control station M1 is completed, a transmission status end signal is output to the transmission selection control circuit 9.

送信選択制御回路9は、送信状態かバススルー状態かの何れかの状態であることを示す送信選択信号を送受信制御回路5と送信選択回路10とに常に出力しており、状況に応じて出力する送信選択信号の内容を切り替える。すなわち、送信選択制御回路9は、アイドル状態、初期状態では、バススルー状態を示す送信選択信号を出力し、SOM検出回路1から出力されたSOM検出信号またはスルータイマ4から出力されたスルー終了信号が入力されると、出力している送信選択信号を送信状態を示す送信選択信号とする。また、送信選択制御回路9は、送信状態を示す送信選択信号を出力しているときに、送受信フラグ検出回路3から出力されたT受信信号または送信タイマ8から出力された送信状態終了信号が入力されると、出力している送信選択信号をバススルー状態を示す送信選択信号とする。   The transmission selection control circuit 9 always outputs a transmission selection signal indicating that it is in either a transmission state or a bus-through state to the transmission / reception control circuit 5 and the transmission selection circuit 10 and outputs it according to the situation. The content of the transmission selection signal to be switched is switched. That is, the transmission selection control circuit 9 outputs a transmission selection signal indicating a bus through state in the idle state and the initial state, and outputs a SOM detection signal output from the SOM detection circuit 1 or a through end signal output from the through timer 4. Is input, the output transmission selection signal is used as a transmission selection signal indicating a transmission state. Further, the transmission selection control circuit 9 receives the T reception signal output from the transmission / reception flag detection circuit 3 or the transmission state end signal output from the transmission timer 8 while outputting the transmission selection signal indicating the transmission state. Then, the output transmission selection signal is used as a transmission selection signal indicating a bus-through state.

送信選択回路10は、送信選択制御回路9から出力される送信選択信号が送信状態を示すものであれば、送受信フラグ送信回路2から出力された内部送信信号(送受信フラグTや送受信フラグRを表す信号)や、通信データ送信回路7から出力された内部送信信号(制御局M1への返信データを表す信号)を送信信号として送信ポートTPに出力する。また、送信選択回路10は、送信選択制御回路9から出力される送信選択信号がスルー状態を示すものであれば、通信バスNに接続された受信ポートRPの通信信号(受信ポートRPから送信選択回路10に分配された受信信号)を送信信号として送信ポートTPに出力する。この送信ポートTPに出力された送信信号は、送信ポートTPに接続された通信バスM上に通信信号として送出される。   If the transmission selection signal output from the transmission selection control circuit 9 indicates a transmission state, the transmission selection circuit 10 represents the internal transmission signal (representing the transmission / reception flag T or the transmission / reception flag R) output from the transmission / reception flag transmission circuit 2. Signal) and an internal transmission signal output from the communication data transmission circuit 7 (a signal representing reply data to the control station M1) is output as a transmission signal to the transmission port TP. Further, the transmission selection circuit 10 selects the communication signal of the reception port RP connected to the communication bus N (transmission selection from the reception port RP) if the transmission selection signal output from the transmission selection control circuit 9 indicates a through state. The reception signal distributed to the circuit 10) is output as a transmission signal to the transmission port TP. The transmission signal output to the transmission port TP is transmitted as a communication signal on the communication bus M connected to the transmission port TP.

<第1従属局の動作の具体例>
次に、図4に例示した内部構成を有する場合の第1従属局S11の動作の具体例について、図5を参照しながら説明する。
<Specific example of operation of first dependent station>
Next, a specific example of the operation of the first dependent station S11 having the internal configuration illustrated in FIG. 4 will be described with reference to FIG.

図5は、図4に例示した内部構成を有する第1従属局S11が複合パケットによるデータ通信を行う際の一連の動作を示すタイミングチャートである。なお、図5の上段に示した複合パケットは、通信バス101を流れて第1従属局S11の受信ポートRPに入力された通信信号(受信信号)を表す複合パケットであり、図5の下段に示した複合パケットは、第1従属局S11の送信ポートTPから通信バス102上に送出される送信信号を表す複合パケットである。   FIG. 5 is a timing chart showing a series of operations when the first dependent station S11 having the internal configuration illustrated in FIG. 4 performs data communication using the composite packet. Note that the composite packet shown in the upper part of FIG. 5 is a composite packet that represents a communication signal (received signal) that flows through the communication bus 101 and is input to the reception port RP of the first dependent station S11. The illustrated composite packet is a composite packet representing a transmission signal transmitted from the transmission port TP of the first dependent station S11 onto the communication bus 102.

図5に示すように、通信バス101上を複合パケットの形式で流れる通信信号が第1従属局S11の受信ポートRPに入力されると、第1従属局S11では、まず、SOM検出回路1が複合パケットの先頭のSOMを検出し、SOM検出信号を出力する。これにより、送信選択制御回路9から出力される送信選択信号がバススルー状態を示す信号から送信状態を示す信号へと切り替えられると同時に、送受信フラグ送信回路2により送受信フラグTが内部送信信号として出力されて、送信ポートTPから通信バス102上に送出される。   As shown in FIG. 5, when a communication signal flowing in the form of a composite packet on the communication bus 101 is input to the reception port RP of the first dependent station S11, the SOM detection circuit 1 first starts in the first dependent station S11. The head SOM of the composite packet is detected and an SOM detection signal is output. As a result, the transmission selection signal output from the transmission selection control circuit 9 is switched from the signal indicating the bus-through state to the signal indicating the transmission state, and at the same time, the transmission / reception flag transmission circuit 2 outputs the transmission / reception flag T as an internal transmission signal. Then, the data is sent out on the communication bus 102 from the transmission port TP.

そして、送受信フラグ送信回路2による送受信フラグTの送信終了と同時に、送受信フラグ検出回路3により送受信フラグRが検出されてR受信信号が出力され、送受信制御回路5により送受信開始信号が出力されることで、通信データ受信回路6と通信データ送信回路7が起動され、通信データ受信回路6により通信バス101からの受信信号(制御局M1から自局宛に送られた受信データRX1)が受信されると同時に、通信データ送信回路7により制御局M1への返信データTX1が内部送信信号として出力されて、送信ポートTPから通信バス102上に送出される。また、通信データ送信回路7による返信データTX1の送信が開始されると、送信タイマ8が起動される。   At the same time when the transmission / reception flag transmission circuit 2 finishes transmitting the transmission / reception flag T, the transmission / reception flag detection circuit 3 detects the transmission / reception flag R, outputs the R reception signal, and the transmission / reception control circuit 5 outputs the transmission / reception start signal. Then, the communication data receiving circuit 6 and the communication data transmitting circuit 7 are activated, and the communication data receiving circuit 6 receives the reception signal from the communication bus 101 (received data RX1 sent from the control station M1 to the own station). At the same time, the reply data TX1 to the control station M1 is output as an internal transmission signal by the communication data transmission circuit 7 and sent out from the transmission port TP onto the communication bus 102. When the transmission of the reply data TX1 by the communication data transmission circuit 7 is started, the transmission timer 8 is started.

そして、通信データ送信回路7による返信データTX1の送信終了と同時に、送信タイマ8により送信状態終了信号が出力され、送信選択制御回路9から出力される送信選択信号が送信状態を示す信号からバススルー状態を示す信号へと切り替えられる。その後、送信選択制御回路9は、SOM検出回路1が次の複合パケットのSOMを検出するまでの間は、送受信フラグ検出回路3により送受信フラグRが検出されてR受信信号が出力されてもバススルー状態を示す送信選択信号を出力し、次の複合パケットにおける先頭のデータパケットが受信ポートRPに入力されるまでバススルー状態を維持する。   Simultaneously with the end of transmission of the reply data TX1 by the communication data transmission circuit 7, a transmission state end signal is output by the transmission timer 8, and the transmission selection signal output from the transmission selection control circuit 9 is bus-through from the signal indicating the transmission state. It is switched to a signal indicating the state. Thereafter, until the SOM detection circuit 1 detects the SOM of the next composite packet, the transmission selection control circuit 9 is in a bus state even if the transmission / reception flag R is detected by the transmission / reception flag detection circuit 3 and the R reception signal is output. A transmission selection signal indicating the through state is output, and the bus through state is maintained until the first data packet in the next composite packet is input to the reception port RP.

<第2従属局の動作の具体例>
次に、図4に例示した内部構成を有する場合の第2従属局S12の動作の具体例について、図6を参照しながら説明する。
<Specific example of operation of second dependent station>
Next, a specific example of the operation of the second dependent station S12 having the internal configuration illustrated in FIG. 4 will be described with reference to FIG.

図6は、図4に例示した内部構成を有する第2従属局S12が複合パケットによるデータ通信を行う際の一連の動作を示すタイミングチャートである。なお、図6の上段に示した複合パケットは、通信バス102を流れて第2従属局S12の受信ポートRPに入力された通信信号(受信信号)を表す複合パケットであり、図6の下段に示した複合パケットは、第2従属局S12の送信ポートTPから通信バス103上に送出される送信信号を表す複合パケットである。   FIG. 6 is a timing chart showing a series of operations when the second dependent station S12 having the internal configuration illustrated in FIG. 4 performs data communication using composite packets. The composite packet shown in the upper part of FIG. 6 is a composite packet that represents a communication signal (received signal) that flows through the communication bus 102 and is input to the reception port RP of the second dependent station S12. The illustrated composite packet is a composite packet representing a transmission signal transmitted from the transmission port TP of the second dependent station S12 onto the communication bus 103.

図6に示すように、通信バス102上を複合パケットの形式で流れる通信信号が第2従属局S12の受信ポートRPに入力されると、第2従属局S12では、まず、SOM検出回路1が複合パケットの先頭のSOMを検出し、SOM検出信号を出力する。これにより、送信選択制御回路9から出力される送信選択信号がバススルー状態を示す信号から送信状態を示す信号へと切り替えられると同時に、送受信フラグ送信回路2により送受信フラグTが内部送信信号として出力されて、送信ポートTPから通信バス103上に送出される。   As shown in FIG. 6, when a communication signal flowing in the form of a composite packet on the communication bus 102 is input to the reception port RP of the second dependent station S12, the SOM detection circuit 1 first starts in the second dependent station S12. The head SOM of the composite packet is detected and an SOM detection signal is output. As a result, the transmission selection signal output from the transmission selection control circuit 9 is switched from the signal indicating the bus-through state to the signal indicating the transmission state, and at the same time, the transmission / reception flag transmission circuit 2 outputs the transmission / reception flag T as an internal transmission signal. Then, the data is transmitted from the transmission port TP onto the communication bus 103.

そして、送受信フラグ送信回路2による送受信フラグTの送信終了と同時に、送受信フラグ検出回路3により送受信フラグTが検出されてT受信信号が出力されることにより、送信選択制御回路9から出力される送信選択信号が送信状態を示す信号からバススルー状態を示す信号へと切り替えられ、受信ポートRPに入力された第1従属局S11から制御局M1への返信データTX1が送信ポートTPへと伝送されて通信バス103上に送出されると同時に、スルータイマ4が起動される。   At the same time as the transmission / reception flag T is completely transmitted by the transmission / reception flag transmission circuit 2, the transmission / reception flag detection circuit 3 detects the transmission / reception flag T and outputs a T reception signal. The selection signal is switched from the signal indicating the transmission state to the signal indicating the bus-through state, and the reply data TX1 from the first dependent station S11 input to the reception port RP to the control station M1 is transmitted to the transmission port TP. Simultaneously with the transmission on the communication bus 103, the through timer 4 is started.

その後、第1従属局S11から制御局M1への返信データTXの伝送の終了と同時にスルータイマ4がスルー終了信号を出力して、送信選択制御回路9から出力される送信選択信号がバススルー状態を示す信号から送信状態を示す信号へと再度切り替えられると同時に、送受信フラグ送信回路2により送受信フラグTが内部送信信号として出力されて、送信ポートTPから通信バス103上に送出される。   Thereafter, the through timer 4 outputs a through end signal simultaneously with the end of transmission of the reply data TX from the first dependent station S11 to the control station M1, and the transmission selection signal output from the transmission selection control circuit 9 is in the bus through state. The transmission / reception flag transmission circuit 2 outputs the transmission / reception flag T as an internal transmission signal and is transmitted from the transmission port TP onto the communication bus 103.

そして、送受信フラグ送信回路2による送受信フラグTの送信終了と同時に、送受信フラグ検出回路3により送受信フラグRが検出され、送受信制御回路5により送受信開始信号が出力されることで、通信データ受信回路6と通信データ送信回路7が起動され、通信データ受信回路6により通信バス102からの受信信号(制御局M1から自局宛に送られた受信データRX2)が受信されると同時に、通信データ送信回路7により制御局M1への返信データTX2が内部送信信号として出力されて、送信ポートTPから通信バス103上に送出される。また、通信データ送信回路7による返信データTX2の送信が開始されると、送信タイマ8が起動される。   Simultaneously with the end of transmission of the transmission / reception flag T by the transmission / reception flag transmission circuit 2, the transmission / reception flag detection circuit 3 detects the transmission / reception flag R, and the transmission / reception control circuit 5 outputs a transmission / reception start signal. The communication data transmission circuit 7 is activated, and the communication data reception circuit 6 receives the reception signal from the communication bus 102 (the reception data RX2 transmitted from the control station M1 to the own station). 7, the reply data TX2 to the control station M1 is output as an internal transmission signal, and is sent out on the communication bus 103 from the transmission port TP. When the transmission of the reply data TX2 by the communication data transmission circuit 7 is started, the transmission timer 8 is started.

そして、通信データ送信回路7による返信データTX2の送信終了と同時に、送信タイマ8により送信状態終了信号が出力され、送信選択制御回路9から出力される送信選択信号が送信状態を示す信号からバススルー状態を示す信号へと切り替えられる。その後、送信選択制御回路9は、SOM検出回路1が次の複合パケットのSOMを検出するまでの間は、送受信フラグ検出回路3により送受信フラグRが検出されてR受信信号が出力されてもバススルー状態を示す送信選択信号を出力し、次の複合パケットにおける先頭のデータパケットが受信ポートRPに入力されるまでバススルー状態を維持する。   Simultaneously with the end of transmission of the reply data TX2 by the communication data transmission circuit 7, a transmission state end signal is output by the transmission timer 8, and the transmission selection signal output from the transmission selection control circuit 9 is bus-through from the signal indicating the transmission state. It is switched to a signal indicating the state. Thereafter, until the SOM detection circuit 1 detects the SOM of the next composite packet, the transmission selection control circuit 9 is in the bus even if the transmission / reception flag R is detected by the transmission / reception flag detection circuit 3 and the R reception signal is output A transmission selection signal indicating the through state is output, and the bus through state is maintained until the first data packet in the next composite packet is input to the reception port RP.

<第3従属局の動作の具体例>
次に、図4に例示した内部構成を有する場合の第3従属局S13の動作の具体例について、図7を参照しながら説明する。
<Specific example of the operation of the third dependent station>
Next, a specific example of the operation of the third dependent station S13 having the internal configuration illustrated in FIG. 4 will be described with reference to FIG.

図7は、図4に例示した内部構成を有する第3従属局S13が複合パケットによるデータ通信を行う際の一連の動作を示すタイミングチャートである。なお、図7の上段に示した複合パケットは、通信バス103を流れて第3従属局S13の受信ポートRPに入力された通信信号(受信信号)を表す複合パケットであり、図7の下段に示した複合パケットは、第3従属局S13の送信ポートTPから通信バス104上に送出される送信信号を表す複合パケットである。   FIG. 7 is a timing chart showing a series of operations when the third dependent station S13 having the internal configuration illustrated in FIG. 4 performs data communication using composite packets. The composite packet shown in the upper part of FIG. 7 is a composite packet that represents a communication signal (received signal) that flows through the communication bus 103 and is input to the reception port RP of the third dependent station S13. The illustrated composite packet is a composite packet representing a transmission signal transmitted from the transmission port TP of the third dependent station S13 onto the communication bus 104.

図7に示すように、通信バス103上を複合パケットの形式で流れる通信信号が第3従属局S13の受信ポートRPに入力されると、第3従属局S13では、まず、SOM検出回路1が複合パケットの先頭のSOMを検出し、SOM検出信号を出力する。これにより、送信選択制御回路9から出力される送信選択信号がバススルー状態を示す信号から送信状態を示す信号へと切り替えられると同時に、送受信フラグ送信回路2により送受信フラグTが内部送信信号として出力されて、送信ポートTPから通信バス104上に送出される。   As shown in FIG. 7, when a communication signal flowing in the form of a composite packet on the communication bus 103 is input to the reception port RP of the third dependent station S13, the SOM detection circuit 1 first starts in the third dependent station S13. The head SOM of the composite packet is detected and an SOM detection signal is output. As a result, the transmission selection signal output from the transmission selection control circuit 9 is switched from the signal indicating the bus-through state to the signal indicating the transmission state, and at the same time, the transmission / reception flag transmission circuit 2 outputs the transmission / reception flag T as an internal transmission signal. Then, the data is transmitted from the transmission port TP onto the communication bus 104.

そして、送受信フラグ送信回路2による送受信フラグTの送信終了と同時に、送受信フラグ検出回路3により送受信フラグTが検出されてT受信信号が出力されることにより、送信選択制御回路9から出力される送信選択信号が送信状態を示す信号からバススルー状態を示す信号へと切り替えられ、受信ポートRPに入力された第1従属局S11から制御局M1への返信データTX1が送信ポートTPへと伝送されて通信バス104上に送出されると同時に、スルータイマ4が起動される。   At the same time as the transmission / reception flag T is completely transmitted by the transmission / reception flag transmission circuit 2, the transmission / reception flag detection circuit 3 detects the transmission / reception flag T and outputs a T reception signal. The selection signal is switched from the signal indicating the transmission state to the signal indicating the bus-through state, and the reply data TX1 from the first dependent station S11 input to the reception port RP to the control station M1 is transmitted to the transmission port TP. Simultaneously with the transmission on the communication bus 104, the through timer 4 is started.

その後、第1従属局S11から制御局M1への返信データTX1の伝送の終了と同時にスルータイマ4がスルー終了信号を出力して、送信選択制御回路9から出力される送信選択信号がバススルー状態を示す信号から送信状態を示す信号へと再度切り替えられると同時に、送受信フラグ送信回路2により送受信フラグTが内部送信信号として出力されて、送信ポートTPから通信バス104上に送出される。   Thereafter, the through timer 4 outputs a through end signal simultaneously with the end of transmission of the reply data TX1 from the first dependent station S11 to the control station M1, and the transmission selection signal output from the transmission selection control circuit 9 is in the bus through state. The transmission / reception flag transmission circuit 2 outputs the transmission / reception flag T as an internal transmission signal and is transmitted from the transmission port TP onto the communication bus 104.

そして、送受信フラグ送信回路2による送受信フラグTの送信終了と同時に、送受信フラグ検出回路3により送受信フラグTが検出されてT受信信号が出力されることにより、送信選択制御回路9から出力される送信選択信号が送信状態を示す信号からバススルー状態を示す信号へと再度切り替えられて、受信ポートRPに入力された第2従属局S12から制御局M1への返信データTX2が送信ポートTPへと伝送されて通信バス104上に送出されると同時に、スルータイマ4が起動される。   At the same time as the transmission / reception flag T is completely transmitted by the transmission / reception flag transmission circuit 2, the transmission / reception flag detection circuit 3 detects the transmission / reception flag T and outputs a T reception signal. The selection signal is switched again from the signal indicating the transmission state to the signal indicating the bus-through state, and the reply data TX2 from the second subordinate station S12 input to the reception port RP to the control station M1 is transmitted to the transmission port TP. At the same time as being sent out on the communication bus 104, the through timer 4 is started.

その後、第2従属局S12から制御局M1への返信データTX2の伝送の終了と同時にスルータイマ4がスルー終了信号を出力して、送信選択制御回路9から出力される送信選択信号がバススルー状態を示す信号から送信状態を示す信号へと再度切り替えられると同時に、送受信フラグ送信回路2により送受信フラグTが内部送信信号として出力されて、送信ポートTPから通信バス104上に送出される。   Thereafter, the through timer 4 outputs a through end signal simultaneously with the end of transmission of the reply data TX2 from the second dependent station S12 to the control station M1, and the transmission selection signal output from the transmission selection control circuit 9 is in the bus through state. The transmission / reception flag transmission circuit 2 outputs the transmission / reception flag T as an internal transmission signal and is transmitted from the transmission port TP onto the communication bus 104.

そして、送受信フラグ送信回路2による送受信フラグTの送信終了と同時に、送受信フラグ検出回路3により送受信フラグRが検出され、送受信制御回路5により送受信開始信号が出力されることで、通信データ受信回路6と通信データ送信回路7が起動され、通信データ受信回路6により通信バス103からの受信信号(制御局M1から自局宛に送られた受信データRX3)が受信されると同時に、通信データ送信回路7により制御局M1への返信データTX3が内部送信信号として出力されて、送信ポートTPから通信バス104上に送出される。また、通信データ送信回路7による返信データTX3の送信が開始されると、送信タイマ8が起動される。   Simultaneously with the end of transmission of the transmission / reception flag T by the transmission / reception flag transmission circuit 2, the transmission / reception flag detection circuit 3 detects the transmission / reception flag R, and the transmission / reception control circuit 5 outputs a transmission / reception start signal. And the communication data transmission circuit 7 are activated, and the communication data reception circuit 6 receives the reception signal (reception data RX3 transmitted from the control station M1 to the local station) from the communication bus 103, and at the same time, the communication data transmission circuit 7, the reply data TX3 to the control station M1 is output as an internal transmission signal, and is sent out on the communication bus 104 from the transmission port TP. When the transmission of the reply data TX3 by the communication data transmission circuit 7 is started, the transmission timer 8 is started.

そして、通信データ送信回路7による返信データTX3の送信終了と同時に、送信タイマ8により送信状態終了信号が出力され、送信選択制御回路9から出力される送信選択信号が送信状態を示す信号からバススルー状態を示す信号へと切り替えられる。   Simultaneously with the end of transmission of the reply data TX3 by the communication data transmission circuit 7, a transmission state end signal is output by the transmission timer 8, and the transmission selection signal output from the transmission selection control circuit 9 is bus-through from the signal indicating the transmission state. It is switched to a signal indicating the state.

<効果>
以上、具体的な例を挙げながら詳細に説明したように、本実施形態のリング型通信ネットワークシステムによれば、第1従属局S11と第2従属局S12と第3従属局S13とを互いに同一の構成とし、各従属局S11,S12,S13毎に個別のアドレスを設定することなく、制御局M1と各従属局S11,S12,S13との間での通信を適切に行うことができるので、各従属局S11,S12,S13となる通信機器の製造、管理の一元化を可能にして、コストの削減を実現できる。また、本実施形態のリング型通信ネットワークシステムによれば、制御局M1と各従属局S11,S12,S13は、複合パケット形式でのデータの受信と送信とを同時に行うことができるので、制御局M1と各従属局S11,S12,S13との間で双方向にデータを伝達するために必要な通信所要時間を短縮することができ、通信の高速化も実現できる。
<Effect>
As described above in detail with specific examples, according to the ring communication network system of the present embodiment, the first dependent station S11, the second dependent station S12, and the third dependent station S13 are identical to each other. Since the communication between the control station M1 and each of the dependent stations S11, S12, and S13 can be appropriately performed without setting an individual address for each of the dependent stations S11, S12, and S13, It is possible to unify the manufacture and management of communication devices that become the subordinate stations S11, S12, and S13, thereby realizing cost reduction. Further, according to the ring communication network system of the present embodiment, the control station M1 and each of the dependent stations S11, S12, S13 can simultaneously receive and transmit data in the composite packet format. It is possible to reduce the time required for communication required to transmit data bidirectionally between M1 and each of the dependent stations S11, S12, S13, and to realize high speed communication.

[第2の実施形態]
次に、本発明を適用した第2の実施形態のリング型通信ネットワークシステムについて説明する。本実施形態のリング型通信ネットワークシステムでは、ネットワークのノードとなる複数の従属局が同一の共有アドレスを有する従属局同士でグループ分けされて、各グループに属する従属局群と制御局とが、通信バスを介して各々リング状に接続されている。そして、制御局の通信制御手段が、複合パケットに共有アドレスを示すアドレス情報を付加して通信バスに送出し、複数の従属局の各々が備える通信制御手段が、自局の共有アドレスを示すアドレス情報が付加された複合パケットを対象として、当該複合パケットによるデータ通信を制御するようにしている。
[Second Embodiment]
Next, a ring communication network system according to a second embodiment to which the present invention is applied will be described. In the ring communication network system of the present embodiment, a plurality of dependent stations that are nodes of the network are grouped by dependent stations having the same shared address, and the dependent station group and the control station belonging to each group communicate with each other. Each is connected in a ring shape via a bus. Then, the communication control means of the control station adds the address information indicating the shared address to the composite packet and sends it to the communication bus, and the communication control means provided in each of the plurality of dependent stations indicates the address indicating the shared address of the own station. Data communication using the composite packet is controlled for the composite packet to which information is added.

なお、本実施形態のリング型通信ネットワークシステムにおけるその他の部分、すなわち、制御局や各従属局の構成及び動作の基本的な部分などは、上述した第1の実施形態と同様であるので、以下では、本実施形態に特徴的な部分についてのみ説明し、第1の実施形態と同様の部分については説明を省略する。   The other parts in the ring communication network system of this embodiment, that is, the basic parts of the configuration and operation of the control station and each dependent station are the same as those in the first embodiment described above. Now, only the characteristic part of the present embodiment will be described, and the description of the same part as the first embodiment will be omitted.

<全体構成>
図8は、第2の実施形態のリング型通信ネットワークシステムの全体構成を概略的に示す図である。本実施形態のリング型通信ネットワークシステムは、1つの制御局M2と9つの従属局(第1従属局S21,第2従属局S22,第3従属局S23,第4従属局S24,第5従属局S25,第6従属局S26,第7従属局S27,第8従属局S28,第9従属局S29)とを、ネットワークのノードとして備えている。そして、9つの従属局のうちの第1従属局S21と第2従属局S22と第3従属局S23には、共有アドレスであるAD1が付与されて第1の従属局群SG1としてグループ分けされ、第4従属局S24と第5従属局S25と第6従属局S26には、共有アドレスであるAD2が付与されて第2の従属局群SG2としてグループ分けされ、第7従属局S27と第8従属局S28と第9従属局S29には、共有アドレスであるAD3が付与されて第3の従属局群SG3としてグループ分けされている。
<Overall configuration>
FIG. 8 is a diagram schematically showing the overall configuration of the ring communication network system of the second embodiment. The ring communication network system of this embodiment includes one control station M2 and nine dependent stations (first dependent station S21, second dependent station S22, third dependent station S23, fourth dependent station S24, and fifth dependent station). S25, sixth dependent station S26, seventh dependent station S27, eighth dependent station S28, and ninth dependent station S29) are provided as network nodes. Of the nine dependent stations, the first dependent station S21, the second dependent station S22, and the third dependent station S23 are assigned a shared address AD1 and are grouped as a first dependent station group SG1, The fourth dependent station S24, the fifth dependent station S25, and the sixth dependent station S26 are assigned a shared address AD2 and grouped as a second dependent station group SG2, and the seventh dependent station S27 and the eighth dependent station S26 are grouped together. The station S28 and the ninth dependent station S29 are assigned a shared address AD3 and are grouped as a third dependent station group SG3.

本実施形態のリング型通信ネットワークシステムにおいて、制御局M2と第1の従属局群SG1を構成する第1従属局S21、第2従属局S22、第3従属局S23とは、通信バス201,202,203,204を介してリング状に接続されている。すなわち、制御局M2の送信ポートTPと第1従属局S21の受信ポートRPとが通信バス201によって接続され、第1従属局S21の送信ポートTPと第2従属局S22の受信ポートRPとが通信バス202によって接続され、第2従属局S22の送信ポートTPと第3従属局S23の受信ポートRPとが通信バス203によって接続され、第3従属局S23の送信ポートTPと制御局M2の受信ポートRPとが通信バス204によって接続されている。そして、制御局M2から通信バス201を介して第1従属局S21、第1従属局S21から通信バス202を介して第2従属局S22、第2従属局S22から通信バス203を介して第3従属局S23、第3従属局S23から通信バス204を介して制御局M2へと、順次信号が流れる構成となっている。   In the ring communication network system of the present embodiment, the control station M2 and the first dependent station S21, the second dependent station S22, and the third dependent station S23 that form the first dependent station group SG1 are communication buses 201 and 202. , 203, 204 are connected in a ring shape. That is, the transmission port TP of the control station M2 and the reception port RP of the first dependent station S21 are connected by the communication bus 201, and the transmission port TP of the first dependent station S21 and the reception port RP of the second dependent station S22 communicate with each other. The transmission port TP of the second dependent station S22 and the reception port RP of the third dependent station S23 are connected by the bus 202, and the transmission port TP of the third dependent station S23 and the reception port of the control station M2 are connected by the communication bus 203. The RP is connected to the communication bus 204. Then, the control station M2 receives the third dependent station S21 via the communication bus 201, the first dependent station S21 via the communication bus 202, the second dependent station S22, and the second dependent station S22 via the communication bus 203. A signal sequentially flows from the dependent station S23 and the third dependent station S23 to the control station M2 via the communication bus 204.

また、本実施形態のリング型通信ネットワークシステムにおいて、制御局M2と第2の従属局群SG2を構成する第4従属局S24、第5従属局S25、第6従属局S26とは、通信バス201,205,206,204を介してリング状に接続されている。すなわち、制御局M2の送信ポートTPと第4従属局S24の受信ポートRPとが通信バス201によって接続され、第4従属局S24の送信ポートTPと第5従属局S25の受信ポートRPとが通信バス205によって接続され、第5従属局S25の送信ポートTPと第6従属局S26の受信ポートRPとが通信バス206によって接続され、第6従属局S26の送信ポートTPと制御局M2の受信ポートRPとが通信バス204によって接続されている。そして、制御局M2から通信バス201を介して第4従属局S24、第4従属局S24から通信バス205を介して第5従属局S25、第5従属局S25から通信バス206を介して第6従属局S26、第6従属局S26から通信バス204を介して制御局M2へと、順次信号が流れる構成となっている。   In the ring communication network system of the present embodiment, the control station M2 and the fourth dependent station S24, the fifth dependent station S25, and the sixth dependent station S26 constituting the second dependent station group SG2 are connected to the communication bus 201. , 205, 206, 204 are connected in a ring shape. That is, the transmission port TP of the control station M2 and the reception port RP of the fourth dependent station S24 are connected by the communication bus 201, and the transmission port TP of the fourth dependent station S24 and the reception port RP of the fifth dependent station S25 communicate with each other. The transmission port TP of the fifth dependent station S25 and the reception port RP of the sixth dependent station S26 are connected by the bus 205, and the transmission port TP of the sixth dependent station S26 and the reception port of the control station M2 are connected by the communication bus 206. The RP is connected to the communication bus 204. Then, from the control station M2 to the fourth dependent station S24 via the communication bus 201, from the fourth dependent station S24 to the fifth dependent station S25 via the communication bus 205, and from the fifth dependent station S25 via the communication bus 206 to the sixth slave station. A signal sequentially flows from the dependent station S26 and the sixth dependent station S26 to the control station M2 via the communication bus 204.

また、本実施形態のリング型通信ネットワークシステムにおいて、制御局M2と第3の従属局群SG3を構成する第7従属局S27、第8従属局S28、第9従属局S29とは、通信バス201,207,208,204を介してリング状に接続されている。すなわち、制御局M2の送信ポートTPと第7従属局S27の受信ポートRPとが通信バス201によって接続され、第7従属局S27の送信ポートTPと第8従属局S28の受信ポートRPとが通信バス207によって接続され、第8従属局S28の送信ポートTPと第9従属局S29の受信ポートRPとが通信バス208によって接続され、第9従属局S29の送信ポートTPと制御局M2の受信ポートRPとが通信バス204によって接続されている。そして、制御局M2から通信バス201を介して第7従属局S27、第7従属局S27から通信バス207を介して第8従属局S28、第8従属局S28から通信バス208を介して第9従属局S29、第9従属局S29から通信バス204を介して制御局M2へと、順次信号が流れる構成となっている。   In the ring communication network system of the present embodiment, the control station M2 and the seventh dependent station S27, the eighth dependent station S28, and the ninth dependent station S29 constituting the third dependent station group SG3 are connected to the communication bus 201. , 207, 208 and 204 are connected in a ring shape. That is, the transmission port TP of the control station M2 and the reception port RP of the seventh dependent station S27 are connected by the communication bus 201, and the transmission port TP of the seventh dependent station S27 and the reception port RP of the eighth dependent station S28 communicate with each other. The transmission port TP of the eighth dependent station S28 and the reception port RP of the ninth dependent station S29 are connected by the bus 207, and the transmission port TP of the ninth dependent station S29 and the reception port of the control station M2 are connected by the communication bus 208. The RP is connected to the communication bus 204. Then, the control station M2 is connected to the seventh dependent station S27 via the communication bus 201, from the seventh dependent station S27 via the communication bus 207 to the eighth dependent station S28, and from the eighth dependent station S28 via the communication bus 208 to the ninth. A signal sequentially flows from the dependent station S29 and the ninth dependent station S29 to the control station M2 via the communication bus 204.

<複合パケット>
本実施形態のリング型通信ネットワークシステムでは、通信バス201,202,203,204,205,206,207,208を流れる信号の形式が、図9に示すような複合パケットの形式とされている。この図9に示す複合パケットは、第1の実施形態で説明した複合パケット(図2参照)に、上述した第1乃至第3の従属局群SG1,SG2,SG3を特定するためのアドレス情報が書き込まれる領域であるアドレスエリア(Address Area)を付加したものである。このアドレスエリアは、複合パケットにおける先頭のSOMと、後続する3つのデータパケットとの間に設けられている。
<Composite packet>
In the ring communication network system of this embodiment, the format of the signal flowing through the communication buses 201, 202, 203, 204, 205, 206, 207, 208 is the composite packet format as shown in FIG. The composite packet shown in FIG. 9 includes address information for specifying the first to third dependent station groups SG1, SG2, and SG3 described above in the composite packet described in the first embodiment (see FIG. 2). An address area (Address Area) that is an area to be written is added. This address area is provided between the head SOM in the composite packet and the subsequent three data packets.

<制御局及び従属局の概要>
本実施形態のリング型通信ネットワークシステムにおいて、制御局M2の通信制御手段は、第1の実施形態で説明した制御局M1の通信制御手段の機能に加えて、複合パケットのアドレスエリアにアドレス情報を書き込んで通信バス201上に送出する機能を有している。
<Outline of control station and dependent stations>
In the ring communication network system of this embodiment, the communication control means of the control station M2 adds address information to the address area of the composite packet in addition to the function of the communication control means of the control station M1 described in the first embodiment. It has a function of writing and sending it out on the communication bus 201.

具体的には、制御局M2の通信制御手段は、第1の従属局群SG1を構成する各従属局S21,S22,S23との間での通信を開始するときに、まず、複合パケットによる通信の開始を示すSOMを送信ポートTPから通信バス201上に送出し、続いて、第1の従属局群SG1を構成する各従属局S21,S22,S23に付与された共有アドレスAD1を示すアドレス情報を送信ポートTPから通信バス201上に送出する。その後、第1の実施形態と同様に、送受信フラグR、第1従属局S21宛の受信データ、送受信フラグR、第2従属局S22宛の受信データ、送受信フラグR、第3従属局S23宛の受信データを、順次、送信ポートTPから通信バス201上に送出する。すなわち、制御局M2の通信制御手段は、第1の従属局群SG1を構成する各従属局S21,S22,S23宛の受信データを送信する場合には、図10(a)に示すように、SOMに続いて、共有アドレスAD1を示すアドレス情報と、フラグエリアに送受信フラグR、データエリアに第1従属局S21宛の受信データRX1をそれぞれ書き込んだデータパケットと、フラグエリアに送受信フラグR、データエリアに第2従属局S22宛の受信データRX2をそれぞれ書き込んだデータパケットと、フラグエリアに送受信フラグR、データエリアに第3従属局S23宛の受信データRX3をそれぞれ書き込んだデータパケットとを、この順で、送信ポートTPから通信バス201上に送出することで、複合パケット形式でのデータの送信を行う。   Specifically, when the communication control means of the control station M2 starts communication with each of the dependent stations S21, S22, S23 constituting the first dependent station group SG1, first, communication using a composite packet is performed. Address information indicating the shared address AD1 assigned to each of the dependent stations S21, S22, S23 constituting the first dependent station group SG1. Is transmitted from the transmission port TP onto the communication bus 201. After that, as in the first embodiment, the transmission / reception flag R, the reception data addressed to the first dependent station S21, the transmission / reception flag R, the reception data addressed to the second dependent station S22, the transmission / reception flag R, the addressing to the third dependent station S23 Received data is sequentially transmitted from the transmission port TP onto the communication bus 201. That is, when the communication control means of the control station M2 transmits the reception data addressed to each of the dependent stations S21, S22, S23 constituting the first dependent station group SG1, as shown in FIG. Following the SOM, the address information indicating the shared address AD1, the transmission / reception flag R in the flag area, the data packet in which the reception data RX1 addressed to the first dependent station S21 is written in the data area, and the transmission / reception flag R, data in the flag area A data packet in which the reception data RX2 addressed to the second dependent station S22 is written in the area, a transmission / reception flag R in the flag area, and a data packet in which the reception data RX3 addressed to the third dependent station S23 is written in the data area, Sending data in the composite packet format by sending the data from the transmission port TP to the communication bus 201 in order. Cormorant.

また、制御局M2の通信制御手段は、第2の従属局群SG2を構成する各従属局S24,S25,S26との間での通信を開始するときに、まず、複合パケットによる通信の開始を示すSOMを送信ポートTPから通信バス201上に送出し、続いて、第2の従属局群SG2を構成する各従属局S24,S25,S26に付与された共有アドレスAD2を示すアドレス情報を送信ポートTPから通信バス201上に送出する。その後、送受信フラグR、第4従属局S24宛の受信データ、送受信フラグR、第5従属局S25宛の受信データ、送受信フラグR、第6従属局S26宛の受信データを、順次、送信ポートTPから通信バス201上に送出する。すなわち、制御局M2の通信制御手段は、第2の従属局群SG2を構成する各従属局S24,S25,S26宛の受信データを送信する場合には、図10(b)に示すように、SOMに続いて、共有アドレスAD2を示すアドレス情報と、フラグエリアに送受信フラグR、データエリアに第4従属局S24宛の受信データRX4をそれぞれ書き込んだデータパケットと、フラグエリアに送受信フラグR、データエリアに第5従属局S25宛の受信データRX5をそれぞれ書き込んだデータパケットと、フラグエリアに送受信フラグR、データエリアに第6従属局S26宛の受信データRX6をそれぞれ書き込んだデータパケットとを、この順で、送信ポートTPから通信バス201上に送出することで、複合パケット形式でのデータの送信を行う。   In addition, when the communication control means of the control station M2 starts communication with each of the dependent stations S24, S25, S26 constituting the second dependent station group SG2, first, the communication control means starts the communication by the composite packet. SOM to be sent is transmitted from the transmission port TP to the communication bus 201, and then address information indicating the shared address AD2 assigned to each of the dependent stations S24, S25, S26 constituting the second dependent station group SG2 is transmitted to the transmission port. The data is transmitted from the TP onto the communication bus 201. Thereafter, the transmission / reception flag R, the reception data addressed to the fourth dependent station S24, the transmission / reception flag R, the reception data addressed to the fifth dependent station S25, the transmission / reception flag R, and the reception data addressed to the sixth dependent station S26 are sequentially transmitted to the transmission port TP. To the communication bus 201. That is, when the communication control means of the control station M2 transmits the reception data addressed to each of the dependent stations S24, S25, S26 constituting the second dependent station group SG2, as shown in FIG. Following the SOM, the address information indicating the shared address AD2, the transmission / reception flag R in the flag area, the data packet in which the reception data RX4 addressed to the fourth subordinate station S24 is written, and the transmission / reception flag R, data in the flag area A data packet in which the reception data RX5 addressed to the fifth dependent station S25 is written in the area, a data packet in which the transmission / reception flag R is written in the flag area, and the reception data RX6 addressed to the sixth dependent station S26 is written in the data area. Sending data in the composite packet format by sending the data from the transmission port TP to the communication bus 201 in order. Cormorant.

また、制御局M2の通信制御手段は、第3の従属局群SG3を構成する各従属局S27,S28,S29との間での通信を開始するときに、まず、複合パケットによる通信の開始を示すSOMを送信ポートTPから通信バス201上に送出し、続いて、第3の従属局群SG3を構成する各従属局S27,S28,S29に付与された共有アドレスAD3を示すアドレス情報を送信ポートTPから通信バス201上に送出する。その後、送受信フラグR、第7従属局S27宛の受信データ、送受信フラグR、第8従属局S28宛の受信データ、送受信フラグR、第9従属局S29宛の受信データを、順次、送信ポートTPから通信バス201上に送出する。すなわち、制御局M2の通信制御手段は、第3の従属局群SG3を構成する各従属局S27,S28,S29宛の受信データを送信する場合には、図10(c)に示すように、SOMに続いて、共有アドレスAD3を示すアドレス情報と、フラグエリアに送受信フラグR、データエリアに第7従属局S27宛の受信データRX7をそれぞれ書き込んだデータパケットと、フラグエリアに送受信フラグR、データエリアに第8従属局S28宛の受信データRX8をそれぞれ書き込んだデータパケットと、フラグエリアに送受信フラグR、データエリアに第9従属局S29宛の受信データRX9をそれぞれ書き込んだデータパケットとを、この順で、送信ポートTPから通信バス201上に送出することで、複合パケット形式でのデータの送信を行う。   Further, when the communication control means of the control station M2 starts communication with each of the dependent stations S27, S28, S29 constituting the third dependent station group SG3, first, the communication control means starts the communication by the composite packet. The SOM shown is sent from the transmission port TP to the communication bus 201, and then address information indicating the shared address AD3 assigned to each of the dependent stations S27, S28, S29 constituting the third dependent station group SG3 is sent to the transmission port. The data is transmitted from the TP onto the communication bus 201. Thereafter, the transmission / reception flag R, the reception data addressed to the seventh dependent station S27, the transmission / reception flag R, the reception data addressed to the eighth dependent station S28, the transmission / reception flag R, and the reception data addressed to the ninth dependent station S29 are sequentially transmitted to the transmission port TP. To the communication bus 201. That is, when the communication control means of the control station M2 transmits received data addressed to each of the dependent stations S27, S28, S29 constituting the third dependent station group SG3, as shown in FIG. Following the SOM, the address information indicating the shared address AD3, the data packet in which the transmission / reception flag R is written in the flag area, the reception data RX7 addressed to the seventh subordinate station S27 is written in the data area, and the transmission / reception flag R, data in the flag area A data packet in which the reception data RX8 addressed to the eighth dependent station S28 is written in the area, a transmission / reception flag R in the flag area, and a data packet in which the reception data RX9 addressed to the ninth dependent station S29 is written in the data area, Sending data in the composite packet format by sending the data from the transmission port TP to the communication bus 201 in order. Cormorant.

また、制御局M2の通信制御手段は、第1の実施形態で説明した制御局M1の通信制御手段と同様に、送信ポートTPからのデータの送信と受信ポートRPからのデータの受信とを同時に行う機能を有しているが、受信ポートRPから複合パケットの形式で受信されたデータが、どの従属局群からのデータであるかを、複合パケットのアドレスエリアに書き込まれているアドレス情報に基づいて判断する。   Further, the communication control means of the control station M2 simultaneously transmits data from the transmission port TP and receives data from the reception port RP, similarly to the communication control means of the control station M1 described in the first embodiment. Based on the address information written in the address area of the composite packet, the data received from the reception port RP in the form of the composite packet is the data from which dependent station group. Judgment.

また、本実施形態のリング型通信ネットワークシステムにおいて、従属局S21,S22,S23,S24,S25,S26,S27,S28,S29の通信制御手段は、互いに共通の構成とされ、第1の実施形態で説明した従属局S11,S12,S13の通信制御手段の機能に加えて、複合パケットに付加されているアドレス情報から、当該複合パケットが自局が属する従属局群宛のものかどうかを判断する機能を輸している。   In the ring communication network system according to the present embodiment, the communication control means of the dependent stations S21, S22, S23, S24, S25, S26, S27, S28, and S29 are configured in common with each other, and the first embodiment. In addition to the function of the communication control means of the dependent stations S11, S12, and S13 described in the above, it is determined from the address information added to the composite packet whether the composite packet is addressed to the group of dependent stations to which the local station belongs. Transporting functions.

すなわち、第1の従属局群SG1に属する第1従属局S21は、通信バス201上を流れる複合パケットに付加されたアドレス情報が、自局に付与された共有アドレスAD1を示すものである場合にのみ、第1の実施形態で説明した第1従属局S11と同様の動作を行う。また、第1の従属局群SG1に属する第2従属局S22は、通信バス202上を流れる複合パケットに付加されたアドレス情報が、自局に付与された共有アドレスAD1を示すものである場合にのみ、第1の実施形態で説明した第2従属局S12と同様の動作を行う。また、第1の従属局群SG1に属する第3従属局S23は、通信バス203上を流れる複合パケットに付加されたアドレス情報が、自局に付与された共有アドレスAD1を示すものである場合にのみ、第1の実施形態で説明した第3従属局S13と同様の動作を行う。   That is, the first subordinate station S21 belonging to the first subordinate station group SG1 has the case where the address information added to the composite packet flowing on the communication bus 201 indicates the shared address AD1 assigned to the own station. Only the operation similar to that of the first dependent station S11 described in the first embodiment is performed. Further, the second dependent station S22 belonging to the first dependent station group SG1 has a case where the address information added to the composite packet flowing on the communication bus 202 indicates the shared address AD1 assigned to the own station. Only the operation similar to that of the second dependent station S12 described in the first embodiment is performed. Further, the third subordinate station S23 belonging to the first subordinate station group SG1 has the case where the address information added to the composite packet flowing on the communication bus 203 indicates the shared address AD1 assigned to the own station. Only, the same operation as the third dependent station S13 described in the first embodiment is performed.

また、第2の従属局群SG2に属する第4従属局S24は、通信バス201上を流れる複合パケットに付加されたアドレス情報が、自局に付与された共有アドレスAD2を示すものである場合にのみ、第1の実施形態で説明した第1従属局S11と同様の動作を行う。また、第2の従属局群SG2に属する第5従属局S25は、通信バス205上を流れる複合パケットに付加されたアドレス情報が、自局に付与された共有アドレスAD2を示すものである場合にのみ、第1の実施形態で説明した第2従属局S12と同様の動作を行う。また、第2の従属局群SG2に属する第6従属局S26は、通信バス206上を流れる複合パケットに付加されたアドレス情報が、自局に付与された共有アドレスAD2を示すものである場合にのみ、第1の実施形態で説明した第3従属局S13と同様の動作を行う。   Further, the fourth dependent station S24 belonging to the second dependent station group SG2 is configured such that the address information added to the composite packet flowing on the communication bus 201 indicates the shared address AD2 assigned to the own station. Only the operation similar to that of the first dependent station S11 described in the first embodiment is performed. Further, the fifth subordinate station S25 belonging to the second subordinate station group SG2 determines that the address information added to the composite packet flowing on the communication bus 205 indicates the shared address AD2 assigned to the own station. Only the operation similar to that of the second dependent station S12 described in the first embodiment is performed. Further, the sixth subordinate station S26 belonging to the second subordinate station group SG2 determines that the address information added to the composite packet flowing on the communication bus 206 indicates the shared address AD2 assigned to the own station. Only, the same operation as the third dependent station S13 described in the first embodiment is performed.

また、第3の従属局群SG3に属する第7従属局S27は、通信バス201上を流れる複合パケットに付加されたアドレス情報が、自局に付与された共有アドレスAD3を示すものである場合にのみ、第1の実施形態で説明した第1従属局S11と同様の動作を行う。また、第3の従属局群SG3に属する第8従属局S28は、通信バス207上を流れる複合パケットに付加されたアドレス情報が、自局に付与された共有アドレスAD3を示すものである場合にのみ、第1の実施形態で説明した第2従属局S12と同様の動作を行う。また、第3の従属局群SG3に属する第9従属局S29は、通信バス208上を流れる複合パケットに付加されたアドレス情報が、自局に付与された共有アドレスAD3を示すものである場合にのみ、第1の実施形態で説明した第3従属局S13と同様の動作を行う。   In addition, the seventh dependent station S27 belonging to the third dependent station group SG3 has a case where the address information added to the composite packet flowing on the communication bus 201 indicates the shared address AD3 assigned to the own station. Only the operation similar to that of the first dependent station S11 described in the first embodiment is performed. Further, the eighth dependent station S28 belonging to the third dependent station group SG3 has a case where the address information added to the composite packet flowing on the communication bus 207 indicates the shared address AD3 assigned to the own station. Only the operation similar to that of the second dependent station S12 described in the first embodiment is performed. Further, the ninth subordinate station S29 belonging to the third subordinate station group SG3, when the address information added to the composite packet flowing on the communication bus 208 indicates the shared address AD3 assigned to the own station. Only, the same operation as the third dependent station S13 described in the first embodiment is performed.

<効果>
以上説明したように、本実施形態のリング型通信ネットワークシステムによれば、上述した第1の実施形態と同様に、ネットワークのノードとして接続される各従属局S21,S22,S23,S24,S25,S26,S27,S28,S29を互いに同一の構成としながら制御局M2との間での適切なデータ通信を行うことができ、各従属局S21,S22,S23,S24,S25,S26,S27,S28,S29となる通信機器の製造、管理の一元化を可能にして、コストの削減を実現できるとともに、制御局M2と各従属局S21,S22,S23,S24,S25,S26,S27,S28,S29との間で双方向にデータを伝達するために必要な通信所要時間を短縮することができ、通信の高速化も実現できる。
<Effect>
As described above, according to the ring communication network system of the present embodiment, each of the dependent stations S21, S22, S23, S24, S25, which are connected as network nodes, as in the first embodiment described above. Appropriate data communication with the control station M2 can be performed while the S26, S27, S28, and S29 have the same configuration, and each of the dependent stations S21, S22, S23, S24, S25, S26, S27, and S28. , S29 can be integrated into the manufacturing and management of the communication equipment, the cost can be reduced, and the control station M2 and the subordinate stations S21, S22, S23, S24, S25, S26, S27, S28, S29 and It is possible to reduce the time required for communication in order to transmit data in both directions between them, and to realize high-speed communication.

また、本実施形態のリング型通信ネットワークシステムでは、ネットワークのノードとして接続される従属局S21,S22,S23,S24,S25,S26,S27,S28,S29を、共有アドレスAD1,AD2,AD3で識別される3つの従属局群SG1,SG2,SG3にグループ分けし、各従属局群SG1,SG2,SG3を他の従属局群から独立した個別の通信系統としているので、1つの従属局の故障によって全ての従属局と制御局との間の通信が遮断されるといった不都合を有効に回避することができ、従属局の故障が他の従属局に及ぼす影響を最小限にとどめることができる。   In the ring communication network system of the present embodiment, the dependent stations S21, S22, S23, S24, S25, S26, S27, S28, and S29 connected as network nodes are identified by the shared addresses AD1, AD2, and AD3. Grouped into three subordinate station groups SG1, SG2, SG3, and each subordinate station group SG1, SG2, SG3 is an individual communication system independent of other subordinate station groups. It is possible to effectively avoid the inconvenience that communication between all the dependent stations and the control station is interrupted, and to minimize the influence of the failure of the dependent station on the other dependent stations.

[変形例]
以上、本発明を適用したリング型通信ネットワークシステムの具体例として、第1の実施形態と第2の実施形態とを説明したが、以上の各実施形態は本発明の一適用例を例示したものであり、本発明の技術的範囲は、以上の各実施形態の説明で開示した内容に限定されるものではなく、これらの開示から容易に導き得る様々な代替技術も含まれることは勿論である。
[Modification]
As described above, the first embodiment and the second embodiment have been described as specific examples of the ring communication network system to which the present invention is applied. However, each of the above embodiments exemplifies an application example of the present invention. The technical scope of the present invention is not limited to the contents disclosed in the description of the above embodiments, and various alternative techniques that can be easily derived from these disclosures are also included. .

例えば、第1の実施形態ではネットワークのノードとして3つの従属局を備える例を示し、第2の実施形態ではネットワークのノードとして9つの従属局を備えて、これら9つの従属局が3つの従属局群にグループ分けされている例を示したが、ネットワークのノードとして接続される従属局の数や従属局群の数は任意であり、複合パケットを構成するデータパケットの数を従属局の数、或いは1つの従属局群を構成する従属局の数に合わせることで、あらゆる数に対応可能である。   For example, the first embodiment shows an example including three subordinate stations as network nodes, and the second embodiment includes nine subordinate stations as network nodes, and these nine subordinate stations include three subordinate stations. Although an example of grouping into groups is shown, the number of dependent stations connected as a network node and the number of dependent station groups are arbitrary, the number of data packets constituting a composite packet is the number of dependent stations, Alternatively, any number can be accommodated by matching the number of dependent stations constituting one dependent station group.

また、第1及び第2の実施形態では、各従属局の通信制御手段が複合パケットにおける先頭のデータパケット以外のデータパケットの開始位置を検出する手法として、スルータイマなどでバススルー状態に移行した後の経過時間を計測し、このバススルー状態に移行した後の経過時間に基づいて、次のデータパケットの開始位置を検出する手法を例示したが、このような手法以外にも、例えば、バススルーによって受信ポートRPから送信ポートTPへと伝送されるデータ長をカウント(ビットカウント)して、次のデータパケットの開始位置を検出するようにしてもよい。また、複合パケットを構成する各データパケットの末尾にデータパケットの終了を示すパケット終了フラグを付加しておくようにすれば、この各データパケットの末尾に付加されたパケット終了フラグに基づいて、次のデータパケットの開始位置を検出することもできる。なお、パケット終了フラグに基づいて次のデータパケットの開始位置を検出するようにした場合には、複合パケットを構成する各データパケットのデータエリアを可変長として、より効率的な通信を行うことも可能となる。   In the first and second embodiments, the communication control means of each dependent station has shifted to the bus-through state using a through timer or the like as a method for detecting the start position of the data packet other than the head data packet in the composite packet. The method of measuring the elapsed time later and detecting the start position of the next data packet based on the elapsed time after shifting to the bus-through state is exemplified. The data length transmitted from the reception port RP to the transmission port TP by counting through may be counted (bit count) to detect the start position of the next data packet. Further, if a packet end flag indicating the end of the data packet is added to the end of each data packet constituting the composite packet, the next is based on the packet end flag added to the end of each data packet. It is also possible to detect the start position of the data packet. If the start position of the next data packet is detected based on the packet end flag, the data area of each data packet that constitutes the composite packet can be made variable in length to perform more efficient communication. It becomes possible.

本発明を適用した第1の実施形態のリング型通信ネットワークシステムの全体構成を示す図である。1 is a diagram illustrating an overall configuration of a ring communication network system according to a first embodiment to which the present invention is applied. 第1の実施形態のリング型通信ネットワークシステムで用いられる複合パケットのフォーマットを示す図である。It is a figure which shows the format of the composite packet used with the ring type communication network system of 1st Embodiment. 第1の実施形態のリング型通信ネットワークシステムにおいて通信バスを流れる複合パケットを示す図であり、(a)は制御局の送信ポートから通信バス上に送出される複合パケットを示す図、(b)は第3従属局の送信ポートから通信バス上に送出されて制御局の受信ポートで受信される複合パケットを示す図、(c)は第1従属局の送信ポートから通信バス上に送出される複合パケットを示す図、(d)は第2従属局の送信ポートから通信バス上に送出される複合パケットを示す図である。It is a figure which shows the composite packet which flows through a communication bus in the ring type communication network system of 1st Embodiment, (a) is a figure which shows the composite packet sent on a communication bus from the transmission port of a control station, (b) Fig. 5 is a diagram showing a composite packet sent from the transmission port of the third dependent station to the communication bus and received at the receiving port of the control station, and (c) is sent out from the transmission port of the first dependent station onto the communication bus. The figure which shows a composite packet, (d) is a figure which shows the composite packet sent on the communication bus from the transmission port of a 2nd subordinate station. 従属局の内部構成の具体例を示すブロック図である。It is a block diagram which shows the specific example of the internal structure of a dependent station. 図4に示す内部構成を有する第1従属局が複合パケットによるデータ通信を行う際の一連の動作を示すタイミングチャートである。5 is a timing chart showing a series of operations when a first dependent station having the internal configuration shown in FIG. 4 performs data communication using a composite packet. 図4に示す内部構成を有する第2従属局が複合パケットによるデータ通信を行う際の一連の動作を示すタイミングチャートである。5 is a timing chart showing a series of operations when a second dependent station having the internal configuration shown in FIG. 4 performs data communication using a composite packet. 図4に示す内部構成を有する第3従属局が複合パケットによるデータ通信を行う際の一連の動作を示すタイミングチャートである。5 is a timing chart showing a series of operations when a third dependent station having the internal configuration shown in FIG. 4 performs data communication using composite packets. 本発明を適用した第2の実施形態のリング型通信ネットワークシステムの全体構成を示す図である。It is a figure which shows the whole structure of the ring type communication network system of 2nd Embodiment to which this invention is applied. 第2の実施形態のリング型通信ネットワークシステムで用いられる複合パケットのフォーマットを示す図である。It is a figure which shows the format of the composite packet used with the ring type communication network system of 2nd Embodiment. 第2の実施形態のリング型通信ネットワークシステムにおいて制御局の送信ポートから通信バス上に送出される複合パケットを示す図であり、(a)は第1の従属局群を構成する各従属局宛の受信データを送信する場合の複合パケットを示す図、(b)は第2の従属局群を構成する各従属局宛の受信データを送信する場合の複合パケットを示す図、(c)は第3の従属局群を構成する各従属局宛の受信データを送信する場合の複合パケットを示す図である。FIG. 10 is a diagram showing a composite packet sent from a transmission port of a control station to a communication bus in the ring communication network system of the second embodiment, and (a) is addressed to each dependent station constituting the first dependent station group. The figure which shows the composite packet in the case of transmitting the receiving data of (b), (b) is a figure which shows the composite packet in the case of transmitting the reception data addressed to each dependent station constituting the second dependent station group, (c) is the first It is a figure which shows the composite packet in the case of transmitting the reception data addressed to each dependent station which comprises 3 dependent station groups.

符号の説明Explanation of symbols

1 SOM検出回路
2 送受信フラグ送信回路
3 送受信フラグ検出回路
4 スルータイマ
5 送受信制御回路
6 通信データ受信回路
7 通信データ送信回路
8 送信タイマ
9 送信選択制御回路
10 送信選択回路
101〜104,201〜208 通信バス
M1,M2 制御局
S11〜S13,S21〜S29 従属局
SG1〜SG3 従属局群
RP 受信ポート
TP 送信ポート
DESCRIPTION OF SYMBOLS 1 SOM detection circuit 2 Transmission / reception flag transmission circuit 3 Transmission / reception flag detection circuit 4 Through timer 5 Transmission / reception control circuit 6 Communication data reception circuit 7 Communication data transmission circuit 8 Transmission timer 9 Transmission selection control circuit 10 Transmission selection circuit 101-104, 201-208 Communication bus M1, M2 Control station S11-S13, S21-S29 Dependent station SG1-SG3 Dependent station group RP Receive port TP Transmit port

Claims (5)

1つの制御局と複数の従属局とが通信バスを介してリング状に接続されてなるリング型通信ネットワークシステムにおいて、
前記通信バスを流れる信号の形式が、前記従属局が受信すべき受信データ又は前記従属局から前記制御局への返信データが書き込まれるデータエリアと、当該データエリアの先頭に付加されて当該データエリアに書き込まれたデータが前記受信データであるか前記返信データであるかを識別するための送受信フラグが書き込まれるフラグエリアとを有するデータパケットを1単位とし、前記複数の従属局の数に対応した複数のデータパケットが前記複数の従属局の接続順序に従って繋ぎ合わされた複合パケットの形式とされ、
前記制御局が、前記各データパケットの前記データエリアに各従属局が受信すべき受信データをそれぞれ書き込むとともに、前記各データパケットの前記フラグエリアに後続のデータエリアに書き込まれているデータが前記受信データであることを示すフラグをそれぞれ書き込んで、前記複合パケットとして前記通信バスに送出すると同時に、前記通信バスを流れる複合パケットを受信する通信制御手段を備え、
前記複数の従属局の各々が、前記データパケットに何らかのデータを書き込んで送信する送信状態と、前記データパケットをそのままスルーするバススルー状態とを切り替えながら、前記複合パケットによるデータ通信を制御する通信制御手段を備え、
前記複数の従属局の各々が備える通信制御手段は、
前記複合パケットにおけるデータパケットの開始位置が検出されると前記バススルー状態から前記送信状態へと移行して、前記データパケットのフラグエリアに、後続のデータエリアに書き込まれているデータが前記返信データであることを示すフラグを書き込むと同時に、当該フラグエリアに書き込まれていた元の送受信フラグを受信してその種別を判定し、
前記フラグエリアに書き込まれていた元の送受信フラグが、後続のデータエリアに書き込まれているデータが前記返信データであることを示すフラグであれば、前記送信状態から前記バススルー状態へと移行して、次のデータパケットの開始位置が検出されるまで前記バススルー状態を維持し、
前記フラグエリアに書き込まれていた元の送受信フラグが、後続のデータエリアに書き込まれているデータが前記受信データであることを示すフラグであれば、後続のデータエリアに書き込まれている受信データを受信すると同時に、当該受信データが書き込まれていたデータエリアに前記制御局への返信データを書き込んだ後、前記送信状態から前記バススルー状態へと移行して、次の複合パケットにおける先頭のデータパケットの開始位置が検出されるまで前記バススルー状態を維持することを特徴とするリング型通信ネットワークシステム。
In a ring communication network system in which one control station and a plurality of subordinate stations are connected in a ring shape via a communication bus,
The format of the signal flowing through the communication bus includes a data area in which received data to be received by the dependent station or reply data from the dependent station to the control station is written, and the data area added to the head of the data area. A data packet having a flag area in which a transmission / reception flag for identifying whether the data written in the received data is the received data or the reply data is defined as one unit, and corresponds to the number of the plurality of dependent stations A plurality of data packets are combined in accordance with the connection order of the plurality of dependent stations, and are in the form of a composite packet;
The control station writes received data to be received by each dependent station in the data area of each data packet, and data written in a subsequent data area in the flag area of each data packet is received. A communication control means for writing a flag indicating data and sending the composite packet to the communication bus as the composite packet and simultaneously receiving the composite packet flowing through the communication bus,
Communication control in which each of the plurality of dependent stations controls data communication by the composite packet while switching between a transmission state in which some data is written and transmitted in the data packet and a bus-through state in which the data packet is directly passed through. With means,
The communication control means provided in each of the plurality of dependent stations includes:
When the start position of the data packet in the composite packet is detected, the data shifts from the bus-through state to the transmission state, and the data written in the subsequent data area in the flag area of the data packet is the return data. At the same time as writing the flag indicating that it is, the original transmission / reception flag written in the flag area is received and its type is determined,
If the original transmission / reception flag written in the flag area is a flag indicating that the data written in the subsequent data area is the reply data, the state shifts from the transmission state to the bus-through state. The bus-through state is maintained until the start position of the next data packet is detected,
If the original transmission / reception flag written in the flag area is a flag indicating that the data written in the subsequent data area is the received data, the received data written in the subsequent data area is Simultaneously with reception, after writing the reply data to the control station in the data area where the received data has been written, the state shifts from the transmission state to the bus-through state, and the first data packet in the next composite packet The ring-type communication network system is characterized in that the bus-through state is maintained until the start position of the network is detected.
前記複合パケットの先頭には通信の開始を示す通信開始信号が付加されており、
前記複数の従属局の各々が備える通信制御手段は、前記複合パケットの先頭に付加された通信開始信号に基づいて、前記複合パケットにおける先頭のデータパケットの開始位置を検出することを特徴とする請求項1に記載のリング型通信ネットワークシステム。
A communication start signal indicating the start of communication is added to the top of the composite packet,
The communication control means provided in each of the plurality of dependent stations detects a start position of a head data packet in the composite packet based on a communication start signal added to the head of the composite packet. Item 4. A ring communication network system according to item 1.
前記複数の従属局の各々が備える通信制御手段は、前記バススルー状態に移行した後の経過時間を計測して、計測した経過時間に基づいて、前記複合パケットにおける各データパケットの開始位置を検出することを特徴とする請求項1に記載のリング型通信ネットワークシステム。   The communication control means provided in each of the plurality of dependent stations measures an elapsed time after transitioning to the bus-through state, and detects a start position of each data packet in the composite packet based on the measured elapsed time The ring communication network system according to claim 1, wherein: 前記複合パケットにおける各データパケットの末尾には各データパケットの終了を示すパケット終了フラグが付加されており、
前記複数の従属局の各々が備える通信制御手段は、前記各データパケットの末尾に付加されたパケット終了フラグに基づいて、次のデータパケットの開始位置を検出することを特徴とする請求項1に記載のリング型通信ネットワークシステム。
A packet end flag indicating the end of each data packet is added to the end of each data packet in the composite packet,
The communication control means provided in each of the plurality of dependent stations detects the start position of the next data packet based on a packet end flag added to the end of each data packet. The ring communication network system described.
前記複数の従属局が同一の共有アドレスを有する従属局同士でグループ分けされて、各グループに属する従属局群と前記制御局とが、前記通信バスを介して各々リング状に接続され、
前記制御局の通信制御手段は、前記複合パケットに前記共有アドレスを示すアドレス情報を付加して前記通信バスに送出し、
前記複数の従属局の各々が備える通信制御手段は、自局の共有アドレスを示すアドレス情報が付加された複合パケットを対象として、当該複合パケットによるデータ通信を制御することを特徴とする請求項1に記載のリング型通信ネットワークシステム。
The plurality of dependent stations are grouped by dependent stations having the same shared address, and the dependent station group belonging to each group and the control station are respectively connected in a ring shape via the communication bus,
The communication control means of the control station adds address information indicating the shared address to the composite packet and sends it to the communication bus,
2. The communication control means provided in each of the plurality of dependent stations controls data communication using the composite packet for a composite packet to which address information indicating a shared address of the local station is added. The ring type communication network system described in 1.
JP2006069271A 2006-03-14 2006-03-14 Ring communication network system Expired - Fee Related JP4747890B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006069271A JP4747890B2 (en) 2006-03-14 2006-03-14 Ring communication network system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006069271A JP4747890B2 (en) 2006-03-14 2006-03-14 Ring communication network system

Publications (2)

Publication Number Publication Date
JP2007251361A true JP2007251361A (en) 2007-09-27
JP4747890B2 JP4747890B2 (en) 2011-08-17

Family

ID=38595226

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006069271A Expired - Fee Related JP4747890B2 (en) 2006-03-14 2006-03-14 Ring communication network system

Country Status (1)

Country Link
JP (1) JP4747890B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS51141506A (en) * 1975-05-31 1976-12-06 Nippon Telegr & Teleph Corp <Ntt> Multiplex data transmission system
JPS61118046A (en) * 1984-11-14 1986-06-05 Hitachi Ltd Data optical communication system
JPS6454832A (en) * 1987-08-26 1989-03-02 Mitsubishi Electric Corp Data transmission system
JPH02309730A (en) * 1989-05-24 1990-12-25 Okuma Mach Works Ltd Looping communication equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS51141506A (en) * 1975-05-31 1976-12-06 Nippon Telegr & Teleph Corp <Ntt> Multiplex data transmission system
JPS61118046A (en) * 1984-11-14 1986-06-05 Hitachi Ltd Data optical communication system
JPS6454832A (en) * 1987-08-26 1989-03-02 Mitsubishi Electric Corp Data transmission system
JPH02309730A (en) * 1989-05-24 1990-12-25 Okuma Mach Works Ltd Looping communication equipment

Also Published As

Publication number Publication date
JP4747890B2 (en) 2011-08-17

Similar Documents

Publication Publication Date Title
CN102104515B (en) Coupling devices, system comprising a coupling device and method for use in a system comprising a coupling device
KR100786814B1 (en) Integrated network system for automobile and gateway therefor
JP5811140B2 (en) Communications system
CN107018089B (en) Method of operating a communication node in a network
WO2011011915A1 (en) Data communication method, communication equipment and communication system
JP2011024100A5 (en)
JP2014103621A (en) Automatic control system, contact information gathering and distributing device, and slave station of automatic control system
JP2009201334A (en) Double-system train control device
CN105991315A (en) Link protection method applied to SDN (software defined network), switching device and network controller
CN101917276A (en) High-speed and low-speed compatible interface component, bus terminal and bus communication system
JP4747890B2 (en) Ring communication network system
CN102355394A (en) Method and device for performing data transmission control for a plurality of paths of controller area network (CAN) buses
US11714772B2 (en) Additional communication in standardized pinout of a bidirectional interface between a first and second communication device
KR101868662B1 (en) Ethernet based Backplane and Module for Programmable Logic Controller
JP4287734B2 (en) Network equipment
JP2011166549A (en) Communication connector, communication harness, optical communication device, and onboard communication system
JP2015149541A (en) communication system
JP2011055112A (en) Communication system and communication device
US8830817B2 (en) Apparatus of multiplexing data transmission path for wireless sensor network
JP5319760B2 (en) Communication system, communication apparatus, integrated circuit, and communication method
JP5360308B2 (en) Communication node, communication system and method
JP2009065412A (en) In-vehicle communication system
JP6337783B2 (en) In-vehicle network system
KR100736771B1 (en) Apparatus for interfacing can bus
JP4615965B2 (en) Communication system, information processing apparatus having the communication system, and control

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090204

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110411

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110419

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110502

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140527

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees