JP6293232B2 - Communication device - Google Patents
Communication device Download PDFInfo
- Publication number
- JP6293232B2 JP6293232B2 JP2016205758A JP2016205758A JP6293232B2 JP 6293232 B2 JP6293232 B2 JP 6293232B2 JP 2016205758 A JP2016205758 A JP 2016205758A JP 2016205758 A JP2016205758 A JP 2016205758A JP 6293232 B2 JP6293232 B2 JP 6293232B2
- Authority
- JP
- Japan
- Prior art keywords
- subpayload
- transmission
- frame
- relay
- control device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Small-Scale Networks (AREA)
Description
本発明は、通信装置に関する。 The present invention relates to a communication device.
FA(Factory Automation)ネットワークシステムでは、省配線のために、1つのマスタ装置と複数のスレーブ装置との間をデイジーチェーン(daisy chain)で接続することがある。デイジーチェーン接続されたシステムでは、隣接しない第1の装置と第2の装置との間の通信は、第1の装置と第2の装置との間に位置する装置が通信を中継することで実現される。 In an FA (Factory Automation) network system, one master device and a plurality of slave devices may be connected in a daisy chain for wiring saving. In a daisy chain connected system, communication between a first device and a second device that are not adjacent to each other is realized by a device located between the first device and the second device relaying the communication. Is done.
マスタ装置及び複数のスレーブ装置は、同一周期で繰り返し通信を行う。マスタ装置は、複数のスレーブ装置宛てに指令データを送信する。複数のスレーブ装置は、マスタ装置宛てに応答データを送信する。これら指令データ及び応答データの通信時間が短いほどきめ細かく指令データ及び応答データをやり取りできるので、システムは制御精度を向上できる。 The master device and the plurality of slave devices communicate repeatedly with the same cycle. The master device transmits command data to a plurality of slave devices. The plurality of slave devices transmit response data to the master device. Since the command data and the response data can be exchanged more finely as the communication time of the command data and the response data is shorter, the system can improve the control accuracy.
通信時間を短縮する方法として、通信データを小さくする方法と、通信に必要なフレーム数を減らす方法と、が一般に行われている。通信に必要なフレーム数を減らす方法では、フレーム毎に必要であるデータを減らすことができるので、通信時間が短縮される。フレーム毎に必要であるデータは、フレームの開始を示すプリアンブル(Preamble)又はフレームの誤り検出及び訂正を行うために付加される符号であるフレームチェックシーケンス(Frame Check Sequence、FCS)が例示される。 As a method for shortening the communication time, a method of reducing communication data and a method of reducing the number of frames required for communication are generally performed. In the method of reducing the number of frames required for communication, the data required for each frame can be reduced, so that the communication time is shortened. The data required for each frame is exemplified by a preamble indicating the start of the frame or a frame check sequence (FCS) which is a code added to perform error detection and correction of the frame.
関連する技術として、下記の特許文献1には、マスターノードと複数の端末ノードとがデイジーチェーン接続された通信システムにおいて、各端末ノードは、マスターノードから送信された制御データを後段の下流ノードに中継転送する際には、自ノードに対するコマンドフィールドを削除して、二番目以降のコマンドフィールドを一つずつ前詰めにする形にしてから中継転送を行うことが記載されている(段落0029)。 As a related technique, in Patent Document 1 below, in a communication system in which a master node and a plurality of terminal nodes are daisy chain connected, each terminal node transmits control data transmitted from the master node to a downstream node in the subsequent stage. In the relay transfer, it is described that the command field for the own node is deleted and the second and subsequent command fields are left-justified one by one before performing the relay transfer (paragraph 0029).
また、下記の特許文献2には、コントローラとアンプとがライン型に接続されたシステムにおいて、各アンプは、コントローラから複数のサーボアンプへの指令データ領域を含むフレームを上位のアンプから受信し、自アンプ宛て指令データ領域が取り除かれたフレームを下位のアンプに送信することが記載されている(段落0039から段落0040)。 Further, in Patent Document 2 below, in a system in which a controller and an amplifier are connected in a line type, each amplifier receives a frame including a command data area from the controller to a plurality of servo amplifiers from an upper amplifier, It is described that the frame from which the command data area addressed to its own amplifier is removed is transmitted to the lower-level amplifier (paragraph 0039 to paragraph 0040).
また、下記の特許文献3には、数値制御装置と複数のアンプとがデイジーチェーン接続されたシステムにおいて、各アンプは、送信開始コードを上流のアンプに送信し、自己のアンプデータに続いて下流のアンプから受信した下流のアンプのアンプデータを上流のアンプに送信する(段落0013)。そして、各アンプは、自己のアンプデータの送信完了までに下流のアンプのアンプデータを受信できない場合は、自己のアンプデータの送信後且つ下流のアンプからのアンプデータを受信するまでの間、アイドルタイムデータを上流のアンプに送信し、その後下流のアンプのアンプデータを上流のアンプに送信する(段落0028)。 In Patent Document 3 below, in a system in which a numerical controller and a plurality of amplifiers are connected in a daisy chain, each amplifier transmits a transmission start code to an upstream amplifier, followed by its own amplifier data and downstream. The amplifier data of the downstream amplifier received from the amplifier is transmitted to the upstream amplifier (paragraph 0013). If each amplifier cannot receive the amplifier data of the downstream amplifier until the transmission of its own amplifier data is completed, it is idle after the transmission of its own amplifier data and until it receives the amplifier data from the downstream amplifier. The time data is transmitted to the upstream amplifier, and then the amplifier data of the downstream amplifier is transmitted to the upstream amplifier (paragraph 0028).
特許文献1及び2記載の技術によれば、フレームのサイズが小さくなるので、通信時間を短縮することができる。しかしながら、特許文献1及び2記載の技術では、各装置が、上流の装置から受信したフレームの中から自装置宛てのデータを取り除くので、フレームの内容及び長さが変わる。しかしながら、特許文献1及び2記載の技術では、上流の装置から受信したフレームの中から自装置宛てのデータを取り除いた後のフレームの誤り検出については考慮されていない。従って、特許文献1及び2記載の技術では、伝送エラーに起因するデータの誤りを検出することが出来ないので、正常な制御が出来なくなる可能性がある。 According to the techniques described in Patent Documents 1 and 2, since the frame size is reduced, the communication time can be shortened. However, in the techniques described in Patent Documents 1 and 2, since each device removes data addressed to itself from a frame received from an upstream device, the content and length of the frame changes. However, the techniques described in Patent Documents 1 and 2 do not consider error detection of a frame after removing data addressed to the device from frames received from an upstream device. Therefore, the techniques described in Patent Documents 1 and 2 cannot detect a data error due to a transmission error, and thus may not perform normal control.
また、特許文献3記載の技術では、アイドルタイムデータを送信するので、通信時間が長くなる。また、特許文献3記載の技術では、各アンプが、自己のアンプデータに続いてアイドルタイムデータ及び下流のアンプデータを送信する。しかしながら、特許文献3記載の技術では、自己のアンプデータ、アイドルタイムデータ及び下流のアンプデータの誤り検出については考慮されていない。従って、特許文献3記載の技術では、伝送エラーに起因するデータの誤りを検出することが出来ないので、正常な制御が出来なくなる可能性がある。 Moreover, in the technique described in Patent Document 3, idle time data is transmitted, so that the communication time becomes long. In the technique described in Patent Document 3, each amplifier transmits idle time data and downstream amplifier data following its own amplifier data. However, the technique described in Patent Document 3 does not consider error detection of its own amplifier data, idle time data, and downstream amplifier data. Therefore, the technique described in Patent Document 3 cannot detect a data error due to a transmission error, and thus may not perform normal control.
本発明は、上記に鑑みてなされたものであって、通信時間を短縮するとともに、誤り検出を行うことができる通信装置を得ることを目的とする。 The present invention has been made in view of the above, and an object of the present invention is to obtain a communication apparatus capable of reducing communication time and performing error detection.
上述した課題を解決し、目的を達成するために、本発明は、プリアンブルと、ペイロードと、を含むフレームを送受信し、前記ペイロードは、宛先の装置を表す値を格納する宛先部、宛先の装置に送られるデータを格納するデータ部及び前記データ部の長さを表す値を格納するデータ長部を含む主部と、伝送エラーに起因する誤り検出を行うための誤り検出符号が格納される誤り検出符号部と、を各々が含む1つ又は複数のサブペイロードを有する、通信装置であって、1つの装置から受信した受信フレームを、宛先が自装置ではない前記サブペイロードである中継サブペイロードと、宛先が自装置の前記サブペイロードである自装置宛てサブペイロードと、に分離するフレーム受信部と、前記自装置宛てサブペイロード内の前記誤り検出符号に基づいて、前記自装置宛てサブペイロードの誤り検出を行う誤り検出部と、前記中継サブペイロードを格納する中継サブペイロード格納部と、他の装置と一斉に通信を開始する通信開始タイミングを通知する通信開始通知部と、前記通信開始タイミングが通知されたときに送信フレームの送信中でない場合には、前記プリアンブルと、前記中継サブペイロードと、を含む送信フレームの他の装置への送信を開始し、送信フレームの送信中に前記中継サブペイロード格納部に前記中継サブペイロードが格納された場合には、前記中継サブペイロードの先頭に前記プリアンブルを付加しないで、前記中継サブペイロードを送信中の送信フレームの末尾に付加して送信を継続するフレーム送信部と、自装置が作成した前記主部を格納する送信データ格納部と、前記主部に付加する前記誤り検出符号を生成する誤り検出符号生成部と、を備え、前記フレーム送信部は、前記通信開始タイミングが通知されたときに送信フレームの送信中でない場合には、前記プリアンブルと、前記主部及び前記誤り検出符号部を含む1つ又は複数の自装置発行サブペイロードとを、自装置から遠い宛先の順に結合した送信フレームの他の装置への送信を開始し、送信フレームの送信中に前記送信データ格納部に前記自装置発行サブペイロードが格納された場合には、前記自装置発行サブペイロードを送信中の送信フレームの末尾に付加して送信を継続することを特徴とする。 In order to solve the above-described problems and achieve the object, the present invention transmits and receives a frame including a preamble and a payload, and the payload stores a value representing a destination device, and a destination device stores the value representing the destination device. An error in which a data part for storing data to be sent to the main part, a main part including a data length part for storing a value representing the length of the data part, and an error detection code for detecting an error due to a transmission error are stored A communication apparatus having one or a plurality of sub-payloads, each of which includes a detection code part, and a received frame received from one apparatus, and a relay sub-payload that is the sub-payload whose destination is not the own apparatus; A frame receiving unit that is separated into a subpayette destined for the self apparatus whose destination is the subpayload of the self apparatus, and the error detection code in the subpayload destined for the self apparatus. Based on the error detection unit for detecting an error of the subpayload addressed to the own device, the relay subpayload storage unit for storing the relay subpayload, and the communication start timing for starting communication with other devices all at once. If a transmission frame is not being transmitted when the communication start notification unit is notified of the communication start timing, transmission of the transmission frame including the preamble and the relay subpayload to another device is started. When the relay subpayload is stored in the relay subpayload storage unit during transmission of the transmission frame, the transmission frame in which the relay subpayload is being transmitted without adding the preamble to the head of the relay subpayload A frame transmission unit that continues transmission by adding to the end of the transmission data, and a transmission data that stores the main unit created by the device itself. And an error detection code generation unit that generates the error detection code to be added to the main unit, and the frame transmission unit is not transmitting a transmission frame when the communication start timing is notified In this case, transmission of the transmission frame to another device in which the preamble and one or more self-issued sub-payloads including the main part and the error detection code part are combined in order of destinations far from the self-device. And when the device-issued subpayload is stored in the transmission data storage unit during transmission of the transmission frame, the device-issued subpayload is added to the end of the transmission frame being transmitted. It is characterized by continuing.
本発明にかかる通信装置は、通信時間を短縮するとともに、誤り検出を行うことができるという効果を奏する。 The communication apparatus according to the present invention has an effect that the communication time can be shortened and error detection can be performed.
以下に、本発明の実施の形態にかかる通信装置及び通信方法を図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。 Hereinafter, a communication device and a communication method according to an embodiment of the present invention will be described in detail with reference to the drawings. Note that the present invention is not limited to the embodiments.
実施の形態1.
図1は、実施の形態1にかかる通信システムの構成を示す図である。通信システム1は、制御装置M,S1,S2及びS3を含む。制御装置Mは、ケーブルC1を介して、制御装置S1に接続されている。制御装置S1は、ケーブルC2を介して、制御装置S2に接続されている。制御装置S2は、ケーブルC3を介して、制御装置S3に接続されている。つまり、制御装置M,S1,S2及びS3は、デイジーチェーン接続されている。
Embodiment 1 FIG.
FIG. 1 is a diagram illustrating a configuration of a communication system according to the first embodiment. The communication system 1 includes control devices M, S1, S2, and S3. The control device M is connected to the control device S1 via the cable C1. The control device S1 is connected to the control device S2 via the cable C2. The control device S2 is connected to the control device S3 via the cable C3. That is, the control devices M, S1, S2, and S3 are daisy chain connected.
制御装置M,S1,S2及びS3は、制御装置M側から制御装置S3へ向かう矢印15方向への通信を行う期間と、制御装置S3側から制御装置Mへ向かう矢印16方向への通信を行う期間と、を有する。実施の形態1では、矢印15方向を下流方向と称する場合があり、矢印16方向を上流方向と称する場合がある。
The control devices M, S1, S2 and S3 perform communication in the direction of
制御装置M,S1,S2及びS3の送信開始タイミングは同期しており、制御装置M,S1,S2及びS3は、下流方向15への通信を行う期間で送信開始タイミングになったら、下流方向15への送信を一斉に開始する。一方、制御装置M,S1,S2及びS3は、上流方向16への通信を行う期間で送信開始タイミングになったら、上流方向16への送信を一斉に開始する。
The transmission start timings of the control devices M, S1, S2, and S3 are synchronized, and when the control devices M, S1, S2, and S3 reach the transmission start timing during the period of communication in the
制御装置Mは、制御装置S1,S2及びS3を制御するマスタ制御装置である。制御装置Mは、プログラマブルコントローラ(JIS B 3502:2011、programmable controllers(PLC))が例示される。制御装置Mは、制御装置S1,S2及びS3と通信を行う通信部Maと、制御装置S1,S2及びS3を制御する制御演算を行う制御部Mbと、を含む。 The control device M is a master control device that controls the control devices S1, S2, and S3. The controller M is exemplified by a programmable controller (JIS B 3502: 2011, programmable controllers (PLC)). The control device M includes a communication unit Ma that communicates with the control devices S1, S2, and S3, and a control unit Mb that performs control calculations for controlling the control devices S1, S2, and S3.
制御装置S1は、制御装置Mの制御下で動作するスレーブ制御装置である。制御装置S1は、サーボアンプが例示される。制御装置S1は、制御装置M,S2及びS3と通信を行う通信部S1aと、モータ11を駆動する駆動部S1bと、を含む。
The control device S1 is a slave control device that operates under the control of the control device M. The control device S1 is exemplified by a servo amplifier. The control device S1 includes a communication unit S1a that communicates with the control devices M, S2, and S3, and a drive unit S1b that drives the
制御装置S2は、制御装置Mの制御下で動作するスレーブ制御装置である。制御装置S2は、サーボアンプが例示される。制御装置S2は、制御装置M,S1及びS3と通信を行う通信部S2aと、モータ12を駆動する駆動部S2bと、を含む。
The control device S2 is a slave control device that operates under the control of the control device M. The control device S2 is exemplified by a servo amplifier. The control device S2 includes a communication unit S2a that communicates with the control devices M, S1, and S3, and a drive unit S2b that drives the
制御装置S3は、制御装置Mの制御下で動作するスレーブ制御装置である。制御装置S3は、サーボアンプが例示される。制御装置S3は、制御装置M,S1及びS2と通信を行う通信部S3aと、モータ13を駆動する駆動部S3bと、を含む。
The control device S3 is a slave control device that operates under the control of the control device M. The control device S3 is exemplified by a servo amplifier. The control device S3 includes a communication unit S3a that communicates with the control devices M, S1, and S2, and a drive unit S3b that drives the
図2は、実施の形態1にかかる通信システムで送受信されるフレームを示す図である。フレーム20は、フレーム20の始まりを表す予め定められたパターンのビット列であるプリアンブル21と、データが格納されるペイロード22と、を含む。
FIG. 2 is a diagram illustrating frames transmitted and received in the communication system according to the first embodiment. The frame 20 includes a
実施の形態1では、ペイロード22は、1つ又は複数のブロックで構成される。実施の形態1では、ペイロード22を構成する1つ又は複数のブロックの各々を、サブペイロード23と称する。
In the first embodiment, the
図3は、実施の形態1にかかる通信システムで送受信されるサブペイロードを示す図である。サブペイロード23は、主部24と、伝送エラーに起因するサブペイロード23の誤り検出を行うための誤り検出符号が格納される誤り検出符号部25と、を含む。誤り検出符号は、チェックサム又は巡回冗長検査(Cyclic Redundancy Check、CRC)が例示される。なお、誤り検出符号は、誤り検出に加えて誤り訂正をも行うための誤り訂正符号であっても良い。誤り訂正符号は、巡回符号(Cyclic code)又は畳み込み符号(Convolutional code)が例示される。
FIG. 3 is a diagram illustrating sub-payloads transmitted and received in the communication system according to the first embodiment. The
主部24は、宛先部26と、データ長部27と、データ部28と、を含む。宛先部26は、サブペイロード23の宛先の装置を表す値を格納する。データ部28は、宛先の装置に送られるデータを格納する。データ長部27は、データ部28の長さを表す値を格納する。サブペイロード23は、ある1つの装置を宛先とする信号の単位である。
The
宛先部26、データ長部27及び誤り検出符号部25の各々は、固定長であり、データ部28は、可変長である。データ部28の長さは、データ長部27に格納されている。従って、通信部Ma,S1a,S2a及びS3aは、データ長部27を参照することにより、サブペイロード23の長さを得ることができる。
Each of the
再び図2を参照すると、ペイロード22は、1つ又は複数のサブペイロード23を含む。1つのペイロード22に含まれる1つ又は複数のサブペイロード23の各々の宛先は、同一であっても良いし、異なっていても良い。
Referring again to FIG. 2, the
図4は、実施の形態1にかかる制御装置の通信部の構成を示す図である。実施の形態1では、通信部Ma,S1a,S2a及びS3aは、同一の構成を有する。 FIG. 4 is a diagram illustrating a configuration of a communication unit of the control device according to the first embodiment. In Embodiment 1, the communication units Ma, S1a, S2a, and S3a have the same configuration.
通信部Ma,S1a,S2a及びS3aは、1つの装置から受信したフレーム20を、宛先が自装置ではないサブペイロードである中継サブペイロード23と、宛先が自装置のサブペイロードである自装置宛てサブペイロード23と、に分離するフレーム受信部31を含む。
The communication units Ma, S1a, S2a, and S3a send a frame 20 received from one device to a
フレーム受信部31は、1つ又は複数の中継サブペイロード23を中継サブペイロード格納部33に格納する。
The frame receiving unit 31 stores one or more relay subpayloads 23 in the relay
通信部Ma,S1a,S2a及びS3aは、自装置宛てサブペイロード23内の誤り検出符号に基づいて、自装置宛てサブペイロード23の誤り検出を行う誤り検出部32を含む。誤り検出部32は、誤り結果及び自装置宛てサブペイロード23内の主部24を、制御部Mb又は駆動部S1b,S2b若しくはS3bに送る。
The communication units Ma, S1a, S2a, and S3a include an
通信部Ma,S1a,S2a及びS3aは、中継サブペイロード23を格納する中継サブペイロード格納部33を含む。
The communication units Ma, S1a, S2a, and S3a include a relay
通信部Ma,S1a,S2a及びS3aは、他の装置と一斉に通信を開始する通信開始タイミングを通知する通信開始通知部34を含む。
The communication units Ma, S1a, S2a, and S3a include a communication
通信部Ma,S1a,S2a及びS3aは、プリアンブル21を格納するプリアンブル格納部35を含む。
The communication units Ma, S1a, S2a, and S3a include a
通信部Ma,S1a,S2a及びS3aは、自装置の制御部Mb又は駆動部S1b,S2b若しくはS3bが作成した主部24を格納する送信データ格納部36を含む。
The communication units Ma, S1a, S2a, and S3a include a transmission
制御部Mb又は駆動部S1b,S2b若しくはS3bは、1つ又は複数の主部24を送信データ格納部36に自装置から遠い宛先の順に格納すると好ましい。これにより、フレーム送信部38は、送信データ格納部36の先頭から順に読み出すだけで、自装置が他装置に宛てて発行する自装置発行サブペイロード23を自装置から遠い宛先の順に作成することができる。
The control unit Mb or the drive unit S1b, S2b or S3b preferably stores one or a plurality of
制御装置M,S1,S2及びS3が、自装置から遠い宛先の順に自装置発行サブペイロード23を結合したフレーム20を送信することにより、次の効果が得られる。 When the control devices M, S1, S2, and S3 transmit the frame 20 in which the device-issued sub-payloads 23 are combined in order of destinations far from the device, the following effects can be obtained.
仮に、制御装置Mが、制御装置S1を宛先とする自装置発行サブペイロード23と、制御装置S3を宛先とする自装置発行サブペイロード23と、制御装置S2を宛先とする自装置発行サブペイロード23と、を順に結合したフレーム20を、制御装置S1へ送信するとしたならば、制御装置S1は、制御装置S3を宛先とする中継サブペイロード23の送信を直ぐに行うことができない。つまり、制御装置S1は、制御装置S3を宛先とする中継サブペイロード23を受信するまで、中継サブペイロード23の送信を開始できないことになる。従って、制御装置M,S1,S2及びS3の通信の終了が後ろにずれ込み、通信時間が長くなってしまう。
Temporarily, the control device M has its own
一方、制御装置Mは、制御装置S3を宛先とする自装置発行サブペイロード23と、制御装置S2を宛先とする自装置発行サブペイロード23と、制御装置S1を宛先とする自装置発行サブペイロード23と、を順に結合したフレーム20を、制御装置S1へ送信する。
On the other hand, the control device M has its own
従って、制御装置S1は、制御装置Mが発行し制御装置S3を宛先とする中継サブペイロード23を受信したら、制御装置Mが発行し制御装置S3を宛先とする中継サブペイロード23の制御装置S2への送信を行うことができる。これにより、制御装置M,S1,S2及びS3の通信の終了を前倒しすることができ、通信時間を短縮することができる。
Therefore, when the control device S1 receives the
通信部Ma,S1a,S2a及びS3aは、主部24に付加する誤り検出符号部25を生成する誤り検出符号生成部37を含む。誤り検出符号生成部37は、送信データ格納部36に主部24が格納されたら、格納された主部24を参照して、誤り検出符号部25を生成する。
The communication units Ma, S1a, S2a, and S3a include an error detection
通信部Ma,S1a,S2a及びS3aは、通信開始タイミングが通知されたときにフレーム20の送信中でない場合には、プリアンブル21と、中継サブペイロード23と、を含むフレーム20の他の装置への送信を開始し、フレーム20の送信中に中継サブペイロード格納部33に中継サブペイロード23が格納された場合には、中継サブペイロード23を送信中のフレーム20の末尾に付加して送信を継続するフレーム送信部38を含む。
When the communication unit Ma, S1a, S2a, and S3a are not transmitting the frame 20 when the communication start timing is notified, the communication units Ma, S1a, S2a, and S3a send the frame 20 including the
図5は、実施の形態1にかかる制御装置の通信部の受信時の処理を示すフローチャートである。フレーム受信部31は、ステップS100において、受信したフレーム20のペイロード22内の1つ又は複数のサブペイロード23を、宛先が自装置である自装置宛てサブペイロード23と、宛先が自装置ではない中継サブペイロード23と、に分離する。
FIG. 5 is a flowchart of a process at the time of reception by the communication unit of the control device according to the first embodiment. In step S100, the frame reception unit 31 transfers one or more subpayloads 23 in the
フレーム受信部31は、1つ又は複数のサブペイロード23の各々の宛先部26を参照することにより、1つ又は複数のサブペイロード23の各々の宛先を得ることができる。また、フレーム受信部31は、1つ又は複数のサブペイロード23の各々のデータ長部27を参照することにより、1つ又は複数のサブペイロード23の各々の長さを得ることができる。
The frame receiving unit 31 can obtain the destination of each of the one or more subpayloads 23 by referring to the
従って、フレーム受信部31は、1つ又は複数のサブペイロード23の各々の宛先部26及びデータ長部27に基づいて、1つ又は複数のサブペイロード23を、自装置宛てサブペイロード23と、中継サブペイロード23と、に分離することができる。フレーム受信部31は、自装置宛てサブペイロード23を誤り検出部32に送り、中継サブペイロード23を中継サブペイロード格納部33に格納する。
Accordingly, the frame reception unit 31 relays one or more subpayloads 23 to the own device and the
制御装置M,S1,S2及びS3が、自装置から遠い宛先の順に自装置発行サブペイロード23を結合したフレーム20を送信することにより、次の効果が得られる。 When the control devices M, S1, S2, and S3 transmit the frame 20 in which the device-issued sub-payloads 23 are combined in order of destinations far from the device, the following effects can be obtained.
仮に、制御装置Mが、制御装置S1を宛先とする自装置発行サブペイロード23と、制御装置S3を宛先とする自装置発行サブペイロード23と、制御装置S2を宛先とする自装置発行サブペイロード23と、を順に結合したフレーム20を、制御装置S1へ送信するとしたならば、制御装置S1は、制御装置S3を宛先とする中継サブペイロード23の送信を直ぐに行うことができない。つまり、制御装置S1は、制御装置S3を宛先とする中継サブペイロード23を受信するまで、中継サブペイロード23の送信を開始できないことになる。従って、制御装置M,S1,S2及びS3の通信の終了が後ろにずれ込み、通信時間が長くなってしまう。
Temporarily, the control device M has its own
一方、制御装置Mは、制御装置S3を宛先とする自装置発行サブペイロード23と、制御装置S2を宛先とする自装置発行サブペイロード23と、制御装置S1を宛先とする自装置発行サブペイロード23と、を順に結合したフレーム20を、制御装置S1へ送信する。
On the other hand, the control device M has its own
従って、制御装置S1は、制御装置Mが発行し制御装置S3を宛先とする中継サブペイロード23を受信したら、制御装置Mが発行し制御装置S3を宛先とする中継サブペイロード23の制御装置S2への送信を行うことができる。これにより、制御装置M,S1,S2及びS3の通信の終了を前倒しすることができ、通信時間を短縮することができる。
Therefore, when the control device S1 receives the
誤り検出部32は、ステップS102において、自装置宛てサブペイロード23の誤り検出を行う。誤り検出部32は、誤り検出結果及び自装置宛てサブペイロード23内の主部24を、制御部Mb又は駆動部S1b、S2b若しくはS3bに送る。
In step S102, the
図6は、実施の形態1にかかる制御装置の通信部の送信時の処理を示すフローチャートである。図6に示すフローチャートは、制御装置M,S1,S2及びS3の各々が、自装置が他装置に宛てて発行する自装置発行サブペイロード23を送信する場合の、制御装置M,S1,S2及びS3の通信部Ma,S1a,S2a及びS3aの送信時の処理を示す。 FIG. 6 is a flowchart of a process at the time of transmission of the communication unit of the control device according to the first embodiment. The flowchart shown in FIG. 6 shows that each of the control devices M, S1, S2, and S3 transmits the control device M, S1, S2, and the control device M, S1, S2, The process at the time of transmission of the communication units Ma, S1a, S2a and S3a of S3 is shown.
フレーム送信部38は、通信開始通知部34から通信開始タイミングの通知を受けたときに、送信データ格納部36に主部24が格納されていたら、図6に示す処理を実行する。
When receiving the notification of the communication start timing from the communication start notifying
フレーム送信部38は、ステップS200において、フレーム20の送信中であるか否かを判定する。フレーム送信部38は、フレーム20の送信中ではないとステップS200で判定したら(No)、処理をステップS202に進め、フレーム20の送信中であると判定したら(Yes)、処理をステップS204に進める。
In step S200, the
フレーム送信部38は、フレーム20の送信中であるか否かを、送信中のサブペイロード23の残りの長さに基づいて判定することとしても良い。フレーム送信部38は、主部24を送信データ格納部36から、誤り検出符号部25を誤り検出符号生成部37から、夫々読み取って、自装置発行サブペイロード23を作成する。フレーム送信部38が自装置発行サブペイロード23の作成に要する処理時間をT0とする。フレーム送信部38は、送信中のサブペイロード23の残りの長さを予め判っている通信速度で除した送信残り時間T1が処理時間T0より大きければ、フレーム20の送信中であると判定することができる。これにより、フレーム送信部38は、自装置発行サブペイロード23の作成に要する処理時間を考慮して、フレーム20の送信中であると判定することができる。
The
また、フレーム送信部38は、フレーム20の送信中であるか否かを、送信中のサブペイロード23の送信開始時刻と、送信中のサブペイロード23の長さと、に基づいて判定することとしても良い。フレーム送信部38は、送信中のサブペイロード23の長さを通信速度で除した送信時間T2を、送信中のサブペイロード23の送信開始時刻T3に加えた送信終了予定時刻T4が、現在時刻に処理時間T0を加えた時刻より後であれば、フレーム20の送信中であると判定することができる。これにより、フレーム送信部38は、自装置発行サブペイロード23の作成に要する処理時間を考慮して、フレーム20の送信中であると判定することができる。
The
フレーム送信部38は、ステップS202において、第1送信処理サブルーチンを実行する。
In step S202, the
図7は、実施の形態1にかかる制御装置の通信部の第1送信処理を示すフローチャートである。 FIG. 7 is a flowchart of the first transmission process of the communication unit of the control device according to the first embodiment.
フレーム送信部38は、ステップS210において、プリアンブル21をプリアンブル格納部35から読み出す。
The
フレーム送信部38は、ステップS212において、1つ又は複数の主部24を送信データ格納部36から、1つ又は複数の誤り検出符号部25を誤り検出符号生成部37から、自装置から遠い宛先の順に夫々読み出して、1つ又は複数の自装置発行サブペイロード23を自装置から遠い宛先の順に作成する。
In step S212, the
なお、制御部Mb又は駆動部S1b,S2b若しくはS3bが、1つ又は複数の主部24を送信データ格納部36に自装置から遠い宛先の順に格納すると好ましい。これにより、フレーム送信部38は、送信データ格納部36の先頭から順に読み出すだけで、自装置が他装置に宛てて発行する自装置発行サブペイロード23を自装置から遠い宛先の順に作成することができる。
It is preferable that the control unit Mb or the drive unit S1b, S2b, or S3b stores one or more
制御装置M,S1,S2及びS3が、自装置から遠い宛先の順に自装置発行サブペイロード23を結合したフレーム20を送信することにより、次の効果が得られる。 When the control devices M, S1, S2, and S3 transmit the frame 20 in which the device-issued sub-payloads 23 are combined in order of destinations far from the device, the following effects can be obtained.
仮に、制御装置Mが、制御装置S1を宛先とする自装置発行サブペイロード23と、制御装置S3を宛先とする自装置発行サブペイロード23と、制御装置S2を宛先とする自装置発行サブペイロード23と、を順に結合したフレーム20を、制御装置S1へ送信するとしたならば、制御装置S1は、制御装置S3を宛先とする中継サブペイロード23の送信を直ぐに行うことができない。つまり、制御装置S1は、制御装置S3を宛先とする中継サブペイロード23を受信するまで、中継サブペイロード23の送信を開始できないことになる。従って、制御装置M,S1,S2及びS3の通信の終了が後ろにずれ込み、通信時間が長くなってしまう。
Temporarily, the control device M has its own
一方、制御装置Mは、制御装置S3を宛先とする自装置発行サブペイロード23と、制御装置S2を宛先とする自装置発行サブペイロード23と、制御装置S1を宛先とする自装置発行サブペイロード23と、を順に結合したフレーム20を、制御装置S1へ送信する。
On the other hand, the control device M has its own
従って、制御装置S1は、制御装置Mが発行し制御装置S3を宛先とする中継サブペイロード23を受信したら、制御装置Mが発行し制御装置S3を宛先とする中継サブペイロード23の制御装置S2への送信を行うことができる。これにより、制御装置M,S1,S2及びS3の通信の終了を前倒しすることができ、通信時間を短縮することができる。
Therefore, when the control device S1 receives the
フレーム送信部38は、ステップS214において、プリアンブル21並びに1つ又は複数の自装置発行サブペイロード23を、自装置から遠い宛先の順に結合したフレーム20を送信する。
In step S214, the
再び図6を参照すると、フレーム送信部38は、ステップS204において、第2送信処理サブルーチンを実行する。
Referring to FIG. 6 again, the
図8は、実施の形態1にかかる制御装置の通信部の第2送信処理を示すフローチャートである。 FIG. 8 is a flowchart of a second transmission process of the communication unit of the control device according to the first embodiment.
フレーム送信部38は、ステップS220において、1つ又は複数の主部24を送信データ格納部36から、1つ又は複数の誤り検出符号部25を誤り検出符号生成部37から、自装置から遠い宛先の順に夫々読み出して、1つ又は複数の自装置発行サブペイロード23を自装置から遠い宛先の順に作成する。
In step S220, the
フレーム送信部38は、ステップS222において、送信中のフレーム20の末尾に、1つ又は複数の自装置発行サブペイロード23を、自装置から遠い宛先の順に付加し、送信を継続する。これにより、送信中のフレーム20が長くなる。
In step S222, the
図9は、実施の形態1にかかる制御装置の通信部の送信時の処理を示すフローチャートである。図9に示すフローチャートは、制御装置M,S1,S2及びS3の各々が、中継サブペイロード23を転送する場合の、制御装置M,S1,S2及びS3の通信部Ma,S1a,S2a及びS3aの送信時の処理を示す。
FIG. 9 is a flowchart of a process at the time of transmission of the communication unit of the control device according to the first embodiment. The flowchart shown in FIG. 9 shows the communication units Ma, S1a, S2a, and S3a of the control devices M, S1, S2, and S3 when each of the control devices M, S1, S2, and S3 transfers the
フレーム送信部38は、通信開始通知部34から通信開始タイミングの通知を受けたときに、中継サブペイロード格納部33に1つ又は複数の中継サブペイロード23が格納されていたら、図9に示す処理を実行する。
When one or more relay subpayloads 23 are stored in the relay
フレーム送信部38は、ステップS230において、フレーム20の送信中であるか否かを判定する。フレーム送信部38は、フレーム20の送信中ではないとステップS230で判定したら(No)、処理をステップS232に進め、フレーム20の送信中であると判定したら(Yes)、処理をステップS234に進める。
In step S230, the
フレーム送信部38は、ステップS232において、第3送信処理サブルーチンを実行する。
In step S232, the
図10は、実施の形態1にかかる制御装置の通信部の第3送信処理を示すフローチャートである。 FIG. 10 is a flowchart of a third transmission process of the communication unit of the control device according to the first embodiment.
フレーム送信部38は、ステップS240において、プリアンブル21をプリアンブル格納部35から読み出す。
In step S240, the
フレーム送信部38は、ステップS242において、1つ又は複数の中継サブペイロード23を中継サブペイロード格納部33から読み出す。
In step S <b> 242, the
フレーム送信部38は、ステップS244において、プリアンブル21並びに1つ又は複数の中継サブペイロード23を自装置から遠い宛先の順に結合したフレーム20を送信する。
In step S244, the
再び図9を参照すると、フレーム送信部38は、ステップS234において、第4送信処理サブルーチンを実行する。
Referring to FIG. 9 again, in step S234, the
図11は、実施の形態1にかかる制御装置の通信部の第4送信処理を示すフローチャートである。 FIG. 11 is a flowchart of a fourth transmission process of the communication unit of the control device according to the first embodiment.
フレーム送信部38は、ステップS250において、1つ又は複数の中継サブペイロード23を中継サブペイロード格納部33から読み出す。
In step S250, the
フレーム送信部38は、ステップS252において、送信中のフレーム20の末尾に、1つ又は複数の中継サブペイロード23を自装置から遠い宛先の順に付加し、送信を継続する。これにより、送信中のフレーム20が長くなる。
In step S252, the
図12は、実施の形態1にかかる通信システムの通信動作を示すシーケンス図である。図12に示すシーケンス図は、下流方向15への通信を行う期間における通信システム1の動作を示す。
FIG. 12 is a sequence diagram of the communication operation of the communication system according to the first embodiment. The sequence diagram illustrated in FIG. 12 illustrates the operation of the communication system 1 during a period in which communication in the
制御装置M,S1,S2及びS3は、タイミングt0において、下流方向15への通信を一斉に開始する。
The control devices M, S1, S2, and S3 simultaneously start communication in the
制御装置Mは、タイミングt0において、制御装置S3を宛先とする自装置発行サブペイロード23と、制御装置S2を宛先とする自装置発行サブペイロード23と、制御装置S1を宛先とする自装置発行サブペイロード23と、を含むフレーム20の制御装置S1への送信を開始する。
At timing t0, the control device M has its own
制御装置Mは、制御装置Mから遠い宛先の順、つまり制御装置S3、制御装置S2及び制御装置S1の順に、制御装置S3を宛先とする自装置発行サブペイロード23と、制御装置S2を宛先とする自装置発行サブペイロード23と、制御装置S1を宛先とする自装置発行サブペイロード23と、を結合したフレーム20を、制御装置S1へ送信する。
The control device M has its own
制御装置S1は、タイミングt0において、制御装置S2を宛先とする自装置発行サブペイロード23を含むフレーム20の制御装置S2への送信を開始する。
At timing t0, the control device S1 starts transmission of the frame 20 including the self device issued
制御装置S2は、タイミングt0において、制御装置S3を宛先とする自装置発行サブペイロード23を含むフレーム20の制御装置S3への送信を開始する。
At timing t0, the control device S2 starts transmission of the frame 20 including the self-issued
制御装置S1は、タイミングt1において、制御装置S2を宛先とする自装置発行サブペイロード23の送信を終了するが、この時点で、制御装置Mが発行し制御装置S3を宛先とする中継サブペイロード23の主部24の受信を開始している。従って、制御装置S1は、送信中のフレーム20の末尾に、制御装置Mが発行し制御装置S3を宛先とする中継サブペイロード23を付加し、送信中のフレーム20を長くして、送信を継続する。
At timing t1, the control device S1 finishes transmission of its own device-issued
制御装置S1は、タイミングt2において、制御装置Mが発行し制御装置S3を宛先とする中継サブペイロード23の送信を終了するが、この時点で、制御装置Mが発行し制御装置S2を宛先とする中継サブペイロード23の主部24の受信を開始している。従って、制御装置S1は、送信中のフレーム20の末尾に、制御装置Mが発行し制御装置S2を宛先とする中継サブペイロード23を付加し、送信中のフレーム20を長くして、送信を継続する。
At timing t2, the control device S1 ends the transmission of the
制御装置S2は、タイミングt3において、制御装置S3を宛先とする自装置発行サブペイロード23の送信を終了するが、この時点で、制御装置Mが発行し制御装置S3を宛先とする中継サブペイロード23の主部24の受信を終了していない。従って、制御装置S2は、制御装置Mが発行し制御装置S3を宛先とする中継サブペイロード23の主部24の受信を終了するまで、通信を行わない。制御装置S2は、通信を行わない間、ローレベル又はハイレベルの信号を制御装置S3に送信することとしても良い。
At timing t3, the control device S2 finishes transmission of its own device-issued
制御装置S2は、タイミングt4において、制御装置Mが発行し制御装置S3を宛先とする中継サブペイロード23の主部24の受信を開始する。従って、制御装置S2は、タイミングt5において、制御装置Mが発行し制御装置S3を宛先とする中継サブペイロード23を含むフレーム20の送信を開始する。
At timing t4, the control device S2 starts receiving the
上記したように、実施の形態1によれば、制御装置S1は、制御装置S2を宛先とする自装置発行サブペイロード23と、制御装置Mが発行し制御装置S3を宛先とする中継サブペイロード23と、制御装置Mが発行し制御装置S2を宛先とする中継サブペイロード23と、を含む1つのフレーム20を送信することができる。つまり、制御装置S1は、送信するフレーム20の数を減らすことができる。即ち、制御装置S1は、プリアンブルの数を減らすことができる。従って、制御装置S1は、プリアンブルを減らした分だけ、通信時間を短縮することができる。
As described above, according to the first embodiment, the control device S1 has its own device issued
また、実施の形態1によれば、制御装置Mが、制御装置Mから遠い宛先の順、つまり制御装置S3、制御装置S2及び制御装置S1の順に、制御装置S3を宛先とする自装置発行サブペイロード23と、制御装置S2を宛先とする自装置発行サブペイロード23と、制御装置S1を宛先とする自装置発行サブペイロード23と、を順に結合したフレーム20を、制御装置S1へ送信することにより、次の効果が得られる。
Further, according to the first embodiment, the control device M has its own device issue sub addressed to the control device S3 in the order of destinations far from the control device M, that is, the control device S3, the control device S2, and the control device S1. By transmitting, to the control device S1, a frame 20 in which a
仮に、制御装置Mが、制御装置S1を宛先とする自装置発行サブペイロード23と、制御装置S3を宛先とする自装置発行サブペイロード23と、制御装置S2を宛先とする自装置発行サブペイロード23と、を順に結合したフレーム20を、制御装置S1へ送信するとしたならば、制御装置S1は、タイミングt1において、制御装置S3を宛先とする中継サブペイロード23の送信を行うことができない。つまり、制御装置S1は、制御装置S3を宛先とする中継サブペイロード23を受信するまで、中継サブペイロード23の送信を開始できないことになる。従って、制御装置M,S1,S2及びS3の通信の終了が後ろにずれ込み、通信時間が長くなってしまう。
Temporarily, the control device M has its own
一方、実施の形態1によれば、制御装置Mは、制御装置S3を宛先とする自装置発行サブペイロード23と、制御装置S2を宛先とする自装置発行サブペイロード23と、制御装置S1を宛先とする自装置発行サブペイロード23と、を順に結合したフレーム20を、制御装置S1へ送信する。
On the other hand, according to the first embodiment, the control device M has its own
従って、実施の形態1によれば、制御装置S1は、タイミングt1で、制御装置Mが発行し制御装置S3を宛先とする中継サブペイロード23を受信したら、制御装置Mが発行し制御装置S3を宛先とする中継サブペイロード23の制御装置S2への送信を行うことができる。これにより、制御装置M,S1,S2及びS3の通信の終了を前倒しすることができ、通信時間を短縮することができる。
Therefore, according to the first embodiment, when the control device S1 receives the
また仮に、制御装置Mが、制御装置S2を宛先とする自装置発行サブペイロード23と、制御装置S3を宛先とする自装置発行サブペイロード23と、制御装置S1を宛先とする自装置発行サブペイロード23と、を順に結合したフレーム20を、制御装置S1へ送信するとしたならば、制御装置S2は、タイミングt4において、制御装置S3を宛先とする中継サブペイロード23の送信を行うことができない。つまり、制御装置S2は、制御装置S3を宛先とする中継サブペイロード23を受信するまで、中継サブペイロード23の送信を開始できないことになる。従って、制御装置M,S1,S2及びS3の通信の終了が後ろにずれ込み、通信時間が長くなってしまう。
Also, suppose that the control device M has its own
一方、実施の形態1によれば、制御装置Mは、制御装置S3を宛先とする自装置発行サブペイロード23と、制御装置S2を宛先とする自装置発行サブペイロード23と、制御装置S1を宛先とする自装置発行サブペイロード23と、を順に結合したフレーム20を、制御装置S1へ送信する。そして、制御装置S1は、制御装置S2を宛先とする自装置発行サブペイロード23と、制御装置S3を宛先とする中継サブペイロード23と、制御装置S2を宛先とする中継サブペイロード23と、を含むフレーム20を制御装置S2に送信する。
On the other hand, according to the first embodiment, the control device M has its own
従って、実施の形態1によれば、制御装置S2は、タイミングt4で、制御装置Mが発行し制御装置S3を宛先とする中継サブペイロード23を受信したら、制御装置Mが発行し制御装置S3を宛先とする中継サブペイロード23の制御装置S3への送信を行うことができる。これにより、制御装置M,S1,S2及びS3の通信の終了を前倒しすることができ、通信時間を短縮することができる。
Therefore, according to the first embodiment, when the control device S2 receives the
また、実施の形態1によれば、制御装置M,S1,S2及びS3が、自装置発行サブペイロード23内に誤り検出符号部25を付加することで、次の効果が得られる。
Further, according to the first embodiment, the control device M, S1, S2, and S3 adds the error
制御装置S1及びS2は、自装置発行サブペイロード23を含むフレーム20の送信中に、他装置から中継サブペイロード23を受信したら、送信中のフレーム20の末尾に、中継サブペイロード23を付加する。つまり、フレーム20の内容及び長さは、動的に変化する。
When the control devices S1 and S2 receive the
一般に、伝送エラーに起因する誤りを検出するために、フレーム作成時に、フレームチェックシーケンスがフレームの末尾に付加される。しかしながら、ある装置がフレームの末尾まで受信する前に、自局からのフレーム送信を完了してしまうので、受信フレームのフレームチェックシーケンスに誤りがあっても、それを通知することができない。 Generally, in order to detect an error due to a transmission error, a frame check sequence is added to the end of the frame when the frame is created. However, since a certain apparatus completes frame transmission from its own station before receiving the end of the frame, even if there is an error in the frame check sequence of the received frame, it cannot be notified.
一方、実施の形態1によれば、制御装置M,S1,S2及びS3が、自装置発行サブペイロード23内に誤り検出符号部25を付加するので、宛先の装置は、誤り検出符号部25を参照して、自装置宛てサブペイロード23の誤りを検出することができる。
On the other hand, according to the first embodiment, the control devices M, S1, S2, and S3 add the error
フレーム送信部38は、フレーム20の送信中であるか否かを、送信中のサブペイロード23の残りの長さに基づいて判定することとしても良い。フレーム送信部38は、主部24を送信データ格納部36から、誤り検出符号部25を誤り検出符号生成部37から、夫々読み取って、自装置発行サブペイロード23を作成する。フレーム送信部38が自装置発行サブペイロード23の作成に要する処理時間をT0とする。フレーム送信部38は、送信中のサブペイロード23の残りの長さを予め判っている通信速度で除した送信残り時間T1が処理時間T0より大きければ、フレーム20の送信中であると判定することができる。これにより、フレーム送信部38は、自装置発行サブペイロード23の作成に要する処理時間を考慮して、フレーム20の送信中であると判定することができる。
The
また、フレーム送信部38は、フレーム20の送信中であるか否かを、送信中のサブペイロード23の送信開始時刻と、送信中のサブペイロード23の長さと、に基づいて判定することとしても良い。フレーム送信部38は、送信中のサブペイロード23の長さを通信速度で除した送信時間T2を、送信中のサブペイロード23の送信開始時刻T3に加えた送信終了予定時刻T4が、現在時刻に処理時間T0を加えた時刻より後であれば、フレーム20の送信中であると判定することができる。これにより、フレーム送信部38は、自装置発行サブペイロード23の作成に要する処理時間を考慮して、フレーム20の送信中であると判定することができる。
The
また、実施の形態1によれば、フレーム送信部38は、フレーム20の送信中か否かを、送信中のサブペイロード23の残りの長さ又は送信中のサブペイロード23の送信開始時刻と送信中のサブペイロード23の長さと、に基づいて判定することができる。
Further, according to the first embodiment, the
フレーム送信部38は、送信中のサブペイロード23の残りの長さを通信速度で除した送信残り時間T1が自装置発行サブペイロード23の作成処理時間T0より大きければ、フレーム20の送信中であると判定することができる。
The
また、フレーム送信部38は、送信中のサブペイロード23の長さを通信速度で除した送信時間T2を、送信中のサブペイロード23の送信開始時刻T3に加えた送信終了予定時刻T4が、現在時刻に処理時間T0を加えた時刻より後であれば、フレーム20の送信中であると判定することができる。
The
これにより、フレーム送信部38は、自装置発行サブペイロード23の作成処理時間を考慮して、サブペイロード23を送信中のフレーム20の末尾に付加するか否かを好適に判定することができる。
Thereby, the
図13は、実施の形態1にかかる通信システムの通信動作を示すシーケンス図である。図13に示すシーケンス図は、上流方向16への通信を行う期間における通信システム1の動作を示す。
FIG. 13 is a sequence diagram of the communication operation of the communication system according to the first embodiment. The sequence diagram illustrated in FIG. 13 illustrates the operation of the communication system 1 during the period in which communication in the
制御装置S1,S2及びS3は、タイミングt10において、上流方向16への通信を一斉に開始する。
The control devices S1, S2, and S3 simultaneously start communication in the
制御装置S1は、タイミングt10において、制御装置Mを宛先とする自装置発行サブペイロード23を含むフレーム20の制御装置Mへの送信を開始する。
At timing t <b> 10, the control device S <b> 1 starts transmission of the frame 20 including the self device issued
制御装置S2は、タイミングt10において、制御装置Mを宛先とする自装置発行サブペイロード23を含むフレーム20の制御装置S1への送信を開始する。
At timing t10, the control device S2 starts transmission of the frame 20 including the own device issued
制御装置S3は、タイミングt10において、制御装置Mを宛先とする自装置発行サブペイロード23を含むフレーム20の制御装置S2への送信を開始する。
At timing t10, the control device S3 starts transmission of the frame 20 including the own device issued
制御装置S1は、タイミングt11において、制御装置Mを宛先とする自装置発行サブペイロード23の送信を終了するが、この時点で、制御装置S2が発行し制御装置Mを宛先とする中継サブペイロード23の主部24の受信を開始している。従って、制御装置S1は、送信中のフレーム20の末尾に、制御装置S2が発行し制御装置Mを宛先とする中継サブペイロード23を付加し、送信中のフレーム20を長くして、送信を継続する。
At timing t11, the control device S1 ends the transmission of its own device issued
制御装置S2は、タイミングt12において、制御装置Mを宛先とする自装置発行サブペイロード23を含むフレーム20の制御装置S1への送信を終了する。
At timing t12, the control device S2 ends the transmission of the frame 20 including the self device issued
制御装置S1は、タイミングt13において、制御装置Mを宛先とする自装置発行サブペイロード23と、制御装置S2が発行し制御装置Mを宛先とする中継サブペイロード23と、を含むフレーム20の制御装置Mへの送信を終了する。
At timing t13, the control device S1 controls the frame 20 including its own device issued
制御装置S2は、タイミングt14において、制御装置S3が発行し制御装置Mを宛先とする中継サブペイロード23の受信を開始する。そして、制御装置S2は、タイミングt15において、制御装置S3が発行し制御装置Mを宛先とする中継サブペイロード23を含む新たなフレーム20の制御装置S1への送信を開始する。
At timing t14, the control device S2 starts receiving the
制御装置S1は、タイミングt16において、制御装置S3が発行し制御装置Mを宛先とする中継サブペイロード23の受信を開始する。そして、制御装置S1は、タイミングt17において、制御装置S3が発行し制御装置Mを宛先とする中継サブペイロード23を含む新たなフレーム20の制御装置Mへの送信を開始する。
At timing t16, the control device S1 starts receiving the
上記したように、実施の形態1によれば、次の効果が得られる。 As described above, according to the first embodiment, the following effects can be obtained.
一般に、通信の物理層には、最大フレーム長が規定されている。そのため、仮に、制御装置S1が、制御装置Mを宛先とする自装置発行サブペイロード23と、制御装置S2が発行し制御装置Mを宛先とする中継サブペイロード23と、制御装置S3が発行し制御装置Mを宛先とする中継サブペイロード23と、を1つのフレーム20にしたならば、フレーム20の長さが最大フレーム長を超えてしまう可能性がある。
Generally, the maximum frame length is defined in the physical layer of communication. Therefore, suppose that the control device S1 issues its own device issued
一方、実施の形態1によれば、制御装置S1は、制御装置Mを宛先とする自装置発行サブペイロード23を含むフレーム20の送信中に、制御装置S2が発行し制御装置Mを宛先とする中継サブペイロード23を受信したら、送信中のフレーム20の末尾に、制御装置S2が発行し制御装置Mを宛先とする中継サブペイロード23を付加し、送信中のフレーム20を長くして、送信を継続する。
On the other hand, according to the first embodiment, the control device S1 is issued by the control device S2 and is addressed to the control device M during transmission of the frame 20 including the self-issued
他方、制御装置S1は、制御装置S2が発行し制御装置Mを宛先とする中継サブペイロード23を送信中に、制御装置S3が発行し制御装置Mを宛先とする中継サブペイロード23を含むフレーム20を受信したとしても、送信中のフレーム20のフレーム長が最大フレーム長を超えてしまう場合、送信中のフレーム20を長くしないで、制御装置S3が発行し制御装置Mを宛先とする中継サブペイロード23を含む新たなフレーム20を制御装置Mに送信する。
On the other hand, the control device S1 transmits the
従って、実施の形態1によれば、制御装置S1は、制御装置Mを宛先とする自装置発行サブペイロード23を含むフレーム20の末尾に、制御装置S2が発行し制御装置Mを宛先とする中継サブペイロード23を付加することによる、プリアンブル分の通信時間の短縮と、制御装置S3が発行し制御装置Mを宛先とする中継サブペイロード23を新たなフレーム20とすることによる、最大フレーム長を超えてしまうことを抑制すること、との両立を図ることができる。
Therefore, according to the first embodiment, the control device S1 relays the control device S2 which is issued by the control device S2 at the end of the frame 20 including the self
また、実施の形態1によれば、制御装置S1は、タイミングt13からタイミングt17までの間、特許文献3記載の技術のようなアイドルタイムデータの送信を行わない。従って、制御装置S1は、アイドルタイムデータを作成する構成が不要になるという効果を奏する。 Further, according to the first embodiment, the control device S1 does not transmit idle time data as in the technique described in Patent Document 3 from timing t13 to timing t17. Therefore, the control device S1 has an effect that a configuration for creating idle time data is not necessary.
以上の実施の形態に示した構成は、本発明の内容の一例を示すものであり、別の公知の技術と組み合わせることも可能であるし、本発明の要旨を逸脱しない範囲で、構成の一部を省略、変更することも可能である。 The configuration described in the above embodiment shows an example of the contents of the present invention, and can be combined with another known technique, and can be combined with other configurations without departing from the gist of the present invention. It is also possible to omit or change the part.
1 通信システム、M,S1,S2,S3 制御装置、Ma,S1a,S2a,S3a 通信部、31 フレーム受信部、32 誤り検出部、33 中継サブペイロード格納部、34 通信開始通知部、35 プリアンブル格納部、36 送信データ格納部、37 誤り検出符号生成部、38 フレーム送信部。 1 communication system, M, S1, S2, S3 controller, Ma, S1a, S2a, S3a communication unit, 31 frame reception unit, 32 error detection unit, 33 relay subpayload storage unit, 34 communication start notification unit, 35 preamble storage Part, 36 transmission data storage part, 37 error detection code generation part, 38 frame transmission part.
Claims (4)
1つの装置から受信した受信フレームを、宛先が自装置ではない前記サブペイロードである中継サブペイロードと、宛先が自装置の前記サブペイロードである自装置宛てサブペイロードと、に分離するフレーム受信部と、
前記自装置宛てサブペイロード内の前記誤り検出符号に基づいて、前記自装置宛てサブペイロードの誤り検出を行う誤り検出部と、
前記中継サブペイロードを格納する中継サブペイロード格納部と、
他の装置と一斉に通信を開始する通信開始タイミングを通知する通信開始通知部と、
前記通信開始タイミングが通知されたときに送信フレームの送信中でない場合には、前記プリアンブルと、前記中継サブペイロードと、を含む送信フレームの他の装置への送信を開始し、送信フレームの送信中に前記中継サブペイロード格納部に前記中継サブペイロードが格納された場合には、前記中継サブペイロードの先頭に前記プリアンブルを付加しないで、前記中継サブペイロードを送信中の送信フレームの末尾に付加して送信を継続するフレーム送信部と、
自装置が作成した前記主部を格納する送信データ格納部と、
前記主部に付加する前記誤り検出符号を生成する誤り検出符号生成部と、
を備え、
前記フレーム送信部は、
前記通信開始タイミングが通知されたときに送信フレームの送信中でない場合には、前記プリアンブルと、前記主部及び前記誤り検出符号部を含む1つ又は複数の自装置発行サブペイロードとを、自装置から遠い宛先の順に結合した送信フレームの他の装置への送信を開始し、送信フレームの送信中に前記送信データ格納部に前記自装置発行サブペイロードが格納された場合には、前記自装置発行サブペイロードを送信中の送信フレームの末尾に付加して送信を継続する
ことを特徴とする通信装置。 A frame including a preamble and a payload is transmitted / received, and the payload represents a destination part for storing a value representing a destination device, a data part for storing data sent to the destination device, and a length of the data part One or more sub-payloads each including a main part including a data length part for storing a value and an error detection code part for storing an error detection code for detecting an error caused by a transmission error A communication device,
A frame reception unit that separates a received frame received from one device into a relay subpayload that is the subpayload whose destination is not the own device, and a subpayload that is destined for the own device whose destination is the subpayload of the own device; ,
Based on the error detection code in the sub-payload addressed to the own device, an error detection unit that performs error detection of the sub-payload addressed to the own device;
A relay subpayload storage unit for storing the relay subpayload;
A communication start notification unit for notifying a communication start timing for starting communication with other devices all at once
If the transmission frame is not being transmitted when the communication start timing is notified, transmission of the transmission frame including the preamble and the relay subpayload to another device is started, and the transmission frame is being transmitted. When the relay subpayload is stored in the relay subpayload storage unit, the relay subpayload is added to the end of the transmission frame being transmitted without adding the preamble to the head of the relay subpayload. A frame transmission unit that continues transmission;
A transmission data storage unit for storing the main part created by the own device;
An error detection code generator for generating the error detection code to be added to the main part;
With
The frame transmission unit includes:
If the transmission start frame is not being transmitted when the communication start timing is notified, the preamble and one or more self-issued sub-payloads including the main part and the error detection code part are obtained. Start transmission of other transmission frames combined in the order of destinations farther away from the device, and if the device-issued sub-payload is stored in the transmission data storage unit during transmission of the transmission frame, issue the device-issued A communication device characterized by adding a sub-payload to the end of a transmission frame being transmitted and continuing transmission.
1つの装置から受信した受信フレームを、宛先が自装置ではない前記サブペイロードである中継サブペイロードと、宛先が自装置の前記サブペイロードである自装置宛てサブペイロードと、に分離するフレーム受信部と、
前記自装置宛てサブペイロード内の前記誤り検出符号に基づいて、前記自装置宛てサブペイロードの誤り検出を行う誤り検出部と、
前記中継サブペイロードを格納する中継サブペイロード格納部と、
他の装置と一斉に通信を開始する通信開始タイミングを通知する通信開始通知部と、
前記通信開始タイミングが通知されたときに送信フレームの送信中でない場合には、前記プリアンブルと、前記中継サブペイロードと、を含む送信フレームの他の装置への送信を開始し、送信フレームの送信中に前記中継サブペイロード格納部に前記中継サブペイロードが格納された場合には、前記中継サブペイロードの先頭に前記プリアンブルを付加しないで、前記中継サブペイロードを送信中の送信フレームの末尾に付加して送信を継続するフレーム送信部と、
を備え、
前記フレーム送信部は、
送信フレームの送信中であるか否かを、送信中の前記サブペイロードの残りの長さに基づいて判定する
ことを特徴とする通信装置。 A frame including a preamble and a payload is transmitted / received, and the payload represents a destination part for storing a value representing a destination device, a data part for storing data sent to the destination device, and a length of the data part One or more sub-payloads each including a main part including a data length part for storing a value and an error detection code part for storing an error detection code for detecting an error caused by a transmission error A communication device,
A frame reception unit that separates a received frame received from one device into a relay subpayload that is the subpayload whose destination is not the own device, and a subpayload that is destined for the own device whose destination is the subpayload of the own device; ,
Based on the error detection code in the sub-payload addressed to the own device, an error detection unit that performs error detection of the sub-payload addressed to the own device;
A relay subpayload storage unit for storing the relay subpayload;
A communication start notification unit for notifying a communication start timing for starting communication with other devices all at once;
If the transmission frame is not being transmitted when the communication start timing is notified, transmission of the transmission frame including the preamble and the relay subpayload to another device is started, and the transmission frame is being transmitted. When the relay subpayload is stored in the relay subpayload storage unit, the relay subpayload is added to the end of the transmission frame being transmitted without adding the preamble to the head of the relay subpayload. A frame transmission unit that continues transmission;
With
The frame transmission unit includes:
Whether it is being transmitted transmission frames, communication unit you characterized by determining based on the remaining length of the sub-payload being transmitted.
1つの装置から受信した受信フレームを、宛先が自装置ではない前記サブペイロードである中継サブペイロードと、宛先が自装置の前記サブペイロードである自装置宛てサブペイロードと、に分離するフレーム受信部と、
前記自装置宛てサブペイロード内の前記誤り検出符号に基づいて、前記自装置宛てサブペイロードの誤り検出を行う誤り検出部と、
前記中継サブペイロードを格納する中継サブペイロード格納部と、
他の装置と一斉に通信を開始する通信開始タイミングを通知する通信開始通知部と、
前記通信開始タイミングが通知されたときに送信フレームの送信中でない場合には、前記プリアンブルと、前記中継サブペイロードと、を含む送信フレームの他の装置への送信を開始し、送信フレームの送信中に前記中継サブペイロード格納部に前記中継サブペイロードが格納された場合には、前記中継サブペイロードの先頭に前記プリアンブルを付加しないで、前記中継サブペイロードを送信中の送信フレームの末尾に付加して送信を継続するフレーム送信部と、
を備え、
前記フレーム送信部は、
送信フレームの送信中であるか否かを、送信中の前記サブペイロードの送信開始時刻と、送信中の前記サブペイロードの長さと、に基づいて判定する
ことを特徴とする通信装置。 A frame including a preamble and a payload is transmitted / received, and the payload represents a destination part for storing a value representing a destination device, a data part for storing data sent to the destination device, and a length of the data part One or more sub-payloads each including a main part including a data length part for storing a value and an error detection code part for storing an error detection code for detecting an error caused by a transmission error A communication device,
A frame reception unit that separates a received frame received from one device into a relay subpayload that is the subpayload whose destination is not the own device, and a subpayload that is destined for the own device whose destination is the subpayload of the own device; ,
Based on the error detection code in the sub-payload addressed to the own device, an error detection unit that performs error detection of the sub-payload addressed to the own device;
A relay subpayload storage unit for storing the relay subpayload;
A communication start notification unit for notifying a communication start timing for starting communication with other devices all at once;
If the transmission frame is not being transmitted when the communication start timing is notified, transmission of the transmission frame including the preamble and the relay subpayload to another device is started, and the transmission frame is being transmitted. When the relay subpayload is stored in the relay subpayload storage unit, the relay subpayload is added to the end of the transmission frame being transmitted without adding the preamble to the head of the relay subpayload. A frame transmission unit that continues transmission;
With
The frame transmission unit includes:
Whether it is being transmitted transmission frame, a transmission start time of the sub-payload being transmitted, the length of the sub-payload being transmitted, communication device you characterized by determining based on.
1つの装置から受信した受信フレームを、宛先が自装置ではない前記サブペイロードである中継サブペイロードと、宛先が自装置の前記サブペイロードである自装置宛てサブペイロードと、に分離するフレーム受信部と、
前記自装置宛てサブペイロード内の前記誤り検出符号に基づいて、前記自装置宛てサブペイロードの誤り検出を行う誤り検出部と、
前記中継サブペイロードを格納する中継サブペイロード格納部と、
他の装置と一斉に通信を開始する通信開始タイミングを通知する通信開始通知部と、
前記通信開始タイミングが通知されたときに送信フレームの送信中でない場合には、前記プリアンブルと、前記中継サブペイロードと、を含む送信フレームの他の装置への送信を開始し、送信フレームの送信中に前記中継サブペイロード格納部に前記中継サブペイロードが格納された場合には、前記中継サブペイロードの先頭に前記プリアンブルを付加しないで、前記中継サブペイロードを送信中の送信フレームの末尾に付加して送信を継続するフレーム送信部と、
を備え、
前記フレーム受信部は、
1つ又は複数の前記サブペイロードの各々の前記宛先部及び前記データ長部に基づいて、1つ又は複数の前記サブペイロードを、前記中継サブペイロードと、前記自装置宛てサブペイロードと、に分離する
ことを特徴とする通信装置。
A frame including a preamble and a payload is transmitted / received, and the payload represents a destination part for storing a value representing a destination device, a data part for storing data sent to the destination device, and a length of the data part One or more sub-payloads each including a main part including a data length part for storing a value and an error detection code part for storing an error detection code for detecting an error caused by a transmission error A communication device,
A frame reception unit that separates a received frame received from one device into a relay subpayload that is the subpayload whose destination is not the own device, and a subpayload that is destined for the own device whose destination is the subpayload of the own device; ,
Based on the error detection code in the sub-payload addressed to the own device, an error detection unit that performs error detection of the sub-payload addressed to the own device;
A relay subpayload storage unit for storing the relay subpayload;
A communication start notification unit for notifying a communication start timing for starting communication with other devices all at once
If the transmission frame is not being transmitted when the communication start timing is notified, transmission of the transmission frame including the preamble and the relay subpayload to another device is started, and the transmission frame is being transmitted. When the relay subpayload is stored in the relay subpayload storage unit, the relay subpayload is added to the end of the transmission frame being transmitted without adding the preamble to the head of the relay subpayload. A frame transmission unit that continues transmission;
With
The frame receiver
Based on the destination part and the data length part of each of the one or more sub-payloads, the one or more sub-payloads are separated into the relay sub-payload and the sub-payload addressed to the own device. communication device you wherein a.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2016205758A JP6293232B2 (en) | 2016-10-20 | 2016-10-20 | Communication device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2016205758A JP6293232B2 (en) | 2016-10-20 | 2016-10-20 | Communication device |
Related Parent Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2016514773A Division JP6030809B1 (en) | 2015-03-25 | 2015-03-25 | Communication apparatus and communication method |
Publications (3)
| Publication Number | Publication Date |
|---|---|
| JP2017011771A JP2017011771A (en) | 2017-01-12 |
| JP2017011771A5 JP2017011771A5 (en) | 2017-04-13 |
| JP6293232B2 true JP6293232B2 (en) | 2018-03-14 |
Family
ID=57761972
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2016205758A Active JP6293232B2 (en) | 2016-10-20 | 2016-10-20 | Communication device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6293232B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP7559635B2 (en) * | 2021-03-15 | 2024-10-02 | オムロン株式会社 | CONTROL SYSTEM, DRIVER, ELECTRIC MOTOR, CONTROL DEVICE, AND CONTROL METHOD |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5196893B2 (en) * | 2007-07-10 | 2013-05-15 | キヤノン株式会社 | COMMUNICATION SYSTEM, COMMUNICATION DEVICE, AND COMMUNICATION METHOD FOR COMMUNICATION SYSTEM |
| JP5488246B2 (en) * | 2010-06-21 | 2014-05-14 | 富士電機株式会社 | Network system and network system synchronization method |
-
2016
- 2016-10-20 JP JP2016205758A patent/JP6293232B2/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| JP2017011771A (en) | 2017-01-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106020094B (en) | Information processing unit, computer readable storage medium and information processing method | |
| JP5817785B2 (en) | Industrial device, controller, data transfer method and data transmission method | |
| CN103929371B (en) | Control device and control method | |
| US10735520B2 (en) | Control device, control system, control method, and non-transitory computer-readable storage medium | |
| JP6030809B1 (en) | Communication apparatus and communication method | |
| JP6293232B2 (en) | Communication device | |
| US8824333B2 (en) | Method and apparatus for full duplex serial shifting mode and switch mode data transmission | |
| KR101596540B1 (en) | Semiconductor integrated circuit device | |
| US8989203B2 (en) | Electronic device, communication control method, and recording medium | |
| JP2011119999A (en) | Communication apparatus and master device | |
| US8615192B2 (en) | Communication system, communication apparatus, control method of communication apparatus, and computer-readable storage medium | |
| JP6192847B1 (en) | COMMUNICATION SYSTEM, COMMUNICATION DEVICE, AND COMMUNICATION METHOD | |
| JP4896057B2 (en) | Transmission timing change type network device and system | |
| JP2004242031A (en) | Communications system | |
| JP6683101B2 (en) | Communications system | |
| EP3139545B1 (en) | Communication interface apparatus | |
| JP6520729B2 (en) | Communication device | |
| JP2010028743A (en) | Communication control system | |
| JPH10210108A (en) | Communication controlling method and device | |
| JP5322773B2 (en) | Communication system and communication control method | |
| JP2006319505A (en) | IEEE 1394 master-slave communication method, communication system, master device, slave device, and IC chip | |
| JP2012129771A (en) | Communication node, communication system and method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20170310 |
|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20170310 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20180116 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20180213 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 6293232 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |