JPS63126335A - Information communication system in communication system between electronic equipments - Google Patents

Information communication system in communication system between electronic equipments

Info

Publication number
JPS63126335A
JPS63126335A JP61273440A JP27344086A JPS63126335A JP S63126335 A JPS63126335 A JP S63126335A JP 61273440 A JP61273440 A JP 61273440A JP 27344086 A JP27344086 A JP 27344086A JP S63126335 A JPS63126335 A JP S63126335A
Authority
JP
Japan
Prior art keywords
electronic device
communication
information
communication system
adapter
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
JP61273440A
Other languages
Japanese (ja)
Inventor
Kazuo Ishifuku
石福 一雄
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP61273440A priority Critical patent/JPS63126335A/en
Publication of JPS63126335A publication Critical patent/JPS63126335A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To connect directly an electronic equipment not generating a protocol decided in a communication system to the communication by providing an adaptor and executing a prescribed protocol in the inside. CONSTITUTION:Adaptors 20, 30, 40 in each station are connected to a channel 10 via transceivers 21, 31, 41. A text B on the channel 10 consists of a communication rule code section P and an information content M specific to the adaptor and the content M includes the text part T and the part according to the protocol specific to the communication. For example, a communication rule code PSk is stored at each equipment address in the equipment 30 and the common termination code PM is stored in the communication system, an open flag OF is detected at the arrival of a text to read and store the content M. Moreover, an equipment address Ak and the code PM are eliminated from the content section M toedit the content Mk and the result is transferred to the equipment 200.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、いわゆるLAN (ローカル・エリア・ネッ
トワーク)などとして知られているように、通信路系に
より相互に結合された複数個のステーションごとに設け
られた通信用アダプタ装置に通信路とは別な通信線を介
してそれぞれ電子装置が接続され、アダプタ装置によっ
て通信路上に乗せられる所定の通信規約コード部と情報
内容部とで構成される電文を介して電子装置相互間の情
報交信がなされる通信系における情報交信方式に関する
[Detailed Description of the Invention] [Industrial Application Field] The present invention is directed to a network system that connects a plurality of stations to each other through a communication path system, as known as a so-called LAN (Local Area Network). Each electronic device is connected to a communication adapter device provided in the communication path via a communication line separate from the communication path, and consists of a predetermined communication protocol code section and an information content section that are placed on the communication path by the adapter device. The present invention relates to an information communication system in a communication system in which information is exchanged between electronic devices via telegrams.

〔従来の技術〕[Conventional technology]

前述のような電子装置間通信系は、電子装置群に対する
情報データないしはその処理上の資源を共有化して全体
としての情報処理効率を上げ、あるいは従来は困難であ
った電子装置間の相互連携を容易にする上で非常に有益
であり、よく知られているように近時非常な勢いで普及
が進みつつある。その模様や動向は例えば日経バイト誌
1986年7月特集1パソコンLANの時代”によって
よくうかがうことができる、もっとも、典型的な電子装
置間通信系であるこのLANにおいても、各電子装置が
もつシステムをどの程度まで相互接続することが可能か
という点については種々の階層があり、130(国際標
準化機構)のモデルによる7層、すなわちアプリケーシ
ョン、プレゼンテーシッン、セッシシン、トランスポー
ト1 ネットワーク、データリンクおよび物理部中のど
の階層まで可能かについて、提供されつつあルL A 
N装7にかなりの差があるのが実情である。しかし、ど
のLANについても共通していえることは、LANに接
続される電子装置ないしはシステムが上述の各層におい
てまったく同じプロトコル(通信規約)を採用していな
いと相互通信ができないということであり、容易にわか
るようにかかる制約は上述の7部中の2個の下位層であ
る物理層およびデータリンク層においてとくに厳密であ
る。
The above-mentioned communication system between electronic devices improves overall information processing efficiency by sharing information data or processing resources for a group of electronic devices, or enables mutual cooperation between electronic devices, which was difficult in the past. It is very useful for facilitating the use of computer technology, and as is well known, it is becoming increasingly popular in recent years. The patterns and trends can be clearly seen in the Nikkei Byte Magazine July 1986 Special Feature 1 "The era of PC LAN". However, even in this LAN, which is a typical communication system between electronic devices, the system that each electronic device has There are various layers in terms of the extent to which they can be interconnected, and there are seven layers according to the 130 (International Organization for Standardization) model: application, presentation, session, transport, network, and data link. and which layers in the physical department are possible.
The reality is that there is a considerable difference in N-7. However, one thing that all LANs have in common is that unless the electronic devices or systems connected to the LAN adopt exactly the same protocols (communication protocols) at each of the above layers, they will not be able to communicate with each other. As can be seen, such constraints are particularly strict in the physical layer and data link layer, which are the two lower layers of the seven parts mentioned above.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

LAN装置の中では前述の下位層における連系を主とす
るもの、いわば通信路だけを提供するものがあり、階層
的には比較的簡単なないしは低次のものといえるが、実
用面ではとくにFA  (工場自動化)分野で高い重要
度をもちかつ現実の需要。
Among LAN devices, there are those that mainly provide interconnection at the lower layer mentioned above, and those that only provide a communication path, so they can be said to be relatively simple or low-level in terms of hierarchy, but from a practical standpoint, they are particularly Highly important and real demand in the FA (factory automation) field.

量も大きい、かかる用途向きでは、LANに接続される
いわゆるサーバはふつうは単一のホスト計算機、多くは
プロセス計算機であり、これをいわばマスクとしてこの
スレーブにあたるかなり雑多な種類の電子装置がLAN
に接続される。もちろん、これらのスレーブ電子装置は
NC装置を代表例とする作業機や検査機に組み込まれあ
るいは付属されたものであって、それなりの通信機能は
一応待っているのであるが、もちろんLANに機能設計
がなされているわけではないので、LANのプロトコル
とは整合しないことが多い。
In such applications where the volume is large, the so-called server connected to the LAN is usually a single host computer, often a process computer, and using this as a mask, a wide variety of slave electronic devices are connected to the LAN.
connected to. Of course, these slave electronic devices are built into or attached to work machines and inspection machines, typically NC devices, and have a certain communication function, but of course, the LAN has a function design. Therefore, it is often inconsistent with the LAN protocol.

製造ラインを新設する場合には、作業機等に付属の電子
装置の通信機能をLANのプロトコルに合わせることは
もちろん可能であるが、プロトコルの規格化が進んでお
らず、LANの種類によってプロトコルが異なることが
多いのでプロトコルの整合のために電子装置の改造を要
することがしばしばである。また、現実には既存の作業
機等をLANによって連系を図る用途がほとんどで、こ
の場合にはプロトコルの整合がさらに厄介になってその
ための追加投資を要することになり、LANの導入ない
しは利用上の隘路になっている。
When setting up a new production line, it is of course possible to adapt the communication functions of electronic devices attached to work equipment, etc. to the LAN protocol, but the standardization of protocols has not progressed and the protocols may differ depending on the type of LAN. Since the protocols are often different, it is often necessary to modify the electronic equipment to match the protocols. In addition, in reality, most of the applications involve interconnecting existing work machines, etc. via LAN, and in this case, it becomes even more difficult to match protocols and requires additional investment. It has become a bottleneck above.

もっとも、LANに接続される電子装置がインテリジェ
ント機能をもつ計算機やファームウェアが組み込まれた
高級な機器である場合は話は別であるが、−aのNC装
置等の作業機に付属の電子装置はLANに整合するプロ
トコルを生成できず、プロトコル変換を行なう特別のイ
ンタフェースを追加しない限り、LANに直接接続する
ことは不可能なのが現状である。
However, it is a different story if the electronic device connected to the LAN is a computer with intelligent functions or a high-grade device with built-in firmware, but the electronic device attached to the work machine such as the NC device in -a Currently, it is not possible to generate a protocol compatible with a LAN, and it is impossible to connect directly to a LAN unless a special interface is added to perform protocol conversion.

本発明の目的はかかるLANに代表される電子装置間通
信系に前述のNC装置のように通信系について定められ
ているプロトコルを生成できない電子装置を特別なプロ
トコル変換手段を用いる要なしに直接接続をすることが
できる電子装置間通信系内の情報交信方式を得ることに
存する。
An object of the present invention is to directly connect an electronic device, such as the above-mentioned NC device, which cannot generate a protocol defined for the communication system, to a communication system between electronic devices represented by such a LAN, without using a special protocol conversion means. The object of the present invention is to obtain an information communication system within a communication system between electronic devices that can perform the following operations.

〔問題点を解決するための手段〕[Means for solving problems]

