JP2006345171A - Data transmitting method and data transmission system - Google Patents

Data transmitting method and data transmission system Download PDF

Info

Publication number
JP2006345171A
JP2006345171A JP2005168261A JP2005168261A JP2006345171A JP 2006345171 A JP2006345171 A JP 2006345171A JP 2005168261 A JP2005168261 A JP 2005168261A JP 2005168261 A JP2005168261 A JP 2005168261A JP 2006345171 A JP2006345171 A JP 2006345171A
Authority
JP
Japan
Prior art keywords
message
transmission
priority
storage unit
messages
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2005168261A
Other languages
Japanese (ja)
Inventor
Shoji Kato
昌二 加藤
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.)
Yaskawa Electric Corp
Original Assignee
Yaskawa 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 Yaskawa Electric Corp filed Critical Yaskawa Electric Corp
Priority to JP2005168261A priority Critical patent/JP2006345171A/en
Publication of JP2006345171A publication Critical patent/JP2006345171A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)
  • Communication Control (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a data transmission system which reduces delay of transmission processing from an arbitrary program to a transmission destination device when messages are transmitted from a plurality of programs to the transmission destination device. <P>SOLUTION: In the data transmission system, a main station M is equipped with: a message storage section 11 which stores different message data 21 from the plurality of programs incorporated in communication software performing communication with a slave station S, a message priority level judgement processing section 12 which compares priority levels of all messages stored in the message storage section 11; a transmission processing section 14 which transmits the messages from the message storage section 11 to the transmission destination device in the order of emergency levels of the priority levels; and a timer counting section 13 which counts elapsed times by messages of low priority levels after transmission from the plurality of programs when the messages of low priority levels are stored in the message storage section 11, and outputs a message whose elapsed time reaches a defined value preferentially from messages of high priority levels, to the transmission processing section 14. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、伝送ラインを介して主局と従局との間でデータ伝送を行うおよびデータ伝送方法およびデータ伝送システムに関し、1度に単一伝文しか受信処理できない従局となる送信先デバイスに対して、主局の通信用ソフトウェア内に装備され非同期で動作する複数のプログラムから同時に伝文を送信する方法に関する。   The present invention relates to a data transmission method and a data transmission system that performs data transmission between a master station and a slave station via a transmission line, and relates to a destination device that is a slave station that can receive and process only a single message at a time. The present invention also relates to a method for transmitting messages simultaneously from a plurality of programs that are installed in communication software of a main station and operate asynchronously.

従来、伝送ラインを介して主局と従局との間でデータ伝送を行うデータ伝送システムは図2のようになっている。図2は一般的な主局と従局との間でデータ伝送を行うデータ伝送システムの構成図である。
このようなデータ伝送システムは、1局のマスタ機器(主局)と、最大30局程度のスレーブ機器(従局)の間で例えば、17バイト/32バイトのデータを、常時250μs〜8ms程度の通信周期で、サイクリックに双方向の通信を行うことができるようになっている。上記のマスタ機器は、パソコンまたはコンピュータに装備して通信を実行するソフトウェア(通信用ソフトウェア)を組み込んだもので構成され、また、スレーブ機器は、サーボドライバ、入出力モジュールあるいはカウンタモジュールなどで構成される。
このような構成において、主局の通信用ソフトウェア内部の複数のプログラムから伝文が非同期に従局となる送信先デバイスに送信されるため、例えば、前記複数のプログラム以外の他のプログラムから伝文送信があった場合、送信タイミングや送信先デバイスの受信処理により、任意の伝文が送信先デバイスに送信されるまでに遅延が発生する場合がある。
また、ある特定のプログラムの伝文の応答を優先的に送信先デバイスから受け取りたい場合、該当プログラムが伝文を送信するタイミングを図って、他のプログラムからの伝文の送信を止めるように同期させることが一般的である(例えば、特許文献1を参照)。
特開平5−316124号公報(第3頁〜第4頁、第4図)
Conventionally, a data transmission system that performs data transmission between a master station and a slave station via a transmission line is as shown in FIG. FIG. 2 is a configuration diagram of a data transmission system that performs data transmission between a general master station and slave stations.
In such a data transmission system, for example, 17 bytes / 32 bytes of data is always communicated between about 250 μs to 8 ms between one master device (master station) and up to about 30 slave devices (slave stations). Cyclic bidirectional communication can be performed in a cycle. The above master device is configured with software (communication software) that is installed in a personal computer or computer and executes communication, and the slave device is configured with a servo driver, input / output module, counter module, or the like. The
In such a configuration, since a message is asynchronously transmitted from a plurality of programs inside the communication software of the main station to a destination device that becomes an asynchronous slave, for example, a message is transmitted from a program other than the plurality of programs. If there is, there may be a delay until an arbitrary message is transmitted to the destination device depending on the transmission timing and the reception process of the destination device.
In addition, when you want to receive a response from a specific program message preferentially from the destination device, the corresponding program will synchronize to stop sending messages from other programs at the timing of sending the message. (For example, refer to Patent Document 1).
JP-A-5-316124 (pages 3 to 4 and FIG. 4)

上記の方法では、複数のプログラムが非同期に伝送先デバイスへ伝文を送信するようなシステムでは、プログラムが送信先デバイスへの送信時、排他処理を行い送信データが送信途中に他のプログラムの送信データによって上書きされないようにし、送信データの送信処理完了後、他のプログラムの送信処理が実行される。送信先デバイスは伝文を受け取ると受信処理が完了するまで伝文が送られてこないようにするために、プログラムが送信を行おうとしてもBUSYのステータスを返す。それを受けたプログラムは一定時間待って再び送信を行うようになっている。このようなシステムの例をわかりやすく説明するために、以下に述べる。
例えば、今、4つのプログラム(プログラムA、プログラムB、プログラムC、プログラムD)が送信先デバイスに非同期に処理時間T1の伝文送信処理を行う場合を考える。このような場合、あるタイミングでプログラムAが送信先デバイスへ送信処理を開始した直後にプログラムB、プログラムC、プログラムDが送信処理を開始した時、プログラムB、C、Dは排他処理によりプログラムAの送信処理が終わるまで送信処理を行えないが、プログラムAの送信処理完了直後、プログラムBが送信処理を開始しても送信先デバイスの処理時間T2の受信処理が完了していないためプログラムBに対してBUSYを返す、このためプログラムBは一定時間の待機を行い伝文の再送を行う処理に入るが、プログラムBが待機のための排他処理を終えるとプログラムCが送信処理を開始する、この時には送信先デバイスの受信処理は完了しているため、送信先デバイスはプログラムCの伝文を受け取ることができるため再び受信処理を始める、この時にプログラムBの待機時間が終わり送信処理を開始するが、送信先デバイスは受信処理中のため再びBUSYをプログラムBに返し、プログラムBは再送のための待機状態になり、プログラムDが送信処理を開始し、プログラムDの伝文が送信先デバイスで処理されるという状況が発生する可能性があり、プログラムDの伝文が処理された後、プログラムBプログラムBの伝文が処理されたとしても、プログラムBが伝文を送信しようとしたタイミングからプログラムC、Dの送信処理時間T1+T1、送信先デバイスのプログラムC、Dから送信された伝文の処理時間T2+T2、伝文再送時の待機時間等のオーバーヘッド分αが最低でもかかってしまい、プログラムBの処理に大幅な遅延を発生させる原因となる、更にプログラムBの再送タイミング直前にプログラムC、Dの送信処理が行われるとそれ以上の遅延が発生してしまう。それを解決するためにそれぞれ独立したプログラムで共通の同期システムの組み込みを行う必要があるが、プログラムが複雑化するという問題があった。これを回避するためには伝文送信処理において独立したプログラム間で同期をとる必要があった。
本発明はこのような課題に鑑みてなされたものであり、非同期で動作する複数プログラムから送信先デバイスへ伝文を送信する場合に、各プログラムからの送信処理および送信先デバイスの受信処理が重なっても、任意のプログラムから送信先デバイスへの送信処理の遅延を減少させることができるデータ伝送方法およびデータ伝送システムを提供することを目的とする。
In the above method, in a system in which multiple programs asynchronously send messages to the destination device, when the program sends to the destination device, exclusive processing is performed and the transmission data is sent while another program is being sent. The data is not overwritten, and the transmission process of another program is executed after the transmission process of the transmission data is completed. When the transmission destination device receives the message, it returns a BUSY status even if the program attempts to transmit the message so that the message is not sent until the reception process is completed. The program that receives it waits for a certain period of time and transmits again. In order to explain an example of such a system in an easy-to-understand manner, the following is described.
For example, consider a case where four programs (program A, program B, program C, and program D) perform message transmission processing for processing time T1 asynchronously to a transmission destination device. In such a case, when the program B, the program C, and the program D start the transmission process immediately after the program A starts the transmission process to the transmission destination device at a certain timing, the programs B, C, and D are controlled by the exclusive process. However, immediately after the completion of the transmission process of program A, even if program B starts the transmission process, the reception process at the processing time T2 of the transmission destination device is not completed. On the other hand, BUSY is returned. For this reason, the program B enters a process of waiting for a fixed time and resending the message, but when the program B finishes the exclusive process for waiting, the program C starts the transmission process. Since the receiving process of the destination device is sometimes completed, the destination device can receive the program C message. At this time, the standby time of program B ends and transmission processing starts. However, because the transmission destination device is in reception processing, it returns BUSY to program B again, and program B enters a standby state for retransmission. Then, there is a possibility that the program D starts the transmission process and the message of the program D is processed by the destination device. After the message of the program D is processed, the message of the program B and the program B is transmitted. Even if the sentence is processed, the transmission time T1 + T1 of the programs C and D from the timing when the program B tries to transmit the message, the processing time T2 + T2 of the message transmitted from the programs C and D of the destination device, The overhead α such as the waiting time for retransmitting the sentence is at least taken, causing a significant delay in the processing of the program B Further, if the transmission processing of the programs C and D is performed immediately before the retransmission timing of the program B, a further delay occurs. In order to solve this problem, it is necessary to incorporate a common synchronization system with independent programs, but there is a problem that the program becomes complicated. In order to avoid this, it was necessary to synchronize independent programs in the message transmission process.
The present invention has been made in view of such a problem. When a message is transmitted from a plurality of programs operating asynchronously to a destination device, the transmission processing from each program and the reception processing of the destination device overlap. However, it is an object of the present invention to provide a data transmission method and a data transmission system that can reduce a delay in transmission processing from an arbitrary program to a destination device.

上記問題を解決するため、本発明は次のような構成にしたものである。
請求項1の発明は、主局と従局との間で伝送ラインを介してデータ伝送を行うデータ伝送方法において、前記主局が前記従局との間で通信を実行する通信用ソフトウェアに組み込まれた複数のプログラムから異なる伝文データを伝文格納部にて格納し、前記伝文格納部に格納されている全伝文の優先順位を伝文優先順位判定処理部にて比較し、前記伝文格納部から優先順位の緊急度に応じて緊急度の高い伝文から順に送信処理部を介して前記従局側の送信先デバイスへ送信し、前記伝文格納部にて優先順位低の伝文が格納された時に、該優先順位低の伝文に対して伝文毎に複数のプログラムから送信された後の経過時間を規定のタイマ値とするタイマカウント部を用いて、該経過時間をカウントして規定値に達した伝文を前記伝文格納部に格納されている優先順位高の伝文より先に前記送信処理部に出力するようにしたものとなっている。
また、請求項2の発明は、主局と従局との間で伝送ラインを介してデータ伝送を行うデータ伝送システムにおいて、前記主局は、前記従局との間で通信を実行する通信用ソフトウェアに組み込まれた複数のプログラムから異なる伝文データを格納するための伝文格納部と、前記伝文格納部に格納されている全伝文の優先順位を比較するための伝文優先順位判定処理部と、前記伝文格納部から優先順位の緊急度に応じて緊急度の高い伝文から順に前記従局側の送信先デバイスへ送信するための送信処理部と、前記伝文格納部にて優先順位低の伝文が格納された時に、該優先順位低の伝文に対して伝文毎に前記複数のプログラムから送信された後の経過時間を規定のタイマ値として設定し、該経過時間をカウントして規定値に達した伝文を前記伝文格納部に格納されている優先順位高の伝文より先に前記送信処理部に出力するタイマカウント部とを備えたものである。
In order to solve the above problem, the present invention is configured as follows.
The invention according to claim 1 is a data transmission method for performing data transmission between a master station and a slave station via a transmission line, and the master station is incorporated in communication software for executing communication with the slave station. Different message data from a plurality of programs is stored in the message storage unit, the priority of all messages stored in the message storage unit is compared in the message priority determination processing unit, and the message According to the priority urgency level from the storage unit, the messages with the highest urgency level are transmitted in order from the slave unit to the destination device via the transmission processing unit. When stored, the elapsed time is counted using a timer count unit that uses the elapsed time after being transmitted from a plurality of programs for each message for the lower priority message as a specified timer value. The message that reaches the specified value is stored in the message storage section. And it is obtained by so as to output to the transmission processing section earlier than Denbun with priority high that is.
According to a second aspect of the present invention, there is provided a data transmission system for performing data transmission between a master station and a slave station via a transmission line, wherein the master station includes communication software for executing communication with the slave station. A message storage unit for storing different message data from a plurality of incorporated programs, and a message priority determination processing unit for comparing the priorities of all messages stored in the message storage unit According to the urgency of priority from the message storage unit, a transmission processing unit for transmitting to the destination device on the slave station in order from the message with the highest urgency, and the priority in the message storage unit When a low message is stored, the elapsed time after being transmitted from the multiple programs for each message for the low priority message is set as a specified timer value, and the elapsed time is counted. The message that reached the specified value It is obtained by a timer count unit for outputting ahead Denbun priority high stored in the storage unit to the transmission processing section.

請求項1、2記載の本発明によれば、非同期に動作する複数プログラムから送信先デバイスに対して伝文を送信する場合に、各プログラムからの送信処理および送信先デバイスの受信処理が重なったとしても、送信伝文に優先順位を付加し、伝文送信タイマで送信処理を管理することにより、伝文送信処理を行うプログラムで送信処理タイミングを考慮することなく、任意のプログラムから送信先デバイスへの送信処理の遅延を減少させることができるデータ伝送方法およびデータ伝送システムを得ることができる。   According to the first and second aspects of the present invention, when a message is transmitted to a destination device from a plurality of programs operating asynchronously, the transmission processing from each program and the reception processing of the destination device overlap. Even if the priority is given to the transmission message and the transmission process is managed by the message transmission timer, the program that performs the message transmission process can be started from any program without considering the transmission process timing. It is possible to obtain a data transmission method and a data transmission system that can reduce the delay of transmission processing to the network.

以下、本発明の実施の形態について図を参照して説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図1は本発明の実施例を示すデータ伝送システムの構成図である。
図1において、1は伝文送信処理部、11は伝文格納部、12は伝文優先順位判定処理部、13はタイマカウント処理部、14は送信処理部、2は送信データ、21は送信伝文、22は優先順位である。
本発明の特徴は以下のとおりである。
すなわち、主局Mと従局Sとの間で伝送ラインを介してデータ伝送を行うデータ伝送システムにおいて、主局Mは、従局Sとの間で通信を実行する通信用ソフトウェアに組み込まれた複数のプログラムから異なる伝文データ21を格納するための伝文格納部11と、伝文格納部11に格納されている全伝文の優先順位を比較するための伝文優先順位判定処理部12と、伝文格納部11から優先順位の緊急度に応じて緊急度の高い伝文から順に従局側Sの送信先デバイスへ送信するための送信処理部14と、伝文格納部11にて優先順位低の伝文が格納された時に、該優先順位低の伝文に対して伝文毎に複数のプログラムから送信された後の経過時間を規定のタイマ値として設定し、経過時間をカウントして規定値に達した伝文を伝文格納部11に格納されている優先順位高の伝文より先に送信処理部14に出力するタイマカウント部13と、を備えたものとなっている。
FIG. 1 is a configuration diagram of a data transmission system showing an embodiment of the present invention.
In FIG. 1, 1 is a message transmission processing unit, 11 is a message storage unit, 12 is a message priority determination processing unit, 13 is a timer count processing unit, 14 is a transmission processing unit, 2 is transmission data, and 21 is transmission. Message 22 is a priority.
The features of the present invention are as follows.
That is, in a data transmission system that performs data transmission between the master station M and the slave station S via a transmission line, the master station M includes a plurality of pieces of software installed in communication software that performs communication with the slave station S. A message storage unit 11 for storing different message data 21 from the program, a message priority determination processing unit 12 for comparing the priorities of all messages stored in the message storage unit 11, The transmission processing unit 14 for transmitting messages from the message storage unit 11 to the transmission destination device on the slave station S in order from the message with the highest urgency according to the urgency level of the priority order. When the message is stored, the elapsed time after being transmitted from multiple programs for each message for the low priority message is set as the specified timer value, and the elapsed time is counted and specified The message storage unit 1 It has become those with a timer count unit 13 for outputting previously to the transmission processing unit 14 from Denbun priority high stored in.

次に動作について、図1に基づいて説明する。
プログラム中の伝文送信処理において、送信データ2を処理すると共通の伝文送信処理部1である伝文格納部11に伝文データが格納される。
この時、伝文格納部11に他の伝文データが格納されていない場合は、即座に送信処理部14から図示しない送信先デバイスへ伝文が送信されるが、複数プログラムから送信先デバイス(不図示)に対する送信処理が伝文伝送処理時間T1と送信先デバイス(不図示)の受信処理時間T2の合計時間より短い時間内で行われた場合、最初に伝送処理に入った伝文以外は伝文格納部11に蓄積される。
最初の伝文の処理が送信処理部14にて終了すると、伝文優先順位判定処理部12で伝文格納部11に格納されている全伝文の優先順位を比較する。この時、優先順位が緊急の伝文がある場合には、優先順位緊急の伝文が送信処理部14で送信先デバイス(不図示)へ送信される、優先順位緊急の伝文が存在しない場合には優先順位高の伝文が送信処理部14で送信先デバイス(不図示)へ送信される。優先順位緊急、優先順位高の伝文が存在しない場合には優先順位低の伝文が送信処理部14で送信先デバイス(不図示)へ送信される。この仕組みにより、処理を優先させたい伝文にはより高位の優先順位をつけることで、任意の伝文処理時間の遅延を防ぐことができる。
送信処理部14では、送信先デバイス(不図示)へ伝文を送信時に送信先デバイス(不図示)の受信処理が終了していない場合は、BUSYを受け取るが、送信先デバイス(不図示)へ伝文が送信可能状態になるまで、送信処理を連続して繰り返す。タイマカウント処理部13は、優先順位低の伝文が格納された時に優先順位低の伝文毎に複数のプログラムから送信された後の経過時間をカウントする。該経過時間のカウント数が規定のタイマ値になった伝文は伝文格納部11に格納されている優先順位高の伝文より先に送信処理部14で送信先デバイス(不図示)へ送信される。この仕組みにより、優先順位低の伝文が伝文格納部11に格納されている状態でプログラムから優先順位高の伝文ばかりが送信されるような場合でも、一定時間がたてば、必ず優先順位低の伝文が送信先デバイス(不図示)へ送信されるため、伝文の優先順位と送信タイミングを複雑に制御しなくても大幅な遅延が発生することもなくすべての伝文の送信処理を行える。また、優先順位が同一のものが伝文格納部11に複数格納されている場合は、格納された順番に送信処理部14で送信先デバイス(不図示)へ送信される。
Next, the operation will be described with reference to FIG.
When the transmission data 2 is processed in the message transmission process in the program, the message data is stored in the message storage unit 11 which is the common message transmission processing unit 1.
At this time, if no other message data is stored in the message storage unit 11, a message is immediately transmitted from the transmission processing unit 14 to a destination device (not shown). When the transmission process for the message transmission processing time T1 and the reception processing time T2 of the destination device (not shown) is shorter than the total time of the transmission processing, Accumulated in the message storage unit 11.
When the processing of the first message ends in the transmission processing unit 14, the message priority determination processing unit 12 compares the priorities of all messages stored in the message storage unit 11. At this time, when there is an urgent message with priority, there is no urgent message with priority urgent message transmitted to the destination device (not shown) by the transmission processing unit 14. Is transmitted to the transmission destination device (not shown) by the transmission processing unit 14. When there is no message with priority priority or high priority, a message with low priority is transmitted by the transmission processing unit 14 to a destination device (not shown). With this mechanism, it is possible to prevent a delay in any message processing time by giving a higher priority to a message for which processing is to be prioritized.
The transmission processing unit 14 receives BUSY when reception processing of the transmission destination device (not shown) is not completed at the time of transmission of a message to the transmission destination device (not shown), but to the transmission destination device (not shown). The transmission process is repeated continuously until the message is ready for transmission. The timer count processing unit 13 counts the elapsed time after being transmitted from a plurality of programs for each low priority message when a low priority message is stored. A message whose elapsed time count reaches a specified timer value is transmitted to a transmission destination device (not shown) by the transmission processing unit 14 prior to a message of high priority stored in the message storage unit 11. Is done. With this mechanism, even if only a high priority message is transmitted from the program in a state where a low priority message is stored in the message storage unit 11, the priority is always given after a certain period of time. Since low-order messages are sent to the destination device (not shown), all messages can be sent without significant delays without complicated control of message priority and transmission timing. Can process. When a plurality of messages having the same priority order are stored in the message storage unit 11, the transmission processing unit 14 transmits them to the transmission destination device (not shown) in the order of storage.

本発明に実施例は、複数プログラムから伝送先デバイスへ送信された伝文と該当伝文の優先順位を一時的に格納し、送信先デバイスへ送信を行うタイミングで格納伝文の優先順位を比較し、高い優先順位で先に格納された伝文から送信先デバイスへ送信させる機能と、優先順位が低でも複数のプログラムから送信された後の経過時間により、格納されている優先順位高の伝文よりも先に送信先デバイスへ送信する機能を備えるような構成にしたので、プログラムからの伝文送信タイミングから実際に送信先デバイスへ伝文が送信されるまでの遅延時間を従来の手法に比べ短くすることができる。   The embodiment of the present invention temporarily stores messages transmitted from a plurality of programs to a transmission destination device and the priority of the corresponding message, and compares the priority of stored messages at the timing of transmission to the transmission destination device. The message with the higher priority stored in the message is sent to the destination device and the elapsed time after transmission from multiple programs even if the priority is lower. Since it is configured to have a function to transmit to the destination device before the sentence, the delay time from the message transmission timing from the program until the message is actually transmitted to the destination device is It can be shortened.

本発明に関わるデータ伝送システムは、意図したタイミングから僅かな遅延で伝送先デバイスへ伝文を送信することが可能になるため、伝文送信の待ち時間が少なくなりシステム全体のスループットを上昇させることができることから、このようなデータ伝送システムを主局と従局の全局を同期させた多軸間の輪郭制御などに適用できる。   Since the data transmission system according to the present invention can transmit a message to the transmission destination device with a slight delay from the intended timing, the message transmission waiting time is reduced and the throughput of the entire system is increased. Therefore, such a data transmission system can be applied to contour control between multiple axes in which all the master station and slave stations are synchronized.

本発明の実施例を示すデータ伝送システムの構成図Configuration diagram of a data transmission system showing an embodiment of the present invention 一般的な主局と従局との間でデータ伝送を行うデータ伝送システムの構成図Configuration diagram of a data transmission system that performs data transmission between a general master station and slave stations

符号の説明Explanation of symbols

1 伝文送信処理部、
11 伝文格納部、
12 伝文優先順位判定処理部、
13 タイマカウント処理部、
14 送信処理部、
2 送信データ、
21 送信伝文、
22 優先順位
1 message transmission processing section,
11 Message storage unit,
12 message priority determination processing unit,
13 Timer count processing section,
14 Transmission processing unit,
2 transmission data,
21 Send message,
22 Priority

Claims (2)

主局(M)と従局(S)との間で伝送ラインを介してデータ伝送を行うデータ伝送方法において、
前記主局(M)が前記従局(S)との間で通信を実行する通信用ソフトウェアに組み込まれた複数のプログラムから異なる伝文データを伝文格納部(11)にて格納し、
前記伝文格納部(11)に格納されている全伝文の優先順位を伝文優先順位判定処理部(12)にて比較し、
前記伝文格納部(11)から優先順位の緊急度に応じて緊急度の高い伝文から順に送信処理部(14)を介して前記従局側(S)の送信先デバイスへ送信し、
前記伝文格納部(11)にて優先順位低の伝文が格納された時に、該優先順位低の伝文に対して伝文毎に複数のプログラムから送信された後の経過時間を規定のタイマ値とするタイマカウント部(13)を用いて、該経過時間をカウントして規定値に達した伝文を前記伝文格納部(11)に格納されている優先順位高の伝文より先に前記送信処理部(14)に出力するようにしたことを特徴とするデータ伝送方法。
In a data transmission method for performing data transmission via a transmission line between a master station (M) and a slave station (S),
The message data storage unit (11) stores different message data from a plurality of programs incorporated in communication software for performing communication between the master station (M) and the slave station (S),
The priority order of all messages stored in the message storage unit (11) is compared in the message priority determination processing unit (12),
According to the priority of the priority order from the message storage unit (11), the messages are transmitted in order from the message with the highest urgency to the destination device on the slave side (S) via the transmission processing unit (14),
When a message with a low priority is stored in the message storage unit (11), an elapsed time after transmission from a plurality of programs for each message is specified for the message with a low priority. Using a timer count unit (13) as a timer value, a message that has reached the specified value by counting the elapsed time is preceded by a message with a higher priority stored in the message storage unit (11). And outputting to the transmission processing unit (14).
主局(M)と従局(S)との間で伝送ラインを介してデータ伝送を行うデータ伝送システムにおいて、
前記主局(M)は、
前記従局(S)との間で通信を実行する通信用ソフトウェアに組み込まれた複数のプログラムから異なる伝文データを格納するための伝文格納部(11)と、
前記伝文格納部(11)に格納されている全伝文の優先順位を比較するための伝文優先順位判定処理部(12)と、
前記伝文格納部(11)から優先順位の緊急度に応じて緊急度の高い伝文から順に前記従局側(S)の送信先デバイスへ送信するための送信処理部(14)と、
前記伝文格納部(11)にて優先順位低の伝文が格納された時に、該優先順位低の伝文に対して伝文毎に前記複数のプログラムから送信された後の経過時間を規定のタイマ値として設定し、該経過時間をカウントして規定値に達した伝文を前記伝文格納部(11)に格納されている優先順位高の伝文より先に前記送信処理部(14)に出力するタイマカウント部(13)と、
を備えたことを特徴とするデータ伝送システム。
In a data transmission system that performs data transmission via a transmission line between a master station (M) and a slave station (S),
The master station (M)
A message storage unit (11) for storing different message data from a plurality of programs installed in communication software for performing communication with the slave station (S);
A message priority determination processing unit (12) for comparing the priority of all messages stored in the message storage unit (11);
A transmission processing unit (14) for transmitting from the message storage unit (11) to the destination device on the slave station side (S) in order from a message with a high degree of urgency according to the urgency level of priority;
When a message with a low priority is stored in the message storage unit (11), an elapsed time after transmission from the plurality of programs for each message is specified for the message with a low priority Is set as the timer value of the message, the elapsed time is counted, and the message that has reached the specified value is sent to the transmission processing unit (14) before the message of high priority stored in the message storage unit (11). Timer count unit (13) to output to
A data transmission system comprising:
JP2005168261A 2005-06-08 2005-06-08 Data transmitting method and data transmission system Pending JP2006345171A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005168261A JP2006345171A (en) 2005-06-08 2005-06-08 Data transmitting method and data transmission system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005168261A JP2006345171A (en) 2005-06-08 2005-06-08 Data transmitting method and data transmission system

Publications (1)

Publication Number Publication Date
JP2006345171A true JP2006345171A (en) 2006-12-21

Family

ID=37641802

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005168261A Pending JP2006345171A (en) 2005-06-08 2005-06-08 Data transmitting method and data transmission system

Country Status (1)

Country Link
JP (1) JP2006345171A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103490966A (en) * 2013-10-10 2014-01-01 北京航天发射技术研究所 Dual-redundancy CAN bus data receiving and processing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103490966A (en) * 2013-10-10 2014-01-01 北京航天发射技术研究所 Dual-redundancy CAN bus data receiving and processing method
CN103490966B (en) * 2013-10-10 2016-08-24 北京航天发射技术研究所 A kind of dual-redundant CAN bus method for receiving and processing data

Similar Documents

Publication Publication Date Title
US10523579B2 (en) Relay device and data transfer method
JP5080448B2 (en) Method and apparatus for synchronizing two bus systems and configuration comprising two bus systems
EP1593009B1 (en) Industrial control network providing ethernet protocol overlayed with a transmission schedule
EP2455832B1 (en) Programmable controller
JP2007174053A (en) Device and method for communication message conversion
SE524201C2 (en) Device for distributed control and monitoring system
JP2011192068A5 (en) Programmable controller and master communication circuit
JPS5991527A (en) Controlling method of priority of bus
Bello et al. Priority-driven swapping-based scheduling of aperiodic real-time messages over EtherCAT networks
JP2006217494A (en) Communication system and method
US20110188520A1 (en) Method for operating a time-controlled bus system
EP3166257B1 (en) Start-up triggering in an ethernet-based in-vehicle network
JP5372699B2 (en) In-vehicle network device
JP2006345171A (en) Data transmitting method and data transmission system
CN109450817B (en) Mixed scheduling method for time-triggered Ethernet multi-service message transmission
CN114697270B (en) Arbitration method, system, equipment and medium based on EPA network model
US20130223455A1 (en) Electronic device, communication control method, and recording medium
JP7044081B2 (en) In-vehicle communication system
JP4192627B2 (en) Packet transmission / reception method and apparatus
Patti et al. An EDF-based swapping approach to enhance support for asynchronous real-time traffic over EtherCAT networks
WO2006134537A1 (en) Methods and receives of data transmission using clock domains
JP2019213163A (en) Communication control unit
JP2006148815A (en) Distributed arbitration method for serial bus use right, node, and program
JP2006311133A (en) Time-division multiplex communication system
JP2007174118A (en) Communication message conversion device