[go: up one dir, main page]

JPH03217905A - Data transfer method between programmable controllers - Google Patents

Data transfer method between programmable controllers

Info

Publication number
JPH03217905A
JPH03217905A JP2012656A JP1265690A JPH03217905A JP H03217905 A JPH03217905 A JP H03217905A JP 2012656 A JP2012656 A JP 2012656A JP 1265690 A JP1265690 A JP 1265690A JP H03217905 A JPH03217905 A JP H03217905A
Authority
JP
Japan
Prior art keywords
information
data
programmable controller
header
frame
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
JP2012656A
Other languages
Japanese (ja)
Inventor
Koji Tsuchiya
孝司 土屋
Toshiyuki Ishihara
石原 俊幸
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 JP2012656A priority Critical patent/JPH03217905A/en
Publication of JPH03217905A publication Critical patent/JPH03217905A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)
  • Small-Scale Networks (AREA)

Abstract

PURPOSE:To transmit information to different kinds of programmable controllers with simple processing by generating a frame in which different kinds of header parts are positioned at the forefront of a data part. CONSTITUTION:When data is transmitted from a first program controller (PC) 20 coupled with a network bus 10 to a second PC 20, the CPU 102 of a control arithmetic part 101 decides whether or not the second PC 20 is the same kind by referring to file information stored in a station number registration file 103, and when it is the different kind of PC, a transmission frame for second PC 20 is generated based on the head format information of the second PC 20, and it is added on the forefront of the data part 3 as second header information, then, it is transferred. The link control part 22 of the second PC 20 reads the second header information, and performs the reception of the data according to the information. Communication between the different kinds of PCs can be performed as usual.

Description

【発明の詳細な説明】 [産業上の利用分野1 本発明は、プログラマブルコントローラ間のデータ転送
方法に関し、詳しくは、共通ネットワークバスに接続さ
れ、転送データのフレーム構成がそれぞれ異なるプログ
ラマブルコントローラ間のデータ転送方法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field 1] The present invention relates to a data transfer method between programmable controllers, and more specifically, the present invention relates to a data transfer method between programmable controllers that are connected to a common network bus and have different frame configurations of transfer data. Regarding the transfer method.

[従来の技術] 従来、ネットワークバスに複数のプログラマブルコント
ローラを接続し、複数のプログラマブルコントローラ間
で情報処理を分担して、電子機器の自動制御を行うシス
テムが知られている。
[Prior Art] Conventionally, a system is known in which a plurality of programmable controllers are connected to a network bus, information processing is shared among the plurality of programmable controllers, and electronic equipment is automatically controlled.

ネットワークバスを利用してデータ転送を行う場合、送
信側のプログラマブルコントローラでは、1フレーム分
の伝送データを作成し、ネットワークバスに所定のタイ
ミングで送出する。通常、lフレームはヘッダ部とデー
タ部から構成され、ヘッダ部は、受信局に対して割当て
た識別コード,転送データのデータ長さ等、相手局を呼
び出すためのヘッダ情報から構成される。データ部は転
送すべき情報により構成される。
When data is transferred using a network bus, a programmable controller on the sending side creates one frame of transmission data and sends it to the network bus at a predetermined timing. Usually, an l frame is composed of a header section and a data section, and the header section is composed of header information for calling the other station, such as an identification code assigned to the receiving station and the data length of the transferred data. The data part consists of the information to be transferred.

受信局側では、ネットワークバス上の転送データを同期
的に受信し、上記ヘッダ部に含まれている、相手局の呼
び出しのための上記識別コードが自局を指定しているこ
とを確認すると、自局に指定された1フレーム分のデー
タを装置内部に取り込む。
When the receiving station side synchronously receives the transfer data on the network bus and confirms that the above identification code for calling the other station, which is included in the above header section, specifies the own station, One frame of data designated for the local station is taken into the device.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながら、従来この種のプログラマブルコントロー
ラ間のデータ転送方法では、フレームを構成するヘッダ
部のフォーマットが第5図に示すように機種毎に異なる
場合がある。この場合、機種の異なる受信局のプログラ
マブルコントローラではヘッダ部の内容を認識すること
ができず、送信局からの情報を受信することができなか
った。
However, in the conventional data transfer method between programmable controllers of this type, the format of the header part constituting the frame may differ depending on the model, as shown in FIG. In this case, the programmable controller of the receiving station of a different model could not recognize the contents of the header section and could not receive information from the transmitting station.