本発明によれば上述の目的は、LANによって代表され
るような通信路系により相互に結合された複数個のステ
ーションごとに設けられた通信用アダプタ装置に通信路
とは別な通信線を介してそれぞれ電子装置が接続され、
アダプタ装置によって通信路上に乗せられる所定の通信
規約コード部と情報内容部とで構成される電文を介して
電子装置相互間の情報交信がなされる通信系における情
報交信方式として、各ステー・シラン内の電子装置およ
びそれが接続されたアダプタ装置の少なくとも一方内に
該電子装置が情報交信すべき相手先電子装置に対し通信
系内で一義的に定義された装置アドレスを記憶しかつ該
相手先電子装置とその対応アダプタ装置間の通信線を介
する通信に対し定義された固有の通信規約コードを装置
アドレスごとに記憶する記憶領域を設定するとともに咳
記憶内容に基づいて該相手先側に固有の通信規約コード
を含む電文内の情報内容部を編集する手段を設け、各電
子装置側からの相手先電子装置との情報交信に際しては
編集手段により編集された情報内容部と通信規約コード
部とからなる電文をアダプタ装置内で生成して通信路に
乗せ、該電文を受け取った側のアダプタ装置では電文か
ら通信路系用通信規約コードを除去した相手先電子装置
に固有の通信規約コードを含む情報内容部を相手先電子
装置に通信線を介して送るようにすることにより達成さ
れる。
According to the present invention, the above-mentioned object is achieved by connecting a communication adapter device provided for each of a plurality of stations interconnected by a communication path system such as a LAN via a communication line separate from the communication path. electronic devices are connected to each
As an information communication method in a communication system in which information is exchanged between electronic devices via a message consisting of a predetermined communication protocol code part and an information content part carried on the communication path by an adapter device, At least one of the electronic device and the adapter device to which it is connected stores a device address that is uniquely defined within the communication system for the destination electronic device with which the electronic device communicates information, and A storage area is set to store a unique communication protocol code defined for communication via a communication line between the device and its corresponding adapter device for each device address, and communication unique to the other party's side is set based on the cough memory contents. A means is provided for editing the information content section in the message including the convention code, and when information is exchanged from each electronic device side with the other party's electronic device, the information content section edited by the editing means and the communication convention code section are provided. A message is generated in the adapter device and placed on the communication path, and the adapter device that receives the message removes the communication protocol code for the communication path system from the message, and the information content includes the communication protocol code specific to the destination electronic device. This is achieved by sending the data to the destination electronic device via a communication line.

上記の構成によれば通信系に接続された各電子4!aW
から任意の相手先電子装置と情報交信が可能であり、こ
のために相手方電子装置の装置アドレスおよびその固有
通信規約コードを記憶する領域とその記憶内容に基づい
て電文中の情報内容部の編集手段とをステージ日ソ内の
どこかに設けねばならないが、ふつうはステージ日ソ内
のアダプタ2Nの方に設けることでよい、そのアダプタ
!J!I Wに接続される電子装置が既存のNC装置な
どに付属する電子装置であるとき、新設されるアダプタ
装置の方に通信系に適合させる機能を持たせるのが有利
だからである。この場合、アダプタ装置は通信系を介す
る電文交換のための通信規約コードの生成の機能に加え
て、前述の記憶と編集機能を受持つことになるが、その
ハードウェア面の構成を追加する要はとくになく、間車
なソフトウェアを追加するだけでよい、しかし、多くの
FAの場合のように、情報交信を単一のホスト計算機と
複数の作業機等に付属の電子装置との間に限ってよい場
合には、ホスト計算機としての電子装置に前述の記憶と
編集の全機能を受け持たせて通信系内の情報を集中管理
させるのが望ましい、この場合、ホスト計算機が主導電
子装置ないしはマスクとなり、系内の残余の電子装置は
従属電子装置ないしはスレーブとなる。このいわゆるス
レーブとなる電子装置側では、そのステージ日ソ内のア
ダプタ装置の方に前述の機能を受け持たせ、そのアダプ
タ装置に複数個の電子装置が接続される場合にもアダプ
タ装置側で情報交信を管理させるのがよい。
According to the above configuration, each electronic 4! connected to the communication system! aW
It is possible to exchange information with any other party's electronic device, and for this purpose, there is an area for storing the device address of the other party's electronic device and its unique communication protocol code, and means for editing the information content part of the message based on the stored contents. must be installed somewhere inside the stage Japan-Soviet, but normally it is sufficient to install it on the stage Japan-Soviet adapter 2N.That adapter! J! This is because when the electronic device connected to the IW is an electronic device attached to an existing NC device or the like, it is advantageous to provide the newly installed adapter device with a function that adapts it to the communication system. In this case, the adapter device will have the above-mentioned storage and editing functions in addition to the function of generating the communication protocol code for exchanging messages via the communication system, but the hardware configuration will need to be added. There is nothing special about this, just add some extra software.However, as in the case of many factory automation systems, information exchange is limited between a single host computer and electronic devices attached to multiple work machines, etc. If it is possible to do so, it is desirable to centrally manage information within the communication system by having the electronic device as the host computer take over all of the above-mentioned storage and editing functions.In this case, the host computer is the leading electronic device or the mask. The remaining electronic devices in the system become dependent electronic devices or slaves. On the electronic device side, which is the so-called slave, the adapter device in the stage is assigned the above-mentioned functions, and even when multiple electronic devices are connected to the adapter device, the adapter device side can handle the information. It is better to have them manage communications.

〔作用〕 各ステージ日ソ内ごとに設けられたアダプタ装置は通信
系内で定義されたプロトコルに合致する通信規約コード
を記憶しておりこれを情報交信の。
[Function] The adapter device installed at each stage in Japan and the Soviet Union stores a communication protocol code that matches the protocol defined within the communication system, and uses this code for information exchange.

実体である情報内容に加えることによって電文を編成し
て通信路に乗せる。該ステージ日ソ内のアダプタ装置お
よびそれに接続された電子装置のいずれか、前述のよう
にふつうはアダプタ装置の方に設けられる編集手段は電
文中の情報内容部を編集するものであって、これにステ
ーション内電子装置に固有で通信系について定められた
プロトコルとは異なりうる別の通信規約コードを含ませ
ても、電文中の通信規約コード部は何らこれによって影
響されないから、通信系内のどのアダプタ装置もこのよ
うに編集された電文を全く差障なく受けつけ、これによ
って系内のアダプタ装置間の通信は円滑に行なわれる。
By adding it to the actual information content, a message is organized and placed on the communication channel. Either the adapter device in the stage Japan-Soviet or the electronic device connected to it, as mentioned above, the editing means usually provided in the adapter device edits the information content part of the message. Even if a different communication protocol code is included in the station electronic device and may be different from the protocol defined for the communication system, the communication protocol code part in the message is not affected by this, so any communication protocol code in the communication system The adapter device also accepts the message edited in this way without any problem, and thereby communication between the adapter devices in the system is performed smoothly.

換言すれば電文中の情報内容部にいわば埋め込まれた前
述の特定の電子装置に固有な通信規約コードは、通信系
について定められたプロトコルを侵害することなくアダ
プタ装置によって受け付けられる。次に、このようにし
て一旦アダプタ装置に受け付けられた電文からは、通信
系用の通信規約コードがアダプタ装置により取り除かれ
、いわば裸にされたその情報内容部がそのアダプタ装置
からそれに接続された電子装置に送られる。このアダプ
タ装置と電子装置間の通信線に対するプロトコルが前述
のその電子装置に固有な通信規約コードに他ならないか
ら、両者間の通信ないし伝送は該通信規約コードによっ
て正確に果たされる。
In other words, the communication protocol code unique to the specific electronic device described above, which is embedded in the information content portion of the message, is accepted by the adapter device without violating the protocol defined for the communication system. Next, from the message once accepted by the adapter device in this way, the communication protocol code for the communication system is removed by the adapter device, and the exposed information content part is connected to it from the adapter device. sent to an electronic device. Since the protocol for the communication line between the adapter device and the electronic device is nothing but the above-mentioned communication protocol code unique to the electronic device, communication or transmission between the two can be performed accurately according to the communication protocol code.

以上の説明かられかるように、本発明によれば、各ステ
ージ日ソ内のアダプタ装置と電子装置との間の通信線に
対するプロトコルがアダプタ装置間を結ぶ通信系につい
て定められたプロトコルと異なる固有のものであっても
、その通信規約コードをそのまま電文中の情報内容部に
埋め込んでおく。
As can be seen from the above description, according to the present invention, the protocol for the communication line between the adapter device and the electronic device in each stage is unique and different from the protocol defined for the communication system connecting the adapter devices. Even if the communication protocol code is the same, the communication protocol code is embedded in the information content section of the message.

ことによって、通信系のプロトコルに抵触することなく
円滑かつ正確に情報交信を進めることができ、従来のよ
うに特別なプロトコル変換手段を追加する必要は全くな
くなる。なお、かかる解決手段によって理論的には電文
中の情報内容部の有効分が減少することにはなるが、情
報内容部の長さはふつう1キロバイト程度あり、これに
埋め込む通信規約コードはふつう1バイト程度ですみ、
これに後述の装置アドレスに要する2バイト程度を加え
ても、その減少分は実用上は無視してよい程度である。
By doing so, information communication can be carried out smoothly and accurately without conflicting with the communication system protocol, and there is no need to add special protocol conversion means as in the past. Although this solution theoretically reduces the effective amount of the information content part in the message, the length of the information content part is usually about 1 kilobyte, and the communication protocol code embedded in it is usually about 1 kilobyte. It only takes a part-time job,
Even if about 2 bytes required for a device address, which will be described later, are added to this, the reduction is practically negligible.

