JP3029170B2 - Data transmission method and apparatus, and asynchronous control system - Google Patents

Data transmission method and apparatus, and asynchronous control system

Info

Publication number
JP3029170B2
JP3029170B2 JP5194476A JP19447693A JP3029170B2 JP 3029170 B2 JP3029170 B2 JP 3029170B2 JP 5194476 A JP5194476 A JP 5194476A JP 19447693 A JP19447693 A JP 19447693A JP 3029170 B2 JP3029170 B2 JP 3029170B2
Authority
JP
Japan
Prior art keywords
data
transmission
processing
reception
synchronization
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP5194476A
Other languages
Japanese (ja)
Other versions
JPH0750661A (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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP5194476A priority Critical patent/JP3029170B2/en
Publication of JPH0750661A publication Critical patent/JPH0750661A/en
Application granted granted Critical
Publication of JP3029170B2 publication Critical patent/JP3029170B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は非同期に動作している複
数の中央処理装置(CPU)またはコントローラ間にお
けるデータの伝送方式に係わり、特に制御システム等に
不可欠なデータの同時性を保証するデータ伝送方式に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of transmitting data between a plurality of central processing units (CPUs) or controllers operating asynchronously, and in particular, to data which guarantees the synchronism of data which is indispensable for a control system and the like. It relates to a transmission system.

【0002】[0002]

【従来の技術】制御システム等におけるCPU間のデー
タ伝送方式として、CPU単位でデータの同期が取れて
いるパケット交換方式が利用されている。送信側CPU
は、送信データを一定長のパケットに分割する送信編集
処理を行った終、ネットワークへの送信データ書込み処
理を、受信側CPUが送信データ待ち状態のときに行
う。受信側CPUは、ネットワーク回線から受信データ
の読出し処理と受信編集処理を行い、その終了後に次デ
ータ待ち状態となって送信側CPUにその状態を連絡す
る。
2. Description of the Related Art As a data transmission system between CPUs in a control system or the like, a packet exchange system in which data is synchronized in CPU units is used. Sending CPU
After the transmission editing process for dividing transmission data into packets of a fixed length is performed, the transmission data writing process to the network is performed when the receiving CPU is in a transmission data waiting state. The receiving CPU performs reading processing and reception editing processing of the received data from the network line, and after that, waits for the next data and notifies the transmitting CPU of the state.

【0003】一方、CPU間のデータ伝送を高速化する
方式には、伝送データ編集とネットワークへの転送を分
散処理して、計算機負荷を軽くするメモリ転写方式があ
る。
On the other hand, as a method for speeding up data transmission between CPUs, there is a memory transfer method in which transmission data editing and transfer to a network are distributed to reduce the computer load.

【0004】[0004]

【発明が解決しようとする課題】上記パケット交換方式
によれば、伝送データの同期は保証されるが、送受信処
理に時間がかかり、伝送速度の高速化を阻んでいる。こ
のため制御システムなどのCPUでは、本来の仕事であ
る制御演算の高速化を困難にしている。
According to the above-described packet switching system, synchronization of transmission data is guaranteed, but transmission / reception processing takes time, which hinders an increase in transmission speed. For this reason, it is difficult for a CPU of a control system or the like to increase the speed of a control operation, which is an essential task.

【0005】一方、メモリ転写方式によれば、コントロ
ーラのCPUのほかに伝送用サブプロセッサが設けら
れ、送受信処理の分散化により、データ伝送の高速化は
可能になるが、データ伝送がパケット(フレーム)によ
らないので、前回タイミングと今回タイミングの送信デ
ータが混在して受信側に読み出される場合があり、デー
タの同時性が保証されない。
On the other hand, according to the memory transfer method, a transmission sub-processor is provided in addition to the CPU of the controller, and the speed of data transmission can be increased by decentralizing the transmission / reception processing. ), The transmission data of the previous timing and the current timing may be read out to the receiving side in a mixed manner, and the synchronization of the data is not guaranteed.

【0006】また、データ伝送を高速化するために、後
続データの有無を示す制御フラッグを用い、データ長が
不明の状態でも転送を開始する、特開平2−72467
号公報記載のデータ転送方式なども知られているが、非
同期の場合のデータの同時性については何の保証もな
い。
In order to speed up data transmission, a control flag indicating the presence or absence of subsequent data is used to start transfer even when the data length is unknown.
Although a data transfer method described in Japanese Patent Application Laid-Open No. H10-264, for example, is known, there is no guarantee as to data synchronization in an asynchronous case.

【0007】図12に、非同期システムにおいてデータ
の同期が取れない例を示す。簡単のため、書き込み速度
と、読出し速度は同一として説明する。
FIG. 12 shows an example in which data cannot be synchronized in an asynchronous system. For simplicity, the writing speed and the reading speed will be described as being the same.

【0008】同図(a)は、データの同期が取れている
例である。データAがメモリの1〜N番地まで書き込ま
れている状態で、t0〜t2まで読出しが行われ、つい
で読出しより遅れてt1〜t4までデータBの1〜N番
地への書き込みが行われ、さらにt3〜t5まで読出し
が行われている。この場合、読出しのデータは全てデ
ータA、読出しのデータは全てデータBとなり、デー
タの同時性は確保されている。
FIG. 1A shows an example in which data is synchronized. With data A being written to addresses 1 to N of the memory, reading is performed from t 0 to t 2 , and then writing of data B to addresses 1 to N is delayed from t 1 to t 4 after the reading. conducted, it has been made more read until t 3 ~t 5. In this case, the read data is all data A and the read data is all data B, and the data synchronization is secured.

【0009】同図(b)は、データの同期が取れていな
い例である。データAがメモリの1〜N番地まで書き込
まれている状態で、t1からデータBの書き込み、t2
ら読出しが開始される。データBの書き込みがn1
で行われた時刻t3で、送信側CPUに割込みが入り、
時刻t5でn1〜NのデータBの書き込みが再開されてい
る。この間に読出しは割込みなく実行され時刻t4
終了している。この場合の読出しデータは、1〜n1
では新しいデータB、n1〜Nまでは古いデータAとな
る。
FIG. 1B shows an example in which data is not synchronized. In a state in which the data A is written to 1~N address of the memory, writing from t 1 data B, reading is started from t 2. At time t 3 when the writing of data B has been performed up to n 1, an interrupt enters the sender CPU,
Writing data B n 1 to N is resumed at time t 5. Read during this period is terminated at time t 4 runs without interruption. Read data in this case, up to 1 to n 1 is new data B, up to n 1 to N is the old data A.

【0010】同図(c)は、時刻t2からのデータBの
書き込みは割込みなく実行されたが、時刻t1からの読
出しが時刻t3のn1番地で中断し、時刻t4で再開され
た場合である。読出しデータは、1〜n1までは古いデ
ータA、n1〜Nまでは新しいデータBとなる。
[0010] FIG. (C), although the writing of the data B from the time t 2 is performed without interruption, reads from the time t 1 is interrupted by n 1 address at time t 3, resumed at time t 4 This is the case. Read data, the old data A to 1 to n 1, to n 1 to N is the new data B.