そこで、本発明の目的は、上述の点に鑑みて、ヘッダの
フォーマットの形態の異なるプログラマブルコントロー
ラの間でもデータの転送を行うことができるデータ転送
方法を提供することにある。
SUMMARY OF THE INVENTION In view of the above-mentioned points, an object of the present invention is to provide a data transfer method that allows data transfer even between programmable controllers with different header formats.

〔課題を解決するための手段〕[Means to solve the problem]

このような目的を達成するために、本発明は、受信局を
呼びだすためのヘッダ情報を有するヘッダ部および送信
すべきデータを有するデータ部により構成されるフレー
ム情報を送信側のプログラマブルコントローラから受信
側のプログラマブルコントローラへネットワークバスを
介して転送するプログラマプルコントローラ間のデータ
転送方法において、前配ヘッダ情報のフォーマットが異
なるプログラマブルコントローラにデータを送信すると
きには、当該異なるプログラマブルコントローラのフォ
ーマットに合致したヘッダ部を前記データ部の先頭に位
置させたフレーム情報を作成し、当該作成されたフレー
ム情報を、前記送信側のプログラマブルコントローラか
ら前記ネットワークバスに送信し、前記異なるプログラ
マブルコントローラ側では、前記データ部の先頭のヘッ
ダ部をフレーム情報の先頭とみなして前記ネットワーク
バス上のフレーム情報を受信することを特徴とする。
In order to achieve such an object, the present invention receives frame information from a programmable controller on the transmitting side, which is composed of a header section containing header information for calling a receiving station and a data section containing data to be transmitted. In a data transfer method between programmable controllers that transfers data to a side programmable controller via a network bus, when transmitting data to a programmable controller with a different format of front header information, a header section that matches the format of the different programmable controller is used. is positioned at the beginning of the data section, the created frame information is transmitted from the transmitting programmable controller to the network bus, and on the different programmable controller side, the frame information is positioned at the beginning of the data section. The frame information on the network bus is received by regarding the header part of the frame information as the beginning of the frame information.

〔作 用〕[For production]

本発明では、異機種のプログラマブルコントローラに情
報を送信した場合、通常のヘッダ部の情報は受信されず
、データ部の先頭のヘッダ部の情報から受け付けられる
。このため、従来のプログラマブルコントローラの送受
信回路を機種に対応させて交換しなくても異機種のプロ
グラマブルコントローラへ情報を送信することができる
In the present invention, when information is transmitted to a programmable controller of a different model, information in the normal header section is not received, but information in the header section at the beginning of the data section is accepted. Therefore, information can be transmitted to a programmable controller of a different model without replacing the transmitting/receiving circuit of the conventional programmable controller in accordance with the model.

〔実施例〕〔Example〕

以下、図面を参照して本発明の実施例を詳細に説明する
Embodiments of the present invention will be described in detail below with reference to the drawings.

本発明を適用したプログラマブルコントローラのシステ
ム構成を第2図に示す。
FIG. 2 shows a system configuration of a programmable controller to which the present invention is applied.

第2図において、複数のプログラマブルコントローラ2
0がネットワークバス10に接続されている。
In FIG. 2, a plurality of programmable controllers 2
0 is connected to the network bus 10.

プログラマブルコントローラ20はインタフェース部1
00および制御演算101から構成されている。
The programmable controller 20 is the interface section 1
00 and control calculation 101.

インタフェース部100において、リンク制御部22は
専用LSIが用いられ、制御演算部101からの送信情
報を送受信回路21を介してネットワークバスに転送し
、ネットワークバス上の自局に対するフレーム信号を識
別し、そのフレーム信号を制御演算部101へ転送する
In the interface section 100, the link control section 22 uses a dedicated LSI, transfers the transmission information from the control calculation section 101 to the network bus via the transmission/reception circuit 21, identifies the frame signal for the own station on the network bus, The frame signal is transferred to the control calculation section 101.

具体的には、伝送データの直並列変換、変調/復調を行
う。送受信回路2lにはトランシーバ用ハイブリッドI
C(集積回路)が用いられ、リンク制御部22の指示に
よりネットワークバスlOに対する信号の送受信を行う
Specifically, it performs serial-to-parallel conversion and modulation/demodulation of transmission data. Transceiver circuit 2l has hybrid I for transceiver.
A C (integrated circuit) is used to send and receive signals to and from the network bus IO according to instructions from the link control unit 22.