〔実施例〕〔Example〕

以下図を参照しながら本発明の実施例を詳しく説明する
。第1図は本発明方式を実施した電子装置間通信系の例
を示すもので、この例では電子装置中の1台が主導電子
装置として1通信系内の他の電子装置は従属電子装置と
して設定されている。
Embodiments of the present invention will be described in detail below with reference to the drawings. FIG. 1 shows an example of a communication system between electronic devices that implements the method of the present invention. In this example, one of the electronic devices is the leading electronic device, and the other electronic devices in one communication system are the subordinate electronic devices. It is set.

以下、理解を容易にするためかかるマスク・スレーブ通
信系について実施例を説明する。
An example of such a mask/slave communication system will be described below for ease of understanding.

第1図の通信路10は公知のように同軸ケーブルや光フ
アイバケーブルで構成され、図示の都合上図では変形し
たループ状に描かれているが、そのいわゆるトポロジと
してはかかるループに限らず、リング、スターあるいは
終端手段を備えたリニアなバス形であってもよい、この
通信路10には、例えば256個のステーションを接続
することが可能で、図では各ステーションに設けられる
アダプタ装置20,30.40の3個のみが示されてい
る。この各アダプタ装置は後に説明する第3図のように
それぞれマイクロコンビエータでありで、その内の通信
回路例えばトランシーバ21.31.41を介して通信
路10と接続されている。これらの各アダプタ装置!置
には例えばシリアルなそのインターフェースを介して複
数個例えば8台までの電子装置を接続することが可能で
あるが、この通信系のホスト計算機である主導電子装置
100が接続されるアダプタ装置20にはシリアル・イ
ンタフェース22が1個だけ備えられている。また、従
属電子装置200が接続されるアダプタ装置30には2
個のシリアル・インタフェース32が、同様のアダプタ
装置40には4個のシリアル・インタフェース42が設
けられている。
As is well known, the communication channel 10 in FIG. 1 is composed of a coaxial cable or an optical fiber cable, and is depicted in a deformed loop shape for convenience of illustration, but its so-called topology is not limited to such a loop. For example, 256 stations can be connected to this communication path 10, which may be in the form of a ring, star or linear bus with termination means, and the figure shows an adapter device 20, which is provided at each station. Only three, 30.40, are shown. Each of the adapter devices is a micro combiator as shown in FIG. 3, which will be described later, and is connected to the communication path 10 via a communication circuit therein, for example, a transceiver 21, 31, 41. Each of these adapter devices! For example, it is possible to connect a plurality of electronic devices, for example up to eight electronic devices, to the device via its serial interface. is equipped with only one serial interface 22. Further, the adapter device 30 to which the slave electronic device 200 is connected has two
A similar adapter device 40 is provided with four serial interfaces 42.

かかる、シリアル・インタフェースの典型例としてはR
S 232C形があることは公知のとおりで、この場合
9600ビット/秒以下の速度で各電子装置と通信をす
ることができる。一方、前述の通信路10を介してはふ
つう1メガピント/秒程度の高速で通信が可能である。
A typical example of such a serial interface is R.
It is well known that there is an S232C type, and in this case, it is possible to communicate with each electronic device at a speed of 9600 bits/second or less. On the other hand, communication is normally possible at a high speed of about 1 megafocus/second via the above-mentioned communication path 10.

以上の通信系内で主導電子装置100と従属電子装置2
00との間では種々のプログラムやデータ(以下これら
をテキストという)の通信が必要で、例えば主導電子装
置100が生産ラインの制御用計算機であり、従属電子
装置200がラインに含まれる種々の作業機や試験機の
内のNC加工機に付属の電子装置であるとすると、主導
電子装置から生産命令としてのテキストが従属電子装置
に送られる。このテキストに基づいてNC加工機側で作
業をした結果を示すテキストは、逆に従属電子装置から
主導電子装置に送られ、その結果が思わしくなくて加工
機側でテキストの一部を変更した場合は、その変更後の
テキストが主導電子装置に送られて記憶され、次回以降
の加工に用いられる。かかる通信は通信路lO上では図
では細長の方形で便宜上示された電文Bの形で行なわれ
、この電文は通信規約コード部Pとハンチングで区分さ
れた情報内容部Mとからなっている。
In the above communication system, a leading electronic device 100 and a subordinate electronic device 2
00, it is necessary to communicate various programs and data (hereinafter referred to as text); for example, the leading electronic device 100 is a computer for controlling a production line, and the subordinate electronic device 200 is used to communicate various tasks included in the line. In the case of an electronic device attached to an NC processing machine in a machine or a testing machine, text as a production command is sent from the leading electronic device to the subordinate electronic device. The text indicating the result of the work done on the NC processing machine side based on this text is sent from the subordinate electronic device to the leading electronic device, and if the result is not desired and a part of the text is changed on the processing machine side. The changed text is sent to the master electronic device and stored, and used for subsequent processing. Such communication is carried out on the communication path IO in the form of a message B, which is shown for convenience as an elongated rectangle in the figure, and this message consists of a communication protocol code section P and an information content section M separated by hunting.

第2図はこの電文Bの構成例を示すもので、ハンチング
を施された部分が情報内容部で残余が通信規約コード部
である。第2図(alは通信規約コード部の内容例を示
すもので、図の左から各1〜2バイトの電文の始まりを
示すオーブンフラグOF。
FIG. 2 shows an example of the structure of this message B, in which the hunted part is the information content part and the rest is the communication protocol code part. FIG. 2 (al indicates an example of the contents of the communication protocol code section, and oven flags OF indicating the start of each 1-2 byte message from the left of the figure).

電文の送付先ステージ四ンすなわちアダプタ装置の番号
を示すディスティネーシロンアドレスOA。
Destination address OA indicating the stage 4 to which the message is to be sent, ie, the number of the adapter device.

電文の送付元アダプタ装置の番号を示すソースアドレス
SA、電文の型を示す電文タイプBT、電文の番号を示
すシーケンス番号SN、送付先アダプタ装置内のシリア
ル・インタフェース番号すなわち送付先電子装置を指定
するブイステイネ−シランソケット番号05.同様に送
付元アダプタ装置内のシリアル・インタフェース番号を
示すソースソケット番号SSなどが電文の先頭部に付け
られ、またその末尾部にはエラー検査用コードCRCや
電文の終りを示すクローズフラグCFが通信規約コード
として付される。これらの通信規約コードはいずれも通
信路IOを介するアダプタ装置間の通信に不可欠なもの
で、厳密に定義されたプロトコルに合致するものでなけ
ればならず、これらの通信規約コードの一部がこのプロ
トコルから少しでも外れるとその電文はどのアダプタ装
置によっても受付けられない、なお、以下の説明の都合
上通信路10には64台までのアダプタ装置が接続され
ていて、アドレスOAまたはSAの1バイト中の有意の
6ビツトによりアダプタ装置番号が特定され、1台のア
ダプタ装置には4台までの電子装置が接続されていてソ
ケット番号DSまたはSSの1バイト中の有意の2ピン
トによりそのアダプタ装置に接続されている電子装置が
特定されるようになっているものとする。
The source address SA indicates the number of the adapter device from which the message is sent, the message type BT indicates the type of message, the sequence number SN indicates the number of the message, and the serial interface number in the destination adapter device specifies the destination electronic device. Buistaine Silane socket number 05. Similarly, the source socket number SS, etc. indicating the serial interface number in the sending adapter device is added to the beginning of the message, and the error checking code CRC and the close flag CF indicating the end of the message are added to the end of the message. It is attached as a convention code. All of these communication protocol codes are essential for communication between adapter devices via communication path IO, and must conform to strictly defined protocols. If there is even a slight deviation from the protocol, the message will not be accepted by any adapter device.For the sake of the following explanation, up to 64 adapter devices are connected to the communication path 10, and 1 byte of address OA or SA. The significant 6 bits in the middle specify the adapter device number, and up to 4 electronic devices are connected to one adapter device, and the significant 2 pins in the 1 byte of the socket number DS or SS identify the adapter device. It is assumed that the electronic device connected to the computer is specified.

第2図(a)の電文B中の情報内容部Mは、元来は前述
のテキストに相当するものであってふつう1キロバイト
程度の長さを持つが、本発明方式においては同図伽)に
示すようにテキスト部Tのほかにアダプタ装置と各電子
装置間の方の前述のシリアル・インタフェースを介する
通信に役立つ該通信に固有なプロトコルに則った部分が
これに含められる。第2図山)に示された情報内容部M
のテキスト部Tに先立って先頭に付される装置アドレス
Akは、全通信系内に含まれる各電子装置につき一義的
に定義された電文送付先電子装置の装置アドレスであっ
て、この例では系内のすべての電子装置は前述のように
6ビントのアダプタ装置番号と該アダプタ装置内の2ビ
ツトのソケット番号とで特定できるから、計8ビットす
なわち1バイトでこの装置アドレスが表わされる。なお
、kはかかる電子装置の通し番号を示す変数とする。も
ちろん、この装置アドレス部は電文が主導電子装置から
従属電子装置に向けて送られるときはそのつどに異なり
得る送付先従属電子装置の装置アドレスとされるが、逆
に電文が従m電子装置から主導電子装置に向は送られる
ときは常に全通信系に共通な主導電子装置の装置アドレ
スとされる。
The information content section M in the message B in FIG. 2(a) originally corresponds to the text mentioned above and usually has a length of about 1 kilobyte, but in the method of the present invention, the information content part M in the message B in FIG. As shown in FIG. 2, in addition to the text portion T, this includes a portion that is useful for communication between the adapter device and each electronic device via the aforementioned serial interface and conforms to a protocol specific to the communication. Information content part M shown in Figure 2 (mountain)
The device address Ak attached to the beginning before the text part T is the device address of the message destination electronic device that is uniquely defined for each electronic device included in the entire communication system, and in this example, the system Since all electronic devices within the adapter can be identified by the 6-bit adapter device number and the 2-bit socket number within the adapter device as described above, the device address is represented by a total of 8 bits, or 1 byte. Note that k is a variable indicating the serial number of the electronic device. Of course, when a message is sent from a leading electronic device to a subordinate electronic device, this device address field is used as the device address of the destination subordinate electronic device, which can be different each time, but conversely, when a message is sent from a subordinate electronic device to a subordinate electronic device, When the address is sent to the lead electronic device, it is always the device address of the lead electronic device that is common to the entire communication system.