【0011】同図(d)は、時刻t1からのデータBの
書き込みが時刻t2のn1番地で中断して時刻t5で再開
され、時刻t3からの読出しが時刻t4のn2番地で中断
して時刻t6で再開された場合である。この場合の読出
しデータは、1〜n1まではデータB、n1〜n2までは
データA、n2〜NまではデータBとなる。
FIG. 2D shows that writing of data B from time t 1 is interrupted at address n 1 at time t 2 and resumed at time t 5 , and reading from time t 3 is performed at n 4 at time t 4 . it is a case that has been resumed at time t 6 was interrupted by 2 address. Read data in this case, up to 1 to n 1 data B, n 1 ~n to 2 data A, to n 2 to N becomes data B.

【0012】このように、送信側CPUと受信側CPU
間で非同期に送受信すると、送信側CPUの1回の送信
編集よる全データを、受信側CPUの1回の受信編集処
理で得られないことがあり、この場合の受信データは
期が取れていない。この結果、一演算周期(送信周期)
の終了時の制御演算結果を、複数のコントローラ間で相
互に取り合いするプラント制御システム等においては、
受信データに基づく次の制御に誤動作が生じ、最悪の場
合はプラントの安全が脅かされる。
Thus, the transmitting CPU and the receiving CPU
When data is transmitted and received asynchronously between the transmission and reception CPUs, all data in one transmission editing operation of the transmission CPU may not be obtained by one reception editing process of the reception CPU. In this case, the received data is not the same. I haven't taken the time. As a result, one operation cycle (transmission cycle)
In a plant control system or the like in which the control calculation result at the end of
A malfunction occurs in the next control based on the received data, and in the worst case, the safety of the plant is threatened.

【0013】本発明の目的は、非同期に動作している複
数のCPU間のデータ転送において、受信データの同時
性を維持するデータ伝送方法と、データの同期処理をソ
フトウェア処理のみにて簡単に実現するデータ伝送装置
を提供することにある。
An object of the present invention is to provide a data transmission method for maintaining synchronization of received data in data transfer between a plurality of CPUs operating asynchronously, and to easily realize data synchronization processing only by software processing. To provide a data transmission device.

【0014】本発明の他の目的は、非同期に動作してい
る複数のコントローラ間でメモリ転写方式によるデータ
転送を可能にする伝送制御システムを提供することにあ
る。
Another object of the present invention is to provide a transmission control system which enables data transfer by a memory transfer method between a plurality of controllers operating asynchronously.

【0015】[0015]

【課題を解決するための手段】上記した本発明の目的
は、伝送路に接続され互いに非同期に動作している複数
の処理装置(CPU)間で、データの送受を行うデータ
伝送方法において、送信側では一回の送信処理による送
信データの前後に同時性を示す識別子を付与して送信
し、受信側では受信データの前後に付与されている前記
識別子を比較し、同時性が認められる場合にのみ受信処
理することにより達成される。また、前記処理装置は送
受信データ記憶装置に対し、前記送信データの書込み及
び前記受信データの読出しを行う際に、前記書込みのア
ドレス順と同順または逆順に前記読出しを行うことを特
徴とする。 あるいは、本発明のデータ伝送方法は、伝送
路に接続され互いに非同期に動作している複数の処理装
置間で、各々伝送プロセッサを備えてデータの送受信を
行う場合に、送信側処理装置(CPU)による送信デー
タ編集処理の中断時に、送信側伝送プロセッサによる所
定長データブロック単位の送信処理(書き込み)が行わ
れる場合または受信側伝送プロセッサによる前記データ
ブロック単位の受信処理(読出し)中に受信側処理装置
(CPU)による受信データ編集処理が中断される場合
を検出したとき、受信データを無効にすることを特徴と
する。
An object of the present invention described above SUMMARY OF THE INVENTION may, among a plurality of processing devices operating asynchronously from one another are connected to the transmission line (CPU), a data transmission method for transmitting and receiving data, transmission send According to one of the transmission processing in the side
An identifier indicating the simultaneity is given before and after the received data and transmitted, and the receiving side adds the identifier before and after the received data .
This is achieved by comparing identifiers and performing reception processing only when synchronization is recognized . Further, the processing device is
Writing the transmission data to the reception data storage device
When reading the received data and the received data,
The reading is performed in the same order as the dress order or in the reverse order.
Sign. Alternatively, the data transmission method of the present invention comprises
Processing devices connected to the
Each unit has its own transmission processor to send and receive data.
When performing, the transmission data by the transmission side processing device (CPU)
When the data editing process is interrupted,
Transmission processing (writing) is performed in units of fixed-length data blocks
Or the data by the receiving transmission processor
Reception-side processing device during reception processing (reading) in block units
When the received data editing process by the (CPU) is interrupted
Invalidates the received data when detecting
I do.

【0016】本発明のデータ伝送装置は、伝送路に接続
され互いに非同期に動作している複数の処理装置間でデ
ータの送受を行うものであって、送受信するデータを処
理装置毎に定められた領域に一時記憶する送受信データ
記憶装置と、同期の取れているデータに同時性を示す識
別子を付与して、前記記憶装置の自処理装置の記憶領域
に書込む送信同期処理手段と、前記記憶装置の他の処理
装置の記憶領域から読出したデータに付与されている前
記識別子の同時性を判定する受信同期処理手段を有する
前記処理装置を具備することを特徴とする。 本発明の非
同期制御システムは、伝送路に接続され互いに非同期に
動作している複数のコントローラ間で、データを取り合
いながら制御するものであって、前記コントローラは、
制御演算処理手段、送信データ処理手段、受信データ処
理手段および自コントローラの送信データと他コントロ
ーラからの受信データを送受し転写メモリに記憶する伝
送プロセッサを備え、前記送信データ処理手段は、同期
の取れている送信データを所定長さのデータブロック単
位に他コントローラの前記転写メモリに送信することを
特徴とする。
The data transmission device of the present invention is connected to a transmission path.
Data between multiple processing units operating asynchronously with each other.
It sends and receives data, and processes data to be sent and received.
Transmission / reception data temporarily stored in the area determined for each management device
The storage device and the knowledge that indicates synchronization with the synchronized data
The storage area of the self-processing device of the storage device is provided with an identifier.
Transmission synchronization processing means for writing to the storage device and other processing of the storage device
Before being added to data read from the storage area of the device
Having reception synchronization processing means for determining the simultaneity of the identifiers
It is characterized by comprising the processing device. The present invention
Synchronous control systems are connected to transmission lines and are asynchronous with each other.
Transfer data between multiple operating controllers
While controlling, said controller,
Control arithmetic processing means, transmission data processing means, reception data processing
Control data and the controller's transmission data and other
Transfer the received data from the printer and store it in the transfer memory.
A transmission processor, wherein the transmission data processing means
The transmission data for which the
To be transmitted to the transfer memory of another controller.
Features.

【0017】[0017]

【作用】本発明の構成によれば、送信側CPUは一回の
編集処理による各データまたは各データブロックの先頭
と末尾に、識別子としてたとえば、同一番号等を挿入し
たのち、ネットワークへデータを送出する。ちなみに、
送信編集処理中に割込みによる中断があっても、再開後
の送信編集処理終了までのデータには同一識別番号が付
与される。
According to the structure of the present invention, the transmitting CPU inserts, for example, the same number as an identifier at the beginning and end of each data or each data block by one editing process, and then sends the data to the network. I do. By the way,
Even if there is an interruption during the transmission editing process due to an interruption, the same identification number is assigned to the data after the resumption until the transmission editing process ends.