制御演算部101は、シーケンスプログラムを実行する
中央演算処理装置(CPU)102,ランダムアクセス
メモリ(RAM)を用いた局番号登録ファイル103を
有し、制御対象機器を自動制御するための演算処理およ
び送受信用のフレームの生成/分解処理を実行する。
The control calculation unit 101 has a central processing unit (CPU) 102 that executes a sequence program, a station number registration file 103 using a random access memory (RAM), and performs calculation processing and processing for automatically controlling equipment to be controlled. Executes frame generation/decomposition processing for transmission and reception.

本例においては制御対象様器30からの情報信号が第2
プログラマブルコントローラを介して第1プログラマブ
ルコントローラへ送信され、第1プログラマブルコント
ローラのシーケンス演算結果が逆の順序で制御対象機器
30に送信される。
In this example, the information signal from the controlled object-like device 30 is
It is transmitted to the first programmable controller via the programmable controller, and the sequence calculation results of the first programmable controller are transmitted to the controlled device 30 in the reverse order.

本発明に関わる局番号登録ファイル103には、第3図
に示すように、ネットワークバスlOに接続されるプロ
グラマブルコントローラの局番号(識別コード)および
、その機種番号が記載されている。
As shown in FIG. 3, the station number registration file 103 related to the present invention includes the station number (identification code) of the programmable controller connected to the network bus IO and its model number.

このようなシステム構成において第1プログラマブルコ
ントローラから機種の異なる第2プログラマブルコント
ローラへデータを転送する手順を第4図のフローチャー
トを参照して説明する。
The procedure for transferring data from the first programmable controller to the second programmable controller of a different model in such a system configuration will be explained with reference to the flowchart of FIG.

情報の送信に際して、制御演算部101のCPU102
は局番号登録ファイル103に格納してあるファイル情
報を参照することにより、送信対象の第2プログラマブ
ルコントローラが自局を同機種であるか否かを判定する
(第4図のステップSt−S2→S3)  。
When transmitting information, the CPU 102 of the control calculation unit 101
By referring to the file information stored in the station number registration file 103, the second programmable controller to which the transmission is to be made determines whether or not its own station is of the same model (Steps St-S2→ in FIG. 4). S3).

この判定により第2プログラマブルコントローラの機種
は異機種と判定されると、CPU102は、キーボード
入力装置(不図示)から入力された第2プログラマブル
コントローラ用のヘッドフォーマット情報に基き、第2
プログラマブルコントローラ用の伝送フレームを作成す
る。この伝送フレームは第1図に示すように、伝送フレ
ームのデータ部3の先頭位置に、第2プログラマブルコ
ントローラの機種と対応する入力のヘッダ情報をコピー
することにより作成される。またデータ部3の残りの領
域は送信すべき情報用として用いられる。また、第1ヘ
ッダ部には、従来例と同様にして送信のための各種情報
が設定される(第4図のステップS4)。
When the model of the second programmable controller is determined to be a different model by this determination, the CPU 102 uses the head format information for the second programmable controller inputted from the keyboard input device (not shown) to
Create a transmission frame for the programmable controller. As shown in FIG. 1, this transmission frame is created by copying the input header information corresponding to the model of the second programmable controller to the beginning position of the data section 3 of the transmission frame. The remaining area of the data section 3 is used for information to be transmitted. Further, in the first header section, various information for transmission is set in the same manner as in the conventional example (step S4 in FIG. 4).

このように作成された伝送フォーマットが制御演算部1
01からリンク制御部22に送られ、変調された後、送
受信回路21を介してネットワークバス10上に転送さ
れる(第4図のステップS)。
The transmission format created in this way is used in the control calculation unit 1.
01 to the link control unit 22, modulated, and then transferred onto the network bus 10 via the transmitting/receiving circuit 21 (step S in FIG. 4).

一方、第2プログラマブルコントローラのリンク制御部
22ではこのフレーム情報の中のデータ部の先頭の第2
ヘッダ情報により自局への送信を検知し、第2ヘッダ情
報から情報終了エンドコードまでの情報を1フレーム分
の情報としてとり込む。
On the other hand, in the link control unit 22 of the second programmable controller, the second
Transmission to the own station is detected based on the header information, and information from the second header information to the information end end code is captured as one frame of information.