第2図(blの例における情報内容部Mには、アダプタ
装置と特定の電子装置との間の通信に固有のプロトコル
に則った通信規約コードPSk 、例えばテキストTの
終端を表わす終端コードが加えられる。
In the information content section M in the example shown in FIG. It will be done.

この通信規約コードPSkはその電子装置が既設の作業
機等に付属したものである場合はその電子装置との通信
用にあらかじめ決められており、通信路10について決
められているプロトコルとは必ずしも合致しないが、本
発明方式においてはこの通信路に対しては不正規な通信
規約コードがそのま・まテキスト部Tと密着した形で用
いられる。これに続く終端コードPMは上記とは逆に通
信路10について定義された通信規約コードに則ったも
ので、情報内容部Mの終わりを示す役目を果たす、しか
し、この従属電子装置では固有の通信規約コードPSk
が終端コードであり、これに続く終端コードPMと混同
されるおそれがあるので、終端コードPMはどの通信規
約コードPSkとも異なるもの、換言すれば全通信系内
に唯一に定義された終端コードとすることが望ましく、
以下終端コードPMがこのように選ばれたものとして説
明する。後述のようにこの終端コードP旧よ系内のすべ
てのアダプタ装置により記憶され、アダプタ装置はこの
終端コードPMを受けると情報内容部Mがそれで終わる
ことを検出する。なお、固有の通信規約コードPSkと
終端コードPMとの間、ないしは終端コードPMの次に
エラー検査用コードを加えれば、テキスト内容の通信の
正確度を増すことができ、このコードは通信路10を介
する通信用にもアダプタ装置と電子装置間の通信用にも
付することができる。
This communication protocol code PSk is predetermined for communication with the electronic device when the electronic device is attached to an existing work machine, etc., and does not necessarily match the protocol determined for the communication path 10. However, in the system of the present invention, an irregular communication protocol code is used as is in close contact with the text portion T for this communication path. The termination code PM that follows this, contrary to the above, is based on the communication protocol code defined for the communication path 10 and serves to indicate the end of the information content part M.However, in this subordinate electronic device, the specific communication Terms code PSk
is the termination code, and there is a risk of it being confused with the termination code PM that follows, so the termination code PM is different from any communication protocol code PSk, in other words, it is the termination code uniquely defined within the entire communication system. It is desirable to
The following description will be made assuming that the termination code PM is selected in this way. As will be described later, this termination code P is stored by all adapter devices in the system, and when the adapter device receives this termination code PM, it detects that the information content portion M ends there. Furthermore, if an error checking code is added between the unique communication protocol code PSk and the termination code PM, or next to the termination code PM, the accuracy of text communication can be increased. It can be provided both for communication via the adapter device and for communication between the adapter device and the electronic device.

第1図に示すように、この実施例では以上のように構成
された情報内容部Mは主導電子装置100とこれに対応
するアダプタ装置20との間の通信にそのまま一種の電
文として用いられる。一方、従属電子装置200とこれ
に対応するアダプタ装置3゜との間の通信には、この情
報内容部Mから装置アドレスAkと終端コードPMとが
省かれた情報内容部分11にの形で用いられる。この情
報内容部分1tkの構成例は第2図(C1に示されてい
る。
As shown in FIG. 1, in this embodiment, the information content section M configured as described above is used as it is as a type of telegram for communication between the main electronic device 100 and the corresponding adapter device 20. On the other hand, for communication between the slave electronic device 200 and the corresponding adapter device 3°, the information content portion 11 is used in which the device address Ak and the termination code PM are omitted from the information content portion M. It will be done. An example of the structure of this information content portion 1tk is shown in FIG. 2 (C1).

通信系内のすべてのアダプタ装置はハードウェア面で同
一構成であってよく、その構成例が第3図にアダプタ装
置30について例示されている。図・示のように、アダ
プタ装置は例えば8ビツトのCPU30aを備えた通信
用のマイクロコンピュータであって、バス30bを介し
てこのCPU30aと接続されるR OM30c、 R
A M30dおよびDMA  (ダイレクトメモリアク
セス)30eを備え、かつ通信用にパラレルインターフ
エ・−ス30fおよびシリアルインタフェース30hも
備えている。前述のトランシーバ31は通信用の復変調
回路30gを介してパラレルインターフェース30f 
と接続されており、復変調回路30gは送信信号の変調
や受信信号の復調を行なうほか、送信時に通信路10上
で信号の衝突があるか否かを検出する機能をも備える。
All the adapter devices in the communication system may have the same hardware configuration, and an example of the configuration is illustrated for the adapter device 30 in FIG. 3. As shown in the figure, the adapter device is, for example, a communication microcomputer equipped with an 8-bit CPU 30a, and a ROM 30c, R connected to this CPU 30a via a bus 30b.
It is equipped with an AM 30d and a DMA (direct memory access) 30e, and also has a parallel interface 30f and a serial interface 30h for communication. The above-mentioned transceiver 31 connects to a parallel interface 30f via a communication demodulation circuit 30g.
The demodulation circuit 30g not only modulates the transmitted signal and demodulates the received signal, but also has a function of detecting whether or not there is a signal collision on the communication path 10 during transmission.

一方シリアル・インタフェース30hの方は前述のR3
232Cなどのシリアル・インタフェース32用のイン
タフェースないしはバンファであって、この例では2個
のシリアル・インタフェース32用のスロットルがアダ
プタ装置30に設けられている0表示回路30iはLE
D33用のもので、アダプタ装置に対する電源の有無、
送信中か否か、受信中か否かなどをLED33に表示さ
せる。
On the other hand, the serial interface 30h is the R3 mentioned above.
The 0 display circuit 30i is an interface or bumper for serial interfaces 32 such as 232C, and in this example the throttles for two serial interfaces 32 are provided in the adapter device 30.
For D33, whether or not there is a power supply for the adapter device,
The LED 33 displays whether or not it is transmitting or not, and whether it is receiving or not.

本発明の実施のためには、このアダプタ装置30の例え
ばROM30c内に第1図に示すように前述の固有の通
信規約コードPSkを装置アドレスごとにあらかじめ記
憶させておく、また、通信系に共通な前述の終端コード
PMもこのROM内に記憶させておく、もちろんかかる
記憶領域はRAM30d内に設定することとし、通信系
の立ち上げ時に主導電子装置100から終端コードPM
や各装置アドレスAk、通信規約コードPSkを電文を
介して書き込むようにしてもよい、一方、主導電子袋t
 ioo側のアダプタ装置20に対しては、この例では
上述のような記憶領域は設定されておらず、そのかわり
に主導電子装置100のROM102に共通の終端コー
ドPMや通信系内に含まれる全電子装置の装置アドレス
Akおよびそれに固有の通信規約コードPSkがあらか
じめ書き込まれて記憶されている。
In order to carry out the present invention, it is necessary to store the above-mentioned unique communication protocol code PSk in advance for each device address, as shown in FIG. The above-mentioned termination code PM is also stored in this ROM.Of course, this storage area is set in the RAM 30d, and the termination code PM is stored from the main electronic device 100 when starting up the communication system.
, each device address Ak, and communication protocol code PSk may be written via telegram.On the other hand, the leading electronic bag t
In this example, the above-mentioned storage area is not set for the adapter device 20 on the ioo side, and instead, the common termination code PM and all the data included in the communication system are stored in the ROM 102 of the main electronic device 100. The device address Ak of the electronic device and the communication protocol code PSk unique thereto are written and stored in advance.

以上で通信系の構成とその中で変換される電文の説明を
終えたので、ついで第4図を参照しながらその動作を説
明する。ここに図示された動作ステップは各アダプタ装
置にソフトウェアとして含まれているもので、第4図は
従属電子装置200に対応するアダプタ装置30の行な
う動作であって、図の左側の列に通信路10から電文を
受信した場合が、右側の列に電文を送信する場合が示さ
れている。また、図の上に示された通信系の最初の立ち
上げ時に、主導電子装置100から各従属電子装置20
0が接続されているアダプタ装置直にいわゆるスレーブ
宣言がなされ、主導電子装置をマスクとして動作すべき
ことが各アダプタ装置に記憶されているものとする。こ
の宣言は、例えば主導電子装置100のもつ装置アドレ
スIが電文の形で主導電子装置側からアダプタ装置20
を介して従属電子装置側の例えばアダプタ装置30に送
られ、そのRAM 30d内に主導電子装置の装置アド
レスを記憶させることによって行なわれる。
Now that we have finished explaining the configuration of the communication system and the messages converted therein, we will now explain its operation with reference to FIG. The operational steps illustrated here are included as software in each adapter device. FIG. The case where the message is received from 10 is shown in the right column, and the case where the message is sent is shown in the right column. In addition, at the time of initial startup of the communication system shown in the upper part of the figure, from the leading electronic device 100 to each slave electronic device 20,
It is assumed that a so-called slave declaration is made directly to the adapter device to which 0 is connected, and that each adapter device stores that it should operate with the master electronic device as a mask. This declaration indicates that, for example, the device address I of the main electronic device 100 is transmitted from the main electronic device side to the adapter device 20 in the form of a message.
This is done by storing the device address of the leading electronic device in its RAM 30d.

系の立ち上げ後の各アダプタ装置は常にそのステップS
Oで電文Bが到来しているか否かを見ており、電文の到
来があるとそのオーブンフラグOFを検出して動作をス
テップS1に移す、このステップS1では電文中の次に
来るブイステイネ−シランアドレスDAを読み込み、つ
いでステップS2でこの読み込んだディステイネ−シコ
ンアドレスが自己に振り当てられたアダプタ装置番号と
一敗するか否かを判定し、否であればその電文は他のア
ダプタ装置向けであるから電文を無視することとして動
作流れを最初のステップSOに戻す、熱りのときはステ
ップS3に移り、ソースアドレスSAを読み込む。
After system startup, each adapter device always
At O, it is checked whether the message B has arrived or not. When the message B arrives, the oven flag OF is detected and the operation moves to step S1. In this step S1, the next message B in the message is detected. Address DA is read, and then in step S2 it is determined whether the read destination address matches the adapter device number assigned to the self, and if not, the message is intended for another adapter device. Since there is a message, the message is ignored and the operation flow returns to the first step SO. If the message is hot, the process moves to step S3 and the source address SA is read.

次のステップS4はこのソースアドレスが前にRAM3
0dに記憶した主導電子装置の装置アドレスA?1中の
主導電子装置に対応するアダプタ装置番号を示す6ビツ
トと合致するか否かを判定する0合致しないときは何ら
かの間違いであるから、この場合も電文を無視すること
として動作の流れを最初のステップSOに戻し、合致し
たときに限って動作はステップS5に進む。
In the next step S4, this source address is
Device address A of the main electronic device stored in 0d? Determine whether it matches the 6 bits indicating the adapter device number corresponding to the lead electronic device in 0.0 If it does not match, there is some kind of mistake, so in this case as well, the message is ignored and the flow of the operation is started from the beginning. The process returns to step SO, and the operation proceeds to step S5 only when there is a match.

ステップS5は電文中の情報内容部Mの読込と記憶のス
テップであるが、厳密にはその前に電文のシーケンス番
号SN、ソケット番号DSISSなどが読み込まれてア
ダプタ装置のRAM内に記憶され、この内のブイステイ
ネ−シランソケット番号DSは情報内容部M中のテキス
)Tを送付すべき電子装置を特定するために用いられる
。ステップS5の情報内容部Mの読込に際しては、第2
図(blに示した終端コードP?Iの到来を常に監視し
ながら1バイトずつ読み込んでアダプタ装置のRAM内
に記憶し、終端コードPMが到来したとき情報内容部M
の読込と記憶動作を終了させる。このステップS5の後
、第2図(A)のエラー検出用コードCRCとクローズ
フラグCPとをアダプタ装置が受け、後者の到来で電文
受理を終了させた上で前者に基づいてエラー検定をして
エラーが検出されたとき、公知の不受理電文NAKなど
を発信元アダプタ装置に返送するなどの動作が実際上は
行なわれるが、流れが徒らに複雑になるので図ではかか
る動作がステップS5後の鎖線で簡略に示されている。
Step S5 is a step of reading and storing the information content part M in the message, but strictly speaking, before that, the sequence number SN, socket number DSISS, etc. of the message are read and stored in the RAM of the adapter device. The socket number DS in the information content section M is used to identify the electronic device to which the text T in the information content section M is to be sent. When reading the information content section M in step S5, the second
While constantly monitoring the arrival of the termination code P?I shown in the figure (bl), the system reads each byte one byte and stores it in the RAM of the adapter device, and when the termination code PM arrives, the information content section M
Terminates reading and storing operations. After this step S5, the adapter device receives the error detection code CRC and the close flag CP shown in FIG. When an error is detected, operations such as sending a publicly known non-receipt message NAK back to the source adapter device are actually performed, but since this would make the flow unnecessarily complicated, the figure shows such operations after step S5. is simply indicated by the dashed line.

アダプタ装置が情報内容部Mを正規に受取つた後、この
実施例におけるアダプタ装置30内の纏集手段はステッ
プS6において情報内容部分Mkを第2図(blに示す
ように情報内容部Mから装置アドレスAkおよび終端コ
ードPMを削除することによって編集する。この情報内
容部分?lkをこれについで転送すべき相手方電子装置
は、削除した装置アドレスAk中の2ビツトないしは前
にRAMに記憶したディスティネーシ四ンソケット番号
DSによつて特定できるから、次のステップS7では転
送先である相手方電子装置に転送可の状態にあるか否か
を問い合わせる。この問い合わせは公知のように相手方
電子装置200の入出力ポート201内バツフ1の特定
のステータスビットを読むことによって容易にでき、不
幸にして相手方の電源未投入などが原因で転送が不可で
ある場合は、鎖線で簡略に示されたエラー処理の上流れ
を最初のステップSOに帰してしまう、このエラー処理
としては、公知のように転送不可の事由などを付してそ
の旨を示す電文を発信元アダプタ装置に送信することで
よい、転送可の場合、アダプタ装置30はそのシリアル
・インタフェース32を介して情報内容部分1を相手先
である従属電子装置200に転送する。この転送を受け
る側の従属電子装置200では情報内容部分Mk内の固
有の通信規約コードPSkを例えば終端コードとしてこ
の情報内容部分Mkを受理し、固有の通信規約コードP
Skを受け取った時点で転送受理を終結すればよい、シ
リアル・インタフェース32がR3232Cである場合
、この転送に対する着信の確認は行なわれず、続くステ
ップS9においてアダプタ装置は受理ないしは確認電文
ACKを発信元アダプタ装置に送信することにより電文
受信時の全動作を終結して、流れを元のステップSOに
戻す、なお、電文を受信するアダプタ装置が主導電子装
置に対応するアダプタ装置20である場合は、該アダプ
タ゛装置内には編集手段は設けられていないから、情報
内容部Mは何らの編集もなされずにそのままアダプタ装
置20から主導電子装置200に転送される。
After the adapter device has properly received the information content portion M, the collection means in the adapter device 30 in this embodiment collects the information content portion Mk from the information content portion M to the device in step S6 as shown in FIG. 2 (bl). It is edited by deleting the address Ak and the termination code PM.The destination electronic device to which this information content part ?lk is to be subsequently transferred must use the two bits in the deleted device address Ak or the destination code previously stored in RAM. Since it can be identified by the socket number DS, the next step S7 is to inquire of the other party's electronic device, which is the transfer destination, as to whether or not the transfer is possible. This can be easily done by reading the specific status bit of buffer 1 in port 201. If the transfer is unfortunately not possible due to the other party's power not being turned on, etc., the upper flow of error handling is shown simply with a chain line. Returns to the first step SO. To handle this error, as is well known, it is sufficient to send a message to the source adapter device indicating the reason why transfer is not possible, etc., if transfer is possible. , the adapter device 30 transfers the information content portion 1 to the destination slave electronic device 200 via its serial interface 32.The slave electronic device 200 receiving this transfer transmits the unique communication in the information content portion Mk. This information content part Mk is accepted using the protocol code PSk as a terminal code, and the unique communication protocol code P
If the serial interface 32 is R3232C, the reception of the transfer can be terminated upon receiving Sk, the incoming call for this transfer is not confirmed, and in the subsequent step S9, the adapter device sends the acceptance or confirmation message ACK to the source adapter. By transmitting the message to the device, all operations at the time of receiving the message are terminated, and the flow returns to the original step SO. Note that if the adapter device receiving the message is the adapter device 20 corresponding to the lead electronic device, the corresponding Since no editing means is provided within the adapter device, the information content section M is transferred from the adapter device 20 to the main electronic device 200 without any editing.

次に第4図の右側の列の流れは、電文Bを送信する際の
アダプタ装置30の動作を示すものである。
Next, the flow in the right column of FIG. 4 shows the operation of the adapter device 30 when transmitting the message B.

この場合は従属電子装置200からの情報内容部分?l
kの転送ないしは転送依親によって流れが開始されるが
、アダプタ装置30側ではその最初のステップS10で
常にこの転送の有無を見ており、転送があれば直ちに次
のステップ311に移る。もっとも、このステップ31
0と前述のステップSOとの間の優先関係は任意であっ
てよく、ふつうは後者の方を優先させる場合が多いが、
図ではこの任意の優先関係が鎖線で簡略に示されている
。ステップSllでは、アダプタ装置130はそのシリ
アル・インタフェース32を介して転送されて来る情報
内容部分11に中の1バイト分を読み取り、次のステッ
プ312でその1バイトが固有の通信規約コードPSk
が否かを判定する。この際、アダプタ装置30はそのR
OM 30c内にそれに接続された電子装置の装置アド
レス八にとこれに対応する通信規約コードPSkを記憶
しているから、情報内容部分Mkを転送して来た電子装
置の装置アドレスに対応する固有の通信規約コードPS
kをこの例では終端コードとして上の判定の基準に用い
る。ステップ512の判定結果が否である限り、情報内
容部分PIkはまだ持続しているから、ステップ313
で受信した1バイトをそのRAM3Od内に記憶してス
テップ311の受信動作に帰る。終端コードとしての固
有の通信規約コードP5kを受けたとき、情報内容部分
ガkがそれで終結されるから、この時点で前述の動作ル
ープを抜は出してステップ514に移る。
In this case, the information content part from the subordinate electronic device 200? l
The flow is started by the transfer of k or a transfer requester, but the adapter device 30 always checks whether there is a transfer in the first step S10, and if there is a transfer, it immediately moves to the next step 311. However, this step 31
The priority relationship between 0 and the above-mentioned step SO may be arbitrary, and the latter is usually given priority, but
In the figure, this arbitrary priority relationship is simply indicated by a chain line. In step Sll, the adapter device 130 reads one byte in the information content portion 11 transferred via its serial interface 32, and in the next step 312, the one byte is converted into a unique communication protocol code PSk.
Determine whether or not. At this time, the adapter device 30
Since the device address 8 of the electronic device connected to it and the corresponding communication protocol code PSk are stored in the OM 30c, a unique code corresponding to the device address of the electronic device to which the information content part Mk was transferred is stored. Communication terms code PS
In this example, k is used as a termination code as a criterion for the above judgment. As long as the determination result in step 512 is negative, the information content portion PIk still persists, so step 313
The received one byte is stored in the RAM3Od, and the process returns to step 311, the receiving operation. When the unique communication protocol code P5k as the termination code is received, the information content portion k is terminated, so at this point the aforementioned operation loop is removed and the process moves to step 514.

このステップ514では、アダプタ装置30内の編集手
段が転送依頼を受けた情報内容部分Mkから情報内容部
Mの編集を行なう、この編集は前のステップS6とは逆
に情報内容部分?tkにアダプタ装置がRAM内に記憶
している電文の行先である主導電子装置の装置アドレス
AllとそのROM内に記憶している通信路10のプロ
トコルに沿うた終端コードPMとをその前後に付加する
ことによって行なわれる。ついでこの情報内容部Mの送
信には、通信規約コード部をこれに付加しなければなら
ないから、つづ(ステップ315でこの付加をすること
によって電文Bを編成する。この際、上の主導電子装置
の装置アドレスAllから通信規約コード部内のブイス
テイネ−シランアドレスDAおよびブイステイネ−シラ
ンソケット番号Dsが、また発信元の装置アドレスAk
からソースアドレスSAおよびソースソケット番号SS
が編成される。
In this step 514, the editing means in the adapter device 30 edits the information content part M from the information content part Mk that received the transfer request.This editing is the reverse of the previous step S6. The adapter device adds to tk the device address All of the leading electronic device that is the destination of the message stored in the RAM and the termination code PM that follows the protocol of the communication path 10 stored in its ROM before and after it. It is done by doing. Next, in order to transmit this information content part M, it is necessary to add a communication protocol code part to it. From the device address All, the device address DA and device socket number Ds in the communication protocol code section are added to the source device address Ak.
from source address SA and source socket number SS
will be organized.

電文Bが編成された後は、動作はステップS16に入り
、電文の送信に先立って送信が許されるか否かを通信路
10上での衝突がないか否かで検定する。この検定には
前述のアダプタ装置内の復変調回路30gが用いられる
。衝突ありの場合は、衝突がな(なるまでこの段階で流
れを中断して送信許可を待つが、衝突なしの場合はステ
ップ317に入ヮて電文Bを主導電子装置が接続された
アダプタ装置20に向けて送信する。この送信後はステ
ップ318において該送信の受理ないしはその確認電文
AC![の到来を待ち、確認が得られたとき始めて電文
送信時の全動作を終えて流れを当初のステップSOに戻
す、不受理電文NAKが来たときの流れは図示されてい
ないが、通常のように流れをステップS17に戻して電
文Bを再度送信するようにすればよい、なお、このよう
に電文を送信するアダプタ装置が主導電子装置100に
対応するアダプタ装置20である場合は、主導電子装置
から情報内容部Mをそのまま転送依鎖して来るから、前
と同様にステップ314の動作を行なわずにステップS
15の電文編成動作に入るようにすればよい。
After the message B is compiled, the operation proceeds to step S16, and before transmitting the message, it is checked whether or not there is a collision on the communication channel 10 to see if transmission is permitted. The demodulation circuit 30g within the aforementioned adapter device is used for this verification. If there is a collision, the flow is interrupted at this stage and waits for transmission permission until there is no collision, but if there is no collision, the process proceeds to step 317 and sends message B to the adapter device 20 to which the electronic device is connected. After this transmission, in step 318, wait for the reception of the transmission or the arrival of the confirmation message AC!, and only when the confirmation is obtained, complete all operations for message transmission and return to the original step. The flow of returning to SO when a non-acceptance message NAK is received is not shown, but the flow can be returned to step S17 as usual and message B is sent again. If the adapter device that transmits is the adapter device 20 corresponding to the leading electronic device 100, the information content part M is directly transferred from the leading electronic device, so the operation of step 314 is not performed as before. Step S
It is only necessary to enter the message organization operation in step 15.

以上の実施例説明かられかるように、本発明方式におけ
る基本は、鵡アダプタ装置とそれに接続された電子装置
との間の通信が電子装置側での都合によって決まる固有
の通信規約コードに基づいて従来どおりの電文によって
行なわれ、アダプタ装置はこのいわばローカ゛ルな電文
の内容をすべて系の通信路に乗せるべき電文中の情報内
容部に組み入れた上で通信路について定められたプロト
コルに則つた通信規約コード部をそれに付加することに
よって電文を編成する。従ってアダプタ装置間の通信路
を介する通信は定められたプロトコルに全く沿った形で
行なわれるので、各電子装置によって異なり得る固有の
通信規約コードによって邪魔されることなくアダプタ装
置間の通信が円滑かつ正確に行なわれろ、このようにし
て電文中の情報内容部が送信先のアダプタ装置に無事に
到達した後には、該情報内容部にいわば埋め込まれてい
た固有の通信規約コードが今度はアダプタ装置と相手方
電子装置との間の通信に用いられるので、該アダプタ装
置と相手方電子装置との間の通信もその通信線に定めら
れたプロトコルに全く沿った形で円滑かつ正確に行なわ
れることになる。主導電子装置とそれが接続されたアダ
プタ装置間の通信は上述の基本B様からややずれた形態
でなされるが、これはマスクであるホスト計算機側に特
有な変形された態様と見るべきものである。。
As can be seen from the above description of the embodiments, the basic principle of the method of the present invention is that communication between a parrot adapter device and an electronic device connected to it is based on a unique communication protocol code determined by the convenience of the electronic device. This is done using conventional telegrams, and the adapter device incorporates all the contents of this so-called local telegram into the information content part of the telegram that is to be carried on the communication path of the system, and then establishes a communication protocol based on the protocol defined for the communication path. A message is organized by adding a code section to it. Therefore, the communication between the adapter devices via the communication path is carried out completely in accordance with the established protocol, so the communication between the adapter devices is smooth and unhindered by the unique communication protocol code that may differ depending on each electronic device. Be sure to do this correctly. After the information content part of the message has safely reached the destination adapter device in this way, the unique communication protocol code embedded in the information content part will then be transmitted to the adapter device. Since it is used for communication with the other party's electronic device, communication between the adapter device and the other party's electronic device is also carried out smoothly and accurately in accordance with the protocol defined for the communication line. Communication between the main electronic device and the adapter device to which it is connected is performed in a form that deviates slightly from the above-mentioned basic method B, but this should be seen as a modified form unique to the host computer side, which is a mask. be. .

〔発明の効果〕〔Effect of the invention〕

以上説明したとおり本発明においては、通信路系により
相互に結合された複数個のステージ四ンごとに設けられ
た通信用アダプタ装置に通信路とは別な通信線を介して
それぞれ電子装置が接続され、アダプタ装置によって通
信路上に乗せられる所定の通信規約コード部と情報内容
部とで構成される電文を介して電子装置相互間の情報交
信がなされる通信系における情報交信方式として、各ス
テージ四ン内の電子装置およびそれが接続されたアダプ
タ装置の少なくとも一方内に該電子装置が情報交信すべ
き相手先電子装置に対し通信系内で一義的に定義された
装置アドレスを記憶しかつ該相手先電子装置とその対応
アダプタ装置間の通信線を介する通信に対し定義された
固有の通信規約コードを装置アドレスごとに記憶する記
憶領域を設定するとともに該記憶内容に基づいて該相手
先側に固有の通信規約コードを含む電文内の情報内容部
を編集する手段を設け、各電子装置側からの相手先電子
装置との情報交信に際しては編集手段により編集された
情報内容部と通信規約コード部とからなる電文をアダプ
タ装置内で生成して通信路に乗せ、該電文を受け取った
側のアダプタ装置では電文から通信路系用通信規約コー
ドを除去した相手先電子装置に固有の通信規約コードを
含む情報内容部を相手先電子装置に通信線を介して送る
ようにしたので、アダプタ装置と各電子装置との間の通
信に対するプロトコルがアダプタ装置間の通信路に対す
るプロトコルと異なっていても、何らの矛盾や支障なく
アダプタ装置間の通信およびアダプタ装置と電子装置と
の間の通信の双方が円滑かつ正確に行なわれる。従って
通信路について定められているプロトコルを生成できな
い電子装置も特別なプロトコル変更手段を用いないでも
そのまま直接にアダプタ装置に接続することができる。
As explained above, in the present invention, each electronic device is connected via a communication line separate from the communication path to a communication adapter device provided for each of a plurality of stages interconnected by a communication path system. As an information communication method in a communication system in which information is exchanged between electronic devices via a message consisting of a predetermined communication protocol code section and an information content section, which are carried on the communication path by an adapter device, each stage A device address that is uniquely defined within the communication system for a destination electronic device with which the electronic device should communicate information is stored in at least one of the electronic device in the communication system and the adapter device to which the electronic device is connected. A storage area is set to store a unique communication protocol code defined for communication via a communication line between a destination electronic device and its corresponding adapter device for each device address, and a unique communication protocol code is set for each device address based on the stored contents. A means is provided for editing the information content part of the message including the communication protocol code, and when each electronic device communicates information with the other party's electronic device, the information content part edited by the editing means and the communication protocol code part are edited by the editing means. A message consisting of the following is generated in the adapter device and placed on the communication path, and the adapter device receiving the message includes a communication protocol code specific to the destination electronic device, with the communication protocol code for the communication path system removed from the message. Since the information content part is sent to the destination electronic device via the communication line, there is no problem even if the protocol for communication between the adapter device and each electronic device is different from the protocol for the communication path between the adapter devices. Both the communication between the adapter devices and the communication between the adapter devices and the electronic device occur smoothly and accurately without any conflicts or hindrances. Therefore, even an electronic device that cannot generate a protocol defined for a communication path can be directly connected to the adapter device without using any special protocol changing means.

もちろん、アダプタ装置もしくはある場合には電子装置
の方に通信すべき相手方電子装置の装置アドレスとそれ
に対応した通信規約コードを記憶させておく要はあるが
、これも電子装置をアダプタ装置に接続当初に一旦記憶
させておけば済むことであって、なんらの追加装置をも
介在させる必要はない、また、前述の編集手段も非常に
簡単なソフトウェアの形でアダプタ装置もしくは電子装
置の方に組み込んでおくことでよく、ハードウェア面の
追加投資は全く不要である。
Of course, it is necessary for the adapter device or, in some cases, the electronic device to memorize the device address of the other party's electronic device to be communicated with and the corresponding communication protocol code, but this also applies when the electronic device is connected to the adapter device. It is only necessary to store the information once in the computer, and there is no need for any additional equipment to be involved.Also, the aforementioned editing means can also be incorporated into the adapter device or electronic device in the form of very simple software. No additional investment in hardware is required.

このように、本発明方式は既存の作業機などであって比
較的簡単な電子装置しか付属されていない多くの製造ラ
インなどにLANなどの通信系をむだな追加投資なしに
導入してラインを一貫した自動化ラインに編成する場合
などに著効を発揮しうるちのである。
In this way, the method of the present invention can be used to introduce communication systems such as LAN to many production lines that are equipped with only relatively simple electronic devices such as existing working machines without unnecessary additional investment. It is extremely effective when organizing systems into a consistent automated line.

【図面の簡単な説明】[Brief explanation of the drawing]

図はすべて本発明方式の実施例を示すもので、第1図は
ホスト計算機を主導電子装置とし、残余の電子装置を従
属電子装置として運用する例における本発明を実施した
電子装置間通信系のブロック回路図、第2図は電文の構
成例を示す電文構成図、第3図はアダプタ装置のハード
ウェア面での構成例を示すブロック回路図、第4図は本
発明による情報交信方式の全体動作をソフトウェア面で
示す流れ図である6図において、 10:通信路、20.30.40 :アダプタ装置、2
1.31゜41:アダプタ装置のトランシーバ、22.
32.42 :アダプタ装置のシリアル・インタフェー
ス、100 :主導電子装置ないしはホスト計算機、2
0b :従属電子装置、ACK :受領ないしは確認電
文、Ak:電子装置の装置アドレス、AMj主導電子装
置の装置アドレス、B;電文、OA+通信規約コード部
内のディスティネーシ町ンアドレス、M:電文の情報内
容部、Mki情報内容部分、P:電文の通信規約コード
部、PM:通信路要通信規約コードとしての終端コード
、PSk :固有の通信規約コード、SAj通信規約コ
ード部中のソースアドレス、T + 情11内容部中の
テキスト、である。 第1図 第2図
All of the figures show examples of the method of the present invention. Figure 1 shows a communication system between electronic devices in which the present invention is implemented in an example in which the host computer is used as the leading electronic device and the remaining electronic devices are operated as subordinate electronic devices. 2 is a message configuration diagram showing an example of the structure of a message, FIG. 3 is a block circuit diagram showing an example of the hardware configuration of an adapter device, and FIG. 4 is an overall information communication system according to the present invention. In Figure 6, which is a flowchart showing the operation from a software perspective, 10: Communication path, 20.30.40: Adapter device, 2
1.31°41: Transceiver of adapter device, 22.
32.42: Serial interface of adapter device, 100: Leading electronic device or host computer, 2
0b: Subordinate electronic device, ACK: Receipt or confirmation message, Ak: Device address of electronic device, device address of AMj leading electronic device, B: Message, destination address in OA + communication protocol code section, M: Message information Content part, Mki information content part, P: Telegram communication rules code part, PM: Termination code as communication path required communication rules code, PSk: Unique communication rules code, source address in SAj communication rules code part, T + This is the text in the content section of Information 11. Figure 1 Figure 2

Claims (1)

【特許請求の範囲】 1)通信路系により相互に結合された複数個のステーシ
ョンごとに設けられた通信用アダプタ装置に通信路とは
別な通信線を介してそれぞれ電子装置が接続され、アダ
プタ装置によって通信路上に乗せられる所定の通信規約
コード部と情報内容部とで構成される電文を介して電子
装置相互間の情報交信がなされる通信系における情報交
信方式であって、各ステーション内の電子装置およびそ
れが接続されたアダプタ装置の少なくとも一方内に該電
子装置が情報交信すべき相手先電子装置に対し通信系内
で一義的に定義された装置アドレスを記憶しかつ該相手
先電子装置とその対応アダプタ装置間の通信線を介する
通信に対し定義された固有の通信規約コードを装置アド
レスごとに記憶する記憶領域を設定するとともに該記憶
内容に基づいて該相手先側に固有の通信規約コードを含
む電文内の情報内容部を編集する手段を設け、各電子装
置側からの相手先電子装置との情報交信に際しては編集
手段により編集された情報内容部と通信規約コード部と
からなる電文をアダプタ装置内で生成して通信路に乗せ
、該電文を受け取った側のアダプタ装置では電文から通
信路系用通信規約コードを除去した相手先電子装置に固
有の通信規約コードを含む情報内容部を相手先電子装置
に通信線を介して送るようにしたことを特徴とする電子
装置間通信系内の情報交信方式。 2)特許請求の範囲第1項記載の方式において、各アダ
プタ装置に複数個の電子装置を接続しうるようにしたこ
とを特徴とする電子装置間通信系内の情報交信方式。 3)特許請求の範囲第1項記載の方式において、通信系
内の単一の電子装置が主導電子装置として、系内の他の
電子装置が該主導電子装置と専ら情報交信を行なう従属
電子装置として設定されたことを特徴とする電子装置間
通信系内の情報交信方式。 4)特許請求の範囲第3項記載の方式において、主導電
子装置が従属電子装置の装置アドレスおよびその固有の
通信規約コードに対する記憶領域と編集手段とを備え、
該編集手段により情報交信をすべき相手方電子装置の装
置アドレスとそれに対応する固有の通信規約コードとを
含む電文中の情報内容部が編集されて主導電子装置が接
続されたアダプタ装置に送られることを特徴とする電子
装置間通信系内の情報交信方式。 5)特許請求の範囲第4項記載の方式において、相手方
電子装置の装置アドレスが情報内容部の先頭に付される
ことを特徴とする電子装置間通信系内の情報交信方式。 6)特許請求の範囲第4項記載の方式において、従属電
子装置とその対応アダプタ装置との間の固有の通信規約
コードが情報内容部に含まれ、該情報、内容部の末尾に
相手先従属電子装置に固有の通信規約コードおよび主導
電子装置に固有の通信規約コードが順次付されることを
特徴とする電子装置間通信系内の情報交信方式。 7)特許請求の範囲第4項記載の方式において、主導電
子装置に対応するアダプタ装置が主導電子装置から受け
取った情報内容部中の相手方電子装置の装置アドレスに
基づいて通信規約コード部中の電文の行先を示すステー
ションアドレスとを生成するようにしたことを特徴とす
る電子装置間通信系内の情報交信方式。 8)特許請求の範囲第3項記載の方式において、従属電
子装置に対応するアダプタ装置内に主導電子装置の装置
アドレスおよび主導電子装置に固有の通信規約コードに
対する記憶領域と編集手段とが備えられ、通信系に対し
一義的に定義された主導電子装置に固有の通信規約コー
ドを該記憶領域内に記憶させるようにしたことを特徴と
する電子装置間通信系内の情報交信方式。 9)特許請求の範囲第8項記載の方式において、従属電
子装置からその対応アダプタ装置に対して該従属電子装
置に固有の通信規約コードを含む情報内容の一部が送ら
れ、アダプタ装置内の編集手段がこの情報内容の一部に
主導電子装置の装置アドレスと主導電子装置に固有の通
信規約コードとを付加して電文の情報内容部を編集する
ようにしたことを特徴とする電子装置間通信系内の情報
交信方式。 10)特許請求の範囲第1項記載の方式において、電子
装置に固有の通信規約コードが通信路に対して定義され
た通信規約コードとは異なる通信規約コードであること
を特徴とする電子装置間通信系内の情報交信方式。
[Claims] 1) An electronic device is connected to a communication adapter device provided for each of a plurality of stations interconnected by a communication path system via a communication line separate from the communication path, and the adapter An information communication method in a communication system in which information is exchanged between electronic devices via a telegram consisting of a predetermined communication protocol code section and an information content section that are carried by the device on the communication path. A device address that is uniquely defined within a communication system for a destination electronic device with which the electronic device is to exchange information is stored in at least one of an electronic device and an adapter device connected thereto, and the device address of the destination electronic device with which the electronic device is to communicate information is stored. A storage area is set to store a unique communication protocol code defined for communication via a communication line between the device and its corresponding adapter device for each device address, and a communication protocol unique to the other party is created based on the stored contents. A means is provided for editing the information content part in the message including the code, and when information is exchanged from each electronic device side to the other party's electronic device, a message consisting of the information content part edited by the editing means and the communication protocol code part is provided. is generated in the adapter device and placed on the communication path, and the adapter device receiving the message generates an information content section containing the communication protocol code specific to the destination electronic device, with the communication protocol code for the communication path system removed from the message. An information communication system in a communication system between electronic devices, characterized in that the information is sent to a destination electronic device via a communication line. 2) An information communication system in an inter-electronic device communication system according to claim 1, characterized in that a plurality of electronic devices can be connected to each adapter device. 3) In the method described in claim 1, a single electronic device in the communication system serves as a leading electronic device, and other electronic devices in the system exclusively communicate information with the leading electronic device. An information communication method within a communication system between electronic devices, characterized in that it is set as: 4) In the system according to claim 3, the leading electronic device comprises a storage area and editing means for the device address of the slave electronic device and its unique communication protocol code,
The editing means edits the information content portion of the message including the device address of the other party's electronic device with which information should be communicated and the corresponding unique communication protocol code, and sends the edited message to the adapter device to which the leading electronic device is connected. An information communication method within a communication system between electronic devices, characterized by: 5) An information communication system in an inter-electronic device communication system according to claim 4, characterized in that the device address of the other party's electronic device is added to the beginning of the information content section. 6) In the method described in claim 4, a unique communication protocol code between the dependent electronic device and its corresponding adapter device is included in the information content section, and the information and the destination dependent code are included at the end of the content section. An information communication system within a communication system between electronic devices, characterized in that a communication protocol code unique to the electronic device and a communication protocol code unique to the leading electronic device are sequentially attached. 7) In the method described in claim 4, the adapter device corresponding to the leading electronic device reads the message in the communication protocol code section based on the device address of the other party's electronic device in the information content section received from the leading electronic device. 1. An information communication system within a communication system between electronic devices, characterized in that a station address indicating a destination is generated. 8) In the method described in claim 3, the adapter device corresponding to the subordinate electronic device is provided with a storage area and editing means for the device address of the leading electronic device and the communication protocol code specific to the leading electronic device. An information communication system in a communication system between electronic devices, characterized in that a communication protocol code unique to a leading electronic device uniquely defined for the communication system is stored in the storage area. 9) In the method described in claim 8, a part of information including a communication protocol code unique to the dependent electronic device is sent from the dependent electronic device to its corresponding adapter device, and Between electronic devices, wherein the editing means edits the information content part of the message by adding the device address of the leading electronic device and a communication protocol code unique to the leading electronic device to a part of the information content. Information exchange method within a communication system. 10) In the method described in claim 1, between electronic devices, the communication protocol code specific to the electronic device is a communication protocol code different from the communication protocol code defined for the communication path. Information exchange method within a communication system.
JP61273440A 1986-11-17 1986-11-17 Information communication system in communication system between electronic equipments Pending JPS63126335A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61273440A JPS63126335A (en) 1986-11-17 1986-11-17 Information communication system in communication system between electronic equipments

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61273440A JPS63126335A (en) 1986-11-17 1986-11-17 Information communication system in communication system between electronic equipments

