Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6293232B2 - Communication device - Google Patents
[go: Go Back, main page]

JP6293232B2 - Communication device - Google Patents

Communication device Download PDF

Info

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
Application number
JP2016205758A
Other languages
Japanese (ja)
Other versions
JP2017011771A (en
JP2017011771A5 (en
Inventor
大介 長川
大介 長川
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2016205758A priority Critical patent/JP6293232B2/en
Publication of JP2017011771A publication Critical patent/JP2017011771A/en
Publication of JP2017011771A5 publication Critical patent/JP2017011771A5/ja
Application granted granted Critical
Publication of JP6293232B2 publication Critical patent/JP6293232B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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).

特開2009−21700号公報JP 2009-21700 A 特開2011−160018号公報JP 2011-160018 A 特開2008−135855号公報JP 2008-135855 A

特許文献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.

実施の形態1にかかる通信システムの構成を示す図The figure which shows the structure of the communication system concerning Embodiment 1. FIG. 実施の形態1にかかる通信システムで送受信されるフレームを示す図The figure which shows the flame | frame transmitted / received by the communication system concerning Embodiment 1. FIG. 実施の形態1にかかる通信システムで送受信されるサブペイロードを示す図The figure which shows the subpayload transmitted / received by the communication system concerning Embodiment 1. FIG. 実施の形態1にかかる制御装置の通信部の構成を示す図The figure which shows the structure of the communication part of the control apparatus concerning Embodiment 1. FIG. 実施の形態1にかかる制御装置の通信部の受信時の処理を示すフローチャートThe flowchart which shows the process at the time of reception of the communication part of the control apparatus concerning Embodiment 1. 実施の形態1にかかる制御装置の通信部の送信時の処理を示すフローチャートThe flowchart which shows the process at the time of transmission of the communication part of the control apparatus concerning Embodiment 1. FIG. 実施の形態1にかかる制御装置の通信部の第1送信処理を示すフローチャートThe flowchart which shows the 1st transmission process of the communication part of the control apparatus concerning Embodiment 1. FIG. 実施の形態1にかかる制御装置の通信部の第2送信処理を示すフローチャートThe flowchart which shows the 2nd transmission process of the communication part of the control apparatus concerning Embodiment 1. FIG. 実施の形態1にかかる制御装置の通信部の送信時の処理を示すフローチャートThe flowchart which shows the process at the time of transmission of the communication part of the control apparatus concerning Embodiment 1. FIG. 実施の形態1にかかる制御装置の通信部の第3送信処理を示すフローチャートThe flowchart which shows the 3rd transmission process of the communication part of the control apparatus concerning Embodiment 1. FIG. 実施の形態1にかかる制御装置の通信部の第4送信処理を示すフローチャート6 is a flowchart showing a fourth transmission process of the communication unit of the control device according to the first embodiment; 実施の形態1にかかる通信システムの通信動作を示すシーケンス図FIG. 3 is a sequence diagram showing a communication operation of the communication system according to the first exemplary embodiment. 実施の形態1にかかる通信システムの通信動作を示すシーケンス図FIG. 3 is a sequence diagram showing a communication operation of the communication system according to the first exemplary embodiment.

以下に、本発明の実施の形態にかかる通信装置及び通信方法を図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。   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 arrow 15 from the control device M side to the control device S3 and communication in the direction of arrow 16 from the control device S3 side to the control device M. And a period. In the first embodiment, the direction of arrow 15 may be referred to as the downstream direction, and the direction of arrow 16 may be referred to as the upstream direction.

制御装置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 downstream direction 15, the downstream direction 15 Start sending to all at once. On the other hand, the control devices M, S1, S2, and S3 start transmission in the upstream direction 16 at the same time when the transmission start timing comes in the period in which communication in the upstream direction 16 is performed.

制御装置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 motor 11.

制御装置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 motor 12.

制御装置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 motor 13.

図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 preamble 21 that is a bit string having a predetermined pattern indicating the start of the frame 20 and a payload 22 in which data is stored.

実施の形態1では、ペイロード22は、1つ又は複数のブロックで構成される。実施の形態1では、ペイロード22を構成する1つ又は複数のブロックの各々を、サブペイロード23と称する。   In the first embodiment, the payload 22 is composed of one or a plurality of blocks. In the first embodiment, each of one or more blocks constituting the payload 22 is referred to as a sub-payload 23.

図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 subpayload 23 includes a main part 24 and an error detection code part 25 in which an error detection code for detecting an error of the subpayload 23 caused by a transmission error is stored. The error detection code is exemplified by a checksum or a cyclic redundancy check (CRC). Note that the error detection code may be an error correction code for performing error correction in addition to error detection. The error correction code is exemplified by a cyclic code or a convolutional code.

主部24は、宛先部26と、データ長部27と、データ部28と、を含む。宛先部26は、サブペイロード23の宛先の装置を表す値を格納する。データ部28は、宛先の装置に送られるデータを格納する。データ長部27は、データ部28の長さを表す値を格納する。サブペイロード23は、ある1つの装置を宛先とする信号の単位である。   The main part 24 includes a destination part 26, a data length part 27, and a data part 28. The destination unit 26 stores a value representing the destination device of the subpayload 23. The data unit 28 stores data sent to the destination device. The data length part 27 stores a value representing the length of the data part 28. The sub-payload 23 is a signal unit destined for a certain device.

宛先部26、データ長部27及び誤り検出符号部25の各々は、固定長であり、データ部28は、可変長である。データ部28の長さは、データ長部27に格納されている。従って、通信部Ma,S1a,S2a及びS3aは、データ長部27を参照することにより、サブペイロード23の長さを得ることができる。   Each of the destination unit 26, the data length unit 27, and the error detection code unit 25 has a fixed length, and the data unit 28 has a variable length. The length of the data part 28 is stored in the data length part 27. Therefore, the communication units Ma, S1a, S2a, and S3a can obtain the length of the sub-payload 23 by referring to the data length unit 27.

再び図2を参照すると、ペイロード22は、1つ又は複数のサブペイロード23を含む。1つのペイロード22に含まれる1つ又は複数のサブペイロード23の各々の宛先は、同一であっても良いし、異なっていても良い。   Referring again to FIG. 2, the payload 22 includes one or more subpayloads 23. Each destination of one or a plurality of sub-payloads 23 included in one payload 22 may be the same or different.

図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 relay subpayload 23 that is a subpayload whose destination is not its own device and a subaddress that is destined for its own device whose destination is a subpayload of its own device. A payload 23 and a frame receiving unit 31 to be separated are included.

フレーム受信部31は、1つ又は複数の中継サブペイロード23を中継サブペイロード格納部33に格納する。   The frame receiving unit 31 stores one or more relay subpayloads 23 in the relay subpayload storage unit 33.

通信部Ma,S1a,S2a及びS3aは、自装置宛てサブペイロード23内の誤り検出符号に基づいて、自装置宛てサブペイロード23の誤り検出を行う誤り検出部32を含む。誤り検出部32は、誤り結果及び自装置宛てサブペイロード23内の主部24を、制御部Mb又は駆動部S1b,S2b若しくはS3bに送る。   The communication units Ma, S1a, S2a, and S3a include an error detection unit 32 that detects an error in the subpayload 23 addressed to the own device based on the error detection code in the subpayload 23 addressed to the own device. The error detection unit 32 sends the error result and the main unit 24 in the subpayload 23 addressed to the own device to the control unit Mb or the drive unit S1b, S2b or S3b.

通信部Ma,S1a,S2a及びS3aは、中継サブペイロード23を格納する中継サブペイロード格納部33を含む。   The communication units Ma, S1a, S2a, and S3a include a relay subpayload storage unit 33 that stores the relay subpayload 23.

通信部Ma,S1a,S2a及びS3aは、他の装置と一斉に通信を開始する通信開始タイミングを通知する通信開始通知部34を含む。   The communication units Ma, S1a, S2a, and S3a include a communication start notification unit 34 that notifies a communication start timing for starting communication with other devices all at once.

通信部Ma,S1a,S2a及びS3aは、プリアンブル21を格納するプリアンブル格納部35を含む。   The communication units Ma, S1a, S2a, and S3a include a preamble storage unit 35 that stores the preamble 21.

通信部Ma,S1a,S2a及びS3aは、自装置の制御部Mb又は駆動部S1b,S2b若しくはS3bが作成した主部24を格納する送信データ格納部36を含む。   The communication units Ma, S1a, S2a, and S3a include a transmission data storage unit 36 that stores the main unit 24 created by the control unit Mb or the drive unit S1b, S2b, or S3b of its own apparatus.

制御部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 main units 24 in the transmission data storage unit 36 in the order of destinations far from the own device. As a result, the frame transmission unit 38 can create the self device issue subpayload 23 issued by the self device addressed to another device in the order of destinations far from the self device only by reading the data from the top of the transmission data storage unit 36 in order. it can.

制御装置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 device issuance subpayload 23 destined for the control device S1, its own device issuance subpayload 23 destined for the control device S3, and its own device issuance subpayload 23 destined for the control device S2. Are sequentially transmitted to the control device S1, the control device S1 cannot immediately transmit the relay subpayload 23 addressed to the control device S3. That is, the control device S1 cannot start transmission of the relay subpayload 23 until it receives the relay subpayload 23 destined for the control device S3. Therefore, the end of communication of the control devices M, S1, S2, and S3 shifts backward, and the communication time becomes long.

一方、制御装置Mは、制御装置S3を宛先とする自装置発行サブペイロード23と、制御装置S2を宛先とする自装置発行サブペイロード23と、制御装置S1を宛先とする自装置発行サブペイロード23と、を順に結合したフレーム20を、制御装置S1へ送信する。   On the other hand, the control device M has its own device issuance subpayload 23 destined for the control device S3, its own device issuance subpayload 23 destined for the control device S2, and its own device issuance subpayload 23 destined for the control device S1. Are sequentially transmitted to the control device S1.

従って、制御装置S1は、制御装置Mが発行し制御装置S3を宛先とする中継サブペイロード23を受信したら、制御装置Mが発行し制御装置S3を宛先とする中継サブペイロード23の制御装置S2への送信を行うことができる。これにより、制御装置M,S1,S2及びS3の通信の終了を前倒しすることができ、通信時間を短縮することができる。   Therefore, when the control device S1 receives the relay subpayload 23 issued by the control device M and destined for the control device S3, the control device S1 issues the control device S2 to the relay subpayload 23 issued by the control device M and destined for the control device S3. Can be sent. Thereby, the end of the communication of the control devices M, S1, S2 and S3 can be advanced, and the communication time can be shortened.

通信部Ma,S1a,S2a及びS3aは、主部24に付加する誤り検出符号部25を生成する誤り検出符号生成部37を含む。誤り検出符号生成部37は、送信データ格納部36に主部24が格納されたら、格納された主部24を参照して、誤り検出符号部25を生成する。   The communication units Ma, S1a, S2a, and S3a include an error detection code generation unit 37 that generates an error detection code unit 25 to be added to the main unit 24. When the main part 24 is stored in the transmission data storage unit 36, the error detection code generation unit 37 refers to the stored main part 24 and generates the error detection code unit 25.

通信部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 preamble 21 and the relay subpayload 23 to other devices. When transmission starts, and when the relay subpayload 23 is stored in the relay subpayload storage unit 33 during transmission of the frame 20, the transmission is continued by adding the relay subpayload 23 to the end of the frame 20 being transmitted. A frame transmission unit 38 is included.

図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 payload 22 of the received frame 20 to the own device whose destination is the own device and the relay whose destination is not the own device. The sub-payload 23 is separated.

フレーム受信部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 destination unit 26 of each of the one or more subpayloads 23. Further, the frame receiving unit 31 can obtain the length of each of the one or more subpayloads 23 by referring to the data length part 27 of each of the one or more subpayloads 23.

従って、フレーム受信部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 subpayload 23 based on the destination unit 26 and the data length unit 27 of each of the one or more subpayloads 23. The sub-payload 23 can be separated. The frame receiver 31 sends the subpayload 23 addressed to itself to the error detector 32 and stores the relay subpayload 23 in the relay subpayload storage 33.

制御装置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 device issuance subpayload 23 destined for the control device S1, its own device issuance subpayload 23 destined for the control device S3, and its own device issuance subpayload 23 destined for the control device S2. Are sequentially transmitted to the control device S1, the control device S1 cannot immediately transmit the relay subpayload 23 addressed to the control device S3. That is, the control device S1 cannot start transmission of the relay subpayload 23 until it receives the relay subpayload 23 destined for the control device S3. Therefore, the end of communication of the control devices M, S1, S2, and S3 shifts backward, and the communication time becomes long.

一方、制御装置Mは、制御装置S3を宛先とする自装置発行サブペイロード23と、制御装置S2を宛先とする自装置発行サブペイロード23と、制御装置S1を宛先とする自装置発行サブペイロード23と、を順に結合したフレーム20を、制御装置S1へ送信する。   On the other hand, the control device M has its own device issuance subpayload 23 destined for the control device S3, its own device issuance subpayload 23 destined for the control device S2, and its own device issuance subpayload 23 destined for the control device S1. Are sequentially transmitted to the control device S1.

従って、制御装置S1は、制御装置Mが発行し制御装置S3を宛先とする中継サブペイロード23を受信したら、制御装置Mが発行し制御装置S3を宛先とする中継サブペイロード23の制御装置S2への送信を行うことができる。これにより、制御装置M,S1,S2及びS3の通信の終了を前倒しすることができ、通信時間を短縮することができる。   Therefore, when the control device S1 receives the relay subpayload 23 issued by the control device M and destined for the control device S3, the control device S1 issues the control device S2 to the relay subpayload 23 issued by the control device M and destined for the control device S3. Can be sent. Thereby, the end of the communication of the control devices M, S1, S2 and S3 can be advanced, and the communication time can be shortened.

誤り検出部32は、ステップS102において、自装置宛てサブペイロード23の誤り検出を行う。誤り検出部32は、誤り検出結果及び自装置宛てサブペイロード23内の主部24を、制御部Mb又は駆動部S1b、S2b若しくはS3bに送る。   In step S102, the error detection unit 32 performs error detection of the subpayload 23 addressed to the own device. The error detection unit 32 sends the error detection result and the main unit 24 in the subpayload 23 addressed to the own device to the control unit Mb or the drive unit S1b, S2b or S3b.

図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 unit 34, the frame transmitting unit 38 executes the process shown in FIG.

フレーム送信部38は、ステップS200において、フレーム20の送信中であるか否かを判定する。フレーム送信部38は、フレーム20の送信中ではないとステップS200で判定したら(No)、処理をステップS202に進め、フレーム20の送信中であると判定したら(Yes)、処理をステップS204に進める。   In step S200, the frame transmission unit 38 determines whether the frame 20 is being transmitted. If the frame transmission unit 38 determines in step S200 that the frame 20 is not being transmitted (No), the process proceeds to step S202. If it is determined that the frame 20 is being transmitted (Yes), the process proceeds to step S204. .

フレーム送信部38は、フレーム20の送信中であるか否かを、送信中のサブペイロード23の残りの長さに基づいて判定することとしても良い。フレーム送信部38は、主部24を送信データ格納部36から、誤り検出符号部25を誤り検出符号生成部37から、夫々読み取って、自装置発行サブペイロード23を作成する。フレーム送信部38が自装置発行サブペイロード23の作成に要する処理時間をT0とする。フレーム送信部38は、送信中のサブペイロード23の残りの長さを予め判っている通信速度で除した送信残り時間T1が処理時間T0より大きければ、フレーム20の送信中であると判定することができる。これにより、フレーム送信部38は、自装置発行サブペイロード23の作成に要する処理時間を考慮して、フレーム20の送信中であると判定することができる。   The frame transmission unit 38 may determine whether or not the frame 20 is being transmitted based on the remaining length of the subpayload 23 being transmitted. The frame transmission unit 38 reads the main unit 24 from the transmission data storage unit 36 and the error detection code unit 25 from the error detection code generation unit 37, and creates the self-issued sub-payload 23. The processing time required for the frame transmission unit 38 to create the self-issued sub-payload 23 is T0. The frame transmission unit 38 determines that the frame 20 is being transmitted if the remaining transmission time T1 obtained by dividing the remaining length of the subpayload 23 being transmitted by the previously known communication speed is greater than the processing time T0. Can do. Thereby, the frame transmission unit 38 can determine that the frame 20 is being transmitted in consideration of the processing time required for creating the self-issued sub-payload 23.

また、フレーム送信部38は、フレーム20の送信中であるか否かを、送信中のサブペイロード23の送信開始時刻と、送信中のサブペイロード23の長さと、に基づいて判定することとしても良い。フレーム送信部38は、送信中のサブペイロード23の長さを通信速度で除した送信時間T2を、送信中のサブペイロード23の送信開始時刻T3に加えた送信終了予定時刻T4が、現在時刻に処理時間T0を加えた時刻より後であれば、フレーム20の送信中であると判定することができる。これにより、フレーム送信部38は、自装置発行サブペイロード23の作成に要する処理時間を考慮して、フレーム20の送信中であると判定することができる。   The frame transmission unit 38 may determine whether or not the frame 20 is being transmitted based on the transmission start time of the subpayload 23 being transmitted and the length of the subpayload 23 being transmitted. good. The frame transmission unit 38 adds the transmission time T2 obtained by dividing the length of the subpayload 23 being transmitted by the communication speed to the transmission start time T4 of the subpayload 23 being transmitted, so that the scheduled transmission end time T4 becomes the current time. If it is after the time when the processing time T0 is added, it can be determined that the frame 20 is being transmitted. Thereby, the frame transmission unit 38 can determine that the frame 20 is being transmitted in consideration of the processing time required for creating the self-issued sub-payload 23.

フレーム送信部38は、ステップS202において、第1送信処理サブルーチンを実行する。   In step S202, the frame transmission unit 38 executes a first transmission processing subroutine.

図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 frame transmission unit 38 reads the preamble 21 from the preamble storage unit 35 in step S210.

フレーム送信部38は、ステップS212において、1つ又は複数の主部24を送信データ格納部36から、1つ又は複数の誤り検出符号部25を誤り検出符号生成部37から、自装置から遠い宛先の順に夫々読み出して、1つ又は複数の自装置発行サブペイロード23を自装置から遠い宛先の順に作成する。   In step S212, the frame transmission unit 38 sends one or more main units 24 from the transmission data storage unit 36, one or more error detection code units 25 from the error detection code generation unit 37, and a destination far from its own device. In this order, one or a plurality of own device issue subpayloads 23 are created in the order of destinations far from the own device.

なお、制御部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 main units 24 in the transmission data storage unit 36 in the order of destinations farther from the own device. As a result, the frame transmission unit 38 can create the self device issue subpayload 23 issued by the self device addressed to another device in the order of destinations far from the self device only by reading the data from the top of the transmission data storage unit 36 in order. it can.

制御装置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 device issuance subpayload 23 destined for the control device S1, its own device issuance subpayload 23 destined for the control device S3, and its own device issuance subpayload 23 destined for the control device S2. Are sequentially transmitted to the control device S1, the control device S1 cannot immediately transmit the relay subpayload 23 addressed to the control device S3. That is, the control device S1 cannot start transmission of the relay subpayload 23 until it receives the relay subpayload 23 destined for the control device S3. Therefore, the end of communication of the control devices M, S1, S2, and S3 shifts backward, and the communication time becomes long.

一方、制御装置Mは、制御装置S3を宛先とする自装置発行サブペイロード23と、制御装置S2を宛先とする自装置発行サブペイロード23と、制御装置S1を宛先とする自装置発行サブペイロード23と、を順に結合したフレーム20を、制御装置S1へ送信する。   On the other hand, the control device M has its own device issuance subpayload 23 destined for the control device S3, its own device issuance subpayload 23 destined for the control device S2, and its own device issuance subpayload 23 destined for the control device S1. Are sequentially transmitted to the control device S1.

従って、制御装置S1は、制御装置Mが発行し制御装置S3を宛先とする中継サブペイロード23を受信したら、制御装置Mが発行し制御装置S3を宛先とする中継サブペイロード23の制御装置S2への送信を行うことができる。これにより、制御装置M,S1,S2及びS3の通信の終了を前倒しすることができ、通信時間を短縮することができる。   Therefore, when the control device S1 receives the relay subpayload 23 issued by the control device M and destined for the control device S3, the control device S1 issues the control device S2 to the relay subpayload 23 issued by the control device M and destined for the control device S3. Can be sent. Thereby, the end of the communication of the control devices M, S1, S2 and S3 can be advanced, and the communication time can be shortened.

フレーム送信部38は、ステップS214において、プリアンブル21並びに1つ又は複数の自装置発行サブペイロード23を、自装置から遠い宛先の順に結合したフレーム20を送信する。   In step S214, the frame transmission unit 38 transmits the frame 20 in which the preamble 21 and one or more self-issued sub-payloads 23 are combined in the order of destinations farther from the self-device.

再び図6を参照すると、フレーム送信部38は、ステップS204において、第2送信処理サブルーチンを実行する。   Referring to FIG. 6 again, the frame transmission unit 38 executes the second transmission processing subroutine in step S204.

図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 frame transmission unit 38 sends one or more main units 24 from the transmission data storage unit 36, one or more error detection code units 25 from the error detection code generation unit 37, and a destination far from its own device. In this order, one or a plurality of own device issue subpayloads 23 are created in the order of destinations far from the own device.

フレーム送信部38は、ステップS222において、送信中のフレーム20の末尾に、1つ又は複数の自装置発行サブペイロード23を、自装置から遠い宛先の順に付加し、送信を継続する。これにより、送信中のフレーム20が長くなる。   In step S222, the frame transmission unit 38 adds one or more self-issued sub-payloads 23 to the end of the frame 20 being transmitted in the order of destinations far from the self-device, and continues transmission. This lengthens the frame 20 being transmitted.

図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 relay subpayload 23. The process at the time of transmission is shown.

フレーム送信部38は、通信開始通知部34から通信開始タイミングの通知を受けたときに、中継サブペイロード格納部33に1つ又は複数の中継サブペイロード23が格納されていたら、図9に示す処理を実行する。   When one or more relay subpayloads 23 are stored in the relay subpayload storage unit 33 when receiving the notification of the communication start timing from the communication start notification unit 34, the frame transmission unit 38 performs the processing illustrated in FIG. Execute.

フレーム送信部38は、ステップS230において、フレーム20の送信中であるか否かを判定する。フレーム送信部38は、フレーム20の送信中ではないとステップS230で判定したら(No)、処理をステップS232に進め、フレーム20の送信中であると判定したら(Yes)、処理をステップS234に進める。   In step S230, the frame transmission unit 38 determines whether the frame 20 is being transmitted. If the frame transmission unit 38 determines in step S230 that the frame 20 is not being transmitted (No), the process proceeds to step S232. If it is determined that the frame 20 is being transmitted (Yes), the process proceeds to step S234. .

フレーム送信部38は、ステップS232において、第3送信処理サブルーチンを実行する。   In step S232, the frame transmission unit 38 executes a third transmission processing subroutine.

図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 frame transmission unit 38 reads the preamble 21 from the preamble storage unit 35.

フレーム送信部38は、ステップS242において、1つ又は複数の中継サブペイロード23を中継サブペイロード格納部33から読み出す。   In step S <b> 242, the frame transmission unit 38 reads one or more relay subpayloads 23 from the relay subpayload storage unit 33.

フレーム送信部38は、ステップS244において、プリアンブル21並びに1つ又は複数の中継サブペイロード23を自装置から遠い宛先の順に結合したフレーム20を送信する。   In step S244, the frame transmission unit 38 transmits the frame 20 in which the preamble 21 and one or more relay subpayloads 23 are combined in the order of destinations far from the own device.

再び図9を参照すると、フレーム送信部38は、ステップS234において、第4送信処理サブルーチンを実行する。   Referring to FIG. 9 again, in step S234, the frame transmission unit 38 executes a fourth transmission processing subroutine.

図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 frame transmission unit 38 reads one or more relay subpayloads 23 from the relay subpayload storage unit 33.

フレーム送信部38は、ステップS252において、送信中のフレーム20の末尾に、1つ又は複数の中継サブペイロード23を自装置から遠い宛先の順に付加し、送信を継続する。これにより、送信中のフレーム20が長くなる。   In step S252, the frame transmission unit 38 adds one or more relay subpayloads 23 to the end of the frame 20 being transmitted in the order of destinations far from the own device, and continues transmission. This lengthens the frame 20 being transmitted.

図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 downstream direction 15 is performed.

制御装置M,S1,S2及びS3は、タイミングt0において、下流方向15への通信を一斉に開始する。   The control devices M, S1, S2, and S3 simultaneously start communication in the downstream direction 15 at timing t0.

制御装置Mは、タイミングt0において、制御装置S3を宛先とする自装置発行サブペイロード23と、制御装置S2を宛先とする自装置発行サブペイロード23と、制御装置S1を宛先とする自装置発行サブペイロード23と、を含むフレーム20の制御装置S1への送信を開始する。   At timing t0, the control device M has its own device issuance subpayload 23 destined for the control device S3, its own device issuance subpayload 23 destined for the control device S2, and its own device issuance subpay that is destined for the control device S1. Transmission of the frame 20 including the payload 23 to the control device S1 is started.

制御装置Mは、制御装置Mから遠い宛先の順、つまり制御装置S3、制御装置S2及び制御装置S1の順に、制御装置S3を宛先とする自装置発行サブペイロード23と、制御装置S2を宛先とする自装置発行サブペイロード23と、制御装置S1を宛先とする自装置発行サブペイロード23と、を結合したフレーム20を、制御装置S1へ送信する。   The control device M has its own device issue subpayload 23 destined for the control device S3 and the control device S2 as the destination in the order of destinations far from the control device M, that is, in the order of the control device S3, the control device S2, and the control device S1. The frame 20 obtained by combining the self-device-issued subpayload 23 and the self-device-issued subpayload 23 destined for the control device S1 is transmitted to the control device S1.

制御装置S1は、タイミングt0において、制御装置S2を宛先とする自装置発行サブペイロード23を含むフレーム20の制御装置S2への送信を開始する。   At timing t0, the control device S1 starts transmission of the frame 20 including the self device issued subpayload 23 addressed to the control device S2 to the control device S2.

制御装置S2は、タイミングt0において、制御装置S3を宛先とする自装置発行サブペイロード23を含むフレーム20の制御装置S3への送信を開始する。   At timing t0, the control device S2 starts transmission of the frame 20 including the self-issued sub-payload 23 addressed to the control device S3 to the control device S3.

制御装置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 subpayload 23 destined for the control device S2, but at this point, the control device M issues the relay subpayload 23 destined for the control device S3. Reception of the main part 24 is started. Therefore, the control device S1 adds the relay subpayload 23 issued by the control device M and destined for the control device S3 to the end of the frame 20 being transmitted, and lengthens the frame 20 being transmitted to continue transmission. To do.

制御装置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 relay subpayload 23 issued by the control device M and destined for the control device S3. At this point, the control device M issues the control device S2 as the destination. Reception of the main part 24 of the relay subpayload 23 is started. Therefore, the control device S1 adds the relay subpayload 23 issued by the control device M and destined for the control device S2 to the end of the frame 20 being transmitted, lengthens the frame 20 being transmitted, and continues transmission. To do.

制御装置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 subpayload 23 that is destined for the control device S3. At this point, the control device M issues a relay subpayload 23 that is issued by the control device M and that is destined for the control device S3. The reception of the main part 24 is not finished. Therefore, the control device S2 does not perform communication until the reception of the main part 24 of the relay subpayload 23 issued by the control device M and destined for the control device S3 is completed. The control device S2 may transmit a low-level or high-level signal to the control device S3 while not performing communication.

制御装置S2は、タイミングt4において、制御装置Mが発行し制御装置S3を宛先とする中継サブペイロード23の主部24の受信を開始する。従って、制御装置S2は、タイミングt5において、制御装置Mが発行し制御装置S3を宛先とする中継サブペイロード23を含むフレーム20の送信を開始する。   At timing t4, the control device S2 starts receiving the main part 24 of the relay subpayload 23 issued by the control device M and destined for the control device S3. Therefore, the control device S2 starts transmission of the frame 20 including the relay subpayload 23 issued by the control device M and destined for the control device S3 at the timing t5.

上記したように、実施の形態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 subpayload 23 destined for the control device S2, and the relay subpayload 23 issued by the control device M and destined for the control device S3. One frame 20 including the relay subpayload 23 issued by the control device M and destined for the control device S2 can be transmitted. That is, the control device S1 can reduce the number of frames 20 to be transmitted. That is, the control device S1 can reduce the number of preambles. Therefore, the control device S1 can shorten the communication time by the amount that the preamble is reduced.

また、実施の形態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 payload 23, a self device issue subpayload 23 destined for the control device S2 and a self device issue subpayload 23 destined for the control device S1 are combined. The following effects can be obtained.

仮に、制御装置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 device issuance subpayload 23 destined for the control device S1, its own device issuance subpayload 23 destined for the control device S3, and its own device issuance subpayload 23 destined for the control device S2. Are sequentially transmitted to the control device S1, the control device S1 cannot transmit the relay subpayload 23 destined for the control device S3 at the timing t1. That is, the control device S1 cannot start transmission of the relay subpayload 23 until it receives the relay subpayload 23 destined for the control device S3. Therefore, the end of communication of the control devices M, S1, S2, and S3 shifts backward, and the communication time becomes long.

一方、実施の形態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 device issuance subpayload 23 destined for the control device S3, its own device issuance subpayload 23 destined for the control device S2, and the control device S1 as its destination. The frame 20 in which the self-device-issued sub-payload 23 is combined in order is transmitted to the control device S1.

従って、実施の形態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 relay subpayload 23 issued by the control device M and destined for the control device S3 at the timing t1, the control device M issues the control device S3. The relay subpayload 23 as the destination can be transmitted to the control device S2. Thereby, the end of the communication of the control devices M, S1, S2 and S3 can be advanced, and the communication time can be shortened.

また仮に、制御装置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 device issuance subpayload 23 destined for the control device S2, its own device issuance subpayload 23 destined for the control device S3, and its own device issuance subpayload destined for the control device S1. 23, the control device S2 cannot transmit the relay subpayload 23 destined for the control device S3 at timing t4. That is, the control device S2 cannot start transmission of the relay subpayload 23 until it receives the relay subpayload 23 destined for the control device S3. Therefore, the end of communication of the control devices M, S1, S2, and S3 shifts backward, and the communication time becomes long.

一方、実施の形態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 device issuance subpayload 23 destined for the control device S3, its own device issuance subpayload 23 destined for the control device S2, and the control device S1 as its destination. The frame 20 in which the self-device-issued sub-payload 23 is combined in order is transmitted to the control device S1. The control device S1 includes a self-device-issued subpayload 23 destined for the control device S2, a relay subpayload 23 destined for the control device S3, and a relay subpayload 23 destined for the control device S2. The frame 20 is transmitted to the control device S2.

従って、実施の形態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 relay subpayload 23 issued by the control device M and destined for the control device S3 at timing t4, the control device M issues the control device S3. The relay subpayload 23 as the destination can be transmitted to the control device S3. Thereby, the end of the communication of the control devices M, S1, S2 and S3 can be advanced, and the communication time can be shortened.

また、実施の形態1によれば、制御装置M,S1,S2及びS3が、自装置発行サブペイロード23内に誤り検出符号部25を付加することで、次の効果が得られる。   Further, according to the first embodiment, the control device M, S1, S2, and S3 adds the error detection code unit 25 in its own device issuance subpayload 23, thereby obtaining the following effects.

制御装置S1及びS2は、自装置発行サブペイロード23を含むフレーム20の送信中に、他装置から中継サブペイロード23を受信したら、送信中のフレーム20の末尾に、中継サブペイロード23を付加する。つまり、フレーム20の内容及び長さは、動的に変化する。   When the control devices S1 and S2 receive the relay subpayload 23 from another device during transmission of the frame 20 including the self-issued subpayload 23, the control devices S1 and S2 add the relay subpayload 23 to the end of the frame 20 being transmitted. That is, the contents and length of the frame 20 change dynamically.

一般に、伝送エラーに起因する誤りを検出するために、フレーム作成時に、フレームチェックシーケンスがフレームの末尾に付加される。しかしながら、ある装置がフレームの末尾まで受信する前に、自局からのフレーム送信を完了してしまうので、受信フレームのフレームチェックシーケンスに誤りがあっても、それを通知することができない。   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 detection code unit 25 in the self-issued sub-payload 23. Referring to, it is possible to detect an error in the subpayload 23 addressed to the own apparatus.

フレーム送信部38は、フレーム20の送信中であるか否かを、送信中のサブペイロード23の残りの長さに基づいて判定することとしても良い。フレーム送信部38は、主部24を送信データ格納部36から、誤り検出符号部25を誤り検出符号生成部37から、夫々読み取って、自装置発行サブペイロード23を作成する。フレーム送信部38が自装置発行サブペイロード23の作成に要する処理時間をT0とする。フレーム送信部38は、送信中のサブペイロード23の残りの長さを予め判っている通信速度で除した送信残り時間T1が処理時間T0より大きければ、フレーム20の送信中であると判定することができる。これにより、フレーム送信部38は、自装置発行サブペイロード23の作成に要する処理時間を考慮して、フレーム20の送信中であると判定することができる。   The frame transmission unit 38 may determine whether or not the frame 20 is being transmitted based on the remaining length of the subpayload 23 being transmitted. The frame transmission unit 38 reads the main unit 24 from the transmission data storage unit 36 and the error detection code unit 25 from the error detection code generation unit 37, and creates the self-issued sub-payload 23. The processing time required for the frame transmission unit 38 to create the self-issued sub-payload 23 is T0. The frame transmission unit 38 determines that the frame 20 is being transmitted if the remaining transmission time T1 obtained by dividing the remaining length of the subpayload 23 being transmitted by the previously known communication speed is greater than the processing time T0. Can do. Thereby, the frame transmission unit 38 can determine that the frame 20 is being transmitted in consideration of the processing time required for creating the self-issued sub-payload 23.

また、フレーム送信部38は、フレーム20の送信中であるか否かを、送信中のサブペイロード23の送信開始時刻と、送信中のサブペイロード23の長さと、に基づいて判定することとしても良い。フレーム送信部38は、送信中のサブペイロード23の長さを通信速度で除した送信時間T2を、送信中のサブペイロード23の送信開始時刻T3に加えた送信終了予定時刻T4が、現在時刻に処理時間T0を加えた時刻より後であれば、フレーム20の送信中であると判定することができる。これにより、フレーム送信部38は、自装置発行サブペイロード23の作成に要する処理時間を考慮して、フレーム20の送信中であると判定することができる。   The frame transmission unit 38 may determine whether or not the frame 20 is being transmitted based on the transmission start time of the subpayload 23 being transmitted and the length of the subpayload 23 being transmitted. good. The frame transmission unit 38 adds the transmission time T2 obtained by dividing the length of the subpayload 23 being transmitted by the communication speed to the transmission start time T4 of the subpayload 23 being transmitted, so that the scheduled transmission end time T4 becomes the current time. If it is after the time when the processing time T0 is added, it can be determined that the frame 20 is being transmitted. Thereby, the frame transmission unit 38 can determine that the frame 20 is being transmitted in consideration of the processing time required for creating the self-issued sub-payload 23.

また、実施の形態1によれば、フレーム送信部38は、フレーム20の送信中か否かを、送信中のサブペイロード23の残りの長さ又は送信中のサブペイロード23の送信開始時刻と送信中のサブペイロード23の長さと、に基づいて判定することができる。   Further, according to the first embodiment, the frame transmission unit 38 determines whether the frame 20 is being transmitted, the remaining length of the subpayload 23 being transmitted, or the transmission start time of the subpayload 23 being transmitted and the transmission It can be determined based on the length of the sub-payload 23 in the middle.

フレーム送信部38は、送信中のサブペイロード23の残りの長さを通信速度で除した送信残り時間T1が自装置発行サブペイロード23の作成処理時間T0より大きければ、フレーム20の送信中であると判定することができる。   The frame transmission unit 38 is transmitting the frame 20 if the transmission remaining time T1 obtained by dividing the remaining length of the subpayload 23 being transmitted by the communication speed is larger than the creation processing time T0 of the self-issued subpayload 23. Can be determined.

また、フレーム送信部38は、送信中のサブペイロード23の長さを通信速度で除した送信時間T2を、送信中のサブペイロード23の送信開始時刻T3に加えた送信終了予定時刻T4が、現在時刻に処理時間T0を加えた時刻より後であれば、フレーム20の送信中であると判定することができる。   The frame transmission unit 38 adds the transmission time T2 obtained by dividing the length of the subpayload 23 being transmitted by the communication speed to the transmission start time T3 of the subpayload 23 being transmitted, If it is after the time obtained by adding the processing time T0 to the time, it can be determined that the frame 20 is being transmitted.

これにより、フレーム送信部38は、自装置発行サブペイロード23の作成処理時間を考慮して、サブペイロード23を送信中のフレーム20の末尾に付加するか否かを好適に判定することができる。   Thereby, the frame transmission unit 38 can preferably determine whether or not to add the subpayload 23 to the end of the frame 20 being transmitted in consideration of the processing time of the self-issued subpayload 23.

図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 upstream direction 16 is performed.

制御装置S1,S2及びS3は、タイミングt10において、上流方向16への通信を一斉に開始する。   The control devices S1, S2, and S3 simultaneously start communication in the upstream direction 16 at timing t10.

制御装置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 subpayload 23 addressed to the control device M to the control device M.

制御装置S2は、タイミングt10において、制御装置Mを宛先とする自装置発行サブペイロード23を含むフレーム20の制御装置S1への送信を開始する。   At timing t10, the control device S2 starts transmission of the frame 20 including the own device issued subpayload 23 addressed to the control device M to the control device S1.

制御装置S3は、タイミングt10において、制御装置Mを宛先とする自装置発行サブペイロード23を含むフレーム20の制御装置S2への送信を開始する。   At timing t10, the control device S3 starts transmission of the frame 20 including the own device issued subpayload 23 addressed to the control device M to the control device S2.

制御装置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 subpayload 23 destined for the control device M. At this point, the control device S2 issues the relay subpayload 23 destined for the control device M. Reception of the main part 24 is started. Therefore, the control device S1 adds the relay subpayload 23 issued by the control device S2 and destined for the control device M to the end of the frame 20 being transmitted, and lengthens the frame 20 being transmitted to continue transmission. To do.

制御装置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 subpayload 23 destined for the control device M to the control device S1.

制御装置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 subpayload 23 destined for the control device M and the relay subpayload 23 issued by the control device S2 and destined for the control device M. End transmission to M.

制御装置S2は、タイミングt14において、制御装置S3が発行し制御装置Mを宛先とする中継サブペイロード23の受信を開始する。そして、制御装置S2は、タイミングt15において、制御装置S3が発行し制御装置Mを宛先とする中継サブペイロード23を含む新たなフレーム20の制御装置S1への送信を開始する。   At timing t14, the control device S2 starts receiving the relay subpayload 23 issued by the control device S3 and destined for the control device M. Then, at timing t15, the control device S2 starts transmission of a new frame 20 including the relay subpayload 23 issued by the control device S3 and destined for the control device M to the control device S1.

制御装置S1は、タイミングt16において、制御装置S3が発行し制御装置Mを宛先とする中継サブペイロード23の受信を開始する。そして、制御装置S1は、タイミングt17において、制御装置S3が発行し制御装置Mを宛先とする中継サブペイロード23を含む新たなフレーム20の制御装置Mへの送信を開始する。   At timing t16, the control device S1 starts receiving the relay subpayload 23 issued by the control device S3 and destined for the control device M. Then, at timing t17, the control device S1 starts transmitting a new frame 20 including the relay subpayload 23 issued by the control device S3 and destined for the control device M to the control device M.

上記したように、実施の形態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 subpayload 23 destined for the control device M, the relay subpayload 23 issued by the control device S2 and destined for the control device M, and the control device S3 issues and controls it. If the relay sub-payload 23 destined for the device M is used as one frame 20, the length of the frame 20 may exceed the maximum frame length.

一方、実施の形態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 sub-payload 23 addressed to the control device M. When the relay subpayload 23 is received, the relay subpayload 23 issued by the control device S2 and destined for the control device M is added to the end of the frame 20 being transmitted, the frame 20 being transmitted is lengthened, and transmission is performed. continue.

他方、制御装置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 relay subpayload 23 issued by the control device S2 and destined for the control device M, while the frame 20 includes the relay subpayload 23 issued by the control device S3 and destined for the control device M. If the frame length of the frame 20 being transmitted exceeds the maximum frame length even if the frame is being transmitted, the relay subpayload issued by the control device S3 and destined for the control device M is not performed. A new frame 20 including 23 is transmitted to the control apparatus M.

従って、実施の形態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 device issuance subpayload 23 whose destination is the control device M. By adding the sub-payload 23, the communication time for the preamble is shortened, and the relay sub-payload 23 issued by the control device S3 and destined for the control device M is used as a new frame 20, which exceeds the maximum frame length. It is possible to achieve coexistence with the suppression of the occurrence.

また、実施の形態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つの装置から受信した受信フレームを、宛先が自装置ではない前記サブペイロードである中継サブペイロードと、宛先が自装置の前記サブペイロードである自装置宛てサブペイロードと、に分離するフレーム受信部と、
前記自装置宛てサブペイロード内の前記誤り検出符号に基づいて、前記自装置宛てサブペイロードの誤り検出を行う誤り検出部と、
前記中継サブペイロードを格納する中継サブペイロード格納部と、
他の装置と一斉に通信を開始する通信開始タイミングを通知する通信開始通知部と、
前記通信開始タイミングが通知されたときに送信フレームの送信中でない場合には、前記プリアンブルと、前記中継サブペイロードと、を含む送信フレームの他の装置への送信を開始し、送信フレームの送信中に前記中継サブペイロード格納部に前記中継サブペイロードが格納された場合には、前記中継サブペイロードの先頭に前記プリアンブルを付加しないで、前記中継サブペイロードを送信中の送信フレームの末尾に付加して送信を継続するフレーム送信部と、
自装置が作成した前記主部を格納する送信データ格納部と、
前記主部に付加する前記誤り検出符号を生成する誤り検出符号生成部と、
を備え、
前記フレーム送信部は、
前記通信開始タイミングが通知されたときに送信フレームの送信中でない場合には、前記プリアンブルと、前記主部及び前記誤り検出符号部を含む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つ又は複数のサブペイロードを有する、通信装置であって、
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つ又は複数のサブペイロードを有する、通信装置であって、
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つ又は複数の前記サブペイロードの各々の前記宛先部及び前記データ長部に基づいて、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.
JP2016205758A 2016-10-20 2016-10-20 Communication device Active JP6293232B2 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

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