また、第1プログラマブルコントローラが同機種の他の
プログラマブルコントローラへ情報送信を行う場合、局
番号登録ファイル103の参照により、同機種の送信要
求を検知し、従来と同様、第1ヘッダ部にヘッダ情報を
設定し、データ部3の先頭から送信すべき情報を設定す
る(第4図のステップS1〜S3→S5→S6)。
In addition, when the first programmable controller transmits information to another programmable controller of the same model, a transmission request of the same model is detected by referring to the station number registration file 103, and the header information is stored in the first header section as in the past. and sets the information to be transmitted from the beginning of the data section 3 (steps S1 to S3→S5→S6 in FIG. 4).

以上、説明したように、本−実施例では、フレーム情報
の中のデータ部の先頭に異機種のヘッダ部を位置させる
ので、このフレーム情報を受信したプログラマブルコン
トローラでは、データ部の先頭をフレームの先頭とみな
して、受信を行うことができる。
As explained above, in this embodiment, the header section of a different model is positioned at the beginning of the data section in the frame information, so the programmable controller that receives this frame information moves the beginning of the data section of the frame to the header section of the different model. It can be regarded as the beginning and can be received.

本実施例の他次9例を挙げることができる。In addition to this example, the following nine examples can be cited.

本実施例では制御演算部101においてフレームを作成
する例を示したが、上述と同様の処理をリンク制御部2
2において実行してもよい。
In this embodiment, an example is shown in which a frame is created in the control calculation unit 101, but the same process as described above is performed in the link control unit 101.
2 may be executed.

この場合は、局番号登録ファイルに、プログラマブルコ
ントローラの各機種と対応させて、ヘッダフォーマット
を示す情報を併せ、格納するとよい。
In this case, it is preferable to store information indicating the header format in association with each model of the programmable controller in the station number registration file.

なお、これら登録ファイル情報は、プログラマブル入力
装置から登録修正可能とするようにしておくことは言う
までもない。
It goes without saying that the registered file information can be registered and modified using a programmable input device.

〔発明の効果1 以上、説明したように、本発明によれば,異機種のヘッ
ダ部をデータ部の先頭に位置させたフレームを作成する
という簡単な処理で、異様種のプログラマブルコントロ
ーラへ情報を送信することができるので、既設のシステ
ムに新型のプログラマブルコントローラを増設したり、
使用するプログラマブルコントローラが異なる複数のシ
ステム間でのデータ通信が可能となるという効果が得ら
れる。
[Effect of the invention 1] As explained above, according to the present invention, information can be sent to a programmable controller of a different type by a simple process of creating a frame in which the header section of the different model is positioned at the beginning of the data section. You can add a new programmable controller to an existing system, or
This has the effect of enabling data communication between a plurality of systems using different programmable controllers.

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

第1図は本発明実施例の伝送データのフォーマット内容
を示す説明図、 第2図は本発明実施例のシステム構成を示すブロック図
、 第3図は本発明実施例の局番号登録ファイルの内容を示
す説明図、 第4図は本発明実施例のフレーム作成手順を示すフロー
チャート、 第5図は従来例の伝送データのフォーマット内容を示す
説明図である。 l・・・伝送フレーム、 2・・・ヘッダ部、 3・・・データ部、 20・・・プログラマブルコントローラ、2l・・・送
受信回路、 102・・・CPU . 第 l 図 転送天14−’f v1里香号 第 3 図 奉発1月尖】乞例のフローナイート 第4図 1イス送フ「一ム ィ足未例の有Jプ′−7のフ才一マット内′J−とネ1
尤明園第5図
Fig. 1 is an explanatory diagram showing the format contents of transmission data according to the embodiment of the present invention, Fig. 2 is a block diagram showing the system configuration of the embodiment of the present invention, and Fig. 3 is the contents of the station number registration file according to the embodiment of the present invention. FIG. 4 is a flowchart showing the frame creation procedure according to the embodiment of the present invention, and FIG. 5 is an explanatory diagram showing the format contents of transmission data in a conventional example. 1...Transmission frame, 2...Header section, 3...Data section, 20...Programmable controller, 2l...Transmission/reception circuit, 102...CPU. Figure 1 Transfer Heaven 14-'f v1 Rika No. 3 Figure Service January tip] Request example's Flow Naito Figure 4 Inside'J- and Ne1
Yumeien Garden Figure 5