【0018】受信側CPUでは、ネットワークから受信
データを読出し、データまたはデータブロックの先頭と
末尾に挿入した識別番号を比較し、同一識別番号の場合
は同期の取れたデータであると判定し、受信データ編集
処理を行う。
The receiving CPU reads the received data from the network and compares the identification numbers inserted at the beginning and end of the data or data block. If the identification numbers are the same, the receiving CPU determines that the data is synchronized. Perform data editing processing.

【0019】この識別番号の挿入や比較を行う同期処理
は、同期を保証する長さが予め定められたデータブロッ
ク単位に行うので、簡単かつ効率的に実行でき、これに
よるCPUの処理負担はすくない。
The synchronization process for inserting and comparing the identification numbers can be executed easily and efficiently because the length for guaranteeing the synchronization is performed in units of a predetermined data block, and the processing load on the CPU is small. .

【0020】従来の非同期伝送によれば、送信側での送
信データの書き込みの中断時に、受信側でデータブロッ
ク単位の読出しが行われた場合、あるいは受信側で受信
データの読出しの中断時に、送信側での送信データの書
き込みが行われた場合、中断の前後の受信データに新、
旧データが混在する。 しかし、本発明によれば同期して
いない受信データの発生を、前記識別子の付与による
単な同期処理によって新旧混在の受信データを廃棄する
ので、送信側CPUと受信側CPUが非同期に動作して
いても受信データの同時性を保証でき、非同期伝送にお
けるデータ伝送の高速性と信頼性を共に向上できる。
According to the conventional asynchronous transmission, transmission on the transmission side is performed.
When the writing of communication data is interrupted, the data block
When reading is performed in units of clocks, or when receiving
When data reading is interrupted, the sending
When the recording is performed, the received data before and after the interruption
Old data is mixed. However, according to the present invention,
If there is no received data, the new and old mixed received data are discarded by simple synchronization processing by the assignment of the identifier. Therefore, the transmitting CPU and the receiving CPU operate asynchronously. Can guarantee the simultaneity of the received data .
It takes the high speed and reliability of data transmission can be both improved.

【0021】さらに、非同期の複数コントローラからな
る制御システムに、メモリ転写によるデータ伝送方式を
採用できるので、システムの制御動作の信頼性ないし安
全性を保証しながら、高速な演算制御性を達成できる。
Further, a data transfer method by memory transfer is provided for a control system including a plurality of asynchronous controllers.
Since it can be adopted , high-speed operation controllability can be achieved while guaranteeing the reliability or safety of the control operation of the system.

【0022】[0022]

【実施例】本発明の一実施例を図面を参照して詳細に説
明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described in detail with reference to the drawings.

【0023】図2は、メモリ転写方式を採用したプラン
ト制御システムの構成を示す。ネットワークの伝送路1
には複数のコントローラ2が接続されており、それらは
各々独立して非同期にかつ、周期的に動作している。コ
ントローラ2はプラントとの間で、プロセス入出力装置
(PI/O)3を介し、プロセスデータの入力とプロセ
ス制御データの出力を行う。
FIG. 2 shows the configuration of a plant control system employing a memory transfer system. Network transmission path 1
Are connected to each other, and each of them operates independently and asynchronously and periodically. The controller 2 inputs process data and outputs process control data to and from the plant via a process input / output device (PI / O) 3.

【0024】各コントローラ2は、制御演算処理と送受
信データ編集処理を行うCPU21と、CPUの制御演
算に使用するプログラムとワークデータを記憶する主メ
モリ22、ネットワークを介してデータの送信処理、受
信処理を行う伝送サブプロセッサ4があり、これらをシ
ステムバス23で接続している。
Each controller 2 includes a CPU 21 for performing control arithmetic processing and transmission / reception data editing processing, a main memory 22 for storing a program used for control arithmetic of the CPU and work data, a data transmission processing and a reception processing via a network. , And these are connected by a system bus 23.

【0025】図3に示す伝送サブプロセッサ4は、自他
の伝送データを格納する転写メモリ24、送受信データ
のA/DまたはD/A変換を行うモデム25およびトー
クン(送信権)の有無を判断する伝送LSI26により
構成されている。サブプロセッサ4は、自己の転写メモ
リの自送信領域241に書き込まれた送信データを、ト
ークンを保持しているときに他コントローラ2に送信す
ると共に、他コントローラ2からの送信データを転写メ
モリ24の受信データ領域242に取り込む。なお、各
コントローラ間のデータ伝送は、トークンパッシング方
式によりサイクリックに行われている。
The transmission sub-processor 4 shown in FIG. 3 judges whether or not there is a transfer memory 24 for storing its own transmission data, a modem 25 for performing A / D or D / A conversion of transmission / reception data, and a token (transmission right). And a transmission LSI 26. The sub processor 4 transmits the transmission data written in its own transmission area 241 of its own transfer memory to the other controller 2 while holding the token, and also transmits the transmission data from the other controller 2 to the transfer memory 24. It is taken into the reception data area 242. The data transmission between the controllers is performed cyclically by the token passing method.

【0026】ネットワーク1に接続する全てのコントロ
ーラ2は、伝送プロセッサ4によって、自送信データを
転写メモリ24の自己の送信データ領域に書き込むと共
に、ネットワーク1を経由して一定周期で他コントロー
ラ2の転写メモリ24の所定領域にも書き込む。
All the controllers 2 connected to the network 1 write their own transmission data to their own transmission data area of the transfer memory 24 by the transmission processor 4 and transfer the data to the other controllers 2 at regular intervals via the network 1. The data is also written in a predetermined area of the memory 24.

【0027】図1は、本実施例におけるコントローラ2
内のデータ伝送装置の送受信手段の構成を示す。コント
ローラ2の転写メモリ24には、他のコントローラから
ネットワーク1を経由して転写された受信データが記憶
されている。
[0027] Figure 1 is definitive in this embodiment the controller 2
2 shows the configuration of the transmission / reception means of the data transmission device in FIG. The transfer memory 24 of the controller 2 stores received data transferred from another controller via the network 1.

【0028】他のコントローラから送られた転写メモリ
24の受信データは、受信データ同期処理手段204に
より後述する受信同期処理の後に、主メモリ22内の転
写受信バッファ211に転送され、さらに受信データ編
集処理手段202によりワークデータエリア210へ編
集される。
The reception data of the transfer memory 24 sent from another controller is transferred to a transfer reception buffer 211 in the main memory 22 after the reception synchronization processing described later by the reception data synchronization processing means 204, and further, the reception data is edited. The data is edited into the work data area 210 by the processing means 202.

【0029】一方、制御演算処理201による演算結果
を記憶するワークデータエリア210の送信データは、
送信データ編集処理手段203によって編集され転写送
信バッファ212に送信されたのち、送信データ同期処
理手段205により後述する送信同期処理を施されて転
写メモリ24に格納される。転写メモリ24の送信デー
タは、トークンパッシング等により一定周期で、各コン
トローラの転写メモリの定められた領域へ転写される。
On the other hand, the transmission data of the work data area 210 for storing the calculation result by the control calculation process 201 is as follows:
After being edited by the transmission data editing processing unit 203 and transmitted to the transfer transmission buffer 212, the transmission data synchronization processing unit 205 performs transmission synchronization processing described below and stores the processed data in the transfer memory 24. The transmission data of the transfer memory 24 is transferred to a predetermined area of the transfer memory of each controller at a fixed period by token passing or the like.