Publications (1)

Publication Number Publication Date
JPS63126335A true JPS63126335A (en) 1988-05-30

Family

ID=17527941

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61273440A Pending JPS63126335A (en) 1986-11-17 1986-11-17 Information communication system in communication system between electronic equipments

Country Status (1)

Country Link
JP (1) JPS63126335A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009018883A (en) * 2007-07-10 2009-01-29 Seiko Epson Corp Feeder and recording device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009018883A (en) * 2007-07-10 2009-01-29 Seiko Epson Corp Feeder and recording device

Similar Documents

Publication Publication Date Title
US9667699B2 (en) Method for transmitting data via a CANopen bus
EP0256463B1 (en) Improved token passing network
US8990444B2 (en) Fieldbus gateway using virtual serial fieldbus port and data transmission method thereof
CN101719922B (en) Device and method of protocol conversion between PROFIBUS-DP industrial fieldbus and wireless ZIGBEE
EP0435037B1 (en) Master slave industrial token passing network
JPS61196645A (en) Apparatus and method for executing communication protocol conversion
US20020105977A1 (en) Data transfer system, data transfer management apparatus and data transfer method
CN110809002A (en) Method for protocol conversion between robot and welding equipment and protocol conversion module
JP2001119410A (en) Processing method in self-identification phase
EP0115348B1 (en) Remote initialization of interconnected communications stations
JPS63126335A (en) Information communication system in communication system between electronic equipments
JP2002073584A (en) Memory data sharing system by plural stations by cyclic automatic communications
CN102255784A (en) Field bus gateway using virtual serial field bus port and data transfer method thereof
JPH07120320B2 (en) Data transmission system between computer bus and high speed ring network
CN201820120U (en) Self-adapting multibus execution mechanism controller
KR100302565B1 (en) A method for data transfer and sharing between different types of PLC
JP2008526061A (en) Repeater node for network
CN112202637A (en) Method for calculating quantity of PROFIBUS-PA bus segment equipment
CN1964300A (en) Read-write serial interface bus communication controller
JP2001154931A (en) Secs-i-to-hsms conversion method
EP3591535B1 (en) Addressing mechanism
CN1964302A (en) Serial interface bus communication controller with SPI interface
JPS63187796A (en) Work line control system using data transmission line
JPH07131502A (en) Communication controller
JPH063929B2 (en) Data transmission control method in loop-shaped transmission system