Claims (1)

【特許請求の範囲】 1)受信局を呼びだすためのヘッダ情報を有するヘッダ
部および送信すべきデータを有するデータ部により構成
されるフレーム情報を送信側のプログラマブルコントロ
ーラから受信側のプログラマブルコントローラへネット
ワークバスを介して転送するプログラマブルコントロー
ラ間のデータ転送方法において、 前記ヘッダ情報のフォーマットが異なるプログラマブル
コントローラにデータを送信するときには、当該異なる
プログラマブルコントローラのフォーマットに合致した
ヘッダ部を前記データ部の先頭に位置させたフレーム情
報を作成し、当該作成されたフレーム情報を、前記送信
側のプログラマブルコントローラから前記ネットワーク
バスに送信し、 前記異なるプログラマブルコントローラ側では、前記デ
ータ部の先頭のヘッダ部をフレーム情報の先頭とみなし
て前記ネットワークバス上のフレーム情報を受信する ことを特徴とするプログラマブルコントローラ間のデー
タ転送方法。
[Claims] 1) Frame information composed of a header section containing header information for calling a receiving station and a data section containing data to be transmitted is transferred from a transmitting-side programmable controller to a receiving-side programmable controller over a network. In a method for transferring data between programmable controllers via a bus, when transmitting data to a programmable controller having a different format of the header information, a header section matching the format of the different programmable controller is positioned at the beginning of the data section. and transmitting the created frame information from the sending-side programmable controller to the network bus, and on the different programmable controller side, the header section at the beginning of the data section is replaced with the beginning of the frame information. A data transfer method between programmable controllers, characterized in that frame information on the network bus is received by regarding the frame information as being.
JP2012656A 1990-01-24 1990-01-24 Data transfer method between programmable controllers Pending JPH03217905A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012656A JPH03217905A (en) 1990-01-24 1990-01-24 Data transfer method between programmable controllers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012656A JPH03217905A (en) 1990-01-24 1990-01-24 Data transfer method between programmable controllers

Publications (1)

Publication Number Publication Date
JPH03217905A true JPH03217905A (en) 1991-09-25

Family

ID=11811404

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012656A Pending JPH03217905A (en) 1990-01-24 1990-01-24 Data transfer method between programmable controllers

Country Status (1)

Country Link
JP (1) JPH03217905A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999024881A1 (en) * 1997-11-10 1999-05-20 Mitsubishi Denki Kabushiki Kaisha Control system using sequence control apparatus, sequence control apparatus, and method of controlling transmission and reception of signals by control system using sequence control apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999024881A1 (en) * 1997-11-10 1999-05-20 Mitsubishi Denki Kabushiki Kaisha Control system using sequence control apparatus, sequence control apparatus, and method of controlling transmission and reception of signals by control system using sequence control apparatus
GB2335771A (en) * 1997-11-10 1999-09-29 Mitsubishi Electric Corp Control system using sequence control apparatus,sequence control apparatus,and method of controlling transmission and reception of signals by control system

Similar Documents

Publication Publication Date Title
JPH03217905A (en) Data transfer method between programmable controllers
JPH0473178B2 (en)
JPS62121562A (en) Data communication system
JP2000227803A (en) Method and system for controlling transmission in data link system of programmable controller
JPS635645A (en) Frame transmission method
JP3454264B2 (en) Wireless communication system and wireless communication method
EP1217531B1 (en) Method of providing communication in distributed systems
JPH03143047A (en) Communication control method
CN113407179A (en) Information processing apparatus
JPH10116242A (en) Peripheral equipment switching system
JP3193942B2 (en) Data collection and transmission equipment
JPS6343443A (en) communication network equipment
JP3644984B2 (en) Process control device
JP4965765B2 (en) Communication method and communication system
JP2694412B2 (en) Data transmission system
KR0141294B1 (en) Processor for connecting electronic electronic switch
JPH06252916A (en) Wireless LAN device
CN118540387A (en) Method for processing vehicle data, vehicle machine system, vehicle and storage medium
JPH0482440A (en) Multiplex link data transfer system
JPS6062761A (en) Loop transmission control system
JPH10178439A (en) Communication line, line control method and camera system
JPS6236941A (en) Data communication equipment in automobile
JPS6033761A (en) Operating system of local network system
JPS61230446A (en) Data communication system
JPH10178463A (en) Communication line, communication speed control method and camera system