【0030】図4は、コントローラ2の処理動作を説明
するフローチャート(PAD図)である。同図で、縦軸
は上から下に時間経過、横軸は処理内容を左から右にブ
レークダウンして示している。
FIG. 4 is a flowchart (PAD diagram) for explaining the processing operation of the controller 2. In the figure, the vertical axis indicates time elapse from top to bottom, and the horizontal axis indicates processing contents broken down from left to right.

【0031】コントローラ2のCPU21は、その動作
の初めに、受信同期処理S101と受信データ編集処理
S102からなる受信処理S10を行う。つぎに、プロ
セス入力処理S20により、プラントの状態をプロセス
入出力装置3から取り込みワークデータエリア210に
格納する。制御演算処理S30は、これら受信データと
プロセス入力値を用いて制御演算を行い、結果をワーク
エリア210に格納する。プロセス出力処理S40は、
演算結果の一部(制御指令値など)をプラントに出力す
る。送信データ編集処理S501と送信同期処理S50
2からなる送信処理S50は、演算結果の一部を送信デ
ータとしてネットワークに送出する。
At the beginning of the operation, the CPU 21 of the controller 2 performs a reception process S10 including a reception synchronization process S101 and a reception data editing process S102. Next, the state of the plant is fetched from the process input / output device 3 and stored in the work data area 210 by the process input process S20. The control calculation process S30 performs a control calculation using the received data and the process input value, and stores the result in the work area 210. The process output process S40 is
A part of the calculation result (control command value, etc.) is output to the plant. Transmission data editing processing S501 and transmission synchronization processing S50
The transmission process S50 consisting of 2 transmits a part of the operation result to the network as transmission data.

【0032】図5に、送信データ編集処理S501およ
び送信データ同期処理S502のフローチャートを示
す。送信データ編集処理S501は、上記のように周期
的に実行される制御演算処理S30の終了の度に、ワー
クデータエリア210の演算結果の内、予め定められて
いる送信データの各々を、転写送信バッファ212の所
定アドレスへ転送する。
FIG. 5 shows a flowchart of the transmission data editing process S501 and the transmission data synchronization process S502. The transmission data editing process S501 transfers each of the predetermined transmission data in the calculation result of the work data area 210 by transferring each time the control calculation process S30 periodically executed as described above ends. The data is transferred to a predetermined address in the buffer 212.

【0033】送信データ同期処理S502は、転写送信
バッファ212内の送信データを転写メモリ24へ転送
する際に、S5021で送信データの一つまたは複数
を、予め設定されている長さのデータブロック単位にま
とめる。なお、このデータブロック単位の編集処理はS
501で行ってもよい。
In the transmission data synchronization process S502, when transferring the transmission data in the transfer transmission buffer 212 to the transfer memory 24, one or more of the transmission data is transferred in S5021 in units of data blocks of a preset length. Put together. It should be noted that the editing process for each data block is performed in S
501 may be performed.

【0034】つぎに、S5022で昇順カウンタを+1
更新し、S5023で各データブロックの先頭と終わり
に同一カウント値を挿入する。同一周期の送信データが
複数のデータブロックからなるときは、各ブロックとも
同一のカウント値が付与される。このカウント値は、送
信処理S50の周期毎に+1更新されるので、データブ
ロックの前後のカウント値が同一であれば、データの同
期が取られていることを確認できる。
Next, in S5022, the ascending order counter is incremented by one.
The data is updated, and the same count value is inserted at the beginning and end of each data block in S5023. When transmission data of the same cycle is composed of a plurality of data blocks, the same count value is assigned to each block. This count value is updated by +1 every period of the transmission process S50. Therefore, if the count values before and after the data block are the same, it can be confirmed that the data is synchronized.

【0035】識別子としてのカウント値が付与された、
データブロック単位の送信データは、S5024で転写
メモリ24の自送信データ領域へ転送され、自コントロ
ーラがトークンを保持しているときにネットワークに送
出される。
A count value as an identifier is given,
The transmission data in data block units is transferred to the own transmission data area of the transfer memory 24 in S5024, and is sent out to the network when the own controller holds the token.

【0036】なお、CPU21は、送信同期処理S50
2の処理中に、他の優先度の高い割込み処理が入って中
断しても、送信データ編集処理S501の動作後にS5
02を再開するように処理するので、転送バッファ21
2内の送信データの同時性が崩れることはない。
The CPU 21 performs a transmission synchronization process S50
During the processing of step S2, even if another high-priority interrupt processing enters and the processing is interrupted, after the operation of the transmission data editing processing S501, step S5 is executed.
02, so that the transfer buffer 21
The synchronization of the transmission data in 2 does not collapse.

【0037】図6は、転写送信バッファ212に編集さ
れた自送信データ群を、上記の送信同期処理を施して転
写メモリ24の自送信データ領域に格納した状態を説明
する概念図である。この例では、複数のデータブロック
においてデータの同期が必要なので、全てのデータブロ
ックの先頭と最後に同期用カウンタ2001を挿入して
いる。
FIG. 6 is a conceptual diagram illustrating a state in which the self transmission data group edited in the transfer transmission buffer 212 is subjected to the above-described transmission synchronization processing and stored in the self transmission data area of the transfer memory 24. In this example, since data synchronization is required in a plurality of data blocks, a synchronization counter 2001 is inserted at the beginning and end of all data blocks.

【0038】しかし、同期の必要なデータブロックのみ
に識別用カウンタを付加するようにしてもよい。また、
自送信データが単一のデータブロックからなることもあ
る。なお、データブロックの最大長は、ハードウエアの
制約により定まる。
However, the identification counter may be added only to the data blocks requiring synchronization. Also,
The own transmission data may consist of a single data block. Note that the maximum length of a data block is determined by hardware restrictions.

【0039】図7に、受信データ同期処理S101のフ
ローチャートを示す。S1011で転写メモリ24内に
格納されている受信データを、格納順(アドレス順)に
転写受信バッファ211へ転送する際に、S1012で
データブロックの先頭と終わりのカウント値を読み出し
比較する。この結果不一致であれば、データブロック内
のデータの同期が取れていないので、S1013で当該
データを無効処理する。一方、カウント値が一致してい
れば、データブロック内のデータの同期が取れているの
で、S1014で有効処理、すなわち前後のカウント値
を除去して元のデータに復し、S1015で受信バッフ
ァ211に転送する。
FIG. 7 shows a flowchart of the reception data synchronization processing S101. When the received data stored in the transfer memory 24 is transferred to the transfer receiving buffer 211 in the storage order (address order) in S1011, the count values at the beginning and end of the data block are read and compared in S1012. If the result is a mismatch, the data in the data block is not synchronized, and the data is invalidated in S1013. On the other hand, if the count values match, the data in the data block is synchronized, so the validity processing is performed in S1014, that is, the previous and subsequent count values are removed and the original data is restored. Transfer to

