JPH0433180B2 - - Google Patents
Info
- Publication number
- JPH0433180B2 JPH0433180B2 JP60205588A JP20558885A JPH0433180B2 JP H0433180 B2 JPH0433180 B2 JP H0433180B2 JP 60205588 A JP60205588 A JP 60205588A JP 20558885 A JP20558885 A JP 20558885A JP H0433180 B2 JPH0433180 B2 JP H0433180B2
- Authority
- JP
- Japan
- Prior art keywords
- transmission
- data
- station
- terminal
- loop
- 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
Links
Landscapes
- Small-Scale Networks (AREA)
Description
本発明は、交信を制御する主局(センタ装置と
もいう)と、複数の端末局(端末ともいう)とを
順次ループ状の伝送路(単にループともいう)を
介して接続したループ式データ伝送システム(ル
ープ伝送システムともいう)において、局の送信
データがループを2周以上巡つて受信エラーを生
ずることを防ぐための装置に関する。
The present invention provides loop data transmission in which a main station (also referred to as a center device) that controls communication and a plurality of terminal stations (also referred to as terminals) are sequentially connected via a loop-shaped transmission path (also simply referred to as a loop). The present invention relates to a device for preventing transmission data from a station from going around the loop more than once and causing a reception error in a system (also called a loop transmission system).
この種のループ式データ伝送システムでは、ル
ープ上に接続された各局(センタ装置や複数の端
末)は、受信端子から受信したデータを送信端子
を径由して隣接の局へとバイパス伝送し、データ
を順次次局へ伝送することにより、ループ上をデ
ータが1周するようにしてデータの送受信を行つ
ている。また、ループ伝送では一旦送信されたデ
ータがループを2周以上回ると、次に送信する局
のデータと重なるため、サムチエツクエラーが生
じたり、伝送キヤラクタ数が多くなつたりして伝
送エラーとなるという問題点がある。そこで同一
データがループを2周以上回わらないようにする
ため、データを送信する局は、データを送信する
と同時に、ループを1周してもどつてくるデータ
を受信し、それが自分で送信したデータであれ
ば、以後は次の局へバイパスさせないように制御
しなければならない。
ところが、受信したデータが自分で送信したデ
ータであるかどうかを判定しながら、ループ上に
データを戻してゆく制御を当該装置内のマイクロ
コンピユータで行う場合、伝送制御のソフトウエ
アに負担がかかり、またこのようにデータを転送
するため、他の仕事を行う能力が低下するととも
に、伝送遅れが生じるという問題点がある。
この問題点を解決するためには、データを送信
すると同時に、送信したデータがループを1周し
てもどつてくる時間(1周伝送時間という)を想
定したタイマ値をセツトし、そのタイマがタイム
アツプしたのちは、受信データのバイパスを停止
する方法らある。
しかしながら、この方法では伝送ループを構成
する端末の台数や、伝送路の距離がシステムによ
り異なるため、ループ1周伝送時間をシステムご
とにそれぞれ測定し、タイマ値をセツトしなけれ
ばならない。またその後もシステムの変更によ
り、端末の台数や伝送路の距離が変わると、その
たびにタイマ値を変更しなければならないという
問題点がある。
そこで、タイマ値を、システムの最大規模時を
想定した1周伝送時間に固定する方法もあるが、
タイマ値がオーバするまで、他の端末がデータを
送信することができないため、これではループ1
周伝送時間の少ないシステムであつても、結果的
に伝送全体の時間が遅くなるという問題点が生じ
る。
In this type of loop data transmission system, each station (center device or multiple terminals) connected on the loop bypass-transmits data received from a receiving terminal to an adjacent station via a transmitting terminal. By sequentially transmitting data to the next station, the data is sent and received as it goes around the loop once. In addition, in loop transmission, once the transmitted data goes around the loop more than once, it overlaps with the data of the next transmitting station, resulting in a thumb check error or an increase in the number of transmitted characters, resulting in a transmission error. There is a problem. Therefore, in order to prevent the same data from going around the loop more than once, the station transmitting data receives the data that comes back after going around the loop once, and then transmits the data itself. If it is data, it must be controlled so that it is not bypassed to the next station. However, if the microcomputer within the device controls the process of returning the data to the loop while determining whether the received data is the data that was sent by the device itself, this places a burden on the transmission control software. Furthermore, since data is transferred in this manner, there are problems in that the ability to perform other tasks is reduced and transmission delays occur. To solve this problem, at the same time as sending data, set a timer value that assumes the time it takes for the sent data to return after going around the loop once (referred to as one round transmission time), and set the timer value to After that, there are ways to stop bypassing the received data. However, in this method, since the number of terminals constituting the transmission loop and the distance of the transmission path vary depending on the system, it is necessary to measure the transmission time for one round of the loop and set the timer value for each system. Further, there is a problem in that the timer value must be changed each time the number of terminals or the distance of the transmission path changes due to changes in the system. Therefore, there is a method of fixing the timer value to the one round transmission time assuming the maximum scale of the system, but
Since other terminals cannot send data until the timer value expires, this will cause loop 1.
Even in a system with a short transmission time, a problem arises in that the overall transmission time is delayed as a result.
この発明は、ループ式データ伝送システムにお
いて、前記の問題点を除去し、データの送信局で
ループ上のデータがもどつてくることを鑑視する
ためのソフトウエアの負担を軽減するとともに、
ループ1周伝送時間の人手による測定やタイマ値
のセツトのわずらわさがなく、かつ、伝送遅れを
最小とすることができる、伝送エラー防止装置を
提供することを目的とする。
The present invention eliminates the above-mentioned problems in a loop data transmission system, reduces the burden on software at a data transmitting station to check whether data on the loop returns, and
It is an object of the present invention to provide a transmission error prevention device that does not require the trouble of manually measuring the transmission time for one round of a loop or setting timer values, and can minimize transmission delays.
この発明の要点は、予め、所定の条牛、例えば
主局の電源投入時や、ループ伝送路が切断もしく
はコネクタのはずれ等によるループ断状態から正
常ループにもどつた時などにおいて、主局がルー
プ1周伝送時間測定のための特別の交信を行つ
て、1周伝送時間データを作成し、次に主局は、
端末との通常の交信際、端末に送る交信データ内
に、先に作成した前記1周伝送時間データを含め
て、全端末に対し送信し、これによりループ上の
各局は、この1周伝送時間データを基として、送
信モード時には、受信バイパスモードに切換える
までのデータバイパス禁止期間を設けたり、他
方、受信バイパスモードから送信モードに入ると
きは、他局の送信データを受信したのち送信モー
ドに入るまでの時間を定めるようにして、伝送動
作のタイミングを最適化するようにした点にあ
る。
換言すれば本発明の要点は、伝送を制御する主
局、複数の端末局、前記の各局を順次ループ状に
結合し、所定の方向にデータを伝送する伝送路を
備え、各局は、常に伝送路の受信側の隣接局を介
しデータを受信し得るとともに、受信バイパスモ
ードにあるときは、さらにこの受信データをその
まま伝送路の送信側の隣接局にバイパス送信し、
また送信モードにあるときは、前記送信側の隣接
局にデータを送信し、かつこの間前記のバイパス
を断つ方法でデータ伝送を行い、少くとも主局は
各端末局とデータ交信を行うようにしたループ伝
送システムにおいて、
主局に設けられ、所定の条件(主局の電源ON
時、ループ断線復旧の検出時など)で、全端末を
受信バイパスモードに保ち、所定の時間測定用デ
ータ(1周伝送時間測定用データなど)を、その
送信側の隣接局に送信すると共に、この送信のの
ちその受信側の隣接局から伝送路を1周した前記
時間測定用データを受信するまでの1周伝送時間
を測定する手段(マイクロコンピユータ、1周伝
送時間測定タイマなど)と、同じく設けられ、こ
の測定に基づき、少くとも該時間を含む所定の待
機時間(1周伝送時間データなど)を全ての端末
局に送信する手段(マイクロコンピユータなど)
と、各局に設けられ、当該局が送信を終了したの
ちは、前記待機時間が経過するまでその送信モー
ドを保つたのち、受信バイパスモードに切換える
手段(マイクロコンピユータなど)とを備えるよ
うにした点にある。
The key point of this invention is that the main station loops in a predetermined condition in advance, such as when the power is turned on to the main station or when the loop transmission path returns to a normal loop state from a disconnected state due to disconnection or disconnection of a connector. The main station performs special communication to measure the one-round transmission time, creates one-round transmission time data, and then
During normal communication with a terminal, the previously created one-round transmission time data is included in the communication data sent to the terminal and sent to all terminals, so that each station on the loop knows this one-round transmission time. Based on the data, when in transmit mode, we set a data bypass prohibition period until switching to receive bypass mode, and on the other hand, when entering transmit mode from receive bypass mode, we enter transmit mode after receiving the transmit data from another station. The key point is that the timing of the transmission operation is optimized by determining the time until the end of the transmission. In other words, the main point of the present invention is that a main station that controls transmission, a plurality of terminal stations, and each of the above stations are sequentially connected in a loop, and that each station is equipped with a transmission line that transmits data in a predetermined direction. can receive data via an adjacent station on the receiving side of the transmission path, and when in reception bypass mode, further bypass-transmits this received data as it is to an adjacent station on the transmission side of the transmission path,
Furthermore, when in the transmission mode, data is transmitted to the adjacent station on the sending side, and data transmission is performed by cutting off the bypass during this time, so that at least the main station communicates data with each terminal station. In a loop transmission system, the main station is equipped with a
(when detecting loop breakage recovery, etc.), all terminals are kept in reception bypass mode, and predetermined time measurement data (data for measuring one round transmission time, etc.) is transmitted to the adjacent station on the transmitting side. After this transmission, a means (a microcomputer, a timer for measuring one round transmission time, etc.) for measuring one round transmission time until the time measurement data which has made one round of the transmission line is received from the adjacent station on the receiving side, means (such as a microcomputer) for transmitting a predetermined waiting time (such as one-round transmission time data) including at least this time to all terminal stations based on this measurement;
and a means (such as a microcomputer) provided in each station for maintaining the transmission mode until the waiting time has elapsed after the station has finished transmitting, and then switching to the reception bypass mode. It is in.
以下第1図〜第5図に基づいて本発明の実施例
を説明する。第1図は本発明の一実施例としての
主局の要部動作をを説明するタイムチヤート、第
2図は同じく、主局と端末間の交信の伝送フオー
マツトをを示す図、第3図は同じく、各局内のル
ープ伝送制御回路の構成を示すブロツク図、第4
図は同じく、主局が送信する1周伝送時間測定用
データの構成を示す図、第5図は同じく、ループ
式伝送システムルの構成を示すブロツク図であ
る。なお各図において同一の符号は同一または相
当部分を示す。また信号レベル“High”,“Low”
は単にH,Lと記す。
第5図はループ式データ伝送システムの概略構
成図であり、主局01と各端末02(021〜0
2o)は伝送路03でループ状に接続されている。
通常交信時は主局01の送信データは送信端子2
から出力されて端末021を経由して端末022,
……,端末02o-1,端末02oとつぎつぎに伝送
され、受信端子1を通つて再び主局01にもどる
ように伝送路が構成されている。これにより主局
01の送信データは、端末021〜02oまですべ
ての端末で受信される。各端末021〜02oは主
局01からの端末を指定する送信データを受信す
ると、自端末に予めセツトされたアドレスと主局
01からの指定アドレスとを比較し、一致してい
れば主局01からの送信データに引きつづき自端
末が持つているデータを送出するように構成され
ている。送信を指定された端末がデータをループ
に送出している期間は他端末および主局は受信状
態となり、指定された端末のみがループを使用し
て自アドレスおよび自端末データを伝送すること
になる。このため、主局01およびすべての端末
は送信モードと受信バイパスモードのいずれかに
なり、受信バイパスモード時には自己内部に伝送
データを取込むとともに、次の伝送路に伝送デー
タをバイパスさせる機能を有するように構成され
る。このように、指定された端末からの伝送デー
タはループを1周して自端末にもどるため、受信
バイパスモードとなつている主局01や他の全端
末はデータを受信可能であり、送信されている伝
送データ内には送信先の端末アドレスおよび端末
データが含まれているので各端末は受信データ内
のアドレスを自己にセツトされたアドレスデータ
と対比することにより、自端末宛のデータを取込
み、このようにして、指定端末同士のデータ伝送
が可能であり、また主局は端末データの受信のほ
か、端末間の交信データをモニタすることができ
る。
第3図は主局および端末に設けられているルー
プ伝送制御回路04のブロツク構成図である。
同図において、1は受信端子、2は送信端子、
3,4はレベル変換器、5は送信信号ライン、6
はスタートビツト検出器、7は同期クロツク発生
器、8はサンプリング回路、9,10はアンド回
路、11はオア回路、12はインバータ回路、1
3は送信データ選択回路、14はスタートビツト
検出信号ライン、15は同期クロツク信号ライ
ン、16は受信バイパス信号ライン、17は送信
信号ライン、18は送受信切換信号ライン、19
はマイクロコンピユータ(以下についてはマイコ
ンとも呼ぶ)を示している。
このループ伝送制御回路動作は次の通りであ
る。レベル変換器3は受信信号をループ伝送制御
回路04内の信号電圧レベル(例えばTTLレベ
ル)の信号に変換する。変換された受信信号はス
タートビツト検出器6によりスタートビツトが検
出されると同期クロツク発生器7を起動する。サ
ンプリング回路8は同期クロツク発生器7からの
同期クロツク波形の立上り時に受信信号ライン5
の電圧レベルをサンプリングして同一レベル(例
えばTTLレベル)の受信バイパス信号ライン1
6へ出力する。送信データ選択回路13は送受信
切換信号ライン18の内容にしたがつて、受信時
にはバイパス信号ライン16の信号を、送信時に
は送信信号ライン17の信号をレベル変換器4へ
伝える。レベル変換器4は装置内使用電圧レベル
(TTLレベル)を再びこの装置の外部の信号へ変
換して次の装置へ伝える。
マイコン19はシリアル伝送を行う機能を有し
ており、シリアル信号受信時には送受信切換信号
ライン18を“H”レベルにするとともに、前記
の受信データのスタートビツトにより発生する同
期クロツク信号ライン15の同期クロツクの立上
り時に受信信号ライン5のレベルをサンプリング
することによりシリアルデータの読込みが可能と
なる。またシリアル信号送信時は送受信切換信号
ライン18を“L”レベルにするとともに送信信
号ライン17よりシリアル送信データを出力でき
る。このようにして、レベル変換器3により変換
された受信信号はサンプリング回路8を経由して
本装置をバイパスし、再度レベル変換器4により
伝送路03上に再送信されるようにすることがで
きる。このような動作により、マイコン19は他
局から受信し、また必要に応じて自局内の所有デ
ータを送信することができる。
さて主局01はその電源ON直後に、前記の通
常交信に先立ち、マイコン19の出力の送受信切
替信号S4を送信側“L”レベルとし、送信端子
2から第4図に示す。この例では2ワードの1周
伝送時間測定用データLDを出力し、この測定用
データLDが第5図に示すループ伝送路03を1
周し第3図に示す受信端子1を経由して自局01
内のマイクロコンピユータ19へ入力されるまで
の、1周伝送時間LT1を計測する。
第1図はこの1周伝送時間LT1の計測のタイ
ミング図であり、同図1は主局における電源ON
のタイミングを、2は1周伝送時間タイマLTM
の計時のタイミングを、3は主局の送信端子2か
ら1周伝送時間測定用データLDが送信されるタ
イミングを、4は主局の受信端子1から前記測定
用データLDが受信されるタイミングをそれぞれ
示す。
第3図を参照しつつ第1図を説明すると、主局
01のマイコン19はその電源ONを判別する
と、主局01の送信端子2から1周伝送時間測定
用データLDを出力する直前(時点t1)に、マ
イコン19の内蔵の1周伝送時間測定タイマ
LTMを起動し、主局01が出力した1周時間測
定用データLDが時点t2に主局01の送信端子
1に入力されると、マイコン19は1周伝送時間
測定タイマLTMを停止し、測定タイマLTMの計
時データを1周伝送時間LT1とする。主局01
のマイコン19はこの計時データ(1周伝送時間
LT1)の信頼性を高めるため、この測定交信を
複数回行ない、測定された1周伝送時間LT1の
データの多数回一致により、正しい1周伝送時間
LT1を決定してもよい。また、第1図では、電
源ON時における測定交信のタイミングを示した
が、伝送ループが断たれた後、再びループが復帰
した時点でも、この時点を主局01のマイコン1
9が所定手順で判別して、同一のタイミングで1
周伝送時間の測定を実行すれば、システムの変更
に伴う。ループ長の変化があつても、自動的に1
周伝送時間の再セツトができる。
前記のようなループ1周伝送時間の測定によ
り、主局01内のマイコン19は1周伝送時間
LT1を、一定時間間隔になるように切り上げて、
数段階にわける圧縮処理を行う。即ち例えば、次
表のように、0〜32μsを32μs,33〜64μsを64μs,
………225〜256μsを256μsというように、32μsき
ざみで8段階として3ビツト(b2〜b0)の時間
情報(1周伝送時間データLT2という)で表す
ようにする。
Embodiments of the present invention will be described below based on FIGS. 1 to 5. FIG. 1 is a time chart explaining the operation of the main part of the main station as an embodiment of the present invention, FIG. 2 is a diagram showing the transmission format of communication between the main station and the terminal, and FIG. Similarly, block diagram 4 shows the configuration of the loop transmission control circuit in each station.
This figure similarly shows the structure of data for measuring one round transmission time transmitted by the main station, and FIG. 5 is a block diagram similarly showing the structure of the loop type transmission system. In each figure, the same reference numerals indicate the same or corresponding parts. Also, the signal level “High”, “Low”
are simply written as H and L. FIG. 5 is a schematic diagram of the loop data transmission system, in which the main station 01 and each terminal 02 (02 1 to 0
2o ) are connected in a loop through a transmission line 03.
During normal communication, the transmitted data of main station 01 is sent to transmission terminal 2.
is output from terminal 02 2 via terminal 02 1 ,
..., terminal 02o -1 , terminal 02o , and then returns to the main station 01 via the receiving terminal 1. As a result, the data transmitted from the main station 01 is received by all the terminals 02 1 to 02 o . When each terminal 021 to 02o receives the transmission data specifying the terminal from the main station 01, it compares the address set in advance for its own terminal with the specified address from the main station 01, and if they match, it sends the data to the main station. The terminal is configured to send data held by its own terminal following the data transmitted from station 01. During the period when the designated terminal is sending data to the loop, other terminals and the main station will be in the receiving state, and only the designated terminal will use the loop to transmit its own address and own terminal data. . For this reason, main station 01 and all terminals are in either transmit mode or receive bypass mode, and when in receive bypass mode, they have the function of importing transmitted data internally and bypassing the transmitted data to the next transmission path. It is configured as follows. In this way, the transmitted data from the specified terminal goes around the loop once and returns to its own terminal, so master station 01 and all other terminals that are in reception bypass mode can receive the data and are not sent. The transmitted data includes the destination terminal address and terminal data, so each terminal compares the address in the received data with the address data set for itself, and then imports the data destined for itself. In this way, data transmission between designated terminals is possible, and the main station can not only receive terminal data but also monitor communication data between terminals. FIG. 3 is a block diagram of the loop transmission control circuit 04 provided in the main station and the terminal. In the figure, 1 is a receiving terminal, 2 is a transmitting terminal,
3 and 4 are level converters, 5 is a transmission signal line, 6
is a start bit detector, 7 is a synchronous clock generator, 8 is a sampling circuit, 9 and 10 are AND circuits, 11 is an OR circuit, 12 is an inverter circuit, 1
3 is a transmission data selection circuit, 14 is a start bit detection signal line, 15 is a synchronous clock signal line, 16 is a reception bypass signal line, 17 is a transmission signal line, 18 is a transmission/reception switching signal line, 19
indicates a microcomputer (hereinafter also referred to as a microcomputer). The operation of this loop transmission control circuit is as follows. The level converter 3 converts the received signal into a signal at a signal voltage level (for example, TTL level) within the loop transmission control circuit 04. The converted received signal starts a synchronous clock generator 7 when a start bit is detected by the start bit detector 6. The sampling circuit 8 detects the received signal line 5 at the rising edge of the synchronous clock waveform from the synchronous clock generator 7.
By sampling the voltage level of the receiving bypass signal line 1 of the same level (e.g. TTL level)
Output to 6. The transmission data selection circuit 13 transmits the signal on the bypass signal line 16 during reception, and the signal on the transmission signal line 17 during transmission, to the level converter 4 according to the contents of the transmission/reception switching signal line 18. The level converter 4 converts the voltage level used within the device (TTL level) again into a signal external to this device and transmits it to the next device. The microcomputer 19 has a function to perform serial transmission, and when receiving a serial signal, it sets the transmission/reception switching signal line 18 to "H" level, and also outputs the synchronization clock on the synchronization clock signal line 15 generated by the start bit of the received data. By sampling the level of the received signal line 5 at the rising edge of , serial data can be read. Further, when transmitting a serial signal, the transmission/reception switching signal line 18 is set to "L" level, and serial transmission data can be output from the transmission signal line 17. In this way, the received signal converted by the level converter 3 can bypass this device via the sampling circuit 8 and be retransmitted onto the transmission line 03 by the level converter 4 again. . Through such operations, the microcomputer 19 can receive data from other stations, and can also transmit proprietary data within its own station if necessary. Immediately after power is turned on, the main station 01 sets the transmission/reception switching signal S4 output from the microcomputer 19 to the "L" level on the transmitting side, as shown in FIG. In this example, 2 words of one-round transmission time measurement data LD are output, and this measurement data LD connects the loop transmission line 03 shown in FIG.
local station 01 via reception terminal 1 shown in Figure 3.
The one-round transmission time LT1 until input to the microcomputer 19 within is measured. Figure 1 is a timing chart for measuring this one-round transmission time LT1.
2 is the one-round transmission time timer LTM
3 is the timing at which the one-round transmission time measurement data LD is transmitted from the transmission terminal 2 of the main station, and 4 is the timing at which the measurement data LD is received from the reception terminal 1 of the main station. Each is shown below. To explain FIG. 1 with reference to FIG. 3, when the microcomputer 19 of the main station 01 determines that the power is turned on, the microcomputer 19 of the main station 01 immediately before outputting data LD for measuring one round transmission time from the transmission terminal 2 of the main station 01 (at the point in time) t1), the microcontroller 19's built-in one-round transmission time measurement timer
When the LTM is started and the one-round time measurement data LD output by the main station 01 is input to the transmission terminal 1 of the main station 01 at time t2, the microcomputer 19 stops the one-round transmission time measurement timer LTM and performs the measurement. Let timer LTM clock data be one round transmission time LT1. Main station 01
The microcomputer 19 calculates this timing data (one round transmission time
In order to improve the reliability of LT1), this measurement communication is performed multiple times, and the correct one-round transmission time is determined by matching the data of the measured one-round transmission time LT1 many times.
LT1 may be determined. In addition, although Fig. 1 shows the timing of measurement communication when the power is turned on, even if the transmission loop is restored after being cut off, this point is also
9 makes a determination according to a predetermined procedure, and 1 at the same timing.
If the measurement of the transmission time is carried out, it will be accompanied by a change in the system. 1 automatically even if the loop length changes.
The transmission time can be reset. By measuring the transmission time for one round of the loop as described above, the microcomputer 19 in the main station 01 calculates the transmission time for one round of the loop.
Round up LT1 to a certain time interval,
Performs compression processing in several stages. For example, as shown in the table below, 0~32μs is 32μs, 33~64μs is 64μs,
...... 225 to 256 μs is expressed as 256 μs, and so on, and is expressed in 8 steps in 32 μs increments as 3-bit (b2 to b0) time information (referred to as one-round transmission time data LT2).
【表】
したがつて、ここでは256μs以上の1周伝送時
間LT1がループ1周伝送時間測定により得られ
た場合には、システムエラーとすることになる。
次に主局01は各端末02と特別交信を行う
か、又は第2図の伝送フオーマツトのような、端
末との通常交信によつて前記の1周伝送時間デー
タLT2を全端末に送信する。
即ち第2図Aは主局01と各端末02と通常交
信時の伝送フオーマツトで、同図Bは同図A中の
主局指令データDT1の詳細拡大図である。同図
Aにおいて、主局指令データDT1は、主局01
が端末02に発する指令と次に述べるデータを含
んだものである。また、DT2は局送信データ
で、前記主局指令データDT1に基づいて、指定
された各端末が順次主局からデータ(主局送信デ
ータ)を受信し、又は各端末から順次主局に送信
するデータ(端末局送信データ)の部分である。
次に第2図Bの主局指令データDT1の詳細拡
大図において、DT11,DT12はそれぞれ8
ビツトの第1、第2のキヤラクタで、第2キヤラ
クタDT12は第1キヤラクタDT11の反転デ
ータであり、伝送エラーチエツクのためのもので
ある。
また第1キヤラクタDT11はそれぞれ2,3
及び3ビツトの3つのデータ、即ち伝送モードデ
ータMD、端末ブロツクアドレスデータBA、及
び前述の1周伝送時間データLT2からなる。こ
こで伝送モードデータMDはこの指令の内容、つ
まり主局01から端末02側にデータを送信する
旨の指令、あるいは端末02側から主局01がデ
ータを受信する旨の指令等を示すデータである。
また端末ブロツクアドレスデータは、この交信
の対象となる端末02アドレスが属しているブロ
ツクのアドレスデータである。このブロツクアド
レスは、所定の複数個の端末アドレス群ごとに予
め、割付けられており、各端末アドレスは前記の
群内で交信の順序が予め定められているものであ
る。この端末ブロツクアドレスデータBAを端末
側に送信することによつて当該ブロツクアドレス
に属する各端末が交信準備状態に入り、第2図A
の局送信データDT2の部分で順次主局と交信を
行う訳である。
さて、通常交信において、まず主局か端末側に
主局指令データDT1を送信すると、ループ上の
すべての端末20は、主局01からこの2キヤラ
クタのデータを受信し、第1キヤラクタDT11
に含まれる信号モードデータMD、端末ブロツク
アドレスデータBAにしたがつて、引き続きデー
タを受信するか、データを送信するかを決定する
とともに、1周伝送時間データLT2を当該のマ
イコン19のメモリ上に記憶する。なお、ループ
1周伝送時間を示す1ビツトのデータLT2の重
みづけは、主局01および端末02各マイコン1
9のプログラムにより同一とされている。
主局01や端末02は送信モードで、送信端子
2より送信データを送出終了すると、第3図送受
信切替信号S4を送信側“L”レベルから送信バ
イパス側“H”レベルに切り替える時間を、1周
伝送時間LT2で定められた時間待つことにより、
この待機の間、受信データバイパス用のサンプリ
ング回路8の出力信号(受信バイパス信号S3)
は送信端子2側へ伝わらないため、自局の送信出
力データがループ03を2周することを防止でき
る。また、受信バイパスモードから送信モードへ
移るタイミングにといても、他の局が送信終了
後、一定時間データバイパスを停止する期間を待
つて、他局が全て受信バイパスモードに入つたの
ちに、送信モードへ切り替えることが可能となる
ため、送信したデータが途中で阻止されることが
ないように送信タイミングを作成することができ
る。[Table] Therefore, in this case, if the one-round transmission time LT1 of 256 μs or more is obtained by measuring the one-round transmission time of the loop, a system error will occur. Next, the main station 01 performs special communication with each terminal 02, or transmits the one-round transmission time data LT2 to all terminals by normal communication with the terminals as in the transmission format shown in FIG. That is, FIG. 2A shows the transmission format during normal communication between the main station 01 and each terminal 02, and FIG. 2B is a detailed enlarged view of the main station command data DT1 in FIG. 2A. In the figure A, the main station command data DT1 is the main station 01
This includes the command issued to terminal 02 and the data described below. In addition, DT2 is station transmission data, and each designated terminal sequentially receives data (main station transmission data) from the main station or transmits it from each terminal to the main station sequentially based on the main station command data DT1. This is the data (terminal station transmission data) part. Next, in the detailed enlarged view of the master station command data DT1 in Figure 2B, DT11 and DT12 are each 8
Of the first and second characters of the bit, the second character DT12 is the inverted data of the first character DT11, and is used for transmission error checking. In addition, the first character DT11 is 2 and 3, respectively.
and three 3-bit data, namely transmission mode data MD, terminal block address data BA, and the above-mentioned one-cycle transmission time data LT2. Here, the transmission mode data MD is data indicating the content of this command, that is, a command to transmit data from the main station 01 to the terminal 02 side, or a command that the main station 01 receives data from the terminal 02 side, etc. be. Further, the terminal block address data is the address data of the block to which the terminal 02 address that is the object of this communication belongs. These block addresses are assigned in advance to each predetermined plurality of terminal address groups, and the communication order of each terminal address within the group is predetermined. By transmitting this terminal block address data BA to the terminal side, each terminal belonging to the block address enters a communication preparation state, and as shown in FIG.
This means that communication with the main station is performed sequentially using the station transmission data DT2. Now, in normal communication, when the main station command data DT1 is first transmitted to the main station or the terminal side, all the terminals 20 on the loop receive these two character data from the main station 01, and the first character DT11
According to the signal mode data MD and terminal block address data BA contained in Remember. Note that the weighting of the 1-bit data LT2 indicating the transmission time for one round of the loop is determined by each microcomputer 1 of the main station 01 and terminal 02.
It is considered to be the same by the program No. 9. When the main station 01 and the terminal 02 are in the transmission mode and finish transmitting the transmission data from the transmission terminal 2, the time required to switch the transmission/reception switching signal S4 from the transmission side "L" level to the transmission bypass side "H" level in FIG. By waiting for the time determined by the transmission time LT2,
During this waiting period, the output signal of the sampling circuit 8 for bypassing the received data (receiving bypass signal S3)
Since the data is not transmitted to the transmission terminal 2 side, it is possible to prevent the transmission output data of the local station from going around the loop 03 twice. Also, regarding the timing of transitioning from reception bypass mode to transmission mode, after other stations have finished transmitting, wait for a certain period of time to stop data bypass, and then transmit after all other stations have entered reception bypass mode. Since it is possible to switch between modes, the transmission timing can be created so that the transmitted data will not be interrupted on the way.
以上の説明から明らかなように本発明によれ
ば、伝送を制御する主局と複数の端末局とをルー
プ状の伝送路を介して接続したループ式データ伝
送システムにおいて、主局の電源ON等の所定の
条件を判別して、主局が自動的に所定の時間計測
用データをループ上に送信し、この計測用データ
の送信時点から受信時点までのループ1周伝送時
間を求め、次にこの伝送時間に基づく所定の待機
時間を主局から全端末に送信し、各局は自局から
のデータ送信後はこの待機時間を経過するまで送
信モードを保つて、データのバイパスを行わない
ようにしたので、各局は伝送制御のソフトウエア
に負担をかけることなく、自局発信のデータが2
回以上ループを巡ることを防ぐことができる。
またシステム構成の相異や変更により、ループ
1周伝送時間が相異するようなつてもプログラム
変更なしで自動的に、前記待機時間を再設定する
ことができる。
As is clear from the above description, according to the present invention, in a loop data transmission system in which a main station that controls transmission and a plurality of terminal stations are connected via a loop-shaped transmission path, power-on of the main station, etc. The main station automatically transmits predetermined time measurement data onto the loop, calculates the transmission time for one round of the loop from the time of transmission of this measurement data to the time of reception, and then A predetermined standby time based on this transmission time is transmitted from the main station to all terminals, and after each station sends data, it maintains the transmission mode until this standby time has elapsed to avoid data bypass. As a result, each station can transmit data transmitted from its own station to two without putting a burden on the transmission control software.
This will prevent you from going through the loop more than once. Furthermore, even if the transmission time for one round of the loop differs due to differences or changes in the system configuration, the standby time can be automatically reset without changing the program.
第1図は本発明の一実施例としての主局の要部
動作を説明するタイムチヤート、第2図は同じ
く、主局と端末間の交信の伝送フオーマツトを示
す図、第3図は同じく、各局内のループ伝送制御
回路の構成を示すブロツク図、第4図は同じく、
主局が送信する1周伝送時間測定用データの構成
を示す図、第5図は同じく、ループ式データ伝送
システムの構成を示すブロツク図である。
01:主局、02(021〜02o):端末局
(端末)、03:伝送路、04:ループ伝送制御回
路、LD:1周伝送時間測定用データ、LTM:1
周伝送時間測定タイマ、LT1:1周伝送時間、
LT2:1周伝送時間データ、DT1:主局指令
データ、DT11:第1キヤラクタ。
FIG. 1 is a time chart explaining the operation of the main part of the main station as an embodiment of the present invention, FIG. 2 is a diagram showing the transmission format of communication between the main station and the terminal, and FIG. The block diagram shown in FIG. 4, which shows the configuration of the loop transmission control circuit in each station, is
Similarly, FIG. 5 is a block diagram showing the structure of a loop data transmission system. 01: Main station, 02 (02 1 to 02 o ): Terminal station (terminal), 03: Transmission path, 04: Loop transmission control circuit, LD: Data for measuring one round transmission time, LTM: 1
Cycle transmission time measurement timer, LT1: 1 cycle transmission time,
LT2: 1 round transmission time data, DT1: Main station command data, DT11: 1st character.
Claims (1)
各局を順次ループ状に結合し、所定の方向にデー
タを伝送する伝送路を備え、各局は、常に伝送路
の受信側の隣接局を介しデータを受信し得るとと
もに、受信バイパスモードにあるときは、さらに
この受信データをそのまま伝送路の送信側の隣接
局にバイパス送信し、また送信モードにあるとき
は、前記送信側の隣接局にデータを送信し、かつ
この間前記のバイパスを断つ方法でデータ伝送を
行い、少くとも主局は各端末局とデータ交信を行
うようにしたループ伝送システムにおいて、 主局に設けられ、所定の条件で、全端末を受信
バイパスモードに保ち、所定の時間測定用データ
を、その送信側の隣接局に送信すると共に、この
送信ののちその受信側の隣接局から伝送路を1周
した前記時間測定用データを受信するまでの1周
伝送時間を測定する手段と、同じく設けられ、こ
の測定に基づき、少くとも該時間を含む所定の待
機時間を全ての端末局に送信する手段と、各局に
設けられ、当該局が送信を終了したのちは、前記
待機時間が経過するまでその送信モードを保つた
のち、受信バイパスモードに切換える手段とを備
えたことを特徴とするループ伝送システムにおけ
る伝送エラー防止装置。[Claims] 1. A main station that controls transmission, a plurality of terminal stations, and a transmission line that sequentially connects each of the stations in a loop and transmits data in a predetermined direction, and each station is always connected to the transmission line. It is possible to receive data via the adjacent station on the receiving side, and when in reception bypass mode, further bypass-transmits this received data as it is to the adjacent station on the transmission side of the transmission path, and when in transmission mode, the above-mentioned In a loop transmission system in which data is transmitted to an adjacent station on the transmitting side and data is transmitted by cutting off the bypass described above, at least the main station communicates with each terminal station. Under predetermined conditions, all terminals are kept in reception bypass mode, and predetermined time measurement data is transmitted to the adjacent station on the transmitting side, and after this transmission, the transmission line is disconnected from the adjacent station on the receiving side. Means for measuring the transmission time for one round until receiving the time measurement data that has circulated, and means for transmitting a predetermined waiting time including at least the time to all terminal stations based on this measurement. and a means provided at each station for maintaining the transmission mode until the standby time has elapsed after the station has finished transmitting, and then switching to the reception bypass mode. Transmission error prevention device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60205588A JPS6266741A (en) | 1985-09-18 | 1985-09-18 | Transmission error preventing device for loop transmission system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60205588A JPS6266741A (en) | 1985-09-18 | 1985-09-18 | Transmission error preventing device for loop transmission system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6266741A JPS6266741A (en) | 1987-03-26 |
| JPH0433180B2 true JPH0433180B2 (en) | 1992-06-02 |
Family
ID=16509364
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60205588A Granted JPS6266741A (en) | 1985-09-18 | 1985-09-18 | Transmission error preventing device for loop transmission system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6266741A (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006319490A (en) * | 2005-05-11 | 2006-11-24 | Fuji Electric Systems Co Ltd | Method for measuring frame lap time and information transmission system |
-
1985
- 1985-09-18 JP JP60205588A patent/JPS6266741A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6266741A (en) | 1987-03-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0328385B1 (en) | A phase adjusting system for a radio communication system | |
| JPH0448013B2 (en) | ||
| JP2614363B2 (en) | Method for reducing current consumption of optical transmission system | |
| JPS6266741A (en) | Transmission error preventing device for loop transmission system | |
| JPS587950A (en) | Automatic testing device for loop-like transmission line | |
| JP2614375B2 (en) | Optical transmission system | |
| JP4471435B2 (en) | Wireless meter reading system | |
| JPH0740702B2 (en) | Remote test circuit | |
| JP2623816B2 (en) | Signal transmission method | |
| JP2643832B2 (en) | Propagation delay measurement method | |
| JPS6142463B2 (en) | ||
| JPS61277241A (en) | Communication system for radio communication network system | |
| JP3392428B2 (en) | ISDN data communication device | |
| JPS62147834A (en) | Time division multiplex transmission system | |
| JPS58141057A (en) | Loop network transmitter | |
| JP3157942B2 (en) | Setting method of terminal function of remote monitoring control system | |
| JPH0122300Y2 (en) | ||
| JPH0342557Y2 (en) | ||
| JPS6158857B2 (en) | ||
| JP2941266B1 (en) | Encoder data output method for bus communication type encoder device | |
| JPS6043699B2 (en) | Data transmitting/receiving device | |
| JPH0828720B2 (en) | Bus type transmission line system | |
| JPS61270929A (en) | Wireless transmission system | |
| JPS58161552A (en) | Monitor method of transmitting system | |
| JPS645497B2 (en) |