【0040】図8に、受信データ同期処理S101によ
り、転写メモリ24から受信バッファ211に転送され
る受信データ群の構成を示す。
FIG. 8 shows the structure of a received data group transferred from the transfer memory 24 to the receiving buffer 211 in the received data synchronization process S101.

【0041】このように、送信データのデータブロック
単位に、その先頭と末尾に同一の識別子を付与し、受信
側で両方の識別子の一致/不一致をチエックすること
で、当該データの同時性が判定できる。
As described above, the same identifier is added to the beginning and end of each data block of transmission data, and the receiving side checks whether the two identifiers match or not, thereby determining the simultaneity of the data. it can.

【0042】以上の例では、送信データを所定長のデー
タブロック単位に編集し、このブロックの先頭と末尾に
識別子を挿入している。これによれば、データの先頭と
終わりが定められるので、同期処理のための識別子の挿
入や検出をオーバヘッドが少なく効率的に処理できる。
In the above example, the transmission data is edited in units of data blocks of a predetermined length, and identifiers are inserted at the beginning and end of this block. According to this, since the beginning and end of the data are determined, insertion and detection of the identifier for the synchronization processing can be efficiently performed with little overhead.

【0043】図9は、本実施例によって、不一致と判定
される場合の例である。時刻t1〜t3に書き込まれた旧
データAは、その先頭と末尾に識別子100が付与さ
れ、時刻t5〜t6に書き込まれた新データBは識別子1
01が付与されている。このとき、時刻t2からの受信
処理が時刻t4で中断し、時刻t7で再開されると、この
受信データの先頭の識別子は100、末尾の識別子は1
01となる。すなわち、アドレス0〜n1までは旧デー
タA、n1〜Nまでは新データBとなり同期が取れてい
ない。このような受信データは、先頭、末尾の識別子が
不一致のため廃棄処理されるので、採用される受信デー
タは常に同時性が保証される。
FIG. 9 shows an example of the case where it is determined that they do not match according to the present embodiment. The old data A written at times t 1 to t 3 is given an identifier 100 at the beginning and end thereof, and the new data B written at times t 5 to t 6 is identifier 1
01 is given. At this time, if the reception process from time t 2 is interrupted at time t 4 and restarted at time t 7 , the first identifier of the received data is 100 and the last identifier is 1
01. That is, until address 0~n 1 old data A, up to n 1 ~N is not made of sync with the new data B. Such received data is discarded because the leading and trailing identifiers do not match, so that the adopted received data is always guaranteed to be synchronized.

【0044】図10に、上記の実施例によっても、デー
タの同時性が判別できない特殊なケースを示す。すなわ
ち、識別子100を付与しているデータAを、時刻t1
〜t2まで読みだしたところで中断し、時刻t5で読出し
を再開している。この間に時刻t3で新データBの書き
込みが始まり時t4で中断し、再び時刻t6で書き込みを
再開している。この場合の受信データの識別子は、先頭
も終わりも100で一致しているが、n1〜n2の受信デ
ータはBとなるので同期は取られていない。
FIG. 10 shows a special case in which the simultaneity of data cannot be determined even in the above embodiment. That is, the data A to which the identifier 100 is assigned is stored at the time t 1
Was interrupted by was read to ~t 2, it is to resume reading at time t 5. It was interrupted in the t 4 time during which the writing of the new data B starts at time t 3, are to resume writing at the time t 6 again. In this case, the identifier of the received data coincides with 100 at both the head and the end, but since the received data of n 1 to n 2 is B, synchronization is not achieved.

【0045】このように、読出しと書き込みが複数回に
亘ってクロスする場合にも、同時性の判定を正確に行う
実施例を以下に説明する。図7(b)はこの受信処理を
示し、図7(a)の受信処理とは、S1011が相違す
る。すなわち、転写メモリ24からの受信データを、書
き込み時のアドレスと逆順に読みだしている。
In the following, an embodiment will be described in which even when reading and writing cross a plurality of times, the synchronization can be accurately determined. FIG. 7B shows this reception processing, and is different from the reception processing of FIG. 7A in S1011. That is, the data received from the transfer memory 24 is read in the reverse order of the address at the time of writing.

【0046】図11は、この実施例による書き込み/読
出し処理動作を説明するタイムチャートである。書き込
みはアドレス0→Nの正順に、読出しはアドレスN→0
の逆順に行われる。
FIG. 11 is a time chart for explaining the write / read processing operation according to this embodiment. Writing is performed in the order of addresses 0 → N, and reading is performed in the order of addresses N → 0.
Are performed in reverse order.

【0047】この例では図10と同様に、書き込み/読
出し各々の中断時期がラップしているが、両者の処理に
逆戻りはないのでクロスする点は必ず1点になる。した
がって、図11に示す書き込みと逆順による読み出しの
場合、受信データの先頭は識別子が100(データ
A)、末尾は識別子が101(データB)となるので、
受信データ内の非同期が正確に判定できる。もちろん、
書き込み処理と読出し処理の間にクロスがなければ、受
信データの先頭と末尾の識別子は必ず一致するので、受
信データの同期が確認できる。
In this example, as in FIG. 10, the interruption time of each of the writing and reading overlaps, but since there is no reversion of both processes, there is always only one crossing point. Therefore, in the case of reading in the reverse order of the writing shown in FIG. 11, the identifier of the received data is 100 (data A) at the beginning and the identifier is 101 (data B) at the end.
Asynchrony in the received data can be accurately determined. of course,
If there is no cross between the write process and the read process, the identifiers at the beginning and end of the received data always match, so that the synchronization of the received data can be confirmed.

【0048】本実施例によれば、きわめて簡単な処理方
法によって、書き込み処理と読出し処理が非同期に動作
するあらゆる場合に受信データの同時性を保証できる。
すなわち、送信側となるコントローラと受信側となるコ
ントローラが非同期、送信側CPUと送信処理を行う伝
送用サブプロセッサが非同期および受信側CPUと受信
処理を行う伝送用サブプロセッサが非同期の各場合で、
且つ、各々の処理に割り込む他の優先処理が互いに重複
する場合を含む、あらゆるケースにおいて、受信データ
の同期を正確に保証する。これにより、安全な制御演算
が可能となると共に、コントローラのメインCPUの伝
送負荷が少なくなり、高速な制御動作を実現できる。
According to the present embodiment, the simultaneity of the received data can be guaranteed in any case where the writing process and the reading process operate asynchronously by a very simple processing method.
That is, in each case where the controller on the transmission side and the controller on the reception side are asynchronous, the transmission sub-processor performing transmission processing with the transmission CPU is asynchronous, and the transmission sub-processor performing reception processing with the reception CPU is asynchronous,
Also, in all cases, including the case where other priority processes interrupting each process overlap each other, the synchronization of the received data is accurately guaranteed. As a result, a safe control operation can be performed, and the transmission load on the main CPU of the controller is reduced, so that a high-speed control operation can be realized.

【0049】また、本実施例では、受信側コントローラ
が独立に受信データの同期処理を実行しているので、送
信側コントローラあるいはネットワークに故障が生じた
場合にも、受信側単独の動作が継続できる。
Further, in this embodiment, since the receiving controller independently executes the synchronization processing of the received data, even if a failure occurs in the transmitting controller or the network, the operation of the receiving side alone can be continued. .

【0050】上記した実施例は、メモリ転写による通信
方式について説明したが、本発明はこれに限られるもの
ではない。すなわち、パケット交換による通信方式にお
いても、上記のデータブロックを送信フレームと見立て
ることにとり、本発明の同期処理が実行できるので、デ
ータ伝送に際して送信側CPUと受信側CPUの動作の
同期/非同期を意識する必要がなく、上記した識別子に
よるソフトウェア処理によって伝送データの同期を実現
することができる。
In the above-described embodiment, the communication method using the memory transfer has been described, but the present invention is not limited to this. In other words, even in a communication method using packet switching, the synchronization processing of the present invention can be executed by regarding the above data block as a transmission frame, and therefore, the data transmission is performed while considering the synchronization / asynchronization of the operations of the transmitting CPU and the receiving CPU. Therefore, synchronization of transmission data can be realized by software processing using the above-described identifier.

【0051】図13に、コントローラに汎用される制御
演算ロジックの一例、図14にそのロジックの制御演算
を行う制御システムの説明図を示す。
FIG. 13 shows an example of a control operation logic generally used for the controller, and FIG. 14 is an explanatory diagram of a control system for performing control operation of the logic.

【0052】図13は、インターロックの成立/解除を
行う制御演算ロジックで、プラント制御等に多用されて
いる。制御ロジック301の入力部の@信号がOFF
(0)のとき、信号,はOFF(0)となり、ロジ
ック301の出力部であるFF回路の出力は前回状態
を保持する。@がON(1)のとき、信号,は入力
信号,にしたがい、がON(1)であればFF回
路の出力はセット(1)、がON(1)であればF
F回路の出力はリセット(0)される。
FIG. 13 shows a control calculation logic for establishing / releasing an interlock, which is frequently used in plant control and the like. @ signal at input of control logic 301 is OFF
At the time of (0), the signal becomes OFF (0), and the output of the FF circuit which is the output unit of the logic 301 holds the previous state. When @ is ON (1), the signal is in accordance with the input signal. If ON is ON (1), the output of the FF circuit is set (1).
The output of the F circuit is reset (0).

【0053】図14は、送信側コントローラ2aの制御
演算処理201aで、ロジック301の入力部の演算を
行って演算結果を送信し、受信側コントローラ2bの制
御演算手段201bで、受信した演算結果を元にロジッ
ク301の出力部の演算を行う構成を概念的に示してい
る。転写メモリ24はコントローラ毎に設けられるが、
システム共有でも実現可能である。なお、同図でメモリ
24は簡略化して示しているが、本実施例では図2と同
様に、コントローラ毎に設けられている。
FIG. 14 shows a control operation processing 201a of the transmission controller 2a, in which an operation of the input section of the logic 301 is performed and the operation result is transmitted, and the control operation means 201b of the reception controller 2b converts the received operation result. A configuration for performing an operation of an output unit of the logic 301 is conceptually shown based on the configuration. Although the transfer memory 24 is provided for each controller,
It can also be realized by system sharing. Although the memory 24 is shown in a simplified manner in this figure, in this embodiment, it is provided for each controller as in FIG.

【0054】ロジック入力部301aは送信側コントロ
ーラ2aで演算され、信号@が0のとき信号,はと
もに0になる。送信データに編集された信号,の演
算結果は、転写メモリ24のアドレス0〜N番地(コン
トローラ2aの送信データ領域)のn番地とn+1番地
にそれぞれ格納される。一方、受信側コントローラ2b
で演算されるロジック出力部301bは、転写メモリ2
4のn番地とn+1番地から読みだされ、ともに0のデ
ータを入力とするFF回路の演算を行い、出力は前回
値と同じになる。この結果は、プロセス出力処理S40
を経てプラントの所定部の動作を前回状態に保持する。
The logic input section 301a is operated by the transmission-side controller 2a. When the signal @ is 0, both the signals become 0. The operation result of the signal edited into the transmission data is stored at addresses n to n + 1 of addresses 0 to N of the transfer memory 24 (transmission data area of the controller 2a). On the other hand, the receiving controller 2b
Is output from the transfer memory 2
The data is read out from the addresses n and n + 1 of 4 and both are operated by the FF circuit which inputs 0 data, and the output becomes the same as the previous value. The result is the process output process S40
After that, the operation of the predetermined part of the plant is maintained in the previous state.

【0055】ところで、コントローラ2aと2bは非同
期に動作しているので、送信側で転写メモリ24のアド
レスnに信号のデータ0を書きこみ、アドレスn+1
に0を書き込む前に、受信側でアドレスn,n+1から
データを読みだす可能性がある。このとき、アドレスn
+1に旧データとして1が残っていたとすると、ロジッ
ク出力部301bはリセット演算を行うので、FF回路
の出力は前回値を保持しなければならないところ0に
リセットしてしまう。
Since the controllers 2a and 2b are operating asynchronously, the transmission side writes signal data 0 to the address n of the transfer memory 24, and the address n + 1
There is a possibility that data is read from addresses n and n + 1 on the receiving side before 0 is written to the address. At this time, the address n
If 1 remains as old data at +1, the logic output unit 301b performs a reset operation, so that the output of the FF circuit is reset to 0 where the previous value must be held.

【0056】ちなみに、前回値が1を出力して所定動作
をインターロックしていた場合、これが解除されてしま
うので、プラントの安全が損なわれる事態も生じかねな
い。しかも、このような簡単なロジックであっても、数
十〜数百ミリ秒で繰り返される一瞬の経過の中で、不具
合の原因を突き止めるのは容易なことではない。さら
に、ロジックが入り組み多数になると、人間の能力では
ほとんど困難になる。
By the way, when the previous value is 1 and the predetermined operation has been interlocked, this is released, and the safety of the plant may be impaired. Moreover, even with such a simple logic, it is not easy to find the cause of the defect in the elapse of an instant repeated several tens to several hundreds of milliseconds. Furthermore, when logic becomes intricate, it becomes almost difficult with human ability.

【0057】しかし本実施例によれば、送信バッファ2
12aから転写メモリ24aへ送信データを転送する際
に、送信同期処理手段205aによって所定長(たとえ
ば、1〜N番地)のデータブロックの先頭(アドレス
0)と末尾(アドレスN)に、一回の送信データ編集処
理によることを示す同一の識別子(前回01、今回0
2)を挿入している。一方、受信側では、転写メモリ2
4bからの読出しに際して、受信同期処理手段204b
により、データブロック毎にその先頭と末尾の識別子を
比較し、一致する場合のみブロック内のデータを有効処
理している。
However, according to the present embodiment, the transmission buffer 2
When transmitting the transmission data from the transfer memory 12a to the transfer memory 24a, the transmission synchronization processing means 205a adds one time to the beginning (address 0) and the end (address N) of a data block of a predetermined length (for example, addresses 1 to N). The same identifier indicating the transmission data editing process (previous 01, current 0
2) is inserted. On the other hand, on the receiving side, the transfer memory 2
4b, the reception synchronization processing means 204b
Thus, the head and tail identifiers are compared for each data block, and only when the identifiers match, the data in the block is validly processed.

【0058】したがって、上記のようにアドレスnとn
+1番地のデータが新旧混在している場合は無効にな
る。この結果、コントローラはデータの同期が確認され
るまで、前回データによる制御を維持するので、非同期
のデータによる誤動作の危険は回避される。
Therefore, as described above, addresses n and n
If the data at address +1 is mixed with the old and new data, it becomes invalid. As a result, the controller maintains the control based on the previous data until the data synchronization is confirmed, thereby avoiding the risk of malfunction due to asynchronous data.

【0059】現実の制御システムにおいては、図4に示
したコントローラの周期動作に対して、サンプリング/
伝送周期が十分小さければ(たとえば1/100以
下)、この問題は生じなが、多くの場合、伝送周期はそ
のように短くはできない、また、コントローラの送受信
動作が割込みによって中断される場合は、この危険性が
極めて高くなる。
In an actual control system, sampling / sampling is performed with respect to the cyclic operation of the controller shown in FIG.
This problem does not occur if the transmission period is sufficiently small (for example, 1/100 or less), but in many cases, the transmission period cannot be so short, and if the transmission / reception operation of the controller is interrupted by an interrupt, This danger is extremely high.

【0060】しかし、非同期システムにおいても、本発
明によるデータの同期処理を行えば、メモリ転写のよう
に処理負荷の軽い伝送方式の採用が可能になり、これに
によって制御演算処理を高速化できると共に、制御の安
全性も確保できる。
However, even in an asynchronous system, if the data synchronous processing according to the present invention is performed, it is possible to adopt a transmission system with a light processing load such as memory transfer, whereby the control arithmetic processing can be sped up, and In addition, safety of control can be secured.

【0061】[0061]

【発明の効果】本発明のデータ伝送方式によれば、送信
側と受信側が非同期に動作している場合においても、デ
ータの先頭と末尾に識別子を付与して送信する簡易な方
法で受信データの同時性が確保できるので、データ伝送
の処理効率が向上し高速伝送が可能になる効果がある。
According to the data transmission method of the present invention, even when the transmitting side and the receiving side are operating asynchronously, the received data can be transmitted by assigning identifiers to the beginning and end of the data and transmitting the data. Since synchronization can be ensured, there is an effect that the processing efficiency of data transmission is improved and high-speed transmission becomes possible.

【0062】本発明の非同期制御システムによれば、コ
ントローラ間のデータ伝送にメモリ転写方式を採用でき
るので、送受信処理が効率化され制御演算の高速化が実
現できる効果がある。しかも、データの同時性は確保さ
れているのでシステム動作の信頼性、安全性も保証され
る。
According to the asynchronous control system of the present invention, since the memory transfer method can be used for data transmission between controllers, there is an effect that transmission / reception processing is made more efficient and control operation is performed at higher speed. Moreover, since the data synchronization is ensured, the reliability and safety of the system operation are also guaranteed.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明のデータ伝送方式の実施例を示すコント
ローラの機能構成図である。
FIG. 1 is a functional configuration diagram of a controller showing an embodiment of a data transmission system of the present invention.

【図2】本発明を適用する非同期制御システムの構成図
である。
FIG. 2 is a configuration diagram of an asynchronous control system to which the present invention is applied.

【図3】伝送プロセッサの構成図である。FIG. 3 is a configuration diagram of a transmission processor.

【図4】図1のコントローラの制御動作を示すフローチ
ャートである。
FIG. 4 is a flowchart showing a control operation of the controller of FIG. 1;

【図5】送信処理の手順を示すフローチャートである。FIG. 5 is a flowchart illustrating a procedure of a transmission process.

【図6】送信処理におけるデータブロックの構成を示す
説明図である。
FIG. 6 is an explanatory diagram showing a configuration of a data block in a transmission process.

【図7】受信同期処理の手順を示すフローチャートで、
(a)は第一の実施例、(b)は第二の実施例である。
FIG. 7 is a flowchart showing a procedure of a reception synchronization process;
(A) is the first embodiment, and (b) is the second embodiment.

【図8】受信処理における有効処理データの構成を示す
説明図である。
FIG. 8 is an explanatory diagram showing a configuration of valid processing data in a receiving process.

【図9】本発明の第一の実施例により、非同期データを
正確に判別する場合の説明図である。
FIG. 9 is an explanatory diagram in a case where asynchronous data is accurately determined according to the first embodiment of the present invention.

【図10】第一の実施例により、非同期データを不正確
に判別する場合の説明図である。
FIG. 10 is an explanatory diagram in a case where asynchronous data is incorrectly determined according to the first embodiment.

【図11】本発明の第二の実施例により、非同期データ
を正確に判別する場合の説明図である。
FIG. 11 is an explanatory diagram when accurate determination of asynchronous data is performed according to the second embodiment of the present invention.

【図12】従来の非同期システムで、データの同期がと
れなくなるケースを説明する説明図である。
FIG. 12 is an explanatory diagram illustrating a case where data synchronization cannot be achieved in a conventional asynchronous system.

【図13】本発明の適用例を説明する一制御ロジックの
構成図である。
FIG. 13 is a configuration diagram of one control logic explaining an application example of the present invention.

【図14】上記制御ロジックの制御演算を行う非同期シ
ステムの説明図である。
FIG. 14 is an explanatory diagram of an asynchronous system that performs a control operation of the control logic.

【符号の説明】[Explanation of symbols]

1…ネットワーク、2…コントローラ、3…プロセス入
出力装置、4…伝送プロセッサ、21…CPU、22…
主メモリ、23…システムバス、24…転写メモリ、2
5…モデム、201…制御演算処理手段、202…受信
データ編集処理手段、203…送信データ編集処理手
段、204…受信データ同期処理手段、205…送信デ
ータ同期処理手段、210…ワークデータエリア、21
1…転写受信バッファ、212…転写送信バッファ、3
01…制御ロジック。
DESCRIPTION OF SYMBOLS 1 ... Network, 2 ... Controller, 3 ... Process input / output device, 4 ... Transmission processor, 21 ... CPU, 22 ...
Main memory, 23: System bus, 24: Transfer memory, 2
5: Modem, 201: Control operation processing means, 202: Received data editing processing means, 203: Transmission data editing processing means, 204: Received data synchronization processing means, 205: Transmission data synchronization processing means, 210: Work data area, 21
1: transfer receiving buffer, 212: transfer transmission buffer, 3
01 ... control logic.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 飛田 治哉 茨城県日立市大みか町五丁目2番1号 株式会社日立製作所 大みか工場内 (56)参考文献 特開 昭63−276947(JP,A) (58)調査した分野(Int.Cl.7,DB名) H04L 7/04 H04L 7/00 ──────────────────────────────────────────────────続 き Continuation of the front page (72) Inventor Haruya Tobita 5-2-1 Omikacho, Hitachi City, Ibaraki Prefecture Inside the Hitachi, Ltd. Omika Plant (56) References JP-A-63-276947 (JP, A) (58) Field surveyed (Int. Cl. 7 , DB name) H04L 7/04 H04L 7/00

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】伝送路に接続され互いに非同期に動作して
いる複数の処理装置間で、データの送受を行うデータ伝
送方法において、送信側では 一回の送信処理による送信データの前後に同
時性を示す識別子を付与して送信し、受信側では受信デ
ータの前後に付与されている前記識別子を比較し、同時
性が認められる場合にのみ受信処理することを特徴とす
るデータ伝送方法。
In a data transmission method for transmitting and receiving data between a plurality of processing devices connected to a transmission path and operating asynchronously with each other, a transmitting side transmits and receives data before and after transmission data by one transmission process.
Transmits data with an identifier indicating timeliness, and the receiving side
Compare the identifiers given before and after the
A data transmission method characterized in that a reception process is performed only when the transmission is recognized .
【請求項2】 請求項1において、 前記処理装置は送受信データ記憶装置に対し、前記送信
データの書込み及び前記受信データの読出しを行う際
に、前記書込みのアドレス順と同順または逆順に前記読
出しを 行うことを特徴とするデータ伝送方法。
2. The transmission device according to claim 1, wherein the processing device transmits the transmission data to a transmission / reception data storage device.
When writing data and reading the received data
The read address in the same or reverse order as the write address order.
Data transmission method and performing out.
【請求項3】伝送路に接続され互いに非同期に動作して
いる複数の処理装置間で各々伝送プロセッサを備え、デ
ータの送受信を行うデータ伝送方法において、 送信側処理装置による送信データ編集処理の中断時に、
送信側伝送プロセッサによる所定長データブロック単位
の送信処理(書き込み)が行われる場合または受信側伝
送プロセッサによる前記データブロック単位の受信処理
(読出し)中に受信側処理装置による受信データ編集処
理が中断される場合を検出したとき、受信データを無効
にすることを特徴とするデータ伝送方法。
3. A data transmission method for transmitting and receiving data between a plurality of processing devices connected to a transmission path and operating asynchronously with each other, wherein a transmission data editing process is interrupted by a transmission side processing device. Sometimes
When transmission processing (writing) of a predetermined length data block unit is performed by the transmission-side transmission processor or during reception processing (reading) of the data block unit by the reception-side transmission processor, reception data editing processing by the reception-side processing device is interrupted. A data transmission method for invalidating received data when detecting a case in which data is transmitted.
【請求項4】伝送路に接続され互いに非同期に動作して
いる複数の処理装置間で、データの送受を行うデータ伝
送装置において、 送受信するデータを処理装置毎に定められた領域に一時
記憶する送受信データ記憶装置と、 同期の取れているデータに同時性を示す識別子を付与し
て、前記記憶装置の自処理装置の記憶領域に書込む送信
同期処理手段と、前記記憶装置の他の処理装置の記憶領
から読出したデータに付与されている前記識別子の同
時性を判定する受信同期処理手段を有する前記処理装置
を具備することを特徴とするデータ伝送装置。
4. A data transmission apparatus for transmitting and receiving data between a plurality of processing apparatuses connected to a transmission path and operating asynchronously with each other, wherein data to be transmitted and received is temporarily stored in an area defined for each processing apparatus. A transmission / reception data storage device, transmission synchronization processing means for assigning an identifier indicating synchronization to synchronized data and writing the data in a storage area of its own processing device of the storage device, and another processing device of the storage device Memory of
Of the identifier given to the data read from the
A data transmission device comprising the processing device having reception synchronization processing means for determining temporality .
【請求項5】伝送路に接続され互いに非同期に動作して
いる複数のコントローラ間で、データを取り合いながら
制御する非同期制御システムにおいて、 前記コントローラは、制御演算処理手段、送信データ処
理手段、受信データ処理手段および自コントローラの送
信データと他コントローラからの受信データを送受し転
写メモリに記憶する伝送プロセッサを備え、 前記送信データ処理手段は、同期の取れている送信デー
タを所定長さのデータブロック単位に他コントローラの
前記転写メモリに送信することを特徴とする非同期伝送
制御システム。
5. An asynchronous control system for controlling a plurality of controllers connected to a transmission line and operating asynchronously with each other while exchanging data, the controller comprising: a control operation processing unit; a transmission data processing unit; Processing means and a transmission processor for transmitting and receiving transmission data of the own controller and reception data from the other controller and storing the transmission data in a transfer memory, wherein the transmission data processing means converts synchronized transmission data into data block units of a predetermined length. Wherein the data is transmitted to the transfer memory of another controller.
JP5194476A 1993-08-05 1993-08-05 Data transmission method and apparatus, and asynchronous control system Expired - Fee Related JP3029170B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5194476A JP3029170B2 (en) 1993-08-05 1993-08-05 Data transmission method and apparatus, and asynchronous control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5194476A JP3029170B2 (en) 1993-08-05 1993-08-05 Data transmission method and apparatus, and asynchronous control system

Publications (2)

Publication Number Publication Date
JPH0750661A JPH0750661A (en) 1995-02-21
JP3029170B2 true JP3029170B2 (en) 2000-04-04

Family

ID=16325185

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5194476A Expired - Fee Related JP3029170B2 (en) 1993-08-05 1993-08-05 Data transmission method and apparatus, and asynchronous control system

Country Status (1)

Country Link
JP (1) JP3029170B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4837361B2 (en) * 2005-10-28 2011-12-14 メタウォーター株式会社 Transmission system, data transmission device, data reception device
JP5544099B2 (en) * 2009-02-27 2014-07-09 株式会社日立製作所 Controller communication method and controller communication device
JP5377448B2 (en) * 2010-09-10 2013-12-25 株式会社日立製作所 Control device programming tool and control device program creation support method
JP5967073B2 (en) * 2011-02-21 2016-08-10 富士通株式会社 Processor management method
JP6235259B2 (en) * 2013-07-17 2017-11-22 株式会社日立製作所 COMMUNICATION CONTROL DEVICE, COMMUNICATION CONTROL METHOD, AND COMMUNICATION CONTROL SYSTEM

Also Published As

Publication number Publication date
JPH0750661A (en) 1995-02-21

Similar Documents

Publication Publication Date Title
US5019966A (en) Dual processors using busy signal for controlling transfer for predetermined length data when receiving processor is processing previously received data
US4494190A (en) FIFO buffer to cache memory
EP0009678A1 (en) Computer input/output apparatus
JPH02238553A (en) Multiprocessor system
JPH01277928A (en) Printer
JP2002149212A (en) Redundant programmable controller for equalizing control data and equalization method
JP3029170B2 (en) Data transmission method and apparatus, and asynchronous control system
US4429382A (en) Microprocessor multiplexer method and apparatus for bisynchronous data
JPS63228855A (en) Communication controller
JPS63228856A (en) Communication controller
JPH0624395B2 (en) Data communication device
JP2581041B2 (en) Data processing device
JP3146864B2 (en) Unidirectional loop transmission circuit
JPS6130149A (en) Packet signal transfer system
JP2634631B2 (en) Transmission control method
JP4206524B2 (en) Printer control device
JPS6386941A (en) Frame interrupting system
JP2708366B2 (en) Data processing system and auxiliary control device
JPH01212994A (en) Communication control equipment
JPH077954B2 (en) Control device
JPH02162860A (en) Communication method between master station versus plural slave stations
Szabados INDUSTRIAL LAN USING DISTRIBUTED MICROPROCESSORS
Storoshchuk et al. Industrial Lan Using Distributed Microprocessors
JPH0235500B2 (en)
JPH04313137A (en) Parallel processing method

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080204

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090204

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100204

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20100204

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20110204

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20120204

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20120204

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20130204

Year of fee payment: 13

LAPS Cancellation because of no payment of annual fees